code stringlengths 4 991k | repo_name stringlengths 6 116 | path stringlengths 4 249 | language stringclasses 30 values | license stringclasses 15 values | size int64 4 991k | input_ids listlengths 502 502 | token_type_ids listlengths 502 502 | attention_mask listlengths 502 502 | labels listlengths 502 502 |
|---|---|---|---|---|---|---|---|---|---|
/* pmlastmsg.c
* This is a parser module specifically for those horrible
* "<PRI>last message repeated n times" messages notoriously generated
* by some syslog implementations. Note that this parser should be placed
* on top of the parser stack -- it takes out only these messages and
* leaves all others for processing by the other parsers.
*
* NOTE: read comments in module-template.h to understand how this file
* works!
*
* File begun on 2010-07-13 by RGerhards
*
* Copyright 2014-2016 Rainer Gerhards and Adiscon GmbH.
*
* This file is part of rsyslog.
*
* 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
* -or-
* see COPYING.ASL20 in the source distribution
*
* 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.
*/
#include "config.h"
#include "rsyslog.h"
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <ctype.h>
#include "conf.h"
#include "syslogd-types.h"
#include "template.h"
#include "msg.h"
#include "module-template.h"
#include "glbl.h"
#include "errmsg.h"
#include "parser.h"
#include "datetime.h"
#include "unicode-helper.h"
MODULE_TYPE_PARSER
MODULE_TYPE_NOKEEP
PARSER_NAME("rsyslog.lastline")
/* internal structures
*/
DEF_PMOD_STATIC_DATA
DEFobjCurrIf(errmsg)
DEFobjCurrIf(glbl)
DEFobjCurrIf(parser)
DEFobjCurrIf(datetime)
/* static data */
static int bParseHOSTNAMEandTAG; /* cache for the equally-named global param - performance enhancement */
BEGINisCompatibleWithFeature
CODESTARTisCompatibleWithFeature
if(eFeat == sFEATUREAutomaticSanitazion)
iRet = RS_RET_OK;
if(eFeat == sFEATUREAutomaticPRIParsing)
iRet = RS_RET_OK;
ENDisCompatibleWithFeature
/* parse a legay-formatted syslog message.
*/
BEGINparse
uchar *p2parse;
int lenMsg;
#define OpeningText "last message repeated "
#define ClosingText " times"
CODESTARTparse
dbgprintf("Message will now be parsed by \"last message repated n times\" parser.\n");
assert(pMsg != NULL);
assert(pMsg->pszRawMsg != NULL);
lenMsg = pMsg->iLenRawMsg - pMsg->offAfterPRI; /* note: offAfterPRI is already the number of PRI chars (do not add one!) */
p2parse = pMsg->pszRawMsg + pMsg->offAfterPRI; /* point to start of text, after PRI */
/* check if this message is of the type we handle in this (very limited) parser */
/* first, we permit SP */
while(lenMsg && *p2parse == ' ') {
--lenMsg;
++p2parse;
}
if((unsigned) lenMsg < sizeof(OpeningText)-1 + sizeof(ClosingText)-1 + 1) {
/* too short, can not be "our" message */
ABORT_FINALIZE(RS_RET_COULD_NOT_PARSE);
}
if(strncasecmp((char*) p2parse, OpeningText, sizeof(OpeningText)-1) != 0) {
/* wrong opening text */
ABORT_FINALIZE(RS_RET_COULD_NOT_PARSE);
}
lenMsg -= sizeof(OpeningText) - 1;
p2parse += sizeof(OpeningText) - 1;
/* now we need an integer --> digits */
while(lenMsg && isdigit(*p2parse)) {
--lenMsg;
++p2parse;
}
if(lenMsg != sizeof(ClosingText)-1) {
/* size must fit, else it is not "our" message... */
ABORT_FINALIZE(RS_RET_COULD_NOT_PARSE);
}
if(strncasecmp((char*) p2parse, ClosingText, lenMsg) != 0) {
/* wrong closing text */
ABORT_FINALIZE(RS_RET_COULD_NOT_PARSE);
}
/* OK, now we know we need to process this message, so we do that
* (and it is fairly simple in our case...)
*/
DBGPRINTF("pmlastmsg detected a \"last message repeated n times\" message\n");
setProtocolVersion(pMsg, MSG_LEGACY_PROTOCOL);
memcpy(&pMsg->tTIMESTAMP, &pMsg->tRcvdAt, sizeof(struct syslogTime));
MsgSetMSGoffs(pMsg, pMsg->offAfterPRI); /* we don't have a header! */
MsgSetTAG(pMsg, (uchar*)"", 0);
finalize_it:
ENDparse
BEGINmodExit
CODESTARTmodExit
/* release what we no longer need */
objRelease(errmsg, CORE_COMPONENT);
objRelease(glbl, CORE_COMPONENT);
objRelease(parser, CORE_COMPONENT);
objRelease(datetime, CORE_COMPONENT);
ENDmodExit
BEGINqueryEtryPt
CODESTARTqueryEtryPt
CODEqueryEtryPt_STD_PMOD_QUERIES
CODEqueryEtryPt_IsCompatibleWithFeature_IF_OMOD_QUERIES
ENDqueryEtryPt
BEGINmodInit()
CODESTARTmodInit
*ipIFVersProvided = CURR_MOD_IF_VERSION; /* we only support the current interface specification */
CODEmodInit_QueryRegCFSLineHdlr
CHKiRet(objUse(glbl, CORE_COMPONENT));
CHKiRet(objUse(errmsg, CORE_COMPONENT));
CHKiRet(objUse(parser, CORE_COMPONENT));
CHKiRet(objUse(datetime, CORE_COMPONENT));
dbgprintf("lastmsg parser init called, compiled with version %s\n", VERSION);
bParseHOSTNAMEandTAG = glbl.GetParseHOSTNAMEandTAG(); /* cache value, is set only during rsyslogd option processing */
ENDmodInit
/* vim:set ai:
*/
| aturetta/rsyslog | plugins/pmlastmsg/pmlastmsg.c | C | gpl-3.0 | 4,969 | [
30522,
1013,
1008,
7610,
8523,
21246,
28745,
1012,
1039,
1008,
2023,
2003,
1037,
11968,
8043,
11336,
4919,
2005,
2216,
9202,
1008,
1000,
1026,
26927,
1028,
2197,
4471,
5567,
1050,
2335,
1000,
7696,
12536,
2135,
7013,
1008,
2011,
2070,
25353... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
* Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved.
*
* 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.
*
*/
/*jslint vars: true, plusplus: true, devel: true, nomen: true, indent: 4, maxerr: 50 */
/*global define */
define({
// Project error strings
"ERROR_LOADING_PROJECT" : "Fehler beim Laden des Projekts",
"OPEN_DIALOG_ERROR" : "Fehler beim Erstellen des Öffnen Dialogs. (Fehler {0})",
"REQUEST_NATIVE_FILE_SYSTEM_ERROR" : "Fehler beim Lesen des Verzeichnisses <span class='dialog-filename'>{0}</span>. (Fehler {1})",
"READ_DIRECTORY_ENTRIES_ERROR" : "Fehler beim Lesen der Verzeichnisinhalte von <span class='dialog-filename'>{0}</span>. (Fehler {1})",
// File open/save error string
"ERROR_OPENING_FILE_TITLE" : "Fehler beim Öffnen der Datei",
"ERROR_OPENING_FILE" : "Beim Öffnen der Datei <span class='dialog-filename'>{0}</span> ist ein Fehler aufgetreten: {1}",
"ERROR_RELOADING_FILE_TITLE" : "Fehler beim Laden der Änderungen",
"ERROR_RELOADING_FILE" : "Beim Laden der Änderungen der Datei <span class='dialog-filename'>{0}</span> ist ein Fehler aufgetreten: {1}",
"ERROR_SAVING_FILE_TITLE" : "Fehler beim Speichern der Datei",
"ERROR_SAVING_FILE" : "Beim Speichern der Datei <span class='dialog-filename'>{0}</span> ist ein Fehler aufgetreten: {1}",
"INVALID_FILENAME_TITLE" : "Ungültiger Dateiname",
"INVALID_FILENAME_MESSAGE" : "Dateinamen dürfen folgenden Zeichen nicht enthalten: /?*:;{}<>\\|",
"FILE_ALREADY_EXISTS" : "Die Datei <span class='dialog-filename'>{0}</span> existiert bereits.",
"ERROR_CREATING_FILE_TITLE" : "Fehler beim Erstellen der Datei",
"ERROR_CREATING_FILE" : "Beim Erstellen der Datei <span class='dialog-filename'>{0}</span> ist ein Fehler aufgetreten: {1}",
// Application error strings
"ERROR_BRACKETS_IN_BROWSER_TITLE" : "Ups! Brackets läuft derzeit leider nocht nicht im Browser.",
"ERROR_BRACKETS_IN_BROWSER" : "Brackets wurde in HTML programmiert aber derzeite läuft es nur als Desktop Anwendung um damit lokale Dateien zu bearbeiten. Bitte benutzen Sie die Anwendung von <b>github.com/adobe/brackets-app</b>.",
// FileIndexManager error string
"ERROR_MAX_FILES_TITLE" : "Fehler beim Indizieren der Dateien",
"ERROR_MAX_FILES" : "Die maximal mögliche Anzahl inidizierbarer Datein wurde überschritten. Funktionen die auf dem Index beruhen werden möglicherweise nicht korrekt funktionieren.",
// CSSManager error strings
"ERROR_PARSE_TITLE" : "Fehler beim interpretieren der CSS Datei(en):",
// Live Development error strings
"ERROR_LAUNCHING_BROWSER_TITLE" : "Fehler beim Starten des Webbrowsers",
"ERROR_CANT_FIND_CHROME" : "Google Chrome konnte nicht gefunden werden. Bitte laden Sie den Browser unter <b>google.de/chrome</b>.",
"ERROR_LAUNCHING_BROWSER" : "Beim Starten des Webbrowsers ist ein Fehler aufgetreten: (Fehler {0})",
"LIVE_DEVELOPMENT_ERROR_TITLE" : "Fehler bei der Live Entwicklung",
"LIVE_DEVELOPMENT_ERROR_MESSAGE" : "Beim Aufbauen einer Live Verbindung zu Chrome ist ein Fehler aufgetreten. "
+ "Für die Live Entwicklung muss das Remote Debugger Protokoll von Chrome aktiviert sein."
+ "<br /><br />Soll Chrome neu gestartet werden um das Remote Debugger Protokoll zu aktivieren?",
"LIVE_DEV_NEED_HTML_MESSAGE" : "Öffnen Sie erst eine HTML Datei und aktivieren Sie dann die Live Verbindung.",
"LIVE_DEV_STATUS_TIP_NOT_CONNECTED" : "Live Entwicklung",
"LIVE_DEV_STATUS_TIP_PROGRESS1" : "Live Entwicklung: Verbinden...",
"LIVE_DEV_STATUS_TIP_PROGRESS2" : "Live Entwicklung: Initialisieren...",
"LIVE_DEV_STATUS_TIP_CONNECTED" : "Trennen der Live Verbindung",
"SAVE_CLOSE_TITLE" : "Ungespeicherte Änderungen",
"SAVE_CLOSE_MESSAGE" : "Wollen Sie die Änderungen in dem Dokument <span class='dialog-filename'>{0}</span> speichern?",
"SAVE_CLOSE_MULTI_MESSAGE" : "Wollen Sie die Änderungen in den folgenden Dateien speichern?",
"EXT_MODIFIED_TITLE" : "Externe Änderungen",
"EXT_MODIFIED_MESSAGE" : "<span class='dialog-filename'>{0}</span> wurde extern geändert und hat ungespeicherte Änderungen in Brackets."
+ "<br /><br />"
+ "Welche Version wollen Sie erhalten?",
"EXT_DELETED_MESSAGE" : "<span class='dialog-filename'>{0}</span> wurde extern gelöscht und hat ungespeicherte Änderungen in Brackets."
+ "<br /><br />"
+ "Wollen Sie die Änderungen erhalten?",
"OPEN_FILE" : "Datei Öffnen",
// Switch language
"LANGUAGE_TITLE" : "Sprache Wechseln",
"LANGUAGE_MESSAGE" : "Bitte wählen Sie die gewünschte Sprache aus der folgenden Liste aus:",
"LANGUAGE_SUBMIT" : "Brackets neu starten",
"LANGUAGE_CANCEL" : "Abbrechen",
/**
* Command Name Constants
*/
// File menu commands
"FILE_MENU" : "Datei",
"CMD_FILE_NEW" : "Neu",
"CMD_FILE_OPEN" : "Öffnen\u2026",
"CMD_ADD_TO_WORKING_SET" : "Zum Projekt hinzufügen",
"CMD_OPEN_FOLDER" : "Ordner öffnen\u2026",
"CMD_FILE_CLOSE" : "Schließen",
"CMD_FILE_CLOSE_ALL" : "Alles schlieen",
"CMD_FILE_SAVE" : "Speichern",
"CMD_LIVE_FILE_PREVIEW" : "Live Entwicklung",
"CMD_QUIT" : "Beenden",
// Edit menu commands
"EDIT_MENU" : "Bearbeiten",
"CMD_SELECT_ALL" : "Alles auswählen",
"CMD_FIND" : "Suchen",
"CMD_FIND_IN_FILES" : "Im Projekt suchen",
"CMD_FIND_NEXT" : "Weitersuchen (vorwärts)",
"CMD_FIND_PREVIOUS" : "Weitersuchen (rückwärts)",
"CMD_REPLACE" : "Ersetzen",
"CMD_INDENT" : "Einrücken",
"CMD_UNINDENT" : "Ausrücken",
"CMD_DUPLICATE" : "Duplizieren",
"CMD_COMMENT" : "Zeilen (aus-)kommentieren",
"CMD_LINE_UP" : "Zeilen nach oben verschieben",
"CMD_LINE_DOWN" : "Zeilen nach unten verschieben",
// View menu commands
"VIEW_MENU" : "Ansicht",
"CMD_HIDE_SIDEBAR" : "Seitenleiste verbergen",
"CMD_SHOW_SIDEBAR" : "Seitenleiste zeigen",
"CMD_INCREASE_FONT_SIZE" : "Schriftart vergrößern",
"CMD_DECREASE_FONT_SIZE" : "Schriftart verkleinern",
"CMD_RESTORE_FONT_SIZE" : "Schriftart zurücksetzen",
// Navigate menu Commands
"NAVIGATE_MENU" : "Navigation",
"CMD_QUICK_OPEN" : "Schnell Öffnen",
"CMD_GOTO_LINE" : "Gehe zu Zeile",
"CMD_GOTO_DEFINITION" : "Gehe zu Definition",
"CMD_TOGGLE_QUICK_EDIT" : "Schnell Bearbeiten",
"CMD_QUICK_EDIT_PREV_MATCH" : "Voriger Treffer",
"CMD_QUICK_EDIT_NEXT_MATCH" : "Nächster Treffer",
"CMD_NEXT_DOC" : "Nächstes Dokument",
"CMD_PREV_DOC" : "Voriges Dokument",
// Debug menu commands
"DEBUG_MENU" : "Debug",
"CMD_REFRESH_WINDOW" : "Brackets neu laden",
"CMD_SHOW_DEV_TOOLS" : "Entwicklungswerkzeuge zeigen",
"CMD_RUN_UNIT_TESTS" : "Tests durchführen",
"CMD_JSLINT" : "JSLint aktivieren",
"CMD_SHOW_PERF_DATA" : "Performance Analyse",
"CMD_NEW_BRACKETS_WINDOW" : "Neues Brackets Fenster",
"CMD_USE_TAB_CHARS" : "Mit Tabs einrücken",
"CMD_SWITCH_LANGUAGE" : "Sprache wechseln",
// Help menu commands
"CMD_ABOUT" : "Über",
// Special commands invoked by the native shell
"CMD_CLOSE_WINDOW" : "Fenster schließen"
});
| zcbenz/brackets | src/nls/de/strings.js | JavaScript | mit | 9,937 | [
30522,
1013,
1008,
1008,
9385,
1006,
1039,
1007,
2262,
18106,
3001,
5100,
1012,
2035,
2916,
9235,
1012,
1008,
1008,
6656,
2003,
2182,
3762,
4379,
1010,
2489,
1997,
3715,
1010,
2000,
2151,
2711,
11381,
1037,
1008,
6100,
1997,
2023,
4007,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Dagaz.Controller.persistense = "setup";
Dagaz.Model.WIDTH = 8;
Dagaz.Model.HEIGHT = 8;
ZRF = {
JUMP: 0,
IF: 1,
FORK: 2,
FUNCTION: 3,
IN_ZONE: 4,
FLAG: 5,
SET_FLAG: 6,
POS_FLAG: 7,
SET_POS_FLAG: 8,
ATTR: 9,
SET_ATTR: 10,
PROMOTE: 11,
MODE: 12,
ON_BOARD_DIR: 13,
ON_BOARD_POS: 14,
PARAM: 15,
LITERAL: 16,
VERIFY: 20
};
Dagaz.Model.BuildDesign = function(design) {
design.checkVersion("z2j", "2");
design.checkVersion("animate-captures", "false");
design.checkVersion("smart-moves", "false");
design.checkVersion("show-blink", "false");
design.checkVersion("show-hints", "false");
design.addDirection("w"); // 0
design.addDirection("e"); // 1
design.addDirection("s"); // 2
design.addDirection("ne"); // 3
design.addDirection("n"); // 4
design.addDirection("se"); // 5
design.addDirection("sw"); // 6
design.addDirection("nw"); // 7
design.addPlayer("White", [1, 0, 4, 6, 2, 7, 3, 5]);
design.addPlayer("Black", [0, 1, 4, 5, 2, 3, 7, 6]);
design.addPosition("a8", [0, 1, 8, 0, 0, 9, 0, 0]);
design.addPosition("b8", [-1, 1, 8, 0, 0, 9, 7, 0]);
design.addPosition("c8", [-1, 1, 8, 0, 0, 9, 7, 0]);
design.addPosition("d8", [-1, 1, 8, 0, 0, 9, 7, 0]);
design.addPosition("e8", [-1, 1, 8, 0, 0, 9, 7, 0]);
design.addPosition("f8", [-1, 1, 8, 0, 0, 9, 7, 0]);
design.addPosition("g8", [-1, 1, 8, 0, 0, 9, 7, 0]);
design.addPosition("h8", [-1, 0, 8, 0, 0, 0, 7, 0]);
design.addPosition("a7", [0, 1, 8, -7, -8, 9, 0, 0]);
design.addPosition("b7", [-1, 1, 8, -7, -8, 9, 7, -9]);
design.addPosition("c7", [-1, 1, 8, -7, -8, 9, 7, -9]);
design.addPosition("d7", [-1, 1, 8, -7, -8, 9, 7, -9]);
design.addPosition("e7", [-1, 1, 8, -7, -8, 9, 7, -9]);
design.addPosition("f7", [-1, 1, 8, -7, -8, 9, 7, -9]);
design.addPosition("g7", [-1, 1, 8, -7, -8, 9, 7, -9]);
design.addPosition("h7", [-1, 0, 8, 0, -8, 0, 7, -9]);
design.addPosition("a6", [0, 1, 8, -7, -8, 9, 0, 0]);
design.addPosition("b6", [-1, 1, 8, -7, -8, 9, 7, -9]);
design.addPosition("c6", [-1, 1, 8, -7, -8, 9, 7, -9]);
design.addPosition("d6", [-1, 1, 8, -7, -8, 9, 7, -9]);
design.addPosition("e6", [-1, 1, 8, -7, -8, 9, 7, -9]);
design.addPosition("f6", [-1, 1, 8, -7, -8, 9, 7, -9]);
design.addPosition("g6", [-1, 1, 8, -7, -8, 9, 7, -9]);
design.addPosition("h6", [-1, 0, 8, 0, -8, 0, 7, -9]);
design.addPosition("a5", [0, 1, 8, -7, -8, 9, 0, 0]);
design.addPosition("b5", [-1, 1, 8, -7, -8, 9, 7, -9]);
design.addPosition("c5", [-1, 1, 8, -7, -8, 9, 7, -9]);
design.addPosition("d5", [-1, 1, 8, -7, -8, 9, 7, -9]);
design.addPosition("e5", [-1, 1, 8, -7, -8, 9, 7, -9]);
design.addPosition("f5", [-1, 1, 8, -7, -8, 9, 7, -9]);
design.addPosition("g5", [-1, 1, 8, -7, -8, 9, 7, -9]);
design.addPosition("h5", [-1, 0, 8, 0, -8, 0, 7, -9]);
design.addPosition("a4", [0, 1, 8, -7, -8, 9, 0, 0]);
design.addPosition("b4", [-1, 1, 8, -7, -8, 9, 7, -9]);
design.addPosition("c4", [-1, 1, 8, -7, -8, 9, 7, -9]);
design.addPosition("d4", [-1, 1, 8, -7, -8, 9, 7, -9]);
design.addPosition("e4", [-1, 1, 8, -7, -8, 9, 7, -9]);
design.addPosition("f4", [-1, 1, 8, -7, -8, 9, 7, -9]);
design.addPosition("g4", [-1, 1, 8, -7, -8, 9, 7, -9]);
design.addPosition("h4", [-1, 0, 8, 0, -8, 0, 7, -9]);
design.addPosition("a3", [0, 1, 8, -7, -8, 9, 0, 0]);
design.addPosition("b3", [-1, 1, 8, -7, -8, 9, 7, -9]);
design.addPosition("c3", [-1, 1, 8, -7, -8, 9, 7, -9]);
design.addPosition("d3", [-1, 1, 8, -7, -8, 9, 7, -9]);
design.addPosition("e3", [-1, 1, 8, -7, -8, 9, 7, -9]);
design.addPosition("f3", [-1, 1, 8, -7, -8, 9, 7, -9]);
design.addPosition("g3", [-1, 1, 8, -7, -8, 9, 7, -9]);
design.addPosition("h3", [-1, 0, 8, 0, -8, 0, 7, -9]);
design.addPosition("a2", [0, 1, 8, -7, -8, 9, 0, 0]);
design.addPosition("b2", [-1, 1, 8, -7, -8, 9, 7, -9]);
design.addPosition("c2", [-1, 1, 8, -7, -8, 9, 7, -9]);
design.addPosition("d2", [-1, 1, 8, -7, -8, 9, 7, -9]);
design.addPosition("e2", [-1, 1, 8, -7, -8, 9, 7, -9]);
design.addPosition("f2", [-1, 1, 8, -7, -8, 9, 7, -9]);
design.addPosition("g2", [-1, 1, 8, -7, -8, 9, 7, -9]);
design.addPosition("h2", [-1, 0, 8, 0, -8, 0, 7, -9]);
design.addPosition("a1", [0, 1, 0, -7, -8, 0, 0, 0]);
design.addPosition("b1", [-1, 1, 0, -7, -8, 0, 0, -9]);
design.addPosition("c1", [-1, 1, 0, -7, -8, 0, 0, -9]);
design.addPosition("d1", [-1, 1, 0, -7, -8, 0, 0, -9]);
design.addPosition("e1", [-1, 1, 0, -7, -8, 0, 0, -9]);
design.addPosition("f1", [-1, 1, 0, -7, -8, 0, 0, -9]);
design.addPosition("g1", [-1, 1, 0, -7, -8, 0, 0, -9]);
design.addPosition("h1", [-1, 0, 0, 0, -8, 0, 0, -9]);
design.addPosition("X1", [0, 0, 0, 0, 0, 0, 0, 0]);
design.addPosition("X2", [0, 0, 0, 0, 0, 0, 0, 0]);
design.addPosition("X3", [0, 0, 0, 0, 0, 0, 0, 0]);
design.addPosition("X4", [0, 0, 0, 0, 0, 0, 0, 0]);
design.addZone("last-rank", 1, [0, 1, 2, 3, 4, 5, 6, 7]);
design.addZone("last-rank", 2, [56, 57, 58, 59, 60, 61, 62, 63]);
design.addZone("third-rank", 1, [40, 41, 42, 43, 44, 45, 46, 47]);
design.addZone("third-rank", 2, [16, 17, 18, 19, 20, 21, 22, 23]);
design.addZone("black", 1, [56, 58, 60, 62, 49, 51, 53, 55, 40, 42, 44, 46, 33, 35, 37, 39, 24, 26, 28, 30, 17, 19, 21, 23, 8, 10, 12, 14, 1, 3, 5, 7]);
design.addZone("black", 2, [56, 58, 60, 62, 49, 51, 53, 55, 40, 42, 44, 46, 33, 35, 37, 39, 24, 26, 28, 30, 17, 19, 21, 23, 8, 10, 12, 14, 1, 3, 5, 7]);
design.addZone("home", 1, [56, 57, 58, 59, 60, 61, 62, 63, 48, 49, 50, 51, 52, 53, 54, 55]);
design.addZone("home", 2, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]);
design.addCommand(0, ZRF.FUNCTION, 24); // from
design.addCommand(0, ZRF.PARAM, 0); // $1
design.addCommand(0, ZRF.FUNCTION, 22); // navigate
design.addCommand(0, ZRF.FUNCTION, 1); // empty?
design.addCommand(0, ZRF.FUNCTION, 20); // verify
design.addCommand(0, ZRF.IN_ZONE, 0); // last-rank
design.addCommand(0, ZRF.FUNCTION, 0); // not
design.addCommand(0, ZRF.IF, 4);
design.addCommand(0, ZRF.PROMOTE, 4); // Queen
design.addCommand(0, ZRF.FUNCTION, 25); // to
design.addCommand(0, ZRF.JUMP, 2);
design.addCommand(0, ZRF.FUNCTION, 25); // to
design.addCommand(0, ZRF.FUNCTION, 28); // end
design.addCommand(1, ZRF.FUNCTION, 24); // from
design.addCommand(1, ZRF.PARAM, 0); // $1
design.addCommand(1, ZRF.FUNCTION, 22); // navigate
design.addCommand(1, ZRF.FUNCTION, 1); // empty?
design.addCommand(1, ZRF.FUNCTION, 20); // verify
design.addCommand(1, ZRF.IN_ZONE, 1); // third-rank
design.addCommand(1, ZRF.FUNCTION, 20); // verify
design.addCommand(1, ZRF.PARAM, 1); // $2
design.addCommand(1, ZRF.FUNCTION, 22); // navigate
design.addCommand(1, ZRF.FUNCTION, 1); // empty?
design.addCommand(1, ZRF.FUNCTION, 20); // verify
design.addCommand(1, ZRF.FUNCTION, 25); // to
design.addCommand(1, ZRF.FUNCTION, 28); // end
design.addCommand(2, ZRF.FUNCTION, 24); // from
design.addCommand(2, ZRF.PARAM, 0); // $1
design.addCommand(2, ZRF.FUNCTION, 22); // navigate
design.addCommand(2, ZRF.FUNCTION, 2); // enemy?
design.addCommand(2, ZRF.FUNCTION, 20); // verify
design.addCommand(2, ZRF.IN_ZONE, 0); // last-rank
design.addCommand(2, ZRF.FUNCTION, 0); // not
design.addCommand(2, ZRF.IF, 4);
design.addCommand(2, ZRF.PROMOTE, 4); // Queen
design.addCommand(2, ZRF.FUNCTION, 25); // to
design.addCommand(2, ZRF.JUMP, 2);
design.addCommand(2, ZRF.FUNCTION, 25); // to
design.addCommand(2, ZRF.FUNCTION, 28); // end
design.addCommand(3, ZRF.FUNCTION, 24); // from
design.addCommand(3, ZRF.PARAM, 0); // $1
design.addCommand(3, ZRF.FUNCTION, 22); // navigate
design.addCommand(3, ZRF.FUNCTION, 2); // enemy?
design.addCommand(3, ZRF.FUNCTION, 20); // verify
design.addCommand(3, ZRF.FUNCTION, 5); // last-to?
design.addCommand(3, ZRF.FUNCTION, 20); // verify
design.addCommand(3, ZRF.LITERAL, 0); // Pawn
design.addCommand(3, ZRF.FUNCTION, 10); // piece?
design.addCommand(3, ZRF.FUNCTION, 20); // verify
design.addCommand(3, ZRF.FUNCTION, 26); // capture
design.addCommand(3, ZRF.PARAM, 1); // $2
design.addCommand(3, ZRF.FUNCTION, 22); // navigate
design.addCommand(3, ZRF.FUNCTION, 6); // mark
design.addCommand(3, ZRF.PARAM, 2); // $3
design.addCommand(3, ZRF.FUNCTION, 22); // navigate
design.addCommand(3, ZRF.FUNCTION, 4); // last-from?
design.addCommand(3, ZRF.FUNCTION, 20); // verify
design.addCommand(3, ZRF.FUNCTION, 7); // back
design.addCommand(3, ZRF.FUNCTION, 25); // to
design.addCommand(3, ZRF.FUNCTION, 28); // end
design.addCommand(4, ZRF.FUNCTION, 24); // from
design.addCommand(4, ZRF.PARAM, 0); // $1
design.addCommand(4, ZRF.FUNCTION, 22); // navigate
design.addCommand(4, ZRF.FUNCTION, 1); // empty?
design.addCommand(4, ZRF.FUNCTION, 0); // not
design.addCommand(4, ZRF.IF, 7);
design.addCommand(4, ZRF.FORK, 3);
design.addCommand(4, ZRF.FUNCTION, 25); // to
design.addCommand(4, ZRF.FUNCTION, 28); // end
design.addCommand(4, ZRF.PARAM, 1); // $2
design.addCommand(4, ZRF.FUNCTION, 22); // navigate
design.addCommand(4, ZRF.JUMP, -8);
design.addCommand(4, ZRF.FUNCTION, 3); // friend?
design.addCommand(4, ZRF.FUNCTION, 0); // not
design.addCommand(4, ZRF.FUNCTION, 20); // verify
design.addCommand(4, ZRF.FUNCTION, 25); // to
design.addCommand(4, ZRF.FUNCTION, 28); // end
design.addCommand(5, ZRF.FUNCTION, 24); // from
design.addCommand(5, ZRF.PARAM, 0); // $1
design.addCommand(5, ZRF.FUNCTION, 22); // navigate
design.addCommand(5, ZRF.PARAM, 1); // $2
design.addCommand(5, ZRF.FUNCTION, 22); // navigate
design.addCommand(5, ZRF.FUNCTION, 3); // friend?
design.addCommand(5, ZRF.FUNCTION, 0); // not
design.addCommand(5, ZRF.FUNCTION, 20); // verify
design.addCommand(5, ZRF.FUNCTION, 25); // to
design.addCommand(5, ZRF.FUNCTION, 28); // end
design.addCommand(6, ZRF.FUNCTION, 24); // from
design.addCommand(6, ZRF.PARAM, 0); // $1
design.addCommand(6, ZRF.FUNCTION, 22); // navigate
design.addCommand(6, ZRF.FUNCTION, 3); // friend?
design.addCommand(6, ZRF.FUNCTION, 0); // not
design.addCommand(6, ZRF.FUNCTION, 20); // verify
design.addCommand(6, ZRF.FUNCTION, 25); // to
design.addCommand(6, ZRF.FUNCTION, 28); // end
design.addCommand(7, ZRF.IN_ZONE, 3); // home
design.addCommand(7, ZRF.FUNCTION, 20); // verify
design.addCommand(7, ZRF.FUNCTION, 1); // empty?
design.addCommand(7, ZRF.FUNCTION, 20); // verify
design.addCommand(7, ZRF.FUNCTION, 25); // to
design.addCommand(7, ZRF.FUNCTION, 28); // end
design.addPriority(0); // drop-type
design.addPriority(1); // normal-type
design.addPiece("Pawn", 0, 800);
design.addMove(0, 0, [4], 1);
design.addMove(0, 1, [4, 4], 1);
design.addMove(0, 2, [7], 1);
design.addMove(0, 2, [3], 1);
design.addMove(0, 3, [1, 4, 4], 1);
design.addMove(0, 3, [0, 4, 4], 1);
design.addPiece("Rook", 1, 5000);
design.addMove(1, 4, [4, 4], 1);
design.addMove(1, 4, [2, 2], 1);
design.addMove(1, 4, [0, 0], 1);
design.addMove(1, 4, [1, 1], 1);
design.addDrop(1, 7, [], 0);
design.addPiece("Knight", 2, 3350);
design.addMove(2, 5, [4, 7], 1);
design.addMove(2, 5, [4, 3], 1);
design.addMove(2, 5, [2, 6], 1);
design.addMove(2, 5, [2, 5], 1);
design.addMove(2, 5, [0, 7], 1);
design.addMove(2, 5, [0, 6], 1);
design.addMove(2, 5, [1, 3], 1);
design.addMove(2, 5, [1, 5], 1);
design.addDrop(2, 7, [], 0);
design.addPiece("Bishop", 3, 3450);
design.addMove(3, 4, [7, 7], 1);
design.addMove(3, 4, [6, 6], 1);
design.addMove(3, 4, [3, 3], 1);
design.addMove(3, 4, [5, 5], 1);
design.addDrop(3, 7, [], 0);
design.addPiece("Queen", 4, 9750);
design.addMove(4, 4, [4, 4], 1);
design.addMove(4, 4, [2, 2], 1);
design.addMove(4, 4, [0, 0], 1);
design.addMove(4, 4, [1, 1], 1);
design.addMove(4, 4, [7, 7], 1);
design.addMove(4, 4, [6, 6], 1);
design.addMove(4, 4, [3, 3], 1);
design.addMove(4, 4, [5, 5], 1);
design.addDrop(4, 7, [], 0);
design.addPiece("King", 5, 600000);
design.addMove(5, 6, [4], 1);
design.addMove(5, 6, [2], 1);
design.addMove(5, 6, [0], 1);
design.addMove(5, 6, [1], 1);
design.addMove(5, 6, [7], 1);
design.addMove(5, 6, [6], 1);
design.addMove(5, 6, [3], 1);
design.addMove(5, 6, [5], 1);
design.addDrop(5, 7, [], 0);
design.setup("White", "Pawn", 48);
design.setup("White", "Pawn", 49);
design.setup("White", "Pawn", 50);
design.setup("White", "Pawn", 51);
design.setup("White", "Pawn", 52);
design.setup("White", "Pawn", 53);
design.setup("White", "Pawn", 54);
design.setup("White", "Pawn", 55);
design.reserve("White", "Pawn", 0);
design.reserve("White", "Knight", 2);
design.reserve("White", "Bishop", 2);
design.reserve("White", "Rook", 2);
design.reserve("White", "Queen", 1);
design.reserve("White", "King", 1);
design.setup("Black", "Pawn", 8);
design.setup("Black", "Pawn", 9);
design.setup("Black", "Pawn", 10);
design.setup("Black", "Pawn", 11);
design.setup("Black", "Pawn", 12);
design.setup("Black", "Pawn", 13);
design.setup("Black", "Pawn", 14);
design.setup("Black", "Pawn", 15);
design.reserve("Black", "Pawn", 0);
design.reserve("Black", "Knight", 2);
design.reserve("Black", "Bishop", 2);
design.reserve("Black", "Rook", 2);
design.reserve("Black", "Queen", 1);
design.reserve("Black", "King", 1);
}
Dagaz.View.configure = function(view) {
view.defBoard("Board");
view.defPiece("WhitePawn", "White Pawn");
view.defPiece("BlackPawn", "Black Pawn");
view.defPiece("WhiteRook", "White Rook");
view.defPiece("BlackRook", "Black Rook");
view.defPiece("WhiteKnight", "White Knight");
view.defPiece("BlackKnight", "Black Knight");
view.defPiece("WhiteBishop", "White Bishop");
view.defPiece("BlackBishop", "Black Bishop");
view.defPiece("WhiteQueen", "White Queen");
view.defPiece("BlackQueen", "Black Queen");
view.defPiece("WhiteKing", "White King");
view.defPiece("BlackKing", "Black King");
view.defPiece("Ko", "Ko");
view.defPosition("a8", 2, 2, 68, 68);
view.defPosition("b8", 70, 2, 68, 68);
view.defPosition("c8", 138, 2, 68, 68);
view.defPosition("d8", 206, 2, 68, 68);
view.defPosition("e8", 274, 2, 68, 68);
view.defPosition("f8", 342, 2, 68, 68);
view.defPosition("g8", 410, 2, 68, 68);
view.defPosition("h8", 478, 2, 68, 68);
view.defPosition("a7", 2, 70, 68, 68);
view.defPosition("b7", 70, 70, 68, 68);
view.defPosition("c7", 138, 70, 68, 68);
view.defPosition("d7", 206, 70, 68, 68);
view.defPosition("e7", 274, 70, 68, 68);
view.defPosition("f7", 342, 70, 68, 68);
view.defPosition("g7", 410, 70, 68, 68);
view.defPosition("h7", 478, 70, 68, 68);
view.defPosition("a6", 2, 138, 68, 68);
view.defPosition("b6", 70, 138, 68, 68);
view.defPosition("c6", 138, 138, 68, 68);
view.defPosition("d6", 206, 138, 68, 68);
view.defPosition("e6", 274, 138, 68, 68);
view.defPosition("f6", 342, 138, 68, 68);
view.defPosition("g6", 410, 138, 68, 68);
view.defPosition("h6", 478, 138, 68, 68);
view.defPosition("a5", 2, 206, 68, 68);
view.defPosition("b5", 70, 206, 68, 68);
view.defPosition("c5", 138, 206, 68, 68);
view.defPosition("d5", 206, 206, 68, 68);
view.defPosition("e5", 274, 206, 68, 68);
view.defPosition("f5", 342, 206, 68, 68);
view.defPosition("g5", 410, 206, 68, 68);
view.defPosition("h5", 478, 206, 68, 68);
view.defPosition("a4", 2, 274, 68, 68);
view.defPosition("b4", 70, 274, 68, 68);
view.defPosition("c4", 138, 274, 68, 68);
view.defPosition("d4", 206, 274, 68, 68);
view.defPosition("e4", 274, 274, 68, 68);
view.defPosition("f4", 342, 274, 68, 68);
view.defPosition("g4", 410, 274, 68, 68);
view.defPosition("h4", 478, 274, 68, 68);
view.defPosition("a3", 2, 342, 68, 68);
view.defPosition("b3", 70, 342, 68, 68);
view.defPosition("c3", 138, 342, 68, 68);
view.defPosition("d3", 206, 342, 68, 68);
view.defPosition("e3", 274, 342, 68, 68);
view.defPosition("f3", 342, 342, 68, 68);
view.defPosition("g3", 410, 342, 68, 68);
view.defPosition("h3", 478, 342, 68, 68);
view.defPosition("a2", 2, 410, 68, 68);
view.defPosition("b2", 70, 410, 68, 68);
view.defPosition("c2", 138, 410, 68, 68);
view.defPosition("d2", 206, 410, 68, 68);
view.defPosition("e2", 274, 410, 68, 68);
view.defPosition("f2", 342, 410, 68, 68);
view.defPosition("g2", 410, 410, 68, 68);
view.defPosition("h2", 478, 410, 68, 68);
view.defPosition("a1", 2, 478, 68, 68);
view.defPosition("b1", 70, 478, 68, 68);
view.defPosition("c1", 138, 478, 68, 68);
view.defPosition("d1", 206, 478, 68, 68);
view.defPosition("e1", 274, 478, 68, 68);
view.defPosition("f1", 342, 478, 68, 68);
view.defPosition("g1", 410, 478, 68, 68);
view.defPosition("h1", 478, 478, 68, 68);
view.defPopup("Promote", 127, 100);
view.defPopupPosition("X1", 10, 7, 68, 68);
view.defPopupPosition("X2", 80, 7, 68, 68);
view.defPopupPosition("X3", 150, 7, 68, 68);
view.defPopupPosition("X4", 220, 7, 68, 68);
}
| GlukKazan/GlukKazan.github.io | checkmate/scripts/visavis-chess.js | JavaScript | mit | 18,337 | [
30522,
4830,
3654,
2480,
1012,
11486,
1012,
29486,
16700,
1027,
1000,
16437,
1000,
1025,
4830,
3654,
2480,
1012,
2944,
1012,
9381,
1027,
1022,
1025,
4830,
3654,
2480,
1012,
2944,
1012,
4578,
1027,
1022,
1025,
1062,
12881,
1027,
1063,
5376,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
var baseSortedIndex = require('./_baseSortedIndex');
/**
* This method is like `_.sortedIndex` except that it returns the highest
* index at which `value` should be inserted into `array` in order to
* maintain its sort order.
*
* @static
* @memberOf _
* @category Array
* @param {Array} array The sorted array to inspect.
* @param {*} value The value to evaluate.
* @returns {number} Returns the index at which `value` should be inserted into `array`.
* @specs
*
* _.sortedLastIndex([4, 5], 4);
* // => 1
*/
function sortedLastIndex(array, value) {
return baseSortedIndex(array, value, true);
}
module.exports = sortedLastIndex;
| mdchristopher/Protractor | node_modules/lodash/sortedLastIndex.js | JavaScript | mit | 648 | [
30522,
13075,
7888,
15613,
22254,
10288,
1027,
5478,
1006,
1005,
1012,
1013,
1035,
7888,
15613,
22254,
10288,
1005,
1007,
1025,
1013,
1008,
1008,
1008,
2023,
4118,
2003,
2066,
1036,
1035,
1012,
19616,
22254,
10288,
1036,
3272,
2008,
2009,
5... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- Module : Network.AWS.CloudTrail.DescribeTrails
-- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>
-- License : This Source Code Form is subject to the terms of
-- the Mozilla Public License, v. 2.0.
-- A copy of the MPL can be found in the LICENSE file or
-- you can obtain it at http://mozilla.org/MPL/2.0/.
-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
-- Stability : experimental
-- Portability : non-portable (GHC extensions)
--
-- Derived from AWS service descriptions, licensed under Apache 2.0.
-- | Retrieves settings for the trail associated with the current region for your
-- account.
--
-- <http://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_DescribeTrails.html>
module Network.AWS.CloudTrail.DescribeTrails
(
-- * Request
DescribeTrails
-- ** Request constructor
, describeTrails
-- ** Request lenses
, dtTrailNameList
-- * Response
, DescribeTrailsResponse
-- ** Response constructor
, describeTrailsResponse
-- ** Response lenses
, dtrTrailList
) where
import Network.AWS.Prelude
import Network.AWS.Request.JSON
import Network.AWS.CloudTrail.Types
import qualified GHC.Exts
newtype DescribeTrails = DescribeTrails
{ _dtTrailNameList :: List "trailNameList" Text
} deriving (Eq, Ord, Read, Show, Monoid, Semigroup)
instance GHC.Exts.IsList DescribeTrails where
type Item DescribeTrails = Text
fromList = DescribeTrails . GHC.Exts.fromList
toList = GHC.Exts.toList . _dtTrailNameList
-- | 'DescribeTrails' constructor.
--
-- The fields accessible through corresponding lenses are:
--
-- * 'dtTrailNameList' @::@ ['Text']
--
describeTrails :: DescribeTrails
describeTrails = DescribeTrails
{ _dtTrailNameList = mempty
}
-- | The trail returned.
dtTrailNameList :: Lens' DescribeTrails [Text]
dtTrailNameList = lens _dtTrailNameList (\s a -> s { _dtTrailNameList = a }) . _List
newtype DescribeTrailsResponse = DescribeTrailsResponse
{ _dtrTrailList :: List "trailList" Trail
} deriving (Eq, Read, Show, Monoid, Semigroup)
instance GHC.Exts.IsList DescribeTrailsResponse where
type Item DescribeTrailsResponse = Trail
fromList = DescribeTrailsResponse . GHC.Exts.fromList
toList = GHC.Exts.toList . _dtrTrailList
-- | 'DescribeTrailsResponse' constructor.
--
-- The fields accessible through corresponding lenses are:
--
-- * 'dtrTrailList' @::@ ['Trail']
--
describeTrailsResponse :: DescribeTrailsResponse
describeTrailsResponse = DescribeTrailsResponse
{ _dtrTrailList = mempty
}
-- | The list of trails.
dtrTrailList :: Lens' DescribeTrailsResponse [Trail]
dtrTrailList = lens _dtrTrailList (\s a -> s { _dtrTrailList = a }) . _List
instance ToPath DescribeTrails where
toPath = const "/"
instance ToQuery DescribeTrails where
toQuery = const mempty
instance ToHeaders DescribeTrails
instance ToJSON DescribeTrails where
toJSON DescribeTrails{..} = object
[ "trailNameList" .= _dtTrailNameList
]
instance AWSRequest DescribeTrails where
type Sv DescribeTrails = CloudTrail
type Rs DescribeTrails = DescribeTrailsResponse
request = post "DescribeTrails"
response = jsonResponse
instance FromJSON DescribeTrailsResponse where
parseJSON = withObject "DescribeTrailsResponse" $ \o -> DescribeTrailsResponse
<$> o .:? "trailList" .!= mempty
| dysinger/amazonka | amazonka-cloudtrail/gen/Network/AWS/CloudTrail/DescribeTrails.hs | Haskell | mpl-2.0 | 3,895 | [
30522,
1063,
1011,
1001,
2653,
2951,
18824,
2015,
1001,
1011,
1065,
1063,
1011,
1001,
2653,
18547,
6914,
22420,
1001,
1011,
1065,
1063,
1011,
1001,
2653,
12379,
7076,
26897,
2015,
1001,
1011,
1065,
1063,
1011,
1001,
2653,
18960,
2638,
26677... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
* PtokaX - hub server for Direct Connect peer to peer network.
* Copyright (C) 2004-2015 Petr Kozelka, PPK at PtokaX dot org
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3
* as published by the Free Software Foundation.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
//---------------------------------------------------------------------------
#include "../core/stdinc.h"
//---------------------------------------------------------------------------
#include "RegisteredUsersDialog.h"
//---------------------------------------------------------------------------
#include "../core/hashRegManager.h"
#include "../core/LanguageManager.h"
#include "../core/ProfileManager.h"
#include "../core/ServerManager.h"
#include "../core/utility.h"
//---------------------------------------------------------------------------
#include "GuiSettingManager.h"
#include "GuiUtil.h"
//---------------------------------------------------------------------------
#pragma hdrstop
//---------------------------------------------------------------------------
#include "RegisteredUserDialog.h"
//---------------------------------------------------------------------------
clsRegisteredUsersDialog * clsRegisteredUsersDialog::mPtr = NULL;
//---------------------------------------------------------------------------
#define IDC_CHANGE_REG 1000
#define IDC_REMOVE_REGS 1001
//---------------------------------------------------------------------------
static ATOM atomRegisteredUsersDialog = 0;
//---------------------------------------------------------------------------
clsRegisteredUsersDialog::clsRegisteredUsersDialog() : iFilterColumn(0), iSortColumn(0), bSortAscending(true) {
memset(&hWndWindowItems, 0, sizeof(hWndWindowItems));
}
//---------------------------------------------------------------------------
clsRegisteredUsersDialog::~clsRegisteredUsersDialog() {
clsRegisteredUsersDialog::mPtr = NULL;
}
//---------------------------------------------------------------------------
LRESULT CALLBACK clsRegisteredUsersDialog::StaticRegisteredUsersDialogProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) {
clsRegisteredUsersDialog * pRegisteredUsersDialog = (clsRegisteredUsersDialog *)::GetWindowLongPtr(hWnd, GWLP_USERDATA);
if(pRegisteredUsersDialog == NULL) {
return ::DefWindowProc(hWnd, uMsg, wParam, lParam);
}
return pRegisteredUsersDialog->RegisteredUsersDialogProc(uMsg, wParam, lParam);
}
//------------------------------------------------------------------------------
LRESULT clsRegisteredUsersDialog::RegisteredUsersDialogProc(UINT uMsg, WPARAM wParam, LPARAM lParam) {
switch(uMsg) {
case WM_WINDOWPOSCHANGED: {
RECT rcParent;
::GetClientRect(hWndWindowItems[WINDOW_HANDLE], &rcParent);
::SetWindowPos(hWndWindowItems[CB_FILTER], NULL, (rcParent.right / 2)+3, (rcParent.bottom - clsGuiSettingManager::iOneLineGB - 3) + clsGuiSettingManager::iGroupBoxMargin,
rcParent.right - (rcParent.right/2) - 14, clsGuiSettingManager::iEditHeight, SWP_NOZORDER);
::SetWindowPos(hWndWindowItems[EDT_FILTER], NULL, 11, (rcParent.bottom - clsGuiSettingManager::iOneLineGB - 3) + clsGuiSettingManager::iGroupBoxMargin, (rcParent.right / 2) - 14, clsGuiSettingManager::iEditHeight, SWP_NOZORDER);
::SetWindowPos(hWndWindowItems[GB_FILTER], NULL, 3, rcParent.bottom - clsGuiSettingManager::iOneLineGB - 3, rcParent.right - 6, clsGuiSettingManager::iOneLineGB, SWP_NOZORDER);
::SetWindowPos(hWndWindowItems[LV_REGS], NULL, 0, 0, rcParent.right - 6, rcParent.bottom - clsGuiSettingManager::iOneLineGB - clsGuiSettingManager::iEditHeight - 11, SWP_NOMOVE | SWP_NOZORDER);
::SetWindowPos(hWndWindowItems[BTN_ADD_REG], NULL, 0, 0, rcParent.right - 4, clsGuiSettingManager::iEditHeight, SWP_NOMOVE | SWP_NOZORDER);
return 0;
}
case WM_COMMAND:
switch(LOWORD(wParam)) {
case (BTN_ADD_REG+100): {
clsRegisteredUserDialog::mPtr = new (std::nothrow) clsRegisteredUserDialog();
if(clsRegisteredUserDialog::mPtr != NULL) {
clsRegisteredUserDialog::mPtr->DoModal(hWndWindowItems[WINDOW_HANDLE]);
}
return 0;
}
case IDC_CHANGE_REG: {
ChangeReg();
return 0;
}
case IDC_REMOVE_REGS:
RemoveRegs();
return 0;
case CB_FILTER:
if(HIWORD(wParam) == CBN_SELCHANGE) {
if(::GetWindowTextLength(hWndWindowItems[EDT_FILTER]) != 0) {
FilterRegs();
}
}
break;
case IDOK: { // NM_RETURN
HWND hWndFocus = ::GetFocus();
if(hWndFocus == hWndWindowItems[LV_REGS]) {
ChangeReg();
return 0;
} else if(hWndFocus == hWndWindowItems[EDT_FILTER]) {
FilterRegs();
return 0;
}
break;
}
case IDCANCEL:
::PostMessage(hWndWindowItems[WINDOW_HANDLE], WM_CLOSE, 0, 0);
return 0;
}
break;
case WM_CONTEXTMENU:
OnContextMenu((HWND)wParam, lParam);
break;
case WM_NOTIFY:
if(((LPNMHDR)lParam)->hwndFrom == hWndWindowItems[LV_REGS]) {
if(((LPNMHDR)lParam)->code == LVN_COLUMNCLICK) {
OnColumnClick((LPNMLISTVIEW)lParam);
} else if(((LPNMHDR)lParam)->code == NM_DBLCLK) {
if(((LPNMITEMACTIVATE)lParam)->iItem == -1) {
break;
}
RegUser * pReg = (RegUser *)ListViewGetItem(hWndWindowItems[LV_REGS], ((LPNMITEMACTIVATE)lParam)->iItem);
clsRegisteredUserDialog::mPtr = new (std::nothrow) clsRegisteredUserDialog();
if(clsRegisteredUserDialog::mPtr != NULL) {
clsRegisteredUserDialog::mPtr->DoModal(hWndWindowItems[WINDOW_HANDLE], pReg);
}
return 0;
}
}
break;
case WM_GETMINMAXINFO: {
MINMAXINFO *mminfo = (MINMAXINFO*)lParam;
mminfo->ptMinTrackSize.x = ScaleGui(clsGuiSettingManager::mPtr->GetDefaultInteger(GUISETINT_REGS_WINDOW_WIDTH));
mminfo->ptMinTrackSize.y = ScaleGui(clsGuiSettingManager::mPtr->GetDefaultInteger(GUISETINT_REGS_WINDOW_HEIGHT));
return 0;
}
case WM_CLOSE: {
RECT rcRegs;
::GetWindowRect(hWndWindowItems[WINDOW_HANDLE], &rcRegs);
clsGuiSettingManager::mPtr->SetInteger(GUISETINT_REGS_WINDOW_WIDTH, rcRegs.right - rcRegs.left);
clsGuiSettingManager::mPtr->SetInteger(GUISETINT_REGS_WINDOW_HEIGHT, rcRegs.bottom - rcRegs.top);
clsGuiSettingManager::mPtr->SetInteger(GUISETINT_REGS_NICK, (int)::SendMessage(hWndWindowItems[LV_REGS], LVM_GETCOLUMNWIDTH, 0, 0));
clsGuiSettingManager::mPtr->SetInteger(GUISETINT_REGS_PASSWORD, (int)::SendMessage(hWndWindowItems[LV_REGS], LVM_GETCOLUMNWIDTH, 1, 0));
clsGuiSettingManager::mPtr->SetInteger(GUISETINT_REGS_PROFILE, (int)::SendMessage(hWndWindowItems[LV_REGS], LVM_GETCOLUMNWIDTH, 2, 0));
::EnableWindow(::GetParent(hWndWindowItems[WINDOW_HANDLE]), TRUE);
clsServerManager::hWndActiveDialog = NULL;
break;
}
case WM_NCDESTROY: {
HWND hWnd = hWndWindowItems[WINDOW_HANDLE];
delete this;
return ::DefWindowProc(hWnd, uMsg, wParam, lParam);
}
case WM_SETFOCUS:
if((UINT)::SendMessage(hWndWindowItems[LV_REGS], LVM_GETSELECTEDCOUNT, 0, 0) != 0) {
::SetFocus(hWndWindowItems[LV_REGS]);
} else {
::SetFocus(hWndWindowItems[EDT_FILTER]);
}
return 0;
case WM_ACTIVATE:
if(LOWORD(wParam) != WA_INACTIVE) {
clsServerManager::hWndActiveDialog = hWndWindowItems[WINDOW_HANDLE];
}
break;
}
return ::DefWindowProc(hWndWindowItems[WINDOW_HANDLE], uMsg, wParam, lParam);
}
//------------------------------------------------------------------------------
void clsRegisteredUsersDialog::DoModal(HWND hWndParent) {
if(atomRegisteredUsersDialog == 0) {
WNDCLASSEX m_wc;
memset(&m_wc, 0, sizeof(WNDCLASSEX));
m_wc.cbSize = sizeof(WNDCLASSEX);
m_wc.lpfnWndProc = ::DefWindowProc;
m_wc.hbrBackground = (HBRUSH)(COLOR_3DFACE + 1);
m_wc.lpszClassName = "PtokaX_RegisteredUsersDialog";
m_wc.hInstance = clsServerManager::hInstance;
m_wc.hCursor = ::LoadCursor(m_wc.hInstance, IDC_ARROW);
m_wc.style = CS_HREDRAW | CS_VREDRAW;
atomRegisteredUsersDialog = ::RegisterClassEx(&m_wc);
}
RECT rcParent;
::GetWindowRect(hWndParent, &rcParent);
int iX = (rcParent.left + (((rcParent.right-rcParent.left))/2)) - (ScaleGuiDefaultsOnly(GUISETINT_REGS_WINDOW_WIDTH) / 2);
int iY = (rcParent.top + ((rcParent.bottom-rcParent.top)/2)) - (ScaleGuiDefaultsOnly(GUISETINT_REGS_WINDOW_HEIGHT) / 2);
hWndWindowItems[WINDOW_HANDLE] = ::CreateWindowEx(WS_EX_DLGMODALFRAME | WS_EX_WINDOWEDGE, MAKEINTATOM(atomRegisteredUsersDialog), clsLanguageManager::mPtr->sTexts[LAN_REG_USERS],
WS_POPUP | WS_CAPTION | WS_MAXIMIZEBOX | WS_SYSMENU | WS_SIZEBOX | WS_CLIPCHILDREN | WS_CLIPSIBLINGS,
iX >= 5 ? iX : 5, iY >= 5 ? iY : 5, ScaleGuiDefaultsOnly(GUISETINT_REGS_WINDOW_WIDTH), ScaleGuiDefaultsOnly(GUISETINT_REGS_WINDOW_HEIGHT),
hWndParent, NULL, clsServerManager::hInstance, NULL);
if(hWndWindowItems[WINDOW_HANDLE] == NULL) {
return;
}
clsServerManager::hWndActiveDialog = hWndWindowItems[WINDOW_HANDLE];
::SetWindowLongPtr(hWndWindowItems[WINDOW_HANDLE], GWLP_USERDATA, (LONG_PTR)this);
::SetWindowLongPtr(hWndWindowItems[WINDOW_HANDLE], GWLP_WNDPROC, (LONG_PTR)StaticRegisteredUsersDialogProc);
::GetClientRect(hWndWindowItems[WINDOW_HANDLE], &rcParent);
hWndWindowItems[BTN_ADD_REG] = ::CreateWindowEx(0, WC_BUTTON, clsLanguageManager::mPtr->sTexts[LAN_ADD_NEW_REG], WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_PUSHBUTTON,
2, 2, (rcParent.right / 3) - 2, clsGuiSettingManager::iEditHeight, hWndWindowItems[WINDOW_HANDLE], (HMENU)(BTN_ADD_REG+100), clsServerManager::hInstance, NULL);
hWndWindowItems[LV_REGS] = ::CreateWindowEx(WS_EX_CLIENTEDGE, WC_LISTVIEW, "", WS_CHILD | WS_VISIBLE | WS_TABSTOP | LVS_REPORT | LVS_SHOWSELALWAYS,
3, clsGuiSettingManager::iEditHeight + 6, rcParent.right - 6, rcParent.bottom - clsGuiSettingManager::iOneLineGB - clsGuiSettingManager::iEditHeight - 11, hWndWindowItems[WINDOW_HANDLE], NULL, clsServerManager::hInstance, NULL);
::SendMessage(hWndWindowItems[LV_REGS], LVM_SETEXTENDEDLISTVIEWSTYLE, 0, LVS_EX_DOUBLEBUFFER | LVS_EX_FULLROWSELECT | LVS_EX_GRIDLINES | LVS_EX_LABELTIP);
hWndWindowItems[GB_FILTER] = ::CreateWindowEx(WS_EX_TRANSPARENT, WC_BUTTON, clsLanguageManager::mPtr->sTexts[LAN_FILTER_REGISTERED_USERS], WS_CHILD | WS_VISIBLE | BS_GROUPBOX,
3, rcParent.bottom - clsGuiSettingManager::iOneLineGB - 3, rcParent.right - 6, clsGuiSettingManager::iOneLineGB, hWndWindowItems[WINDOW_HANDLE], NULL, clsServerManager::hInstance, NULL);
hWndWindowItems[EDT_FILTER] = ::CreateWindowEx(WS_EX_CLIENTEDGE, WC_EDIT, "", WS_CHILD | WS_VISIBLE | WS_TABSTOP | ES_AUTOHSCROLL,
11, (rcParent.bottom - clsGuiSettingManager::iOneLineGB - 3) + clsGuiSettingManager::iGroupBoxMargin, (rcParent.right / 2)-14, clsGuiSettingManager::iEditHeight, hWndWindowItems[WINDOW_HANDLE], (HMENU)EDT_FILTER, clsServerManager::hInstance, NULL);
::SendMessage(hWndWindowItems[EDT_FILTER], EM_SETLIMITTEXT, 64, 0);
hWndWindowItems[CB_FILTER] = ::CreateWindowEx(0, WC_COMBOBOX, "", WS_CHILD | WS_VISIBLE | WS_VSCROLL | WS_TABSTOP | CBS_DROPDOWNLIST,
(rcParent.right / 2) + 3, (rcParent.bottom - clsGuiSettingManager::iOneLineGB - 3) + clsGuiSettingManager::iGroupBoxMargin, rcParent.right - (rcParent.right / 2) - 14, clsGuiSettingManager::iEditHeight,
hWndWindowItems[WINDOW_HANDLE], (HMENU)CB_FILTER, clsServerManager::hInstance, NULL);
for(uint8_t ui8i = 0; ui8i < (sizeof(hWndWindowItems) / sizeof(hWndWindowItems[0])); ui8i++) {
if(hWndWindowItems[ui8i] == NULL) {
return;
}
::SendMessage(hWndWindowItems[ui8i], WM_SETFONT, (WPARAM)clsGuiSettingManager::hFont, MAKELPARAM(TRUE, 0));
}
::SendMessage(hWndWindowItems[CB_FILTER], CB_ADDSTRING, 0, (LPARAM)clsLanguageManager::mPtr->sTexts[LAN_NICK]);
::SendMessage(hWndWindowItems[CB_FILTER], CB_ADDSTRING, 0, (LPARAM)clsLanguageManager::mPtr->sTexts[LAN_PASSWORD]);
::SendMessage(hWndWindowItems[CB_FILTER], CB_ADDSTRING, 0, (LPARAM)clsLanguageManager::mPtr->sTexts[LAN_PROFILE]);
::SendMessage(hWndWindowItems[CB_FILTER], CB_SETCURSEL, 0, 0);
RECT rcRegs;
::GetClientRect(hWndWindowItems[LV_REGS], &rcRegs);
LVCOLUMN lvColumn = { 0 };
lvColumn.mask = LVCF_FMT | LVCF_WIDTH | LVCF_TEXT | LVCF_SUBITEM;
lvColumn.fmt = LVCFMT_LEFT;
lvColumn.cx = clsGuiSettingManager::mPtr->i32Integers[GUISETINT_REGS_NICK];
lvColumn.pszText = clsLanguageManager::mPtr->sTexts[LAN_NICK];
lvColumn.iSubItem = 0;
::SendMessage(hWndWindowItems[LV_REGS], LVM_INSERTCOLUMN, 0, (LPARAM)&lvColumn);
lvColumn.fmt = LVCFMT_RIGHT;
lvColumn.cx = clsGuiSettingManager::mPtr->i32Integers[GUISETINT_REGS_PASSWORD];
lvColumn.pszText = clsLanguageManager::mPtr->sTexts[LAN_PASSWORD];
lvColumn.iSubItem = 1;
::SendMessage(hWndWindowItems[LV_REGS], LVM_INSERTCOLUMN, 1, (LPARAM)&lvColumn);
lvColumn.cx = clsGuiSettingManager::mPtr->i32Integers[GUISETINT_REGS_PROFILE];
lvColumn.pszText = clsLanguageManager::mPtr->sTexts[LAN_PROFILE];
lvColumn.iSubItem = 2;
::SendMessage(hWndWindowItems[LV_REGS], LVM_INSERTCOLUMN, 2, (LPARAM)&lvColumn);
ListViewUpdateArrow(hWndWindowItems[LV_REGS], bSortAscending, iSortColumn);
AddAllRegs();
::EnableWindow(hWndParent, FALSE);
::ShowWindow(hWndWindowItems[WINDOW_HANDLE], SW_SHOW);
}
//------------------------------------------------------------------------------
void clsRegisteredUsersDialog::AddAllRegs() {
::SendMessage(hWndWindowItems[LV_REGS], WM_SETREDRAW, (WPARAM)FALSE, 0);
::SendMessage(hWndWindowItems[LV_REGS], LVM_DELETEALLITEMS, 0, 0);
RegUser * curReg = NULL,
* nextReg = clsRegManager::mPtr->pRegListS;
while(nextReg != NULL) {
curReg = nextReg;
nextReg = curReg->pNext;
AddReg(curReg);
}
ListViewSelectFirstItem(hWndWindowItems[LV_REGS]);
::SendMessage(hWndWindowItems[LV_REGS], WM_SETREDRAW, (WPARAM)TRUE, 0);
}
//------------------------------------------------------------------------------
void clsRegisteredUsersDialog::AddReg(const RegUser * pReg) {
LVITEM lvItem = { 0 };
lvItem.mask = LVIF_PARAM | LVIF_TEXT;
lvItem.iItem = ListViewGetInsertPosition(hWndWindowItems[LV_REGS], pReg, bSortAscending, CompareRegs);
lvItem.pszText = pReg->sNick;
lvItem.lParam = (LPARAM)pReg;
int i = (int)::SendMessage(hWndWindowItems[LV_REGS], LVM_INSERTITEM, 0, (LPARAM)&lvItem);
if(i != -1) {
char sHexaHash[129];
lvItem.mask = LVIF_TEXT;
lvItem.iItem = i;
lvItem.iSubItem = 1;
if(pReg->bPassHash == true) {
memset(&sHexaHash, 0, 129);
for(uint8_t ui8i = 0; ui8i < 64; ui8i++) {
sprintf(sHexaHash+(ui8i*2), "%02X", pReg->ui8PassHash[ui8i]);
}
lvItem.pszText = sHexaHash;
} else {
lvItem.pszText = pReg->sPass;
}
::SendMessage(hWndWindowItems[LV_REGS], LVM_SETITEM, 0, (LPARAM)&lvItem);
lvItem.iSubItem = 2;
lvItem.pszText = clsProfileManager::mPtr->ppProfilesTable[pReg->ui16Profile]->sName;
::SendMessage(hWndWindowItems[LV_REGS], LVM_SETITEM, 0, (LPARAM)&lvItem);
}
}
//------------------------------------------------------------------------------
int clsRegisteredUsersDialog::CompareRegs(const void * pItem, const void * pOtherItem) {
RegUser * pFirstReg = (RegUser *)pItem;
RegUser * pSecondReg = (RegUser *)pOtherItem;
switch(clsRegisteredUsersDialog::mPtr->iSortColumn) {
case 0:
return _stricmp(pFirstReg->sNick, pSecondReg->sNick);
case 1:
return _stricmp(pFirstReg->sPass, pSecondReg->sPass);
case 2:
return (pFirstReg->ui16Profile > pSecondReg->ui16Profile) ? 1 : ((pFirstReg->ui16Profile == pSecondReg->ui16Profile) ? 0 : -1);
default:
return 0; // never happen, but we need to make compiler/complainer happy ;o)
}
}
//------------------------------------------------------------------------------
void clsRegisteredUsersDialog::OnColumnClick(const LPNMLISTVIEW &pListView) {
if(pListView->iSubItem != iSortColumn) {
bSortAscending = true;
iSortColumn = pListView->iSubItem;
} else {
bSortAscending = !bSortAscending;
}
ListViewUpdateArrow(hWndWindowItems[LV_REGS], bSortAscending, iSortColumn);
::SendMessage(hWndWindowItems[LV_REGS], LVM_SORTITEMS, 0, (LPARAM)&SortCompareRegs);
}
//------------------------------------------------------------------------------
int CALLBACK clsRegisteredUsersDialog::SortCompareRegs(LPARAM lParam1, LPARAM lParam2, LPARAM /*lParamSort*/) {
int iResult = clsRegisteredUsersDialog::mPtr->CompareRegs((void *)lParam1, (void *)lParam2);
return (clsRegisteredUsersDialog::mPtr->bSortAscending == true ? iResult : -iResult);
}
//------------------------------------------------------------------------------
void clsRegisteredUsersDialog::RemoveRegs() {
if(::MessageBox(hWndWindowItems[WINDOW_HANDLE], (string(clsLanguageManager::mPtr->sTexts[LAN_ARE_YOU_SURE], (size_t)clsLanguageManager::mPtr->ui16TextsLens[LAN_ARE_YOU_SURE])+" ?").c_str(), g_sPtokaXTitle, MB_YESNO | MB_ICONQUESTION | MB_DEFBUTTON2) == IDNO) {
return;
}
::SendMessage(hWndWindowItems[LV_REGS], WM_SETREDRAW, (WPARAM)FALSE, 0);
RegUser * pReg = NULL;
int iSel = -1;
while((iSel = (int)::SendMessage(hWndWindowItems[LV_REGS], LVM_GETNEXTITEM, (WPARAM)-1, LVNI_SELECTED)) != -1) {
pReg = (RegUser *)ListViewGetItem(hWndWindowItems[LV_REGS], iSel);
clsRegManager::mPtr->Delete(pReg, true);
::SendMessage(hWndWindowItems[LV_REGS], LVM_DELETEITEM, iSel, 0);
}
::SendMessage(hWndWindowItems[LV_REGS], WM_SETREDRAW, (WPARAM)TRUE, 0);
}
//------------------------------------------------------------------------------
void clsRegisteredUsersDialog::FilterRegs() {
int iTextLength = ::GetWindowTextLength(hWndWindowItems[EDT_FILTER]);
if(iTextLength == 0) {
sFilterString.clear();
AddAllRegs();
} else {
iFilterColumn = (int)::SendMessage(hWndWindowItems[CB_FILTER], CB_GETCURSEL, 0, 0);
char buf[65];
int iLen = ::GetWindowText(hWndWindowItems[EDT_FILTER], buf, 65);
for(int i = 0; i < iLen; i++) {
buf[i] = (char)tolower(buf[i]);
}
sFilterString = buf;
::SendMessage(hWndWindowItems[LV_REGS], WM_SETREDRAW, (WPARAM)FALSE, 0);
::SendMessage(hWndWindowItems[LV_REGS], LVM_DELETEALLITEMS, 0, 0);
RegUser * curReg = NULL,
* nextReg = clsRegManager::mPtr->pRegListS;
while(nextReg != NULL) {
curReg = nextReg;
nextReg = curReg->pNext;
switch(iFilterColumn) {
case 0:
if(stristr2(curReg->sNick, sFilterString.c_str()) == NULL) {
continue;
}
break;
case 1:
if(stristr2(curReg->sPass, sFilterString.c_str()) == NULL) {
continue;
}
break;
case 2:
if(stristr2(clsProfileManager::mPtr->ppProfilesTable[curReg->ui16Profile]->sName, sFilterString.c_str()) == NULL) {
continue;
}
break;
}
AddReg(curReg);
}
ListViewSelectFirstItem(hWndWindowItems[LV_REGS]);
::SendMessage(hWndWindowItems[LV_REGS], WM_SETREDRAW, (WPARAM)TRUE, 0);
}
}
//------------------------------------------------------------------------------
void clsRegisteredUsersDialog::RemoveReg(const RegUser * pReg) {
int iPos = ListViewGetItemPosition(hWndWindowItems[LV_REGS], (void *)pReg);
if(iPos != -1) {
::SendMessage(hWndWindowItems[LV_REGS], LVM_DELETEITEM, iPos, 0);
}
}
//------------------------------------------------------------------------------
void clsRegisteredUsersDialog::UpdateProfiles() {
int iItemCount = (int)::SendMessage(hWndWindowItems[LV_REGS], LVM_GETITEMCOUNT, 0, 0);
if(iItemCount == 0) {
return;
}
::SendMessage(hWndWindowItems[LV_REGS], WM_SETREDRAW, (WPARAM)FALSE, 0);
RegUser * pReg = NULL;
LVITEM lvItem = { 0 };
lvItem.mask = LVIF_TEXT;
lvItem.iSubItem = 2;
for(int i = 0; i < iItemCount; i++) {
pReg = (RegUser *)ListViewGetItem(hWndWindowItems[LV_REGS], i);
lvItem.iItem = i;
lvItem.pszText = clsProfileManager::mPtr->ppProfilesTable[pReg->ui16Profile]->sName;
::SendMessage(hWndWindowItems[LV_REGS], LVM_SETITEM, 0, (LPARAM)&lvItem);
}
::SendMessage(hWndWindowItems[LV_REGS], WM_SETREDRAW, (WPARAM)TRUE, 0);
if(iSortColumn == 2) {
::SendMessage(hWndWindowItems[LV_REGS], LVM_SORTITEMS, 0, (LPARAM)&SortCompareRegs);
}
}
//------------------------------------------------------------------------------
void clsRegisteredUsersDialog::OnContextMenu(HWND hWindow, LPARAM lParam) {
if(hWindow != hWndWindowItems[LV_REGS]) {
return;
}
UINT UISelectedCount = (UINT)::SendMessage(hWndWindowItems[LV_REGS], LVM_GETSELECTEDCOUNT, 0, 0);
if(UISelectedCount == 0) {
return;
}
HMENU hMenu = ::CreatePopupMenu();
if(UISelectedCount == 1) {
::AppendMenu(hMenu, MF_STRING, IDC_CHANGE_REG, clsLanguageManager::mPtr->sTexts[LAN_CHANGE]);
::AppendMenu(hMenu, MF_SEPARATOR, 0, NULL);
}
::AppendMenu(hMenu, MF_STRING, IDC_REMOVE_REGS, clsLanguageManager::mPtr->sTexts[LAN_REMOVE]);
int iX = GET_X_LPARAM(lParam);
int iY = GET_Y_LPARAM(lParam);
ListViewGetMenuPos(hWndWindowItems[LV_REGS], iX, iY);
::TrackPopupMenuEx(hMenu, TPM_LEFTALIGN | TPM_RIGHTBUTTON, iX, iY, hWndWindowItems[WINDOW_HANDLE], NULL);
::DestroyMenu(hMenu);
}
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
void clsRegisteredUsersDialog::ChangeReg() {
int iSel = (int)::SendMessage(hWndWindowItems[LV_REGS], LVM_GETNEXTITEM, (WPARAM)-1, LVNI_SELECTED);
if(iSel == -1) {
return;
}
RegUser * pReg = (RegUser *)ListViewGetItem(hWndWindowItems[LV_REGS], iSel);
clsRegisteredUserDialog::mPtr = new (std::nothrow) clsRegisteredUserDialog();
if(clsRegisteredUserDialog::mPtr != NULL) {
clsRegisteredUserDialog::mPtr->DoModal(hWndWindowItems[WINDOW_HANDLE], pReg);
}
}
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| hjpotter92/PtokaX | gui.win/RegisteredUsersDialog.cpp | C++ | gpl-3.0 | 25,052 | [
30522,
1013,
1008,
1008,
13866,
12352,
2595,
1011,
9594,
8241,
2005,
3622,
7532,
8152,
2000,
8152,
2897,
1012,
1008,
9385,
1006,
1039,
1007,
2432,
1011,
2325,
9004,
2099,
12849,
12638,
2912,
1010,
4903,
2243,
2012,
13866,
12352,
2595,
11089... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<?php
/**
* Sidebar
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
get_sidebar(); ?>
| dunskii/BookingX | templates/global/sidebar.php | PHP | gpl-3.0 | 108 | [
30522,
1026,
1029,
25718,
1013,
1008,
1008,
1008,
2217,
8237,
1008,
1013,
2065,
1006,
999,
4225,
1006,
1005,
14689,
15069,
1005,
1007,
1007,
6164,
1025,
1013,
1013,
6164,
2065,
11570,
3495,
2131,
1035,
2217,
8237,
1006,
1007,
1025,
1029,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
"""
Created on Thu Jan 31 2018
Unit tests for the Balance game
@author: IvanPopov
"""
import unittest
from game import Game
class GameTest(unittest.TestCase):
def test_game_loads(self):
g=Game()
self.assertEqual(g.c.title(), "Balance") | ipopov13/Balance | legacy_code/tests.py | Python | gpl-3.0 | 259 | [
30522,
1000,
1000,
1000,
2580,
2006,
16215,
2226,
5553,
2861,
2760,
3131,
5852,
2005,
1996,
5703,
2208,
1030,
3166,
1024,
7332,
16340,
4492,
1000,
1000,
1000,
12324,
3131,
22199,
2013,
2208,
12324,
2208,
2465,
2208,
22199,
1006,
3131,
22199... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior University
// Copyright (c) 2011, 2012 Open Networking Foundation
// Copyright (c) 2012, 2013 Big Switch Networks, Inc.
// This library was generated by the LoxiGen Compiler.
// See the file LICENSE.txt which should have been included in the source distribution
// Automatically generated by LOXI from template of_interface.java
// Do not modify
package org.projectfloodlight.openflow.protocol;
import org.projectfloodlight.openflow.protocol.*;
import org.projectfloodlight.openflow.protocol.action.*;
import org.projectfloodlight.openflow.protocol.actionid.*;
import org.projectfloodlight.openflow.protocol.bsntlv.*;
import org.projectfloodlight.openflow.protocol.errormsg.*;
import org.projectfloodlight.openflow.protocol.meterband.*;
import org.projectfloodlight.openflow.protocol.instruction.*;
import org.projectfloodlight.openflow.protocol.instructionid.*;
import org.projectfloodlight.openflow.protocol.match.*;
import org.projectfloodlight.openflow.protocol.stat.*;
import org.projectfloodlight.openflow.protocol.oxm.*;
import org.projectfloodlight.openflow.protocol.oxs.*;
import org.projectfloodlight.openflow.protocol.queueprop.*;
import org.projectfloodlight.openflow.types.*;
import org.projectfloodlight.openflow.util.*;
import org.projectfloodlight.openflow.exceptions.*;
import io.netty.buffer.ByteBuf;
public interface OFAsyncConfigPropExperimenterMaster extends OFObject, OFAsyncConfigProp {
int getType();
OFVersion getVersion();
void writeTo(ByteBuf channelBuffer);
Builder createBuilder();
public interface Builder extends OFAsyncConfigProp.Builder {
OFAsyncConfigPropExperimenterMaster build();
int getType();
OFVersion getVersion();
}
}
| mehdi149/OF_COMPILER_0.1 | gen-src/main/java/org/projectfloodlight/openflow/protocol/OFAsyncConfigPropExperimenterMaster.java | Java | apache-2.0 | 1,789 | [
30522,
1013,
1013,
9385,
1006,
1039,
1007,
2263,
1996,
2604,
1997,
9360,
1997,
1996,
27134,
8422,
3502,
2118,
1013,
1013,
9385,
1006,
1039,
1007,
2249,
1010,
2262,
2330,
14048,
3192,
1013,
1013,
9385,
1006,
1039,
1007,
2262,
1010,
2286,
2... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
//= require ./ace/ace
//= require ./ace/mode-ruby
//= require ./ace/theme-tomorrow
//= require ./ace/ext-whitespace
$(function() {
var editor = ace.edit("editor");
editor.setTheme("ace/theme/tomorrow");
editor.getSession().setMode("ace/mode/ruby");
editor.getSession().setTabSize(2);
editor.getSession().setUseSoftTabs(true);
$("form").submit(function() {
$("#content").val(editor.getValue());
});
});
| cctiger36/batch_manager | app/assets/javascripts/batch_manager/editor.js | JavaScript | mit | 422 | [
30522,
1013,
1013,
1027,
5478,
1012,
1013,
9078,
1013,
9078,
1013,
1013,
1027,
5478,
1012,
1013,
9078,
1013,
5549,
1011,
10090,
1013,
1013,
1027,
5478,
1012,
1013,
9078,
1013,
4323,
1011,
4826,
1013,
1013,
1027,
5478,
1012,
1013,
9078,
10... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
SET(CMAKE_CXX_COMPILER "/usr/bin/c++")
SET(CMAKE_CXX_COMPILER_ARG1 "")
SET(CMAKE_CXX_COMPILER_ID "GNU")
SET(CMAKE_CXX_PLATFORM_ID "Linux")
SET(CMAKE_AR "/usr/bin/ar")
SET(CMAKE_RANLIB "/usr/bin/ranlib")
SET(CMAKE_LINKER "/usr/bin/ld")
SET(CMAKE_COMPILER_IS_GNUCXX 1)
SET(CMAKE_CXX_COMPILER_LOADED 1)
SET(CMAKE_COMPILER_IS_MINGW )
SET(CMAKE_COMPILER_IS_CYGWIN )
IF(CMAKE_COMPILER_IS_CYGWIN)
SET(CYGWIN 1)
SET(UNIX 1)
ENDIF(CMAKE_COMPILER_IS_CYGWIN)
SET(CMAKE_CXX_COMPILER_ENV_VAR "CXX")
IF(CMAKE_COMPILER_IS_MINGW)
SET(MINGW 1)
ENDIF(CMAKE_COMPILER_IS_MINGW)
SET(CMAKE_CXX_COMPILER_ID_RUN 1)
SET(CMAKE_CXX_IGNORE_EXTENSIONS inl;h;H;o;O;obj;OBJ;def;DEF;rc;RC)
SET(CMAKE_CXX_SOURCE_FILE_EXTENSIONS C;M;c++;cc;cpp;cxx;m;mm)
SET(CMAKE_CXX_LINKER_PREFERENCE 30)
SET(CMAKE_CXX_LINKER_PREFERENCE_PROPAGATES 1)
# Save compiler ABI information.
SET(CMAKE_CXX_SIZEOF_DATA_PTR "4")
SET(CMAKE_CXX_COMPILER_ABI "ELF")
IF(CMAKE_CXX_SIZEOF_DATA_PTR)
SET(CMAKE_SIZEOF_VOID_P "${CMAKE_CXX_SIZEOF_DATA_PTR}")
ENDIF(CMAKE_CXX_SIZEOF_DATA_PTR)
IF(CMAKE_CXX_COMPILER_ABI)
SET(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_CXX_COMPILER_ABI}")
ENDIF(CMAKE_CXX_COMPILER_ABI)
SET(CMAKE_CXX_HAS_ISYSROOT "")
SET(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "stdc++;m;c")
SET(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/i486-linux-gnu/4.4.5;/usr/lib;/lib;/usr/lib/i486-linux-gnu")
| mfcarmona/ros-isis | rostage_isis/build/CMakeFiles/CMakeCXXCompiler.cmake | CMake | gpl-2.0 | 1,358 | [
30522,
2275,
1006,
4642,
13808,
1035,
1039,
20348,
1035,
21624,
1000,
1013,
2149,
2099,
1013,
8026,
1013,
1039,
1009,
1009,
1000,
1007,
2275,
1006,
4642,
13808,
1035,
1039,
20348,
1035,
21624,
1035,
12098,
2290,
2487,
1000,
1000,
1007,
2275... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/* About section */
.support-about ul {
display: grid;
grid-template-columns: repeat(6, 1fr);
grid-gap: 1em;
}
@media (max-width: 900px) {
.support-about ul {
grid-template-columns: repeat(3, 1fr);
}
}
@media (max-width: 620px) {
.support-about ul {
grid-template-columns: repeat(2, 1fr);
}
}
.support-about li {
list-style-type: none;
text-align: center;
position: relative;
padding: 0;
margin: 1em;
min-height: 100px;
}
.support-about li a {
display: block;
width: 100%;
height: 100%;
}
.support-about li span.fa {
color: inherit;
display: block;
padding: 0.5em;
text-decoration: none;
font-size: 3em;
}
.support-about li span.label {
position: absolute;
margin-top: 1em;
margin-bottom: 0;
text-align: center;
bottom: 0;
border: 0;
width: 100%;
display: block;
}
.about h3 {
margin-top: 2em;
}
.about ul {
padding: 0;
}
.about h3:first-child {
margin-top: auto;
}
| bnjbvr/kresus | client/css/sections/about.css | CSS | mit | 1,019 | [
30522,
1013,
1008,
2055,
2930,
1008,
1013,
1012,
2490,
1011,
2055,
17359,
1063,
4653,
1024,
8370,
1025,
8370,
1011,
23561,
1011,
7753,
1024,
9377,
1006,
1020,
1010,
1015,
19699,
1007,
1025,
8370,
1011,
6578,
1024,
1015,
6633,
1025,
1065,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
import unittest
from django.core.urlresolvers import resolve, reverse, NoReverseMatch
from pulp.server.webservices.urls import handler404
def assert_url_match(expected_url, url_name, *args, **kwargs):
"""
Generate a url given args and kwargs and pass it through Django's reverse and
resolve functions.
Example use to match a url /v2/tasks/<task_argument>/:
assert_url_match('/v2/tasks/example_arg/', 'tasks', task_argument='example_arg')
:param expected_url: the url that should be generated given a url_name and args
:type expected_url: str
:param url_name : name given to a url as defined in the urls.py
:type url_name : str
:param args : optional positional arguments to place into a url's parameters
as specified by urls.py
:type args : tuple
:param kwargs : optional named arguments to place into a url's parameters as
specified by urls.py
:type kwargs : dict
"""
try:
# Invalid arguments will cause a NoReverseMatch.
url = reverse(url_name, args=args, kwargs=kwargs)
except NoReverseMatch:
raise AssertionError(
"Name: '{0}' could match a url with args '{1}'"
"and kwargs '{2}'".format(url_name, args, kwargs)
)
else:
# If the url exists but is not the expected url.
if url != expected_url:
raise AssertionError(
'url {0} not equal to expected url {1}'.format(url, expected_url))
# Run this url back through resolve and ensure that it matches the url_name.
matched_view = resolve(url)
if matched_view.url_name != url_name:
raise AssertionError('Url name {0} not equal to expected url name {1}'.format(
matched_view.url_name, url_name)
)
class TestNotFoundHandler(unittest.TestCase):
def test_not_found_handler(self):
"""
Test that the handler404 module attribute is set as expected.
"""
self.assertEqual(handler404, 'pulp.server.webservices.views.util.page_not_found')
class TestDjangoContentUrls(unittest.TestCase):
"""
Test the matching of the content urls
"""
def test_match_content_catalog_resource(self):
"""
Test url matching for content_catalog_resource.
"""
url = '/v2/content/catalog/mock-source/'
url_name = 'content_catalog_resource'
assert_url_match(url, url_name, source_id='mock-source')
def test_match_content_orphan_collection(self):
"""
Test url matching for content_orphan_collection.
"""
url = '/v2/content/orphans/'
url_name = 'content_orphan_collection'
assert_url_match(url, url_name)
def test_match_content_units_collection(self):
"""
Test the url matching for content_units_collection.
"""
url = '/v2/content/units/mock-type/'
url_name = 'content_units_collection'
assert_url_match(url, url_name, type_id='mock-type')
def test_match_content_unit_search(self):
"""
Test the url matching for content_unit_search.
"""
url = '/v2/content/units/mock-type/search/'
url_name = 'content_unit_search'
assert_url_match(url, url_name, type_id='mock-type')
def test_match_content_unit_resource(self):
"""
Test url matching for content_unit_resource.
"""
url = '/v2/content/units/mock-type/mock-unit/'
url_name = 'content_unit_resource'
assert_url_match(url, url_name, type_id='mock-type', unit_id='mock-unit')
def test_match_content_unit_user_metadata_resource(self):
"""
Test url matching for content_unit_user_metadata_resource.
"""
url = '/v2/content/units/mock-type/mock-unit/pulp_user_metadata/'
url_name = 'content_unit_user_metadata_resource'
assert_url_match(url, url_name, type_id='mock-type', unit_id='mock-unit')
def test_match_content_upload_resource(self):
"""
Test url matching for content_upload_resource.
"""
url = '/v2/content/uploads/mock-upload/'
url_name = 'content_upload_resource'
assert_url_match(url, url_name, upload_id='mock-upload')
def test_match_content_upload_segment_resource(self):
"""
Test Url matching for content_upload_segment_resource.
"""
url = '/v2/content/uploads/mock-upload-id/8/'
url_name = 'content_upload_segment_resource'
assert_url_match(url, url_name, upload_id='mock-upload-id', offset='8')
def test_match_content_actions_delete_orphans(self):
"""
Test url matching for content_actions_delete_orphans.
"""
url = '/v2/content/actions/delete_orphans/'
url_name = 'content_actions_delete_orphans'
assert_url_match(url, url_name)
def test_match_content_orphan_resource(self):
"""
Test url matching for content_orphan_resource.
"""
url = '/v2/content/orphans/mock-type/mock-unit/'
url_name = 'content_orphan_resource'
assert_url_match(url, url_name, content_type='mock-type', unit_id='mock-unit')
def test_match_content_orphan_type_subcollection(self):
"""
Test url matching for content_orphan_type_subcollection.
"""
url = '/v2/content/orphans/mock_type/'
url_name = 'content_orphan_type_subcollection'
assert_url_match(url, url_name, content_type='mock_type')
def test_match_content_uploads(self):
"""
Test url matching for content_uploads.
"""
url = '/v2/content/uploads/'
url_name = 'content_uploads'
assert_url_match(url, url_name)
class TestDjangoPluginsUrls(unittest.TestCase):
"""
Test url matching for plugins urls.
"""
def test_match_distributor_resource_view(self):
"""
Test the url matching for the distributor resource view.
"""
url = '/v2/plugins/distributors/mock_distributor/'
url_name = 'plugin_distributor_resource'
assert_url_match(url, url_name, distributor_id='mock_distributor')
def test_match_distributors_view(self):
"""
Test the url matching for the Distributors view.
"""
url = '/v2/plugins/distributors/'
url_name = 'plugin_distributors'
assert_url_match(url, url_name)
def test_match_importer_resource_view(self):
"""
Test the url matching for plugin_importer_resource
"""
url = '/v2/plugins/importers/mock_importer_id/'
url_name = 'plugin_importer_resource'
assert_url_match(url, url_name, importer_id='mock_importer_id')
def test_match_importers_view(self):
"""
Test the url matching for the Importers view
"""
url = '/v2/plugins/importers/'
url_name = 'plugin_importers'
assert_url_match(url, url_name)
def test_match_type_resource_view(self):
"""
Test the url matching for the TypeResourceView.
"""
url = '/v2/plugins/types/type_id/'
url_name = 'plugin_type_resource'
assert_url_match(url, url_name, type_id='type_id')
def test_match_types_view(self):
"""
Test url matching for plugin_types.
"""
url = '/v2/plugins/types/'
url_name = 'plugin_types'
assert_url_match(url, url_name)
class TestDjangoLoginUrls(unittest.TestCase):
"""
Tests for root_actions urls.
"""
def test_match_login_view(self):
"""
Test url match for login.
"""
url = '/v2/actions/login/'
url_name = 'login'
assert_url_match(url, url_name)
class TestDjangoConsumerGroupsUrls(unittest.TestCase):
"""
Tests for consumer_groups urls
"""
def test_match_consumer_group_view(self):
"""
Test url matching for consumer_groups
"""
url = '/v2/consumer_groups/'
url_name = 'consumer_group'
assert_url_match(url, url_name)
def test_match_consumer_group_search_view(self):
"""
Test url matching for consumer_group_search
"""
url = '/v2/consumer_groups/search/'
url_name = 'consumer_group_search'
assert_url_match(url, url_name)
def test_match_consumer_group_resource_view(self):
"""
Test url matching for single consumer_group
"""
url = '/v2/consumer_groups/test-group/'
url_name = 'consumer_group_resource'
assert_url_match(url, url_name, consumer_group_id='test-group')
def test_match_consumer_group_associate_action_view(self):
"""
Test url matching for consumer_groups association
"""
url = '/v2/consumer_groups/test-group/actions/associate/'
url_name = 'consumer_group_associate'
assert_url_match(url, url_name, consumer_group_id='test-group')
def test_match_consumer_group_unassociate_action_view(self):
"""
Test url matching for consumer_groups unassociation
"""
url = '/v2/consumer_groups/test-group/actions/unassociate/'
url_name = 'consumer_group_unassociate'
assert_url_match(url, url_name, consumer_group_id='test-group')
def test_match_consumer_group_content_action_install_view(self):
"""
Test url matching for consumer_groups content installation
"""
url = '/v2/consumer_groups/test-group/actions/content/install/'
url_name = 'consumer_group_content'
assert_url_match(url, url_name, consumer_group_id='test-group', action='install')
def test_match_consumer_group_content_action_update_view(self):
"""
Test url matching for consumer_groups content update
"""
url = '/v2/consumer_groups/test-group/actions/content/update/'
url_name = 'consumer_group_content'
assert_url_match(url, url_name, consumer_group_id='test-group', action='update')
def test_match_consumer_group_content_action_uninstall_view(self):
"""
Test url matching for consumer_groups content uninstall
"""
url = '/v2/consumer_groups/test-group/actions/content/uninstall/'
url_name = 'consumer_group_content'
assert_url_match(url, url_name, consumer_group_id='test-group', action='uninstall')
def test_match_consumer_group_bindings_view(self):
"""
Test url matching for consumer_groups bindings
"""
url = '/v2/consumer_groups/test-group/bindings/'
url_name = 'consumer_group_bind'
assert_url_match(url, url_name, consumer_group_id='test-group')
def test_match_consumer_group_binding_view(self):
"""
Test url matching for consumer_groups binding removal
"""
url = '/v2/consumer_groups/test-group/bindings/repo1/dist1/'
url_name = 'consumer_group_unbind'
assert_url_match(url, url_name, consumer_group_id='test-group',
repo_id='repo1', distributor_id='dist1')
class TestDjangoRepositoriesUrls(unittest.TestCase):
"""
Test url matching for repositories urls.
"""
def test_match_repos(self):
"""
Test url matching for repos.
"""
url = '/v2/repositories/'
url_name = 'repos'
assert_url_match(url, url_name)
def test_match_repo_search(self):
"""
Test url matching for repo_search.
"""
url = '/v2/repositories/search/'
url_name = 'repo_search'
assert_url_match(url, url_name)
def test_match_repo_content_app_regen(self):
"""
Test url matching for repo_content_app_regen.
"""
url_name = 'repo_content_app_regen'
url = '/v2/repositories/actions/content/regenerate_applicability/'
assert_url_match(url, url_name)
def test_match_repo_resource(self):
"""
Test url matching for repo_resource.
"""
url_name = 'repo_resource'
url = '/v2/repositories/mock_repo/'
assert_url_match(url, url_name, repo_id='mock_repo')
def test_match_repo_unit_search(self):
"""
Test url matching for repo_unit_search.
"""
url_name = 'repo_unit_search'
url = '/v2/repositories/mock_repo/search/units/'
assert_url_match(url, url_name, repo_id='mock_repo')
def test_match_repo_importers(self):
"""
Test url matching for repo_importers.
"""
url_name = 'repo_importers'
url = '/v2/repositories/mock_repo/importers/'
assert_url_match(url, url_name, repo_id='mock_repo')
def test_match_repo_importer_resource(self):
"""
Test url matching for repo_importer_resource.
"""
url = '/v2/repositories/mock_repo/importers/mock_importer/'
url_name = 'repo_importer_resource'
assert_url_match(url, url_name, repo_id='mock_repo', importer_id='mock_importer')
def test_match_repo_sync_schedule_collection(self):
"""
Test url matching for repo_sync_schedules.
"""
url = '/v2/repositories/mock_repo/importers/mock_importer/schedules/sync/'
url_name = 'repo_sync_schedules'
assert_url_match(url, url_name, repo_id='mock_repo', importer_id='mock_importer')
def test_match_repo_sync_schedule_resource(self):
"""
Test url matching for repo_sync_schedule_resource.
"""
url = '/v2/repositories/mock_repo/importers/mock_importer/schedules/sync/mock_schedule/'
url_name = 'repo_sync_schedule_resource'
assert_url_match(url, url_name, repo_id='mock_repo', importer_id='mock_importer',
schedule_id='mock_schedule')
def test_match_repo_distributors(self):
"""
Test url matching for repo_distributors.
"""
url = '/v2/repositories/mock_repo/distributors/'
url_name = 'repo_distributors'
assert_url_match(url, url_name, repo_id='mock_repo')
def test_match_repo_distributor_resource(self):
"""
Test url matching for repo_distributor_resource.
"""
url = '/v2/repositories/mock_repo/distributors/mock_distributor/'
url_name = 'repo_distributor_resource'
assert_url_match(url, url_name, repo_id='mock_repo', distributor_id='mock_distributor')
def test_match_repo_publish_schedules(self):
"""
Test url matching for repo_publish_schedules.
"""
url = '/v2/repositories/mock_repo/distributors/mock_distributor/schedules/publish/'
url_name = 'repo_publish_schedules'
assert_url_match(url, url_name, repo_id='mock_repo', distributor_id='mock_distributor')
def test_match_repo_publish_schedule_resource(self):
"""
Test url matching for repo_publish_schedule_resource.
"""
url = '/v2/repositories/mock_repo/distributors/'\
'mock_distributor/schedules/publish/mock_schedule/'
url_name = 'repo_publish_schedule_resource'
assert_url_match(url, url_name, repo_id='mock_repo', distributor_id='mock_distributor',
schedule_id='mock_schedule')
def test_match_repo_sync_history(self):
"""
Test url matching for repo_sync_history.
"""
url = '/v2/repositories/mock_repo/history/sync/'
url_name = 'repo_sync_history'
assert_url_match(url, url_name, repo_id='mock_repo')
def test_match_repo_sync(self):
"""
Test url matching for repo_sync.
"""
url = '/v2/repositories/mock_repo/actions/sync/'
url_name = 'repo_sync'
assert_url_match(url, url_name, repo_id='mock_repo')
def test_match_repo_download(self):
"""
Test url matching for repo_download.
"""
url = '/v2/repositories/mock_repo/actions/download/'
url_name = 'repo_download'
assert_url_match(url, url_name, repo_id='mock_repo')
def test_match_repo_publish_history(self):
"""
Test url matching for repo_publish_history.
"""
url = '/v2/repositories/mock_repo/history/publish/mock_dist/'
url_name = 'repo_publish_history'
assert_url_match(url, url_name, repo_id='mock_repo', distributor_id='mock_dist')
def test_match_repo_publish(self):
"""
Test url matching for repo_publish.
"""
url = '/v2/repositories/mock_repo/actions/publish/'
url_name = 'repo_publish'
assert_url_match(url, url_name, repo_id='mock_repo')
def test_match_repo_associate(self):
"""
Test url matching for repo_associate.
"""
url = '/v2/repositories/mock_repo/actions/associate/'
url_name = 'repo_associate'
assert_url_match(url, url_name, dest_repo_id='mock_repo')
def test_match_repo_unassociate(self):
"""
Test url matching for repo_unassociate.
"""
url = '/v2/repositories/mock_repo/actions/unassociate/'
url_name = 'repo_unassociate'
assert_url_match(url, url_name, repo_id='mock_repo')
def test_match_repo_import_upload(self):
"""
Test url matching for repo_import_upload.
"""
url = '/v2/repositories/mock_repo/actions/import_upload/'
url_name = 'repo_import_upload'
assert_url_match(url, url_name, repo_id='mock_repo')
class TestDjangoRepoGroupsUrls(unittest.TestCase):
"""
Test url matching for repo_groups urls
"""
def test_match_repo_groups(self):
"""Test url matching for repo_groups."""
url = '/v2/repo_groups/'
url_name = 'repo_groups'
assert_url_match(url, url_name)
def test_match_repo_group_search(self):
"""Test url matching for repo_group_search."""
url = '/v2/repo_groups/search/'
url_name = 'repo_group_search'
assert_url_match(url, url_name)
def test_match_repo_group_resource(self):
url = '/v2/repo_groups/test-group-id/'
url_name = 'repo_group_resource'
assert_url_match(url, url_name, repo_group_id='test-group-id')
def test_match_repo_group_associate(self):
url = '/v2/repo_groups/test-group-id/actions/associate/'
url_name = 'repo_group_associate'
assert_url_match(url, url_name, repo_group_id='test-group-id')
def test_match_repo_group_unassociate(self):
url = '/v2/repo_groups/test-group-id/actions/unassociate/'
url_name = 'repo_group_unassociate'
assert_url_match(url, url_name, repo_group_id='test-group-id')
def test_match_repo_group_distributors(self):
url = '/v2/repo_groups/test-group-id/distributors/'
url_name = 'repo_group_distributors'
assert_url_match(url, url_name, repo_group_id='test-group-id')
def test_match_repo_group_distributor_resource(self):
url = '/v2/repo_groups/test-group-id/distributors/test-distributor/'
url_name = 'repo_group_distributor_resource'
assert_url_match(url, url_name, repo_group_id='test-group-id',
distributor_id='test-distributor')
def test_repo_group_publish(self):
url = '/v2/repo_groups/test-group-id/actions/publish/'
url_name = 'repo_group_publish'
assert_url_match(url, url_name, repo_group_id='test-group-id')
class TestDjangoTasksUrls(unittest.TestCase):
"""
Test the matching for tasks urls.
"""
def test_match_task_collection(self):
"""
Test the matching for task_collection.
"""
url = '/v2/tasks/'
url_name = 'task_collection'
assert_url_match(url, url_name)
def test_match_task_resource(self):
"""
Test the matching for task_resource.
"""
url = '/v2/tasks/test-task/'
url_name = 'task_resource'
assert_url_match(url, url_name, task_id='test-task')
def test_match_task_search(self):
"""
Test the matching for task_resource.
"""
url = '/v2/tasks/search/'
url_name = 'task_search'
assert_url_match(url, url_name)
class TestDjangoRolesUrls(unittest.TestCase):
"""
Tests for roles urls.
"""
def test_match_roles_view(self):
"""
Test url match for roles.
"""
url = '/v2/roles/'
url_name = 'roles'
assert_url_match(url, url_name)
def test_match_role_resource_view(self):
"""
Test url matching for single role.
"""
url = '/v2/roles/test-role/'
url_name = 'role_resource'
assert_url_match(url, url_name, role_id='test-role')
def test_match_role_users_view(self):
"""
Test url matching for role's users.
"""
url = '/v2/roles/test-role/users/'
url_name = 'role_users'
assert_url_match(url, url_name, role_id='test-role')
def test_match_role_user_view(self):
"""
Test url matching for role's user.
"""
url = '/v2/roles/test-role/users/test-login/'
url_name = 'role_user'
assert_url_match(url, url_name, role_id='test-role', login='test-login')
class TestDjangoPermissionsUrls(unittest.TestCase):
"""
Tests for permissions urls
"""
def test_match_permissions_view(self):
"""
Test url matching for permissions
"""
url = '/v2/permissions/'
url_name = 'permissions'
assert_url_match(url, url_name)
def test_match_permission_grant_to_role_view(self):
"""
Test url matching for grant permissions to a role
"""
url = '/v2/permissions/actions/grant_to_role/'
url_name = 'grant_to_role'
assert_url_match(url, url_name)
def test_match_permission_grant_to_user_view(self):
"""
Test url matching for grant permissions to a user
"""
url = '/v2/permissions/actions/grant_to_user/'
url_name = 'grant_to_user'
assert_url_match(url, url_name)
def test_match_permission_revoke_from_role_view(self):
"""
Test url matching for revoke permissions from a role
"""
url = '/v2/permissions/actions/revoke_from_role/'
url_name = 'revoke_from_role'
assert_url_match(url, url_name)
def test_match_permission_revoke_from_userview(self):
"""
Test url matching for revoke permissions from a user
"""
url = '/v2/permissions/actions/revoke_from_user/'
url_name = 'revoke_from_user'
assert_url_match(url, url_name)
class TestDjangoEventListenersUrls(unittest.TestCase):
"""
Tests for events urls
"""
def test_match_event_listeners_view(self):
"""
Test url matching for event_listeners
"""
url = '/v2/events/'
url_name = 'events'
assert_url_match(url, url_name)
def test_match_event_listeners_resource_view(self):
"""
Test url matching for single event_listener
"""
url = '/v2/events/12345/'
url_name = 'event_resource'
assert_url_match(url, url_name, event_listener_id='12345')
class TestDjangoUsersUrls(unittest.TestCase):
"""
Tests for userss urls
"""
def test_match_users_view(self):
"""
Test url matching for users
"""
url = '/v2/users/'
url_name = 'users'
assert_url_match(url, url_name)
def test_match_user_search_view(self):
"""
Test url matching for user search.
"""
url = '/v2/users/search/'
url_name = 'user_search'
assert_url_match(url, url_name)
def test_match_user_resource(self):
"""
Test the matching for user resource.
"""
url = '/v2/users/user_login/'
url_name = 'user_resource'
assert_url_match(url, url_name, login='user_login')
class TestStatusUrl(unittest.TestCase):
"""
Tests for server status url
"""
def test_match_status_view(self):
"""
Test url matching for status
"""
url = '/v2/status/'
url_name = 'status'
assert_url_match(url, url_name)
class TestDjangoConsumersUrls(unittest.TestCase):
"""
Tests for consumers urls
"""
def test_match_consumers_view(self):
"""
Test url matching for consumer
"""
url = '/v2/consumers/'
url_name = 'consumers'
assert_url_match(url, url_name)
def test_match_consumer_search(self):
"""
Test url matching for consumer_search.
"""
url = '/v2/consumers/search/'
url_name = 'consumer_search'
assert_url_match(url, url_name)
def test_match_consumer_resource_view(self):
"""
Test url matching for consumer resource.
"""
url = '/v2/consumers/test-consumer/'
url_name = 'consumer_resource'
assert_url_match(url, url_name, consumer_id='test-consumer')
def test_match_consumer_search_view(self):
"""
Test url matching for consumer search.
"""
url = '/v2/consumers/search/'
url_name = 'consumer_search'
assert_url_match(url, url_name)
def test_match_consumer_binding_search_view(self):
"""
Test url matching for consumer binding search.
"""
url = '/v2/consumers/binding/search/'
url_name = 'consumer_binding_search'
assert_url_match(url, url_name)
def test_match_consumer_profile_search_view(self):
"""
Test url matching for consumer profile search.
"""
url = '/v2/consumers/profile/search/'
url_name = 'consumer_profile_search'
assert_url_match(url, url_name)
def test_match_consumer_profiles_view(self):
"""
Test url matching for consumer profiles
"""
url = '/v2/consumers/test-consumer/profiles/'
url_name = 'consumer_profiles'
assert_url_match(url, url_name, consumer_id='test-consumer')
def test_match_consumer_profile_resource_view(self):
"""
Test url matching for consumer profile resource
"""
url = '/v2/consumers/test-consumer/profiles/some-profile/'
url_name = 'consumer_profile_resource'
assert_url_match(url, url_name, consumer_id='test-consumer', content_type='some-profile')
def test_match_consumer_bindings_view(self):
"""
Test url matching for consumer bindings
"""
url = '/v2/consumers/test-consumer/bindings/'
url_name = 'bindings'
assert_url_match(url, url_name, consumer_id='test-consumer')
def test_match_consumer_binding_resource_view(self):
"""
Test url matching for consumer binding resource
"""
url = '/v2/consumers/test-consumer/bindings/some-repo/some-dist/'
url_name = 'consumer_binding_resource'
assert_url_match(url, url_name, consumer_id='test-consumer', repo_id='some-repo',
distributor_id='some-dist')
def test_match_consumer_binding_repo_view(self):
"""
Test url matching for consumer and repo binding
"""
url = '/v2/consumers/test-consumer/bindings/some-repo/'
url_name = 'bindings_repo'
assert_url_match(url, url_name, consumer_id='test-consumer', repo_id='some-repo')
def test_match_consumer_appicability_regen_view(self):
"""
Test url matching for consumer applicability renegeration
"""
url = '/v2/consumers/test-consumer/actions/content/regenerate_applicability/'
url_name = 'consumer_appl_regen'
assert_url_match(url, url_name, consumer_id='test-consumer')
def test_match_consumer_content_action_install_view(self):
"""
Test url matching for consumer content installation
"""
url = '/v2/consumers/test-consumer/actions/content/install/'
url_name = 'consumer_content'
assert_url_match(url, url_name, consumer_id='test-consumer', action='install')
def test_match_consumer_content_action_update_view(self):
"""
Test url matching for consumer content update
"""
url = '/v2/consumers/test-consumer/actions/content/update/'
url_name = 'consumer_content'
assert_url_match(url, url_name, consumer_id='test-consumer', action='update')
def test_match_consumer_content_action_uninstall_view(self):
"""
Test url matching for consumer content uninstall
"""
url = '/v2/consumers/test-consumer/actions/content/uninstall/'
url_name = 'consumer_content'
assert_url_match(url, url_name, consumer_id='test-consumer', action='uninstall')
def test_match_consumers_appicability_regen_view(self):
"""
Test url matching for consumers applicability renegeration
"""
url = '/v2/consumers/actions/content/regenerate_applicability/'
url_name = 'appl_regen'
assert_url_match(url, url_name)
def test_match_consumer_query_appicability_view(self):
"""
Test url matching for consumer query applicability
"""
url = '/v2/consumers/content/applicability/'
url_name = 'consumer_query_appl'
assert_url_match(url, url_name)
def test_match_consumer_schedule_content_action_install_view(self):
"""
Test url matching for consumer schedule content installation
"""
url = '/v2/consumers/test-consumer/schedules/content/install/'
url_name = 'schedule_content_install'
assert_url_match(url, url_name, consumer_id='test-consumer')
def test_match_consumer_schedule_content_action_update_view(self):
"""
Test url matching for consumer schedule content update
"""
url = '/v2/consumers/test-consumer/schedules/content/update/'
url_name = 'schedule_content_update'
assert_url_match(url, url_name, consumer_id='test-consumer')
def test_match_consumer_schedule_content_action_uninstall_view(self):
"""
Test url matching for consumer schedule content uninstall
"""
url = '/v2/consumers/test-consumer/schedules/content/uninstall/'
url_name = 'schedule_content_uninstall'
assert_url_match(url, url_name, consumer_id='test-consumer')
def test_match_consumer_schedule_content_action_install_resource_view(self):
"""
Test url matching for consumer schedule content resource installation
"""
url = '/v2/consumers/test-consumer/schedules/content/install/12345/'
url_name = 'schedule_content_install_resource'
assert_url_match(url, url_name, consumer_id='test-consumer', schedule_id='12345')
def test_match_consumer_schedule_content_action_update_resource_view(self):
"""
Test url matching for consumer schedule content resource update
"""
url = '/v2/consumers/test-consumer/schedules/content/update/12345/'
url_name = 'schedule_content_update_resource'
assert_url_match(url, url_name, consumer_id='test-consumer', schedule_id='12345')
def test_match_consumer_schedule_content_action_uninstall_resource_view(self):
"""
Test url matching for consumer schedule content resource uninstall
"""
url = '/v2/consumers/test-consumer/schedules/content/uninstall/12345/'
url_name = 'schedule_content_uninstall_resource'
assert_url_match(url, url_name, consumer_id='test-consumer', schedule_id='12345')
def test_match_consumer_history_view(self):
"""
Test url matching for consumer history
"""
url = '/v2/consumers/test-consumer/history/'
url_name = 'consumer_history'
assert_url_match(url, url_name, consumer_id='test-consumer')
class TestDjangoContentSourcesUrls(unittest.TestCase):
"""
Tests for content sources.
"""
def test_match_content_sources_view(self):
"""
Test url matching for content sources.
"""
url = '/v2/content/sources/'
url_name = 'content_sources'
assert_url_match(url, url_name)
def test_match_content_sources_resource(self):
"""
Test the matching for content sources resource.
"""
url = '/v2/content/sources/some-source/'
url_name = 'content_sources_resource'
assert_url_match(url, url_name, source_id='some-source')
def test_match_content_sources_refresh_view(self):
"""
Test url matching for content sources refresh.
"""
url = '/v2/content/sources/action/refresh/'
url_name = 'content_sources_action'
assert_url_match(url, url_name, action='refresh')
def test_match_content_sources_resource_refresh(self):
"""
Test the matching for content sources resource refresh.
"""
url = '/v2/content/sources/some-source/action/refresh/'
url_name = 'content_sources_resource_action'
assert_url_match(url, url_name, source_id='some-source', action='refresh')
| ulif/pulp | server/test/unit/server/webservices/test_urls.py | Python | gpl-2.0 | 33,452 | [
30522,
12324,
3131,
22199,
2013,
6520,
23422,
1012,
4563,
1012,
24471,
20974,
2229,
4747,
14028,
12324,
10663,
1010,
7901,
1010,
4496,
22507,
3366,
18900,
2818,
2013,
16016,
1012,
8241,
1012,
4773,
8043,
7903,
2229,
1012,
24471,
4877,
12324,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*******************************************************************************
* Copyright (c) 2000, 2013 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jdt.internal.core;
import java.util.ArrayList;
import org.eclipse.jdt.core.IField;
import org.eclipse.jdt.core.IInitializer;
import org.eclipse.jdt.core.IMethod;
import org.eclipse.jdt.core.IModuleDescription;
import org.eclipse.jdt.core.IPackageFragment;
import org.eclipse.jdt.core.IType;
/**
* @see IJavaElementRequestor
*/
@SuppressWarnings({ "rawtypes", "unchecked" })
public class JavaElementRequestor implements IJavaElementRequestor {
/**
* True if this requestor no longer wants to receive
* results from its <code>IRequestorNameLookup</code>.
*/
protected boolean canceled= false;
/**
* A collection of the resulting fields, or <code>null</code>
* if no field results have been received.
*/
protected ArrayList fields= null;
/**
* A collection of the resulting initializers, or <code>null</code>
* if no initializer results have been received.
*/
protected ArrayList initializers= null;
/**
* A collection of the resulting member types, or <code>null</code>
* if no member type results have been received.
*/
protected ArrayList memberTypes= null;
/**
* A collection of the resulting methods, or <code>null</code>
* if no method results have been received.
*/
protected ArrayList methods= null;
/**
* A collection of the resulting package fragments, or <code>null</code>
* if no package fragment results have been received.
*/
protected ArrayList packageFragments= null;
/**
* A collection of the resulting types, or <code>null</code>
* if no type results have been received.
*/
protected ArrayList types= null;
/**
* A collection of the resulting modules, or <code>null</code>
* if no module results have been received
*/
protected ArrayList<IModuleDescription> modules = null;
/**
* Empty arrays used for efficiency
*/
protected static final IField[] EMPTY_FIELD_ARRAY= new IField[0];
protected static final IInitializer[] EMPTY_INITIALIZER_ARRAY= new IInitializer[0];
protected static final IType[] EMPTY_TYPE_ARRAY= new IType[0];
protected static final IPackageFragment[] EMPTY_PACKAGE_FRAGMENT_ARRAY= new IPackageFragment[0];
protected static final IMethod[] EMPTY_METHOD_ARRAY= new IMethod[0];
protected static final IModuleDescription[] EMPTY_MODULE_ARRAY= new IModuleDescription[0];
/**
* @see IJavaElementRequestor
*/
@Override
public void acceptField(IField field) {
if (this.fields == null) {
this.fields= new ArrayList();
}
this.fields.add(field);
}
/**
* @see IJavaElementRequestor
*/
@Override
public void acceptInitializer(IInitializer initializer) {
if (this.initializers == null) {
this.initializers= new ArrayList();
}
this.initializers.add(initializer);
}
/**
* @see IJavaElementRequestor
*/
@Override
public void acceptMemberType(IType type) {
if (this.memberTypes == null) {
this.memberTypes= new ArrayList();
}
this.memberTypes.add(type);
}
/**
* @see IJavaElementRequestor
*/
@Override
public void acceptMethod(IMethod method) {
if (this.methods == null) {
this.methods = new ArrayList();
}
this.methods.add(method);
}
/**
* @see IJavaElementRequestor
*/
@Override
public void acceptPackageFragment(IPackageFragment packageFragment) {
if (this.packageFragments== null) {
this.packageFragments= new ArrayList();
}
this.packageFragments.add(packageFragment);
}
/**
* @see IJavaElementRequestor
*/
@Override
public void acceptType(IType type) {
if (this.types == null) {
this.types= new ArrayList();
}
this.types.add(type);
}
/**
* @see IJavaElementRequestor
*/
@Override
public void acceptModule(IModuleDescription module) {
if (this.modules == null) {
this.modules= new ArrayList();
}
this.modules.add(module);
}
/**
* @see IJavaElementRequestor
*/
public IField[] getFields() {
if (this.fields == null) {
return EMPTY_FIELD_ARRAY;
}
int size = this.fields.size();
IField[] results = new IField[size];
this.fields.toArray(results);
return results;
}
/**
* @see IJavaElementRequestor
*/
public IInitializer[] getInitializers() {
if (this.initializers == null) {
return EMPTY_INITIALIZER_ARRAY;
}
int size = this.initializers.size();
IInitializer[] results = new IInitializer[size];
this.initializers.toArray(results);
return results;
}
/**
* @see IJavaElementRequestor
*/
public IType[] getMemberTypes() {
if (this.memberTypes == null) {
return EMPTY_TYPE_ARRAY;
}
int size = this.memberTypes.size();
IType[] results = new IType[size];
this.memberTypes.toArray(results);
return results;
}
/**
* @see IJavaElementRequestor
*/
public IMethod[] getMethods() {
if (this.methods == null) {
return EMPTY_METHOD_ARRAY;
}
int size = this.methods.size();
IMethod[] results = new IMethod[size];
this.methods.toArray(results);
return results;
}
/**
* @see IJavaElementRequestor
*/
public IPackageFragment[] getPackageFragments() {
if (this.packageFragments== null) {
return EMPTY_PACKAGE_FRAGMENT_ARRAY;
}
int size = this.packageFragments.size();
IPackageFragment[] results = new IPackageFragment[size];
this.packageFragments.toArray(results);
return results;
}
/**
* @see IJavaElementRequestor
*/
public IType[] getTypes() {
if (this.types== null) {
return EMPTY_TYPE_ARRAY;
}
int size = this.types.size();
IType[] results = new IType[size];
this.types.toArray(results);
return results;
}
/**
* @see IJavaElementRequestor
*/
public IModuleDescription[] getModules() {
if (this.modules == null) {
return EMPTY_MODULE_ARRAY;
}
int size = this.modules.size();
IModuleDescription[] results = new IModuleDescription[size];
this.modules.toArray(results);
return results;
}
/**
* @see IJavaElementRequestor
*/
@Override
public boolean isCanceled() {
return this.canceled;
}
/**
* Reset the state of this requestor.
*/
public void reset() {
this.canceled = false;
this.fields = null;
this.initializers = null;
this.memberTypes = null;
this.methods = null;
this.packageFragments = null;
this.types = null;
}
/**
* Sets the #isCanceled state of this requestor to true or false.
*/
public void setCanceled(boolean b) {
this.canceled= b;
}
}
| Niky4000/UsefulUtils | projects/others/eclipse-platform-parent/eclipse.jdt.core-master/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/JavaElementRequestor.java | Java | gpl-3.0 | 6,654 | [
30522,
1013,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
100... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/**
* UserServiceInterface.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.google.api.ads.dfp.v201308;
public interface UserServiceInterface extends java.rmi.Remote {
/**
* Creates a new {@link User}.
*
* The following fields are required:
* <ul>
* <li>{@link User#email}</li>
* <li>{@link User#name}</li>
* </ul>
*
*
* @param user the user to create
*
* @return the new user with its ID filled in
*/
public com.google.api.ads.dfp.v201308.User createUser(com.google.api.ads.dfp.v201308.User user) throws java.rmi.RemoteException, com.google.api.ads.dfp.v201308.ApiException;
/**
* Creates new {@link User} objects.
*
*
* @param users the users to create
*
* @return the created users with their IDs filled in
*/
public com.google.api.ads.dfp.v201308.User[] createUsers(com.google.api.ads.dfp.v201308.User[] users) throws java.rmi.RemoteException, com.google.api.ads.dfp.v201308.ApiException;
/**
* Returns the {@link Role} objects that are defined for the users
* of the
* network.
*
*
* @return the roles defined for the user's network
*/
public com.google.api.ads.dfp.v201308.Role[] getAllRoles() throws java.rmi.RemoteException, com.google.api.ads.dfp.v201308.ApiException;
/**
* Returns the current {@link User}.
*
*
* @return the current user
*/
public com.google.api.ads.dfp.v201308.User getCurrentUser() throws java.rmi.RemoteException, com.google.api.ads.dfp.v201308.ApiException;
/**
* Returns the {@link User} uniquely identified by the given ID.
*
*
* @param userId The optional ID of the user. For current user set to
* {@code null}.
*
* @return the {@code User} uniquely identified by the given ID
*/
public com.google.api.ads.dfp.v201308.User getUser(java.lang.Long userId) throws java.rmi.RemoteException, com.google.api.ads.dfp.v201308.ApiException;
/**
* Gets a {@link UserPage} of {@link User} objects that satisfy
* the given
* {@link Statement#query}. The following fields are supported
* for filtering:
*
* <table>
* <tr>
* <th scope="col">PQL Property</th> <th scope="col">Object Property</th>
* </tr>
* <tr>
* <td>{@code email}</td>
* <td>{@link User#email}</td>
* </tr>
* <tr>
* <td>{@code id}</td>
* <td>{@link User#id}</td>
* </tr>
* <tr>
* <td>{@code name}</td>
* <td>{@link User#name}</td>
* </tr>
* <tr>
* <td>{@code roleId}</td>
* <td>{@link User#roleId}
* </tr>
* <tr>
* <td>{@code rolename}</td>
* <td>{@link User#roleName}
* </tr>
* <tr>
* <td>{@code status}</td>
* <td>{@code ACTIVE} if {@link User#isActive} is true; {@code
* INACTIVE}
* otherwise</td>
* </tr>
* </table>
*
*
* @param filterStatement a Publisher Query Language statement used to
* filter
* a set of users
*
* @return the users that match the given filter
*/
public com.google.api.ads.dfp.v201308.UserPage getUsersByStatement(com.google.api.ads.dfp.v201308.Statement filterStatement) throws java.rmi.RemoteException, com.google.api.ads.dfp.v201308.ApiException;
/**
* Performs actions on {@link User} objects that match the given
* {@link Statement#query}.
*
*
* @param userAction the action to perform
*
* @param filterStatement a Publisher Query Language statement used to
* filter
* a set of users
*
* @return the result of the action performed
*/
public com.google.api.ads.dfp.v201308.UpdateResult performUserAction(com.google.api.ads.dfp.v201308.UserAction userAction, com.google.api.ads.dfp.v201308.Statement filterStatement) throws java.rmi.RemoteException, com.google.api.ads.dfp.v201308.ApiException;
/**
* Updates the specified {@link User}.
*
*
* @param user the user to update
*
* @return the updated user
*/
public com.google.api.ads.dfp.v201308.User updateUser(com.google.api.ads.dfp.v201308.User user) throws java.rmi.RemoteException, com.google.api.ads.dfp.v201308.ApiException;
/**
* Updates the specified {@link User} objects.
*
*
* @param users the users to update
*
* @return the updated users
*/
public com.google.api.ads.dfp.v201308.User[] updateUsers(com.google.api.ads.dfp.v201308.User[] users) throws java.rmi.RemoteException, com.google.api.ads.dfp.v201308.ApiException;
}
| google-code-export/google-api-dfp-java | src/com/google/api/ads/dfp/v201308/UserServiceInterface.java | Java | apache-2.0 | 5,273 | [
30522,
1013,
1008,
1008,
1008,
5198,
2121,
7903,
12377,
3334,
12172,
1012,
9262,
1008,
1008,
2023,
5371,
2001,
8285,
1011,
7013,
2013,
1059,
16150,
2140,
1008,
2011,
1996,
15895,
8123,
1015,
1012,
1018,
19804,
2570,
1010,
2294,
1006,
5757,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<?php
/**
* Gerenciador Clínico Odontológico
* Copyright (C) 2006 - 2009
* Autores: Ivis Silva Andrade - Engenharia e Design(ivis@expandweb.com)
* Pedro Henrique Braga Moreira - Engenharia e Programação(ikkinet@gmail.com)
*
* Este arquivo é parte do programa Gerenciador Clínico Odontológico
*
* Gerenciador Clínico Odontológico é um software livre; você pode
* redistribuí-lo e/ou modificá-lo dentro dos termos da Licença
* Pública Geral GNU como publicada pela Fundação do Software Livre
* (FSF); na versão 2 da Licença invariavelmente.
*
* Este programa é distribuído na esperança que possa ser útil,
* mas SEM NENHUMA GARANTIA; sem uma garantia implícita de ADEQUAÇÂO
* a qualquer MERCADO ou APLICAÇÃO EM PARTICULAR. Veja a
* Licença Pública Geral GNU para maiores detalhes.
*
* Você recebeu uma cópia da Licença Pública Geral GNU,
* que está localizada na raíz do programa no arquivo COPYING ou COPYING.TXT
* junto com este programa. Se não, visite o endereço para maiores informações:
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html (Inglês)
* http://www.magnux.org/doc/GPL-pt_BR.txt (Português - Brasil)
*
* Em caso de dúvidas quanto ao software ou quanto à licença, visite o
* endereço eletrônico ou envie-nos um e-mail:
*
* http://www.smileodonto.com.br/gco
* smile@smileodonto.com.br
*
* Ou envie sua carta para o endereço:
*
* Smile Odontolóogia
* Rua Laudemira Maria de Jesus, 51 - Lourdes
* Arcos - MG - CEP 35588-000
*
*
*/
include "../lib/config.inc.php";
include "../lib/func.inc.php";
include "../lib/classes.inc.php";
require_once '../lang/'.$idioma.'.php';
header("Content-type: text/html; charset=UTF-8", true);
if(!checklog()) {
echo '<script>Ajax("wallpapers/index", "conteudo", "");</script>';
die();
}
if(!verifica_nivel('convenios', 'L')) {
echo $LANG['general']['you_tried_to_access_a_restricted_area'];
die();
}
// if($_GET[confirm_del] == "delete") {
// mysql_query("DELETE FROM honorarios WHERE codigo = '".$_GET['codigo']."'") or die(mysql_error());
// mysql_query("DELETE FROM honorarios_convenios WHERE codigo_convenio = '".$_GET['codigo']."'") or die(mysql_error());
// }
?>
<div class="conteudo" id="conteudo_central">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="conteudo">
<tr>
<td width="48%"> <img src="honorarios/img/honorarios.png" alt="<?php echo $LANG['menu']['fees']?>"> <span class="h3"><?php echo $LANG['menu']['fees']?> </span></td>
<td width="21%" valign="bottom">
<?php/*<table width="100%" border="0">
<tr>
<td colspan="2">
<?php echo $LANG['plan']['search_for']?>
</td>
</tr>
<tr>
<td>
<select name="campo" id="campo" class="forms">
<option value="nomefantasia"><?php echo $LANG['plan']['name']?></option>
<option value="cidade"><?php echo $LANG['plan']['city']?></option>
</select>
</td>
<td>
<input name="procurar" id="procurar" type="text" class="forms" size="20" maxlength="40" onkeyup="javascript:Ajax('convenios/pesquisa', 'pesquisa', 'pesquisa='%2Bthis.value%2B'&campo='%2BgetElementById('campo').options[getElementById('campo').selectedIndex].value)">
</td>
</tr>
</table>*/?>
</td>
<td width="27%" align="right" valign="bottom"><?php echo ((verifica_nivel('convenios', 'I'))?'<img src="imagens/icones/novo.png" alt="Incluir" width="19" height="22" border="0"><a href="javascript:Ajax(\'convenios/incluir\', \'conteudo\', \'\')">'.$LANG['plan']['include_new_plan'].'</a>':'')?></td>
<td width="2%" valign="bottom"> </td>
<td width="2%" valign="bottom"> </td>
</tr>
</table>
<div class="conteudo" id="table dados"><br>
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0" class="tabela_titulo">
<tr>
<td bgcolor="#009BE6" colspan="6"> </td>
</tr>
<tr>
<td width="684" align="left"><?php echo $LANG['plan']['fee_table']?></td>
<td width="66" align="center"> </td>
</tr>
</table>
<div id="pesquisa"></div>
<script>
Ajax('honorarios/hpesquisa', 'pesquisa', '');
</script>
</div>
| artsjedi/GCO | http/honorarios/gerenciar_ajax.php | PHP | gpl-2.0 | 4,493 | [
30522,
1026,
1029,
25718,
1013,
1008,
1008,
1008,
16216,
7389,
7405,
7983,
9349,
2080,
1051,
5280,
3406,
27179,
2080,
1008,
9385,
1006,
1039,
1007,
2294,
1011,
2268,
1008,
8285,
6072,
1024,
4921,
2483,
11183,
1998,
13662,
1011,
25540,
2368,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
package BSE::FormatterBase;
use strict;
our $VERSION = "1.001";
=head1 NAME
BSE::FormatterBase - mixin for adding a format() method.
=head1 SYNOPSIS
# some article class does
use parent "BSE::FormatterClass";
# some article user does
my $html = $self->format
(
text => ..., # default to $self->body
images => ..., # default to $self->images
files => ..., # default to $self->files
gen => ..., # required for embedding
abs_urls => ..., # defaults to FALSE
);
=cut
sub formatter_class {
my ($self) = @_;
require BSE::Formatter::Article;
return "BSE::Formatter::Article";
}
=head1 METHODS
=over
=item format()
Format in a body text sort of way.
Parameters:
=over
=item *
C<text> - the body text to format, defaults to the article's body text
=item *
C<images> - the images to use for the image[] tags, defaults to the
article's images.
=item *
C<files> - the files to use for the file[] tags, defaults to the
article's files.
=item *
C<gen> - must be set to the parent generator object for embedding to
work.
=item *
C<articles> - the articles collection class. Internal use only.
=item *
C<abs_urls> - whether to use absolute URLs. Default: FALSE.
=item *
C<cfg> - the config object. Defaults to the global config object.
=back
Template use:
<:# generator only available in static replacement :>
<:= article.format("gen", generator) :>
=cut
sub format {
my ($self, %opts) = @_;
my $cfg = $opts{cfg} || BSE::Cfg->single;
my $text = $opts{text};
defined $text or $text = $self->body;
my $images = $opts{images};
defined $images or $images = [ $self->images ];
my $files = $opts{files};
defined $files or $files = [ $self->files ];
my $gen = $opts{gen};
my $articles = $opts{articles} || "BSE::TB::Articles";
my $abs_urls = $opts{abs_urls};
defined $abs_urls or $abs_urls = 0;
my $formatter_class = $self->formatter_class;
my $auto_images;
my $formatter = $formatter_class->new(gen => $gen,
articles => $articles,
abs_urls => $abs_urls,
auto_images => \$auto_images,
images => $images,
files => $files);
return $formatter->format($text);
}
=item unformat()
Remove body text type formatting.
Parameters:
=over
=item *
C<text> - the body text to format, defaults to the article's body text
=item *
C<images> - the images to use for the image[] tags, defaults to the
article's images.
=item *
C<files> - the files to use for the file[] tags, defaults to the
article's files.
=item *
C<gen> - must be set to the parent generator object for embedding to
work.
=item *
C<articles> - the articles collection class. Internal use only.
=item *
C<abs_urls> - whether to use absolute URLs. Default: FALSE.
=item *
C<cfg> - the config object. Defaults to the global config object.
=back
=cut
sub unformat {
my ($self, %opts) = @_;
my $cfg = $opts{cfg} || BSE::Cfg->single;
my $text = $opts{text};
defined $text or $text = $self->body;
my $images = $opts{images};
defined $images or $images = [ $self->images ];
my $files = $opts{files};
defined $files or $files = [ $self->files ];
my $gen = $opts{gen};
my $articles = $opts{articles} || "BSE::TB::Articles";
my $abs_urls = $opts{abs_urls};
defined $abs_urls or $abs_urls = 0;
my $formatter_class = $self->formatter_class;
my $auto_images;
my $formatter = $formatter_class->new(gen => $gen,
articles => $articles,
abs_urls => $abs_urls,
auto_images => \$auto_images,
images => $images,
files => $files);
return $formatter->remove_format($text);
}
1;
=back
=head1 AUTHOR
Tony Cook <tony@develop-help.com>
=cut
| tonycoz/bse | site/cgi-bin/modules/BSE/FormatterBase.pm | Perl | gpl-2.0 | 3,690 | [
30522,
7427,
18667,
2063,
1024,
1024,
30524,
2487,
19962,
22599,
1001,
2070,
3720,
2465,
2515,
2224,
6687,
1000,
18667,
2063,
1024,
1024,
4289,
3334,
26266,
1000,
1025,
1001,
2070,
3720,
5310,
2515,
2026,
1002,
16129,
1027,
1002,
2969,
1011... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
* Copyright (c) 2006, Ondrej Danek (www.ondrej-danek.net)
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of Ondrej Danek nor the
* names of its contributors may be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef DUEL6_VERTEX_H
#define DUEL6_VERTEX_H
#include "Type.h"
namespace Duel6 {
class Vertex {
public:
enum Flag {
None = 0,
Flow = 1
};
public:
Float32 x;
Float32 y;
Float32 z;
Float32 u;
Float32 v;
private:
Uint32 flag;
public:
Vertex(Size order, Float32 x, Float32 y, Float32 z, Uint32 flag = None) {
this->x = x;
this->y = y;
this->z = z;
u = (order == 0 || order == 3) ? 0.0f : 0.99f;
v = (order == 0 || order == 1) ? 0.0f : 0.99f;
this->flag = flag;
}
Vertex(Size order, Int32 x, Int32 y, Int32 z, Uint32 flag = Flag::None)
: Vertex(order, Float32(x), Float32(y), Float32(z), flag) {}
Uint32 getFlag() const {
return flag;
}
};
}
#endif | odanek/duel6r | source/Vertex.h | C | bsd-3-clause | 2,490 | [
30522,
1013,
1008,
1008,
9385,
1006,
1039,
1007,
2294,
1010,
2006,
16200,
3501,
14569,
2243,
1006,
7479,
1012,
2006,
16200,
3501,
1011,
14569,
2243,
1012,
5658,
1007,
1008,
2035,
2916,
9235,
1012,
1008,
25707,
1998,
2224,
1999,
3120,
1998,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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.
*/
/**
* @author Ilya S. Okomin
* @version $Revision$
*/
package java.awt.font;
import java.awt.BasicStroke;
import java.awt.Graphics2D;
import java.awt.Shape;
import java.awt.Stroke;
import java.awt.geom.AffineTransform;
import java.awt.geom.Rectangle2D;
import org.apache.harmony.misc.HashCode;
public final class ShapeGraphicAttribute extends GraphicAttribute {
// shape to render
private Shape fShape;
// flag, if the shape should be stroked (true) or filled (false)
private boolean fStroke;
// bounds of the shape
private Rectangle2D fBounds;
// X coordinate of the origin point
private float fOriginX;
// Y coordinate of the origin point
private float fOriginY;
// width of the shape
private float fShapeWidth;
// height of the shape
private float fShapeHeight;
public static final boolean STROKE = true;
public static final boolean FILL = false;
public ShapeGraphicAttribute(Shape shape, int alignment, boolean stroke) {
super(alignment);
this.fShape = shape;
this.fStroke = stroke;
this.fBounds = fShape.getBounds2D();
this.fOriginX = (float)fBounds.getMinX();
this.fOriginY = (float)fBounds.getMinY();
this.fShapeWidth = (float)fBounds.getWidth();
this.fShapeHeight = (float)fBounds.getHeight();
}
@Override
public int hashCode() {
HashCode hash = new HashCode();
hash.append(fShape.hashCode());
hash.append(getAlignment());
return hash.hashCode();
}
public boolean equals(ShapeGraphicAttribute sga) {
if (sga == null) {
return false;
}
if (sga == this) {
return true;
}
return ( fStroke == sga.fStroke &&
getAlignment() == sga.getAlignment() &&
fShape.equals(sga.fShape));
}
@Override
public boolean equals(Object obj) {
try {
return equals((ShapeGraphicAttribute) obj);
}
catch(ClassCastException e) {
return false;
}
}
@Override
public void draw(Graphics2D g2, float x, float y) {
AffineTransform at = AffineTransform.getTranslateInstance(x, y);
if (fStroke == STROKE){
Stroke oldStroke = g2.getStroke();
g2.setStroke(new BasicStroke());
g2.draw(at.createTransformedShape(fShape));
g2.setStroke(oldStroke);
} else {
g2.fill(at.createTransformedShape(fShape));
}
}
@Override
public float getAdvance() {
return Math.max(0, fShapeWidth + fOriginX);
}
@Override
public float getAscent() {
return Math.max(0, -fOriginY);
}
@Override
public Rectangle2D getBounds() {
return (Rectangle2D)fBounds.clone();
}
@Override
public float getDescent() {
return Math.max(0, fShapeHeight + fOriginY);
}
}
| freeVM/freeVM | enhanced/archive/classlib/java6/modules/awt/src/main/java/common/java/awt/font/ShapeGraphicAttribute.java | Java | apache-2.0 | 3,798 | [
30522,
1013,
1008,
1008,
7000,
2000,
1996,
15895,
4007,
3192,
1006,
2004,
2546,
1007,
2104,
2028,
2030,
2062,
1008,
12130,
6105,
10540,
1012,
2156,
1996,
5060,
5371,
5500,
2007,
1008,
2023,
2147,
2005,
3176,
2592,
4953,
9385,
6095,
1012,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
###说明
- 这是用C++实现的二分搜索树
####使用工具
- CMake
- make
####使用代码
- 注意请安装cmake3.5以上版本
- 新建一个文件夹
`mkdir build`
- 进入build目录
`cd build`
- cmake配置
`cmake ..`
- 编译执行
`make`
- 进入bin目录下
`cd bin/`
- 执行代码
`./BinarySearchTree`
| houpengfei88/Play-With-C | DataStructure/BinarySearchTree/README.md | Markdown | lgpl-3.0 | 329 | [
30522,
1001,
1001,
1001,
100,
1865,
1011,
100,
100,
100,
1039,
1009,
1009,
100,
100,
1916,
1752,
1775,
100,
100,
100,
1001,
1001,
1001,
1001,
100,
100,
100,
100,
1011,
4642,
13808,
1011,
2191,
1001,
1001,
1001,
1001,
100,
100,
1760,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
package packages
import (
"testing"
"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/container"
"github.com/stretchr/testify/assert"
)
func TestNewPackageFromImage(t *testing.T) {
// with tag
pkg, err := NewPackageFromImage("whalebrew/foo:bar", types.ImageInspect{})
assert.Nil(t, err)
assert.Equal(t, pkg.Name, "foo")
assert.Equal(t, pkg.Image, "whalebrew/foo:bar")
// test labels
pkg, err = NewPackageFromImage("whalebrew/whalesay", types.ImageInspect{
ContainerConfig: &container.Config{
Labels: map[string]string{
"io.whalebrew.name": "ws",
"io.whalebrew.config.environment": "[\"SOME_CONFIG_OPTION\"]",
"io.whalebrew.config.volumes": "[\"/somesource:/somedest\"]",
"io.whalebrew.config.ports": "[\"8100:8100\"]",
"io.whalebrew.config.networks": "[\"host\"]",
},
},
})
assert.Nil(t, err)
assert.Equal(t, pkg.Name, "ws")
assert.Equal(t, pkg.Image, "whalebrew/whalesay")
assert.Equal(t, pkg.Environment, []string{"SOME_CONFIG_OPTION"})
assert.Equal(t, pkg.Volumes, []string{"/somesource:/somedest"})
assert.Equal(t, pkg.Ports, []string{"8100:8100"})
assert.Equal(t, pkg.Networks, []string{"host"})
}
func TestPreinstallMessage(t *testing.T) {
pkg := &Package{}
assert.Equal(t, pkg.PreinstallMessage(), "")
pkg = &Package{
Environment: []string{"AWS_ACCESS_KEY"},
Ports: []string{
"80:80",
"81:81:udp",
},
Volumes: []string{
"/etc/passwd:/passwdtosteal",
"/etc/readonly:/readonly:ro",
},
}
assert.Equal(t, pkg.PreinstallMessage(),
"This package needs additional access to your system. It wants to:\n"+
"\n"+
"* Read the environment variable AWS_ACCESS_KEY\n"+
"* Listen on TCP port 80\n"+
"* Listen on UDP port 81\n"+
"* Read and write to the file or directory \"/etc/passwd\"\n"+
"* Read the file or directory \"/etc/readonly\"\n",
)
}
| 3846masa/whalebrew | packages/package_test.go | GO | apache-2.0 | 1,893 | [
30522,
7427,
14555,
12324,
1006,
1000,
5604,
1000,
1000,
21025,
2705,
12083,
1012,
4012,
1013,
8946,
2121,
1013,
8946,
2121,
1013,
17928,
1013,
4127,
1000,
1000,
21025,
2705,
12083,
1012,
4012,
1013,
8946,
2121,
1013,
8946,
2121,
1013,
1792... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
# Geinitzia Ozawa, 1927 GENUS
#### Status
ACCEPTED
#### According to
IRMNG Homonym List
#### Published in
J. Fac. Sci. Imp. Univ. Tokyo, sec. 2, 2 (3), 161.
#### Original name
null
### Remarks
null | mdoering/backbone | life/Protozoa/Granuloreticulosea/Foraminiferida/Nodosinellidae/Geinitzia/README.md | Markdown | apache-2.0 | 202 | [
30522,
1001,
16216,
5498,
5753,
2401,
11472,
10830,
1010,
4764,
3562,
1001,
1001,
1001,
1001,
3570,
3970,
1001,
1001,
1001,
1001,
2429,
2000,
20868,
2213,
3070,
24004,
4890,
2213,
2862,
1001,
1001,
1001,
1001,
2405,
1999,
1046,
1012,
6904,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<?php
namespace webfilesframework\core\datasystem\file\system\dropbox;
use webfilesframework\core\datasystem\file\system\MFile;
/**
* description
*
* @author Sebastian Monzel < mail@sebastianmonzel.de >
* @since 0.1.7
*/
class MDropboxFile extends MFile
{
protected $dropboxAccount;
protected $fileMetadata;
protected $filePath;
/**
*
* Enter description here ...
* @param MDropboxAccount $account
* @param $filePath
* @param bool $initMetadata
* @internal param unknown_type $fileName
*/
public function __construct(MDropboxAccount $account, $filePath, $initMetadata = true)
{
parent::__construct($filePath);
$this->filePath = $filePath;
$this->dropboxAccount = $account;
if ($initMetadata) {
$this->initMetadata();
}
}
public function initMetadata()
{
$this->fileMetadata = $this->dropboxAccount->getDropboxApi()->metaData($this->filePath);
$lastSlash = strrpos($this->fileMetadata['body']->path, '/');
$fileName = substr($this->fileMetadata['body']->path, $lastSlash + 1);
$this->fileName = $fileName;
}
public function getContent()
{
$file = $this->dropboxAccount->getDropboxApi()->getFile($this->filePath);
return $file['data'];
}
public function writeContent($content, $overwrite = false)
{
// TODO
}
/**
*
* Enter description here ...
*/
public function upload()
{
}
/**
*
* Enter description here ...
* @param $overwriteIfExists
*/
public function download($overwriteIfExists)
{
$file = $this->dropboxAccount->getDropboxApi()->getFile($this->filePath);
if (!file_exists("." . $this->filePath)) {
$fp = fopen("." . $this->filePath, "w");
fputs($fp, $file['data']);
fclose($fp);
}
}
public function downloadImageAsThumbnail()
{
$file = $this->dropboxAccount->getDropbox()->thumbnails($this->filePath, 'JPEG', 'l');
if (!file_exists("." . $this->filePath)) {
$fp = fopen("." . $this->filePath, "w");
fputs($fp, $file['data']);
fclose($fp);
}
}
} | sebastianmonzel/webfiles-framework-php | source/core/datasystem/file/system/dropbox/MDropboxFile.php | PHP | gpl-2.0 | 2,375 | [
30522,
1026,
1029,
25718,
3415,
15327,
4773,
8873,
4244,
15643,
6198,
1032,
4563,
1032,
2951,
6508,
13473,
2213,
1032,
5371,
1032,
2291,
1032,
4530,
8758,
1025,
2224,
4773,
8873,
4244,
15643,
6198,
1032,
4563,
1032,
2951,
6508,
13473,
2213,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<?php
/** Catalan (Català)
*
* See MessagesQqq.php for message documentation incl. usage of parameters
* To improve a translation please visit http://translatewiki.net
*
* @ingroup Language
* @file
*
* @author Aleator
* @author Cedric31
* @author Iradigalesc
* @author Jordi Roqué
* @author Juanpabl
* @author Martorell
* @author McDutchie
* @author Pasqual (ca)
* @author Paucabot
* @author PerroVerd
* @author Pérez
* @author Qllach
* @author SMP
* @author Smeira
* @author Solde
* @author Spacebirdy
* @author Ssola
* @author Toniher
* @author Vriullop
* @author לערי ריינהארט
*/
$bookstoreList = array(
'Catàleg Col·lectiu de les Universitats de Catalunya' => 'http://ccuc.cbuc.es/cgi-bin/vtls.web.gateway?searchtype=control+numcard&searcharg=$1',
'Totselsllibres.com' => 'http://www.totselsllibres.com/tel/publi/busquedaAvanzadaLibros.do?ISBN=$1',
'inherit' => true,
);
$namespaceNames = array(
NS_MEDIA => 'Media',
NS_SPECIAL => 'Especial',
NS_TALK => 'Discussió',
NS_USER => 'Usuari',
NS_USER_TALK => 'Usuari_Discussió',
NS_PROJECT_TALK => '$1_Discussió',
NS_FILE => 'Fitxer',
NS_FILE_TALK => 'Fitxer_Discussió',
NS_MEDIAWIKI => 'MediaWiki',
NS_MEDIAWIKI_TALK => 'MediaWiki_Discussió',
NS_TEMPLATE => 'Plantilla',
NS_TEMPLATE_TALK => 'Plantilla_Discussió',
NS_HELP => 'Ajuda',
NS_HELP_TALK => 'Ajuda_Discussió',
NS_CATEGORY => 'Categoria',
NS_CATEGORY_TALK => 'Categoria_Discussió',
);
$namespaceAliases = array(
'Imatge' => NS_FILE,
'Imatge_Discussió' => NS_FILE_TALK,
);
$separatorTransformTable = array(',' => '.', '.' => ',' );
$dateFormats = array(
'mdy time' => 'H:i',
'mdy date' => 'M j, Y',
'mdy both' => 'H:i, M j, Y',
'dmy time' => 'H:i',
'dmy date' => 'j M Y',
'dmy both' => 'H:i, j M Y',
'ymd time' => 'H:i',
'ymd date' => 'Y M j',
'ymd both' => 'H:i, Y M j',
);
$magicWords = array(
'numberofarticles' => array( '1', 'NOMBRED\'ARTICLES', 'NUMBEROFARTICLES' ),
'numberoffiles' => array( '1', 'NOMBRED\'ARXIUS', 'NUMBEROFFILES' ),
'numberofusers' => array( '1', 'NOMBRED\'USUARIS', 'NUMBEROFUSERS' ),
'numberofedits' => array( '1', 'NOMBRED\'EDICIONS', 'NUMBEROFEDITS' ),
'pagename' => array( '1', 'NOMDELAPLANA', 'PAGENAME' ),
'img_right' => array( '1', 'dreta', 'right' ),
'img_left' => array( '1', 'esquerra', 'left' ),
'img_border' => array( '1', 'vora', 'border' ),
'img_link' => array( '1', 'enllaç=$1', 'link=$1' ),
'displaytitle' => array( '1', 'TÍTOL', 'DISPLAYTITLE' ),
'language' => array( '0', '#IDIOMA:', '#LANGUAGE:' ),
'special' => array( '0', 'especial', 'special' ),
'defaultsort' => array( '1', 'ORDENA:', 'DEFAULTSORT:', 'DEFAULTSORTKEY:', 'DEFAULTCATEGORYSORT:' ),
'pagesize' => array( '1', 'MIDADELAPLANA', 'PAGESIZE' ),
);
$specialPageAliases = array(
'DoubleRedirects' => array( 'Redireccions dobles' ),
'BrokenRedirects' => array( 'Redireccions rompudes' ),
'Disambiguations' => array( 'Desambiguacions' ),
'Userlogin' => array( 'Registre i entrada' ),
'Userlogout' => array( 'Finalitza sessió' ),
'CreateAccount' => array( 'Crea compte' ),
'Preferences' => array( 'Preferències' ),
'Watchlist' => array( 'Llista de seguiment' ),
'Recentchanges' => array( 'Canvis recents' ),
'Upload' => array( 'Carrega' ),
'Listfiles' => array( 'Imatges' ),
'Newimages' => array( 'Imatges noves' ),
'Listusers' => array( 'Usuaris' ),
'Listgrouprights' => array( 'Drets dels grups d\'usuaris' ),
'Statistics' => array( 'Estadístiques' ),
'Randompage' => array( 'Article aleatori', 'Atzar', 'Aleatori' ),
'Lonelypages' => array( 'Pàgines òrfenes' ),
'Uncategorizedpages' => array( 'Pàgines sense categoria' ),
'Uncategorizedcategories' => array( 'Categories sense categoria' ),
'Uncategorizedimages' => array( 'Imatges sense categoria' ),
'Uncategorizedtemplates' => array( 'Plantilles sense categoria' ),
'Unusedcategories' => array( 'Categories no usades' ),
'Unusedimages' => array( 'Imatges no usades' ),
'Wantedpages' => array( 'Pàgines demanades' ),
'Wantedcategories' => array( 'Categories demanades' ),
'Wantedfiles' => array( 'Arxius demanats' ),
'Mostlinked' => array( 'Pàgines més enllaçades' ),
'Mostlinkedcategories' => array( 'Categories més útils' ),
'Mostlinkedtemplates' => array( 'Plantilles més útils' ),
'Mostimages' => array( 'Imatges més útils' ),
'Mostcategories' => array( 'Pàgines amb més categories' ),
'Mostrevisions' => array( 'Pàgines més editades' ),
'Fewestrevisions' => array( 'Pàgines menys editades' ),
'Shortpages' => array( 'Pàgines curtes' ),
'Longpages' => array( 'Pàgines llargues' ),
'Newpages' => array( 'Pàgines noves' ),
'Ancientpages' => array( 'Pàgines velles' ),
'Deadendpages' => array( 'Atzucacs' ),
'Protectedpages' => array( 'Pàgines protegides' ),
'Protectedtitles' => array( 'Títols protegits' ),
'Allpages' => array( 'Llista de pàgines' ),
'Prefixindex' => array( 'Cerca per prefix' ),
'Ipblocklist' => array( 'Usuaris blocats' ),
'Specialpages' => array( 'Pàgines especials' ),
'Contributions' => array( 'Contribucions' ),
'Emailuser' => array( 'Envia missatge' ),
'Confirmemail' => array( 'Confirma adreça' ),
'Whatlinkshere' => array( 'Enllaços' ),
'Recentchangeslinked' => array( 'Seguiment' ),
'Movepage' => array( 'Reanomena' ),
'Blockme' => array( 'Bloca\'m' ),
'Booksources' => array( 'Fonts bibliogràfiques' ),
'Export' => array( 'Exporta' ),
'Version' => array( 'Versió' ),
'Allmessages' => array( 'Missatges', 'MediaWiki' ),
'Log' => array( 'Registre' ),
'Blockip' => array( 'Bloca' ),
'Undelete' => array( 'Restaura' ),
'Import' => array( 'Importa' ),
'Lockdb' => array( 'Bloca bd' ),
'Unlockdb' => array( 'Desbloca bd' ),
'Userrights' => array( 'Drets' ),
'MIMEsearch' => array( 'Cerca MIME' ),
'FileDuplicateSearch' => array( 'Cerca fitxers duplicats' ),
'Unwatchedpages' => array( 'Pàgines desateses' ),
'Listredirects' => array( 'Redireccions' ),
'Revisiondelete' => array( 'Esborra versió' ),
'Unusedtemplates' => array( 'Plantilles no usades' ),
'Randomredirect' => array( 'Redirecció aleatòria' ),
'Mypage' => array( 'Pàgina personal' ),
'Mytalk' => array( 'Discussió personal' ),
'Mycontributions' => array( 'Contribucions pròpies' ),
'Listadmins' => array( 'Administradors' ),
'Listbots' => array( 'Bots' ),
'Popularpages' => array( 'Pàgines populars' ),
'Search' => array( 'Cerca' ),
'Resetpass' => array( 'Reinicia contrasenya' ),
'Withoutinterwiki' => array( 'Sense interwiki' ),
'MergeHistory' => array( 'Fusiona historial' ),
'Blankpage' => array( 'Pàgina en blanc', 'Blanc' ),
'LinkSearch' => array( 'Enllaços web', 'Busca enllaços', 'Recerca d\'enllaços web' ),
'DeletedContributions' => array( 'Contribucions esborrades' ),
);
$linkTrail = '/^([a-zàèéíòóúç·ïü\']+)(.*)$/sDu';
$messages = array(
# User preference toggles
'tog-underline' => 'Subratlla els enllaços:',
'tog-highlightbroken' => 'Formata els enllaços trencats <a href="" class="new">d\'aquesta manera</a> (altrament, es faria d\'aquesta altra manera<a href="" class="internal">?</a>).',
'tog-justify' => 'Alineació justificada dels paràgrafs',
'tog-hideminor' => 'Amaga les edicions menors en la pàgina de canvis recents',
'tog-hidepatrolled' => 'Amaga edicions patrullades als canvis recents',
'tog-newpageshidepatrolled' => 'Amaga pàgines patrullades de la llista de pàgines noves',
'tog-extendwatchlist' => 'Desplega la llista de seguiment per a mostrar tots els canvis afectats, no només els més recents',
'tog-usenewrc' => 'Usa la presentació millorada dels canvis recents (cal JavaScript)',
'tog-numberheadings' => 'Enumera automàticament els encapçalaments',
'tog-showtoolbar' => "Mostra la barra d'eines d'edició (cal JavaScript)",
'tog-editondblclick' => 'Edita les pàgines amb un doble clic (cal JavaScript)',
'tog-editsection' => 'Activa la modificació de seccions mitjançant els enllaços [modifica]',
'tog-editsectiononrightclick' => "Habilita l'edició per seccions en clicar amb el botó dret sobre els títols de les seccions (cal JavaScript)",
'tog-showtoc' => 'Mostra la taula de continguts (per pàgines amb més de 3 seccions)',
'tog-rememberpassword' => 'Recorda la contrasenya entre sessions',
'tog-editwidth' => "Amplia el quadre d'edició per encabir tota la pantalla",
'tog-watchcreations' => 'Vigila les pàgines que he creat',
'tog-watchdefault' => 'Afegeix les pàgines que edito a la meua llista de seguiment',
'tog-watchmoves' => 'Afegeix les pàgines que reanomeni a la llista de seguiment',
'tog-watchdeletion' => 'Afegeix les pàgines que elimini a la llista de seguiment',
'tog-minordefault' => 'Marca totes les contribucions com a edicions menors per defecte',
'tog-previewontop' => "Mostra una previsualització abans del quadre d'edició",
'tog-previewonfirst' => 'Mostra una previsualització en la primera modificació',
'tog-nocache' => 'Inhabilita la memòria cau de les pàgines',
'tog-enotifwatchlistpages' => "Notifica'm per correu electrònic dels canvis a les pàgines que vigili",
'tog-enotifusertalkpages' => "Notifica'm per correu quan hi hagi modificacions a la pàgina de discussió del meu compte d'usuari",
'tog-enotifminoredits' => "Notifica'm per correu també en casos d'edicions menors",
'tog-enotifrevealaddr' => "Mostra la meua adreça electrònica en els missatges d'avís per correu",
'tog-shownumberswatching' => "Mostra el nombre d'usuaris que hi vigilen",
'tog-oldsig' => 'Previsualització de la signatura:',
'tog-fancysig' => 'Tractar la signatura com a text wiki (sense enllaç automàtic)',
'tog-externaleditor' => "Utilitza per defecte un editor extern (opció per a experts, requereix la configuració adient de l'ordinador)",
'tog-externaldiff' => "Utilitza per defecte un altre visualitzador de diferències (opció per a experts, requereix la configuració adient de l'ordinador)",
'tog-showjumplinks' => "Habilita els enllaços de dreceres d'accessibilitat",
'tog-uselivepreview' => 'Utilitza la previsualització automàtica (cal JavaScript) (experimental)',
'tog-forceeditsummary' => "Avisa'm en introduir un camp de resum en blanc",
'tog-watchlisthideown' => 'Amaga les meues edicions de la llista de seguiment',
'tog-watchlisthidebots' => 'Amaga de la llista de seguiment les edicions fetes per usuaris bots',
'tog-watchlisthideminor' => 'Amaga les edicions menors de la llista de seguiment',
'tog-watchlisthideliu' => "Amaga a la llista les edicions d'usuaris registrats",
'tog-watchlisthideanons' => "Amaga a la llista les edicions d'usuaris anònims",
'tog-watchlisthidepatrolled' => 'Amaga edicions patrullades de la llista de seguiment',
'tog-nolangconversion' => 'Desactiva la conversió de variants',
'tog-ccmeonemails' => "Envia'm còpies dels missatges que enviï als altres usuaris.",
'tog-diffonly' => 'Amaga el contingut de la pàgina davall de la taula de diferències',
'tog-showhiddencats' => 'Mostra les categories ocultes',
'tog-norollbackdiff' => 'Omet la pàgina de diferències després de realitzar una reversió',
'underline-always' => 'Sempre',
'underline-never' => 'Mai',
'underline-default' => 'Configuració per defecte del navegador',
# Font style option in Special:Preferences
'editfont-style' => "Editeu l'estil de la lletra:",
'editfont-default' => 'Per defecte del navegador',
'editfont-monospace' => 'Font monoespaiada',
'editfont-sansserif' => 'Font de pal sec',
'editfont-serif' => 'Lletra amb gràcia',
# Dates
'sunday' => 'diumenge',
'monday' => 'dilluns',
'tuesday' => 'dimarts',
'wednesday' => 'dimecres',
'thursday' => 'dijous',
'friday' => 'divendres',
'saturday' => 'dissabte',
'sun' => 'dg',
'mon' => 'dl',
'tue' => 'dt',
'wed' => 'dc',
'thu' => 'dj',
'fri' => 'dv',
'sat' => 'ds',
'january' => 'gener',
'february' => 'febrer',
'march' => 'març',
'april' => 'abril',
'may_long' => 'maig',
'june' => 'juny',
'july' => 'juliol',
'august' => 'agost',
'september' => 'setembre',
'october' => 'octubre',
'november' => 'novembre',
'december' => 'desembre',
'january-gen' => 'gener',
'february-gen' => 'febrer',
'march-gen' => 'març',
'april-gen' => 'abril',
'may-gen' => 'maig',
'june-gen' => 'juny',
'july-gen' => 'juliol',
'august-gen' => 'agost',
'september-gen' => 'setembre',
'october-gen' => 'octubre',
'november-gen' => 'novembre',
'december-gen' => 'desembre',
'jan' => 'gen',
'feb' => 'feb',
'mar' => 'març',
'apr' => 'abr',
'may' => 'maig',
'jun' => 'juny',
'jul' => 'jul',
'aug' => 'ago',
'sep' => 'set',
'oct' => 'oct',
'nov' => 'nov',
'dec' => 'des',
# Categories related messages
'pagecategories' => '{{PLURAL:$1|Categoria|Categories}}',
'category_header' => 'Pàgines a la categoria «$1»',
'subcategories' => 'Subcategories',
'category-media-header' => 'Contingut multimèdia en la categoria «$1»',
'category-empty' => "''Aquesta categoria no té cap pàgina ni fitxer.''",
'hidden-categories' => '{{PLURAL:$1|Categoria oculta|Categories ocultes}}',
'hidden-category-category' => 'Categories ocultes',
'category-subcat-count' => "{{PLURAL:$2|Aquesta categoria només té la següent subcategoria.|Aquesta categoria conté {{PLURAL:$1|la següent subcategoria|les següents $1 subcategories}}, d'un total de $2.}}",
'category-subcat-count-limited' => 'Aquesta categoria conté {{PLURAL:$1|la següent subcategoria|les següents $1 subcategories}}.',
'category-article-count' => "{{PLURAL:$2|Aquesta categoria només té la següent pàgina.|{{PLURAL:$1|La següent pàgina és|Les següents $1 pàgines són}} dins d'aquesta categoria, d'un total de $2.}}",
'category-article-count-limited' => '{{PLURAL:$1|La següent pàgina és|Les següents $1 pàgines són}} dins la categoria actual.',
'category-file-count' => "{{PLURAL:$2|Aquesta categoria només té el següent fitxer.|{{PLURAL:$1|El següent fitxer és|Els següents $1 fitxers són}} dins d'aquesta categoria, d'un total de $2.}}",
'category-file-count-limited' => '{{PLURAL:$1|El següent fitxer és|Els següents $1 fitxers són}} dins la categoria actual.',
'listingcontinuesabbrev' => ' cont.',
'index-category' => 'Pàgines indexades',
'noindex-category' => 'Pàgines no indexades',
'mainpagetext' => "'''El programari del MediaWiki s'ha instaŀlat correctament.'''",
'mainpagedocfooter' => "Consulteu la [http://meta.wikimedia.org/wiki/Help:Contents Guia d'Usuari] per a més informació sobre com utilitzar-lo.
== Per a començar ==
* [http://www.mediawiki.org/wiki/Manual:Configuration_settings Llista de característiques configurables]
* [http://www.mediawiki.org/wiki/Manual:FAQ PMF del MediaWiki]
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce Llista de correu (''listserv'') per a anuncis del MediaWiki]",
'about' => 'Quant a',
'article' => 'Pàgina de contingut',
'newwindow' => '(obre en una nova finestra)',
'cancel' => 'Anuŀla',
'moredotdotdot' => 'Més...',
'mypage' => 'Pàgina personal',
'mytalk' => 'Discussió',
'anontalk' => "Discussió d'aquesta IP",
'navigation' => 'Navegació',
'and' => ' i',
# Cologne Blue skin
'qbfind' => 'Cerca',
'qbbrowse' => 'Navega',
'qbedit' => 'Modifica',
'qbpageoptions' => 'Opcions de pàgina',
'qbpageinfo' => 'Informació de pàgina',
'qbmyoptions' => 'Pàgines pròpies',
'qbspecialpages' => 'Pàgines especials',
'faq' => 'PMF',
'faqpage' => 'Project:PMF',
# Vector skin
'vector-action-addsection' => 'Nova secció',
'vector-action-delete' => 'Esborra',
'vector-action-move' => 'Reanomena',
'vector-action-protect' => 'Protegeix',
'vector-action-undelete' => 'Restaura',
'vector-action-unprotect' => 'Desprotegeix',
'vector-namespace-category' => 'Categoria',
'vector-namespace-help' => 'Ajuda',
'vector-namespace-image' => 'Fitxer',
'vector-namespace-main' => 'Pàgina',
'vector-namespace-media' => 'Pàgina de fitxer',
'vector-namespace-mediawiki' => 'Missatge',
'vector-namespace-project' => 'Pàgina del projecte',
'vector-namespace-special' => 'Pàgina especial',
'vector-namespace-talk' => 'Discussió',
'vector-namespace-template' => 'Plantilla',
'vector-namespace-user' => "Pàgina d'usuari",
'vector-view-create' => 'Inicia',
'vector-view-edit' => 'Modifica',
'vector-view-history' => "Mostra l'historial",
'vector-view-view' => 'Mostra',
'vector-view-viewsource' => 'Mostra la font',
'actions' => 'Accions',
'namespaces' => 'Espais de noms',
'variants' => 'Variants',
'errorpagetitle' => 'Error',
'returnto' => 'Torna cap a $1.',
'tagline' => 'De {{SITENAME}}',
'help' => 'Ajuda',
'search' => 'Cerca',
'searchbutton' => 'Cerca',
'go' => 'Vés-hi',
'searcharticle' => 'Vés-hi',
'history' => 'Historial de canvis',
'history_short' => 'Historial',
'updatedmarker' => 'actualitzat des de la darrera visita',
'info_short' => 'Informació',
'printableversion' => 'Versió per a impressora',
'permalink' => 'Enllaç permanent',
'print' => "Envia aquesta pàgina a la cua d'impressió",
'edit' => 'Modifica',
'create' => 'Crea',
'editthispage' => 'Modifica la pàgina',
'create-this-page' => 'Crea aquesta pàgina',
'delete' => 'Elimina',
'deletethispage' => 'Elimina la pàgina',
'undelete_short' => "Restaura {{PLURAL:$1|l'edició eliminada|$1 edicions eliminades}}",
'protect' => 'Protecció',
'protect_change' => 'canvia',
'protectthispage' => 'Protecció de la pàgina',
'unprotect' => 'Desprotecció',
'unprotectthispage' => 'Desprotecció de la pàgina',
'newpage' => 'Pàgina nova',
'talkpage' => 'Discussió de la pàgina',
'talkpagelinktext' => 'Discussió',
'specialpage' => 'Pàgina especial',
'personaltools' => "Eines de l'usuari",
'postcomment' => 'Nova secció',
'articlepage' => 'Mostra la pàgina',
'talk' => 'Discussió',
'views' => 'Vistes',
'toolbox' => 'Eines',
'userpage' => "Visualitza la pàgina d'usuari",
'projectpage' => 'Visualitza la pàgina del projecte',
'imagepage' => 'Visualitza la pàgina del fitxer',
'mediawikipage' => 'Visualitza la pàgina de missatges',
'templatepage' => 'Visualitza la pàgina de plantilla',
'viewhelppage' => "Visualitza la pàgina d'ajuda",
'categorypage' => 'Visualitza la pàgina de la categoria',
'viewtalkpage' => 'Visualitza la pàgina de discussió',
'otherlanguages' => 'En altres llengües',
'redirectedfrom' => "(S'ha redirigit des de: $1)",
'redirectpagesub' => 'Pàgina de redirecció',
'lastmodifiedat' => 'Darrera modificació de la pàgina: $2, $1.',
'viewcount' => 'Aquesta pàgina ha estat visitada {{PLURAL:$1|una vegada|$1 vegades}}.',
'protectedpage' => 'Pàgina protegida',
'jumpto' => 'Dreceres ràpides:',
'jumptonavigation' => 'navegació',
'jumptosearch' => 'cerca',
'view-pool-error' => "Disculpeu, els servidors es troben sobrecarregats.
Massa usuaris estan tractant d'accedir a aquesta pàgina.
Per favor, esperau una mica abans de tornar a accedir a aquesta pàgina.
$1",
# All link text and link target definitions of links into project namespace that get used by other message strings, with the exception of user group pages (see grouppage) and the disambiguation template definition (see disambiguations).
'aboutsite' => 'Quant al projecte {{SITENAME}}',
'aboutpage' => 'Project:Quant a',
'copyright' => "El contingut és disponible sota els termes d'una llicència $1",
'copyrightpage' => "{{ns:project}}:Drets d'autor",
'currentevents' => 'Actualitat',
'currentevents-url' => 'Project:Actualitat',
'disclaimers' => 'Avís general',
'disclaimerpage' => 'Project:Avís general',
'edithelp' => 'Ajuda',
'edithelppage' => "Help:Com s'edita una pàgina",
'helppage' => 'Help:Ajuda',
'mainpage' => 'Pàgina principal',
'mainpage-description' => 'Pàgina principal',
'policy-url' => 'Project:Polítiques',
'portal' => 'Portal comunitari',
'portal-url' => 'Project:Portal',
'privacy' => 'Política de privadesa',
'privacypage' => 'Project:Política de privadesa',
'badaccess' => 'Error de permisos',
'badaccess-group0' => "No teniu permisos per a executar l'acció que heu soŀlicitat.",
'badaccess-groups' => "L'acció que heu soŀlicitat es limita als usuaris {{PLURAL:$2|del grup|dels grups}}: $1.",
'versionrequired' => 'Cal la versió $1 del MediaWiki',
'versionrequiredtext' => 'Cal la versió $1 del MediaWiki per a utilitzar aquesta pàgina. Vegeu [[Special:Version]]',
'ok' => 'OK',
'retrievedfrom' => 'Obtingut de «$1»',
'youhavenewmessages' => 'Teniu $1 ($2).',
'newmessageslink' => 'nous missatges',
'newmessagesdifflink' => 'últims canvis',
'youhavenewmessagesmulti' => 'Teniu nous missatges a $1',
'editsection' => 'modifica',
'editold' => 'modifica',
'viewsourceold' => 'mostra codi font',
'editlink' => 'modifica',
'viewsourcelink' => 'mostra codi font',
'editsectionhint' => 'Modifica la secció: $1',
'toc' => 'Contingut',
'showtoc' => 'desplega',
'hidetoc' => 'amaga',
'thisisdeleted' => 'Voleu mostrar o restaurar $1?',
'viewdeleted' => 'Voleu mostrar $1?',
'restorelink' => '{{PLURAL:$1|una versió esborrada|$1 versions esborrades}}',
'feedlinks' => 'Sindicament:',
'feed-invalid' => 'La subscripció no és vàlida pel tipus de sindicament.',
'feed-unavailable' => 'Els canals de sindicació no estan disponibles',
'site-rss-feed' => 'Canal RSS $1',
'site-atom-feed' => 'Canal Atom $1',
'page-rss-feed' => '«$1» RSS Feed',
'page-atom-feed' => 'Canal Atom «$1»',
'red-link-title' => '$1 (encara no existeix)',
# Short words for each namespace, by default used in the namespace tab in monobook
'nstab-main' => 'Pàgina',
'nstab-user' => "Pàgina d'usuari",
'nstab-media' => 'Pàgina de multimèdia',
'nstab-special' => 'Pàgina especial',
'nstab-project' => 'Pàgina del projecte',
'nstab-image' => 'Fitxer',
'nstab-mediawiki' => 'Missatge',
'nstab-template' => 'Plantilla',
'nstab-help' => 'Ajuda',
'nstab-category' => 'Categoria',
# Main script and global functions
'nosuchaction' => 'No es reconeix aquesta operació',
'nosuchactiontext' => "L'acció especificada per la URL no és vàlida.
Potser heu escrit malament la URL o heu seguit un enllaç incorrecte.
Això també pot ser causat per un error al programari utilitzat pel projecte {{SITENAME}}.",
'nosuchspecialpage' => 'No es troba la pàgina especial que busqueu',
'nospecialpagetext' => '<strong>La pàgina especial que demaneu no és vàlida.</strong>
Vegeu la llista de pàgines especials a [[Special:SpecialPages]].',
# General errors
'error' => 'Error',
'databaseerror' => "S'ha produït un error en la base de dades",
'dberrortext' => "S'ha produït un error de sintaxi en una consulta a la base de dades.
Açò podria indicar un error en el programari.
La darrera consulta que s'ha intentat fer ha estat:
<blockquote><tt>$1</tt></blockquote>
des de la funció «<tt>$2</tt>».
L'error de retorn ha estat «<tt>$3: $4</tt>».",
'dberrortextcl' => "S'ha produït un error de sintaxi en una consulta a la base de dades.
La darrera consulta que s'ha intentat fer ha estat:
<blockquote><tt>$1</tt></blockquote>
des de la funció «<tt>$2</tt>».
L'error de retorn ha estat «<tt>$3: $4</tt>».",
'laggedslavemode' => 'Avís: La pàgina podria mancar de modificacions recents.',
'readonly' => 'La base de dades es troba bloquejada',
'enterlockreason' => 'Escriviu una raó pel bloqueig, així com una estimació de quan tindrà lloc el desbloqueig',
'readonlytext' => "La base de dades està temporalment bloquejada segurament per tasques de manteniment, després de les quals es tornarà a la normalitat.
L'administrador que l'ha bloquejada ha donat aquesta explicació: $1",
'missing-article' => "La base de dades no ha trobat el text d'una pàgina que hauria d'haver trobat, anomenada «$1» $2.
Normalment això passa perquè s'ha seguit una diferència desactualitzada o un enllaç d'historial a una pàgina que s'ha suprimit.
Si no fos el cas, podríeu haver trobat un error en el programari.
Aviseu-ho llavors a un [[Special:ListUsers/sysop|administrador]], deixant-li clar l'adreça URL causant del problema.",
'missingarticle-rev' => '(revisió#: $1)',
'missingarticle-diff' => '(dif: $1, $2)',
'readonly_lag' => "La base de dades s'ha bloquejat automàticament mentre els servidors esclaus se sincronitzen amb el mestre",
'internalerror' => 'Error intern',
'internalerror_info' => 'Error intern: $1',
'fileappenderrorread' => 'No s\'ha pogut llegir "$1" durant la inserció.',
'fileappenderror' => 'No he pogut afegir "$1" a "$2".',
'filecopyerror' => "No s'ha pogut copiar el fitxer «$1» com «$2».",
'filerenameerror' => "No s'ha pogut reanomenar el fitxer «$1» com «$2».",
'filedeleteerror' => "No s'ha pogut eliminar el fitxer «$1».",
'directorycreateerror' => "No s'ha pogut crear el directori «$1».",
'filenotfound' => "No s'ha pogut trobar el fitxer «$1».",
'fileexistserror' => "No s'ha pogut escriure al fitxer «$1»: ja existeix",
'unexpected' => "S'ha trobat un valor imprevist: «$1»=«$2».",
'formerror' => "Error: no s'ha pogut enviar les dades del formulari",
'badarticleerror' => 'Aquesta operació no es pot dur a terme en aquesta pàgina',
'cannotdelete' => "No s'ha pogut esborrar la pàgina o fitxer «$1».
Potser ja ha estat esborrat per algú altre.",
'badtitle' => 'El títol no és correcte',
'badtitletext' => 'El títol de la pàgina que heu introduït no és correcte, és en blanc o conté un enllaç trencat amb un altre projecte. També podria contenir algun caràcter no acceptat als títols de pàgina.',
'perfcached' => 'Tot seguit es mostren les dades que es troben a la memòria cau, i podria no tenir els últims canvis del dia:',
'perfcachedts' => 'Tot seguit es mostra les dades que es troben a la memòria cau, la darrera actualització de la qual fou el $1.',
'querypage-no-updates' => "S'ha inhabilitat l'actualització d'aquesta pàgina. Les dades que hi contenen podrien no estar al dia.",
'wrong_wfQuery_params' => 'Paràmetres incorrectes per a wfQuery()<br />
Funció: $1<br />
Consulta: $2',
'viewsource' => 'Mostra la font',
'viewsourcefor' => 'per a $1',
'actionthrottled' => 'Acció limitada',
'actionthrottledtext' => "Com a mesura per a prevenir la propaganda indiscriminada (spam), no podeu fer aquesta acció tantes vegades en un període de temps tan curt. Torneu-ho a intentar d'ací uns minuts.",
'protectedpagetext' => 'Aquesta pàgina està protegida per evitar modificacions.',
'viewsourcetext' => "Podeu visualitzar i copiar la font d'aquesta pàgina:",
'protectedinterface' => "Aquesta pàgina conté cadenes de text per a la interfície del programari, i és protegida per a previndre'n abusos.",
'editinginterface' => "'''Avís:''' Esteu editant una pàgina que conté cadenes de text per a la interfície d'aquest programari. Tingueu en compte que els canvis que es fan a aquesta pàgina afecten a l'aparença de la interfície d'altres usuaris. Pel que fa a les traduccions, plantegeu-vos utilitzar la [http://translatewiki.net/wiki/Main_Page?setlang=ca translatewiki.net], el projecte de traducció de MediaWiki.",
'sqlhidden' => '(consulta SQL oculta)',
'cascadeprotected' => "Aquesta pàgina està protegida i no es pot modificar perquè està inclosa en {{PLURAL:$1|la següent pàgina, que té|les següents pàgines, que tenen}} activada l'opció de «protecció en cascada»:
$2",
'namespaceprotected' => "No teniu permís per a modificar pàgines en l'espai de noms '''$1'''.",
'customcssjsprotected' => "No teniu permís per modificar aquesta pàgina, perquè conté paràmetres personals d'un altre usuari.",
'ns-specialprotected' => 'No es poden modificar les pàgines especials.',
'titleprotected' => "La creació d'aquesta pàgina està protegida per [[User:$1|$1]].
Els seus motius han estat: «''$2''».",
# Virus scanner
'virus-badscanner' => "Mala configuració: antivirus desconegut: ''$1''",
'virus-scanfailed' => 'escaneig fallit (codi $1)',
'virus-unknownscanner' => 'antivirus desconegut:',
# Login and logout pages
'logouttext' => "'''Heu finalitzat la vostra sessió.'''
Podeu continuar utilitzant {{SITENAME}} de forma anònima, o podeu [[Special:UserLogin|iniciar una sessió una altra vegada]] amb el mateix o un altre usuari.
Tingueu en compte que algunes pàgines poden continuar mostrant-se com si encara estiguéssiu en una sessió, fins que buideu la memòria cau del vostre navegador.",
'welcomecreation' => "== Us donem la benvinguda, $1! ==
S'ha creat el vostre compte.
No oblideu de canviar les vostres [[Special:Preferences|preferències de {{SITENAME}}]].",
'yourname' => "Nom d'usuari",
'yourpassword' => 'Contrasenya',
'yourpasswordagain' => 'Escriviu una altra vegada la contrasenya',
'remembermypassword' => 'Recorda la contrasenya entre sessions',
'yourdomainname' => 'El vostre domini',
'externaldberror' => "Hi ha hagut una fallida en el servidor d'autenticació externa de la base de dades i no teniu permís per a actualitzar el vostre compte d'accès extern.",
'login' => 'Inici de sessió',
'nav-login-createaccount' => 'Inicia una sessió / crea un compte',
'loginprompt' => 'Heu de tenir les galetes habilitades per a poder iniciar una sessió a {{SITENAME}}.',
'userlogin' => 'Inicia una sessió / crea un compte',
'userloginnocreate' => 'Inici de sessió',
'logout' => 'Finalitza la sessió',
'userlogout' => 'Finalitza la sessió',
'notloggedin' => 'No us heu identificat',
'nologin' => "No teniu un compte? '''$1'''.",
'nologinlink' => 'Crea un compte',
'createaccount' => 'Crea un compte',
'gotaccount' => 'Ja teniu un compte? $1.',
'gotaccountlink' => 'Inicia una sessió',
'createaccountmail' => 'per correu electrònic',
'badretype' => 'Les contrasenyes que heu introduït no coincideixen.',
'userexists' => 'El nom que heu entrat ja és en ús. Escolliu-ne un de diferent.',
'loginerror' => "Error d'inici de sessió",
'createaccounterror' => "No s'ha pogut crear el compte: $1",
'nocookiesnew' => "S'ha creat el compte d'usuari, però no esteu enregistrat. El projecte {{SITENAME}} usa galetes per enregistrar els usuaris. Si us plau activeu-les, per a poder enregistrar-vos amb el vostre nom d'usuari i la clau.",
'nocookieslogin' => 'El programari {{SITENAME}} utilitza galetes per enregistrar usuaris. Teniu les galetes desactivades. Activeu-les i torneu a provar.',
'noname' => "No heu especificat un nom vàlid d'usuari.",
'loginsuccesstitle' => "S'ha iniciat la sessió amb èxit",
'loginsuccess' => 'Heu iniciat la sessió a {{SITENAME}} com a «$1».',
'nosuchuser' => "No hi ha cap usuari anomenat «$1».
Reviseu-ne l'ortografia (recordeu que es distingeixen les majúscules i minúscules), o [[Special:UserLogin/signup|creeu un compte d'usuari nou]].",
'nosuchusershort' => 'No hi ha cap usuari anomenat «<nowiki>$1</nowiki>». Comproveu que ho hàgiu escrit correctament.',
'nouserspecified' => "Heu d'especificar un nom d'usuari.",
'login-userblocked' => 'Aquest usuari està bloquejat. Inici de sessió no permès.',
'wrongpassword' => 'La contrasenya que heu introduït és incorrecta. Torneu-ho a provar.',
'wrongpasswordempty' => "La contrasenya que s'ha introduït estava en blanc. Torneu-ho a provar.",
'passwordtooshort' => "La contrasenya ha de tenir un mínim {{PLURAL:$1|d'un caràcter|de $1 caràcters}}.",
'password-name-match' => "La contrasenya ha de ser diferent al vostre nom d'usuari.",
'mailmypassword' => "Envia'm una nova contrasenya per correu electrònic",
'passwordremindertitle' => 'Nova contrasenya temporal per al projecte {{SITENAME}}',
'passwordremindertext' => "Algú (vós mateix segurament, des de l'adreça l'IP $1) ha soŀlicitat que us enviéssim una nova contrasenya per a iniciar la sessió al projecte {{SITENAME}} ($4).
La nova contrasenya temporal per a l'usuari «$2» és ara «$3». Si aquesta fou la vostra intenció, ara hauríeu d'iniciar la sessió i canviar-la. Tingueu present que és temporal i caducarà d'aquí {{PLURAL:$5|un dia|$5 dies}}.
Si algú altre hagués fet aquesta soŀlicitud o si ja haguéssiu recordat la vostra contrasenya i
no volguéssiu canviar-la, ignoreu aquest missatge i continueu utilitzant
la vostra antiga contrasenya.",
'noemail' => "No hi ha cap adreça electrònica registrada de l'usuari «$1».",
'noemailcreate' => "Has d'indicar una adreça de correu electrònic vàlida",
'passwordsent' => "S'ha enviat una nova contrasenya a l'adreça electrònica registrada per «$1».
Inicieu una sessió després que la rebeu.",
'blocked-mailpassword' => 'La vostra adreça IP ha estat blocada. Se us ha desactivat la funció de recuperació de contrasenya per a prevenir abusos.',
'eauthentsent' => "S'ha enviat un correu electrònic a la direcció especificada. Abans no s'envïi cap altre correu electrònic a aquesta adreça, cal verificar que és realment vostra. Per tant, cal que seguiu les instruccions presents en el correu electrònic que se us ha enviat.",
'throttled-mailpassword' => "Ja se us ha enviat un recordatori de contrasenya en {{PLURAL:$1|l'última hora|les últimes $1 hores}}. Per a prevenir abusos, només s'envia un recordatori de contrasenya cada {{PLURAL:$1|hora|$1 hores}}.",
'mailerror' => "S'ha produït un error en enviar el missatge: $1",
'acct_creation_throttle_hit' => "Des de la vostra adreça IP ja {{PLURAL:$1|s'ha creat un compte|s'han creat $1 comptes}} en l'últim dia i aquest és el màxim permès en aquest wiki per aquest període de temps.
Així, des d'aquesta adreça IP no es poden crear més comptes actualment.",
'emailauthenticated' => "S'ha autenticat la vostra adreça electrònica el $2 a les $3.",
'emailnotauthenticated' => 'La vostra adreça de correu electrònic <strong>encara no està autenticada</strong>. No rebrà cap missatge de correu electrònic per a cap de les següents funcionalitats.',
'noemailprefs' => 'Especifiqueu una adreça electrònica per a activar aquestes característiques.',
'emailconfirmlink' => 'Confirmeu la vostra adreça electrònica',
'invalidemailaddress' => "No es pot acceptar l'adreça electrònica perquè sembla que té un format no vàlid.
Introduïu una adreça amb un format adequat o bé buideu el camp.",
'accountcreated' => "S'ha creat el compte",
'accountcreatedtext' => "S'ha creat el compte d'usuari de $1.",
'createaccount-title' => "Creació d'un compte a {{SITENAME}}",
'createaccount-text' => "Algú ha creat un compte d'usuari anomenat $2 al projecte {{SITENAME}}
($4) amb la vostra adreça de correu electrònic. La contrasenya per a l'usuari «$2» és «$3». Hauríeu d'accedir al compte i canviar-vos aquesta contrasenya quan abans millor.
Si no hi teniu cap relació i aquest compte ha estat creat per error, simplement ignoreu el missatge.",
'usernamehasherror' => "El nom d'usuari no pot contenir caràcters hash",
'login-throttled' => "Heu realitzat massa intents d'accés a la sessió.
Si us plau, esperi abans de tornar-ho a intentar.",
'loginlanguagelabel' => 'Llengua: $1',
'suspicious-userlogout' => "S'ha denegat la vostra petició per tancar la sessió ja què sembla que va ser enviada per un navegador defectuós o un proxy cau.",
# Password reset dialog
'resetpass' => 'Canvia la contrasenya',
'resetpass_announce' => 'Heu iniciat la sessió amb un codi temporal enviat per correu electrònic. Per a finalitzar-la, heu de definir una nova contrasenya ací:',
'resetpass_text' => '<!-- Afegiu-hi un text -->',
'resetpass_header' => 'Canvia la contrasenya del compte',
'oldpassword' => 'Contrasenya antiga',
'newpassword' => 'Contrasenya nova',
'retypenew' => 'Torneu a escriure la nova contrasenya:',
'resetpass_submit' => 'Definiu una contrasenya i inicieu una sessió',
'resetpass_success' => "S'ha canviat la vostra contrasenya amb èxit! Ara ja podeu iniciar-hi una sessió...",
'resetpass_forbidden' => 'No poden canviar-se les contrasenyes',
'resetpass-no-info' => "Heu d'estar registrats en un compte per a poder accedir directament a aquesta pàgina.",
'resetpass-submit-loggedin' => 'Canvia la contrasenya',
'resetpass-submit-cancel' => 'Canceŀla',
'resetpass-wrong-oldpass' => 'Contrasenya actual o temporal no vàlida.
Deveu haver canviat la vostra contrasenya o demanat una nova contrasenya temporal.',
'resetpass-temp-password' => 'Contrasenya temporal:',
# Edit page toolbar
'bold_sample' => 'Text en negreta',
'bold_tip' => 'Text en negreta',
'italic_sample' => 'Text en cursiva',
'italic_tip' => 'Text en cursiva',
'link_sample' => "Títol de l'enllaç",
'link_tip' => 'Enllaç intern',
'extlink_sample' => "http://www.example.com títol de l'enllaç",
'extlink_tip' => 'Enllaç extern (recordeu el prefix http://)',
'headline_sample' => "Text per a l'encapçalament",
'headline_tip' => 'Encapçalat de secció de 2n nivell',
'math_sample' => 'Inseriu una fórmula ací',
'math_tip' => 'Fórmula matemàtica (LaTeX)',
'nowiki_sample' => 'Inseriu ací text sense format',
'nowiki_tip' => 'Ignora el format wiki',
'image_sample' => 'Exemple.jpg',
'image_tip' => 'Fitxer incrustat',
'media_sample' => 'Exemple.ogg',
'media_tip' => 'Enllaç del fitxer',
'sig_tip' => 'La vostra signatura amb marca horària',
'hr_tip' => 'Línia horitzontal (feu-la servir amb moderació)',
# Edit pages
'summary' => 'Resum:',
'subject' => 'Tema/capçalera:',
'minoredit' => 'Aquesta és una modificació menor',
'watchthis' => 'Vigila aquesta pàgina',
'savearticle' => 'Desa la pàgina',
'preview' => 'Previsualització',
'showpreview' => 'Mostra una previsualització',
'showlivepreview' => 'Vista ràpida',
'showdiff' => 'Mostra els canvis',
'anoneditwarning' => "'''Avís:''' No esteu identificats amb un compte d'usuari. Es mostrarà la vostra adreça IP en l'historial d'aquesta pàgina.",
'missingsummary' => "'''Recordatori''': Heu deixat en blanc el resum de l'edició. Si torneu a clicar al botó de desar, l'edició es guardarà sense resum.",
'missingcommenttext' => 'Introduïu un comentari a continuació.',
'missingcommentheader' => "'''Recordatori:''' No heu proporcionat un assumpte/encapçalament per al comentari. Si cliqueu al botó Torna a desar, la vostra contribució se desarà sense cap.",
'summary-preview' => 'Previsualització del resum:',
'subject-preview' => 'Previsualització de tema/capçalera:',
'blockedtitle' => "L'usuari està blocat",
'blockedtext' => "'''S'ha procedit al blocatge del vostre compte d'usuari o la vostra adreça IP.'''
El blocatge l'ha dut a terme l'usuari $1.
El motiu donat és ''$2''.
* Inici del blocatge: $8
* Final del blocatge: $6
* Compte blocat: $7
Podeu contactar amb $1 o un dels [[{{MediaWiki:Grouppage-sysop}}|administradors]] per a discutir-ho.
Tingueu en compte que no podeu fer servir el formulari d'enviament de missatges de correu electrònic a cap usuari, a menys que tingueu una adreça de correu vàlida registrada a les vostres [[Special:Preferences|preferències d'usuari]] i no ho tingueu tampoc blocat.
La vostra adreça IP actual és $3, i el número d'identificació del blocatge és #$5.
Si us plau, incloeu aquestes dades en totes les consultes que feu.",
'autoblockedtext' => "La vostra adreça IP ha estat blocada automàticament perquè va ser usada per un usuari actualment bloquejat. Aquest usuari va ser blocat per l'administrador $1. El motiu donat per al bloqueig ha estat:
:''$2''
* Inici del bloqueig: $8
* Final del bloqueig: $6
* Usuari bloquejat: $7
Podeu contactar l'usuari $1 o algun altre dels [[{{MediaWiki:Grouppage-sysop}}|administradors]] per a discutir el bloqueig.
Recordeu que per a poder usar l'opció «Envia un missatge de correu electrònic a aquest usuari» haureu d'haver validat una adreça de correu electrònic a les vostres [[Special:Preferences|preferències]].
El número d'identificació de la vostra adreça IP és $3, i l'ID del bloqueig és #$5. Si us plau, incloeu aquestes dades en totes les consultes que feu.",
'blockednoreason' => "no s'ha donat cap motiu",
'blockedoriginalsource' => "La font de '''$1''' es mostra a sota:",
'blockededitsource' => "El text de les vostres edicions a '''$1''' es mostra a continuació:",
'whitelistedittitle' => 'Cal iniciar una sessió per a poder modificar el contingut',
'whitelistedittext' => 'Heu de $1 per modificar pàgines.',
'confirmedittext' => "Heu de confirmar la vostra adreça electrònica abans de poder modificar les pàgines. Definiu i valideu la vostra adreça electrònica a través de les vostres [[Special:Preferences|preferències d'usuari]].",
'nosuchsectiontitle' => 'No es pot trobar la secció',
'nosuchsectiontext' => 'Heu intentat editar una secció que no existeix.
Potser ha estat moguda o eliminada mentre estàveu veient la pàgina.',
'loginreqtitle' => 'Cal que inicieu una sessió',
'loginreqlink' => 'inicia una sessió',
'loginreqpagetext' => 'Heu de ser $1 per a visualitzar altres pàgines.',
'accmailtitle' => "S'ha enviat una contrasenya.",
'accmailtext' => "S'ha enviat una contrasenya aleatòria a $2 per a l'{{GENDER:$1|usuari|usuària}} [[User talk:$1|$1]].
La contrasenya per aquest nou compte pot ser canviada a la pàgina de ''[[Special:ChangePassword|canvi de contrasenya]]'' un cop connectat.",
'newarticle' => '(Nou)',
'newarticletext' => "Heu seguit un enllaç a una pàgina que encara no existeix.
Per a crear-la, comenceu a escriure en l'espai de sota
(vegeu l'[[{{MediaWiki:Helppage}}|ajuda]] per a més informació).
Si sou ací per error, simplement cliqueu al botó «Enrere» del vostre navegador.",
'anontalkpagetext' => "----''Aquesta és la pàgina de discussió d'un usuari anònim que encara no ha creat un compte o que no fa servir el seu nom registrat. Per tant, hem de fer servir la seua adreça IP numèrica per a identificar-lo. Una adreça IP pot ser compartida per molts usuaris. Si sou un usuari anònim, i trobeu que us han adreçat comentaris inoportuns, si us plau, [[Special:UserLogin/signup|creeu-vos un compte]], o [[Special:UserLogin|entreu en el vostre compte]] si ja en teniu un, per a evitar futures confusions amb altres usuaris anònims.''",
'noarticletext' => 'Actualment no hi ha text en aquesta pàgina.
Podeu [[Special:Search/{{PAGENAME}}|cercar aquest títol]] en altres pàgines,
<span class="plainlinks">[{{fullurl:{{#Special:Log}}|page={{FULLPAGENAMEE}}}} cercar en els registres]
o [{{fullurl:{{FULLPAGENAME}}|action=edit}} crear-la ara]</span>.',
'noarticletext-nopermission' => 'Actualment no hi ha text en aquesta pàgina.
Podeu [[Special:Search/{{PAGENAME}}|cercar aquest títol]] en altres pàgines o bé <span class="plainlinks">[{{fullurl:{{#Special:Log}}|page={{FULLPAGENAMEE}}}} cercar en els registres relacionats]</span>.',
'userpage-userdoesnotexist' => "Atenció: El compte d'usuari «$1» no està registrat. En principi no hauríeu de crear ni editar aquesta pàgina.",
'userpage-userdoesnotexist-view' => 'El compte d\'usuari "$1" no està registrat.',
'blocked-notice-logextract' => "En aquests moments aquest compte d'usuari es troba blocat.
Per més detalls, la darrera entrada del registre es mostra a continuació:",
'clearyourcache' => "'''Nota:''' Després de desar, heu de posar al dia la memòria cau del vostre navegador per veure els canvis. '''Mozilla / Firefox / Safari:''' Premeu ''Shift'' mentre cliqueu ''Actualitza'' (Reload), o premeu ''Ctrl+F5'' o ''Ctrl+R'' (''Cmd+R'' en un Mac Apple); '''Internet Explorer:''' premeu ''Ctrl'' mentre cliqueu ''Actualitza'' (Refresh), o premeu ''Ctrl+F5''; '''Konqueror:''': simplement cliqueu el botó ''Recarregar'' (Reload), o premeu ''F5''; '''Opera''' haureu d'esborrar completament la vostra memòria cau (caché) a ''Tools→Preferences''.",
'usercssyoucanpreview' => "'''Consell:''' Utilitzeu el botó \"{{int:showpreview}}\" per probar el vostre nou CSS abans de desar-lo.",
'userjsyoucanpreview' => "'''Consell:''' Utilitzeu el botó \"{{int:showpreview}}\" per probar el vostre nou JavaScript abans de desar-lo.",
'usercsspreview' => "'''Recordeu que esteu previsualitzant el vostre CSS d'usuari.'''
'''Encara no s'ha desat!'''",
'userjspreview' => "'''Recordeu que només estau provant/previsualitzant el vostre JavaScript, encara no ho heu desat!'''",
'userinvalidcssjstitle' => "'''Atenció:''' No existeix l'aparença «$1». Recordeu que les subpàgines personalitzades amb extensions .css i .js utilitzen el títol en minúscules, per exemple, {{ns:user}}:NOM/monobook.css no és el mateix que {{ns:user}}:NOM/Monobook.css.",
'updated' => '(Actualitzat)',
'note' => "'''Nota:'''",
'previewnote' => "'''Açò només és una previsualització, els canvis de la qual encara no s'han desat!'''",
'previewconflict' => "Aquesta previsualització reflecteix, a l'àrea
d'edició superior, el text tal i com apareixerà si trieu desar-lo.",
'session_fail_preview' => "'''No s'ha pogut processar la vostra modificació a causa d'una pèrdua de dades de la sessió.
Si us plau, proveu-ho una altra vegada. Si continués sense funcionar, proveu de [[Special:UserLogout|finalitzar la sessió]] i torneu a iniciar-ne una.'''",
'session_fail_preview_html' => "'''Ho sentim, no s'han pogut processar les vostres modificacions a causa d'una pèrdua de dades de la sessió.'''
''Com que el projecte {{SITENAME}} té habilitat l'ús de codi HTML cru, s'ha amagat la previsualització com a prevenció contra atacs mitjançant codis JavaScript.''
'''Si es tracta d'una contribució legítima, si us plau, intenteu-ho una altra vegada. Si continua havent-hi problemes, [[Special:UserLogout|finalitzeu la sessió]] i torneu a iniciar-ne una.'''",
'token_suffix_mismatch' => "'''S'ha rebutjat la vostra modificació perquè el vostre client ha fet malbé els caràcters de puntuació en el testimoni d'edició. S'ha rebutjat la modificació per a evitar la corrupció del text de la pàgina. Açò passa a vegades quan s'utilitza un servei web de servidor intermediari anònim amb problemes.'''",
'editing' => "S'està editant $1",
'editingsection' => "S'està editant $1 (secció)",
'editingcomment' => "S'està editant $1 (nova secció)",
'editconflict' => "Conflicte d'edició: $1",
'explainconflict' => "Algú més ha canviat aquesta pàgina des que l'heu editada.
L'àrea de text superior conté el text de la pàgina com existeix actualment.
Els vostres canvis es mostren en l'àrea de text inferior.
Haureu de fusionar els vostres canvis en el text existent.
'''Només''' el text de l'àrea superior es desarà quan premeu el botó «Desa la pàgina».",
'yourtext' => 'El vostre text',
'storedversion' => 'Versió emmagatzemada',
'nonunicodebrowser' => "'''Alerta: El vostre navegador no és compatible amb unicode.'''
S'ha activat una alternativa que us permetrà modificar pàgines amb seguretat: el caràcters que no són ASCII us apareixeran en la caixa d'edició com a codis hexadecimals.",
'editingold' => "'''AVÍS: Esteu editant una revisió desactualitzada de la pàgina.
Si la deseu, es perdran els canvis que hàgiu fet des de llavors.'''",
'yourdiff' => 'Diferències',
'copyrightwarning' => "Si us plau, tingueu en compte que totes les contribucions per al projecte {{SITENAME}} es consideren com a publicades sota els termes de la llicència $2 (vegeu-ne més detalls a $1). Si no desitgeu la modificació i distribució lliure dels vostres escrits sense el vostre consentiment, no els poseu ací.<br />
A més a més, en enviar el vostre text, doneu fe que és vostra l'autoria, o bé de fonts en el domini públic o recursos lliures similars. Heu de saber que aquest '''no''' és el cas de la majoria de pàgines que hi ha a Internet.
'''No feu servir textos amb drets d'autor sense permís!'''",
'copyrightwarning2' => "Si us plau, tingueu en compte que totes les contribucions al projecte {{SITENAME}} poden ser corregides, alterades o esborrades per altres usuaris. Si no desitgeu la modificació i distribució lliure dels vostres escrits sense el vostre consentiment, no els poseu ací.<br />
A més a més, en enviar el vostre text, doneu fe que és vostra l'autoria, o bé de fonts en el domini públic o altres recursos lliures similars (consulteu $1 per a més detalls).
'''No feu servir textos amb drets d'autor sense permís!'''",
'longpagewarning' => "'''ATENCIÓ: Aquesta pàgina fa $1 kB; hi ha navegadors que poden presentar problemes editant pàgines que s'acostin o sobrepassin els 32 kB. Intenteu, si és possible, dividir la pàgina en seccions més petites.'''",
'longpageerror' => "'''ERROR: El text que heu introduït és de $1 kB i sobrepassa el màxim permès de $2 kB. Per tant, no es desarà.'''",
'readonlywarning' => "'''ADVERTÈNCIA: La base de dades està tancada per manteniment
i no podeu desar les vostres contribucions en aquests moments. Podeu retallar i enganxar el codi
en un fitxer de text i desar-lo més tard.'''
L'administrador que l'ha tancada n'ha donat aquesta justificació: $1",
'protectedpagewarning' => "'''ATENCIÓ: Aquesta pàgina està bloquejada i només els usuaris amb drets d'administrador la poden modificar.
A continuació es mostra la darrera entrada del registre com a referència:",
'semiprotectedpagewarning' => "'''Avís:''' Aquesta pàgina està bloquejada i només pot ser modificada per usuaris registrats.
A continuació es mostra la darrera entrada del registre com a referència:",
'cascadeprotectedwarning' => "'''Atenció:''' Aquesta pàgina està protegida de forma que només la poden modificar els administradors, ja que està inclosa a {{PLURAL:$1|la següent pàgina|les següents pàgines}} amb l'opció de «protecció en cascada» activada:",
'titleprotectedwarning' => "'''ATENCIÓ: Aquesta pàgina està protegida de tal manera que es necessiten uns [[Special:ListGroupRights|drets específics]] per a poder crear-la.'''
A continuació es mostra la darrera entrada del registre com a referència:",
'templatesused' => 'Aquesta pàgina fa servir {{PLURAL:$1|la següent plantilla|les següents plantilles}}:',
'templatesusedpreview' => '{{PLURAL:$1|Plantilla usada|Plantilles usades}} en aquesta previsualització:',
'templatesusedsection' => '{{PLURAL:$1|Plantilla usada|Plantilles usades}} en aquesta secció:',
'template-protected' => '(protegida)',
'template-semiprotected' => '(semiprotegida)',
'hiddencategories' => 'Aquesta pàgina forma part de {{PLURAL:$1|la següent categoria oculta|les següents categories ocultes}}:',
'edittools' => "<!-- Es mostrarà als formularis d'edició i de càrrega el text que hi haja després d'aquesta línia. -->",
'nocreatetitle' => "S'ha limitat la creació de pàgines",
'nocreatetext' => "El projecte {{SITENAME}} ha restringit la possibilitat de crear noves pàgines.
Podeu modificar les planes ja existents o bé [[Special:UserLogin|entrar en un compte d'usuari]].",
'nocreate-loggedin' => 'No teniu permisos per a crear pàgines noves.',
'sectioneditnotsupported-title' => 'Edició de la secció no suportada',
'sectioneditnotsupported-text' => "L'edició de la secció no està suportada en aquesta pàgina.",
'permissionserrors' => 'Error de permisos',
'permissionserrorstext' => 'No teniu permisos per a fer-ho, {{PLURAL:$1|pel següent motiu|pels següents motius}}:',
'permissionserrorstext-withaction' => 'No teniu permís per a $2, {{PLURAL:$1|pel motiu següent|pels motius següents}}:',
'recreate-moveddeleted-warn' => "'''Avís: Esteu creant una pàgina que ha estat prèviament esborrada.'''
Hauríeu de considerar si és realment necessari continuar editant aquesta pàgina.
A continuació s'ofereix el registre d'esborraments i de reanomenaments de la pàgina:",
'moveddeleted-notice' => "Aquesta pàgina ha estat esborrada.
A continuació us mostrem com a referència el registre d'esborraments i reanomenaments de la pàgina.",
'log-fulllog' => 'Veure tot el registre',
'edit-hook-aborted' => "Modificació avortada pel hook.
No s'ha donat cap explicació.",
'edit-gone-missing' => "No s'ha pogut actualitzar la pàgina.
Sembla haver estat esborrada.",
'edit-conflict' => "Conflicte d'edició.",
'edit-no-change' => 'La vostra modificació ha estat ignorada perquè no feia cap canvi al text.',
'edit-already-exists' => "No s'ha pogut crear una pàgina.
Ja existeix.",
# Parser/template warnings
'expensive-parserfunction-warning' => "Atenció: Aquesta pàgina conté massa crides a funcions parserfunction complexes.
Actualment n'hi ha {{PLURAL:$1|$1|$1}} i, com a molt, {{PLURAL:$2|hauria|haurien}} de ser $2.",
'expensive-parserfunction-category' => 'Pàgines amb massa crides de parser function',
'post-expand-template-inclusion-warning' => "Avís: La mida d'inclusió de la plantilla és massa gran.
No s'inclouran algunes plantilles.",
'post-expand-template-inclusion-category' => "Pàgines on s'excedeix la mida d'inclusió de les plantilles",
'post-expand-template-argument-warning' => "Avís: Aquesta pàgina conté com a mínim un argument de plantilla que té una mida d'expansió massa llarga.
Se n'han omès els arguments.",
'post-expand-template-argument-category' => "Pàgines que contenen arguments de plantilla que s'han omès",
'parser-template-loop-warning' => "S'ha detectat un bucle de plantilla: [[$1]]",
'parser-template-recursion-depth-warning' => "S'ha excedit el límit de recursivitat de plantilles ($1)",
'language-converter-depth-warning' => "El límit de la profunditat del conversor d'idiomes ha excedit ($1)",
# "Undo" feature
'undo-success' => "Pot desfer-se la modificació. Si us plau, reviseu la comparació de sota per a assegurar-vos que és el que voleu fer; llavors deseu els canvis per a finalitzar la desfeta de l'edició.",
'undo-failure' => 'No pot desfer-se la modificació perquè hi ha edicions entre mig que hi entren en conflicte.',
'undo-norev' => "No s'ha pogut desfer l'edició perquè no existeix o ha estat esborrada.",
'undo-summary' => 'Es desfà la revisió $1 de [[Special:Contributions/$2|$2]] ([[User talk:$2|Discussió]])',
# Account creation failure
'cantcreateaccounttitle' => 'No es pot crear el compte',
'cantcreateaccount-text' => "[[User:$3|$3]] ha bloquejat la creació de comptes des d'aquesta adreça IP ('''$1''').
El motiu donat per $3 és ''$2''",
# History pages
'viewpagelogs' => "Visualitza els registres d'aquesta pàgina",
'nohistory' => 'No hi ha un historial de revisions per a aquesta pàgina.',
'currentrev' => 'Revisió actual',
'currentrev-asof' => 'Revisió de $1',
'revisionasof' => 'Revisió de $1',
'revision-info' => 'Revisió de $1; $2',
'previousrevision' => '←Versió més antiga',
'nextrevision' => 'Versió més nova→',
'currentrevisionlink' => 'Versió actual',
'cur' => 'act',
'next' => 'seg',
'last' => 'prev',
'page_first' => 'primera',
'page_last' => 'última',
'histlegend' => 'Simbologia: (act) = diferència amb la versió actual,
(prev) = diferència amb la versió anterior, m = modificació menor',
'history-fieldset-title' => "Cerca a l'historial",
'history-show-deleted' => 'Només esborrats',
'histfirst' => 'El primer',
'histlast' => 'El darrer',
'historysize' => '({{PLURAL:$1|1 octet|$1 octets}})',
'historyempty' => '(buit)',
# Revision feed
'history-feed-title' => 'Historial de revisió',
'history-feed-description' => 'Historial de revisió per a aquesta pàgina del wiki',
'history-feed-item-nocomment' => '$1 a $2',
'history-feed-empty' => 'La pàgina demanada no existeix.
Potser ha estat esborrada o reanomenada.
Intenteu [[Special:Search|cercar al mateix wiki]] per a noves pàgines rellevants.',
# Revision deletion
'rev-deleted-comment' => "(s'ha suprimit el comentari)",
'rev-deleted-user' => "(s'ha suprimit el nom d'usuari)",
'rev-deleted-event' => "(s'ha suprimit el registre d'accions)",
'rev-deleted-user-contribs' => "[nom d'usuari o adreça IP esborrada - modificació ocultada de les contribucions]",
'rev-deleted-text-permission' => "Aquesta versió de la pàgina ha estat '''eliminada'''.
Hi poden haver més detalls al [{{fullurl:{{#Special:Log}}/delete|page={{FULLPAGENAMEE}}}} registre d'esborrats].",
'rev-deleted-text-unhide' => "La revisió d'aquesta pàgina ha estat '''eliminada'''.
Hi poden haver més detalls al [{{fullurl:{{#Special:Log}}/delete|page={{FULLPAGENAMEE}}}} registre d'esborrats].
Com a administrador encara podeu [$1 veure aquesta revisió] si així ho desitgeu.",
'rev-suppressed-text-unhide' => "Aquesta versió de la pàgina ha estat '''eliminada'''.
Hi poden haver més detalls al [{{fullurl:{{#Special:Log}}/suppress|page={{FULLPAGENAMEE}}}} registre d'esborrats].
Com a administrador, encara podeu [$1 veure aquesta revisió].",
'rev-deleted-text-view' => "Aquesta versió de la pàgina ha estat '''eliminada'''.
Com a administrador podeu veure-la; vegeu-ne més detalls al [{{fullurl:{{#Special:Log}}/delete|page={{FULLPAGENAMEE}}}} registre d'esborrats].",
'rev-suppressed-text-view' => "Aquesta versió de la pàgina ha estat '''eliminada'''.
Com a administrador podeu veure-la; vegeu-ne més detalls al [{{fullurl:{{#Special:Log}}/suppress|page={{FULLPAGENAMEE}}}} registre d'esborrats].",
'rev-deleted-no-diff' => "No podeu veure aquesta comparativa perquè una de les versions ha estat '''esborrada'''.
Potser trobareu detalls al [{{fullurl:{{#Special:Log}}/delete|page={{FULLPAGENAMEE}}}} registre d'esborrats].",
'rev-suppressed-no-diff' => "No podeu veure aquesta diferència perquè una de les revisions ha estat '''esborrada'''.",
'rev-deleted-unhide-diff' => "Una de les revisions d'aquesta comparativa ha estat '''eliminada'''.
Potser trobareu detalls al [{{fullurl:{{#Special:Log}}/delete|page={{FULLPAGENAMEE}}}} registre d'esborrats].
Com a administrador encara podeu [$1 veure aquesta comparativa] si així ho desitgeu.",
'rev-suppressed-unhide-diff' => "Una de les revisions d'aquest diff ha estat '''esborrada'''.
Podeu veure'n més detalls al [{{fullurl:{{#Special:Log}}/suppress|page={{FULLPAGENAMEE}}}} registre de supressions]. Com a administrador, podeu seguir [$1 veient aquest diff] si voleu continuar.",
'rev-deleted-diff-view' => "Una de les revisions d'aquest diff ha estat '''esborrada'''.
Com a administrador pot veure aquest diff; poden haver-hi més detalls al [{{fullurl:{{#Special:Log}}/delete|page={{FULLPAGENAMEE}}}} registre d'esborraments].",
'rev-suppressed-diff-view' => "Una de les revisions d'aquest diff ha estat '''esborrada'''.
Com a administrador pot veure aquest diff; pot haver-hi més detalls al [{{fullurl:{{#Special:Log}}/suppress|page={{FULLPAGENAMEE}}}} registre d'esborraments].",
'rev-delundel' => 'mostra/amaga',
'rev-showdeleted' => 'mostra',
'revisiondelete' => 'Esborrar/restaurar revisions',
'revdelete-nooldid-title' => 'La revisió objectiu no és vàlida',
'revdelete-nooldid-text' => "No heu especificat unes revisions objectius per a realitzar aquesta
funció, la revisió especificada no existeix, o bé esteu provant d'amagar l'actual revisió.",
'revdelete-nologtype-title' => "No s'ha donat el tipus de registre",
'revdelete-nologtype-text' => 'No heu especificat un tipus de registre on dur a terme aquesta acció.',
'revdelete-nologid-title' => 'Entrada de registre no vàlida',
'revdelete-nologid-text' => 'Heu especificat un esdeveniment del registre que no existeix o al que no se li pot aplicar aquesta funció.',
'revdelete-no-file' => 'El fitxer especificat no existeix.',
'revdelete-show-file-confirm' => 'Esteu segurs que voleu veure una revisió esborrada del fitxer «<nowiki>$1</nowiki>» de $2 a $3?',
'revdelete-show-file-submit' => 'Sí',
'revdelete-selected' => "'''{{PLURAL:$2|Revisió seleccionada|Revisions seleccionades}} de [[:$1]]:'''",
'logdelete-selected' => "'''{{PLURAL:$1|Esdeveniment del registre seleccionat|Esdeveniments del registre seleccionats}}:'''",
'revdelete-text' => "'''Les revisions esborrades es mostraran encara als historials de les pàgines i als registres, si bé part del seu contingut serà inaccessible al públic.'''
Els altres administradors de {{SITENAME}} encara podran accedir al contingut amagat i restituir-lo de nou mitjançant aquesta mateixa interfície, si no hi ha cap altra restricció addicional.",
'revdelete-confirm' => "Si us plau, confirmeu que és això el que desitjeu fer, que enteneu les conseqüències, i que esteu fent-ho d'acord amb [[{{MediaWiki:Policy-url}}|les polítiques acordades]].",
'revdelete-suppress-text' => "Les supressions '''només''' han de ser portades a terme en els següents casos:
* Informació personal inapropiada
*: ''adreces personals, números de telèfon, números de la seguretat social, etc.''",
'revdelete-legend' => 'Defineix restriccions en la visibilitat',
'revdelete-hide-text' => 'Amaga el text de revisió',
'revdelete-hide-image' => 'Amaga el contingut del fitxer',
'revdelete-hide-name' => "Acció d'amagar i objectiu",
'revdelete-hide-comment' => "Amaga el comentari de l'edició",
'revdelete-hide-user' => "Amaga el nom d'usuari o la IP de l'editor",
'revdelete-hide-restricted' => 'Suprimir les dades als administradors així com a la resta.',
'revdelete-radio-same' => '(no modificar)',
'revdelete-radio-set' => 'Si',
'revdelete-radio-unset' => 'No',
'revdelete-suppress' => 'Suprimeix també les dades dels administradors',
'revdelete-unsuppress' => 'Suprimir les restriccions de les revisions restaurades',
'revdelete-log' => 'Motiu:',
'revdelete-submit' => 'Aplica a {{PLURAL:$1|la revisió seleccionada|les revisions seleccionades}}',
'revdelete-logentry' => "s'ha canviat la visibilitat de la revisió de [[$1]]",
'logdelete-logentry' => "s'ha canviat la visibilitat de [[$1]]",
'revdelete-success' => "'''La visibilitat d'aquesta revissió s'ha actualitzat correctament .'''",
'revdelete-failure' => "'''La visibilitat de la revisió no ha pogut actualitzar-se:'''
$1",
'logdelete-success' => "'''S'ha establert correctament la visibilitat d'aquest element.'''",
'logdelete-failure' => "'''No s'ha pogut establir la visibilitat del registre:'''
$1",
'revdel-restore' => "Canvia'n la visibilitat",
'pagehist' => 'Historial',
'deletedhist' => "Historial d'esborrat",
'revdelete-content' => 'el contingut',
'revdelete-summary' => "el resum d'edició",
'revdelete-uname' => "el nom d'usuari",
'revdelete-restricted' => 'ha aplicat restriccions al administradors',
'revdelete-unrestricted' => 'ha esborrat les restriccions per a administradors',
'revdelete-hid' => 'ha amagat $1',
'revdelete-unhid' => 'ha tornat a mostrar $1',
'revdelete-log-message' => '$1 de {{PLURAL:$2|la revisió|les revisions}}
$2',
'logdelete-log-message' => "$1 per {{PLURAL:$2|l'esdeveniment|els esdeveniments}} $2",
'revdelete-hide-current' => "Error en amagar l'edició del $1 a les $2: és la revisió actual.
No es pot amagar.",
'revdelete-show-no-access' => "Error en mostrar l'element del $1 a les $2: està marcat com a ''restringit''.
No hi tens accés.",
'revdelete-modify-no-access' => "Error en modificar l'element del $1 a les $2: aquest element ha estat marcat com a ''restringit''.
No hi tens accés.",
'revdelete-modify-missing' => "Error en modificar l'element ID $1: no figura a la base de dades!",
'revdelete-no-change' => "'''Atenció:''' la revisió del $1 a les $2 ja té les restriccions de visibilitat sol·licitades.",
'revdelete-concurrent-change' => "Error en modificar l'element del $1 a les $2: el seu estat sembla haver estat canviat per algú altre quan intentaves modificar-lo.
Si us plau, verifica els registres.",
'revdelete-only-restricted' => 'Error amagant els ítems $2, $1: no pots suprimir elements a la vista dels administradors sense seleccionar alhora una de les altres opcions de supressió.',
'revdelete-reason-dropdown' => "*Raons d'esborrament comunes
** Violació del copyright
** Informació personal inapropiada
** Informació potencialment calumniosa",
'revdelete-otherreason' => 'Altre motiu / motiu suplementari:',
'revdelete-reasonotherlist' => 'Altres raons',
'revdelete-edit-reasonlist' => "Editar el motiu d'esborrament",
'revdelete-offender' => 'Autor de la revisió:',
# Suppression log
'suppressionlog' => 'Registre de supressió',
'suppressionlogtext' => 'A continuació hi ha una llista de les eliminacions i bloquejos que impliquen un contingut amagat als administradors. Vegeu la [[Special:IPBlockList|llista de bloquejos]] per a consultar la llista de bandejos i bloquejos actualment en curs.',
# History merging
'mergehistory' => 'Fusiona els historials de les pàgines',
'mergehistory-header' => "Aquesta pàgina us permet fusionar les revisions de l'historial d'una pàgina origen en una més nova.
Assegureu-vos que aquest canvi mantindrà la continuïtat històrica de la pàgina.",
'mergehistory-box' => 'Fusiona les revisions de dues pàgines:',
'mergehistory-from' => "Pàgina d'origen:",
'mergehistory-into' => 'Pàgina de destinació:',
'mergehistory-list' => "Historial d'edició que es pot fusionar",
'mergehistory-merge' => "Les revisions següents de [[:$1]] poden fusionar-se en [[:$2]]. Feu servir la columna de botó d'opció per a fusionar només les revisions creades en el moment especificat o anteriors. Teniu en comptes que els enllaços de navegació reiniciaran aquesta columna.",
'mergehistory-go' => 'Mostra les edicions que es poden fusionar',
'mergehistory-submit' => 'Fusiona les revisions',
'mergehistory-empty' => 'No pot fusionar-se cap revisió.',
'mergehistory-success' => "$3 {{PLURAL:$3|revisió|revisions}} de [[:$1]] s'han fusionat amb èxit a [[:$2]].",
'mergehistory-fail' => "No s'ha pogut realitzar la fusió de l'historial, comproveu la pàgina i els paràmetres horaris.",
'mergehistory-no-source' => "La pàgina d'origen $1 no existeix.",
'mergehistory-no-destination' => 'La pàgina de destinació $1 no existeix.',
'mergehistory-invalid-source' => "La pàgina d'origen ha de tenir un títol vàlid.",
'mergehistory-invalid-destination' => 'La pàgina de destinació ha de tenir un títol vàlid.',
'mergehistory-autocomment' => '[[:$1]] fusionat en [[:$2]]',
'mergehistory-comment' => '[[:$1]] fusionat en [[:$2]]: $3',
'mergehistory-same-destination' => "Les pàgines d'origen i de destinació no poden ser la mateixa",
'mergehistory-reason' => 'Motiu:',
# Merge log
'mergelog' => 'Registre de fusions',
'pagemerge-logentry' => "s'ha fusionat [[$1]] en [[$2]] (revisions fins a $3)",
'revertmerge' => 'Desfusiona',
'mergelogpagetext' => "A sota hi ha una llista de les fusions més recents d'una pàgina d'historial en una altra.",
# Diffs
'history-title' => 'Historial de versions de «$1»',
'difference' => '(Diferència entre revisions)',
'lineno' => 'Línia $1:',
'compareselectedversions' => 'Compara les versions seleccionades',
'showhideselectedversions' => 'Mostrar/ocultar les versions seleccionades',
'editundo' => 'desfés',
'diff-multi' => '(Hi ha {{PLURAL:$1|una revisió intermèdia|$1 revisions intermèdies}})',
# Search results
'searchresults' => 'Resultats de la cerca',
'searchresults-title' => 'Resultats de la recerca de «$1»',
'searchresulttext' => 'Per a més informació de les cerques del projecte {{SITENAME}}, aneu a [[{{MediaWiki:Helppage}}|{{int:help}}]].',
'searchsubtitle' => "Heu cercat '''[[:$1]]''' ([[Special:Prefixindex/$1|totes les pàgines que comencen amb «$1»]]{{int:pipe-separator}}[[Special:WhatLinksHere/$1|totes les pàgines que enllacen amb «$1»]])",
'searchsubtitleinvalid' => "Heu cercat '''$1'''",
'toomanymatches' => "S'han retornat masses coincidències. Proveu-ho amb una consulta diferent.",
'titlematches' => 'Coincidències de títol de la pàgina',
'notitlematches' => 'No hi ha cap coincidència de títol de pàgina',
'textmatches' => 'Coincidències de text de pàgina',
'notextmatches' => 'No hi ha cap coincidència de text de pàgina',
'prevn' => 'anteriors {{PLURAL:$1|$1}}',
'nextn' => 'següents {{PLURAL:$1|$1}}',
'prevn-title' => '$1 {{PLURAL:$1|resultat|resultats}} anteriors',
'nextn-title' => '$1 {{PLURAL:$1|resultat|resultats}} següents',
'shown-title' => 'Mostra $1 {{PLURAL:$1|resultat|resultats}} per pàgina',
'viewprevnext' => 'Vés a ($1 {{int:pipe-separator}} $2) ($3).',
'searchmenu-legend' => 'Opcions de cerca',
'searchmenu-exists' => "'''Hi ha una pàgina anomenada «[[:$1]]» en aquest wiki'''",
'searchmenu-new' => "'''Creeu la pàgina «[[:$1]]» en aquest wiki!'''",
'searchhelp-url' => 'Help:Ajuda',
'searchmenu-prefix' => '[[Special:PrefixIndex/$1|Mostra pàgines amb aquest prefix]]',
'searchprofile-articles' => 'Pàgines de contingut',
'searchprofile-project' => "Pàgines d'ajuda i de projecte",
'searchprofile-images' => 'Multimèdia',
'searchprofile-everything' => 'Tot',
'searchprofile-advanced' => 'Avançat',
'searchprofile-articles-tooltip' => 'Cerca a $1',
'searchprofile-project-tooltip' => 'Cerca a $1',
'searchprofile-images-tooltip' => 'Cerca fitxers',
'searchprofile-everything-tooltip' => "Cerca tot tipus de contingut (s'hi inclouen pàgines de discussió)",
'searchprofile-advanced-tooltip' => 'Cerca als espais de noms predefinits',
'search-result-size' => '$1 ({{PLURAL:$2|1 paraula|$2 paraules}})',
'search-result-score' => 'Rellevància: $1%',
'search-redirect' => '(redirigit des de $1)',
'search-section' => '(secció $1)',
'search-suggest' => 'Volíeu dir: $1',
'search-interwiki-caption' => 'Projectes germans',
'search-interwiki-default' => '$1 resultats:',
'search-interwiki-more' => '(més)',
'search-mwsuggest-enabled' => 'amb suggeriments',
'search-mwsuggest-disabled' => 'cap suggeriment',
'search-relatedarticle' => 'Relacionat',
'mwsuggest-disable' => 'Inhabilita els suggeriments en AJAX',
'searcheverything-enable' => 'Cerca a tots els espais de noms',
'searchrelated' => 'relacionat',
'searchall' => 'tots',
'showingresults' => 'Tot seguit es {{PLURAL:$1|mostra el resultat|mostren els <b>$1</b> resultats començant pel número <b>$2</b>}}.',
'showingresultsnum' => 'Tot seguit es {{PLURAL:$3|llista el resultat|llisten els <b>$3</b> resultats començant pel número <b>$2</b>}}.',
'showingresultsheader' => "{{PLURAL:$5|Resultat '''$1''' de '''$3'''|Resultats '''$1 - $2''' de '''$3'''}} per '''$4'''",
'nonefound' => "'''Nota''': Només se cerca en alguns espais de noms per defecte. Proveu d'afegir el prefix ''all:'' a la vostra consulta per a cercar a tot el contingut (incloent-hi les pàgines de discussió, les plantilles, etc.), o feu servir l'espai de noms on vulgueu cercar com a prefix.",
'search-nonefound' => 'No hi ha resultats que coincideixin amb la cerca.',
'powersearch' => 'Cerca avançada',
'powersearch-legend' => 'Cerca avançada',
'powersearch-ns' => 'Cerca als espais de noms:',
'powersearch-redir' => 'Mostra redireccions',
'powersearch-field' => 'Cerca',
'powersearch-togglelabel' => 'Activar:',
'powersearch-toggleall' => 'Tots',
'powersearch-togglenone' => 'Cap',
'search-external' => 'Cerca externa',
'searchdisabled' => 'La cerca dins el projecte {{SITENAME}} està inhabilitada. Mentrestant, podeu cercar a través de Google, però tingueu en compte que la seua base de dades no estarà actualitzada.',
# Quickbar
'qbsettings' => 'Quickbar',
'qbsettings-none' => 'Cap',
'qbsettings-fixedleft' => "Fixa a l'esquerra",
'qbsettings-fixedright' => 'Fixa a la dreta',
'qbsettings-floatingleft' => "Surant a l'esquerra",
'qbsettings-floatingright' => 'Surant a la dreta',
# Preferences page
'preferences' => 'Preferències',
'mypreferences' => 'Preferències',
'prefs-edits' => "Nombre d'edicions:",
'prefsnologin' => 'No heu iniciat cap sessió',
'prefsnologintext' => 'Heu d\'estar <span class="plainlinks">[{{fullurl:{{#Special:UserLogin}}|returnto=$1}} autenticats]</span> per a seleccionar les preferències d\'usuari.',
'changepassword' => 'Canvia la contrasenya',
'prefs-skin' => 'Aparença',
'skin-preview' => 'prova',
'prefs-math' => 'Com es mostren les fórmules',
'datedefault' => 'Cap preferència',
'prefs-datetime' => 'Data i hora',
'prefs-personal' => "Perfil d'usuari",
'prefs-rc' => 'Canvis recents',
'prefs-watchlist' => 'Llista de seguiment',
'prefs-watchlist-days' => 'Nombre de dies per mostrar en la llista de seguiment:',
'prefs-watchlist-days-max' => '(màxim set dies)',
'prefs-watchlist-edits' => 'Nombre de modificacions a mostrar en una llista estesa de seguiment:',
'prefs-watchlist-edits-max' => '(nombre màxim: 1000)',
'prefs-watchlist-token' => 'Fitxa de llista de seguiment:',
'prefs-misc' => 'Altres preferències',
'prefs-resetpass' => 'Canvia la contrasenya',
'prefs-email' => 'Opcions de correu electrònic',
'prefs-rendering' => 'Aparença',
'saveprefs' => 'Desa les preferències',
'resetprefs' => 'Esborra els canvis no guardats',
'restoreprefs' => 'Restaura les preferències per defecte',
'prefs-editing' => "Caixa d'edició",
'prefs-edit-boxsize' => "Mida de la finestra d'edició.",
'rows' => 'Files',
'columns' => 'Columnes',
'searchresultshead' => 'Preferències de la cerca',
'resultsperpage' => 'Resultats a mostrar per pàgina',
'contextlines' => 'Línies a mostrar per resultat',
'contextchars' => 'Caràcters de context per línia',
'stub-threshold' => 'Límit per a formatar l\'enllaç com <a href="#" class="stub">esborrany</a> (en octets):',
'recentchangesdays' => 'Dies a mostrar en els canvis recents:',
'recentchangesdays-max' => '(màxim $1 {{PLURAL:$1|dia|dies}})',
'recentchangescount' => "Nombre d'edicions a mostrar per defecte:",
'prefs-help-recentchangescount' => 'Inclou els canvis recents, els historials de pàgines i els registres.',
'prefs-help-watchlist-token' => 'Si ompliu aquest camp amb una clau secreta es generarà un fil RSS per a la vostra llista de seguiment.
Aquell qui conegui aquesta clau serà capaç de llegir la vostra llista de seguiment, per tant esculliu un valor segur.
A continuació es mostra un valor generat de forma aleatòria que podeu fer servir: $1',
'savedprefs' => "S'han desat les vostres preferències",
'timezonelegend' => 'Fus horari:',
'localtime' => 'Hora local:',
'timezoneuseserverdefault' => 'Usa hora del servidor',
'timezoneuseoffset' => 'Altres (especifiqueu la diferència)',
'timezoneoffset' => 'Diferència¹:',
'servertime' => 'Hora del servidor:',
'guesstimezone' => 'Omple-ho des del navegador',
'timezoneregion-africa' => 'Àfrica',
'timezoneregion-america' => 'Amèrica',
'timezoneregion-antarctica' => 'Antàrtida',
'timezoneregion-arctic' => 'Àrtic',
'timezoneregion-asia' => 'Àsia',
'timezoneregion-atlantic' => 'Oceà Atlàntic',
'timezoneregion-australia' => 'Austràlia',
'timezoneregion-europe' => 'Europa',
'timezoneregion-indian' => 'Oceà Índic',
'timezoneregion-pacific' => 'Oceà Pacífic',
'allowemail' => "Habilita el correu electrònic des d'altres usuaris",
'prefs-searchoptions' => 'Preferències de la cerca',
'prefs-namespaces' => 'Espais de noms',
'defaultns' => 'Cerca per defecte en els següents espais de noms:',
'default' => 'per defecte',
'prefs-files' => 'Fitxers',
'prefs-custom-css' => 'CSS personalitzat',
'prefs-custom-js' => 'JS personalitzat',
'prefs-reset-intro' => 'Podeu usar aquesta pàgina per a restablir les vostres preferències als valors per defecte.
No es podrà desfer el canvi.',
'prefs-emailconfirm-label' => 'Confirmació de correu electrònic:',
'prefs-textboxsize' => "Mida de la caixa d'edició",
'youremail' => 'Correu electrònic:',
'username' => "Nom d'usuari:",
'uid' => "Identificador d'usuari:",
'prefs-memberingroups' => 'Membre dels {{PLURAL:$1|grup|grups}}:',
'prefs-registration' => 'Hora de registre:',
'yourrealname' => 'Nom real *',
'yourlanguage' => 'Llengua:',
'yourvariant' => 'Variant lingüística:',
'yournick' => 'Signatura:',
'prefs-help-signature' => "Els comentaris a les pàgines d'usuari s'han de signar amb \"<nowiki>~~~~</nowiki>\", que serà convertit en la vostra signatura i la data i l'hora.",
'badsig' => 'La signatura que heu inserit no és vàlida; verifiqueu les etiquetes HTML que heu emprat.',
'badsiglength' => 'La signatura és massa llarga.
Ha de tenir com a molt {{PLURAL:$1|un caràcter|$1 caràcters}}.',
'yourgender' => 'Sexe:',
'gender-unknown' => 'No especificat',
'gender-male' => 'Masculí',
'gender-female' => 'Femení',
'prefs-help-gender' => "Opcional: s'usa perquè el programari se us adreci amb missatges amb el gènere adient. Aquesta informació serà pública.",
'email' => 'Correu electrònic',
'prefs-help-realname' => "* Nom real (opcional): si escolliu donar aquesta informació serà utilitzada per a donar-vos l'atribució de la vostra feina.",
'prefs-help-email' => "L'adreça electrònica és opcional, però permet l'enviament d'una nova contrasenya en cas d'oblit de l'actual.
També podeu contactar amb altres usuaris a través de la vostra pàgina d'usuari o de discussió, sense que així calgui revelar la vostra identitat.",
'prefs-help-email-required' => 'Cal una adreça de correu electrònic.',
'prefs-info' => 'Informació bàsica',
'prefs-i18n' => 'Internacionalització',
'prefs-signature' => 'Signatura',
'prefs-dateformat' => 'Format de la data',
'prefs-timeoffset' => "Duració de l'acció",
'prefs-advancedediting' => 'Opcions avançades',
'prefs-advancedrc' => 'Opcions avançades',
'prefs-advancedrendering' => 'Opcions avançades',
'prefs-advancedsearchoptions' => 'Opcions avançades',
'prefs-advancedwatchlist' => 'Opcions avançades',
'prefs-display' => "Opcions d'aparença",
'prefs-diffs' => 'Difs',
# User rights
'userrights' => "Gestió dels permisos d'usuari",
'userrights-lookup-user' => "Gestiona els grups d'usuari",
'userrights-user-editname' => "Introduïu un nom d'usuari:",
'editusergroup' => "Edita els grups d'usuaris",
'editinguser' => "S'està canviant els permisos de l'usuari '''[[User:$1|$1]]''' ([[User talk:$1|{{int:talkpagelinktext}}]]{{int:pipe-separator}}[[Special:Contributions/$1|{{int:contribslink}}]])",
'userrights-editusergroup' => "Edita els grups d'usuaris",
'saveusergroups' => "Desa els grups d'usuari",
'userrights-groupsmember' => 'Membre de:',
'userrights-groupsmember-auto' => 'Membre implícit de:',
'userrights-groups-help' => "Podeu modificar els grups als quals pertany aquest usuari.
* Els requadres marcats indiquen que l'usuari és dins del grup.
* Els requadres sense marcar indiquen que l'usuari no hi pertany.
* Un asterisc (*) indica que no el podreu treure del grup una vegada l'hàgiu afegit o viceversa.",
'userrights-reason' => 'Raó:',
'userrights-no-interwiki' => "No teniu permisos per a editar els permisos d'usuari d'altres wikis.",
'userrights-nodatabase' => 'La base de dades $1 no existeix o no és local.',
'userrights-nologin' => "Heu [[Special:UserLogin|d'iniciar una sessió]] amb un compte d'administrador per a poder assignar permisos d'usuari.",
'userrights-notallowed' => "El vostre compte no té permisos per a assignar permisos d'usuari.",
'userrights-changeable-col' => 'Grups que podeu canviar',
'userrights-unchangeable-col' => 'Grups que no podeu canviar',
# Groups
'group' => 'Grup:',
'group-user' => 'Usuaris',
'group-autoconfirmed' => 'Usuaris autoconfirmats',
'group-bot' => 'Bots',
'group-sysop' => 'Administradors',
'group-bureaucrat' => 'Buròcrates',
'group-suppress' => 'Oversights',
'group-all' => '(tots)',
'group-user-member' => 'usuari',
'group-autoconfirmed-member' => 'usuari autoconfirmat',
'group-bot-member' => 'bot',
'group-sysop-member' => 'administrador',
'group-bureaucrat-member' => 'buròcrata',
'group-suppress-member' => 'oversight',
'grouppage-user' => '{{ns:project}}:Usuaris',
'grouppage-autoconfirmed' => '{{ns:project}}:Usuaris autoconfirmats',
'grouppage-bot' => '{{ns:project}}:Bots',
'grouppage-sysop' => '{{ns:project}}:Administradors',
'grouppage-bureaucrat' => '{{ns:project}}:Buròcrates',
'grouppage-suppress' => '{{ns:project}}:Oversight',
# Rights
'right-read' => 'Llegir pàgines',
'right-edit' => 'Modificar pàgines',
'right-createpage' => 'Crear pàgines (que no són de discussió)',
'right-createtalk' => 'Crear pàgines de discussió',
'right-createaccount' => 'Crear nous comptes',
'right-minoredit' => 'Marcar les edicions com a menors',
'right-move' => 'Moure pàgines',
'right-move-subpages' => 'Moure pàgines amb les seves subpàgines',
'right-move-rootuserpages' => "Moure pàgines d'usuari root",
'right-movefile' => 'Moure fitxers',
'right-suppressredirect' => 'No crear redireccions quan es reanomena una pàgina',
'right-upload' => 'Carregar fitxers',
'right-reupload' => "Carregar al damunt d'un fitxer existent",
'right-reupload-own' => "Carregar al damunt d'un fitxer que havia carregat el propi usuari",
'right-reupload-shared' => 'Carregar localment fitxers amb un nom usat en el repostori multimèdia compartit',
'right-upload_by_url' => "Carregar un fitxer des de l'adreça URL",
'right-purge' => 'Purgar la memòria cau del lloc web sense pàgina de confirmació',
'right-autoconfirmed' => 'Modificar pàgines semi-protegides',
'right-bot' => 'Ésser tractat com a procés automatitzat',
'right-nominornewtalk' => "Les edicions menors en pàgines de discussió d'usuari no generen l'avís de nous missatges",
'right-apihighlimits' => "Utilitza límits més alts en les consultes a l'API",
'right-writeapi' => "Fer servir l'escriptura a l'API",
'right-delete' => 'Esborrar pàgines',
'right-bigdelete' => 'Esborrar pàgines amb historials grans',
'right-deleterevision' => 'Esborrar i restaurar versions específiques de pàgines',
'right-deletedhistory' => 'Veure els historials esborrats sense consultar-ne el text',
'right-deletedtext' => 'Vegeu el text esborrat i els canvis entre revisions esborrades',
'right-browsearchive' => 'Cercar pàgines esborrades',
'right-undelete' => 'Restaurar pàgines esborrades',
'right-suppressrevision' => 'Revisar i restaurar les versions amagades als administradors',
'right-suppressionlog' => 'Veure registres privats',
'right-block' => "Blocar altres usuaris per a impedir-los l'edició",
'right-blockemail' => 'Impedir que un usuari envii correu electrònic',
'right-hideuser' => "Blocar un nom d'usuari amagant-lo del públic",
'right-ipblock-exempt' => "Evitar blocatges d'IP, de rang i automàtics",
'right-proxyunbannable' => 'Evitar els blocatges automàtics a proxies',
'right-protect' => 'Canviar el nivell de protecció i modificar pàgines protegides',
'right-editprotected' => 'Editar pàgines protegides (sense protecció de cascada)',
'right-editinterface' => "Editar la interfície d'usuari",
'right-editusercssjs' => "Editar els fitxers de configuració CSS i JS d'altres usuaris",
'right-editusercss' => "Editar els fitxers de configuració CSS d'altres usuaris",
'right-edituserjs' => "Editar els fitxers de configuració JS d'altres usuaris",
'right-rollback' => "Revertir ràpidament l'últim editor d'una pàgina particular",
'right-markbotedits' => 'Marcar les reversions com a edicions de bot',
'right-noratelimit' => "No es veu afectat pels límits d'accions.",
'right-import' => "Importar pàgines d'altres wikis",
'right-importupload' => "Importar pàgines carregant-les d'un fitxer",
'right-patrol' => 'Marcar com a patrullades les edicions',
'right-autopatrol' => 'Que les edicions pròpies es marquin automàticament com a patrullades',
'right-patrolmarks' => 'Veure quins canvis han estat patrullats',
'right-unwatchedpages' => 'Veure la llista de les pàgines no vigilades',
'right-trackback' => 'Trametre un trackback',
'right-mergehistory' => "Fusionar l'historial de les pàgines",
'right-userrights' => 'Editar els drets dels usuaris',
'right-userrights-interwiki' => "Editar els drets dels usuaris d'altres wikis",
'right-siteadmin' => 'Blocar i desblocar la base de dades',
'right-reset-passwords' => "Reiniciar la contrasenya d'altres usuaris",
'right-override-export-depth' => 'Exporta pàgines incloent aquelles enllaçades fins a una fondària de 5',
'right-versiondetail' => 'Mostra la informació addicional de la versió del programari',
'right-sendemail' => 'Envia un correu electrònic a altres usuaris.',
# User rights log
'rightslog' => "Registre dels permisos d'usuari",
'rightslogtext' => "Aquest és un registre de canvis dels permisos d'usuari.",
'rightslogentry' => "heu modificat els drets de l'usuari «$1» del grup $2 al de $3",
'rightsnone' => '(cap)',
# Associated actions - in the sentence "You do not have permission to X"
'action-read' => 'llegir aquesta pàgina',
'action-edit' => 'modificar aquesta pàgina',
'action-createpage' => 'crear pàgines',
'action-createtalk' => 'crear pàgines de discussió',
'action-createaccount' => "crear aquest compte d'usuari",
'action-minoredit' => 'marcar aquesta modificació com a menor',
'action-move' => 'moure aquesta pàgina',
'action-move-subpages' => 'moure aquesta pàgina, i llurs subpàgines',
'action-move-rootuserpages' => "moure pàgines d'usuari root",
'action-movefile' => 'moure aquest fitxer',
'action-upload' => 'carregar aquest fitxer',
'action-reupload' => 'substituir aquest fitxer',
'action-reupload-shared' => 'substituir aquest fitxer en un dipòsit compartit',
'action-upload_by_url' => "carregar aquest fitxer des d'una adreça URL",
'action-writeapi' => "fer servir l'API d'escriptura",
'action-delete' => 'esborrar aquesta pàgina',
'action-deleterevision' => 'esborrar aquesta revisió',
'action-deletedhistory' => "visualitzar l'historial esborrat d'aquesta pàgina",
'action-browsearchive' => 'cercar pàgines esborrades',
'action-undelete' => 'recuperar aquesta pàgina',
'action-suppressrevision' => 'revisar i recuperar aquesta revisió oculta',
'action-suppressionlog' => 'visualitzar aquest registre privat',
'action-block' => 'blocar aquest usuari per a què no pugui editar',
'action-protect' => "canviar els nivells de protecció d'aquesta pàgina",
'action-import' => "importar aquesta pàgina des d'un altre wiki",
'action-importupload' => "importar aquesta pàgina mitjançant la càrrega des d'un fitxer",
'action-patrol' => 'marcar les edicions dels altres com a supervisades',
'action-autopatrol' => 'marcar les vostres edicions com a supervisades',
'action-unwatchedpages' => 'visualitzar la llista de pàgines no vigilades',
'action-trackback' => 'enviar una referència',
'action-mergehistory' => "fusionar l'historial d'aquesta pàgina",
'action-userrights' => "modificar tots els permisos d'usuari",
'action-userrights-interwiki' => "modificar permisos d'usuari en altres wikis",
'action-siteadmin' => 'bloquejar o desbloquejar la base de dades',
# Recent changes
'nchanges' => '$1 {{PLURAL:$1|canvi|canvis}}',
'recentchanges' => 'Canvis recents',
'recentchanges-legend' => 'Opcions de canvis recents',
'recentchangestext' => 'Seguiu els canvis recents del projecte {{SITENAME}} en aquesta pàgina.',
'recentchanges-feed-description' => 'Segueix en aquest canal els canvis més recents del wiki.',
'recentchanges-label-legend' => 'Llegenda: $1.',
'recentchanges-legend-newpage' => '$1 - nova pàgina',
'recentchanges-label-newpage' => 'Aquesta modificació inicià una pàgina',
'recentchanges-legend-minor' => '$1 - modificació menor',
'recentchanges-label-minor' => 'Aquesta és una modificació menor',
'recentchanges-legend-bot' => "$1 - modificació d'un bot",
'recentchanges-label-bot' => 'Aquesta modificació fou feta per un bot',
'recentchanges-legend-unpatrolled' => '$1 - modificació sense patrullar',
'recentchanges-label-unpatrolled' => 'Aquesta modificació encara no ha estat patrullada',
'rcnote' => 'A continuació hi ha {{PLURAL:$1|el darrer canvi|els darrers <strong>$1</strong> canvis}} en {{PLURAL:$2|el darrer dia|els darrers <strong>$2</strong> dies}}, actualitzats a les $5 del $4.',
'rcnotefrom' => 'A sota hi ha els canvis des de <b>$2</b> (es mostren fins <b>$1</b>).',
'rclistfrom' => 'Mostra els canvis nous des de $1',
'rcshowhideminor' => '$1 edicions menors',
'rcshowhidebots' => '$1 bots',
'rcshowhideliu' => '$1 usuaris identificats',
'rcshowhideanons' => '$1 usuaris anònims',
'rcshowhidepatr' => '$1 edicions supervisades',
'rcshowhidemine' => '$1 edicions pròpies',
'rclinks' => 'Mostra els darrers $1 canvis en els darrers $2 dies<br />$3',
'diff' => 'dif',
'hist' => 'hist',
'hide' => 'amaga',
'show' => 'mostra',
'minoreditletter' => 'm',
'newpageletter' => 'N',
'boteditletter' => 'b',
'number_of_watching_users_pageview' => '[{{PLURAL:$1|Un usuari vigila|$1 usuaris vigilen}} aquesta pàgina]',
'rc_categories' => 'Limita a les categories (separades amb "|")',
'rc_categories_any' => 'Qualsevol',
'newsectionsummary' => '/* $1 */ secció nova',
'rc-enhanced-expand' => 'Mostra detalls (requereix JavaScript)',
'rc-enhanced-hide' => 'Amagar detalls',
# Recent changes linked
'recentchangeslinked' => "Seguiment d'enllaços",
'recentchangeslinked-feed' => 'Canvis relacionats',
'recentchangeslinked-toolbox' => "Seguiment d'enllaços",
'recentchangeslinked-title' => 'Canvis relacionats amb «$1»',
'recentchangeslinked-noresult' => 'No ha hagut cap canvi a les pàgines enllaçades durant el període de temps.',
'recentchangeslinked-summary' => "A continuació trobareu una llista dels canvis recents a les pàgines enllaçades des de la pàgina donada (o entre els membres d'una categoria especificada).
Les pàgines de la vostra [[Special:Watchlist|llista de seguiment]] apareixen en '''negreta'''.",
'recentchangeslinked-page' => 'Nom de la pàgina:',
'recentchangeslinked-to' => 'Mostra els canvis de les pàgines enllaçades amb la pàgina donada',
# Upload
'upload' => 'Carrega',
'uploadbtn' => 'Carrega un fitxer',
'reuploaddesc' => 'Torna al formulari per apujar.',
'upload-tryagain' => "Envia la descripció de l'arxiu modificat",
'uploadnologin' => 'No heu iniciat una sessió',
'uploadnologintext' => "Heu d'[[Special:UserLogin|iniciar una sessió]]
per a penjar-hi fitxers.",
'upload_directory_missing' => "No s'ha trobat el directori de càrrega ($1) i tampoc no ha pogut ser creat pel servidor web.",
'upload_directory_read_only' => 'El servidor web no pot escriure al directori de càrrega ($1)',
'uploaderror' => "S'ha produït un error en l'intent de carregar",
'uploadtext' => "Feu servir el formulari de sota per a carregar fitxers.
Per a visualitzar o cercar fitxers que s'hagen carregat prèviament, aneu a la [[Special:FileList|llista de fitxers carregats]]. Les càrregues es registren en el [[Special:Log/upload|registre de càrregues]] i els fitxers esborrats en el [[Special:Log/delete|registre d'esborrats]].
Per a incloure una imatge en una pàgina, feu un enllaç en una de les formes següents:
* '''<tt><nowiki>[[</nowiki>{{ns:file}}<nowiki>:Fitxer.jpg]]</nowiki></tt>''' per a usar la versió completa del fitxer;
* '''<tt><nowiki>[[</nowiki>{{ns:file}}<nowiki>:Fitxer.png|200px|thumb|esquerra|text alternatiu]]</nowiki></tt>''' per una presentació de 200 píxels d'amplada en un requadre justificat a l'esquerra amb «text alternatiu» com a descripció;
* '''<tt><nowiki>[[</nowiki>{{ns:media}}<nowiki>:Fitxer.ogg]]</nowiki></tt>''' per a enllaçar directament amb un fitxer de so.",
'upload-permitted' => 'Tipus de fitxer permesos: $1.',
'upload-preferred' => 'Tipus de fitxer preferits: $1.',
'upload-prohibited' => 'Tipus de fitxer prohibits: $1.',
'uploadlog' => 'registre de càrregues',
'uploadlogpage' => 'Registre de càrregues',
'uploadlogpagetext' => "A sota hi ha una llista dels fitxers que s'han carregat més recentment.
Vegeu la [[Special:NewFiles|galeria de nous fitxers]] per a una presentació més visual.",
'filename' => 'Nom de fitxer',
'filedesc' => 'Resum',
'fileuploadsummary' => 'Resum:',
'filereuploadsummary' => 'Canvis al fitxer:',
'filestatus' => "Situació dels drets d'autor:",
'filesource' => 'Font:',
'uploadedfiles' => 'Fitxers carregats',
'ignorewarning' => 'Ignora qualsevol avís i desa el fitxer igualment',
'ignorewarnings' => 'Ignora qualsevol avís',
'minlength1' => "Els noms de fitxer han de ser de com a mínim d'una lletra.",
'illegalfilename' => 'El nom del fitxer «$1» conté caràcters que no estan permesos en els títols de pàgines. Si us plau, canvieu el nom al fitxer i torneu a carregar-lo.',
'badfilename' => "El nom de la imatge s'ha canviat a «$1».",
'filetype-mime-mismatch' => "L'extensió de fitxer no coincideix amb el tipus MIME.",
'filetype-badmime' => 'No es poden carregar fitxers del tipus MIME «$1».',
'filetype-bad-ie-mime' => 'No es pot carregar aquest fitxer perquè Internet Explorer el detectaria com a «$1», que és un tipus de fitxer prohibit i potencialment perillós.',
'filetype-unwanted-type' => "Els fitxers del tipus «'''.$1'''» no són desitjats. {{PLURAL:$3|Es prefereix el tipus de fitxer|Els tipus de fitxer preferits són}} $2.",
'filetype-banned-type' => "Els fitxers del tipus «'''.$1'''» no estan permesos. {{PLURAL:$3|Només s'admeten els fitxers del tipus|Els tipus de fitxer permesos són}} $2.",
'filetype-missing' => 'El fitxer no té extensió (com ara «.jpg»).',
'large-file' => 'Els fitxers importants no haurien de ser més grans de $1; aquest fitxer ocupa $2.',
'largefileserver' => 'Aquest fitxer és més gran del que el servidor permet.',
'emptyfile' => 'El fitxer que heu carregat sembla estar buit. Açò por ser degut a un mal caràcter en el nom del fitxer. Si us plau, reviseu si realment voleu carregar aquest arxiu.',
'fileexists' => "Ja hi existeix un fitxer amb aquest nom, si us plau, verifiqueu '''<tt>[[:$1]]</tt>''' si no esteu segurs de voler substituir-lo.
[[$1|thumb]]",
'filepageexists' => "La pàgina de descripció d'aquest fitxer ja ha estat creada ('''<tt>[[:$1]]</tt>'''), però de moment no hi ha cap arxiu amb aquest nom. La descripció que heu posat no apareixerà a la pàgina de descripció. Si voleu que hi aparegui haureu d'editar-la manualment.
[[$1|thumb]]",
'fileexists-extension' => "Ja existeix un fitxer amb un nom semblant: [[$2|thumb]]
* Nom del fitxer que es puja: '''<tt>[[:$1]]</tt>'''
* Nom del fitxer existent: '''<tt>[[:$2]]</tt>'''
Si us plau, trieu un nom diferent.",
'fileexists-thumbnail-yes' => "Aquest fitxer sembla ser una imatge en mida reduïda (<em>miniatura</em>). [[$1|thumb]]
Comproveu si us plau el fitxer '''<tt>[[:$1]]</tt>'''.
Si el fitxer és la mateixa imatge a mida original, no cal carregar cap miniatura més.",
'file-thumbnail-no' => "El nom del fitxer comença per '''<tt>$1</tt>'''.
Sembla ser una imatge de mida reduïda ''(miniatura)''.
Si teniu la imatge en resolució completa, pugeu-la, sinó mireu de canviar-li el nom, si us plau.",
'fileexists-forbidden' => 'Ja hi existeix un fitxer amb aquest nom i no es pot sobreescriure.
Si us plau, torneu enrere i carregueu aquest fitxer sota un altre nom. [[File:$1|thumb|center|$1]]',
'fileexists-shared-forbidden' => 'Ja hi ha un fitxer amb aquest nom al fons comú de fitxers.
Si us plau, si encara desitgeu carregar el vostre fitxer, torneu enrera i carregueu-ne una còpia amb un altre nom. [[File:$1|thumb|center|$1]]',
'file-exists-duplicate' => 'Aquest fitxer és un duplicat {{PLURAL:$1|del fitxer |dels següents fitxers:}}',
'file-deleted-duplicate' => "Un fitxer idèntic a aquest ([[$1]]) ha estat esborrat amb anterioritat. Hauríeu de comprovar el registre d'esborrat del fitxer abans de tornar-lo a carregar.",
'successfulupload' => "El fitxer s'ha carregat amb èxit",
'uploadwarning' => 'Avís de càrrega',
'uploadwarning-text' => 'Modifiqueu la descripció de la imatge i torneu a intentar-ho.',
'savefile' => 'Desa el fitxer',
'uploadedimage' => '[[$1]] carregat.',
'overwroteimage' => "s'ha penjat una nova versió de «[[$1]]»",
'uploaddisabled' => "S'ha inhabilitat la càrrega",
'uploaddisabledtext' => "S'ha inhabilitat la càrrega de fitxers.",
'php-uploaddisabledtext' => 'La càrrega de fitxer està desactivada al PHP. Comproveu les opcions del fitxer file_uploads.',
'uploadscripted' => 'Aquest fitxer conté codi HTML o de seqüències que pot ser interpretat equivocadament per un navegador.',
'uploadvirus' => 'El fitxer conté un virus! Detalls: $1',
'upload-source' => 'Fitxer font',
'sourcefilename' => 'Nom del fitxer font:',
'sourceurl' => "URL d'origen:",
'destfilename' => 'Nom del fitxer de destinació:',
'upload-maxfilesize' => 'Mida màxima de fitxer: $1',
'upload-description' => 'Descripció del fitxer',
'upload-options' => 'Opcions de càrrega',
'watchthisupload' => 'Vigila aquest fitxer',
'filewasdeleted' => "Prèviament es va carregar un fitxer d'aquest nom i després va ser esborrat. Hauríeu de verificar $1 abans de procedir a carregar-lo una altra vegada.",
'upload-wasdeleted' => "'''Atenció: Esteu carregant un fitxer que s'havia eliminat abans.'''
Hauríeu de considerar si és realment adequat continuar carregant aquest fitxer, perquè potser també acaba eliminat.
A continuació teniu el registre d'eliminació per a que pugueu comprovar els motius que van portar a la seua eliminació:",
'filename-bad-prefix' => "El nom del fitxer que esteu penjant comença amb '''«$1»''', que és un nom no descriptiu que les càmeres digitals normalment assignen de forma automàtica. Trieu un de més descriptiu per al vostre fitxer.",
'upload-proto-error' => 'El protocol és incorrecte',
'upload-proto-error-text' => 'Per a les càrregues remotes cal que els URL comencin amb <code>http://</code> o <code>ftp://</code>.',
'upload-file-error' => "S'ha produït un error intern",
'upload-file-error-text' => "S'ha produït un error de càrrega desconegut quan s'intentava crear un fitxer temporal al servidor. Poseu-vos en contacte amb un [[Special:ListUsers/sysop|administrador]].",
'upload-misc-error' => "S'ha produït un error de càrrega desconegut",
'upload-misc-error-text' => "S'ha produït un error desconegut durant la càrrega. Verifiqueu que l'URL és vàlid i accessible, i torneu-ho a provar. Si el problema persisteix, adreceu-vos a un [[Special:ListUsers/sysop|administrador]].",
'upload-too-many-redirects' => 'La URL conté massa redireccions',
'upload-unknown-size' => 'Mida desconeguda',
'upload-http-error' => 'Ha ocorregut un error HTTP: $1',
# img_auth script messages
'img-auth-accessdenied' => 'Accés denegat',
'img-auth-nopathinfo' => 'Falta PATH_INFO.
El vostre servidor no està configurat per a tractar aquesta informació.
Pot estar basat en CGI i no soportar img_auth.
Vegeu http://www.mediawiki.org/wiki/Manual:Image_Authorization.',
'img-auth-notindir' => "No s'ha trobat la ruta sol·licitada al directori de càrrega configurat.",
'img-auth-badtitle' => 'No s\'ha pogut construir un títol vàlid a partir de "$1".',
'img-auth-nologinnWL' => 'No has iniciat sessió i "$1" no està a la llista blanca.',
'img-auth-nofile' => 'No existeix el fitxer "$1".',
'img-auth-isdir' => "Estàs intentant accedir al directori $1.
Només està permès l'accés a arxius.",
'img-auth-streaming' => 'Lectura corrent de "$1".',
'img-auth-public' => "La funció de img_auth.php és de sortida de fitxers d'un lloc wiki privat.
Aquest wiki està configurat com a wiki públic.
Per seguretat, img_auth.php està desactivat.",
'img-auth-noread' => 'L\'usuari no té accés a la lectura de "$1".',
# HTTP errors
'http-invalid-url' => 'URL incorrecta: $1',
'http-invalid-scheme' => 'Les URLs amb l\'esquema "$1" no són compatibles.',
'http-request-error' => 'La petició HTTP ha fallat per un error desconegut.',
'http-read-error' => 'Error de lectura HTTP.',
'http-timed-out' => 'La petició HTTP ha expirat.',
'http-curl-error' => "Error en recuperar l'URL: $1",
'http-host-unreachable' => "No s'ha pogut accedir a l'URL.",
'http-bad-status' => 'Hi ha hagut un problema durant la petició HTTP: $1 $2',
# Some likely curl errors. More could be added from <http://curl.haxx.se/libcurl/c/libcurl-errors.html>
'upload-curl-error6' => "No s'ha pogut accedir a l'URL",
'upload-curl-error6-text' => "No s'ha pogut accedir a l'URL que s'ha proporcionat. Torneu a comprovar que sigui correcte i que el lloc estigui funcionant.",
'upload-curl-error28' => "S'ha excedit el temps d'espera de la càrrega",
'upload-curl-error28-text' => "El lloc ha trigat massa a respondre. Comproveu que està funcionant, espereu una estona i torneu-ho a provar. Podeu mirar d'intentar-ho quan hi hagi menys trànsit a la xarxa.",
'license' => 'Llicència:',
'license-header' => 'Llicència',
'nolicense' => "No se n'ha seleccionat cap",
'license-nopreview' => '(La previsualització no està disponible)',
'upload_source_url' => ' (un URL vàlid i accessible públicament)',
'upload_source_file' => ' (un fitxer en el vostre ordinador)',
# Special:ListFiles
'listfiles-summary' => "Aquesta pàgina especial mostra tots els fitxers carregats.
Per defecte, els darrers en ser carregats apareixen al principi de la llista.
Clicant al capdamunt de les columnes podeu canviar-ne l'ordenació.",
'listfiles_search_for' => "Cerca el nom d'un fitxer de medis:",
'imgfile' => 'fitxer',
'listfiles' => 'Llista de fitxers',
'listfiles_date' => 'Data',
'listfiles_name' => 'Nom',
'listfiles_user' => 'Usuari',
'listfiles_size' => 'Mida (octets)',
'listfiles_description' => 'Descripció',
'listfiles_count' => 'Versions',
# File description page
'file-anchor-link' => 'Fitxer',
'filehist' => 'Historial del fitxer',
'filehist-help' => 'Cliqueu una data/hora per veure el fitxer tal com era aleshores.',
'filehist-deleteall' => 'elimina-ho tot',
'filehist-deleteone' => 'elimina',
'filehist-revert' => 'reverteix',
'filehist-current' => 'actual',
'filehist-datetime' => 'Data/hora',
'filehist-thumb' => 'Miniatura',
'filehist-thumbtext' => 'Miniatura per a la versió de $1',
'filehist-nothumb' => 'Sense miniatura',
'filehist-user' => 'Usuari',
'filehist-dimensions' => 'Dimensions',
'filehist-filesize' => 'Mida del fitxer',
'filehist-comment' => 'Comentari',
'filehist-missing' => 'Fitxer que falta',
'imagelinks' => 'Enllaços a la imatge',
'linkstoimage' => '{{PLURAL:$1|La següent pàgina enllaça|Les següents pàgines enllacen}} a aquesta imatge:',
'linkstoimage-more' => "Hi ha més de $1 {{PLURAL:$1|pàgina que enllaça|pàgines que enllaçen}} a aquest fitxer.
La següent llista només mostra {{PLURAL:$1|la primera d'elles|les primeres $1 d'aquestes pàgines}}.
Podeu consultar la [[Special:WhatLinksHere/$2|llista completa]].",
'nolinkstoimage' => 'No hi ha pàgines que enllacin aquesta imatge.',
'morelinkstoimage' => 'Visualitza [[Special:WhatLinksHere/$1|més enllaços]] que porten al fitxer.',
'redirectstofile' => '{{PLURAL:$1|El fitxer següent redirigeix cap aquest fitxer|Els següents $1 fitxers redirigeixen cap aquest fitxer:}}',
'duplicatesoffile' => "{{PLURAL:$1|Aquest fitxer és un duplicat del que apareix a continuació|A continuació s'indiquen els $1 duplicats d'aquest fitxer}} ([[Special:FileDuplicateSearch/$2|vegeu-ne més detalls]]):",
'sharedupload' => 'Aquest fitxer prové de $1 i pot ser utilitzat per altres projectes.',
'sharedupload-desc-there' => 'Aquest fitxer prové de $1 i pot ser utilitzat per altres projectes.
Si us plau vegeu la [$2 pàgina de descripció del fitxer] per a més informació.',
'sharedupload-desc-here' => 'Aquest fitxer prové de $1 i pot ser usat per altres projectes.
La descripció de la seva [$2 pàgina de descripció] es mostra a continuació.',
'filepage-nofile' => 'No hi ha cap fitxer amb aquest nom.',
'filepage-nofile-link' => 'No existeix cap fitxer amb aquest nom, però podeu [$1 carregar-lo].',
'uploadnewversion-linktext' => "Carrega una nova versió d'aquest fitxer",
'shared-repo-from' => 'des de $1',
'shared-repo' => 'un repositori compartit',
# File reversion
'filerevert' => 'Reverteix $1',
'filerevert-legend' => 'Reverteix el fitxer',
'filerevert-intro' => "Esteu revertint '''[[Media:$1|$1]]''' a la [$4 versió de $3, $2].",
'filerevert-comment' => 'Motiu:',
'filerevert-defaultcomment' => "S'ha revertit a la versió com de $2, $1",
'filerevert-submit' => 'Reverteix',
'filerevert-success' => "'''[[Media:$1|$1]]''' ha estat revertit a la [$4 versió de $3, $2].",
'filerevert-badversion' => "No hi ha cap versió local anterior d'aquest fitxer amb la marca horària que es proporciona.",
# File deletion
'filedelete' => 'Suprimeix $1',
'filedelete-legend' => 'Suprimeix el fitxer',
'filedelete-intro' => "Esteu eliminant el fitxer '''[[Media:$1|$1]]''' juntament amb el seu historial.",
'filedelete-intro-old' => "Esteu eliminant la versió de '''[[Media:$1|$1]]''' com de [$4 $3, $2].",
'filedelete-comment' => 'Motiu:',
'filedelete-submit' => 'Suprimeix',
'filedelete-success' => "'''$1''' s'ha eliminat.",
'filedelete-success-old' => "<span class=\"plainlinks\">La versió de '''[[Media:\$1|\$1]]''' s'ha eliminat el \$2 a les \$3.</span>",
'filedelete-nofile' => "'''$1''' no existeix.",
'filedelete-nofile-old' => "No hi ha cap versió arxivada de '''$1''' amb els atributs especificats.",
'filedelete-otherreason' => 'Motius alternatius/addicionals:',
'filedelete-reason-otherlist' => 'Altres motius',
'filedelete-reason-dropdown' => "*Motius d'eliminació comuns
** Violació dels drets d'autor / copyright
** Fitxer duplicat",
'filedelete-edit-reasonlist' => "Edita els motius d'eliminació",
'filedelete-maintenance' => "L'esborrament i recuperació d'arxius està temporalment deshabilitada durant el manteniment.",
# MIME search
'mimesearch' => 'Cerca per MIME',
'mimesearch-summary' => 'Aquesta pàgina habilita el filtratge de fitxers per llur tipus MIME. Contingut: contenttype/subtype, ex. <tt>image/jpeg</tt>.',
'mimetype' => 'Tipus MIME:',
'download' => 'baixada',
# Unwatched pages
'unwatchedpages' => 'Pàgines desateses',
# List redirects
'listredirects' => 'Llista de redireccions',
# Unused templates
'unusedtemplates' => 'Plantilles no utilitzades',
'unusedtemplatestext' => "Aquesta pàgina mostra les pàgines en l'espai de noms {{ns:template}}, que no estan incloses en cap altra pàgina. Recordeu de comprovar les pàgines que hi enllacen abans d'esborrar-les.",
'unusedtemplateswlh' => 'altres enllaços',
# Random page
'randompage' => "Pàgina a l'atzar",
'randompage-nopages' => "No hi ha cap pàgina en {{PLURAL:$2|l'espai de noms següent|els espais de noms següents}}: $1.",
# Random redirect
'randomredirect' => "Redirecció a l'atzar",
'randomredirect-nopages' => "No hi ha cap redirecció a l'espai de noms «$1».",
# Statistics
'statistics' => 'Estadístiques',
'statistics-header-pages' => 'Estadístiques de pàgines',
'statistics-header-edits' => "Estadístiques d'edicions",
'statistics-header-views' => 'Visualitza estadístiques',
'statistics-header-users' => "Estadístiques d'usuari",
'statistics-header-hooks' => 'Altres estadístiques',
'statistics-articles' => 'Pàgines de contingut',
'statistics-pages' => 'Pàgines',
'statistics-pages-desc' => 'Totes les pàgines del wiki, incloent les pàgines de discussió, redireccions, etc.',
'statistics-files' => 'Fitxers carregats',
'statistics-edits' => 'Edicions en pàgines des que el projecte {{SITENAME}} fou instaŀlat',
'statistics-edits-average' => 'Edicions per pàgina de mitjana',
'statistics-views-total' => 'Visualitzacions totals',
'statistics-views-peredit' => 'Visualitzacions per modificació',
'statistics-jobqueue' => 'Longitud de la [http://www.mediawiki.org/wiki/Manual:Job_queue cua de treballs]',
'statistics-users' => '[[Special:ListUsers|Usuaris]] registrats',
'statistics-users-active' => 'Usuaris actius',
'statistics-users-active-desc' => "Usuaris que han dut a terme alguna acció en {{PLURAL:$1|l'últim dia|els últims $1 dies}}",
'statistics-mostpopular' => 'Pàgines més visualitzades',
'disambiguations' => 'Pàgines de desambiguació',
'disambiguationspage' => 'Template:Desambiguació',
'disambiguations-text' => "Les següents pàgines enllacen a una '''pàgina de desambiguació'''.
Per això, caldria que enllacessin al tema apropiat.<br />
Una pàgina es tracta com de desambiguació si utilitza una plantilla que està enllaçada a [[MediaWiki:Disambiguationspage]]",
'doubleredirects' => 'Redireccions dobles',
'doubleredirectstext' => 'Aquesta pàgina llista les pàgines que redirigeixen a altres pàgines de redirecció.
Cada fila conté enllaços a la primera i segona redireccions, així com el destí de la segona redirecció, què generalment és la pàgina destí "real", a la què hauria d\'apuntar la primera redirecció.
Les entrades <s>ratllades</s> s\'han resolt.',
'double-redirect-fixed-move' => "S'ha reanomenat [[$1]], ara és una redirecció a [[$2]]",
'double-redirect-fixer' => 'Supressor de dobles redireccions',
'brokenredirects' => 'Redireccions rompudes',
'brokenredirectstext' => 'Les següents redireccions enllacen a pàgines inexistents:',
'brokenredirects-edit' => 'modifica',
'brokenredirects-delete' => 'elimina',
'withoutinterwiki' => 'Pàgines sense enllaços a altres llengües',
'withoutinterwiki-summary' => "Les pàgines següents no enllacen a versions d'altres llengües:",
'withoutinterwiki-legend' => 'Prefix',
'withoutinterwiki-submit' => 'Mostra',
'fewestrevisions' => 'Pàgines amb menys revisions',
# Miscellaneous special pages
'nbytes' => '$1 {{PLURAL:$1|octet|octets}}',
'ncategories' => '$1 {{PLURAL:$1|categoria|categories}}',
'nlinks' => '$1 {{PLURAL:$1|enllaç|enllaços}}',
'nmembers' => '$1 {{PLURAL:$1|membre|membres}}',
'nrevisions' => '$1 {{PLURAL:$1|revisió|revisions}}',
'nviews' => '$1 {{PLURAL:$1|visita|visites}}',
'specialpage-empty' => 'Aquesta pàgina és buida.',
'lonelypages' => 'Pàgines òrfenes',
'lonelypagestext' => "Les següents pàgines no s'enllacen ni s'inclouen en cap altra pàgina del projecte {{SITENAME}}.",
'uncategorizedpages' => 'Pàgines sense categoria',
'uncategorizedcategories' => 'Categories sense categoria',
'uncategorizedimages' => 'Fitxers sense categoria',
'uncategorizedtemplates' => 'Plantilles sense categoria',
'unusedcategories' => 'Categories sense cap ús',
'unusedimages' => 'Fitxers no utilitzats',
'popularpages' => 'Pàgines populars',
'wantedcategories' => 'Categories demanades',
'wantedpages' => 'Pàgines demanades',
'wantedpages-badtitle' => 'Títol invàlid al conjunt de resultats: $1',
'wantedfiles' => 'Fitxers demanats',
'wantedtemplates' => 'Plantilles demanades',
'mostlinked' => 'Pàgines més enllaçades',
'mostlinkedcategories' => 'Categories més utilitzades',
'mostlinkedtemplates' => 'Plantilles més usades',
'mostcategories' => 'Pàgines amb més categories',
'mostimages' => 'Fitxers més enllaçats',
'mostrevisions' => 'Pàgines més modificades',
'prefixindex' => 'Totes les pàgines per prefix',
'shortpages' => 'Pàgines curtes',
'longpages' => 'Pàgines llargues',
'deadendpages' => 'Pàgines atzucac',
'deadendpagestext' => "Aquestes pàgines no tenen enllaços a d'altres pàgines del projecte {{SITENAME}}.",
'protectedpages' => 'Pàgines protegides',
'protectedpages-indef' => 'Només proteccions indefinides',
'protectedpages-cascade' => 'Només proteccions en cascada',
'protectedpagestext' => 'Les pàgines següents estan protegides perquè no es puguin modificar o reanomenar',
'protectedpagesempty' => 'No hi ha cap pàgina protegida per ara',
'protectedtitles' => 'Títols protegits',
'protectedtitlestext' => 'Els títols següents estan protegits de crear-se',
'protectedtitlesempty' => 'No hi ha cap títol protegit actualment amb aquests paràmetres.',
'listusers' => "Llista d'usuaris",
'listusers-editsonly' => 'Mostra només usuaris amb edicions',
'listusers-creationsort' => 'Ordena per data de creació',
'usereditcount' => '$1 {{PLURAL:$1|modificació|modificacions}}',
'usercreated' => 'Creat el $1 a $2',
'newpages' => 'Pàgines noves',
'newpages-username' => "Nom d'usuari:",
'ancientpages' => 'Pàgines més antigues',
'move' => 'Reanomena',
'movethispage' => 'Trasllada la pàgina',
'unusedimagestext' => 'Els següents fitxers existeixen però estan incorporats en cap altra pàgina.
Tingueu en compte que altres llocs web poden enllaçar un fitxer amb un URL directe i estar llistat ací tot i estar en ús actiu.',
'unusedcategoriestext' => 'Les pàgines de categoria següents existeixen encara que cap altra pàgina o categoria les utilitza.',
'notargettitle' => 'No hi ha pàgina en blanc',
'notargettext' => 'No heu especificat a quina pàgina dur a terme aquesta funció.',
'nopagetitle' => 'No existeix aquesta pàgina',
'nopagetext' => 'La pàgina que heu especificat no existeix.',
'pager-newer-n' => '{{PLURAL:$1|1 posterior|$1 posteriors}}',
'pager-older-n' => '{{PLURAL:$1|anterior|$1 anteriors}}',
'suppress' => 'Oversight',
# Book sources
'booksources' => 'Obres de referència',
'booksources-search-legend' => 'Cerca fonts de llibres',
'booksources-go' => 'Vés-hi',
'booksources-text' => "A sota hi ha una llista d'enllaços d'altres llocs que venen llibres nous i de segona mà, i també podrien tenir més informació dels llibres que esteu cercant:",
'booksources-invalid-isbn' => "El codi ISBN donat no és vàlid. Comproveu si l'heu copiat correctament.",
# Special:Log
'specialloguserlabel' => 'Usuari:',
'speciallogtitlelabel' => 'Títol:',
'log' => 'Registres',
'all-logs-page' => 'Tots els registres públics',
'alllogstext' => "Presentació combinada de tots els registres disponibles de {{SITENAME}}.
Podeu reduir l'extensió seleccionant el tipus de registre, el nom del usuari (distingeix entre majúscules i minúscules), o la pàgina afectada (també en distingeix).",
'logempty' => 'No hi ha cap coincidència en el registre.',
'log-title-wildcard' => 'Cerca els títols que comencin amb aquest text',
# Special:AllPages
'allpages' => 'Totes les pàgines',
'alphaindexline' => '$1 a $2',
'nextpage' => 'Pàgina següent ($1)',
'prevpage' => 'Pàgina anterior ($1)',
'allpagesfrom' => 'Mostra les pàgines que comencin per:',
'allpagesto' => 'Mostra pàgines que acabin en:',
'allarticles' => 'Totes les pàgines',
'allinnamespace' => "Totes les pàgines (de l'espai de noms $1)",
'allnotinnamespace' => "Totes les pàgines (que no són a l'espai de noms $1)",
'allpagesprev' => 'Anterior',
'allpagesnext' => 'Següent',
'allpagessubmit' => 'Vés-hi',
'allpagesprefix' => 'Mostra les pàgines amb prefix:',
'allpagesbadtitle' => "El títol de la pàgina que heu inserit no és vàlid o conté un prefix d'enllaç amb un altre projecte. També pot passar que contingui un o més caràcters que no es puguin fer servir en títols de pàgina.",
'allpages-bad-ns' => "El projecte {{SITENAME}} no disposa de l'espai de noms «$1».",
# Special:Categories
'categories' => 'Categories',
'categoriespagetext' => "{{PLURAL:$1|La següent categoria conté|Les següents categories contenen}} pàgines, o fitxers multimèdia.
[[Special:UnusedCategories|Les categories no usades]] no s'hi mostren.
Vegeu també [[Special:WantedCategories|les categories soŀlicitades]].",
'categoriesfrom' => 'Mostra les categories que comencen a:',
'special-categories-sort-count' => 'ordena per recompte',
'special-categories-sort-abc' => 'ordena alfabèticament',
# Special:DeletedContributions
'deletedcontributions' => 'Contribucions esborrades',
'deletedcontributions-title' => 'Contribucions esborrades',
'sp-deletedcontributions-contribs' => 'contribucions',
# Special:LinkSearch
'linksearch' => 'Enllaços externs',
'linksearch-pat' => 'Patró de cerca:',
'linksearch-ns' => 'Espai de noms:',
'linksearch-ok' => 'Cerca',
'linksearch-text' => 'Es poden fer servir caràcters comodí com «*.wikipedia.org».<br />Protocols admesos: <tt>$1</tt>',
'linksearch-line' => '$1 enllaçat a $2',
'linksearch-error' => "Els caràcters comodí només poden aparèixer a l'inici de l'url.",
# Special:ListUsers
'listusersfrom' => 'Mostra usuaris començant per:',
'listusers-submit' => 'Mostra',
'listusers-noresult' => "No s'han trobat coincidències de noms d'usuaris. Si us plau, busqueu també amb variacions per majúscules i minúscules.",
'listusers-blocked' => '({{GENDER:$1|blocat|blocada}})',
# Special:ActiveUsers
'activeusers' => "Llista d'usuaris actius",
'activeusers-intro' => "Aquí hi ha una llista d'usuaris que han tingut algun tipus d'activitat en {{PLURAL:$1|el darrer dia|els darrers $1 dies}}.",
'activeusers-count' => '$1 {{PLURAL:$1|modificació|modificacions}} en {{PLURAL:$3|el darrer dia|els $3 darrers dies}}',
'activeusers-from' => 'Mostra els usuaris començant per:',
'activeusers-hidebots' => 'Amaga bots',
'activeusers-hidesysops' => 'Amaga administradors',
'activeusers-noresult' => "No s'han trobat usuaris.",
# Special:Log/newusers
'newuserlogpage' => "Registre de creació de l'usuari",
'newuserlogpagetext' => 'Aquest és un registre de creació de nous usuaris.',
'newuserlog-byemail' => 'contrasenya enviada per correu electrònic',
'newuserlog-create-entry' => 'Nou usuari',
'newuserlog-create2-entry' => "s'ha creat un compte per a $1",
'newuserlog-autocreate-entry' => 'Compte creat automàticament',
# Special:ListGroupRights
'listgrouprights' => "Drets dels grups d'usuaris",
'listgrouprights-summary' => "A continuació hi ha una llista dels grups d'usuaris definits en aquest wiki, així com dels seus drets d'accés associats.
Pot ser que hi hagi més informació sobre drets individuals [[{{MediaWiki:Listgrouprights-helppage}}|aquí]].",
'listgrouprights-key' => '* <span class="listgrouprights-granted">Drets concedits</span>
* <span class="listgrouprights-revoked">Drets revocats</span>',
'listgrouprights-group' => 'Grup',
'listgrouprights-rights' => 'Drets',
'listgrouprights-helppage' => 'Help:Drets del grup',
'listgrouprights-members' => '(llista de membres)',
'listgrouprights-addgroup' => 'Pot afegir {{PLURAL:$2|grup|grups}}: $1',
'listgrouprights-removegroup' => 'Pot treure {{PLURAL:$2|grup|grups}}: $1',
'listgrouprights-addgroup-all' => 'Pot afegir tots els grups',
'listgrouprights-removegroup-all' => 'Pot treure tots els grups',
'listgrouprights-addgroup-self' => 'Entrar {{PLURAL:$2|al grup|als grups}} $1',
'listgrouprights-removegroup-self' => 'Sortir {{PLURAL:$2|del grup|dels grups:}} $1',
'listgrouprights-addgroup-self-all' => 'Afegir-se a qualsevol grup',
'listgrouprights-removegroup-self-all' => 'Sortir de tots els grups',
# E-mail user
'mailnologin' => "No enviïs l'adreça",
'mailnologintext' => "Heu d'haver [[Special:UserLogin|entrat]]
i tenir una direcció electrònica vàlida en les vostres [[Special:Preferences|preferències]]
per enviar un correu electrònic a altres usuaris.",
'emailuser' => 'Envia un missatge de correu electrònic a aquest usuari',
'emailpage' => 'Correu electrònic a usuari',
'emailpagetext' => "Podeu usar el següent formulari per a enviar un missatge de correu electrònic a aquest usuari.
L'adreça electrònica que heu entrat en [[Special:Preferences|les vostres preferències d'usuari]] apareixerà com a remitent del correu electrònic, de manera que el destinatari us podrà respondre directament.",
'usermailererror' => "L'objecte de correu ha retornat un error:",
'defemailsubject' => 'Adreça correl de {{SITENAME}}',
'noemailtitle' => 'No hi ha cap adreça electrònica',
'noemailtext' => 'Aquest usuari no ha especificat una adreça electrònica vàlida.',
'nowikiemailtitle' => 'No es permet el correu electrònic',
'nowikiemailtext' => "Aquest usuari ha escollit no rebre missatges electrònics d'altres usuaris.",
'email-legend' => 'Enviar un correu electrònic a un altre usuari de {{SITENAME}}',
'emailfrom' => 'De:',
'emailto' => 'Per a:',
'emailsubject' => 'Assumpte:',
'emailmessage' => 'Missatge:',
'emailsend' => 'Envia',
'emailccme' => "Envia'm una còpia del meu missatge.",
'emailccsubject' => 'Còpia del vostre missatge a $1: $2',
'emailsent' => 'Correu electrònic enviat',
'emailsenttext' => 'El vostre correu electrònic ha estat enviat.',
'emailuserfooter' => "Aquest missatge de correu electrònic l'ha enviat $1 a $2 amb la funció «e-mail» del projecte {{SITENAME}}.",
# Watchlist
'watchlist' => 'Llista de seguiment',
'mywatchlist' => 'Llista de seguiment',
'watchlistfor' => "(per a '''$1''')",
'nowatchlist' => 'No teniu cap element en la vostra llista de seguiment.',
'watchlistanontext' => 'Premeu $1 per a visualitzar o modificar elements de la vostra llista de seguiment.',
'watchnologin' => 'No heu iniciat la sessió',
'watchnologintext' => "Heu d'[[Special:UserLogin|entrar]]
per modificar el vostre llistat de seguiment.",
'addedwatch' => "S'ha afegit la pàgina a la llista de seguiment",
'addedwatchtext' => "S'ha afegit la pàgina «[[:$1]]» a la vostra [[Special:Watchlist|llista de seguiment]].
Els canvis futurs que tinguin lloc en aquesta pàgina i la seua corresponent discussió sortiran en la vostra [[Special:Watchlist|llista de seguiment]]. A més la pàgina estarà ressaltada '''en negreta''' dins la [[Special:RecentChanges|llista de canvis recents]] perquè pugueu adonar-vos-en amb més facilitat dels canvis que tingui.
Si voleu deixar de vigilar la pàgina, cliqueu sobre l'enllaç de «Desatén» de la barra lateral.",
'removedwatch' => "S'ha tret de la llista de seguiment",
'removedwatchtext' => "S'ha tret la pàgina «[[:$1]]» de la vostra [[Special:Watchlist|llista de seguiment]].",
'watch' => 'Vigila',
'watchthispage' => 'Vigila aquesta pàgina',
'unwatch' => 'Desatén',
'unwatchthispage' => 'Desatén',
'notanarticle' => 'No és una pàgina amb contingut',
'notvisiblerev' => 'La versió ha estat esborrada',
'watchnochange' => "No s'ha editat cap dels elements que vigileu en el període de temps que es mostra.",
'watchlist-details' => '{{PLURAL:$1|$1 pàgina|$1 pàgines}} vigilades, sense comptar les pàgines de discussió',
'wlheader-enotif' => "* S'ha habilitat la notificació per correu electrònic.",
'wlheader-showupdated' => "* Les pàgines que s'han canviat des de la vostra darrera visita es mostren '''en negreta'''",
'watchmethod-recent' => "s'està comprovant si ha pàgines vigilades en les edicions recents",
'watchmethod-list' => "s'està comprovant si hi ha edicions recents en les pàgines vigilades",
'watchlistcontains' => 'La vostra llista de seguiment conté {{PLURAL:$1|una única pàgina|$1 pàgines}}.',
'iteminvalidname' => "Hi ha un problema amb l'element '$1': el nom no és vàlid...",
'wlnote' => 'A sota hi ha {{PLURAL:$1|el darrer canvi|els darrers $1 canvis}} en {{PLURAL:$2|la darrera hora|les darreres $2 hores}}.',
'wlshowlast' => '<small>- Mostra les darreres $1 hores, els darrers $2 dies o $3</small>',
'watchlist-options' => 'Opcions de la llista de seguiment',
# Displayed when you click the "watch" button and it is in the process of watching
'watching' => "S'està vigilant...",
'unwatching' => "S'està desatenent...",
'enotif_mailer' => 'Sistema de notificació per correl de {{SITENAME}}',
'enotif_reset' => 'Marca totes les pàgines com a visitades',
'enotif_newpagetext' => 'Aquesta és una nova pàgina.',
'enotif_impersonal_salutation' => 'usuari de la {{SITENAME}}',
'changed' => 'modificada',
'created' => 'creada',
'enotif_subject' => 'La pàgina $PAGETITLE a {{SITENAME}} ha estat $CHANGEDORCREATED per $PAGEEDITOR',
'enotif_lastvisited' => "Vegeu $1 per a tots els canvis que s'han fet d'ença de la vostra darrera visita.",
'enotif_lastdiff' => 'Consulteu $1 per a visualitzar aquest canvi.',
'enotif_anon_editor' => 'usuari anònim $1',
'enotif_body' => 'Benvolgut $WATCHINGUSERNAME,
La pàgina $PAGETITLE del projecte {{SITENAME}} ha estat $CHANGEDORCREATED el dia $PAGEEDITDATE per $PAGEEDITOR, vegeu la versió actual a $PAGETITLE_URL.
$NEWPAGE
Resum de l\'editor: $PAGESUMMARY $PAGEMINOREDIT
Contacteu amb l\'editor:
correu: $PAGEEDITOR_EMAIL
wiki: $PAGEEDITOR_WIKI
No rebreu més notificacions de futurs canvis si no visiteu la pàgina. També podeu canviar el mode de notificació de les pàgines que vigileu en la vostra llista de seguiment.
El servei de notificacions del projecte {{SITENAME}}
--
Per a canviar les opcions de la vostra llista de seguiment aneu a
{{fullurl:{{#special:Watchlist}}/edit}}
Per eliminar la pàgina de la vostra llista de seguiment aneu a
$UNWATCHURL
Suggeriments i ajuda:
{{fullurl:{{MediaWiki:Helppage}}}}',
# Delete
'deletepage' => 'Elimina la pàgina',
'confirm' => 'Confirma',
'excontent' => 'el contingut era: «$1»',
'excontentauthor' => "el contingut era: «$1» (i l'únic coŀlaborador era [[Special:Contributions/$2|$2]])",
'exbeforeblank' => "el contingut abans de buidar era: '$1'",
'exblank' => 'la pàgina estava en blanc',
'delete-confirm' => 'Elimina «$1»',
'delete-legend' => 'Elimina',
'historywarning' => "'''Avís:''' La pàgina que eliminareu té un historial amb aproximadament {{PLURAL:$1|una modificació|$1 modificacions}}:",
'confirmdeletetext' => "Esteu a punt d'esborrar de forma permanent una pàgina o imatge i tot el seu historial de la base de dades.
Confirmeu que realment ho voleu fer, que enteneu les
conseqüències, i que el que esteu fent està d'acord amb la [[{{MediaWiki:Policy-url}}|política]] del projecte.",
'actioncomplete' => "S'ha realitzat l'acció de manera satisfactòria.",
'actionfailed' => "L'acció ha fallat",
'deletedtext' => '«<nowiki>$1</nowiki>» ha estat esborrat.
Vegeu $2 per a un registre dels esborrats més recents.',
'deletedarticle' => 'ha esborrat «[[$1]]»',
'suppressedarticle' => "s'ha suprimit «[[$1]]»",
'dellogpage' => "Registre d'eliminació",
'dellogpagetext' => 'Davall hi ha una llista dels esborraments més recents.',
'deletionlog' => "Registre d'esborrats",
'reverted' => 'Invertit amb una revisió anterior',
'deletecomment' => 'Motiu:',
'deleteotherreason' => 'Motius diferents o addicionals:',
'deletereasonotherlist' => 'Altres motius',
'deletereason-dropdown' => "*Motius freqüents d'esborrat
** Demanada per l'autor
** Violació del copyright
** Vandalisme",
'delete-edit-reasonlist' => "Edita els motius d'eliminació",
'delete-toobig' => "Aquesta pàgina té un historial d'edicions molt gran, amb més de $1 {{PLURAL:$1|canvi|canvis}}. L'eliminació d'aquestes pàgines està restringida per a prevenir que hi pugui haver un desajustament seriós de la base de dades de tot el projecte {{SITENAME}} per accident.",
'delete-warning-toobig' => "Aquesta pàgina té un historial d'edicions molt gran, amb més de $1 {{PLURAL:$1|canvi|canvis}}. Eliminar-la podria suposar un seriós desajustament de la base de dades de tot el projecte {{SITENAME}}; aneu en compte abans dur a terme l'acció.",
# Rollback
'rollback' => 'Reverteix edicions',
'rollback_short' => 'Revoca',
'rollbacklink' => 'Reverteix',
'rollbackfailed' => "No s'ha pogut revocar",
'cantrollback' => "No s'ha pogut revertir les edicions; el darrer coŀlaborador és l'únic autor de la pàgina.",
'alreadyrolled' => "No es pot revertir la darrera modificació de [[:$1]]
de l'usuari [[User:$2|$2]] ([[User talk:$2|Discussió]]{{int:pipe-separator}}[[Special:Contributions/$2|{{int:contribslink}}]]). Algú altre ja ha modificat o revertit la pàgina.
La darrera modificació ha estat feta per l'usuari [[User:$3|$3]] ([[User talk:$3|Discussió]]{{int:pipe-separator}}[[Special:Contributions/$3|{{int:contribslink}}]]).",
'editcomment' => "El resum d'edició ha estat: «$1».",
'revertpage' => "Revertides les edicions de [[Special:Contributions/$2|$2]] ([[User talk:$2|discussió]]). S'ha recuperat la darrera versió de l'usuari [[User:$1|$1]]",
'revertpage-nouser' => "Desfetes les edicions de (nom d'usuari eliminat) a l'última revisió feta per [[User:$1|$1]]",
'rollback-success' => "Edicions revertides de $1; s'ha canviat a la darrera versió de $2.",
'sessionfailure' => "Sembla que hi ha problema amb la vostra sessió. Aquesta acció ha estat anuŀlada en prevenció de pirateig de sessió. Si us plau, pitgeu «Torna», i recarregueu la pàgina des d'on veniu, després intenteu-ho de nou.",
# Protect
'protectlogpage' => 'Registre de protecció',
'protectlogtext' => 'Aquest és el registre de proteccions i desproteccions. Vegeu la [[Special:ProtectedPages|llista de pàgines protegides]] per a la llista de les pàgines que actualment tenen alguna protecció.',
'protectedarticle' => 'protegit «[[$1]]»',
'modifiedarticleprotection' => "s'ha canviat el nivell de protecció «[[$1]]»",
'unprotectedarticle' => '«[[$1]]» desprotegida',
'movedarticleprotection' => 'ajustaments de protecció moguts de «[[$2]]» a «[[$1]]»',
'protect-title' => 'Canviant la protecció de «$1»',
'prot_1movedto2' => '[[$1]] mogut a [[$2]]',
'protect-legend' => 'Confirmeu la protecció',
'protectcomment' => 'Motiu:',
'protectexpiry' => "Data d'expiració",
'protect_expiry_invalid' => "Data d'expiració no vàlida",
'protect_expiry_old' => 'El temps de termini ja ha passat.',
'protect-unchain-permissions' => 'Desbloqueja les opcions de protecció avançades',
'protect-text' => 'Aquí podeu visualitzar i canviar el nivell de protecció de la pàgina «<nowiki>$1</nowiki>». Assegureu-vos de seguir les polítiques existents.',
'protect-locked-blocked' => "No podeu canviar els nivells de protecció mentre estigueu bloquejats. Ací hi ha els
paràmetres actuals de la pàgina '''$1''':",
'protect-locked-dblock' => "No poden canviar-se els nivells de protecció a casa d'un bloqueig actiu de la base de dades.
Ací hi ha els paràmetres actuals de la pàgina '''$1''':",
'protect-locked-access' => "El vostre compte no té permisos per a canviar els nivells de protecció de la pàgina.
Ací es troben els paràmetres actuals de la pàgina '''$1''':",
'protect-cascadeon' => "Aquesta pàgina es troba protegida perquè està inclosa en {{PLURAL:$1|la següent pàgina que té|les següents pàgines que tenen}} activada una protecció en cascada. Podeu canviar el nivell de protecció d'aquesta pàgina però això no afectarà la protecció en cascada.",
'protect-default' => 'Permet tots els usuaris',
'protect-fallback' => 'Cal el permís de «$1»',
'protect-level-autoconfirmed' => 'Bloca els usuaris novells i no registrats',
'protect-level-sysop' => 'Bloqueja tots els usuaris excepte administradors',
'protect-summary-cascade' => 'en cascada',
'protect-expiring' => 'expira el dia $1 (UTC)',
'protect-expiry-indefinite' => 'indefinit',
'protect-cascade' => 'Protecció en cascada: protegeix totes les pàgines i plantilles incloses en aquesta.',
'protect-cantedit' => "No podeu canviar els nivells de protecció d'aquesta pàgina, perquè no teniu permisos per a editar-la.",
'protect-othertime' => 'Un altre termini:',
'protect-othertime-op' => 'un altre termini',
'protect-existing-expiry' => "Data d'expiració existent: $2 a les $3",
'protect-otherreason' => 'Altres motius:',
'protect-otherreason-op' => 'Altres motius',
'protect-dropdown' => "*Motius comuns de protecció
** Vandalisme excessiu
** Spam excessiu
** Guerra d'edicions improductiva
** Pàgina amb alt trànsit",
'protect-edit-reasonlist' => 'Edita motius de protecció',
'protect-expiry-options' => '1 hora:1 hour,1 dia:1 day,1 setmana:1 week,2 setmanes:2 weeks,1 mes:1 month,3 mesos:3 months,6 mesos:6 months,1 any:1 year,infinit:infinite',
'restriction-type' => 'Permís:',
'restriction-level' => 'Nivell de restricció:',
'minimum-size' => 'Mida mínima',
'maximum-size' => 'Mida màxima:',
'pagesize' => '(bytes)',
# Restrictions (nouns)
'restriction-edit' => 'Modifica',
'restriction-move' => 'Reanomena',
'restriction-create' => 'Crea',
'restriction-upload' => 'Carrega',
# Restriction levels
'restriction-level-sysop' => 'protegida',
'restriction-level-autoconfirmed' => 'semiprotegida',
'restriction-level-all' => 'qualsevol nivell',
# Undelete
'undelete' => 'Restaura una pàgina esborrada',
'undeletepage' => 'Mostra i restaura pàgines esborrades',
'undeletepagetitle' => "'''A continuació teniu revisions eliminades de [[:$1]]'''.",
'viewdeletedpage' => 'Visualitza les pàgines eliminades',
'undeletepagetext' => "S'ha eliminat {{PLURAL:|la pàgina $1, però encara és a l'arxiu i pot ser restaurada|les pàgines $1, però encara són a l'arxiu i poden ser restaurades}}. Pot netejar-se l'arxiu periòdicament.",
'undelete-fieldset-title' => 'Restaura revisions',
'undeleteextrahelp' => "Per a restaurar la pàgina sencera, deixeu totes les caselles sense seleccionar i
cliqueu a '''''Restaura'''''.
Per a realitzar una restauració selectiva, marqueu les caselles que corresponguin
a les revisions que voleu recuperar, i feu clic a '''''Restaura'''''.
Si cliqueu '''''Reinicia''''' es netejarà el camp de comentari i es desmarcaran totes les caselles.",
'undeleterevisions' => '{{PLURAL:$1|Una revisió arxivada|$1 revisions arxivades}}',
'undeletehistory' => "Si restaureu la pàgina, totes les revisions seran restaurades a l'historial.
Si s'hagués creat una nova pàgina amb el mateix nom d'ençà que la vàreu esborrar, les versions restaurades apareixeran abans a l'historial.",
'undeleterevdel' => "No es revertirà l'eliminació si això resulta que la pàgina superior se suprimeixi parcialment.
En aqueixos casos, heu de desmarcar o mostrar les revisions eliminades més noves.",
'undeletehistorynoadmin' => "S'ha eliminat la pàgina. El motiu es mostra
al resum a continuació, juntament amb detalls dels usuaris que l'havien editat abans de la seua eliminació. El text de les revisions eliminades només és accessible als administradors.",
'undelete-revision' => "S'ha eliminat la revisió de $1 (des del dia $4 a les $5), revisat per $3:",
'undeleterevision-missing' => "La revisió no és vàlida o no hi és. Podeu tenir-hi un enllaç incorrecte, o bé pot haver-se restaurat o eliminat de l'arxiu.",
'undelete-nodiff' => "No s'ha trobat cap revisió anterior.",
'undeletebtn' => 'Restaura!',
'undeletelink' => 'mira/restaura',
'undeleteviewlink' => 'veure',
'undeletereset' => 'Reinicia',
'undeleteinvert' => 'Invertir selecció',
'undeletecomment' => 'Motiu:',
'undeletedarticle' => 'restaurat «[[$1]]»',
'undeletedrevisions' => '{{PLURAL:$1|Una revisió restaurada|$1 revisions restaurades}}',
'undeletedrevisions-files' => '{{PLURAL:$1|Una revisió|$1 revisions}} i {{PLURAL:$2|un fitxer|$2 fitxers}} restaurats',
'undeletedfiles' => '$1 {{PLURAL:$1|fitxer restaurat|fitxers restaurats}}',
'cannotundelete' => "No s'ha pogut restaurar; algú altre pot estar restaurant la mateixa pàgina.",
'undeletedpage' => "'''S'ha restaurat «$1»'''
Consulteu el [[Special:Log/delete|registre d'esborraments]] per a veure els esborraments i els restauraments més recents.",
'undelete-header' => "Vegeu [[Special:Log/delete|el registre d'eliminació]] per a veure les pàgines eliminades recentment.",
'undelete-search-box' => 'Cerca pàgines esborrades',
'undelete-search-prefix' => 'Mostra pàgines que comencin:',
'undelete-search-submit' => 'Cerca',
'undelete-no-results' => "No s'ha trobat cap pàgina que hi coincideixi a l'arxiu d'eliminació.",
'undelete-filename-mismatch' => "No es pot revertir l'eliminació de la revisió de fitxer amb marca horària $1: no coincideix el nom de fitxer",
'undelete-bad-store-key' => 'No es pot revertir la revisió de fitxer amb marca horària $1: el fitxer no hi era abans i tot de ser eliminat.',
'undelete-cleanup-error' => "S'ha produït un error en eliminar el fitxer d'arxiu sense utilitzar «$1».",
'undelete-missing-filearchive' => "No s'ha pogut restaurar l'identificador $1 d'arxiu de fitxers perquè no es troba a la base de dades. Podria ser que ja s'hagués revertit l'eliminació.",
'undelete-error-short' => "S'ha produït un error en revertir l'eliminació del fitxer: $1",
'undelete-error-long' => "S'han produït errors en revertir la supressió del fitxer:
$1",
'undelete-show-file-confirm' => 'Segur que voleu veure la revisió esborrada del fitxer «<nowiki>$1</nowiki>» corresponent a les $3 del $2?',
'undelete-show-file-submit' => 'Sí',
# Namespace form on various pages
'namespace' => 'Espai de noms:',
'invert' => 'Inverteix la selecció',
'blanknamespace' => '(Principal)',
# Contributions
'contributions' => "Contribucions de l'usuari",
'contributions-title' => "Contribucions de l'usuari $1",
'mycontris' => 'Contribucions',
'contribsub2' => 'Per $1 ($2)',
'nocontribs' => "No s'ha trobat canvis que encaixessin amb aquests criteris.",
'uctop' => '(actual)',
'month' => 'Mes (i anteriors):',
'year' => 'Any (i anteriors):',
'sp-contributions-newbies' => 'Mostra les contribucions dels usuaris novells',
'sp-contributions-newbies-sub' => 'Per a novells',
'sp-contributions-newbies-title' => "Contribucions dels comptes d'usuari més nous",
'sp-contributions-blocklog' => 'Registre de bloquejos',
'sp-contributions-deleted' => "contribucions d'usuari esborrades",
'sp-contributions-logs' => 'registres',
'sp-contributions-talk' => 'discussió',
'sp-contributions-userrights' => "gestió de drets d'usuari",
'sp-contributions-blocked-notice' => "En aquests moments, aquest compte d'usuari es troba blocat.
Per més detalls, la última entrada del registre es mostra a continuació:",
'sp-contributions-search' => 'Cerca les contribucions',
'sp-contributions-username' => "Adreça IP o nom d'usuari:",
'sp-contributions-submit' => 'Cerca',
# What links here
'whatlinkshere' => 'Què hi enllaça',
'whatlinkshere-title' => 'Pàgines que enllacen amb $1',
'whatlinkshere-page' => 'Pàgina:',
'linkshere' => "Les següents pàgines enllacen amb '''[[:$1]]''':",
'nolinkshere' => "Cap pàgina no enllaça amb '''[[:$1]]'''.",
'nolinkshere-ns' => "No s'enllaça cap pàgina a '''[[:$1]]''' en l'espai de noms triat.",
'isredirect' => 'pàgina redirigida',
'istemplate' => 'inclosa',
'isimage' => 'enllaç a imatge',
'whatlinkshere-prev' => '{{PLURAL:$1|anterior|anteriors $1}}',
'whatlinkshere-next' => '{{PLURAL:$1|següent|següents $1}}',
'whatlinkshere-links' => '← enllaços',
'whatlinkshere-hideredirs' => '$1 redireccions',
'whatlinkshere-hidetrans' => '$1 inclusions',
'whatlinkshere-hidelinks' => '$1 enllaços',
'whatlinkshere-hideimages' => '$1 enllaços a imatge',
'whatlinkshere-filters' => 'Filtres',
# Block/unblock
'blockip' => "Bloqueig d'usuaris",
'blockip-title' => "Bloquejar l'usuari",
'blockip-legend' => "Bloca l'usuari",
'blockiptext' => "Empreu el següent formulari per blocar l'accés
d'escriptura des d'una adreça IP específica o des d'un usuari determinat.
això només s'hauria de fer per prevenir el vandalisme, i
d'acord amb la [[{{MediaWiki:Policy-url}}|política del projecte]].
Empleneu el diàleg de sota amb un motiu específic (per exemple, citant
quines pàgines en concret estan sent vandalitzades).",
'ipaddress' => 'Adreça IP:',
'ipadressorusername' => "Adreça IP o nom de l'usuari",
'ipbexpiry' => 'Venciment',
'ipbreason' => 'Motiu:',
'ipbreasonotherlist' => 'Un altre motiu',
'ipbreason-dropdown' => "*Motius de bloqueig més freqüents
** Inserció d'informació falsa
** Supressió de contingut sense justificació
** Inserció d'enllaços promocionals (spam)
** Inserció de contingut sense cap sentit
** Conducta intimidatòria o hostil
** Abús de comptes d'usuari múltiples
** Nom d'usuari no acceptable",
'ipbanononly' => 'Bloca només els usuaris anònims',
'ipbcreateaccount' => 'Evita la creació de comptes',
'ipbemailban' => "Evita que l'usuari enviï correu electrònic",
'ipbenableautoblock' => "Bloca l'adreça IP d'aquest usuari, i totes les subseqüents adreces des de les quals intenti registrar-se",
'ipbsubmit' => 'Bloqueja aquesta adreça',
'ipbother' => 'Un altre termini',
'ipboptions' => '2 hores:2 hours,1 dia:1 day,3 dies:3 days,1 setmana:1 week,2 setmanes:2 weeks,1 mes:1 month,3 mesos:3 months,6 mesos:6 months,1 any:1 year,infinit:infinite',
'ipbotheroption' => 'un altre',
'ipbotherreason' => 'Altres motius o addicionals:',
'ipbhidename' => "Amaga el nom d'usuari de les edicions i llistes",
'ipbwatchuser' => "Vigila les pàgines d'usuari i de discussió de l'usuari",
'ipballowusertalk' => "Permet que l'usuari editi la seva pàgina de discussió durant el bloqueig",
'ipb-change-block' => "Torna a blocar l'usuari amb aquests paràmetres",
'badipaddress' => "L'adreça IP no té el format correcte.",
'blockipsuccesssub' => "S'ha blocat amb èxit",
'blockipsuccesstext' => "L'usuari «[[Special:Contributions/$1|$1]]» ha estat blocat.
<br />Vegeu la [[Special:IPBlockList|llista d'IP blocades]] per revisar els bloquejos.",
'ipb-edit-dropdown' => 'Edita les raons per a blocar',
'ipb-unblock-addr' => 'Desbloca $1',
'ipb-unblock' => 'Desbloca un usuari o una adreça IP',
'ipb-blocklist-addr' => 'Bloquejos existents per $1',
'ipb-blocklist' => 'Llista els bloquejos existents',
'ipb-blocklist-contribs' => 'Contribucions de $1',
'unblockip' => "Desbloca l'usuari",
'unblockiptext' => "Empreu el següent formulari per restaurar
l'accés a l'escriptura a una adreça IP o un usuari prèviament bloquejat.",
'ipusubmit' => 'Desbloca aquesta adreça',
'unblocked' => "S'ha desbloquejat l'{{GENDER:$1|usuari|usuària}} [[User:$1|$1]]",
'unblocked-id' => "S'ha eliminat el bloqueig de $1",
'ipblocklist' => "Llista d'adreces IP i noms d'usuaris blocats",
'ipblocklist-legend' => 'Cerca un usuari blocat',
'ipblocklist-username' => "Nom d'usuari o adreça IP:",
'ipblocklist-sh-userblocks' => '$1 bloquejos de comptes',
'ipblocklist-sh-tempblocks' => '$1 bloquejos temporals',
'ipblocklist-sh-addressblocks' => "$1 bloquejos d'una sola adreça IP",
'ipblocklist-submit' => 'Cerca',
'ipblocklist-localblock' => 'Bloqueig local',
'ipblocklist-otherblocks' => 'Altres {{PLURAL:$1|bloquejos|bloquejos}}',
'blocklistline' => '$1, $2 bloca $3 ($4)',
'infiniteblock' => 'infinit',
'expiringblock' => 'venç el $1 a $2',
'anononlyblock' => 'només usuari anònim',
'noautoblockblock' => "S'ha inhabilitat el bloqueig automàtic",
'createaccountblock' => "s'ha blocat la creació de nous comptes",
'emailblock' => "s'ha blocat l'enviament de correus electrònics",
'blocklist-nousertalk' => 'no podeu modificar la pàgina de discussió pròpia',
'ipblocklist-empty' => 'La llista de bloqueig està buida.',
'ipblocklist-no-results' => "La adreça IP soŀlicitada o nom d'usuari està bloquejada.",
'blocklink' => 'bloca',
'unblocklink' => 'desbloca',
'change-blocklink' => 'canvia el blocatge',
'contribslink' => 'contribucions',
'autoblocker' => "Heu estat blocat automàticament perquè la vostra adreça IP ha estat recentment utilitzada per l'usuari ''[[User:$1|$1]]''.
El motiu del bloqueig de $1 és: ''$2''.",
'blocklogpage' => 'Registre de bloquejos',
'blocklog-showlog' => 'Aquest usuari ha estat blocat prèviament.
Per més detalls, a sota es mostra el registre de bloquejos:',
'blocklog-showsuppresslog' => 'Aquest usuari ha estat blocat i amagat prèviament.
Per més detalls, a sota es mostra el registre de supressions:',
'blocklogentry' => "ha blocat l'{{GENDER:$1|usuari|usuària}} [[$1]] per un període de: $2 $3",
'reblock-logentry' => 'canviades les opcions del blocatge a [[$1]] amb caducitat a $2, $3',
'blocklogtext' => "Això és una relació de accions de bloqueig i desbloqueig. Les adreces IP bloquejades automàticament no apareixen. Vegeu la [[Special:IPBlockList|llista d'usuaris actualment bloquejats]].",
'unblocklogentry' => 'desbloquejat $1',
'block-log-flags-anononly' => 'només els usuaris anònims',
'block-log-flags-nocreate' => "s'ha desactivat la creació de comptes",
'block-log-flags-noautoblock' => 'sense bloqueig automàtic',
'block-log-flags-noemail' => 'correu-e blocat',
'block-log-flags-nousertalk' => 'no podeu modificar la pàgina de discussió pròpia',
'block-log-flags-angry-autoblock' => 'autoblocatge avançat activat',
'block-log-flags-hiddenname' => "nom d'usuari ocult",
'range_block_disabled' => 'La facultat dels administradors per a crear bloquejos de rang està desactivada.',
'ipb_expiry_invalid' => "Data d'acabament no vàlida.",
'ipb_expiry_temp' => "Els blocatges amb ocultació de nom d'usuari haurien de ser permanents.",
'ipb_hide_invalid' => "No s'ha pogut eliminar el compte; potser té massa edicions.",
'ipb_already_blocked' => '«$1» ja està blocat',
'ipb-needreblock' => "== Usuari bloquejat ==
L'usuari $1 ja està blocat. Voleu canviar-ne els paràmetres del blocatge?",
'ipb-otherblocks-header' => 'Altres {{PLURAL:$1|bloquejos|bloquejos}}',
'ipb_cant_unblock' => "Errada: No s'ha trobat el núm. ID de bloqueig $1. És possible que ja s'haguera desblocat.",
'ipb_blocked_as_range' => "Error: L'adreça IP $1 no està blocada directament i per tant no pot ésser desbloquejada. Ara bé, sí que ho està per formar part del rang $2 que sí que pot ser desblocat.",
'ip_range_invalid' => 'Rang de IP no vàlid.',
'ip_range_toolarge' => 'No estan permesos el bloquejos de rangs més grans que /$1.',
'blockme' => "Bloca'm",
'proxyblocker' => 'Bloqueig de proxy',
'proxyblocker-disabled' => "S'ha inhabilitat la funció.",
'proxyblockreason' => "La vostra adreça IP ha estat bloquejada perquè és un proxy obert. Si us plau contactau el vostre proveïdor d'Internet o servei tècnic i informau-los d'aquest seriós problema de seguretat.",
'proxyblocksuccess' => 'Fet.',
'sorbsreason' => "La vostra adreça IP està llistada com a servidor intermediari (''proxy'') obert dins la llista negra de DNS que fa servir el projecte {{SITENAME}}.",
'sorbs_create_account_reason' => "La vostra adreça IP està llistada com a servidor intermediari (''proxy'') obert a la llista negra de DNS que utilitza el projecte {{SITENAME}}. No podeu crear-vos-hi un compte",
'cant-block-while-blocked' => 'No podeu blocar altres usuaris quan esteu bloquejat.',
'cant-see-hidden-user' => "L'usuari que esteu intentant blocar ja ha estat blocat i ocultat. Com que no teniu el permís hideuser no podeu veure ni modificar el seu blocatge.",
# Developer tools
'lockdb' => 'Bloca la base de dades',
'unlockdb' => 'Desbloca la base de dades',
'lockdbtext' => "Blocant la base de dades es suspendrà la capacitat de tots els
usuaris d'editar pàgines, canviar les preferències, editar la llista de seguiment, i
altres canvis que requereixin modificacions en la base de dades.
Confirmeu que això és el que voleu fer, i sobretot no us oblideu
de desblocar la base de dades quan acabeu el manteniment.",
'unlockdbtext' => "Desblocant la base de dades es restaurarà l'habilitat de tots
els usuaris d'editar pàgines, canviar les preferències, editar els llistats de seguiment, i
altres accions que requereixen canvis en la base de dades.
Confirmeu que això és el que voleu fer.",
'lockconfirm' => 'Sí, realment vull blocar la base de dades.',
'unlockconfirm' => 'Sí, realment vull desblocar la base dades.',
'lockbtn' => 'Bloca la base de dades',
'unlockbtn' => 'Desbloca la base de dades',
'locknoconfirm' => 'No heu respost al diàleg de confirmació.',
'lockdbsuccesssub' => "S'ha bloquejat la base de dades",
'unlockdbsuccesssub' => "S'ha eliminat el bloqueig de la base de dades",
'lockdbsuccesstext' => "S'ha bloquejat la base de dades.<br />
Recordeu-vos de [[Special:UnlockDB|treure el bloqueig]] quan hàgiu acabat el manteniment.",
'unlockdbsuccesstext' => "S'ha desbloquejat la base de dades del projecte {{SITENAME}}.",
'lockfilenotwritable' => 'No es pot modificar el fitxer de la base de dades de bloquejos. Per a blocar o desblocar la base de dades, heu de donar-ne permís de modificació al servidor web.',
'databasenotlocked' => 'La base de dades no està bloquejada.',
# Move page
'move-page' => 'Mou $1',
'move-page-legend' => 'Reanomena la pàgina',
'movepagetext' => "Amb el formulari següent reanomenareu una pàgina, movent tot el seu historial al nou nom.
El títol anterior es convertirà en una redirecció al títol que hàgiu creat.
Podeu actualitzar automàticament els enllaços a l'antic títol de la pàgina.
Si no ho feu, assegureu-vos de verificar que no deixeu redireccions [[Special:DoubleRedirects|dobles]] o [[Special:BrokenRedirects|trencades]].
Sou el responsable de fer que els enllaços segueixin apuntant on se suposa que ho han de fer.
Tingueu en compte que la pàgina '''no''' serà traslladada si ja existeix una pàgina amb el títol nou, a no ser que sigui una pàgina buida o una ''redirecció'' sense historial.
Això significa que podeu reanomenar de nou una pàgina al seu títol original si cometeu un error, i que no podeu sobreescriure una pàgina existent.
'''ADVERTÈNCIA!'''
Açò pot ser un canvi dràstic i inesperat en una pàgina que sigui popular;
assegureu-vos d'entendre les conseqüències que comporta abans de seguir endavant.",
'movepagetalktext' => "La pàgina de discussió associada, si existeix, serà traslladada automàticament '''a menys que:'''
*Ja existeixi una pàgina de discussió no buida amb el nom nou, o
*Hàgiu desseleccionat la opció de sota.
En aquests casos, haureu de traslladar o fusionar la pàgina manualment si ho desitgeu.",
'movearticle' => 'Reanomena la pàgina',
'moveuserpage-warning' => "'''Atenció:''' Esteu a punt de moure una pàgina d'usuari. Tingueu en compte que només la pàgina es desplaçarà i que el compte d'usuari ''no'' canviarà de nom.",
'movenologin' => "No sou a dins d'una sessió",
'movenologintext' => "Heu de ser un usuari registrat i estar [[Special:UserLogin|dintre d'una sessió]]
per reanomenar una pàgina.",
'movenotallowed' => 'No teniu permís per a moure pàgines.',
'movenotallowedfile' => 'No teniu el permís per a moure fitxers.',
'cant-move-user-page' => "No teniu permís per a moure pàgines d'usuari (independentment de les subpàgines).",
'cant-move-to-user-page' => "No teniu permís per a moure una pàgina a una pàgina d'usuari (independentment de poder fer-ho cap a una subpàgina d'usuari).",
'newtitle' => 'A títol nou',
'move-watch' => 'Vigila aquesta pàgina',
'movepagebtn' => 'Reanomena la pàgina',
'pagemovedsub' => 'Reanomenament amb èxit',
'movepage-moved' => "'''«$1» s'ha mogut a «$2»'''",
'movepage-moved-redirect' => "S'ha creat una redirecció.",
'movepage-moved-noredirect' => "La creació d'una redirecció s'ha suprimit.",
'articleexists' => 'Ja existeix una pàgina amb aquest nom, o el nom que heu triat no és vàlid.
Trieu-ne un altre, si us plau.',
'cantmove-titleprotected' => "No podeu moure una pàgina a aquesta ubicació, perquè s'ha protegit la creació del títol nou",
'talkexists' => "S'ha reanomenat la pàgina amb èxit, però la pàgina de discussió no s'ha pogut moure car ja no existeix en el títol nou.
Incorporeu-les manualment, si us plau.",
'movedto' => 'reanomenat a',
'movetalk' => 'Mou la pàgina de discussió associada',
'move-subpages' => "Desplaça'n també les subpàgines (fins a $1)",
'move-talk-subpages' => 'Desplaça també les subpàgines de la pàgina de discussió (fins un màxim de $1)',
'movepage-page-exists' => "La pàgina $1 ja existeix i no pot sobreescriure's automàticament.",
'movepage-page-moved' => 'La pàgina $1 ha estat traslladada a $2.',
'movepage-page-unmoved' => "La pàgina $1 no s'ha pogut moure a $2.",
'movepage-max-pages' => "{{PLURAL:$1|S'ha mogut una pàgina|S'han mogut $1 pàgines}} que és el nombre màxim, i per tant no se'n mourà automàticament cap més.",
'1movedto2' => "[[$1]] s'ha reanomenat com [[$2]]",
'1movedto2_redir' => "[[$1]] s'ha reanomenat com [[$2]] amb una redirecció",
'move-redirect-suppressed' => 'redirecció suprimida',
'movelogpage' => 'Registre de reanomenaments',
'movelogpagetext' => 'Vegeu la llista de les darreres pàgines reanomenades.',
'movesubpage' => '{{PLURAL:$1|Subpàgina|Subpàgines}}',
'movesubpagetext' => 'Aquesta pàgina té {{PLURAL:$1|una subpàgina|$1 subpàgines}} que es mostren a continuació.',
'movenosubpage' => 'Aquesta pàgina no té subpàgines.',
'movereason' => 'Motiu:',
'revertmove' => 'reverteix',
'delete_and_move' => 'Elimina i trasllada',
'delete_and_move_text' => "==Cal l'eliminació==
La pàgina de destinació, «[[:$1]]», ja existeix. Voleu eliminar-la per a fer lloc al trasllat?",
'delete_and_move_confirm' => 'Sí, esborra la pàgina',
'delete_and_move_reason' => "S'ha eliminat per a permetre el reanomenament",
'selfmove' => "Els títols d'origen i de destinació coincideixen: no és possible de reanomenar una pàgina a si mateixa.",
'immobile-source-namespace' => 'No es poden moure pàgines de l\'espai de noms "$1"',
'immobile-target-namespace' => 'No es poden moure pàgines cap a l\'espai de noms "$1"',
'immobile-target-namespace-iw' => "No es poden moure pàgines a l'enllaç interwiki",
'immobile-source-page' => 'Aquesta pàgina no es pot moure.',
'immobile-target-page' => 'No es pot moure cap a una destinació amb aquest títol.',
'imagenocrossnamespace' => 'No es pot moure la imatge a un espai de noms on no li correspon',
'imagetypemismatch' => 'La nova extensió de fitxer no coincideix amb el seu tipus',
'imageinvalidfilename' => 'El nom de fitxer indicat no és vàlid',
'fix-double-redirects' => "Actualitza també les redireccions que apuntin a l'article original",
'move-leave-redirect' => 'Deixar enrera una redirecció',
'protectedpagemovewarning' => "'''AVÍS: Aquesta pàgina està bloquejada i només els usuaris que tenen drets d'administrador la poden reanomenar.
A continuació es mostra la darrera entrada del registre com a referència:",
'semiprotectedpagemovewarning' => "'''Nota:''' Aquesta pàgina està bloquejada i només els usuaris registrats la poden moure.
A continuació es mostra la darrera entrada del registre com a referència:",
'move-over-sharedrepo' => "== El fitxer ja existeix ==
[[:$1]] ja existeix al dipòsit compartit. Moure un fitxer a aquest títol impedirà d'ús del fitxer compartit.",
'file-exists-sharedrepo' => "El nom de fitxer escollit ja s'utilitza al dipòsit compartit. Escolliu un altre nom.",
# Export
'export' => 'Exporta les pàgines',
'exporttext' => "Podeu exportar a XML el text i l'historial d'una pàgina en concret o d'un conjunt de pàgines; aleshores el resultat pot importar-se en un altre lloc web basat en wiki amb programari de MediaWiki mitjançant la [[Special:Import|pàgina d'importació]].
Per a exportar pàgines, escriviu els títols que desitgeu al quadre de text de sota, un títol per línia, i seleccioneu si desitgeu o no la versió actual juntament amb totes les versions antigues, amb la pàgina d'historial, o només la pàgina actual amb la informació de la darrera modificació.
En el darrer cas, podeu fer servir un enllaç com ara [[{{#Special:Export}}/{{MediaWiki:Mainpage}}]] per a la pàgina «[[{{MediaWiki:Mainpage}}]]».",
'exportcuronly' => "Exporta únicament la versió actual en voltes de l'historial sencer",
'exportnohistory' => "----
'''Nota:''' s'ha inhabilitat l'exportació sencera d'historial de pàgines mitjançant aquest formulari a causa de problemes de rendiment del servidor.",
'export-submit' => 'Exporta',
'export-addcattext' => 'Afegeix pàgines de la categoria:',
'export-addcat' => 'Afegeix',
'export-addnstext' => "Afegeix pàgines de l'espai de noms:",
'export-addns' => 'Afegir',
'export-download' => 'Ofereix desar com a fitxer',
'export-templates' => 'Inclou les plantilles',
'export-pagelinks' => 'Inclou pàgines enllaçades fins una profunditat de:',
# Namespace 8 related
'allmessages' => 'Tots els missatges del sistema',
'allmessagesname' => 'Nom',
'allmessagesdefault' => 'Text per defecte',
'allmessagescurrent' => 'Text actual',
'allmessagestext' => "Tot seguit hi ha una llista dels missatges del sistema que es troben a l'espai de noms ''MediaWiki''. La traducció genèrica d'aquests missatges no s'hauria de fer localment sinó a la traducció del programari MediaWiki. Si voleu ajudar-hi visiteu [http://www.mediawiki.org/wiki/Localisation MediaWiki Localisation] i [http://translatewiki.net translatewiki.net].",
'allmessagesnotsupportedDB' => "No es pot processar '''{{ns:special}}:Allmessages''' perquè la variable '''\$wgUseDatabaseMessages''' està desactivada.",
'allmessages-filter-legend' => 'Filtre',
'allmessages-filter' => "Filtra per l'estat de personalització:",
'allmessages-filter-unmodified' => 'Sense modificar',
'allmessages-filter-all' => 'Tots',
'allmessages-filter-modified' => 'Modificat',
'allmessages-prefix' => 'Filtra per prefix:',
'allmessages-language' => 'Llengua:',
'allmessages-filter-submit' => 'Vés-hi',
# Thumbnails
'thumbnail-more' => 'Amplia',
'filemissing' => 'Fitxer inexistent',
'thumbnail_error' => "S'ha produït un error en crear la miniatura: $1",
'djvu_page_error' => "La pàgina DjVu està fora de l'abast",
'djvu_no_xml' => "No s'ha pogut recollir l'XML per al fitxer DjVu",
'thumbnail_invalid_params' => 'Els paràmetres de les miniatures no són vàlids',
'thumbnail_dest_directory' => "No s'ha pogut crear el directori de destinació",
'thumbnail_image-type' => "Tipus d'imatge no contemplat",
'thumbnail_gd-library' => 'Configuració de la biblioteca GD incompleta: falta la funció $1',
'thumbnail_image-missing' => 'Sembla que falta el fitxer: $1',
# Special:Import
'import' => 'Importa les pàgines',
'importinterwiki' => 'Importa interwiki',
'import-interwiki-text' => "Trieu un web basat en wiki i un títol de pàgina per a importar.
Es conservaran les dates de les versions i els noms dels editors.
Totes les accions d'importació interwiki es conserven al [[Special:Log/import|registre d'importacions]].",
'import-interwiki-source' => "Pàgina/wiki d'origen:",
'import-interwiki-history' => "Copia totes les versions de l'historial d'aquesta pàgina",
'import-interwiki-templates' => 'Inclou totes les plantilles',
'import-interwiki-submit' => 'Importa',
'import-interwiki-namespace' => 'Espai de noms de destinació:',
'import-upload-filename' => 'Nom de fitxer:',
'import-comment' => 'Comentari:',
'importtext' => "Exporteu el fitxer des del wiki d'origen utilitzant l'[[Special:Export|eina d'exportació]].
Deseu-lo al vostre ordinador i carregueu-ne una còpia ací.",
'importstart' => "S'estan important pàgines...",
'import-revision-count' => '$1 {{PLURAL:$1|revisió|revisions}}',
'importnopages' => 'No hi ha cap pàgina per importar.',
'importfailed' => 'La importació ha fallat: $1',
'importunknownsource' => "No es reconeix el tipus de la font d'importació",
'importcantopen' => "No ha estat possible d'obrir el fitxer a importar",
'importbadinterwiki' => "Enllaç d'interwiki incorrecte",
'importnotext' => 'Buit o sense text',
'importsuccess' => "S'ha acabat d'importar.",
'importhistoryconflict' => "Hi ha un conflicte de versions en l'historial (la pàgina podria haver sigut importada abans)",
'importnosources' => "No s'ha definit cap font d'origen interwiki i s'ha inhabilitat la càrrega directa d'una còpia de l'historial",
'importnofile' => "No s'ha pujat cap fitxer d'importació.",
'importuploaderrorsize' => "La càrrega del fitxer d'importació ha fallat. El fitxer és més gran que la mida de càrrega permesa.",
'importuploaderrorpartial' => "La càrrega del fitxer d'importació ha fallat. El fitxer s'ha penjat només parcialment.",
'importuploaderrortemp' => "La càrrega del fitxer d'importació ha fallat. Manca una carpeta temporal.",
'import-parse-failure' => "error a en importar l'XML",
'import-noarticle' => 'No hi ha cap pàgina per importar!',
'import-nonewrevisions' => "Totes les revisions s'havien importat abans.",
'xml-error-string' => '$1 a la línia $2, columna $3 (byte $4): $5',
'import-upload' => 'Carrega dades XML',
'import-token-mismatch' => 'Pèrdua de dades de sessió. Torneu-ho a intentar.',
'import-invalid-interwiki' => 'No es pot importar des del wiki especificat.',
# Import log
'importlogpage' => "Registre d'importació",
'importlogpagetext' => "Importacions administratives de pàgines amb l'historial des d'altres wikis.",
'import-logentry-upload' => "s'ha importat [[$1]] per càrrega de fitxers",
'import-logentry-upload-detail' => '$1 {{PLURAL:$1|revisió|revisions}}',
'import-logentry-interwiki' => "s'ha importat $1 via interwiki",
'import-logentry-interwiki-detail' => '$1 {{PLURAL:$1|revisió|revisions}} de $2',
# Tooltip help for the actions
'tooltip-pt-userpage' => "La vostra pàgina d'usuari",
'tooltip-pt-anonuserpage' => "La pàgina d'usuari per la ip que utilitzeu",
'tooltip-pt-mytalk' => 'La vostra pàgina de discussió.',
'tooltip-pt-anontalk' => 'Discussió sobre les edicions per aquesta adreça ip.',
'tooltip-pt-preferences' => 'Les vostres preferències.',
'tooltip-pt-watchlist' => 'La llista de pàgines de les que estau vigilant els canvis.',
'tooltip-pt-mycontris' => 'Llista de les vostres contribucions.',
'tooltip-pt-login' => 'Us animem a registrar-vos, però no és obligatori.',
'tooltip-pt-anonlogin' => 'Us animem a registrar-vos, però no és obligatori.',
'tooltip-pt-logout' => "Finalitza la sessió d'usuari",
'tooltip-ca-talk' => "Discussió sobre el contingut d'aquesta pàgina.",
'tooltip-ca-edit' => 'Podeu modificar aquesta pàgina. Si us plau, previsualitzeu-la abans de desar.',
'tooltip-ca-addsection' => 'Comença una nova secció',
'tooltip-ca-viewsource' => 'Aquesta pàgina està protegida. Podeu veure el seu codi font.',
'tooltip-ca-history' => "Versions antigues d'aquesta pàgina.",
'tooltip-ca-protect' => 'Protegeix aquesta pàgina.',
'tooltip-ca-unprotect' => 'Desprotegeix la pàgina',
'tooltip-ca-delete' => 'Elimina aquesta pàgina',
'tooltip-ca-undelete' => 'Restaura les edicions fetes a aquesta pàgina abans de que fos esborrada.',
'tooltip-ca-move' => 'Reanomena aquesta pàgina',
'tooltip-ca-watch' => 'Afegiu aquesta pàgina a la vostra llista de seguiment.',
'tooltip-ca-unwatch' => 'Suprimiu aquesta pàgina de la vostra llista de seguiment',
'tooltip-search' => 'Cerca en el projecte {{SITENAME}}',
'tooltip-search-go' => 'Vés a una pàgina amb aquest nom exacte si existeix',
'tooltip-search-fulltext' => 'Cerca a les pàgines aquest text',
'tooltip-p-logo' => 'Pàgina principal',
'tooltip-n-mainpage' => 'Visiteu la pàgina principal.',
'tooltip-n-mainpage-description' => 'Vegeu la pàgina principal',
'tooltip-n-portal' => 'Sobre el projecte, què podeu fer, on podeu trobar coses.',
'tooltip-n-currentevents' => "Per trobar informació general sobre l'actualitat.",
'tooltip-n-recentchanges' => 'La llista de canvis recents a la wiki.',
'tooltip-n-randompage' => 'Vés a una pàgina aleatòria.',
'tooltip-n-help' => 'El lloc per esbrinar.',
'tooltip-t-whatlinkshere' => 'Llista de totes les pàgines viqui que enllacen ací.',
'tooltip-t-recentchangeslinked' => 'Canvis recents a pàgines que enllacen amb aquesta pàgina.',
'tooltip-feed-rss' => "Canal RSS d'aquesta pàgina",
'tooltip-feed-atom' => "Canal Atom d'aquesta pàgina",
'tooltip-t-contributions' => "Vegeu la llista de contribucions d'aquest usuari.",
'tooltip-t-emailuser' => 'Envia un correu en aquest usuari.',
'tooltip-t-upload' => "Càrrega d'imatges o altres fitxers.",
'tooltip-t-specialpages' => 'Llista de totes les pàgines especials.',
'tooltip-t-print' => "Versió per a impressió d'aquesta pàgina",
'tooltip-t-permalink' => 'Enllaç permanent a aquesta versió de la pàgina',
'tooltip-ca-nstab-main' => 'Vegeu el contingut de la pàgina.',
'tooltip-ca-nstab-user' => "Vegeu la pàgina de l'usuari.",
'tooltip-ca-nstab-media' => "Vegeu la pàgina de l'element multimèdia",
'tooltip-ca-nstab-special' => 'Aquesta és una pàgina especial, no podeu modificar-la',
'tooltip-ca-nstab-project' => 'Vegeu la pàgina del projecte',
'tooltip-ca-nstab-image' => 'Visualitza la pàgina del fitxer',
'tooltip-ca-nstab-mediawiki' => 'Vegeu el missatge de sistema',
'tooltip-ca-nstab-template' => 'Vegeu la plantilla',
'tooltip-ca-nstab-help' => "Vegeu la pàgina d'ajuda",
'tooltip-ca-nstab-category' => 'Vegeu la pàgina de la categoria',
'tooltip-minoredit' => 'Marca-ho com una modificació menor',
'tooltip-save' => 'Desa els vostres canvis',
'tooltip-preview' => 'Reviseu els vostres canvis, feu-ho abans de desar res!',
'tooltip-diff' => 'Mostra quins canvis heu fet al text',
'tooltip-compareselectedversions' => "Vegeu les diferències entre les dues versions seleccionades d'aquesta pàgina.",
'tooltip-watch' => 'Afegiu aquesta pàgina a la vostra llista de seguiment',
'tooltip-recreate' => 'Recrea la pàgina malgrat hagi estat suprimida',
'tooltip-upload' => 'Inicia la càrrega',
'tooltip-rollback' => "«Rollback» reverteix les edicions del darrer contribuïdor d'aquesta pàgina en un clic.",
'tooltip-undo' => '«Desfés» reverteix aquesta modificació i obre un formulari de previsualització.
Permet afegir un motiu al resum.',
# Stylesheets
'common.css' => '/* Editeu aquest fitxer per personalitzar totes les aparences per al lloc sencer */',
'monobook.css' => "/* Editeu aquest fitxer per personalitzar l'aparença del monobook per a tot el lloc sencer */",
# Scripts
'common.js' => "/* Es carregarà per a tots els usuaris, i per a qualsevol pàgina, el codi JavaScript que hi haja després d'aquesta línia. */",
# Metadata
'nodublincore' => "S'han inhabilitat les metadades RDF de Dublin Core del servidor.",
'nocreativecommons' => "S'han inhabilitat les metadades RDF de Creative Commons del servidor.",
'notacceptable' => 'El servidor wiki no pot oferir dades en un format que el client no pot llegir.',
# Attribution
'anonymous' => 'Usuari{{PLURAL:$1| anònim|s anònims}} del projecte {{SITENAME}}',
'siteuser' => 'Usuari $1 del projecte {{SITENAME}}',
'anonuser' => '$1, usuari anònim de {{SITENAME}}',
'lastmodifiedatby' => 'Va modificar-se la pàgina per darrera vegada el $2, $1 per $3.',
'othercontribs' => 'Basat en les contribucions de $1.',
'others' => 'altres',
'siteusers' => 'Usuari{{PLURAL:$2||s}} $1 de {{SITENAME}}',
'anonusers' => '$1, {{PLURAL:$2|usuari anònim|usuaris anònims}} de {{SITENAME}}',
'creditspage' => 'Crèdits de la pàgina',
'nocredits' => 'No hi ha títols disponibles per aquesta pàgina.',
# Spam protection
'spamprotectiontitle' => 'Filtre de protecció de brossa',
'spamprotectiontext' => 'La pàgina que volíeu desar va ser blocada pel filtre de brossa.
Això deu ser degut per un enllaç a un lloc extern inclòs a la llista negra.',
'spamprotectionmatch' => 'El següent text és el que va disparar el nostre filtre de brossa: $1',
'spambot_username' => 'Neteja de brossa del MediaWiki',
'spam_reverting' => 'Es reverteix a la darrera versió que no conté enllaços a $1',
'spam_blanking' => "Totes les revisions contenien enllaços $1, s'està deixant en blanc",
# Info page
'infosubtitle' => 'Informació de la pàgina',
'numedits' => "Nombre d'edicions (pàgina): $1",
'numtalkedits' => "Nombre d'edicions (pàgina de discussió): $1",
'numwatchers' => "Nombre d'usuaris que l'estan vigilant: $1",
'numauthors' => "Nombre d'autors (pàgina): $1",
'numtalkauthors' => "Nombre d'autors (pàgina de discussió): $1",
# Skin names
'skinname-standard' => 'Clàssic',
'skinname-nostalgia' => 'Nostàlgia',
'skinname-cologneblue' => 'Colònia blava',
# Math options
'mw_math_png' => 'Produeix sempre PNG',
'mw_math_simple' => 'HTML si és molt simple, si no PNG',
'mw_math_html' => 'HTML si és possible, si no PNG',
'mw_math_source' => 'Deixa com a TeX (per a navegadors de text)',
'mw_math_modern' => 'Recomanat per a navegadors moderns',
'mw_math_mathml' => 'MathML si és possible (experimental)',
# Math errors
'math_failure' => "No s'ha pogut entendre",
'math_unknown_error' => 'error desconegut',
'math_unknown_function' => 'funció desconeguda',
'math_lexing_error' => 'error de lèxic',
'math_syntax_error' => 'error de sintaxi',
'math_image_error' => "Hi ha hagut una errada en la conversió cap el format PNG; verifiqueu la instaŀlació de ''latex'', ''dvips'', ''gs'' i ''convert''.",
'math_bad_tmpdir' => 'No ha estat possible crear el directori temporal de math o escriure-hi dins.',
'math_bad_output' => "No ha estat possible crear el directori d'eixida de math o escriure-hi dins.",
'math_notexvc' => "No s'ha trobat el fitxer executable ''texvc''; si us plau, vegeu math/README per a configurar-lo.",
# Patrolling
'markaspatrolleddiff' => 'Marca com a supervisat',
'markaspatrolledtext' => 'Marca la pàgina com a supervisada',
'markedaspatrolled' => 'Marca com a supervisat',
'markedaspatrolledtext' => 'La revisió seleccionada de [[:$1]] ha estat marcada com a patrullada.',
'rcpatroldisabled' => "S'ha inhabilitat la supervisió dels canvis recents",
'rcpatroldisabledtext' => 'La funció de supervisió de canvis recents està actualment inhabilitada.',
'markedaspatrollederror' => 'No es pot marcar com a supervisat',
'markedaspatrollederrortext' => 'Cal que especifiqueu una versió per a marcar-la com a supervisada.',
'markedaspatrollederror-noautopatrol' => 'No podeu marcar les vostres pròpies modificacions com a supervisades.',
# Patrol log
'patrol-log-page' => 'Registre de supervisió',
'patrol-log-header' => 'Això és un registre de les revisions patrullades.',
'patrol-log-line' => 'ha marcat $3 la $1 de «$2» com a supervisada',
'patrol-log-auto' => '(automàticament)',
'patrol-log-diff' => 'revisió $1',
'log-show-hide-patrol' => '$1 el registre de patrulla',
# Image deletion
'deletedrevision' => "S'ha eliminat la revisió antiga $1.",
'filedeleteerror-short' => "S'ha produït un error en suprimir el fitxer: $1",
'filedeleteerror-long' => "S'han produït errors en suprimir el fitxer:
$1",
'filedelete-missing' => 'No es pot suprimir el fitxer «$1», perquè no existeix.',
'filedelete-old-unregistered' => 'La revisió de fitxer especificada «$1» no es troba a la base de dades.',
'filedelete-current-unregistered' => 'El fitxer especificat «$1» no es troba a la base de dades.',
'filedelete-archive-read-only' => "El directori d'arxiu «$1» no té permisos d'escriptura per al servidor web.",
# Browsing diffs
'previousdiff' => "← Vés a l'edició anterior",
'nextdiff' => "Vés a l'edició següent →",
# Media information
'mediawarning' => "'''Advertència''': Aquest fitxer podria contenir codi maliciós.
Si l'executeu, podeu comprometre la seguretat del vostre sistema.",
'imagemaxsize' => "Límit de mida d'imatges:<br />''(per a pàgines de descripció de fitxers)''",
'thumbsize' => 'Mida de la miniatura:',
'widthheightpage' => '$1×$2, $3 {{PLURAL:$3|pàgina|pàgines}}',
'file-info' => '(mida: $1, tipus MIME: $2)',
'file-info-size' => '($1 × $2 píxels, mida del fitxer: $3, tipus MIME: $4)',
'file-nohires' => '<small>No hi ha cap versió amb una resolució més gran.</small>',
'svg-long-desc' => '(fitxer SVG, nominalment $1 × $2 píxels, mida del fitxer: $3)',
'show-big-image' => 'Imatge en màxima resolució',
'show-big-image-thumb' => "<small>Mida d'aquesta previsualització: $1 × $2 píxels</small>",
'file-info-gif-looped' => 'embuclat',
'file-info-gif-frames' => '$1 {{PLURAL:$1|fotograma|fotogrames}}',
# Special:NewFiles
'newimages' => 'Galeria de nous fitxers',
'imagelisttext' => "Llista {{PLURAL:$1|d'un sol fitxer|de '''$1''' fitxers ordenats $2}}.",
'newimages-summary' => 'Aquesta pàgina especial mostra els darrers fitxers carregats.',
'newimages-legend' => 'Nom del fitxer',
'newimages-label' => "Nom de fitxer (o part d'ell):",
'showhidebots' => '($1 bots)',
'noimages' => 'Res per veure.',
'ilsubmit' => 'Cerca',
'bydate' => 'per data',
'sp-newimages-showfrom' => 'Mostra fitxers nous des del $1 a les $2',
# Video information, used by Language::formatTimePeriod() to format lengths in the above messages
'minutes-abbrev' => 'min',
# Bad image list
'bad_image_list' => "El format ha de ser el següent:
Només els elements de llista (les línies que comencin amb un *) es prenen en consideració. El primer enllaç de cada línia ha de ser el d'un fitxer dolent.
La resta d'enllaços de la línia són les excepcions, és a dir, les pàgines on s'hi pot encabir el fitxer.",
# Metadata
'metadata' => 'Metadades',
'metadata-help' => "Aquest fitxer conté informació addicional, probablement afegida per la càmera digital o l'escàner utilitzat per a crear-lo o digitalitzar-lo. Si s'ha modificat posteriorment, alguns detalls poden no reflectir les dades reals del fitxer modificat.",
'metadata-expand' => 'Mostra els detalls estesos',
'metadata-collapse' => 'Amaga els detalls estesos',
'metadata-fields' => 'Els camps de metadades EXIF llistats en aquest missatge es mostraran en la pàgina de descripció de la imatge fins i tot quan la taula estigui plegada. La resta estaran ocults però es podran desplegar.
* make
* model
* datetimeoriginal
* exposuretime
* fnumber
* isospeedratings
* focallength',
# EXIF tags
'exif-imagewidth' => 'Amplada',
'exif-imagelength' => 'Alçada',
'exif-bitspersample' => 'Octets per component',
'exif-compression' => 'Esquema de compressió',
'exif-photometricinterpretation' => 'Composició dels píxels',
'exif-orientation' => 'Orientació',
'exif-samplesperpixel' => 'Nombre de components',
'exif-planarconfiguration' => 'Ordenament de dades',
'exif-ycbcrsubsampling' => 'Proporció de mostreig secundari de Y amb C',
'exif-ycbcrpositioning' => 'Posició YCbCr',
'exif-xresolution' => 'Resolució horitzontal',
'exif-yresolution' => 'Resolució vertical',
'exif-resolutionunit' => 'Unitats de les resolucions X i Y',
'exif-stripoffsets' => 'Ubicació de les dades de la imatge',
'exif-rowsperstrip' => 'Nombre de fileres per franja',
'exif-stripbytecounts' => 'Octets per franja comprimida',
'exif-jpeginterchangeformat' => 'Ancorament del JPEG SOI',
'exif-jpeginterchangeformatlength' => 'Octets de dades JPEG',
'exif-transferfunction' => 'Funció de transferència',
'exif-whitepoint' => 'Cromositat del punt blanc',
'exif-primarychromaticities' => 'Coordenada cromàtica del color primari',
'exif-ycbcrcoefficients' => "Quoficients de la matriu de transformació de l'espai colorimètric",
'exif-referenceblackwhite' => 'Valors de referència negre i blanc',
'exif-datetime' => 'Data i hora de modificació del fitxer',
'exif-imagedescription' => 'Títol de la imatge',
'exif-make' => 'Fabricant de la càmera',
'exif-model' => 'Model de càmera',
'exif-software' => 'Programari utilitzat',
'exif-artist' => 'Autor',
'exif-copyright' => "Titular dels drets d'autor",
'exif-exifversion' => 'Versió Exif',
'exif-flashpixversion' => 'Versió Flashpix admesa',
'exif-colorspace' => 'Espai de color',
'exif-componentsconfiguration' => 'Significat de cada component',
'exif-compressedbitsperpixel' => "Mode de compressió d'imatge",
'exif-pixelydimension' => 'Amplada de la imatge',
'exif-pixelxdimension' => 'Alçada de la imatge',
'exif-makernote' => 'Notes del fabricant',
'exif-usercomment' => "Comentaris de l'usuari",
'exif-relatedsoundfile' => "Fitxer d'àudio relacionat",
'exif-datetimeoriginal' => 'Dia i hora de generació de les dades',
'exif-datetimedigitized' => 'Dia i hora de digitalització',
'exif-subsectime' => 'Data i hora, fraccions de segon',
'exif-subsectimeoriginal' => 'Data i hora de creació, fraccions de segon',
'exif-subsectimedigitized' => 'Data i hora de digitalització, fraccions de segon',
'exif-exposuretime' => "Temps d'exposició",
'exif-exposuretime-format' => '$1 s ($2)',
'exif-fnumber' => 'Obertura del diafragma',
'exif-exposureprogram' => "Programa d'exposició",
'exif-spectralsensitivity' => 'Sensibilitat espectral',
'exif-isospeedratings' => 'Sensibilitat ISO',
'exif-oecf' => 'Factor de conversió optoelectrònic',
'exif-shutterspeedvalue' => "Temps d'exposició",
'exif-aperturevalue' => 'Obertura',
'exif-brightnessvalue' => 'Brillantor',
'exif-exposurebiasvalue' => "Correcció d'exposició",
'exif-maxaperturevalue' => "Camp d'obertura màxim",
'exif-subjectdistance' => 'Distància del subjecte',
'exif-meteringmode' => 'Mode de mesura',
'exif-lightsource' => 'Font de llum',
'exif-flash' => 'Flaix',
'exif-focallength' => 'Longitud focal de la lent',
'exif-subjectarea' => 'Enquadre del subjecte',
'exif-flashenergy' => 'Energia del flaix',
'exif-spatialfrequencyresponse' => 'Resposta en freqüència espacial',
'exif-focalplanexresolution' => 'Resolució X del pla focal',
'exif-focalplaneyresolution' => 'Resolució Y del pla focal',
'exif-focalplaneresolutionunit' => 'Unitat de resolució del pla focal',
'exif-subjectlocation' => 'Posició del subjecte',
'exif-exposureindex' => "Índex d'exposició",
'exif-sensingmethod' => 'Mètode de detecció',
'exif-filesource' => 'Font del fitxer',
'exif-scenetype' => "Tipus d'escena",
'exif-cfapattern' => 'Patró CFA',
'exif-customrendered' => "Processament d'imatge personalitzat",
'exif-exposuremode' => "Mode d'exposició",
'exif-whitebalance' => 'Balanç de blancs',
'exif-digitalzoomratio' => "Escala d'ampliació digital (zoom)",
'exif-focallengthin35mmfilm' => 'Distància focal per a peŀlícula de 35 mm',
'exif-scenecapturetype' => "Tipus de captura d'escena",
'exif-gaincontrol' => "Control d'escena",
'exif-contrast' => 'Taädam',
'exif-saturation' => 'Saturació',
'exif-sharpness' => 'Nitidesa',
'exif-devicesettingdescription' => 'Descripció dels paràmetres del dispositiu',
'exif-subjectdistancerange' => 'Escala de distància del subjecte',
'exif-imageuniqueid' => 'Identificador únic de la imatge',
'exif-gpsversionid' => 'Versió del tag GPS',
'exif-gpslatituderef' => 'Latitud nord o sud',
'exif-gpslatitude' => 'Latitud',
'exif-gpslongituderef' => 'Longitud est o oest',
'exif-gpslongitude' => 'Longitud',
'exif-gpsaltituderef' => "Referència d'altitud",
'exif-gpsaltitude' => 'Altitud',
'exif-gpstimestamp' => 'Hora GPS (rellotge atòmic)',
'exif-gpssatellites' => 'Satèŀlits utilitzats en la mesura',
'exif-gpsstatus' => 'Estat del receptor',
'exif-gpsmeasuremode' => 'Mode de mesura',
'exif-gpsdop' => 'Precisió de la mesura',
'exif-gpsspeedref' => 'Unitats de velocitat',
'exif-gpsspeed' => 'Velocitat del receptor GPS',
'exif-gpstrackref' => 'Referència per la direcció del moviment',
'exif-gpstrack' => 'Direcció del moviment',
'exif-gpsimgdirectionref' => 'Referència per la direcció de la imatge',
'exif-gpsimgdirection' => 'Direcció de la imatge',
'exif-gpsmapdatum' => "S'han utilitzat dades d'informes geodètics",
'exif-gpsdestlatituderef' => 'Referència per a la latitud de la destinació',
'exif-gpsdestlatitude' => 'Latitud de la destinació',
'exif-gpsdestlongituderef' => 'Referència per a la longitud de la destinació',
'exif-gpsdestlongitude' => 'Longitud de la destinació',
'exif-gpsdestbearingref' => "Referència per a l'orientació de la destinació",
'exif-gpsdestbearing' => 'Orientació de la destinació',
'exif-gpsdestdistanceref' => 'Referència de la distància a la destinació',
'exif-gpsdestdistance' => 'Distància a la destinació',
'exif-gpsprocessingmethod' => 'Nom del mètode de processament GPS',
'exif-gpsareainformation' => "Nom de l'àrea GPS",
'exif-gpsdatestamp' => 'Data GPS',
'exif-gpsdifferential' => 'Correcció diferencial GPS',
# EXIF attributes
'exif-compression-1' => 'Sense compressió',
'exif-unknowndate' => 'Data desconeguda',
'exif-orientation-1' => 'Normal',
'exif-orientation-2' => 'Invertit horitzontalment',
'exif-orientation-3' => 'Girat 180°',
'exif-orientation-4' => 'Invertit verticalment',
'exif-orientation-5' => 'Rotat 90° en sentit antihorari i invertit verticalment',
'exif-orientation-6' => 'Rotat 90° en sentit horari',
'exif-orientation-7' => 'Rotat 90° en sentit horari i invertit verticalment',
'exif-orientation-8' => 'Rotat 90° en sentit antihorari',
'exif-planarconfiguration-1' => 'a blocs densos (chunky)',
'exif-planarconfiguration-2' => 'format pla',
'exif-xyresolution-i' => '$1 ppp',
'exif-xyresolution-c' => '$1 ppc',
'exif-componentsconfiguration-0' => 'no existeix',
'exif-exposureprogram-0' => 'No definit',
'exif-exposureprogram-1' => 'Manual',
'exif-exposureprogram-2' => 'Programa normal',
'exif-exposureprogram-3' => "amb prioritat d'obertura",
'exif-exposureprogram-4' => "amb prioritat de velocitat d'obturació",
'exif-exposureprogram-5' => 'Programa creatiu (preferència a la profunditat de camp)',
'exif-exposureprogram-6' => "Programa acció (preferència a la velocitat d'obturació)",
'exif-exposureprogram-7' => 'Mode retrat (per primers plans amb fons desenfocat)',
'exif-exposureprogram-8' => 'Mode paisatge (per fotos de paisatges amb el fons enfocat)',
'exif-subjectdistance-value' => '$1 metres',
'exif-meteringmode-0' => 'Desconegut',
'exif-meteringmode-1' => 'Mitjana',
'exif-meteringmode-2' => 'Mesura central mitjana',
'exif-meteringmode-3' => 'Puntual',
'exif-meteringmode-4' => 'Multipuntual',
'exif-meteringmode-5' => 'Patró',
'exif-meteringmode-6' => 'Parcial',
'exif-meteringmode-255' => 'Altres',
'exif-lightsource-0' => 'Desconegut',
'exif-lightsource-1' => 'Llum de dia',
'exif-lightsource-2' => 'Fluorescent',
'exif-lightsource-3' => 'Tungstè (llum incandescent)',
'exif-lightsource-4' => 'Flaix',
'exif-lightsource-9' => 'Clar',
'exif-lightsource-10' => 'Ennuvolat',
'exif-lightsource-11' => 'Ombra',
'exif-lightsource-12' => 'Fluorescent de llum del dia (D 5700 – 7100K)',
'exif-lightsource-13' => 'Fluorescent de llum blanca (N 4600 – 5400K)',
'exif-lightsource-14' => 'Fluorescent blanc fred (W 3900 – 4500K)',
'exif-lightsource-15' => 'Fluorescent blanc (WW 3200 – 3700K)',
'exif-lightsource-17' => 'Llum estàndard A',
'exif-lightsource-18' => 'Llum estàndard B',
'exif-lightsource-19' => 'Llum estàndard C',
'exif-lightsource-24' => "Bombeta de tungstè d'estudi ISO",
'exif-lightsource-255' => 'Altre font de llum',
# Flash modes
'exif-flash-fired-0' => "No s'ha disparat el flaix",
'exif-flash-fired-1' => 'Flaix disparat',
'exif-flash-return-0' => 'no hi ha funció de detecció del retorn de la llum estroboscòpica',
'exif-flash-return-2' => "no s'ha detectat retorn de llum estroboscòpica",
'exif-flash-return-3' => "s'ha detectat retorn de llum estroboscòpica",
'exif-flash-mode-1' => 'disparada de flaix obligatòria',
'exif-flash-mode-2' => 'tret de flash suprimit',
'exif-flash-mode-3' => 'mode automàtic',
'exif-flash-function-1' => 'Sense funció de flaix',
'exif-flash-redeye-1' => "reducció d'ulls vermells",
'exif-focalplaneresolutionunit-2' => 'polzades',
'exif-sensingmethod-1' => 'Indefinit',
'exif-sensingmethod-2' => "Sensor d'àrea de color a un xip",
'exif-sensingmethod-3' => "Sensor d'àrea de color a dos xips",
'exif-sensingmethod-4' => "Sensor d'àrea de color a tres xips",
'exif-sensingmethod-5' => "Sensor d'àrea de color per seqüències",
'exif-sensingmethod-7' => 'Sensor trilineal',
'exif-sensingmethod-8' => 'Sensor linear de color per seqüències',
'exif-scenetype-1' => 'Una imatge fotografiada directament',
'exif-customrendered-0' => 'Procés normal',
'exif-customrendered-1' => 'Processament personalitzat',
'exif-exposuremode-0' => 'Exposició automàtica',
'exif-exposuremode-1' => 'Exposició manual',
'exif-exposuremode-2' => 'Bracketting automàtic',
'exif-whitebalance-0' => 'Balanç automàtic de blancs',
'exif-whitebalance-1' => 'Balanç manual de blancs',
'exif-scenecapturetype-0' => 'Estàndard',
'exif-scenecapturetype-1' => 'Paisatge',
'exif-scenecapturetype-2' => 'Retrat',
'exif-scenecapturetype-3' => 'Escena nocturna',
'exif-gaincontrol-0' => 'Cap',
'exif-gaincontrol-1' => 'Baix augment del guany',
'exif-gaincontrol-2' => 'Fort augment del guany',
'exif-gaincontrol-3' => 'Baixa reducció del guany',
'exif-gaincontrol-4' => 'Fort augment del guany',
'exif-contrast-0' => 'Normal',
'exif-contrast-1' => 'Suau',
'exif-contrast-2' => 'Fort',
'exif-saturation-0' => 'Normal',
'exif-saturation-1' => 'Baixa saturació',
'exif-saturation-2' => 'Alta saturació',
'exif-sharpness-0' => 'Normal',
'exif-sharpness-1' => 'Suau',
'exif-sharpness-2' => 'Fort',
'exif-subjectdistancerange-0' => 'Desconeguda',
'exif-subjectdistancerange-1' => 'Macro',
'exif-subjectdistancerange-2' => 'Subjecte a prop',
'exif-subjectdistancerange-3' => 'Subjecte lluny',
# Pseudotags used for GPSLatitudeRef and GPSDestLatitudeRef
'exif-gpslatitude-n' => 'Latitud nord',
'exif-gpslatitude-s' => 'Latitud sud',
# Pseudotags used for GPSLongitudeRef and GPSDestLongitudeRef
'exif-gpslongitude-e' => 'Longitud est',
'exif-gpslongitude-w' => 'Longitud oest',
'exif-gpsstatus-a' => 'Mesura en curs',
'exif-gpsstatus-v' => 'Interoperabilitat de mesura',
'exif-gpsmeasuremode-2' => 'Mesura bidimensional',
'exif-gpsmeasuremode-3' => 'Mesura tridimensional',
# Pseudotags used for GPSSpeedRef
'exif-gpsspeed-k' => 'Quilòmetres per hora',
'exif-gpsspeed-m' => 'Milles per hora',
'exif-gpsspeed-n' => 'Nusos',
# Pseudotags used for GPSTrackRef, GPSImgDirectionRef and GPSDestBearingRef
'exif-gpsdirection-t' => 'Direcció real',
'exif-gpsdirection-m' => 'Direcció magnètica',
# External editor support
'edit-externally' => 'Edita aquest fitxer fent servir una aplicació externa',
'edit-externally-help' => '(Vegeu les [http://www.mediawiki.org/wiki/Manual:External_editors instruccions de configuració] per a més informació)',
# 'all' in various places, this might be different for inflected languages
'recentchangesall' => 'tots',
'imagelistall' => 'totes',
'watchlistall2' => 'totes',
'namespacesall' => 'tots',
'monthsall' => 'tots',
'limitall' => 'tots',
# E-mail address confirmation
'confirmemail' => "Confirma l'adreça de correu electrònic",
'confirmemail_noemail' => "No heu introduït una direcció vàlida de correu electrònic en les vostres [[Special:Preferences|preferències d'usuari]].",
'confirmemail_text' => "El projecte {{SITENAME}} necessita que valideu la vostra adreça de correu
electrònic per a poder gaudir d'algunes facilitats. Cliqueu el botó inferior
per a enviar un codi de confirmació a la vostra adreça. Seguiu l'enllaç que
hi haurà al missatge enviat per a confirmar que el vostre correu és correcte.",
'confirmemail_pending' => "Ja s'ha enviat el vostre codi de confirmació per correu electrònic; si
fa poc hi heu creat el vostre compte, abans de mirar de demanar un nou
codi, primer hauríeu d'esperar alguns minuts per a rebre'l.",
'confirmemail_send' => 'Envia per correu electrònic un codi de confirmació',
'confirmemail_sent' => "S'ha enviat un missatge de confirmació.",
'confirmemail_oncreate' => "S'ha enviat un codi de confirmació a la vostra adreça de correu electrònic.
No es requereix aquest codi per a autenticar-s'hi, però vos caldrà proporcionar-lo
abans d'activar qualsevol funcionalitat del wiki basada en missatges
de correu electrònic.",
'confirmemail_sendfailed' => "{{SITENAME}} no ha pogut enviar el vostre missatge de confirmació.
Comproveu que l'adreça no tingui caràcters no vàlids.
El programari de correu retornà el següent missatge: $1",
'confirmemail_invalid' => 'El codi de confirmació no és vàlid. Aquest podria haver vençut.',
'confirmemail_needlogin' => 'Necessiteu $1 per a confirmar la vostra adreça electrònica.',
'confirmemail_success' => "S'ha confirmat la vostra adreça electrònica. Ara podeu iniciar una sessió i gaudir del wiki.",
'confirmemail_loggedin' => "Ja s'ha confirmat la vostra adreça electrònica.",
'confirmemail_error' => 'Quelcom ha fallat en desar la vostra confirmació.',
'confirmemail_subject' => "Confirmació de l'adreça electrònica del projecte {{SITENAME}}",
'confirmemail_body' => "Algú, segurament vós, ha registrat el compte «$2» al projecte {{SITENAME}}
amb aquesta adreça electrònica des de l'adreça IP $1.
Per a confirmar que aquesta adreça electrònica us pertany realment
i així activar les opcions de correu del programari, seguiu aquest enllaç:
$3
Si *no* heu estat qui ho ha fet, seguiu aquest altre enllaç per a canceŀlar la confirmació demanada:
$5
Aquest codi de confirmació caducarà a $4.",
'confirmemail_invalidated' => "Confirmació d'adreça electrònica canceŀlada",
'invalidateemail' => "Canceŀlació d'adreça electrònica",
# Scary transclusion
'scarytranscludedisabled' => "[S'ha inhabilitat la transclusió interwiki]",
'scarytranscludefailed' => '[Ha fallat la recuperació de la plantilla per a $1]',
'scarytranscludetoolong' => "[L'URL és massa llarg]",
# Trackbacks
'trackbackbox' => "Referències d'aquesta pàgina:<br />
$1",
'trackbackremove' => '([$1 eliminada])',
'trackbacklink' => 'Referència',
'trackbackdeleteok' => "La referència s'ha eliminat amb èxit.",
# Delete conflict
'deletedwhileediting' => "'''Avís''': S'ha eliminat aquesta pàgina després que haguéssiu començat a modificar-la!",
'confirmrecreate' => "L'usuari [[User:$1|$1]] ([[User talk:$1|discussió]]) va eliminar aquesta pàgina que havíeu creat donant-ne el següent motiu:
: ''$2''
Confirmeu que realment voleu tornar-la a crear.",
'recreate' => 'Torna a crear',
# action=purge
'confirm_purge_button' => 'OK',
'confirm-purge-top' => "Voleu buidar la memòria cau d'aquesta pàgina?",
'confirm-purge-bottom' => "Purgar una pàgina força que hi aparegui la versió més actual i n'esborra la memòria cau.",
# Multipage image navigation
'imgmultipageprev' => '← pàgina anterior',
'imgmultipagenext' => 'pàgina següent →',
'imgmultigo' => 'Vés-hi!',
'imgmultigoto' => 'Vés a la pàgina $1',
# Table pager
'ascending_abbrev' => 'asc',
'descending_abbrev' => 'desc',
'table_pager_next' => 'Pàgina següent',
'table_pager_prev' => 'Pàgina anterior',
'table_pager_first' => 'Primera pàgina',
'table_pager_last' => 'Darrera pàgina',
'table_pager_limit' => 'Mostra $1 elements per pàgina',
'table_pager_limit_submit' => 'Vés-hi',
'table_pager_empty' => 'Sense resultats',
# Auto-summaries
'autosumm-blank' => 'Pàgina blanquejada',
'autosumm-replace' => 'Contingut canviat per «$1».',
'autoredircomment' => 'Redirecció a [[$1]]',
'autosumm-new' => 'Es crea la pàgina amb «$1».',
# Live preview
'livepreview-loading' => "S'està carregant…",
'livepreview-ready' => "S'està carregant… Preparat!",
'livepreview-failed' => 'Ha fallat la vista ràpida!
Proveu-ho amb la previsualització normal.',
'livepreview-error' => 'La connexió no ha estat possible: $1 «$2»
Proveu-ho amb la previsualització normal.',
# Friendlier slave lag warnings
'lag-warn-normal' => 'Els canvis més nous de $1 {{PLURAL:$1|segon|segons}} podrien no mostrar-se a la llista.',
'lag-warn-high' => 'A causa de la lenta resposta del servidor de base de dades, els canvis més nous de $1 {{PLURAL:$1|segon|segons}} potser no es mostren aquesta llista.',
# Watchlist editor
'watchlistedit-numitems' => 'La vostra llista de seguiment conté {{PLURAL:$1|1 títol|$1 títols}}, excloent-ne les pàgines de discussió.',
'watchlistedit-noitems' => 'La vostra llista de seguiment no té cap títol.',
'watchlistedit-normal-title' => 'Edita la llista de seguiment',
'watchlistedit-normal-legend' => 'Esborra els títols de la llista de seguiment',
'watchlistedit-normal-explain' => 'Els títols de les pàgines que estan en la vostra llista de seguiment es mostren a continuació.
Per a eliminar algun element, marqueu el quadre del seu costat, i feu clic al botó «{{int:Watchlistedit-normal-submit}}». També podeu [[Special:Watchlist/raw|editar-ne la llista en text pla]].',
'watchlistedit-normal-submit' => 'Elimina entrades',
'watchlistedit-normal-done' => "{{PLURAL:$1|1 títol s'ha|$1 títols s'han}} eliminat de la vostra llista de seguiment:",
'watchlistedit-raw-title' => 'Edita la llista de seguiment crua',
'watchlistedit-raw-legend' => 'Edita la llista de seguiment crua',
'watchlistedit-raw-explain' => "Els títols de la vostra llista de seguiment es mostren a continuació, i poden modificar-se afegint-los o suprimint-los de la llista;
un títol per línia.
En acabar, feu clic a «{{int:Watchlistedit-raw-submit}}».
També podeu [[Special:Watchlist/edit|utilitzar l'editor estàndard]].",
'watchlistedit-raw-titles' => 'Títols:',
'watchlistedit-raw-submit' => 'Actualitza la llista de seguiment',
'watchlistedit-raw-done' => "S'ha actualitzat la vostra llista de seguiment.",
'watchlistedit-raw-added' => "{{PLURAL:$1|1 títol s'ha|$1 títols s'han}} afegit:",
'watchlistedit-raw-removed' => "{{PLURAL:$1|1 títol s'ha|$1 títols s'han}} eliminat:",
# Watchlist editing tools
'watchlisttools-view' => 'Visualitza els canvis rellevants',
'watchlisttools-edit' => 'Visualitza i edita la llista de seguiment',
'watchlisttools-raw' => 'Edita la llista de seguiment sense format',
# Core parser functions
'unknown_extension_tag' => "Etiqueta d'extensió desconeguda «$1»",
'duplicate-defaultsort' => 'Atenció: La clau d\'ordenació per defecte "$2" invalida l\'anterior clau "$1".',
# Special:Version
'version' => 'Versió',
'version-extensions' => 'Extensions instaŀlades',
'version-specialpages' => 'Pàgines especials',
'version-parserhooks' => "Extensions de l'analitzador",
'version-variables' => 'Variables',
'version-other' => 'Altres',
'version-mediahandlers' => 'Connectors multimèdia',
'version-hooks' => 'Lligams',
'version-extension-functions' => "Funcions d'extensió",
'version-parser-extensiontags' => "Etiquetes d'extensió de l'analitzador",
'version-parser-function-hooks' => "Lligams funcionals de l'analitzador",
'version-skin-extension-functions' => "Funcions d'extensió per l'aparença (skin)",
'version-hook-name' => 'Nom del lligam',
'version-hook-subscribedby' => 'Subscrit per',
'version-version' => '(Versió $1)',
'version-license' => 'Llicència',
'version-software' => 'Programari instaŀlat',
'version-software-product' => 'Producte',
'version-software-version' => 'Versió',
# Special:FilePath
'filepath' => 'Camí del fitxer',
'filepath-page' => 'Fitxer:',
'filepath-submit' => 'Vés-hi',
'filepath-summary' => "Aquesta pàgina especial retorna un camí complet d'un fitxer.
Les imatges es mostren en plena resolució; altres tipus de fitxer s'inicien directament amb el seu programa associat.
Introduïu el nom del fitxer sense el prefix «{{ns:file}}:»",
# Special:FileDuplicateSearch
'fileduplicatesearch' => 'Cerca fitxers duplicats',
'fileduplicatesearch-summary' => "Cerca fitxers duplicats d'acord amb el seu valor de resum.
Introduïu el nom del fitxer sense el prefix «{{ns:file}}:».",
'fileduplicatesearch-legend' => 'Cerca duplicats',
'fileduplicatesearch-filename' => 'Nom del fitxer:',
'fileduplicatesearch-submit' => 'Cerca',
'fileduplicatesearch-info' => '$1 × $2 píxels<br />Mida del fitxer: $3<br />Tipus MIME: $4',
'fileduplicatesearch-result-1' => 'El fitxer «$1» no té cap duplicació idèntica.',
'fileduplicatesearch-result-n' => 'El fitxer «$1» té {{PLURAL:$2|1 duplicació idèntica|$2 duplicacions idèntiques}}.',
# Special:SpecialPages
'specialpages' => 'Pàgines especials',
'specialpages-note' => '----
* Pàgines especials normals.
* <strong class="mw-specialpagerestricted">Pàgines especials restringides.</strong>',
'specialpages-group-maintenance' => 'Informes de manteniment',
'specialpages-group-other' => 'Altres pàgines especials',
'specialpages-group-login' => 'Inici de sessió / Registre',
'specialpages-group-changes' => 'Canvis recents i registres',
'specialpages-group-media' => 'Informes multimèdia i càrregues',
'specialpages-group-users' => 'Usuaris i drets',
'specialpages-group-highuse' => "Pàgines d'alt ús",
'specialpages-group-pages' => 'Llistes de pàgines',
'specialpages-group-pagetools' => "Pàgines d'eines",
'specialpages-group-wiki' => 'Eines i dades del wiki',
'specialpages-group-redirects' => 'Pàgines especials de redirecció',
'specialpages-group-spam' => 'Eines de spam',
# Special:BlankPage
'blankpage' => 'Pàgina en blanc',
'intentionallyblankpage' => 'Pàgina intencionadament en blanc',
# External image whitelist
'external_image_whitelist' => " #Deixeu aquesta línia exactament igual com està<pre>
#Poseu fragments d'expressions regulars (regexps) (només la part entre els //) a sota
#Aquests fragments es correspondran amb les URL d'imatges externes
#Aquelles que hi coincideixin es mostraran com a imatges, les que no es mostraran com a enllaços
#Les línies que començen amb un # es tracten com a comentaris
#S'hi distingeixen majúscules i minúscules
#Poseu tots els fragments regex al damunt d'aquesta línia. Deixeu aquesta línia exactament com està</pre>",
# Special:Tags
'tags' => 'Etiquetes de canvi vàlides',
'tag-filter' => "Filtre d'[[Special:Tags|Etiquetes]]:",
'tag-filter-submit' => 'Filtra',
'tags-title' => 'Etiquetes',
'tags-intro' => 'Aquesta pàgina llista les etiquetes amb les què el programari pot marcar una modificació, i llur significat.',
'tags-tag' => "Nom de l'etiqueta",
'tags-display-header' => 'Aparença de la llista de canvis',
'tags-description-header' => 'Descripció completa del significat',
'tags-hitcount-header' => 'Canvis etiquetats',
'tags-edit' => 'modifica',
'tags-hitcount' => '$1 {{PLURAL:$1|canvi|canvis}}',
# Database error messages
'dberr-header' => 'Aquest wiki té un problema',
'dberr-problems' => 'Ho sentim. Aquest lloc web està experimentant dificultats tècniques.',
'dberr-again' => 'Intenteu esperar uns minuts i tornar a carregar.',
'dberr-info' => '(No es pot contactar amb el servidor de dades: $1)',
'dberr-usegoogle' => 'Podeu intentar fer la cerca via Google mentrestant.',
'dberr-outofdate' => 'Tingueu en compte que la seva indexació del nostre contingut pot no estar actualitzada.',
'dberr-cachederror' => 'A continuació hi ha una còpia emmagatzemada de la pàgina demanada, que pot no estar actualitzada.',
# HTML forms
'htmlform-invalid-input' => 'Hi ha problemes amb alguna de les seves entrades',
'htmlform-select-badoption' => 'El valor que heu especificat no és una opció vàlida.',
'htmlform-int-invalid' => 'El valor que heu especificat no és un nombre enter.',
'htmlform-float-invalid' => 'El valor especificat no és un nombre.',
'htmlform-int-toolow' => 'El valor que heu especifcat està per sota del mínim de $1',
'htmlform-int-toohigh' => 'El valor que heu especificat està per sobre del màxim de $1',
'htmlform-submit' => 'Tramet',
'htmlform-reset' => 'Desfés els canvis',
'htmlform-selectorother-other' => 'Altres',
);
| thewebmind/docs | languages/messages/MessagesCa.php | PHP | gpl-2.0 | 218,763 | [
30522,
1026,
1029,
25718,
1013,
1008,
1008,
13973,
1006,
4937,
7911,
1007,
1008,
1008,
2156,
7696,
4160,
4160,
4160,
1012,
25718,
2005,
4471,
12653,
4297,
2140,
1012,
8192,
1997,
11709,
1008,
2000,
5335,
1037,
5449,
3531,
3942,
8299,
1024,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
namespace Navier_Boats.Engine.Pathfinding
{
public class SearchNode
{
public PathNode Node
{
get;
set;
}
public SearchNode Parent
{
get;
set;
}
public bool InOpenList
{
get;
set;
}
public bool InClosedList
{
get;
set;
}
public bool InFinalPath
{
get;
set;
}
public float DistanceToGoal
{
get;
set;
}
public float DistanceTraveled
{
get;
set;
}
public bool Equals(SearchNode obj)
{
return this.Node.Position.Equals(obj.Node.Position);
}
}
}
| liam-middlebrook/Navier-Boats | Navier-Boats/Navier-Boats/Navier-Boats/Engine/Pathfinding/SearchNode.cs | C# | apache-2.0 | 952 | [
30522,
2478,
2291,
1025,
2478,
2291,
1012,
6407,
1012,
12391,
1025,
2478,
2291,
1012,
11409,
4160,
1025,
2478,
2291,
1012,
3793,
1025,
2478,
7513,
1012,
1060,
2532,
1012,
7705,
1025,
3415,
15327,
6583,
14356,
1035,
6242,
1012,
3194,
1012,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<div class="panel panel-default bio">
<div class="panel-body tight-inner">
<table class="table table-responsive table-ac-bordered table-hover">
<thead>
<tr>
<th data-bind="click: function(){sortBy('name');}" class="col-md-7">
Feature
<span data-bind="css: sortArrow('name')"></span>
</th>
<th data-bind="click: function(){sortBy('characterClass');}" class="col-md-4">
Class
<span data-bind="css: sortArrow('characterClass')"></span>
</th>
<th class="col-md-1">
<a data-toggle="modal"
data-target="#addFeature" href="#">
<i class="fa fa-plus fa-color"></i>
</a>
</th>
</tr>
</thead>
<tbody>
<!-- ko foreach: filteredAndSortedFeatures -->
<tr class="clickable">
<td data-bind="text: name, click: $parent.editFeature" href="#"></td>
<td data-bind="text: characterClass, click: $parent.editFeature" href="#"></td>
<td class="col-content-vertical">
<a data-bind="click: $parent.removeFeature" href="#">
<i class="fa fa-trash-o fa-color-hover">
</i>
</a>
</td>
</tr>
<!-- /ko -->
<!-- ko if: filteredAndSortedFeatures().length == 0 -->
<tr class="clickable">
<td data-toggle="modal" data-target="#addFeature" href="#"
colspan="12" class="text-center">
<i class="fa fa-plus fa-color"></i>
Add a new Feature
</td>
</tr>
<!-- /ko -->
</tbody>
</table>
</div>
</div>
<!-- Add Modal -->
<div class="modal fade"
id="addFeature"
tabindex="-1"
role="dialog" data-bind="modal: {
onopen: modalFinishedOpening, onclose: modalFinishedClosing}">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button"
class="close"
data-dismiss="modal"
aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<h4 class="modal-title"
id="addFeatureLabel">Add a new Feature.</h4>
</div>
<div class="modal-body">
<form class="form-horizontal">
<div class="form-group">
<label for="name" class="col-sm-2 control-label">Name</label>
<div class="col-sm-10">
<input type="text"
class="form-control"
id="featureName"
placeholder="Rage"
data-bind='textInput: blankFeature().name,
autocomplete: { source: featuresPrePopFilter,
onselect: populateFeature }, hasFocus: firstModalElementHasFocus'>
</div>
</div>
<div class="form-group">
<label for="class" class="col-sm-2 control-label">Class</label>
<div class="col-sm-10">
<input type="text"
class="form-control"
id="class"
placeholder="Barbarian"
data-bind='textInput: blankFeature().characterClass,
autocomplete: { source: classOptions,
onselect: populateClass }'>
</div>
</div>
<div class="form-group">
<label for="level" class="col-sm-2 control-label">Level</label>
<div class="col-sm-10">
<input type="number"
class="form-control"
id="class"
placeholder="1"
data-bind='textInput: blankFeature().level'>
</div>
</div>
<div class="form-group">
<label for="featureDescription" class="col-sm-2 control-label">Description</label>
<div class="col-sm-10">
<textarea type="password"
class="form-control"
id="featureDescription"
rows="4"
placeholder="While you are not wearing any armor, your Armor Class..."
data-bind='textInput: blankFeature().description'>
</textarea>
</div>
</div>
<div class="form-group">
<label for="featureDescription" class="col-sm-3 control-label content-left">
<span class="fa fa-info-circle" style="cursor:pointer;"
data-bind="popover: { content: trackedPopoverText }"></span> Tracked?</label>
<div class="col-sm-7">
<input type="checkbox"
class="form-control"
id="tracked"
data-bind='checked: blankFeature().isTracked'>
</div>
</div>
<div data-bind="visible: blankFeature().isTracked">
<div class="form-group">
<div class="col-sm-1 col-content-vertical" style="border-right:5px ridge #dce4ec;height:40px">
</div>
<label for="bonus" class="col-sm-2 control-label">Max</label>
<div class="col-sm-9">
<input type="number" class="form-control" id="max" min="1"
data-bind='textInput: blankTracked().maxUses'>
</div>
</div>
<div class="form-group">
<div class="col-sm-1 col-content-vertical" style="border-right:5px ridge #dce4ec;height:50px">
</div>
<label class="col-sm-2 control-label">Resets on...</label>
<div class="col-sm-9">
<div class="btn-group btn-group-justified" role="group">
<label class="btn btn-default"
data-bind="css: { active: blankTracked().resetsOn() == 'short'}">
<input type="radio" class="hide-block" name="blankresetsOnShort" value="short"
data-bind="checked: blankTracked().resetsOn"/>
<img class="action-bar-icon" data-bind="attr: { src: meditation }"></img>
Short Rest
</label>
<label class="btn btn-default"
data-bind="css: { active: blankTracked().resetsOn() == 'long'}">
<input type="radio" class="hide-block" name="blankresetsOnLong"
value="long" data-bind="checked: blankTracked().resetsOn"/>
<img class="action-bar-icon" data-bind="attr: { src: campingTent }"></img>
Long Rest
</label>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button"
class="btn btn-primary"
data-bind='click: addFeature'
data-dismiss="modal">Add</button>
<p class="text-muted text-left" data-bind='visible: shouldShowDisclaimer'>
<sm><i>This data is distributed under the
<a href='http://media.wizards.com/2016/downloads/DND/SRD-OGL_V5.1.pdf'
target='_blank'>
OGL</a><br/>
Open Game License v 1.0a Copyright 2000, Wizards of the Coast, LLC.
</i><sm>
</p>
</div>
</form>
</div> <!-- Modal Body -->
</div> <!-- Modal Content -->
</div> <!-- Modal Dialog -->
</div> <!-- Modal Fade -->
<!-- ViewEdit Modal -->
<div class="modal fade"
id="viewWeapon"
tabindex="-1"
role="dialog"
data-bind="modal: {
open: modalOpen,
onopen: modalFinishedOpening,
onclose: modalFinishedClosing
}">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button"
class="close"
data-dismiss="modal"
aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<h4 class="modal-title">Edit a Feature.</h4>
</div>
<div class="modal-body">
<!-- Begin Tabs -->
<ul class="nav nav-tabs tabs">
<li role="presentation" data-bind="click: selectPreviewTab, css: previewTabStatus">
<a href="#" aria-controls="featureModalPreview" role="tab" data-toggle="tab">
<b>Preview</b>
</a>
</li>
<li role="presentation" data-bind="click: selectEditTab, css: editTabStatus">
<a href="#" aria-controls="featureModalEdit" role="tab" data-toggle="tab">
<b>Edit</b>
</a>
</li>
</ul>
<div class="tab-content" data-bind="with: currentEditItem">
<div role="tabpanel" data-bind="css: $parent.previewTabStatus" class="tab-pane">
<div class="h3">
<span data-bind="text: name"></span>
</div>
<div class="row">
<div class="col-sm-6 col-xs-12"><b>Class: </b>
<span data-bind="text: characterClass"></span>
</div>
<div class="col-sm-6 col-xs-12"><b>Level: </b>
<span data-bind="text: level"></span>
</div>
</div>
<!-- ko if: isTracked -->
<div class="row" >
<div class="col-sm-6 col-xs-12">
<b>Max Uses:</b>
<span data-bind="text: $parent.currentEditTracked().maxUses"></span>
</div>
<div class="col-sm-6 col-xs-12">
<b>Resets on:</b>
<span data-bind="visible: $parent.currentEditTracked().resetsOn() === 'short'">
Short Rest
</span>
<span data-bind="visible: $parent.currentEditTracked().resetsOn() === 'long'">
Long Rest
</span>
</div>
</div>
<!-- /ko -->
<hr />
<div class="row row-padded">
<div class="col-xs-12 col-padded">
<div data-bind="markdownPreview: description"
class="preview-modal-overflow-sm">
</div>
</div>
</div>
<div class="modal-footer">
<button type="button"
class="btn btn-primary"
data-dismiss="modal">Done</button>
</div>
</div> <!-- End Preview Tab -->
<div role="tabpanel" data-bind="css: $parent.editTabStatus" class="tab-pane">
<form class="form-horizontal">
<div class="form-group">
<label for="name" class="col-sm-2 control-label">Name</label>
<div class="col-sm-10">
<input type="text"
class="form-control"
id="featureName"
placeholder="Rage"
data-bind='textInput: name, hasFocus: $parent.editFirstModalElementHasFocus'>
</div>
</div>
<div class="form-group">
<label for="class" class="col-sm-2 control-label">Class</label>
<div class="col-sm-10">
<input type="text"
class="form-control"
id="class"
placeholder="Barbarian"
data-bind='textInput: characterClass,
autocomplete: { source: $parent.classOptions,
onselect: $parent.populateClassEdit }'>
</div>
</div>
<div class="form-group">
<label for="level" class="col-sm-2 control-label">Level</label>
<div class="col-sm-10">
<input type="number"
class="form-control"
id="class"
placeholder="1"
data-bind='textInput: level'>
</div>
</div>
<div class="form-group">
<label for="featureDescription"
class="col-sm-2 control-label">Description</label>
<div class="col-sm-10">
<textarea type="text" rows="6"
class="form-control"
placeholder="While you are not wearing any armor, your Armor Class..."
data-bind='value: description, markdownEditor: true'></textarea>
</div>
</div>
<div class="form-group">
<label for="featureDescription" class="col-sm-2 control-label">Tracked?</label>
<div class="col-sm-10">
<input type="checkbox" class="form-control" id="tracked"
data-bind='checked: isTracked'>
</div>
</div>
<!-- ko if: isTracked -->
<div class="form-group">
<div class="col-sm-1 col-content-vertical" style="border-right:5px ridge #dce4ec;height:40px">
</div>
<label for="bonus" class="col-sm-2 control-label">Max</label>
<div class="col-sm-9">
<input type="number" class="form-control" id="max" min="1"
data-bind='textInput: $parent.currentEditTracked().maxUses'>
</div>
</div>
<div class="form-group">
<div class="col-sm-1 col-content-vertical" style="border-right:5px ridge #dce4ec;height:50px">
</div>
<label class="col-sm-2 control-label">Resets on...</label>
<div class="col-sm-9">
<div class="btn-group btn-group-justified" role="group">
<label class="btn btn-default"
data-bind="css: { active: $parent.currentEditTracked().resetsOn() == 'short'}">
<input type="radio" class="hide-block" name="blankresetsOnShort" value="short"
data-bind="checked: $parent.currentEditTracked().resetsOn"/>
<img class="action-bar-icon" data-bind="attr: { src: $parent.meditation }"></img>
Short Rest
</label>
<label class="btn btn-default"
data-bind="css: { active: $parent.currentEditTracked().resetsOn() != 'short'}">
<input type="radio" class="hide-block" name="blankresetsOnLong"
value="long" data-bind="checked: $parent.currentEditTracked().resetsOn"/>
<img class="action-bar-icon" data-bind="attr: { src: $parent.campingTent }"></img>
Long Rest
</label>
</div>
</div>
</div>
<!-- /ko -->
<div class="modal-footer">
<button type="button"
class="btn btn-primary"
data-dismiss="modal">Done</button>
</div>
</form>
</div>
</div>
</div> <!-- Modal Body -->
</div> <!-- Modal Content -->
</div> <!-- Modal Dialog -->
</div> <!-- Modal Fade -->
| Sonictherocketman/charactersheet | src/charactersheet/viewmodels/character/features/index.html | HTML | gpl-3.0 | 15,832 | [
30522,
1026,
4487,
2615,
2465,
1027,
1000,
5997,
5997,
1011,
12398,
16012,
1000,
1028,
1026,
4487,
2615,
2465,
1027,
1000,
5997,
1011,
2303,
4389,
1011,
5110,
1000,
1028,
1026,
2795,
2465,
1027,
1000,
2795,
2795,
1011,
26651,
2795,
1011,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
Copyright 2016 The Kubernetes 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 options
import (
"fmt"
"net"
"time"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/serializer"
"k8s.io/apiserver/pkg/server"
utilfeature "k8s.io/apiserver/pkg/util/feature"
// add the generic feature gates
_ "k8s.io/apiserver/pkg/features"
"github.com/spf13/pflag"
)
// ServerRunOptions contains the options while running a generic api server.
type ServerRunOptions struct {
AdvertiseAddress net.IP
CorsAllowedOriginList []string
ExternalHost string
MaxRequestsInFlight int
MaxMutatingRequestsInFlight int
RequestTimeout time.Duration
MinRequestTimeout int
TargetRAMMB int
}
func NewServerRunOptions() *ServerRunOptions {
defaults := server.NewConfig(serializer.CodecFactory{})
return &ServerRunOptions{
MaxRequestsInFlight: defaults.MaxRequestsInFlight,
MaxMutatingRequestsInFlight: defaults.MaxMutatingRequestsInFlight,
RequestTimeout: defaults.RequestTimeout,
MinRequestTimeout: defaults.MinRequestTimeout,
}
}
// ApplyOptions applies the run options to the method receiver and returns self
func (s *ServerRunOptions) ApplyTo(c *server.Config) error {
c.CorsAllowedOriginList = s.CorsAllowedOriginList
c.ExternalAddress = s.ExternalHost
c.MaxRequestsInFlight = s.MaxRequestsInFlight
c.MaxMutatingRequestsInFlight = s.MaxMutatingRequestsInFlight
c.RequestTimeout = s.RequestTimeout
c.MinRequestTimeout = s.MinRequestTimeout
c.PublicAddress = s.AdvertiseAddress
return nil
}
// DefaultAdvertiseAddress sets the field AdvertiseAddress if unset. The field will be set based on the SecureServingOptions.
func (s *ServerRunOptions) DefaultAdvertiseAddress(secure *SecureServingOptions) error {
if secure == nil {
return nil
}
if s.AdvertiseAddress == nil || s.AdvertiseAddress.IsUnspecified() {
hostIP, err := secure.DefaultExternalAddress()
if err != nil {
return fmt.Errorf("Unable to find suitable network address.error='%v'. "+
"Try to set the AdvertiseAddress directly or provide a valid BindAddress to fix this.", err)
}
s.AdvertiseAddress = hostIP
}
return nil
}
// Validate checks validation of ServerRunOptions
func (s *ServerRunOptions) Validate() []error {
errors := []error{}
if s.TargetRAMMB < 0 {
errors = append(errors, fmt.Errorf("--target-ram-mb can not be negative value"))
}
if s.MaxRequestsInFlight < 0 {
errors = append(errors, fmt.Errorf("--max-requests-inflight can not be negative value"))
}
if s.MaxMutatingRequestsInFlight < 0 {
errors = append(errors, fmt.Errorf("--max-mutating-requests-inflight can not be negative value"))
}
if s.RequestTimeout.Nanoseconds() < 0 {
errors = append(errors, fmt.Errorf("--request-timeout can not be negative value"))
}
return errors
}
// AddFlags adds flags for a specific APIServer to the specified FlagSet
func (s *ServerRunOptions) AddUniversalFlags(fs *pflag.FlagSet) {
// Note: the weird ""+ in below lines seems to be the only way to get gofmt to
// arrange these text blocks sensibly. Grrr.
fs.IPVar(&s.AdvertiseAddress, "advertise-address", s.AdvertiseAddress, ""+
"The IP address on which to advertise the apiserver to members of the cluster. This "+
"address must be reachable by the rest of the cluster. If blank, the --bind-address "+
"will be used. If --bind-address is unspecified, the host's default interface will "+
"be used.")
fs.StringSliceVar(&s.CorsAllowedOriginList, "cors-allowed-origins", s.CorsAllowedOriginList, ""+
"List of allowed origins for CORS, comma separated. An allowed origin can be a regular "+
"expression to support subdomain matching. If this list is empty CORS will not be enabled.")
fs.IntVar(&s.TargetRAMMB, "target-ram-mb", s.TargetRAMMB,
"Memory limit for apiserver in MB (used to configure sizes of caches, etc.)")
fs.StringVar(&s.ExternalHost, "external-hostname", s.ExternalHost,
"The hostname to use when generating externalized URLs for this master (e.g. Swagger API Docs).")
deprecatedMasterServiceNamespace := metav1.NamespaceDefault
fs.StringVar(&deprecatedMasterServiceNamespace, "master-service-namespace", deprecatedMasterServiceNamespace, ""+
"DEPRECATED: the namespace from which the kubernetes master services should be injected into pods.")
fs.IntVar(&s.MaxRequestsInFlight, "max-requests-inflight", s.MaxRequestsInFlight, ""+
"The maximum number of non-mutating requests in flight at a given time. When the server exceeds this, "+
"it rejects requests. Zero for no limit.")
fs.IntVar(&s.MaxMutatingRequestsInFlight, "max-mutating-requests-inflight", s.MaxMutatingRequestsInFlight, ""+
"The maximum number of mutating requests in flight at a given time. When the server exceeds this, "+
"it rejects requests. Zero for no limit.")
fs.DurationVar(&s.RequestTimeout, "request-timeout", s.RequestTimeout, ""+
"An optional field indicating the duration a handler must keep a request open before timing "+
"it out. This is the default request timeout for requests but may be overridden by flags such as "+
"--min-request-timeout for specific types of requests.")
fs.IntVar(&s.MinRequestTimeout, "min-request-timeout", s.MinRequestTimeout, ""+
"An optional field indicating the minimum number of seconds a handler must keep "+
"a request open before timing it out. Currently only honored by the watch request "+
"handler, which picks a randomized value above this number as the connection timeout, "+
"to spread out load.")
utilfeature.DefaultFeatureGate.AddFlag(fs)
}
| kgrygiel/autoscaler | vertical-pod-autoscaler/vendor/k8s.io/apiserver/pkg/server/options/server_run_options.go | GO | apache-2.0 | 6,147 | [
30522,
1013,
1008,
9385,
2355,
1996,
13970,
5677,
7159,
2229,
6048,
1012,
7000,
2104,
1996,
15895,
6105,
1010,
2544,
1016,
1012,
1014,
1006,
1996,
1000,
6105,
30524,
6855,
1037,
6100,
1997,
1996,
6105,
2012,
8299,
1024,
1013,
1013,
7479,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
# Diff Longest Common Sub String
"The diff sniffing out texts every move"
A resonably fast diff algoritm using longest common substrings that
can also detect text that has moved.
## Usage
First require it.
$ irb
> require 'rubygems'
> require 'difflcs'
Then it can be used on any set of arrays, in this example 123456789
and 120678934, of which the first '12' overlaps, '0' is new, '34' has
moved to the end, and '6789' overlaps too, but moved 2 positions to
the left.
NOTE: They are arrays, not strings.
> DiffLCS.diff('123456789'.split(''), '120678934'.split(''))
=> {
:matched_old=>[0...2, 5...9, 2...4],
:matched_new=>[0...2, 3...7, 7...9]
}
As you see it can sniff out text that has moved too.
A minimum overlap size can be provided for speed purposes, and to
prevent too many matches;
> DiffLCS.diff('123456789'.split(''), '120678934'.split(''), :minimum_lcs_size => 3)
=> {
:matched_old => PositionRange::List.from_s('5,9'),
:matched_new => PositionRange::List.from_s('3,7')
}
Diff can be called directly on strings too, if 'diff_l_c_s/string' is required.
> require 'diff_l_c_s/string'
> '123'.diff('321')
=> {
:matched_old=>[2...3, 1...2, 0...1],
:matched_new=>[0...1, 1...2, 2...3]
}
## Installation
Add this line to your application's Gemfile:
gem 'difflcs'
And then execute:
$ bundle
Or install it yourself as:
$ gem install difflcs
Feel free to report issues and to ask questions. For the latest news on
DiffLCS:
* http://foundation.logilogi.org/tags/DiffLCS
## Contributing
If you wish to contribute, please create a pull-request and remember to update
the corresponding unit test(s).
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
| wybo/difflcs | README.md | Markdown | mit | 1,940 | [
30522,
1001,
4487,
4246,
6493,
2691,
4942,
5164,
1000,
1996,
4487,
4246,
27646,
2041,
6981,
2296,
2693,
1000,
1037,
24501,
7856,
6321,
3435,
4487,
4246,
2632,
20255,
4183,
2213,
2478,
6493,
2691,
4942,
3367,
4892,
2015,
2008,
2064,
2036,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
using System.ComponentModel;
namespace LinqAn.Google.Metrics
{
/// <summary>
/// The total numeric value for the requested goal number.
/// </summary>
[Description("The total numeric value for the requested goal number.")]
public class Goal1Value: Metric<decimal>
{
/// <summary>
/// Instantiates a <seealso cref="Goal1Value" />.
/// </summary>
public Goal1Value(): base("Goal 1 Value",true,"ga:goal1Value")
{
}
}
}
| kenshinthebattosai/LinqAn.Google | src/LinqAn.Google/Metrics/Goal1Value.cs | C# | mit | 443 | [
30522,
2478,
2291,
1012,
6922,
5302,
9247,
1025,
3415,
15327,
11409,
19062,
2078,
1012,
8224,
1012,
12046,
2015,
1063,
1013,
1013,
1013,
1026,
12654,
1028,
1013,
1013,
1013,
1996,
2561,
16371,
25531,
3643,
2005,
1996,
7303,
3125,
2193,
1012... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
var debug = require('debug')('openframe:model:Frame');
module.exports = function(Frame) {
Frame.disableRemoteMethodByName('createChangeStream');
// Remove sensitive data from Artworks being returned
// in public frames
// Frame.afterRemote('**', function(ctx, resultInstance, next) {
// debug('ctx.methodString', ctx.methodString);
// function updateResult(result) {
// if (result.current_artwork) {
// let newArtwork = {
// title: result.current_artwork.title,
// author_name: result.current_artwork.author_name
// };
// if (result.current_artwork.is_public) {
// newArtwork.id = result.current_artwork.id;
// }
// result.current_artwork(newArtwork);
// // debug(result.current_artwork);
// }
// }
// if (ctx.result) {
// if (Array.isArray(resultInstance)) {
// debug('isArray', resultInstance.length);
// ctx.result.forEach(function(result) {
// updateResult(result);
// });
// } else {
// updateResult(ctx.result);
// }
// }
// next();
// });
// Never save 'current_artwork' object into DB -- it comes from relation, via currentArtworkId
// TODO: I think this is a(nother) loopback bug, since with strict on we should be enforcing
// properties, but since this property is the name of a relation it's allowing it to be saved (?)
Frame.observe('before save', function(ctx, next) {
debug('before save', typeof ctx.instance);
if (ctx.instance) {
ctx.instance.unsetAttribute('current_artwork');
} else {
delete ctx.data.current_artwork;
}
debug('before save - MODIFIED', ctx.instance);
next();
});
// whenever a Frame model is saved, broadcast an update event
Frame.observe('after save', function(ctx, next) {
if (ctx.instance && Frame.app.pubsub) {
debug('Saved %s %s', ctx.Model.modelName, ctx.instance.id);
if (ctx.isNewInstance) {
debug('New Frame, publishing: /user/' + ctx.instance.ownerId + '/frame/new');
Frame.app.pubsub.publish('/user/' + ctx.instance.ownerId + '/frame/new', ctx.instance.id);
} else {
debug('Existing Frame, publishing: /frame/' + ctx.instance.id + '/db_updated');
// debug(ctx.instance);
Frame.findById(ctx.instance.id, { include: 'current_artwork' }, function(err, frame) {
debug(err, frame);
Frame.app.pubsub.publish('/frame/' + frame.id + '/db_updated', frame);
});
}
}
next();
});
// Ouch. Ow. Yowsers. Serisously?
function removeManagers(frame, managers) {
return new Promise((resolve, reject) => {
frame.managers(function(err, current_managers) {
debug(current_managers);
if (current_managers.length) {
var count = 0,
total = current_managers.length;
current_managers.forEach(function(cur_man) {
debug(cur_man);
if (managers.indexOf(cur_man.username) === -1) {
debug('removing %s', cur_man.username);
frame.managers.remove(cur_man, function(err) {
if (err) debug(err);
count++;
if (count === total) {
// all who are no longer present in the new list have been removed
resolve();
}
});
} else {
count++;
if (count === total) {
// all who are no longer present in the new list have been removed
resolve();
}
}
});
} else {
// there are no current managers
resolve();
}
});
});
}
// Painful painful painful -- so gross. Why loopback, why!?
function addManagers(frame, managers) {
var OpenframeUser = Frame.app.models.OpenframeUser;
return new Promise((resolve, reject) => {
OpenframeUser.find({ where: { username: { inq: managers }}}, function(err, users) {
if (err) {
debug(err);
}
var count = 0,
total = users.length;
if (total === 0) {
// no managers found by username, return frame including current managers
Frame.findById(frame.id, {include: 'managers'}, function(err, frame) {
debug(err, frame);
resolve(frame);
});
} else {
// managers found by username, add them to frame, then
// return frame including current managers
// XXX: Unfortunately loopback doesn't seem to provide a way to batch
// update hasAndBelongsToMany relationships :/
users.forEach(function(user) {
frame.managers.add(user, function(err) {
count++;
if (count === total) {
Frame.findById(frame.id, {include: 'managers'}, function(err, frame) {
debug(err, frame);
resolve(frame);
});
}
});
});
}
});
});
}
// Update managers by username
//
// XXX: This is incredibly ugly. Loopback doesn't provide a good way to update
// this type of relationship all in one go, which makes it a huge messy pain. Given
// time, I may fix this.
Frame.prototype.update_managers_by_username = function(managers, cb) {
debug(managers);
var self = this;
removeManagers(self, managers)
.then(function() {
addManagers(self, managers)
.then(function(frame) {
cb(null, frame);
})
.catch(debug);
}).catch(debug);
};
// Expose update_managers_by_username remote method
Frame.remoteMethod(
'prototype.update_managers_by_username', {
description: 'Add a related item by username for managers.',
accepts: {
arg: 'managers',
type: 'array',
http: {
source: 'body'
}
},
http: {
verb: 'put',
path: '/managers/by_username'
},
returns: {
arg: 'frame',
type: 'Object'
}
}
);
/**
* Update the current artwork by artwork ID
* @param {String} currentArtworkId
* @param {Function} callback
*/
Frame.prototype.update_current_artwork = function(currentArtworkId, cb) {
debug('update_current_artwork', currentArtworkId);
var self = this;
self.updateAttribute('currentArtworkId', currentArtworkId, function(err, instance) {
cb(err, instance);
});
};
Frame.remoteMethod(
'prototype.update_current_artwork', {
description: 'Set the current artwork for this frame',
accepts: {
arg: 'currentArtworkId',
type: 'any',
required: true,
http: {
source: 'path'
}
},
http: {
verb: 'put',
path: '/current_artwork/:currentArtworkId'
},
returns: {
arg: 'frame',
type: 'Object'
}
}
);
/**
* Override toJSON in order to remove inclusion of email address for users that are
* not the currently logged-in user.
*
* @return {Object} Plain JS Object which will be transformed to JSON for output.
*/
// Frame.prototype.toJSON = function() {
// // TODO: this seems awfully fragile... not very clear when context is available
// var ctx = loopback.getCurrentContext(),
// user = ctx.get('currentUser'),
// userId = user && user.id,
// obj = this.toObject(false, true, false);
// debug('FRAME toJSON', userId, obj);
// // Remove email from managers
// if (obj.managers && obj.managers.length) {
// obj.managers.forEach((manager) => {
// delete manager.email;
// });
// }
// // Remove email from owner unless it's the currently logged in user.
// if (obj.owner && userId !== obj.owner.id) {
// delete obj.owner.email;
// }
// return obj;
// };
};
| OpenframeProject/Openframe-API | common/models/frame.js | JavaScript | gpl-3.0 | 9,543 | [
30522,
13075,
2139,
8569,
2290,
1027,
5478,
1006,
1005,
2139,
8569,
2290,
1005,
1007,
1006,
1005,
2330,
15643,
1024,
2944,
1024,
4853,
1005,
1007,
1025,
11336,
1012,
14338,
1027,
3853,
1006,
4853,
1007,
1063,
4853,
1012,
4487,
19150,
28578,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*--------------------------------------------------------------------*/
/*--- A mapping where the keys exactly cover the address space. ---*/
/*--- pub_tool_rangemap.h ---*/
/*--------------------------------------------------------------------*/
/*
This file is part of Valgrind, a dynamic binary instrumentation
framework.
Copyright (C) 2014-2014 Mozilla Foundation
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307, USA.
The GNU General Public License is contained in the file COPYING.
*/
/* Contributed by Julian Seward <jseward@acm.org> */
#ifndef __PUB_TOOL_RANGEMAP_H
#define __PUB_TOOL_RANGEMAP_H
//--------------------------------------------------------------------
// PURPOSE: a mapping from the host machine word (UWord) ranges to
// arbitrary other UWord values. The set of ranges exactly covers all
// possible UWord values.
// --------------------------------------------------------------------
/* It's an abstract type. */
typedef struct _RangeMap RangeMap;
/* Create a new RangeMap, using given allocation and free functions.
alloc_fn must not return NULL (that is, if it returns it must have
succeeded.) The new array will contain a single range covering the
entire key space, which will be bound to the value |initialVal|.
This function never returns NULL. */
RangeMap* VG_(newRangeMap) ( void*(*alloc_fn)(const HChar*,SizeT),
const HChar* cc,
void(*free_fn)(void*),
UWord initialVal );
/* Free all memory associated with a RangeMap. */
void VG_(deleteRangeMap) ( RangeMap* );
/* Bind the range [key_min, key_max] to val, overwriting any other
bindings existing in the range. Asserts if key_min > key_max. If
as a result of this addition, there come to be multiple adjacent
ranges with the same value, these ranges are merged together. Note
that this is slow: O(N) in the number of existing ranges. */
void VG_(bindRangeMap) ( RangeMap* rm,
UWord key_min, UWord key_max, UWord val );
/* Looks up |key| in the array and returns the associated value and
the key bounds. Can never fail since the RangeMap covers the
entire key space. This is fast: O(log N) in the number of
ranges. */
void VG_(lookupRangeMap) ( /*OUT*/UWord* key_min, /*OUT*/UWord* key_max,
/*OUT*/UWord* val, const RangeMap* rm, UWord key );
/* How many elements are there in the map? */
UInt VG_(sizeRangeMap) ( const RangeMap* rm );
/* Get the i'th component */
void VG_(indexRangeMap) ( /*OUT*/UWord* key_min, /*OUT*/UWord* key_max,
/*OUT*/UWord* val, const RangeMap* rm, Word ix );
#endif // __PUB_TOOL_RANGEMAP_H
/*--------------------------------------------------------------------*/
/*--- end pub_tool_rangemap.h ---*/
/*--------------------------------------------------------------------*/
| zhmz90/valgrind | include/pub_tool_rangemap.h | C | gpl-2.0 | 3,662 | [
30522,
1013,
1008,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
101... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
* Copyright (c) 2017 Xavier Defago (Tokyo Institute of Technology)
*
* 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 ocelot.util
import java.io.PrintStream
import java.util.Locale
/**
* Created by defago on 06/04/2017.
*/
class SequentialPrintStream(out: PrintStream) extends PrintStream(out)
{
override def printf (format: String, args: AnyRef*) =
SequentialPrintStream.synchronized { super.printf(format, args: _*) }
override def printf (
l: Locale,
format: String,
args: AnyRef*
) = SequentialPrintStream.synchronized { super.printf(l, format, args: _*) }
override def println () = SequentialPrintStream.synchronized { super.println() }
override def println (x: Boolean) = SequentialPrintStream.synchronized { super.println(x) }
override def println (x: Char) = SequentialPrintStream.synchronized { super.println(x) }
override def println (x: Int) = SequentialPrintStream.synchronized { super.println(x) }
override def println (x: Long) = SequentialPrintStream.synchronized { super.println(x) }
override def println (x: Float) = SequentialPrintStream.synchronized { super.println(x) }
override def println (x: Double) = SequentialPrintStream.synchronized { super.println(x) }
override def println (x: Array[Char]) = SequentialPrintStream.synchronized { super.println(x) }
override def println (x: String) = SequentialPrintStream.synchronized { super.println(x) }
override def println (x: scala.Any) = SequentialPrintStream.synchronized { super.println(x) }
override def flush () = SequentialPrintStream.synchronized { super.flush() }
override def write (b: Int) = SequentialPrintStream.synchronized { super.write(b) }
override def write (buf: Array[Byte], off: Int, len: Int) =
SequentialPrintStream.synchronized { super.write(buf, off, len) }
override def format (format: String, args: AnyRef*) =
SequentialPrintStream.synchronized { super.format(format, args: _*) }
override def format (
l: Locale,
format: String,
args: AnyRef*
) = SequentialPrintStream.synchronized { super.format(l, format, args: _*) }
override def print (b: Boolean) = SequentialPrintStream.synchronized { super.print(b) }
override def print (c: Char) = SequentialPrintStream.synchronized { super.print(c) }
override def print (i: Int) = SequentialPrintStream.synchronized { super.print(i) }
override def print (l: Long) = SequentialPrintStream.synchronized { super.print(l) }
override def print (f: Float) = SequentialPrintStream.synchronized { super.print(f) }
override def print (d: Double) = SequentialPrintStream.synchronized { super.print(d) }
override def print (s: Array[Char]) = SequentialPrintStream.synchronized { super.print(s) }
override def print (s: String) = SequentialPrintStream.synchronized { super.print(s) }
override def print (obj: scala.Any) = SequentialPrintStream.synchronized { super.print(obj) }
override def append (csq: CharSequence) = SequentialPrintStream.synchronized { super.append(csq) }
override def append (csq: CharSequence, start: Int, end: Int) =
SequentialPrintStream.synchronized { super.append(csq, start, end) }
override def append (c: Char) = SequentialPrintStream.synchronized { super.append(c) }
override def write (b: Array[Byte]) = SequentialPrintStream.synchronized { super.write(b) }
}
object SequentialPrintStream
| xdefago/ocelot | src/main/scala/ocelot/util/SequentialPrintStream.scala | Scala | apache-2.0 | 3,891 | [
30522,
1013,
1008,
1008,
9385,
1006,
1039,
1007,
2418,
10062,
13366,
23692,
1006,
5522,
2820,
1997,
2974,
1007,
1008,
1008,
7000,
2104,
1996,
15895,
6105,
1010,
2544,
1016,
1012,
30524,
15943,
1013,
6105,
1011,
1016,
1012,
1014,
1008,
1008,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
---
layout: page
title: "Tracy Michelle Kirkland"
comments: true
description: "blanks"
keywords: "Tracy Michelle Kirkland,CU,Boulder"
---
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://dl.dropboxusercontent.com/s/pc42nxpaw1ea4o9/highcharts.js?dl=0"></script>
<!-- <script src="../assets/js/highcharts.js"></script> -->
<style type="text/css">@font-face {
font-family: "Bebas Neue";
src: url(https://www.filehosting.org/file/details/544349/BebasNeue Regular.otf) format("opentype");
}
h1.Bebas {
font-family: "Bebas Neue", Verdana, Tahoma;
}
</style>
</head>
#### TEACHING INFORMATION
**College**: College of Arts and Sciences
**Classes taught**: SOCY 2077
#### SOCY 2077: Environment and Society
**Terms taught**: Fall 2010, Fall 2011, Spring 2012, Fall 2012, Spring 2013, Fall 2013, Spring 2014
**Instructor rating**: 4.88
**Standard deviation in instructor rating**: 0.4
**Average grade** (4.0 scale): 2.99
**Standard deviation in grades** (4.0 scale): 0.4
**Average workload** (raw): 2.25
**Standard deviation in workload** (raw): 0.12
| nikhilrajaram/nikhilrajaram.github.io | instructors/Tracy_Michelle_Kirkland.md | Markdown | mit | 1,134 | [
30522,
1011,
1011,
1011,
9621,
1024,
3931,
2516,
1024,
1000,
10555,
9393,
11332,
3122,
1000,
7928,
1024,
2995,
6412,
1024,
1000,
8744,
2015,
1000,
3145,
22104,
1024,
1000,
10555,
9393,
11332,
3122,
1010,
12731,
1010,
13264,
1000,
1011,
1011... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
# This file is copied to spec/ when you run 'rails generate rspec:install'
ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../../config/environment', __FILE__)
# Prevent database truncation if the environment is production
abort("The Rails environment is running in production mode!") if Rails.env.production?
require 'spec_helper'
require 'rspec/rails'
require 'shoulda/matchers'
ActiveRecord::Migration.maintain_test_schema!
RSpec.configure do |config|
config.fixture_path = "#{::Rails.root}/spec/fixtures"
config.use_transactional_fixtures = true
config.infer_spec_type_from_file_location!
config.filter_rails_from_backtrace!
end
| raadler/Scrivn | spec/rails_helper.rb | Ruby | mit | 652 | [
30522,
1001,
2023,
5371,
2003,
15826,
2000,
28699,
1013,
2043,
2017,
2448,
1005,
15168,
9699,
12667,
5051,
2278,
1024,
16500,
1005,
4372,
2615,
1031,
1005,
15168,
1035,
4372,
2615,
1005,
1033,
1064,
1064,
1027,
1005,
3231,
1005,
5478,
5371,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<?php
namespace AppBundle\Repository;
/**
* SAdvertisementToPhoneRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class SAdvertisementToPhoneRepository extends \Doctrine\ORM\EntityRepository
{
public function getAdvertisementIdPhoneList(array $idList)
{
return $this->createQueryBuilder('a2p')
->select('a2p.advertisementId, p.phone')
->join('a2p.phone', 'p')
->where('a2p.advertisementId IN (:idList)')
->setParameter('idList', $idList)
->getQuery()
->getArrayResult();
}
}
| ukraine-blacklist/platform | src/AppBundle/Repository/SAdvertisementToPhoneRepository.php | PHP | mit | 637 | [
30522,
1026,
1029,
25718,
3415,
15327,
10439,
27265,
2571,
1032,
22409,
1025,
1013,
1008,
1008,
1008,
6517,
16874,
5562,
3672,
14399,
27406,
2890,
6873,
28307,
2100,
1008,
1008,
2023,
2465,
2001,
7013,
2011,
1996,
8998,
2030,
2213,
1012,
55... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
package com.kashukov.convert;
/**
* Convert short to any primitive data type
*/
public class Short {
/**
* Convert short to boolean
*
* @param input short
* @return boolean
*/
public static boolean shortToBoolean(short input) {
return input != 0;
}
/**
* Convert short to byte
*
* @param input short
* @return byte
*/
public static byte shortToByte(short input) {
return (byte) input;
}
/**
* Convert short to byte[]
*
* @param input short
* @return byte[]
*/
public static byte[] shortToByteArray(short input) {
return new byte[]{
(byte) (input >>> 8),
(byte) input};
}
/**
* Convert short to char
*
* @param input short
* @return char
*/
public static char shortToChar(short input) {
return (char) input;
}
/**
* Convert short to double
*
* @param input short
* @return double
*/
public static double shortToDouble(short input) {
return (double) input;
}
/**
* Convert short to float
*
* @param input short
* @return float
*/
public static float shortToFloat(short input) {
return (float) input;
}
/**
* Convert short to int
*
* @param input short
* @return int
*/
public static int shortToInt(short input) {
return (int) input;
}
/**
* Convert short to long
*
* @param input short
* @return long
*/
public static long shortToLong(short input) {
return (long) input;
}
/**
* Convert short to String
*
* @param input short
* @return String
*/
public static java.lang.String shortToString(short input) {
return java.lang.Short.toString(input);
}
} | kashukov/convert | src/main/java/com/kashukov/convert/Short.java | Java | apache-2.0 | 1,895 | [
30522,
7427,
4012,
1012,
10556,
14235,
7724,
1012,
10463,
1025,
1013,
1008,
1008,
1008,
10463,
2460,
2000,
2151,
10968,
2951,
2828,
1008,
1013,
2270,
2465,
2460,
1063,
1013,
1008,
1008,
1008,
10463,
2460,
2000,
22017,
20898,
1008,
1008,
103... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
package xzd.mobile.android.common;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import android.app.Activity;
import android.content.ContentResolver;
import android.content.Context;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.LinearGradient;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.PixelFormat;
import android.graphics.PorterDuffXfermode;
import android.graphics.Rect;
import android.graphics.RectF;
import android.graphics.Bitmap.CompressFormat;
import android.graphics.Bitmap.Config;
import android.graphics.PorterDuff.Mode;
import android.graphics.Shader.TileMode;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.os.Environment;
import android.provider.BaseColumns;
import android.provider.MediaStore;
import android.provider.MediaStore.MediaColumns;
import android.util.DisplayMetrics;
import android.view.View;
public class ImageUtils {
public final static String SDCARD_MNT = "/mnt/sdcard";
public final static String SDCARD = "/sdcard";
/** 请求相册 */
public static final int REQUEST_CODE_GETIMAGE_BYSDCARD = 0;
/** 请求相机 */
public static final int REQUEST_CODE_GETIMAGE_BYCAMERA = 1;
/** 请求裁剪 */
public static final int REQUEST_CODE_GETIMAGE_BYCROP = 2;
private static ImageUtils mImageUtils = null;
public static ImageUtils getInstance() {
if (mImageUtils == null) {
mImageUtils = new ImageUtils();
}
return mImageUtils;
}
public static void releaseMem() {
if (mImageUtils != null) {
mImageUtils = null;
}
}
public Bitmap getBitmapFromView(View view) {
view.destroyDrawingCache();
view.measure(View.MeasureSpec.makeMeasureSpec(0,
View.MeasureSpec.UNSPECIFIED), View.MeasureSpec
.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED));
view.layout(0, 0, view.getMeasuredWidth(), view.getMeasuredHeight());
view.setDrawingCacheEnabled(true);
Bitmap bitmap = view.getDrawingCache(true);
return bitmap;
}
/**
* 写图片文�? 在Android系统中,文件保存�?/data/data/PACKAGE_NAME/files 目录�?
*
* @throws IOException
*/
public void saveImage(Context context, String fileName, Bitmap bitmap)
throws IOException {
saveImage(context, fileName, bitmap, 100);
}
public void saveImage(Context context, String fileName, Bitmap bitmap,
int quality) throws IOException {
if (bitmap == null || fileName == null || context == null)
return;
FileOutputStream fos = context.openFileOutput(fileName,
Context.MODE_PRIVATE);
ByteArrayOutputStream stream = new ByteArrayOutputStream();
bitmap.compress(CompressFormat.JPEG, quality, stream);
byte[] bytes = stream.toByteArray();
fos.write(bytes);
fos.close();
}
/**
* 写图片文件到SD�?
*
* @throws IOException
*/
public void saveImageToSD(String filePath, Bitmap bitmap, int quality)
throws IOException {
if (bitmap != null) {
FileOutputStream fos = new FileOutputStream(filePath);
ByteArrayOutputStream stream = new ByteArrayOutputStream();
bitmap.compress(CompressFormat.JPEG, quality, stream);
byte[] bytes = stream.toByteArray();
fos.write(bytes);
fos.close();
}
}
/**
* 获取bitmap
*
* @param context
* @param fileName
* @return
*/
public Bitmap getBitmap(Context context, String fileName) {
FileInputStream fis = null;
Bitmap bitmap = null;
try {
fis = context.openFileInput(fileName);
bitmap = BitmapFactory.decodeStream(fis);
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (OutOfMemoryError e) {
e.printStackTrace();
} finally {
try {
fis.close();
} catch (Exception e) {
}
}
return bitmap;
}
/**
* 获取bitmap
*
* @param filePath
* @return
*/
public Bitmap getBitmapByPath(String filePath) {
return getBitmapByPath(filePath, null);
}
public Bitmap getBitmapByPath(String filePath, BitmapFactory.Options opts) {
FileInputStream fis = null;
Bitmap bitmap = null;
try {
File file = new File(filePath);
fis = new FileInputStream(file);
bitmap = BitmapFactory.decodeStream(fis, null, opts);
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (OutOfMemoryError e) {
e.printStackTrace();
} finally {
try {
fis.close();
} catch (Exception e) {
}
}
return bitmap;
}
/**
* 获取bitmap
*
* @param file
* @return
*/
public Bitmap getBitmapByFile(File file) {
FileInputStream fis = null;
Bitmap bitmap = null;
try {
fis = new FileInputStream(file);
bitmap = BitmapFactory.decodeStream(fis);
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (OutOfMemoryError e) {
e.printStackTrace();
} finally {
try {
fis.close();
} catch (Exception e) {
}
}
return bitmap;
}
/**
* 使用当前时间戳拼接一个唯�?��文件�?
*
* @param format
* @return
*/
public String getTempFileName() {
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd_HH-mm-ss_SS");
String fileName = format.format(new Timestamp(System
.currentTimeMillis()));
return fileName;
}
/**
* 获取照相机使用的目录
*
* @return
*/
public String getCamerPath() {
return Environment.getExternalStorageDirectory() + File.separator
+ "FounderNews" + File.separator;
}
/**
* 判断当前Url是否标准的content://样式,如果不是,则返回绝对路�?
*
* @param uri
* @return
*/
public String getAbsolutePathFromNoStandardUri(Uri mUri) {
String filePath = null;
String mUriString = mUri.toString();
mUriString = Uri.decode(mUriString);
String pre1 = "file://" + SDCARD + File.separator;
String pre2 = "file://" + SDCARD_MNT + File.separator;
if (mUriString.startsWith(pre1)) {
filePath = Environment.getExternalStorageDirectory().getPath()
+ File.separator + mUriString.substring(pre1.length());
} else if (mUriString.startsWith(pre2)) {
filePath = Environment.getExternalStorageDirectory().getPath()
+ File.separator + mUriString.substring(pre2.length());
}
return filePath;
}
/**
* 通过uri获取文件的绝对路�?
*
* @param uri
* @return
*/
public String getAbsoluteImagePath(Activity context, Uri uri) {
String imagePath = "";
String[] proj = { MediaColumns.DATA };
@SuppressWarnings("deprecation")
Cursor cursor = context.managedQuery(uri, proj, // Which columns to
// return
null, // WHERE clause; which rows to return (all rows)
null, // WHERE clause selection arguments (none)
null); // Order-by clause (ascending by name)
if (cursor != null) {
int column_index = cursor.getColumnIndexOrThrow(MediaColumns.DATA);
if (cursor.getCount() > 0 && cursor.moveToFirst()) {
imagePath = cursor.getString(column_index);
}
}
return imagePath;
}
/**
* 获取图片缩略�? 只有Android2.1以上版本支持
*
* @param imgName
* @param kind
* MediaStore.Images.Thumbnails.MICRO_KIND
* @return
*/
public Bitmap loadImgThumbnail(Activity context, String imgName, int kind) {
Bitmap bitmap = null;
String[] proj = { BaseColumns._ID, MediaColumns.DISPLAY_NAME };
Cursor cursor = context.managedQuery(
MediaStore.Images.Media.EXTERNAL_CONTENT_URI, proj,
MediaColumns.DISPLAY_NAME + "='" + imgName + "'", null, null);
if (cursor != null && cursor.getCount() > 0 && cursor.moveToFirst()) {
ContentResolver crThumb = context.getContentResolver();
BitmapFactory.Options options = new BitmapFactory.Options();
options.inSampleSize = 1;
bitmap = MethodsCompat.getInstance().getThumbnail(crThumb,
cursor.getInt(0), kind, options);
}
return bitmap;
}
public Bitmap loadImgThumbnail(String filePath, int w, int h) {
Bitmap bitmap = getBitmapByPath(filePath);
return zoomBitmap(bitmap, w, h);
}
/**
* 获取SD卡中�?��图片路径
*
* @return
*/
public String getLatestImage(Activity context) {
String latestImage = null;
String[] items = { BaseColumns._ID, MediaColumns.DATA };
@SuppressWarnings("deprecation")
Cursor cursor = context.managedQuery(
MediaStore.Images.Media.EXTERNAL_CONTENT_URI, items, null,
null, BaseColumns._ID + " desc");
if (cursor != null && cursor.getCount() > 0) {
cursor.moveToFirst();
for (cursor.moveToFirst(); !cursor.isAfterLast(); cursor
.moveToNext()) {
latestImage = cursor.getString(1);
break;
}
}
return latestImage;
}
/**
* 计算缩放图片的宽�?
*
* @param img_size
* @param square_size
* @return
*/
public int[] scaleImageSize(int[] img_size, int square_size) {
if (img_size[0] <= square_size && img_size[1] <= square_size)
return img_size;
double ratio = square_size
/ (double) Math.max(img_size[0], img_size[1]);
return new int[] { (int) (img_size[0] * ratio),
(int) (img_size[1] * ratio) };
}
/**
* 创建缩略�?
*
* @param context
* @param largeImagePath
* 原始大图路径
* @param thumbfilePath
* 输出缩略图路�?
* @param square_size
* 输出图片宽度
* @param quality
* 输出图片质量
* @throws IOException
*/
public void createImageThumbnail(Context context, String largeImagePath,
String thumbfilePath, int square_size, int quality)
throws IOException {
BitmapFactory.Options opts = new BitmapFactory.Options();
opts.inSampleSize = 1;
// 原始图片bitmap
Bitmap cur_bitmap = getBitmapByPath(largeImagePath, opts);
if (cur_bitmap == null)
return;
// 原始图片的高�?
int[] cur_img_size = new int[] { cur_bitmap.getWidth(),
cur_bitmap.getHeight() };
// 计算原始图片缩放后的宽高
int[] new_img_size = scaleImageSize(cur_img_size, square_size);
// 生成缩放后的bitmap
Bitmap thb_bitmap = zoomBitmap(cur_bitmap, new_img_size[0],
new_img_size[1]);
// 生成缩放后的图片文件
saveImageToSD(thumbfilePath, thb_bitmap, quality);
}
/**
* 放大缩小图片
*
* @param bitmap
* @param w
* @param h
* @return
*/
public Bitmap zoomBitmap(Bitmap bitmap, int w, int h) {
Bitmap newbmp = null;
if (bitmap != null) {
int width = bitmap.getWidth();
int height = bitmap.getHeight();
Matrix matrix = new Matrix();
float scaleWidht = ((float) w / width);
float scaleHeight = ((float) h / height);
matrix.postScale(scaleWidht, scaleHeight);
newbmp = Bitmap.createBitmap(bitmap, 0, 0, width, height, matrix,
true);
}
return newbmp;
}
public Bitmap scaleBitmap(Bitmap bitmap) {
// 获取这个图片的宽和高
int width = bitmap.getWidth();
int height = bitmap.getHeight();
// 定义预转换成的图片的宽度和高�?
int newWidth = 200;
int newHeight = 200;
// 计算缩放率,新尺寸除原始尺寸
float scaleWidth = ((float) newWidth) / width;
float scaleHeight = ((float) newHeight) / height;
// 创建操作图片用的matrix对象
Matrix matrix = new Matrix();
// 缩放图片动作
matrix.postScale(scaleWidth, scaleHeight);
// 旋转图片 动作
// matrix.postRotate(45);
// 创建新的图片
Bitmap resizedBitmap = Bitmap.createBitmap(bitmap, 0, 0, width, height,
matrix, true);
return resizedBitmap;
}
/**
* (缩放)重绘图片
*
* @param context
* Activity
* @param bitmap
* @return
*/
public Bitmap reDrawBitMap(Activity context, Bitmap bitmap) {
DisplayMetrics dm = new DisplayMetrics();
context.getWindowManager().getDefaultDisplay().getMetrics(dm);
int rHeight = dm.heightPixels;
int rWidth = dm.widthPixels;
// float rHeight=dm.heightPixels/dm.density+0.5f;
// float rWidth=dm.widthPixels/dm.density+0.5f;
// int height=bitmap.getScaledHeight(dm);
// int width = bitmap.getScaledWidth(dm);
int height = bitmap.getHeight();
int width = bitmap.getWidth();
float zoomScale;
/** 方式1 **/
// if(rWidth/rHeight>width/height){//以高为准
// zoomScale=((float) rHeight) / height;
// }else{
// //if(rWidth/rHeight<width/height)//以宽为准
// zoomScale=((float) rWidth) / width;
// }
/** 方式2 **/
// if(width*1.5 >= height) {//以宽为准
// if(width >= rWidth)
// zoomScale = ((float) rWidth) / width;
// else
// zoomScale = 1.0f;
// }else {//以高为准
// if(height >= rHeight)
// zoomScale = ((float) rHeight) / height;
// else
// zoomScale = 1.0f;
// }
/** 方式3 **/
if (width >= rWidth)
zoomScale = ((float) rWidth) / width;
else
zoomScale = 1.0f;
// 创建操作图片用的matrix对象
Matrix matrix = new Matrix();
// 缩放图片动作
matrix.postScale(zoomScale, zoomScale);
Bitmap resizedBitmap = Bitmap.createBitmap(bitmap, 0, 0,
bitmap.getWidth(), bitmap.getHeight(), matrix, true);
return resizedBitmap;
}
/**
* 将Drawable转化为Bitmap
*
* @param drawable
* @return
*/
public Bitmap drawableToBitmap(Drawable drawable) {
int width = drawable.getIntrinsicWidth();
int height = drawable.getIntrinsicHeight();
Bitmap bitmap = Bitmap.createBitmap(width, height, drawable
.getOpacity() != PixelFormat.OPAQUE ? Bitmap.Config.ARGB_8888
: Bitmap.Config.RGB_565);
Canvas canvas = new Canvas(bitmap);
drawable.setBounds(0, 0, width, height);
drawable.draw(canvas);
return bitmap;
}
/**
* 获得圆角图片的方�?
*
* @param bitmap
* @param roundPx
* �?��设成14
* @return
*/
public Bitmap getRoundedCornerBitmap(Bitmap bitmap, float roundPx) {
Bitmap output = Bitmap.createBitmap(bitmap.getWidth(),
bitmap.getHeight(), Config.ARGB_8888);
Canvas canvas = new Canvas(output);
final int color = 0xff424242;
final Paint paint = new Paint();
final Rect rect = new Rect(0, 0, bitmap.getWidth(), bitmap.getHeight());
final RectF rectF = new RectF(rect);
paint.setAntiAlias(true);
canvas.drawARGB(0, 0, 0, 0);
paint.setColor(color);
canvas.drawRoundRect(rectF, roundPx, roundPx, paint);
paint.setXfermode(new PorterDuffXfermode(Mode.SRC_IN));
canvas.drawBitmap(bitmap, rect, rect, paint);
return output;
}
/**
* 获得带�?影的图片方法
*
* @param bitmap
* @return
*/
public Bitmap createReflectionImageWithOrigin(Bitmap bitmap) {
final int reflectionGap = 4;
int width = bitmap.getWidth();
int height = bitmap.getHeight();
Matrix matrix = new Matrix();
matrix.preScale(1, -1);
Bitmap reflectionImage = Bitmap.createBitmap(bitmap, 0, height / 2,
width, height / 2, matrix, false);
Bitmap bitmapWithReflection = Bitmap.createBitmap(width,
(height + height / 2), Config.ARGB_8888);
Canvas canvas = new Canvas(bitmapWithReflection);
canvas.drawBitmap(bitmap, 0, 0, null);
Paint deafalutPaint = new Paint();
canvas.drawRect(0, height, width, height + reflectionGap, deafalutPaint);
canvas.drawBitmap(reflectionImage, 0, height + reflectionGap, null);
Paint paint = new Paint();
LinearGradient shader = new LinearGradient(0, bitmap.getHeight(), 0,
bitmapWithReflection.getHeight() + reflectionGap, 0x70ffffff,
0x00ffffff, TileMode.CLAMP);
paint.setShader(shader);
// Set the Transfer mode to be porter duff and destination in
paint.setXfermode(new PorterDuffXfermode(Mode.DST_IN));
// Draw a rectangle using the paint with our linear gradient
canvas.drawRect(0, height, width, bitmapWithReflection.getHeight()
+ reflectionGap, paint);
return bitmapWithReflection;
}
/**
* 将bitmap转化为drawable
*
* @param bitmap
* @return
*/
public Drawable bitmapToDrawable(Bitmap bitmap) {
Drawable drawable = new BitmapDrawable(bitmap);
return drawable;
}
/**
* 获取图片类型
*
* @param file
* @return
*/
public String getImageType(File file) {
if (file == null || !file.exists()) {
return null;
}
InputStream in = null;
try {
in = new FileInputStream(file);
String type = getImageType(in);
return type;
} catch (IOException e) {
return null;
} finally {
try {
if (in != null) {
in.close();
}
} catch (IOException e) {
}
}
}
/**
* detect bytes's image type by inputstream
*
* @param in
* @return
* @see #getImageType(byte[])
*/
public String getImageType(InputStream in) {
if (in == null) {
return null;
}
try {
byte[] bytes = new byte[8];
in.read(bytes);
return getImageType(bytes);
} catch (IOException e) {
return null;
}
}
/**
* detect bytes's image type
*
* @param bytes
* 2~8 byte at beginning of the image file
* @return image mimetype or null if the file is not image
*/
public String getImageType(byte[] bytes) {
if (isJPEG(bytes)) {
return "image/jpeg";
}
if (isGIF(bytes)) {
return "image/gif";
}
if (isPNG(bytes)) {
return "image/png";
}
if (isBMP(bytes)) {
return "application/x-bmp";
}
return null;
}
private boolean isJPEG(byte[] b) {
if (b.length < 2) {
return false;
}
return (b[0] == (byte) 0xFF) && (b[1] == (byte) 0xD8);
}
private boolean isGIF(byte[] b) {
if (b.length < 6) {
return false;
}
return b[0] == 'G' && b[1] == 'I' && b[2] == 'F' && b[3] == '8'
&& (b[4] == '7' || b[4] == '9') && b[5] == 'a';
}
private boolean isPNG(byte[] b) {
if (b.length < 8) {
return false;
}
return (b[0] == (byte) 137 && b[1] == (byte) 80 && b[2] == (byte) 78
&& b[3] == (byte) 71 && b[4] == (byte) 13 && b[5] == (byte) 10
&& b[6] == (byte) 26 && b[7] == (byte) 10);
}
private boolean isBMP(byte[] b) {
if (b.length < 2) {
return false;
}
return (b[0] == 0x42) && (b[1] == 0x4d);
}
}
| zhanglei920802/ypgl | src/xzd/mobile/android/common/ImageUtils.java | Java | gpl-2.0 | 18,019 | [
30522,
7427,
1060,
26494,
1012,
4684,
1012,
11924,
1012,
2691,
1025,
12324,
9262,
1012,
22834,
1012,
24880,
2906,
9447,
5833,
18780,
21422,
1025,
12324,
9262,
1012,
22834,
1012,
5371,
1025,
12324,
9262,
1012,
22834,
1012,
5371,
2378,
18780,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// Copyright 2015-2017 trivago GmbH
//
// 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 consumer
import (
"github.com/trivago/gollum/core"
"github.com/trivago/tgo/tnet"
"gopkg.in/mcuadros/go-syslog.v2"
"gopkg.in/mcuadros/go-syslog.v2/format"
"sync"
)
// Syslogd consumer plugin
//
// The syslogd consumer accepts messages from a syslogd compatible socket.
//
// Configuration example
//
// - "consumer.Syslogd":
// Address: "udp://0.0.0.0:514"
// Format: "RFC6587"
//
// Address defines the protocol, host and port or socket to bind to.
// This can either be any ip address and port like "localhost:5880" or a file
// like "unix:///var/gollum.socket". By default this is set to "udp://0.0.0.0:514".
// The protocol can be defined along with the address, e.g. "tcp://..." but
// this may be ignored if a certain protocol format does not support the desired
// transport protocol.
//
// Format defines the syslog standard to expect for message encoding.
// Three standards are currently supported, by default this is set to "RFC6587".
// * RFC3164 (https://tools.ietf.org/html/rfc3164) udp only.
// * RFC5424 (https://tools.ietf.org/html/rfc5424) udp only.
// * RFC6587 (https://tools.ietf.org/html/rfc6587) tcp or udp.
type Syslogd struct {
core.SimpleConsumer `gollumdoc:"embed_type"`
format format.Format // RFC3164, RFC5424 or RFC6587?
protocol string
address string
}
func init() {
core.TypeRegistry.Register(Syslogd{})
}
// Configure initializes this consumer with values from a plugin config.
func (cons *Syslogd) Configure(conf core.PluginConfigReader) error {
cons.SimpleConsumer.Configure(conf)
cons.protocol, cons.address = tnet.ParseAddress(conf.GetString("Address", "udp://0.0.0.0:514"), "tcp")
format := conf.GetString("Format", "RFC6587")
switch cons.protocol {
case "udp", "tcp", "unix":
default:
conf.Errors.Pushf("Unknown protocol type %s", cons.protocol) // ### return, unknown protocol ###
}
switch format {
// http://www.ietf.org/rfc/rfc3164.txt
case "RFC3164":
cons.format = syslog.RFC3164
if cons.protocol == "tcp" {
cons.Log.Warning.Print("RFC3164 demands UDP")
cons.protocol = "udp"
}
// https://tools.ietf.org/html/rfc5424
case "RFC5424":
cons.format = syslog.RFC5424
if cons.protocol == "tcp" {
cons.Log.Warning.Print("RFC5424 demands UDP")
cons.protocol = "udp"
}
// https://tools.ietf.org/html/rfc6587
case "RFC6587":
cons.format = syslog.RFC6587
default:
conf.Errors.Pushf("Format %s is not supported", format)
}
return conf.Errors.OrNil()
}
// Handle implements the syslog handle interface
func (cons *Syslogd) Handle(parts format.LogParts, code int64, err error) {
content := ""
isString := false
switch cons.format {
case syslog.RFC3164:
content, isString = parts["content"].(string)
case syslog.RFC5424, syslog.RFC6587:
content, isString = parts["message"].(string)
default:
cons.Log.Error.Print("Could not determine the format to retrieve message/content")
}
if !isString {
cons.Log.Error.Print("Message/Content is not a string")
return
}
cons.Enqueue([]byte(content))
}
// Consume opens a new syslog socket.
// Messages are expected to be separated by \n.
func (cons *Syslogd) Consume(workers *sync.WaitGroup) {
server := syslog.NewServer()
server.SetFormat(cons.format)
server.SetHandler(cons)
switch cons.protocol {
case "unix":
if err := server.ListenUnixgram(cons.address); err != nil {
cons.Log.Error.Print("Failed to open unix://", cons.address)
}
case "udp":
if err := server.ListenUDP(cons.address); err != nil {
cons.Log.Error.Print("Failed to open udp://", cons.address)
}
case "tcp":
if err := server.ListenTCP(cons.address); err != nil {
cons.Log.Error.Print("Failed to open tcp://", cons.address)
}
}
server.Boot()
defer server.Kill()
cons.ControlLoop()
server.Wait()
}
| mre/gollum | consumer/syslogd.go | GO | apache-2.0 | 4,404 | [
30522,
1013,
1013,
9385,
2325,
1011,
2418,
13012,
3567,
3995,
18289,
1013,
1013,
1013,
1013,
7000,
2104,
1996,
15895,
6105,
1010,
2544,
1016,
1012,
1014,
1006,
1996,
1000,
6105,
1000,
1007,
1025,
1013,
1013,
2017,
2089,
2025,
2224,
2023,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
'use strict'
class ScheduleEvents {
constructor (aws) {
// Authenticated `aws` object in `lib/main.js`
this.lambda = new aws.Lambda({
apiVersion: '2015-03-31'
})
this.cloudwatchevents = new aws.CloudWatchEvents({
apiVersion: '2015-10-07'
})
}
_ruleDescription (params) {
if ('ScheduleDescription' in params && params.ScheduleDescription != null) {
return `${params.ScheduleDescription}`
}
return `${params.ScheduleName} - ${params.ScheduleExpression}`
}
_functionName (params) {
return params.FunctionArn.split(':').pop()
}
_putRulePrams (params) {
return {
Name: params.ScheduleName,
Description: this._ruleDescription(params),
State: params.ScheduleState,
ScheduleExpression: params.ScheduleExpression
}
}
_putRule (params) {
// return RuleArn if created
return new Promise((resolve, reject) => {
const _params = this._putRulePrams(params)
this.cloudwatchevents.putRule(_params, (err, rule) => {
if (err) reject(err)
resolve(rule)
})
})
}
_addPermissionParams (params) {
return {
Action: 'lambda:InvokeFunction',
FunctionName: this._functionName(params),
Principal: 'events.amazonaws.com',
SourceArn: params.RuleArn,
StatementId: params.ScheduleName
}
}
_addPermission (params) {
return new Promise((resolve, reject) => {
const _params = this._addPermissionParams(params)
this.lambda.addPermission(_params, (err, data) => {
if (err) {
if (err.code !== 'ResourceConflictException') reject(err)
// If it exists it will result in an error but there is no problem.
resolve('Permission already set')
}
resolve(data)
})
})
}
_putTargetsParams (params) {
return {
Rule: params.ScheduleName,
Targets: [{
Arn: params.FunctionArn,
Id: this._functionName(params),
Input: params.hasOwnProperty('Input') ? JSON.stringify(params.Input) : ''
}]
}
}
_putTargets (params) {
return new Promise((resolve, reject) => {
const _params = this._putTargetsParams(params)
this.cloudwatchevents.putTargets(_params, (err, data) => {
// even if it is already registered, it will not be an error.
if (err) reject(err)
resolve(data)
})
})
}
add (params) {
return Promise.resolve().then(() => {
return this._putRule(params)
}).then(rule => {
return this._addPermission(Object.assign(params, rule))
}).then(data => {
return this._putTargets(params)
})
}
}
module.exports = ScheduleEvents
| teebu/node-lambda | lib/schedule_events.js | JavaScript | bsd-2-clause | 2,692 | [
30522,
1005,
2224,
9384,
1005,
2465,
6134,
18697,
7666,
1063,
9570,
2953,
1006,
22091,
2015,
1007,
1063,
1013,
1013,
14469,
4383,
1036,
22091,
2015,
1036,
4874,
1999,
1036,
5622,
2497,
1013,
2364,
1012,
1046,
2015,
1036,
2023,
1012,
23375,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
* Copyright 2009 Aleksandar Seovic
*
* 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 com.seovic.core.factory;
import com.seovic.core.Factory;
import java.util.LinkedHashMap;
import java.util.Map;
/**
* {@link Factory} implementation that creates a <tt>java.util.LinkedHashMap</tt>
* instance.
*
* @author Aleksandar Seovic 2010.11.08
*/
public class LinkedHashMapFactory<K, V>
extends AbstractFactory<Map<K, V>> {
private static final long serialVersionUID = -2766923385818267291L;
/**
* {@inheritDoc}
*/
@Override
public Map<K, V> create() {
return new LinkedHashMap<K, V>();
}
} | aseovic/coherence-tools | core/src/main/java/com/seovic/core/factory/LinkedHashMapFactory.java | Java | apache-2.0 | 1,163 | [
30522,
1013,
1008,
1008,
9385,
2268,
15669,
5705,
13832,
2099,
27457,
7903,
1008,
1008,
7000,
2104,
1996,
15895,
6105,
1010,
2544,
1016,
1012,
1014,
1006,
1996,
1000,
6105,
1000,
1007,
1025,
1008,
2017,
2089,
2025,
2224,
2023,
5371,
3272,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
demo-emulator [](https://travis-ci.org/drhelius/demo-emulator)
=======
<b>Copyright © 2016 by Ignacio Sanchez</b>
Nintendo Game Boy emulator written in Go to be used in workshops about emulator programming.
Follow me on Twitter for updates: http://twitter.com/drhelius
 
Presentation
------------
https://speakerdeck.com/drhelius/8-bit-emulator-programming-with-go
Requirements
------------
Before you start, make sure you have Go installed and ready to build applications: https://golang.org/doc/install
Once you have a working Go environment you'll need to install the following dependecies:
#### Windows
- GCC 64 bit installed: http://tdm-gcc.tdragon.net/download
#### Linux
- Ubuntu: <code>sudo apt-get install build-essential libgl1-mesa-dev xorg-dev</code>
- Fedora: <code>sudo dnf install @development-tools libX11-devel libXcursor-devel libXrandr-devel libXinerama-devel mesa-libGL-devel libXi-devel</code>
#### Mac OS X
- You need Xcode or Command Line Tools for Xcode (<code>xcode-select --install</code>) for required headers and libraries.
Building
--------
Run this command to let Go download and build the sources. You don't even need to clone this repo, Go will do it for you:
```
go get -u github.com/drhelius/demo-emulator
```
Running
-------
Once built you can find the emulator binary in <code>$GOPATH/bin</code>. Use it with the <code>-rom</code> argument in order to load a Game Boy ROM file:
```
$GOPATH/bin/demo-emulator -rom path/to/your_rom.gb
```
Controls
--------
```
START = Enter
SELECT = Space
A = S
B = A
Pad = Cursors
```
License
-------
<i>This program is free software: you can redistribute it and/or modify</i>
<i>it under the terms of the GNU General Public License as published by</i>
<i>the Free Software Foundation, either version 3 of the License, or</i>
<i>any later version.</i>
<i>This program is distributed in the hope that it will be useful,</i>
<i>but WITHOUT ANY WARRANTY; without even the implied warranty of</i>
<i>MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</i>
<i>GNU General Public License for more details.</i>
<i>You should have received a copy of the GNU General Public License</i>
<i>along with this program. If not, see http://www.gnu.org/licenses/</i>
| drhelius/demo-emulator | README.md | Markdown | gpl-3.0 | 2,449 | [
30522,
9703,
1011,
7861,
20350,
1031,
999,
1031,
3857,
3570,
1033,
1006,
16770,
1024,
1013,
1013,
10001,
1011,
25022,
1012,
8917,
1013,
2852,
16001,
4173,
1013,
9703,
1011,
7861,
20350,
1012,
17917,
2290,
1029,
3589,
1027,
3040,
1007,
1033,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<?php
/*
+---------------------------------------------------------------------------+
| OpenX v2.8 |
| ========== |
| |
| Copyright (c) 2003-2009 OpenX Limited |
| For contact details, see: http://www.openx.org/ |
| |
| This program is free software; you can redistribute it and/or modify |
| it under the terms of the GNU General Public License as published by |
| the Free Software Foundation; either version 2 of the License, or |
| (at your option) any later version. |
| |
| This program is distributed in the hope that it will be useful, |
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| GNU General Public License for more details. |
| |
| You should have received a copy of the GNU General Public License |
| along with this program; if not, write to the Free Software |
| Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
+---------------------------------------------------------------------------+
$Id: res-iso639.inc.php 79311 2011-11-03 21:18:14Z chris.nutting $
*/
// This is by no means a complete list of all iso639-1 codes, but rather
// an unofficial list used by most browsers. If you have corrections or
// additions to this list, please send them to niels@creatype.nl
$phpAds_ISO639['af'] = 'Afrikaans';
$phpAds_ISO639['sq'] = 'Albanian';
$phpAds_ISO639['eu'] = 'Basque';
$phpAds_ISO639['bg'] = 'Bulgarian';
$phpAds_ISO639['be'] = 'Byelorussian';
$phpAds_ISO639['ca'] = 'Catalan';
$phpAds_ISO639['zh'] = 'Chinese';
$phpAds_ISO639['zh-cn'] = '- Chinese/China';
$phpAds_ISO639['zh-tw'] = '- Chinese/Taiwan';
$phpAds_ISO639['hr'] = 'Croatian';
$phpAds_ISO639['cs'] = 'Czech';
$phpAds_ISO639['da'] = 'Danish';
$phpAds_ISO639['nl'] = 'Dutch';
$phpAds_ISO639['nl-be'] = '- Dutch/Belgium';
$phpAds_ISO639['en'] = 'English';
$phpAds_ISO639['en-gb'] = '- English/United Kingdom';
$phpAds_ISO639['en-us'] = '- English/United States';
$phpAds_ISO639['fo'] = 'Faeroese';
$phpAds_ISO639['fi'] = 'Finnish';
$phpAds_ISO639['fr'] = 'French';
$phpAds_ISO639['fr-be'] = '- French/Belgium';
$phpAds_ISO639['fr-ca'] = '- French/Canada';
$phpAds_ISO639['fr-fr'] = '- French/France';
$phpAds_ISO639['fr-ch'] = '- French/Switzerland';
$phpAds_ISO639['gl'] = 'Galician';
$phpAds_ISO639['de'] = 'German';
$phpAds_ISO639['de-au'] = '- German/Austria';
$phpAds_ISO639['de-de'] = '- German/Germany';
$phpAds_ISO639['de-ch'] = '- German/Switzerland';
$phpAds_ISO639['el'] = 'Greek';
$phpAds_ISO639['hu'] = 'Hungarian';
$phpAds_ISO639['is'] = 'Icelandic';
$phpAds_ISO639['id'] = 'Indonesian';
$phpAds_ISO639['ga'] = 'Irish';
$phpAds_ISO639['it'] = 'Italian';
$phpAds_ISO639['ja'] = 'Japanese';
$phpAds_ISO639['ko'] = 'Korean';
$phpAds_ISO639['mk'] = 'Macedonian';
$phpAds_ISO639['no'] = 'Norwegian';
$phpAds_ISO639['pl'] = 'Polish';
$phpAds_ISO639['pt'] = 'Portuguese';
$phpAds_ISO639['pt-br'] = '- Portuguese/Brazil';
$phpAds_ISO639['ro'] = 'Romanian';
$phpAds_ISO639['ru'] = 'Russian';
$phpAds_ISO639['gd'] = 'Scots Gaelic';
$phpAds_ISO639['sr'] = 'Serbian';
$phpAds_ISO639['sk'] = 'Slovak';
$phpAds_ISO639['sl'] = 'Slovenian';
$phpAds_ISO639['es'] = 'Spanish';
$phpAds_ISO639['es-ar'] = '- Spanish/Argentina';
$phpAds_ISO639['es-co'] = '- Spanish/Colombia';
$phpAds_ISO639['es-mx'] = '- Spanish/Mexico';
$phpAds_ISO639['es-es'] = '- Spanish/Spain';
$phpAds_ISO639['sv'] = 'Swedish';
$phpAds_ISO639['tr'] = 'Turkish';
$phpAds_ISO639['uk'] = 'Ukrainian';
$phpAds_ISO639['bs'] = 'Bosnian';
// Load localized strings
if (file_exists(MAX_PATH.'/lib/max/language/'.$pref['language'].'/res-iso639.lang.php'))
@include(MAX_PATH.'/lib/max/language/'.$pref['language'].'/res-iso639.lang.php');
?>
| kriwil/OpenX | lib/max/resources/res-iso639.inc.php | PHP | gpl-2.0 | 4,325 | [
30522,
1026,
1029,
25718,
1013,
1008,
1009,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
30524,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1011,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
onst bcrypt = require('bcrypt-nodejs');
const crypto = require('crypto');
console.log('start');
bcrypt.genSalt(10, (err, salt) => {
bcrypt.hash('passwd', salt, null, (err, hash) => {
console.log(hash);
});
});
| mrwolfyu/meteo-bbb | xxx.js | JavaScript | mit | 231 | [
30522,
2006,
3367,
4647,
2854,
13876,
1027,
5478,
1006,
1005,
4647,
2854,
13876,
1011,
13045,
22578,
1005,
1007,
1025,
9530,
3367,
19888,
2080,
1027,
5478,
1006,
1005,
19888,
2080,
1005,
1007,
1025,
10122,
1012,
8833,
1006,
1005,
2707,
1005... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
# Parser.Many<T> method
Always succeeds. The value is a collection of as many items as can be successfully parsed.
```csharp
public static IParser<IReadOnlyList<T>> Many<T>(this IParser<T> parser)
```
## See Also
* interface [IParser<T>](../IParser-1.md)
* class [Parser](../Parser.md)
* namespace [Faithlife.Parsing](../../Faithlife.Parsing.md)
<!-- DO NOT EDIT: generated by xmldocmd for Faithlife.Parsing.dll -->
| Faithlife/Parsing | docs/Faithlife.Parsing/Parser/Many.md | Markdown | mit | 436 | [
30522,
1001,
11968,
8043,
1012,
2116,
1004,
8318,
1025,
1056,
1004,
14181,
1025,
4118,
2467,
21645,
1012,
1996,
3643,
2003,
1037,
3074,
1997,
2004,
2116,
5167,
2004,
2064,
2022,
5147,
11968,
6924,
1012,
1036,
1036,
1036,
20116,
8167,
2361,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<?php
namespace Noherczeg\RestExt\Exceptions;
use RuntimeException;
class NotFoundException extends \RuntimeException {} | noherczeg/RestExt | src/Noherczeg/RestExt/Exceptions/NotFoundException.php | PHP | mit | 123 | [
30522,
1026,
1029,
25718,
3415,
15327,
2053,
5886,
27966,
13910,
1032,
2717,
10288,
2102,
1032,
11790,
1025,
2224,
2448,
7292,
10288,
24422,
1025,
2465,
2025,
14876,
8630,
10288,
24422,
8908,
1032,
2448,
7292,
10288,
24422,
1063,
1065,
102,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<!DOCTYPE html>
<html lang="en"><head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Statistics: Line counts for each chapter | Programming Language Foundations in Agda
</title><!-- Begin Jekyll SEO tag v2.6.1 -->
<meta name="generator" content="Jekyll v3.9.0" />
<meta property="og:title" content="Statistics: Line counts for each chapter" />
<meta property="og:locale" content="en_US" />
<meta name="description" content="Programming Language Foundations in Agda" />
<meta property="og:description" content="Programming Language Foundations in Agda" />
<link rel="canonical" href="https://plfa.github.io/19.08/Statistics/" />
<meta property="og:url" content="https://plfa.github.io/19.08/Statistics/" />
<meta property="og:site_name" content="Programming Language Foundations in Agda" />
<script type="application/ld+json">
{"url":"https://plfa.github.io/19.08/Statistics/","headline":"Statistics: Line counts for each chapter","description":"Programming Language Foundations in Agda","@type":"WebPage","@context":"https://schema.org"}</script>
<!-- End Jekyll SEO tag -->
<link rel="stylesheet" href="/19.08/assets/main.css"></head>
<body><header class="site-header" role="banner">
<div class="wrapper">
<a class="site-title" href="/19.08/">Programming Language Foundations in Agda
</a>
<nav class="site-nav">
<span class="menu-icon">
<svg viewBox="0 0 18 15" width="18px" height="15px">
<path fill="#424242" d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.031C17.335,0,18,0.665,18,1.484L18,1.484z"/>
<path fill="#424242" d="M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0c0-0.82,0.665-1.484,1.484-1.484 h15.031C17.335,6.031,18,6.696,18,7.516L18,7.516z"/>
<path fill="#424242" d="M18,13.516C18,14.335,17.335,15,16.516,15H1.484C0.665,15,0,14.335,0,13.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.031C17.335,12.031,18,12.696,18,13.516L18,13.516z"/>
</svg>
</span>
<div class="trigger">
<a class="page-link" href="/19.08/">The Book</a>
<a class="page-link" href="/19.08/Announcements/">Announcements</a>
<a class="page-link" href="/19.08/GettingStarted/">Getting Started</a>
<a class="page-link" href="/19.08/Citing/">Citing</a>
<a class="page-link" href="https://agda-zh.github.io/PLFA-zh/">中文</a>
</div>
</nav>
</div>
</header>
<main class="page-content" aria-label="Content">
<div class="wrapper">
<article class="post">
<header class="post-header">
<h1 class="post-title">Statistics: Line counts for each chapter</h1>
</header>
<p style="text-align:center;">
<a alt="Previous chapter" href="/19.08/Fonts/">Prev</a>
</p>
<div class="post-content">
<p>Total number of lines and number of lines of Agda code in each chapter
(as of 16 March 2019).</p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code> total code
----- ----
Preface 110 0
Naturals 975 96
Induction 926 129
Relations 792 158
Equality 722 189
Isomorphism 505 209
Connectives 787 219
Negation 417 65
Quantifiers 469 104
Decidable 587 167
Lists 1052 448
Lambda 1385 362
Properties 1580 544
DeBruijn 1366 587
More 1222 464
Bisimulation 486 96
Inference 1124 333
Untyped 777 299
Acknowledgements 55 0
Fonts 82 64
Statistics 36 0
</code></pre></div></div>
</div>
<p style="text-align:center;">
<a alt="Previous chapter" href="/19.08/Fonts/">Prev</a>
</p>
</article>
</div>
</main><footer class="site-footer h-card">
<data class="u-url" href="/19.08/"></data>
<div class="wrapper">
<h2 class="footer-heading">Programming Language Foundations in Agda
</h2><div class="footer-col-wrapper">
<div class="footer-col footer-col-1">
<ul class="contact-list">
<li class="p-name">Philip Wadler</li>
<li><a class="u-email" href="mailto:wadler@inf.ed.ac.uk">wadler@inf.ed.ac.uk</a></li>
</ul>
</div>
<div class="footer-col footer-col-2"><ul class="social-media-list"><li><a href="https://github.com/wadler"><svg class="svg-icon"><use xlink:href="/19.08/assets/minima-social-icons.svg#github"></use></svg> <span class="username">wadler</span></a></li></ul>
</div>
<div class="footer-col footer-col-3"></div>
</div><div class="footer-col-wrapper">
<div class="footer-col footer-col-1">
<ul class="contact-list">
<li class="p-name">Wen Kokke</li>
<li><a class="u-email" href="mailto:wen.kokke@ed.ac.uk">wen.kokke@ed.ac.uk</a></li>
</ul>
</div>
<div class="footer-col footer-col-2"><ul class="social-media-list"><li><a href="https://github.com/wenkokke"><svg class="svg-icon"><use xlink:href="/19.08/assets/minima-social-icons.svg#github"></use></svg> <span class="username">wenkokke</span></a></li><li><a href="https://www.twitter.com/wenkokke"><svg class="svg-icon"><use xlink:href="/19.08/assets/minima-social-icons.svg#twitter"></use></svg> <span class="username">wenkokke</span></a></li></ul>
</div>
<div class="footer-col footer-col-3"></div>
</div><div class="footer-col-wrapper">
<div class="footer-col footer-col-1">
<ul class="contact-list">
<li class="p-name">Jeremy Siek</li>
<li><a class="u-email" href="mailto:jsiek@indiana.edu">jsiek@indiana.edu</a></li>
</ul>
</div>
<div class="footer-col footer-col-2"><ul class="social-media-list"><li><a href="https://github.com/jsiek"><svg class="svg-icon"><use xlink:href="/19.08/assets/minima-social-icons.svg#github"></use></svg> <span class="username">jsiek</span></a></li><li><a href="https://www.twitter.com/jeremysiek"><svg class="svg-icon"><use xlink:href="/19.08/assets/minima-social-icons.svg#twitter"></use></svg> <span class="username">jeremysiek</span></a></li></ul>
</div>
<div class="footer-col footer-col-3"></div>
</div>This work is licensed under a <a rel="license" href="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>
</div>
</footer>
<!-- Import jQuery -->
<script type="text/javascript" src="/19.08/assets/jquery.js"></script>
<script type="text/javascript">
// Makes sandwhich menu works
$('.menu-icon').click(function(){
$('.trigger').toggle();
});
// Script which allows for foldable code blocks
$('div.foldable pre').each(function(){
var autoHeight = $(this).height();
var lineHeight = parseFloat($(this).css('line-height'));
var plus = $("<div></div>");
var horLine = $("<div></div>");
var verLine = $("<div></div>");
$(this).prepend(plus);
plus.css({
'position' : 'relative',
'float' : 'right',
'right' : '-' + (0.5 * lineHeight - 1.5) + 'px',
'width' : lineHeight,
'height' : lineHeight});
verLine.css({
'position' : 'relative',
'height' : lineHeight,
'width' : '3px',
'background-color' : '#C1E0FF'});
horLine.css({
'position' : 'relative',
'top' : '-' + (0.5 * lineHeight + 1.5) + 'px',
'left' : '-' + (0.5 * lineHeight - 1.5) + 'px',
'height' : '3px',
'width' : lineHeight,
'background-color' : '#C1E0FF'});
plus.append(verLine);
plus.append(horLine);
$(this).height(2.0 * lineHeight);
$(this).css('overflow','hidden');
$(this).click(function(){
if ($(this).height() == autoHeight) {
$(this).height(2.0 * lineHeight);
plus.show();
}
else {
$(this).height('auto');
plus.hide();
}
});
});
</script>
<!-- Import KaTeX -->
<script type="text/javascript" src="/19.08/assets/katex.js"></script>
<!-- Script which renders TeX using KaTeX -->
<script type="text/javascript">
$("script[type='math/tex']").replaceWith(
function(){
var tex = $(this).text();
return "<span class=\"inline-equation\">" +
katex.renderToString(tex) +
"</span>";
});
$("script[type='math/tex; mode=display']").replaceWith(
function(){
var tex = $(this).text().replace(/%.*?(\n|$)/g,"");
return "<div class=\"equation\">" +
katex.renderToString("\\displaystyle "+tex) +
"</div>";
});
</script>
</body>
</html>
| wenkokke/sf | versions/19.08/Statistics/index.html | HTML | mit | 9,394 | [
30522,
1026,
999,
9986,
13874,
16129,
1028,
1026,
16129,
11374,
1027,
1000,
4372,
1000,
1028,
1026,
2132,
1028,
1026,
18804,
25869,
13462,
1027,
1000,
21183,
2546,
1011,
1022,
1000,
1028,
1026,
18804,
8299,
1011,
1041,
15549,
2615,
1027,
10... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
declare module Virtex {
interface IOptions {
ambientLightColor: number;
cameraZ: number;
directionalLight1Color: number;
directionalLight1Intensity: number;
directionalLight2Color: number;
directionalLight2Intensity: number;
doubleSided: boolean;
element: string;
fadeSpeed: number;
far: number;
fov: number;
maxZoom: number;
minZoom: number;
near: number;
object: string;
shading: THREE.Shading;
shininess: number;
showStats: boolean;
zoomSpeed: number;
}
}
interface IVirtex {
create: (options: Virtex.IOptions) => Virtex.Viewport;
}
declare var Detector: any;
declare var Stats: any;
declare var requestAnimFrame: any;
declare module Virtex {
class Viewport {
options: IOptions;
private _$element;
private _$viewport;
private _$loading;
private _$loadingBar;
private _$oldie;
private _camera;
private _lightGroup;
private _modelGroup;
private _renderer;
private _scene;
private _stats;
private _viewportHalfX;
private _viewportHalfY;
private _isMouseDown;
private _mouseX;
private _mouseXOnMouseDown;
private _mouseY;
private _mouseYOnMouseDown;
private _pinchStart;
private _targetRotationOnMouseDownX;
private _targetRotationOnMouseDownY;
private _targetRotationX;
private _targetRotationY;
private _targetZoom;
constructor(options: IOptions);
private _init();
private _loadProgress(progress);
private _onMouseDown(event);
private _onMouseMove(event);
private _onMouseUp(event);
private _onMouseOut(event);
private _onMouseWheel(event);
private _onTouchStart(event);
private _onTouchMove(event);
private _onTouchEnd(event);
private _draw();
private _render();
private _getWidth();
private _getHeight();
zoomIn(): void;
zoomOut(): void;
private _resize();
}
}
| perryrothjohnson/artifact-database | pawtucket/assets/universalviewer/src/typings/virtex.d.ts | TypeScript | gpl-3.0 | 2,184 | [
30522,
13520,
11336,
6819,
19731,
2595,
1063,
8278,
22834,
16790,
2015,
1063,
17093,
7138,
18717,
1024,
2193,
1025,
4950,
2480,
1024,
2193,
1025,
20396,
7138,
2487,
18717,
1024,
2193,
1025,
20396,
7138,
2487,
18447,
6132,
3012,
1024,
2193,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="et" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Mercury</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+39"/>
<source><b>Mercury</b> version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+41"/>
<source>Copyright © 2009-2014 The Bitcoin developers
Copyright © 2012-2014 The NovaCoin developers
Copyright © 2014 The Mercury developers</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>
This is experimental software.
Distributed under the MIT/X11 software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php.
This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard.</source>
<translation>⏎
See on eksperimentaalne tarkvara.⏎
⏎
Levitatud MIT/X11 tarkvara litsentsi all, vaata kaasasolevat faili COPYING või http://www.opensource.org/licenses/mit-license.php⏎
⏎
Toode sisaldab OpenSSL Projekti all toodetud tarkvara, mis on kasutamiseks OpenSSL Toolkitis (http://www.openssl.org/) ja Eric Young'i poolt loodud krüptograafilist tarkvara (eay@cryptsoft.com) ning Thomas Bernard'i loodud UPnP tarkvara.</translation>
</message>
</context>
<context>
<name>AddressBookPage</name>
<message>
<location filename="../forms/addressbookpage.ui" line="+14"/>
<source>Address Book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+22"/>
<source>Double-click to edit address or label</source>
<translation>Topeltklõps aadressi või märgise muutmiseks</translation>
</message>
<message>
<location line="+27"/>
<source>Create a new address</source>
<translation>Loo uus aadress</translation>
</message>
<message>
<location line="+14"/>
<source>Copy the currently selected address to the system clipboard</source>
<translation>Kopeeri märgistatud aadress vahemällu</translation>
</message>
<message>
<location line="-11"/>
<source>&New Address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-46"/>
<source>These are your Mercury addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+60"/>
<source>&Copy Address</source>
<translation>&Aadressi kopeerimine</translation>
</message>
<message>
<location line="+11"/>
<source>Show &QR Code</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Sign a message to prove you own a Mercury address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Sign &Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Delete the currently selected address from the list</source>
<translation>Kustuta märgistatud aadress loetelust</translation>
</message>
<message>
<location line="-14"/>
<source>Verify a message to ensure it was signed with a specified Mercury address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Verify Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>&Delete</source>
<translation>&Kustuta</translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="+65"/>
<source>Copy &Label</source>
<translation>&Märgise kopeerimine</translation>
</message>
<message>
<location line="+2"/>
<source>&Edit</source>
<translation>&Muuda</translation>
</message>
<message>
<location line="+250"/>
<source>Export Address Book Data</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation>Komaeraldatud fail (*.csv)</translation>
</message>
<message>
<location line="+13"/>
<source>Error exporting</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>AddressTableModel</name>
<message>
<location filename="../addresstablemodel.cpp" line="+144"/>
<source>Label</source>
<translation>Silt</translation>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Aadress</translation>
</message>
<message>
<location line="+36"/>
<source>(no label)</source>
<translation>(silti pole)</translation>
</message>
</context>
<context>
<name>AskPassphraseDialog</name>
<message>
<location filename="../forms/askpassphrasedialog.ui" line="+26"/>
<source>Passphrase Dialog</source>
<translation>Salafraasi dialoog</translation>
</message>
<message>
<location line="+21"/>
<source>Enter passphrase</source>
<translation>Sisesta salafraas</translation>
</message>
<message>
<location line="+14"/>
<source>New passphrase</source>
<translation>Uus salafraas</translation>
</message>
<message>
<location line="+14"/>
<source>Repeat new passphrase</source>
<translation>Korda salafraasi</translation>
</message>
<message>
<location line="+33"/>
<source>Serves to disable the trivial sendmoney when OS account compromised. Provides no real security.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>For staking only</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="+35"/>
<source>Enter the new passphrase to the wallet.<br/>Please use a passphrase of <b>10 or more random characters</b>, or <b>eight or more words</b>.</source>
<translation>Sisesta rahakotile uus salafraas.<br/>Palun kasuta salafraasina <b>vähemalt 10 tähte/numbrit/sümbolit</b>, või <b>vähemalt 8 sõna</b>.</translation>
</message>
<message>
<location line="+1"/>
<source>Encrypt wallet</source>
<translation>Krüpteeri rahakott</translation>
</message>
<message>
<location line="+7"/>
<source>This operation needs your wallet passphrase to unlock the wallet.</source>
<translation>See toiming nõuab sinu rahakoti salafraasi.</translation>
</message>
<message>
<location line="+5"/>
<source>Unlock wallet</source>
<translation>Tee rahakott lukust lahti.</translation>
</message>
<message>
<location line="+3"/>
<source>This operation needs your wallet passphrase to decrypt the wallet.</source>
<translation>See toiming nõuab sinu rahakoti salafraasi.</translation>
</message>
<message>
<location line="+5"/>
<source>Decrypt wallet</source>
<translation>Dekrüpteeri rahakott.</translation>
</message>
<message>
<location line="+3"/>
<source>Change passphrase</source>
<translation>Muuda salafraasi</translation>
</message>
<message>
<location line="+1"/>
<source>Enter the old and new passphrase to the wallet.</source>
<translation>Sisesta rahakoti vana ning uus salafraas.</translation>
</message>
<message>
<location line="+46"/>
<source>Confirm wallet encryption</source>
<translation>Kinnita rahakoti krüpteering</translation>
</message>
<message>
<location line="+1"/>
<source>Warning: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR COINS</b>!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Are you sure you wish to encrypt your wallet?</source>
<translation>Kas soovid oma rahakoti krüpteerida?</translation>
</message>
<message>
<location line="+15"/>
<source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source>
<translation>TÄHTIS: Kõik varasemad rahakoti varundfailid tuleks üle kirjutada äsja loodud krüpteeritud rahakoti failiga. Turvakaalutlustel tühistatakse krüpteerimata rahakoti failid alates uue, krüpteeritud rahakoti, kasutusele võtust.</translation>
</message>
<message>
<location line="+103"/>
<location line="+24"/>
<source>Warning: The Caps Lock key is on!</source>
<translation>Hoiatus: Caps Lock on sisse lülitatud!</translation>
</message>
<message>
<location line="-133"/>
<location line="+60"/>
<source>Wallet encrypted</source>
<translation>Rahakott krüpteeritud</translation>
</message>
<message>
<location line="-58"/>
<source>Mercury will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your coins from being stolen by malware infecting your computer.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<location line="+7"/>
<location line="+44"/>
<location line="+6"/>
<source>Wallet encryption failed</source>
<translation>Tõrge rahakoti krüpteerimisel</translation>
</message>
<message>
<location line="-56"/>
<source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source>
<translation>Rahakoti krüpteering ebaõnnestus tõrke tõttu. Sinu rahakotti ei krüpteeritud.</translation>
</message>
<message>
<location line="+7"/>
<location line="+50"/>
<source>The supplied passphrases do not match.</source>
<translation>Salafraasid ei kattu.</translation>
</message>
<message>
<location line="-38"/>
<source>Wallet unlock failed</source>
<translation>Rahakoti avamine ebaõnnestus</translation>
</message>
<message>
<location line="+1"/>
<location line="+12"/>
<location line="+19"/>
<source>The passphrase entered for the wallet decryption was incorrect.</source>
<translation>Rahakoti salafraas ei ole õige.</translation>
</message>
<message>
<location line="-20"/>
<source>Wallet decryption failed</source>
<translation>Rahakoti dekrüpteerimine ei õnnestunud</translation>
</message>
<message>
<location line="+14"/>
<source>Wallet passphrase was successfully changed.</source>
<translation>Rahakoti salafraasi muutmine õnnestus.</translation>
</message>
</context>
<context>
<name>BitcoinGUI</name>
<message>
<location filename="../bitcoingui.cpp" line="+282"/>
<source>Sign &message...</source>
<translation>Signeeri &sõnum</translation>
</message>
<message>
<location line="+251"/>
<source>Synchronizing with network...</source>
<translation>Võrgusünkimine...</translation>
</message>
<message>
<location line="-319"/>
<source>&Overview</source>
<translation>&Ülevaade</translation>
</message>
<message>
<location line="+1"/>
<source>Show general overview of wallet</source>
<translation>Kuva rahakoti üld-ülevaade</translation>
</message>
<message>
<location line="+17"/>
<source>&Transactions</source>
<translation>&Tehingud</translation>
</message>
<message>
<location line="+1"/>
<source>Browse transaction history</source>
<translation>Sirvi tehingute ajalugu</translation>
</message>
<message>
<location line="+5"/>
<source>&Address Book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Edit the list of stored addresses and labels</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-13"/>
<source>&Receive coins</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show the list of addresses for receiving payments</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-7"/>
<source>&Send coins</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>E&xit</source>
<translation>V&älju</translation>
</message>
<message>
<location line="+1"/>
<source>Quit application</source>
<translation>Väljumine</translation>
</message>
<message>
<location line="+6"/>
<source>Show information about Mercury</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>About &Qt</source>
<translation>Teave &Qt kohta</translation>
</message>
<message>
<location line="+1"/>
<source>Show information about Qt</source>
<translation>Kuva Qt kohta käiv info</translation>
</message>
<message>
<location line="+2"/>
<source>&Options...</source>
<translation>&Valikud...</translation>
</message>
<message>
<location line="+4"/>
<source>&Encrypt Wallet...</source>
<translation>&Krüpteeri Rahakott</translation>
</message>
<message>
<location line="+3"/>
<source>&Backup Wallet...</source>
<translation>&Varunda Rahakott</translation>
</message>
<message>
<location line="+2"/>
<source>&Change Passphrase...</source>
<translation>&Salafraasi muutmine</translation>
</message>
<message numerus="yes">
<location line="+259"/>
<source>~%n block(s) remaining</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+6"/>
<source>Downloaded %1 of %2 blocks of transaction history (%3% done).</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-256"/>
<source>&Export...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-64"/>
<source>Send coins to a Mercury address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+47"/>
<source>Modify configuration options for Mercury</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>Export the data in the current tab to a file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-14"/>
<source>Encrypt or decrypt wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Backup wallet to another location</source>
<translation>Varunda rahakott teise asukohta</translation>
</message>
<message>
<location line="+2"/>
<source>Change the passphrase used for wallet encryption</source>
<translation>Rahakoti krüpteerimise salafraasi muutmine</translation>
</message>
<message>
<location line="+10"/>
<source>&Debug window</source>
<translation>&Debugimise aken</translation>
</message>
<message>
<location line="+1"/>
<source>Open debugging and diagnostic console</source>
<translation>Ava debugimise ja diagnostika konsool</translation>
</message>
<message>
<location line="-5"/>
<source>&Verify message...</source>
<translation>&Kontrolli sõnumit...</translation>
</message>
<message>
<location line="-202"/>
<source>Mercury</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Wallet</source>
<translation>Rahakott</translation>
</message>
<message>
<location line="+180"/>
<source>&About Mercury</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>&Show / Hide</source>
<translation>&Näita / Peida</translation>
</message>
<message>
<location line="+9"/>
<source>Unlock wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>&Lock Wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Lock wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>&File</source>
<translation>&Fail</translation>
</message>
<message>
<location line="+8"/>
<source>&Settings</source>
<translation>&Seaded</translation>
</message>
<message>
<location line="+8"/>
<source>&Help</source>
<translation>&Abi</translation>
</message>
<message>
<location line="+12"/>
<source>Tabs toolbar</source>
<translation>Vahelehe tööriistariba</translation>
</message>
<message>
<location line="+8"/>
<source>Actions toolbar</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<location line="+9"/>
<source>[testnet]</source>
<translation>[testnet]</translation>
</message>
<message>
<location line="+0"/>
<location line="+60"/>
<source>Mercury client</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+75"/>
<source>%n active connection(s) to Mercury network</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+40"/>
<source>Downloaded %1 blocks of transaction history.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+413"/>
<source>Staking.<br>Your weight is %1<br>Network weight is %2<br>Expected time to earn reward is %3</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Not staking because wallet is locked</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Not staking because wallet is offline</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Not staking because wallet is syncing</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Not staking because you don't have mature coins</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="-403"/>
<source>%n second(s) ago</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="-312"/>
<source>About Mercury card</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show information about Mercury card</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>&Unlock Wallet...</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+297"/>
<source>%n minute(s) ago</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n hour(s) ago</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n day(s) ago</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+6"/>
<source>Up to date</source>
<translation>Ajakohane</translation>
</message>
<message>
<location line="+7"/>
<source>Catching up...</source>
<translation>Jõuan...</translation>
</message>
<message>
<location line="+10"/>
<source>Last received block was generated %1.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+59"/>
<source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Confirm transaction fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+27"/>
<source>Sent transaction</source>
<translation>Saadetud tehing</translation>
</message>
<message>
<location line="+1"/>
<source>Incoming transaction</source>
<translation>Sisenev tehing</translation>
</message>
<message>
<location line="+1"/>
<source>Date: %1
Amount: %2
Type: %3
Address: %4
</source>
<translation>Kuupäev: %1⏎
Summa: %2⏎
Tüüp: %3⏎
Aadress: %4⏎</translation>
</message>
<message>
<location line="+100"/>
<location line="+15"/>
<source>URI handling</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-15"/>
<location line="+15"/>
<source>URI can not be parsed! This can be caused by an invalid Mercury address or malformed URI parameters.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>Wallet is <b>encrypted</b> and currently <b>unlocked</b></source>
<translation>Rahakott on <b>krüpteeritud</b> ning hetkel <b>avatud</b></translation>
</message>
<message>
<location line="+10"/>
<source>Wallet is <b>encrypted</b> and currently <b>locked</b></source>
<translation>Rahakott on <b>krüpteeritud</b> ning hetkel <b>suletud</b></translation>
</message>
<message>
<location line="+25"/>
<source>Backup Wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Wallet Data (*.dat)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Backup Failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>There was an error trying to save the wallet data to the new location.</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+76"/>
<source>%n second(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n minute(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n hour(s)</source>
<translation><numerusform>%n tund</numerusform><numerusform>%n tundi</numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n day(s)</source>
<translation><numerusform>%n päev</numerusform><numerusform>%n päeva</numerusform></translation>
</message>
<message>
<location line="+18"/>
<source>Not staking</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../bitcoin.cpp" line="+109"/>
<source>A fatal error occurred. Mercury can no longer continue safely and will quit.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>ClientModel</name>
<message>
<location filename="../clientmodel.cpp" line="+90"/>
<source>Network Alert</source>
<translation>Võrgu Häire</translation>
</message>
</context>
<context>
<name>CoinControlDialog</name>
<message>
<location filename="../forms/coincontroldialog.ui" line="+14"/>
<source>Coin Control</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Quantity:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+32"/>
<source>Bytes:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+48"/>
<source>Amount:</source>
<translation>Summa:</translation>
</message>
<message>
<location line="+32"/>
<source>Priority:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+48"/>
<source>Fee:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>Low Output:</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="+551"/>
<source>no</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../forms/coincontroldialog.ui" line="+51"/>
<source>After Fee:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>Change:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+69"/>
<source>(un)select all</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Tree mode</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>List mode</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+45"/>
<source>Amount</source>
<translation>Kogus</translation>
</message>
<message>
<location line="+5"/>
<source>Label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Address</source>
<translation>Aadress</translation>
</message>
<message>
<location line="+5"/>
<source>Date</source>
<translation>Kuupäev</translation>
</message>
<message>
<location line="+5"/>
<source>Confirmations</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Confirmed</source>
<translation>Kinnitatud</translation>
</message>
<message>
<location line="+5"/>
<source>Priority</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="-515"/>
<source>Copy address</source>
<translation>Aadressi kopeerimine</translation>
</message>
<message>
<location line="+1"/>
<source>Copy label</source>
<translation>Märgise kopeerimine</translation>
</message>
<message>
<location line="+1"/>
<location line="+26"/>
<source>Copy amount</source>
<translation>Kopeeri summa</translation>
</message>
<message>
<location line="-25"/>
<source>Copy transaction ID</source>
<translation>Kopeeri tehingu ID</translation>
</message>
<message>
<location line="+24"/>
<source>Copy quantity</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Copy fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy after fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy bytes</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy priority</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy low output</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy change</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+317"/>
<source>highest</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>high</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>medium-high</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>medium</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>low-medium</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>low</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>lowest</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+155"/>
<source>DUST</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>yes</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>This label turns red, if the transaction size is bigger than 10000 bytes.
This means a fee of at least %1 per kb is required.
Can vary +/- 1 Byte per input.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Transactions with higher priority get more likely into a block.
This label turns red, if the priority is smaller than "medium".
This means a fee of at least %1 per kb is required.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>This label turns red, if any recipient receives an amount smaller than %1.
This means a fee of at least %2 is required.
Amounts below 0.546 times the minimum relay fee are shown as DUST.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>This label turns red, if the change is smaller than %1.
This means a fee of at least %2 is required.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+37"/>
<location line="+66"/>
<source>(no label)</source>
<translation>(silti pole)</translation>
</message>
<message>
<location line="-9"/>
<source>change from %1 (%2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>(change)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>EditAddressDialog</name>
<message>
<location filename="../forms/editaddressdialog.ui" line="+14"/>
<source>Edit Address</source>
<translation>Muuda aadressi</translation>
</message>
<message>
<location line="+11"/>
<source>&Label</source>
<translation>&Märgis</translation>
</message>
<message>
<location line="+10"/>
<source>The label associated with this address book entry</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>&Address</source>
<translation>&Aadress</translation>
</message>
<message>
<location line="+10"/>
<source>The address associated with this address book entry. This can only be modified for sending addresses.</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="+20"/>
<source>New receiving address</source>
<translation>Uus sissetulev aadress</translation>
</message>
<message>
<location line="+4"/>
<source>New sending address</source>
<translation>Uus väljaminev aadress</translation>
</message>
<message>
<location line="+3"/>
<source>Edit receiving address</source>
<translation>Sissetulevate aadresside muutmine</translation>
</message>
<message>
<location line="+4"/>
<source>Edit sending address</source>
<translation>Väljaminevate aadresside muutmine</translation>
</message>
<message>
<location line="+76"/>
<source>The entered address "%1" is already in the address book.</source>
<translation>Selline aadress on juba olemas: "%1"</translation>
</message>
<message>
<location line="-5"/>
<source>The entered address "%1" is not a valid Mercury address.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Could not unlock wallet.</source>
<translation>Rahakotti ei avatud</translation>
</message>
<message>
<location line="+5"/>
<source>New key generation failed.</source>
<translation>Tõrge uue võtme loomisel.</translation>
</message>
</context>
<context>
<name>GUIUtil::HelpMessageBox</name>
<message>
<location filename="../guiutil.cpp" line="+420"/>
<location line="+12"/>
<source>Mercury-Qt</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-12"/>
<source>version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Usage:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>command-line options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>UI options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Set language, for example "de_DE" (default: system locale)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Start minimized</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show splash screen on startup (default: 1)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>OptionsDialog</name>
<message>
<location filename="../forms/optionsdialog.ui" line="+14"/>
<source>Options</source>
<translation>Valikud</translation>
</message>
<message>
<location line="+16"/>
<source>&Main</source>
<translation>%Peamine</translation>
</message>
<message>
<location line="+6"/>
<source>Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB. Fee 0.01 recommended.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Pay transaction &fee</source>
<translation>Tasu tehingu &fee</translation>
</message>
<message>
<location line="+31"/>
<source>Reserved amount does not participate in staking and is therefore spendable at any time.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Reserve</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Automatically start Mercury after logging in to the system.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Start Mercury on system login</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Detach block and address databases at shutdown. This means they can be moved to another data directory, but it slows down shutdown. The wallet is always detached.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Detach databases at shutdown</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>&Network</source>
<translation>&Võrk</translation>
</message>
<message>
<location line="+6"/>
<source>Automatically open the Mercury client port on the router. This only works when your router supports UPnP and it is enabled.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Map port using &UPnP</source>
<translation>Suuna port &UPnP kaudu</translation>
</message>
<message>
<location line="+7"/>
<source>Connect to the Mercury network through a SOCKS proxy (e.g. when connecting through Tor).</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Connect through SOCKS proxy:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>Proxy &IP:</source>
<translation>Proxi &IP:</translation>
</message>
<message>
<location line="+19"/>
<source>IP address of the proxy (e.g. 127.0.0.1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>&Port:</source>
<translation>&Port:</translation>
</message>
<message>
<location line="+19"/>
<source>Port of the proxy (e.g. 9050)</source>
<translation>Proxi port (nt 9050)</translation>
</message>
<message>
<location line="+7"/>
<source>SOCKS &Version:</source>
<translation>Turva proxi SOCKS &Version:</translation>
</message>
<message>
<location line="+13"/>
<source>SOCKS version of the proxy (e.g. 5)</source>
<translation>Turva proxi SOCKS versioon (nt 5)</translation>
</message>
<message>
<location line="+36"/>
<source>&Window</source>
<translation>&Aken</translation>
</message>
<message>
<location line="+6"/>
<source>Show only a tray icon after minimizing the window.</source>
<translation>Minimeeri systray alale.</translation>
</message>
<message>
<location line="+3"/>
<source>&Minimize to the tray instead of the taskbar</source>
<translation>&Minimeeri systray alale</translation>
</message>
<message>
<location line="+7"/>
<source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source>
<translation>Sulgemise asemel minimeeri aken. Selle valiku tegemisel suletakse programm Menüüst "Välju" käsuga.</translation>
</message>
<message>
<location line="+3"/>
<source>M&inimize on close</source>
<translation>M&inimeeri sulgemisel</translation>
</message>
<message>
<location line="+21"/>
<source>&Display</source>
<translation>&Kuva</translation>
</message>
<message>
<location line="+8"/>
<source>User Interface &language:</source>
<translation>Kasutajaliidese &keel:</translation>
</message>
<message>
<location line="+13"/>
<source>The user interface language can be set here. This setting will take effect after restarting Mercury.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>&Unit to show amounts in:</source>
<translation>Summade kuvamise &Unit:</translation>
</message>
<message>
<location line="+13"/>
<source>Choose the default subdivision unit to show in the interface and when sending coins.</source>
<translation>Vali liideses ning müntide saatmisel kuvatav vaikimisi alajaotus.</translation>
</message>
<message>
<location line="+9"/>
<source>Whether to show Mercury addresses in the transaction list or not.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Display addresses in transaction list</source>
<translation>Tehingute loetelu &Display aadress</translation>
</message>
<message>
<location line="+7"/>
<source>Whether to show coin control features or not.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Display coin &control features (experts only!)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+71"/>
<source>&OK</source>
<translation>&OK</translation>
</message>
<message>
<location line="+7"/>
<source>&Cancel</source>
<translation>&Katkesta</translation>
</message>
<message>
<location line="+10"/>
<source>&Apply</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../optionsdialog.cpp" line="+55"/>
<source>default</source>
<translation>vaikeväärtus</translation>
</message>
<message>
<location line="+149"/>
<location line="+9"/>
<source>Warning</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-9"/>
<location line="+9"/>
<source>This setting will take effect after restarting Mercury.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>The supplied proxy address is invalid.</source>
<translation>Sisestatud kehtetu proxy aadress.</translation>
</message>
</context>
<context>
<name>OverviewPage</name>
<message>
<location filename="../forms/overviewpage.ui" line="+14"/>
<source>Form</source>
<translation>Vorm</translation>
</message>
<message>
<location line="+33"/>
<location line="+231"/>
<source>The displayed information may be out of date. Your wallet automatically synchronizes with the Mercury network after a connection is established, but this process has not completed yet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-160"/>
<source>Stake:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>Unconfirmed:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-107"/>
<source>Wallet</source>
<translation>Rahakott</translation>
</message>
<message>
<location line="+49"/>
<source>Spendable:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Your current spendable balance</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+71"/>
<source>Immature:</source>
<translation>Ebaküps:</translation>
</message>
<message>
<location line="+13"/>
<source>Mined balance that has not yet matured</source>
<translation>Mitte aegunud mine'itud jääk</translation>
</message>
<message>
<location line="+20"/>
<source>Total:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Your current total balance</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+46"/>
<source><b>Recent transactions</b></source>
<translation><b>Uuesti saadetud tehingud</b></translation>
</message>
<message>
<location line="-108"/>
<source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-29"/>
<source>Total of coins that was staked, and do not yet count toward the current balance</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../overviewpage.cpp" line="+113"/>
<location line="+1"/>
<source>out of sync</source>
<translation>sünkimata</translation>
</message>
</context>
<context>
<name>QRCodeDialog</name>
<message>
<location filename="../forms/qrcodedialog.ui" line="+14"/>
<source>QR Code Dialog</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+59"/>
<source>Request Payment</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+56"/>
<source>Amount:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-44"/>
<source>Label:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Message:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+71"/>
<source>&Save As...</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../qrcodedialog.cpp" line="+62"/>
<source>Error encoding URI into QR Code.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+40"/>
<source>The entered amount is invalid, please check.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Resulting URI too long, try to reduce the text for label / message.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Save QR Code</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>PNG Images (*.png)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>RPCConsole</name>
<message>
<location filename="../forms/rpcconsole.ui" line="+46"/>
<source>Client name</source>
<translation>Kliendi nimi</translation>
</message>
<message>
<location line="+10"/>
<location line="+23"/>
<location line="+26"/>
<location line="+23"/>
<location line="+23"/>
<location line="+36"/>
<location line="+53"/>
<location line="+23"/>
<location line="+23"/>
<location filename="../rpcconsole.cpp" line="+348"/>
<source>N/A</source>
<translation>N/A</translation>
</message>
<message>
<location line="-217"/>
<source>Client version</source>
<translation>Kliendi versioon</translation>
</message>
<message>
<location line="-45"/>
<source>&Information</source>
<translation>&Informatsioon</translation>
</message>
<message>
<location line="+68"/>
<source>Using OpenSSL version</source>
<translation>Kasutan OpenSSL versiooni</translation>
</message>
<message>
<location line="+49"/>
<source>Startup time</source>
<translation>Käivitamise hetk</translation>
</message>
<message>
<location line="+29"/>
<source>Network</source>
<translation>Võrgustik</translation>
</message>
<message>
<location line="+7"/>
<source>Number of connections</source>
<translation>Ühenduste arv</translation>
</message>
<message>
<location line="+23"/>
<source>On testnet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Block chain</source>
<translation>Ploki jada</translation>
</message>
<message>
<location line="+7"/>
<source>Current number of blocks</source>
<translation>Plokkide hetkearv</translation>
</message>
<message>
<location line="+23"/>
<source>Estimated total blocks</source>
<translation>Ligikaudne plokkide kogus</translation>
</message>
<message>
<location line="+23"/>
<source>Last block time</source>
<translation>Viimane ploki aeg</translation>
</message>
<message>
<location line="+52"/>
<source>&Open</source>
<translation>&Ava</translation>
</message>
<message>
<location line="+16"/>
<source>Command-line options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Show the Mercury-Qt help message to get a list with possible Mercury command-line options.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Show</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+24"/>
<source>&Console</source>
<translation>&Konsool</translation>
</message>
<message>
<location line="-260"/>
<source>Build date</source>
<translation>Valmistusaeg</translation>
</message>
<message>
<location line="-104"/>
<source>Mercury - Debug window</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Mercury Core</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+279"/>
<source>Debug log file</source>
<translation>Debugimise logifail</translation>
</message>
<message>
<location line="+7"/>
<source>Open the Mercury debug log file from the current data directory. This can take a few seconds for large log files.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+102"/>
<source>Clear console</source>
<translation>Puhasta konsool</translation>
</message>
<message>
<location filename="../rpcconsole.cpp" line="-33"/>
<source>Welcome to the Mercury RPC console.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Use up and down arrows to navigate history, and <b>Ctrl-L</b> to clear screen.</source>
<translation>Ajaloo sirvimiseks kasuta üles ja alla nooli, ekraani puhastamiseks <b>Ctrl-L</b>.</translation>
</message>
<message>
<location line="+1"/>
<source>Type <b>help</b> for an overview of available commands.</source>
<translation>Ülevaateks võimalikest käsklustest trüki <b>help</b>.</translation>
</message>
</context>
<context>
<name>SendCoinsDialog</name>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="+14"/>
<location filename="../sendcoinsdialog.cpp" line="+182"/>
<location line="+5"/>
<location line="+5"/>
<location line="+5"/>
<location line="+6"/>
<location line="+5"/>
<location line="+5"/>
<source>Send Coins</source>
<translation>Müntide saatmine</translation>
</message>
<message>
<location line="+76"/>
<source>Coin Control Features</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+20"/>
<source>Inputs...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>automatically selected</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Insufficient funds!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+77"/>
<source>Quantity:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+22"/>
<location line="+35"/>
<source>0</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-19"/>
<source>Bytes:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+51"/>
<source>Amount:</source>
<translation>Summa:</translation>
</message>
<message>
<location line="+22"/>
<location line="+86"/>
<location line="+86"/>
<location line="+32"/>
<source>0.00 CLAM</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-191"/>
<source>Priority:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>medium</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+32"/>
<source>Fee:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>Low Output:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>no</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+32"/>
<source>After Fee:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>Change</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+50"/>
<source>custom change address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+106"/>
<source>Send to multiple recipients at once</source>
<translation>Saatmine mitmele korraga</translation>
</message>
<message>
<location line="+3"/>
<source>Add &Recipient</source>
<translation>Lisa &Saaja</translation>
</message>
<message>
<location line="+20"/>
<source>Remove all transaction fields</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Clear &All</source>
<translation>Puhasta &Kõik</translation>
</message>
<message>
<location line="+28"/>
<source>Balance:</source>
<translation>Jääk:</translation>
</message>
<message>
<location line="+16"/>
<source>123.456 CLAM</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Confirm the send action</source>
<translation>Saatmise kinnitamine</translation>
</message>
<message>
<location line="+3"/>
<source>S&end</source>
<translation>S&aada</translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="-173"/>
<source>Enter a Mercury address (e.g. B8gZqgY4r2RoEdqYk3QsAqFckyf9pRHN6i)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Copy quantity</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy amount</source>
<translation>Kopeeri summa</translation>
</message>
<message>
<location line="+1"/>
<source>Copy fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy after fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy bytes</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy priority</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy low output</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy change</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+86"/>
<source><b>%1</b> to %2 (%3)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Confirm send coins</source>
<translation>Müntide saatmise kinnitamine</translation>
</message>
<message>
<location line="+1"/>
<source>Are you sure you want to send %1?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source> and </source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>The recipient address is not valid, please recheck.</source>
<translation>Saaja aadress ei ole kehtiv, palun kontrolli.</translation>
</message>
<message>
<location line="+5"/>
<source>The amount to pay must be larger than 0.</source>
<translation>Makstav summa peab olema suurem kui 0.</translation>
</message>
<message>
<location line="+5"/>
<source>The amount exceeds your balance.</source>
<translation>Summa ületab jäägi.</translation>
</message>
<message>
<location line="+5"/>
<source>The total exceeds your balance when the %1 transaction fee is included.</source>
<translation>Summa koos tehingu tasuga %1 ületab sinu jääki.</translation>
</message>
<message>
<location line="+6"/>
<source>Duplicate address found, can only send to each address once per send operation.</source>
<translation>Ühe saatmisega topelt-adressaati olla ei tohi.</translation>
</message>
<message>
<location line="+5"/>
<source>Error: Transaction creation failed.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+251"/>
<source>WARNING: Invalid Mercury address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>(no label)</source>
<translation>(silti pole)</translation>
</message>
<message>
<location line="+4"/>
<source>WARNING: unknown change address</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SendCoinsEntry</name>
<message>
<location filename="../forms/sendcoinsentry.ui" line="+14"/>
<source>Form</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>A&mount:</source>
<translation>S&umma:</translation>
</message>
<message>
<location line="+13"/>
<source>Pay &To:</source>
<translation>Maksa &:</translation>
</message>
<message>
<location line="+24"/>
<location filename="../sendcoinsentry.cpp" line="+25"/>
<source>Enter a label for this address to add it to your address book</source>
<translation>Aadressiraamatusse sisestamiseks märgista aadress</translation>
</message>
<message>
<location line="+9"/>
<source>&Label:</source>
<translation>&Märgis</translation>
</message>
<message>
<location line="+18"/>
<source>The address to send the payment to (e.g. B8gZqgY4r2RoEdqYk3QsAqFckyf9pRHN6i)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Choose address from address book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Alt+A</source>
<translation>Alt+A</translation>
</message>
<message>
<location line="+7"/>
<source>Paste address from clipboard</source>
<translation>Kleebi aadress vahemälust</translation>
</message>
<message>
<location line="+10"/>
<source>Alt+P</source>
<translation>Alt+P</translation>
</message>
<message>
<location line="+7"/>
<source>Remove this recipient</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../sendcoinsentry.cpp" line="+1"/>
<source>Enter a Mercury address (e.g. B8gZqgY4r2RoEdqYk3QsAqFckyf9pRHN6i)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SignVerifyMessageDialog</name>
<message>
<location filename="../forms/signverifymessagedialog.ui" line="+14"/>
<source>Signatures - Sign / Verify a Message</source>
<translation>Signatuurid - Allkirjasta / Kinnita Sõnum</translation>
</message>
<message>
<location line="+13"/>
<location line="+124"/>
<source>&Sign Message</source>
<translation>&Allkirjastamise teade</translation>
</message>
<message>
<location line="-118"/>
<source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source>
<translation>Omandiõigsuse tõestamiseks saad sõnumeid allkirjastada oma aadressiga. Ettevaatust petturitega, kes üritavad saada sinu allkirja endale saada. Allkirjasta ainult korralikult täidetud avaldusi, millega nõustud.</translation>
</message>
<message>
<location line="+18"/>
<source>The address to sign the message with (e.g. B8gZqgY4r2RoEdqYk3QsAqFckyf9pRHN6i)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<location line="+203"/>
<source>Choose an address from the address book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-193"/>
<location line="+203"/>
<source>Alt+A</source>
<translation>Alt+A</translation>
</message>
<message>
<location line="-193"/>
<source>Paste address from clipboard</source>
<translation>Kleebi aadress vahemälust</translation>
</message>
<message>
<location line="+10"/>
<source>Alt+P</source>
<translation>Alt+P</translation>
</message>
<message>
<location line="+12"/>
<source>Enter the message you want to sign here</source>
<translation>Sisesta siia allkirjastamise sõnum</translation>
</message>
<message>
<location line="+24"/>
<source>Copy the current signature to the system clipboard</source>
<translation>Kopeeri praegune signatuur vahemällu</translation>
</message>
<message>
<location line="+21"/>
<source>Sign the message to prove you own this Mercury address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>Reset all sign message fields</source>
<translation>Tühjenda kõik sõnumi allkirjastamise väljad</translation>
</message>
<message>
<location line="+3"/>
<location line="+146"/>
<source>Clear &All</source>
<translation>Puhasta &Kõik</translation>
</message>
<message>
<location line="-87"/>
<location line="+70"/>
<source>&Verify Message</source>
<translation>&Kinnita Sõnum</translation>
</message>
<message>
<location line="-64"/>
<source>Enter the signing address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack.</source>
<translation>Kinnitamiseks sisesta allkirjastamise aadress, sõnum (kindlasti kopeeri täpselt ka reavahetused, tühikud, tabulaatorid jms) ning allolev signatuur.</translation>
</message>
<message>
<location line="+21"/>
<source>The address the message was signed with (e.g. B8gZqgY4r2RoEdqYk3QsAqFckyf9pRHN6i)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+40"/>
<source>Verify the message to ensure it was signed with the specified Mercury address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>Reset all verify message fields</source>
<translation>Tühjenda kõik sõnumi kinnitamise väljad</translation>
</message>
<message>
<location filename="../signverifymessagedialog.cpp" line="+27"/>
<location line="+3"/>
<source>Enter a Mercury address (e.g. B8gZqgY4r2RoEdqYk3QsAqFckyf9pRHN6i)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-2"/>
<source>Click "Sign Message" to generate signature</source>
<translation>Signatuuri genereerimiseks vajuta "Allkirjasta Sõnum"</translation>
</message>
<message>
<location line="+3"/>
<source>Enter Mercury signature</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+82"/>
<location line="+81"/>
<source>The entered address is invalid.</source>
<translation>Sisestatud aadress ei kehti.</translation>
</message>
<message>
<location line="-81"/>
<location line="+8"/>
<location line="+73"/>
<location line="+8"/>
<source>Please check the address and try again.</source>
<translation>Palun kontrolli aadressi ning proovi uuesti.</translation>
</message>
<message>
<location line="-81"/>
<location line="+81"/>
<source>The entered address does not refer to a key.</source>
<translation>Sisestatud aadress ei viita võtmele.</translation>
</message>
<message>
<location line="-73"/>
<source>Wallet unlock was cancelled.</source>
<translation>Rahakoti avamine katkestati.</translation>
</message>
<message>
<location line="+8"/>
<source>Private key for the entered address is not available.</source>
<translation>Sisestatud aadressi privaatvõti ei ole saadaval.</translation>
</message>
<message>
<location line="+12"/>
<source>Message signing failed.</source>
<translation>Sõnumi signeerimine ebaõnnestus.</translation>
</message>
<message>
<location line="+5"/>
<source>Message signed.</source>
<translation>Sõnum signeeritud.</translation>
</message>
<message>
<location line="+59"/>
<source>The signature could not be decoded.</source>
<translation>Signatuuri ei õnnestunud dekodeerida.</translation>
</message>
<message>
<location line="+0"/>
<location line="+13"/>
<source>Please check the signature and try again.</source>
<translation>Palun kontrolli signatuuri ning proovi uuesti.</translation>
</message>
<message>
<location line="+0"/>
<source>The signature did not match the message digest.</source>
<translation>Signatuur ei kattunud sõnumi kokkuvõttega.</translation>
</message>
<message>
<location line="+7"/>
<source>Message verification failed.</source>
<translation>Sõnumi kontroll ebaõnnestus.</translation>
</message>
<message>
<location line="+5"/>
<source>Message verified.</source>
<translation>Sõnum kontrollitud.</translation>
</message>
</context>
<context>
<name>TransactionDesc</name>
<message>
<location filename="../transactiondesc.cpp" line="+19"/>
<source>Open until %1</source>
<translation>Avatud kuni %1</translation>
</message>
<message numerus="yes">
<location line="-2"/>
<source>Open for %n block(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+8"/>
<source>conflicted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>%1/offline</source>
<translation>%/1offline'is</translation>
</message>
<message>
<location line="+2"/>
<source>%1/unconfirmed</source>
<translation>%1/kinnitamata</translation>
</message>
<message>
<location line="+2"/>
<source>%1 confirmations</source>
<translation>%1 kinnitust</translation>
</message>
<message>
<location line="+18"/>
<source>Status</source>
<translation>Staatus</translation>
</message>
<message numerus="yes">
<location line="+7"/>
<source>, broadcast through %n node(s)</source>
<translation><numerusform>, levita läbi %n node'i</numerusform><numerusform>, levita läbi %n node'i</numerusform></translation>
</message>
<message>
<location line="+4"/>
<source>Date</source>
<translation>Kuupäev</translation>
</message>
<message>
<location line="+7"/>
<source>Source</source>
<translation>Allikas</translation>
</message>
<message>
<location line="+0"/>
<source>Generated</source>
<translation>Genereeritud</translation>
</message>
<message>
<location line="+5"/>
<location line="+17"/>
<source>From</source>
<translation>Saatja</translation>
</message>
<message>
<location line="+1"/>
<location line="+22"/>
<location line="+58"/>
<source>To</source>
<translation>Saaja</translation>
</message>
<message>
<location line="-77"/>
<location line="+2"/>
<source>own address</source>
<translation>oma aadress</translation>
</message>
<message>
<location line="-2"/>
<source>label</source>
<translation>märgis</translation>
</message>
<message>
<location line="+37"/>
<location line="+12"/>
<location line="+45"/>
<location line="+17"/>
<location line="+30"/>
<source>Credit</source>
<translation>Krediit</translation>
</message>
<message numerus="yes">
<location line="-102"/>
<source>matures in %n more block(s)</source>
<translation><numerusform>aegub %n bloki pärast</numerusform><numerusform>aegub %n bloki pärast</numerusform></translation>
</message>
<message>
<location line="+2"/>
<source>not accepted</source>
<translation>mitte aktsepteeritud</translation>
</message>
<message>
<location line="+44"/>
<location line="+8"/>
<location line="+15"/>
<location line="+30"/>
<source>Debit</source>
<translation>Deebet</translation>
</message>
<message>
<location line="-39"/>
<source>Transaction fee</source>
<translation>Tehingu tasu</translation>
</message>
<message>
<location line="+16"/>
<source>Net amount</source>
<translation>Neto summa</translation>
</message>
<message>
<location line="+6"/>
<source>Message</source>
<translation>Sõnum</translation>
</message>
<message>
<location line="+2"/>
<source>Comment</source>
<translation>Kommentaar</translation>
</message>
<message>
<location line="+2"/>
<source>Transaction ID</source>
<translation>Tehingu ID</translation>
</message>
<message>
<location line="+3"/>
<source>Generated coins must mature 510 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to "not accepted" and it won't be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Debug information</source>
<translation>Debug'imise info</translation>
</message>
<message>
<location line="+8"/>
<source>Transaction</source>
<translation>Tehing</translation>
</message>
<message>
<location line="+5"/>
<source>Inputs</source>
<translation>Sisendid</translation>
</message>
<message>
<location line="+23"/>
<source>Amount</source>
<translation>Kogus</translation>
</message>
<message>
<location line="+1"/>
<source>true</source>
<translation>õige</translation>
</message>
<message>
<location line="+0"/>
<source>false</source>
<translation>vale</translation>
</message>
<message>
<location line="-211"/>
<source>, has not been successfully broadcast yet</source>
<translation>, veel esitlemata</translation>
</message>
<message>
<location line="+35"/>
<source>unknown</source>
<translation>tundmatu</translation>
</message>
</context>
<context>
<name>TransactionDescDialog</name>
<message>
<location filename="../forms/transactiondescdialog.ui" line="+14"/>
<source>Transaction details</source>
<translation>Tehingu üksikasjad</translation>
</message>
<message>
<location line="+6"/>
<source>This pane shows a detailed description of the transaction</source>
<translation>Paan kuvab tehingu detailid</translation>
</message>
</context>
<context>
<name>TransactionTableModel</name>
<message>
<location filename="../transactiontablemodel.cpp" line="+226"/>
<source>Date</source>
<translation>Kuupäev</translation>
</message>
<message>
<location line="+0"/>
<source>Type</source>
<translation>Tüüp</translation>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Aadress</translation>
</message>
<message>
<location line="+0"/>
<source>Amount</source>
<translation>Kogus</translation>
</message>
<message>
<location line="+60"/>
<source>Open until %1</source>
<translation>Avatud kuni %1</translation>
</message>
<message>
<location line="+12"/>
<source>Confirmed (%1 confirmations)</source>
<translation>Kinnitatud (%1 kinnitust)</translation>
</message>
<message numerus="yes">
<location line="-15"/>
<source>Open for %n more block(s)</source>
<translation><numerusform>Avaneb %n bloki pärast</numerusform><numerusform>Avaneb %n bloki pärast</numerusform></translation>
</message>
<message>
<location line="+6"/>
<source>Offline</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Unconfirmed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Confirming (%1 of %2 recommended confirmations)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Conflicted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Immature (%1 confirmations, will be available after %2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>This block was not received by any other nodes and will probably not be accepted!</source>
<translation>Antud klotsi pole saanud ükski osapool ning tõenäoliselt seda ei aktsepteerita!</translation>
</message>
<message>
<location line="+3"/>
<source>Generated but not accepted</source>
<translation>Loodud, kuid aktsepteerimata</translation>
</message>
<message>
<location line="+42"/>
<source>Received with</source>
<translation>Saadud koos</translation>
</message>
<message>
<location line="+2"/>
<source>Received from</source>
<translation>Kellelt saadud</translation>
</message>
<message>
<location line="+3"/>
<source>Sent to</source>
<translation>Saadetud</translation>
</message>
<message>
<location line="+2"/>
<source>Payment to yourself</source>
<translation>Makse iseendale</translation>
</message>
<message>
<location line="+2"/>
<source>Mined</source>
<translation>Mine'itud</translation>
</message>
<message>
<location line="+38"/>
<source>(n/a)</source>
<translation>(n/a)</translation>
</message>
<message>
<location line="+190"/>
<source>Transaction status. Hover over this field to show number of confirmations.</source>
<translation>Tehingu staatus. Kinnituste arvu kuvamiseks liigu hiire noolega selle peale.</translation>
</message>
<message>
<location line="+2"/>
<source>Date and time that the transaction was received.</source>
<translation>Tehingu saamise kuupäev ning kellaaeg.</translation>
</message>
<message>
<location line="+2"/>
<source>Type of transaction.</source>
<translation>Tehingu tüüp.</translation>
</message>
<message>
<location line="+2"/>
<source>Destination address of transaction.</source>
<translation>Tehingu saaja aadress.</translation>
</message>
<message>
<location line="+2"/>
<source>Amount removed from or added to balance.</source>
<translation>Jäägile lisatud või eemaldatud summa.</translation>
</message>
</context>
<context>
<name>TransactionView</name>
<message>
<location filename="../transactionview.cpp" line="+55"/>
<location line="+16"/>
<source>All</source>
<translation>Kõik</translation>
</message>
<message>
<location line="-15"/>
<source>Today</source>
<translation>Täna</translation>
</message>
<message>
<location line="+1"/>
<source>This week</source>
<translation>Jooksev nädal</translation>
</message>
<message>
<location line="+1"/>
<source>This month</source>
<translation>Jooksev kuu</translation>
</message>
<message>
<location line="+1"/>
<source>Last month</source>
<translation>Eelmine kuu</translation>
</message>
<message>
<location line="+1"/>
<source>This year</source>
<translation>Jooksev aasta</translation>
</message>
<message>
<location line="+1"/>
<source>Range...</source>
<translation>Ulatus...</translation>
</message>
<message>
<location line="+11"/>
<source>Received with</source>
<translation>Saadud koos</translation>
</message>
<message>
<location line="+2"/>
<source>Sent to</source>
<translation>Saadetud</translation>
</message>
<message>
<location line="+2"/>
<source>To yourself</source>
<translation>Iseendale</translation>
</message>
<message>
<location line="+1"/>
<source>Mined</source>
<translation>Mine'itud</translation>
</message>
<message>
<location line="+1"/>
<source>Other</source>
<translation>Muu</translation>
</message>
<message>
<location line="+7"/>
<source>Enter address or label to search</source>
<translation>Otsimiseks sisesta märgis või aadress</translation>
</message>
<message>
<location line="+7"/>
<source>Min amount</source>
<translation>Vähim summa</translation>
</message>
<message>
<location line="+34"/>
<source>Copy address</source>
<translation>Aadressi kopeerimine</translation>
</message>
<message>
<location line="+1"/>
<source>Copy label</source>
<translation>Märgise kopeerimine</translation>
</message>
<message>
<location line="+1"/>
<source>Copy amount</source>
<translation>Kopeeri summa</translation>
</message>
<message>
<location line="+1"/>
<source>Copy transaction ID</source>
<translation>Kopeeri tehingu ID</translation>
</message>
<message>
<location line="+1"/>
<source>Edit label</source>
<translation>Märgise muutmine</translation>
</message>
<message>
<location line="+1"/>
<source>Show transaction details</source>
<translation>Kuva tehingu detailid</translation>
</message>
<message>
<location line="+144"/>
<source>Export Transaction Data</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation>Komaeraldatud fail (*.csv)</translation>
</message>
<message>
<location line="+8"/>
<source>Confirmed</source>
<translation>Kinnitatud</translation>
</message>
<message>
<location line="+1"/>
<source>Date</source>
<translation>Kuupäev</translation>
</message>
<message>
<location line="+1"/>
<source>Type</source>
<translation>Tüüp</translation>
</message>
<message>
<location line="+1"/>
<source>Label</source>
<translation>Silt</translation>
</message>
<message>
<location line="+1"/>
<source>Address</source>
<translation>Aadress</translation>
</message>
<message>
<location line="+1"/>
<source>Amount</source>
<translation>Kogus</translation>
</message>
<message>
<location line="+1"/>
<source>ID</source>
<translation>ID</translation>
</message>
<message>
<location line="+4"/>
<source>Error exporting</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+100"/>
<source>Range:</source>
<translation>Ulatus:</translation>
</message>
<message>
<location line="+8"/>
<source>to</source>
<translation>saaja</translation>
</message>
</context>
<context>
<name>WalletModel</name>
<message>
<location filename="../walletmodel.cpp" line="+206"/>
<source>Sending...</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>bitcoin-core</name>
<message>
<location filename="../bitcoinstrings.cpp" line="+33"/>
<source>Mercury version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Usage:</source>
<translation>Kasutus:</translation>
</message>
<message>
<location line="+1"/>
<source>Send command to -server or mercuryd</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>List commands</source>
<translation>Käskluste loetelu</translation>
</message>
<message>
<location line="+1"/>
<source>Get help for a command</source>
<translation>Käskluste abiinfo</translation>
</message>
<message>
<location line="+2"/>
<source>Options:</source>
<translation>Valikud:</translation>
</message>
<message>
<location line="+2"/>
<source>Specify configuration file (default: mercury.conf)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Specify pid file (default: mercuryd.pid)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Specify wallet file (within data directory)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Specify data directory</source>
<translation>Täpsusta andmekataloog</translation>
</message>
<message>
<location line="+2"/>
<source>Set database cache size in megabytes (default: 25)</source>
<translation>Sea andmebaasi vahemälu suurus MB (vaikeväärtus: 25)</translation>
</message>
<message>
<location line="+1"/>
<source>Set database disk log size in megabytes (default: 100)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Listen for connections on <port> (default: 15714 or testnet: 25714)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Maintain at most <n> connections to peers (default: 125)</source>
<translation>Säilita vähemalt <n> ühendust peeridega (vaikeväärtus: 125)</translation>
</message>
<message>
<location line="+3"/>
<source>Connect to a node to retrieve peer addresses, and disconnect</source>
<translation>Peeri aadressi saamiseks ühendu korraks node'iga</translation>
</message>
<message>
<location line="+1"/>
<source>Specify your own public address</source>
<translation>Täpsusta enda avalik aadress</translation>
</message>
<message>
<location line="+5"/>
<source>Bind to given address. Use [host]:port notation for IPv6</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Stake your coins to support network and gain reward (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Threshold for disconnecting misbehaving peers (default: 100)</source>
<translation>Ulakate peeride valulävi (vaikeväärtus: 100)</translation>
</message>
<message>
<location line="+1"/>
<source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source>
<translation>Mitme sekundi pärast ulakad peerid tagasi võivad tulla (vaikeväärtus: 86400)</translation>
</message>
<message>
<location line="-44"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source>
<translation>RPC pordi %u kuulamiseks seadistamisel ilmnes viga IPv4'l: %s</translation>
</message>
<message>
<location line="+51"/>
<source>Detach block and address databases. Increases shutdown time (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+109"/>
<source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-5"/>
<source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds </source>
<translation type="unfinished"/>
</message>
<message>
<location line="-87"/>
<source>Listen for JSON-RPC connections on <port> (default: 15715 or testnet: 56413)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-11"/>
<source>Accept command line and JSON-RPC commands</source>
<translation>Luba käsurea ning JSON-RPC käsklusi</translation>
</message>
<message>
<location line="+101"/>
<source>Error: Transaction creation failed </source>
<translation type="unfinished"/>
</message>
<message>
<location line="-5"/>
<source>Error: Wallet locked, unable to create transaction </source>
<translation type="unfinished"/>
</message>
<message>
<location line="-8"/>
<source>Importing blockchain data file.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Importing bootstrap blockchain data file.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-88"/>
<source>Run in the background as a daemon and accept commands</source>
<translation>Tööta taustal ning aktsepteeri käsklusi</translation>
</message>
<message>
<location line="+1"/>
<source>Use the test network</source>
<translation>Testvõrgu kasutamine</translation>
</message>
<message>
<location line="-24"/>
<source>Accept connections from outside (default: 1 if no -proxy or -connect)</source>
<translation>Luba välisühendusi (vaikeväärtus: 1 kui puudub -proxy või -connect)</translation>
</message>
<message>
<location line="-38"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source>
<translation>RPC pordi %u kuulamiseks seadistamisel ilmnes viga IPv6'l, lülitumine tagasi IPv4'le : %s</translation>
</message>
<message>
<location line="+117"/>
<source>Error initializing database environment %s! To recover, BACKUP THAT DIRECTORY, then remove everything from it except for wallet.dat.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-20"/>
<source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source>
<translation>Hoiatus: -paytxfee on seatud väga kõrgeks! See on sinu poolt makstav tehingu lisatasu.</translation>
</message>
<message>
<location line="+61"/>
<source>Warning: Please check that your computer's date and time are correct! If your clock is wrong Mercury will not work properly.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-31"/>
<source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source>
<translation>Hoiatus: ilmnes tõrge wallet.dat faili lugemisel! Võtmed on terved, kuid tehingu andmed või aadressiraamatu kirjed võivad olla kadunud või vigased.</translation>
</message>
<message>
<location line="-18"/>
<source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source>
<translation>Hoiatus: toimus wallet.dat faili andmete päästmine! Originaal wallet.dat nimetati kaustas %s ümber wallet.{ajatempel}.bak'iks, jäägi või tehingute ebakõlade puhul tuleks teha backup'ist taastamine.</translation>
</message>
<message>
<location line="-30"/>
<source>Attempt to recover private keys from a corrupt wallet.dat</source>
<translation>Püüa vigasest wallet.dat failist taastada turvavõtmed</translation>
</message>
<message>
<location line="+4"/>
<source>Block creation options:</source>
<translation>Blokeeri loomise valikud:</translation>
</message>
<message>
<location line="-62"/>
<source>Connect only to the specified node(s)</source>
<translation>Ühendu ainult määratud node'i(de)ga</translation>
</message>
<message>
<location line="+4"/>
<source>Discover own IP address (default: 1 when listening and no -externalip)</source>
<translation>Leia oma IP aadress (vaikeväärtus: 1, kui kuulatakse ning puudub -externalip)</translation>
</message>
<message>
<location line="+94"/>
<source>Failed to listen on any port. Use -listen=0 if you want this.</source>
<translation>Pordi kuulamine nurjus. Soovikorral kasuta -listen=0.</translation>
</message>
<message>
<location line="-90"/>
<source>Find peers using DNS lookup (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Sync checkpoints policy (default: strict)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+83"/>
<source>Invalid -tor address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Invalid amount for -reservebalance=<amount></source>
<translation type="unfinished"/>
</message>
<message>
<location line="-82"/>
<source>Maximum per-connection receive buffer, <n>*1000 bytes (default: 5000)</source>
<translation>Maksimaalne saamise puhver -connection kohta , <n>*1000 baiti (vaikeväärtus: 5000)</translation>
</message>
<message>
<location line="+1"/>
<source>Maximum per-connection send buffer, <n>*1000 bytes (default: 1000)</source>
<translation>Maksimaalne saatmise puhver -connection kohta , <n>*1000 baiti (vaikeväärtus: 1000)</translation>
</message>
<message>
<location line="-16"/>
<source>Only connect to nodes in network <net> (IPv4, IPv6 or Tor)</source>
<translation>Ühenda ainult node'idega <net> võrgus (IPv4, IPv6 või Tor)</translation>
</message>
<message>
<location line="+28"/>
<source>Output extra debugging information. Implies all other -debug* options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Output extra network debugging information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Prepend debug output with timestamp</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>SSL options: (see the Bitcoin Wiki for SSL setup instructions)</source>
<translation>SSL valikud: (vaata Bitcoini Wikist või SSL sätete juhendist)</translation>
</message>
<message>
<location line="-74"/>
<source>Select the version of socks proxy to use (4-5, default: 5)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+41"/>
<source>Send trace/debug info to console instead of debug.log file</source>
<translation>Saada jälitus/debug, debug.log faili asemel, konsooli</translation>
</message>
<message>
<location line="+1"/>
<source>Send trace/debug info to debugger</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+28"/>
<source>Set maximum block size in bytes (default: 250000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Set minimum block size in bytes (default: 0)</source>
<translation>Sea minimaalne bloki suurus baitides (vaikeväärtus: 0)</translation>
</message>
<message>
<location line="-29"/>
<source>Shrink debug.log file on client startup (default: 1 when no -debug)</source>
<translation>Kahanda programmi käivitamisel debug.log faili (vaikeväärtus: 1, kui ei ole -debug)</translation>
</message>
<message>
<location line="-42"/>
<source>Specify connection timeout in milliseconds (default: 5000)</source>
<translation>Sea ühenduse timeout millisekundites (vaikeväärtus: 5000)</translation>
</message>
<message>
<location line="+109"/>
<source>Unable to sign checkpoint, wrong checkpointkey?
</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-80"/>
<source>Use UPnP to map the listening port (default: 0)</source>
<translation>Kasuta kuulatava pordi määramiseks UPnP ühendust (vaikeväärtus: 0)</translation>
</message>
<message>
<location line="-1"/>
<source>Use UPnP to map the listening port (default: 1 when listening)</source>
<translation>Kasuta kuulatava pordi määramiseks UPnP ühendust (vaikeväärtus: 1, kui kuulatakse)</translation>
</message>
<message>
<location line="-25"/>
<source>Use proxy to reach tor hidden services (default: same as -proxy)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+42"/>
<source>Username for JSON-RPC connections</source>
<translation>JSON-RPC ühenduste kasutajatunnus</translation>
</message>
<message>
<location line="+47"/>
<source>Verifying database integrity...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+57"/>
<source>WARNING: syncronized checkpoint violation detected, but skipped!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Warning: Disk space is low!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-2"/>
<source>Warning: This version is obsolete, upgrade required!</source>
<translation>Hoiatus: versioon on aegunud, uuendus on nõutav!</translation>
</message>
<message>
<location line="-48"/>
<source>wallet.dat corrupt, salvage failed</source>
<translation>wallet.dat fail on katki, päästmine ebaõnnestus</translation>
</message>
<message>
<location line="-54"/>
<source>Password for JSON-RPC connections</source>
<translation>JSON-RPC ühenduste salasõna</translation>
</message>
<message>
<location line="-84"/>
<source>%s, you must set a rpcpassword in the configuration file:
%s
It is recommended you use the following random password:
rpcuser=mercuryrpc
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 "Mercury Alert" admin@foo.com
</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+51"/>
<source>Find peers using internet relay chat (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Sync time with other nodes. Disable if time on your system is precise e.g. syncing with NTP (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>When creating transactions, ignore inputs with value less than this (default: 0.01)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Allow JSON-RPC connections from specified IP address</source>
<translation>JSON-RPC ühenduste lubamine kindla IP pealt</translation>
</message>
<message>
<location line="+1"/>
<source>Send commands to node running on <ip> (default: 127.0.0.1)</source>
<translation>Saada käsklusi node'ile IP'ga <ip> (vaikeväärtus: 127.0.0.1)</translation>
</message>
<message>
<location line="+1"/>
<source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source>
<translation>Käivita käsklus, kui parim plokk muutub (käskluse %s asendatakse ploki hash'iga)</translation>
</message>
<message>
<location line="+3"/>
<source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source>
<translation>Käivita käsklus, kui rahakoti tehing muutub (%s cmd's muudetakse TxID'ks)</translation>
</message>
<message>
<location line="+3"/>
<source>Require a confirmations for change (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Enforce transaction scripts to use canonical PUSH operators (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Upgrade wallet to latest format</source>
<translation>Uuenda rahakott uusimasse vormingusse</translation>
</message>
<message>
<location line="+1"/>
<source>Set key pool size to <n> (default: 100)</source>
<translation>Sea võtmete hulgaks <n> (vaikeväärtus: 100)</translation>
</message>
<message>
<location line="+1"/>
<source>Rescan the block chain for missing wallet transactions</source>
<translation>Otsi ploki jadast rahakoti kadunud tehinguid</translation>
</message>
<message>
<location line="+2"/>
<source>How many blocks to check at startup (default: 2500, 0 = all)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>How thorough the block verification is (0-6, default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Imports blocks from external blk000?.dat file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Use OpenSSL (https) for JSON-RPC connections</source>
<translation>Kasuta JSON-RPC ühenduste jaoks OpenSSL'i (https)</translation>
</message>
<message>
<location line="+1"/>
<source>Server certificate file (default: server.cert)</source>
<translation>Serveri sertifikaadifail (vaikeväärtus: server.cert)</translation>
</message>
<message>
<location line="+1"/>
<source>Server private key (default: server.pem)</source>
<translation>Serveri privaatvõti (vaikeväärtus: server.pem)</translation>
</message>
<message>
<location line="+1"/>
<source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+53"/>
<source>Error: Wallet unlocked for staking only, unable to create transaction.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>WARNING: Invalid checkpoint found! Displayed transactions may not be correct! You may need to upgrade, or notify developers.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-158"/>
<source>This help message</source>
<translation>Käesolev abitekst</translation>
</message>
<message>
<location line="+95"/>
<source>Wallet %s resides outside data directory %s.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Cannot obtain a lock on data directory %s. Mercury is probably already running.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-98"/>
<source>Mercury</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+140"/>
<source>Unable to bind to %s on this computer (bind returned error %d, %s)</source>
<translation>Selle arvutiga ei ole võimalik siduda %s külge (katse nurjus %d, %s tõttu)</translation>
</message>
<message>
<location line="-130"/>
<source>Connect through socks proxy</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Allow DNS lookups for -addnode, -seednode and -connect</source>
<translation>-addnode, -seednode ja -connect tohivad kasutada DNS lookup'i</translation>
</message>
<message>
<location line="+122"/>
<source>Loading addresses...</source>
<translation>Aadresside laadimine...</translation>
</message>
<message>
<location line="-15"/>
<source>Error loading blkindex.dat</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Error loading wallet.dat: Wallet corrupted</source>
<translation>Viga wallet.dat käivitamisel. Vigane rahakkott</translation>
</message>
<message>
<location line="+4"/>
<source>Error loading wallet.dat: Wallet requires newer version of Mercury</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Wallet needed to be rewritten: restart Mercury to complete</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error loading wallet.dat</source>
<translation>Viga wallet.dat käivitamisel</translation>
</message>
<message>
<location line="-16"/>
<source>Invalid -proxy address: '%s'</source>
<translation>Vigane -proxi aadress: '%s'</translation>
</message>
<message>
<location line="-1"/>
<source>Unknown network specified in -onlynet: '%s'</source>
<translation>Kirjeldatud tundmatu võrgustik -onlynet'is: '%s'</translation>
</message>
<message>
<location line="-1"/>
<source>Unknown -socks proxy version requested: %i</source>
<translation>Küsitud tundmatu -socks proxi versioon: %i</translation>
</message>
<message>
<location line="+4"/>
<source>Cannot resolve -bind address: '%s'</source>
<translation>Tundmatu -bind aadress: '%s'</translation>
</message>
<message>
<location line="+2"/>
<source>Cannot resolve -externalip address: '%s'</source>
<translation>Tundmatu -externalip aadress: '%s'</translation>
</message>
<message>
<location line="-24"/>
<source>Invalid amount for -paytxfee=<amount>: '%s'</source>
<translation>-paytxfee=<amount> jaoks vigane kogus: '%s'</translation>
</message>
<message>
<location line="+44"/>
<source>Error: could not start node</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Sending...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Invalid amount</source>
<translation>Kehtetu summa</translation>
</message>
<message>
<location line="+1"/>
<source>Insufficient funds</source>
<translation>Liiga suur summa</translation>
</message>
<message>
<location line="-34"/>
<source>Loading block index...</source>
<translation>Klotside indeksi laadimine...</translation>
</message>
<message>
<location line="-103"/>
<source>Add a node to connect to and attempt to keep the connection open</source>
<translation>Lisa node ning hoia ühendus avatud</translation>
</message>
<message>
<location line="+122"/>
<source>Unable to bind to %s on this computer. Mercury is probably already running.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-97"/>
<source>Fee per KB to add to transactions you send</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+55"/>
<source>Invalid amount for -mininput=<amount>: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Loading wallet...</source>
<translation>Rahakoti laadimine...</translation>
</message>
<message>
<location line="+8"/>
<source>Cannot downgrade wallet</source>
<translation>Rahakoti vanandamine ebaõnnestus</translation>
</message>
<message>
<location line="+1"/>
<source>Cannot initialize keypool</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Cannot write default address</source>
<translation>Tõrge vaikimisi aadressi kirjutamisel</translation>
</message>
<message>
<location line="+1"/>
<source>Rescanning...</source>
<translation>Üleskaneerimine...</translation>
</message>
<message>
<location line="+5"/>
<source>Done loading</source>
<translation>Laetud</translation>
</message>
<message>
<location line="-167"/>
<source>To use the %s option</source>
<translation>%s valiku kasutamine</translation>
</message>
<message>
<location line="+14"/>
<source>Error</source>
<translation>Tõrge</translation>
</message>
<message>
<location line="+6"/>
<source>You must set rpcpassword=<password> in the configuration file:
%s
If the file does not exist, create it with owner-readable-only file permissions.</source>
<translation>rpcpassword=<password> peab sätete failis olema seadistatud:⏎
%s⏎
Kui seda faili ei ole, loo see ainult-omanikule-lugemiseks faili õigustes.</translation>
</message>
</context>
</TS> | Jheguy2/Mercury | src/qt/locale/bitcoin_et.ts | TypeScript | mit | 116,563 | [
30522,
1026,
1029,
20950,
2544,
1027,
1000,
1015,
1012,
1014,
1000,
1029,
1028,
1026,
999,
9986,
13874,
24529,
1028,
1026,
24529,
2653,
1027,
1000,
3802,
1000,
2544,
1027,
1000,
1016,
1012,
1015,
1000,
1028,
1026,
6123,
1028,
1026,
2171,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model app\models\AuthItem */
$this->title = 'Update Auth Item: ' . ' ' . $model->name;
$this->params['breadcrumbs'][] = ['label' => 'Auth Items', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->name]];
$this->params['breadcrumbs'][] = 'Update';
?>
<div class="auth-item-update">
<h1><?= Html::encode($this->title) ?></h1>
<?= $this->render('_form', [
'model' => $model,
]) ?>
</div>
| albertocamerino/Basic_yii_auth | views/auth-item/update.php | PHP | bsd-3-clause | 542 | [
30522,
1026,
1029,
25718,
2224,
12316,
2072,
1032,
2393,
2545,
1032,
16129,
1025,
1013,
1008,
1030,
13075,
1002,
2023,
12316,
2072,
1032,
4773,
1032,
3193,
1008,
1013,
1013,
1008,
1030,
13075,
1002,
2944,
10439,
1032,
4275,
1032,
8740,
1522... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package scc
import (
"errors"
"fmt"
"github.com/hyperledger/fabric/common/flogging"
"github.com/hyperledger/fabric/common/util"
"github.com/hyperledger/fabric/core/chaincode/shim"
"github.com/hyperledger/fabric/core/common/ccprovider"
"github.com/hyperledger/fabric/core/container/ccintf"
"github.com/hyperledger/fabric/core/container/inproccontroller"
"github.com/hyperledger/fabric/core/peer"
pb "github.com/hyperledger/fabric/protos/peer"
"github.com/spf13/viper"
)
var sysccLogger = flogging.MustGetLogger("sccapi")
// Registrar provides a way for system chaincodes to be registered
type Registrar interface {
// Register registers a system chaincode
Register(ccid *ccintf.CCID, cc shim.Chaincode) error
}
// SystemChaincode defines the metadata needed to initialize system chaincode
// when the fabric comes up. SystemChaincodes are installed by adding an
// entry in importsysccs.go
type SystemChaincode struct {
//Unique name of the system chaincode
Name string
//Path to the system chaincode; currently not used
Path string
//InitArgs initialization arguments to startup the system chaincode
InitArgs [][]byte
// Chaincode holds the actual chaincode instance
Chaincode shim.Chaincode
// InvokableExternal keeps track of whether
// this system chaincode can be invoked
// through a proposal sent to this peer
InvokableExternal bool
// InvokableCC2CC keeps track of whether
// this system chaincode can be invoked
// by way of a chaincode-to-chaincode
// invocation
InvokableCC2CC bool
// Enabled a convenient switch to enable/disable system chaincode without
// having to remove entry from importsysccs.go
Enabled bool
}
type SysCCWrapper struct {
SCC *SystemChaincode
}
func (sccw *SysCCWrapper) Name() string { return sccw.SCC.Name }
func (sccw *SysCCWrapper) Path() string { return sccw.SCC.Path }
func (sccw *SysCCWrapper) InitArgs() [][]byte { return sccw.SCC.InitArgs }
func (sccw *SysCCWrapper) Chaincode() shim.Chaincode { return sccw.SCC.Chaincode }
func (sccw *SysCCWrapper) InvokableExternal() bool { return sccw.SCC.InvokableExternal }
func (sccw *SysCCWrapper) InvokableCC2CC() bool { return sccw.SCC.InvokableCC2CC }
func (sccw *SysCCWrapper) Enabled() bool { return sccw.SCC.Enabled }
type SelfDescribingSysCC interface {
//Unique name of the system chaincode
Name() string
//Path to the system chaincode; currently not used
Path() string
//InitArgs initialization arguments to startup the system chaincode
InitArgs() [][]byte
// Chaincode returns the underlying chaincode
Chaincode() shim.Chaincode
// InvokableExternal keeps track of whether
// this system chaincode can be invoked
// through a proposal sent to this peer
InvokableExternal() bool
// InvokableCC2CC keeps track of whether
// this system chaincode can be invoked
// by way of a chaincode-to-chaincode
// invocation
InvokableCC2CC() bool
// Enabled a convenient switch to enable/disable system chaincode without
// having to remove entry from importsysccs.go
Enabled() bool
}
// registerSysCC registers the given system chaincode with the peer
func (p *Provider) registerSysCC(syscc SelfDescribingSysCC) (bool, error) {
if !syscc.Enabled() || !isWhitelisted(syscc) {
sysccLogger.Info(fmt.Sprintf("system chaincode (%s,%s,%t) disabled", syscc.Name(), syscc.Path(), syscc.Enabled()))
return false, nil
}
// XXX This is an ugly hack, version should be tied to the chaincode instance, not he peer binary
version := util.GetSysCCVersion()
ccid := &ccintf.CCID{
Name: syscc.Name(),
Version: version,
}
err := p.Registrar.Register(ccid, syscc.Chaincode())
if err != nil {
//if the type is registered, the instance may not be... keep going
if _, ok := err.(inproccontroller.SysCCRegisteredErr); !ok {
errStr := fmt.Sprintf("could not register (%s,%v): %s", syscc.Path(), syscc, err)
sysccLogger.Error(errStr)
return false, fmt.Errorf(errStr)
}
}
sysccLogger.Infof("system chaincode %s(%s) registered", syscc.Name(), syscc.Path())
return true, err
}
// deploySysCC deploys the given system chaincode on a chain
func deploySysCC(chainID string, ccprov ccprovider.ChaincodeProvider, syscc SelfDescribingSysCC) error {
if !syscc.Enabled() || !isWhitelisted(syscc) {
sysccLogger.Info(fmt.Sprintf("system chaincode (%s,%s) disabled", syscc.Name(), syscc.Path()))
return nil
}
txid := util.GenerateUUID()
// Note, this structure is barely initialized,
// we omit the history query executor, the proposal
// and the signed proposal
txParams := &ccprovider.TransactionParams{
TxID: txid,
ChannelID: chainID,
}
if chainID != "" {
lgr := peer.GetLedger(chainID)
if lgr == nil {
panic(fmt.Sprintf("syschain %s start up failure - unexpected nil ledger for channel %s", syscc.Name(), chainID))
}
txsim, err := lgr.NewTxSimulator(txid)
if err != nil {
return err
}
txParams.TXSimulator = txsim
defer txsim.Done()
}
chaincodeID := &pb.ChaincodeID{Path: syscc.Path(), Name: syscc.Name()}
spec := &pb.ChaincodeSpec{Type: pb.ChaincodeSpec_Type(pb.ChaincodeSpec_Type_value["GOLANG"]), ChaincodeId: chaincodeID, Input: &pb.ChaincodeInput{Args: syscc.InitArgs()}}
chaincodeDeploymentSpec := &pb.ChaincodeDeploymentSpec{ExecEnv: pb.ChaincodeDeploymentSpec_SYSTEM, ChaincodeSpec: spec}
// XXX This is an ugly hack, version should be tied to the chaincode instance, not he peer binary
version := util.GetSysCCVersion()
cccid := &ccprovider.CCContext{
Name: chaincodeDeploymentSpec.ChaincodeSpec.ChaincodeId.Name,
Version: version,
}
resp, _, err := ccprov.ExecuteLegacyInit(txParams, cccid, chaincodeDeploymentSpec)
if err == nil && resp.Status != shim.OK {
err = errors.New(resp.Message)
}
sysccLogger.Infof("system chaincode %s/%s(%s) deployed", syscc.Name(), chainID, syscc.Path())
return err
}
// deDeploySysCC stops the system chaincode and deregisters it from inproccontroller
func deDeploySysCC(chainID string, ccprov ccprovider.ChaincodeProvider, syscc SelfDescribingSysCC) error {
// XXX This is an ugly hack, version should be tied to the chaincode instance, not he peer binary
version := util.GetSysCCVersion()
ccci := &ccprovider.ChaincodeContainerInfo{
Type: "GOLANG",
Name: syscc.Name(),
Path: syscc.Path(),
Version: version,
ContainerType: inproccontroller.ContainerType,
}
err := ccprov.Stop(ccci)
return err
}
func isWhitelisted(syscc SelfDescribingSysCC) bool {
chaincodes := viper.GetStringMapString("chaincode.system")
val, ok := chaincodes[syscc.Name()]
enabled := val == "enable" || val == "true" || val == "yes"
return ok && enabled
}
| xixuejia/fabric | core/scc/sysccapi.go | GO | apache-2.0 | 6,802 | [
30522,
1013,
1008,
9385,
9980,
13058,
1012,
2035,
2916,
9235,
1012,
23772,
2595,
1011,
6105,
1011,
8909,
4765,
18095,
1024,
15895,
1011,
1016,
1012,
1014,
1008,
1013,
7427,
8040,
2278,
12324,
1006,
1000,
10697,
1000,
1000,
4718,
2102,
1000,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<TITLE>
HwmfFill.WmfFillRegion (POI API Documentation)
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="HwmfFill.WmfFillRegion (POI API Documentation)";
}
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<HR>
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/HwmfFill.WmfFillRegion.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../org/apache/poi/hwmf/record/HwmfFill.WmfExtFloodFill.html" title="class in org.apache.poi.hwmf.record"><B>PREV CLASS</B></A>
<A HREF="../../../../../org/apache/poi/hwmf/record/HwmfFill.WmfFloodFill.html" title="class in org.apache.poi.hwmf.record"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../index.html?org/apache/poi/hwmf/record/HwmfFill.WmfFillRegion.html" target="_top"><B>FRAMES</B></A>
<A HREF="HwmfFill.WmfFillRegion.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
org.apache.poi.hwmf.record</FONT>
<BR>
Class HwmfFill.WmfFillRegion</H2>
<PRE>
java.lang.Object
<IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.poi.hwmf.record.HwmfFill.WmfFillRegion</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../org/apache/poi/hwmf/record/HwmfRecord.html" title="interface in org.apache.poi.hwmf.record">HwmfRecord</A></DD>
</DL>
<DL>
<DT><B>Enclosing class:</B><DD><A HREF="../../../../../org/apache/poi/hwmf/record/HwmfFill.html" title="class in org.apache.poi.hwmf.record">HwmfFill</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public static class <B>HwmfFill.WmfFillRegion</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../../../org/apache/poi/hwmf/record/HwmfRecord.html" title="interface in org.apache.poi.hwmf.record">HwmfRecord</A></DL>
</PRE>
<P>
The META_FILLREGION record fills a region using a specified brush.
<P>
<P>
<HR>
<P>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../org/apache/poi/hwmf/record/HwmfFill.WmfFillRegion.html#HwmfFill.WmfFillRegion()">HwmfFill.WmfFillRegion</A></B>()</CODE>
<BR>
</TD>
</TR>
</TABLE>
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/poi/hwmf/record/HwmfFill.WmfFillRegion.html#draw(org.apache.poi.hwmf.draw.HwmfGraphics)">draw</A></B>(<A HREF="../../../../../org/apache/poi/hwmf/draw/HwmfGraphics.html" title="class in org.apache.poi.hwmf.draw">HwmfGraphics</A> ctx)</CODE>
<BR>
Apply the record settings to the graphics context</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../../org/apache/poi/hwmf/record/HwmfRecordType.html" title="enum in org.apache.poi.hwmf.record">HwmfRecordType</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/poi/hwmf/record/HwmfFill.WmfFillRegion.html#getRecordType()">getRecordType</A></B>()</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/poi/hwmf/record/HwmfFill.WmfFillRegion.html#init(org.apache.poi.util.LittleEndianInputStream, long, int)">init</A></B>(<A HREF="../../../../../org/apache/poi/util/LittleEndianInputStream.html" title="class in org.apache.poi.util">LittleEndianInputStream</A> leis,
long recordSize,
int recordFunction)</CODE>
<BR>
Init record from stream</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="HwmfFill.WmfFillRegion()"><!-- --></A><H3>
HwmfFill.WmfFillRegion</H3>
<PRE>
public <B>HwmfFill.WmfFillRegion</B>()</PRE>
<DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="getRecordType()"><!-- --></A><H3>
getRecordType</H3>
<PRE>
public <A HREF="../../../../../org/apache/poi/hwmf/record/HwmfRecordType.html" title="enum in org.apache.poi.hwmf.record">HwmfRecordType</A> <B>getRecordType</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/poi/hwmf/record/HwmfRecord.html#getRecordType()">getRecordType</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/poi/hwmf/record/HwmfRecord.html" title="interface in org.apache.poi.hwmf.record">HwmfRecord</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="init(org.apache.poi.util.LittleEndianInputStream, long, int)"><!-- --></A><H3>
init</H3>
<PRE>
public int <B>init</B>(<A HREF="../../../../../org/apache/poi/util/LittleEndianInputStream.html" title="class in org.apache.poi.util">LittleEndianInputStream</A> leis,
long recordSize,
int recordFunction)
throws java.io.IOException</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/apache/poi/hwmf/record/HwmfRecord.html#init(org.apache.poi.util.LittleEndianInputStream, long, int)">HwmfRecord</A></CODE></B></DD>
<DD>Init record from stream
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/poi/hwmf/record/HwmfRecord.html#init(org.apache.poi.util.LittleEndianInputStream, long, int)">init</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/poi/hwmf/record/HwmfRecord.html" title="interface in org.apache.poi.hwmf.record">HwmfRecord</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>leis</CODE> - the little endian input stream
<DT><B>Returns:</B><DD>count of processed bytes
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="draw(org.apache.poi.hwmf.draw.HwmfGraphics)"><!-- --></A><H3>
draw</H3>
<PRE>
public void <B>draw</B>(<A HREF="../../../../../org/apache/poi/hwmf/draw/HwmfGraphics.html" title="class in org.apache.poi.hwmf.draw">HwmfGraphics</A> ctx)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/apache/poi/hwmf/record/HwmfRecord.html#draw(org.apache.poi.hwmf.draw.HwmfGraphics)">HwmfRecord</A></CODE></B></DD>
<DD>Apply the record settings to the graphics context
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/poi/hwmf/record/HwmfRecord.html#draw(org.apache.poi.hwmf.draw.HwmfGraphics)">draw</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/poi/hwmf/record/HwmfRecord.html" title="interface in org.apache.poi.hwmf.record">HwmfRecord</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ctx</CODE> - the graphics context to modify</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/HwmfFill.WmfFillRegion.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../org/apache/poi/hwmf/record/HwmfFill.WmfExtFloodFill.html" title="class in org.apache.poi.hwmf.record"><B>PREV CLASS</B></A>
<A HREF="../../../../../org/apache/poi/hwmf/record/HwmfFill.WmfFloodFill.html" title="class in org.apache.poi.hwmf.record"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../index.html?org/apache/poi/hwmf/record/HwmfFill.WmfFillRegion.html" target="_top"><B>FRAMES</B></A>
<A HREF="HwmfFill.WmfFillRegion.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
<i>Copyright 2016 The Apache Software Foundation or
its licensors, as applicable.</i>
</BODY>
</HTML>
| Sebaxtian/KDD | poi-3.14/docs/apidocs/org/apache/poi/hwmf/record/HwmfFill.WmfFillRegion.html | HTML | mit | 14,948 | [
30522,
1026,
999,
9986,
13874,
16129,
2270,
1000,
1011,
1013,
1013,
1059,
2509,
2278,
1013,
1013,
26718,
2094,
16129,
1018,
1012,
5890,
17459,
1013,
1013,
4372,
1000,
1000,
8299,
1024,
1013,
1013,
7479,
1012,
1059,
2509,
1012,
8917,
1013,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/**
* Copyright (c) 2013-2020 Nikita Koksharov
*
* 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 org.redisson.iterator;
import java.util.AbstractMap;
import java.util.Map;
import java.util.Map.Entry;
/**
*
* @author Nikita Koksharov
*
* @param <V> value type
*/
public abstract class RedissonBaseMapIterator<V> extends BaseIterator<V, Entry<Object, Object>> {
@SuppressWarnings("unchecked")
protected V getValue(Map.Entry<Object, Object> entry) {
return (V) new AbstractMap.SimpleEntry(entry.getKey(), entry.getValue()) {
@Override
public Object setValue(Object value) {
return put(entry, value);
}
};
}
protected abstract Object put(Entry<Object, Object> entry, Object value);
}
| mrniko/redisson | redisson/src/main/java/org/redisson/iterator/RedissonBaseMapIterator.java | Java | apache-2.0 | 1,297 | [
30522,
1013,
1008,
1008,
1008,
9385,
1006,
1039,
1007,
2286,
1011,
12609,
29106,
12849,
28132,
12298,
1008,
1008,
7000,
2104,
1996,
15895,
6105,
1010,
2544,
1016,
1012,
1014,
1006,
1996,
1000,
6105,
1000,
1007,
1025,
1008,
2017,
2089,
2025,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
jsonp({"cep":"78558275","logradouro":"Estrada Dalva","bairro":"Jardim Umuarama","cidade":"Sinop","uf":"MT","estado":"Mato Grosso"});
| lfreneda/cepdb | api/v1/78558275.jsonp.js | JavaScript | cc0-1.0 | 133 | [
30522,
1046,
3385,
2361,
1006,
1063,
1000,
8292,
2361,
1000,
1024,
1000,
6275,
24087,
2620,
22907,
2629,
1000,
1010,
1000,
8833,
12173,
8162,
2080,
1000,
1024,
1000,
26482,
17488,
3567,
1000,
1010,
1000,
21790,
18933,
1000,
1024,
1000,
1572... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<?php
namespace Saxulum\Tests\MessageQueue\Redis;
use PHPUnit\Framework\TestCase;
use Predis\Client;
use Saxulum\MessageQueue\Redis\RedisReceive;
use Saxulum\Tests\MessageQueue\Resources\SampleMessage;
use Symfony\Component\Process\Process;
/**
* @group integration
* @coversNothing
*/
final class RedisIntegrationTest extends TestCase
{
/**
* @runInSeparateProcess
*/
public function testWithSubProcess()
{
$subProcessPath = __DIR__.'/RedisSubProcess.php';
/** @var Process[] $subProcesses */
$subProcesses = [];
for ($i = 1; $i <= 5; ++$i) {
$subProcesses[] = new Process($subProcessPath.' messages '.$i);
}
$output = '';
$errorOutput = '';
foreach ($subProcesses as $subProcess) {
$subProcess->start(function ($type, $buffer) use (&$output, &$errorOutput) {
if (Process::OUT === $type) {
$output .= $buffer;
} elseif (Process::ERR === $type) {
$errorOutput .= $buffer;
}
});
}
$receive = new RedisReceive(SampleMessage::class, new Client(), 'messages');
/** @var SampleMessage[] $receivedMessages */
$receivedMessages = [];
do {
$subProcessesRunning = [];
foreach ($subProcesses as $subProcess) {
if ($subProcess->isRunning()) {
$subProcessesRunning[] = $subProcess;
}
}
$receivedMessages = array_merge($receivedMessages, $receive->receiveAll());
} while ([] !== $subProcessesRunning);
$receivedMessagesBySubProcesses = [];
foreach ($receivedMessages as $receivedMessage) {
$context = $receivedMessage->getContext();
if (!isset($receivedMessagesBySubProcesses[$context])) {
$receivedMessagesBySubProcesses[$context] = [];
}
$receivedMessagesBySubProcesses[$context][] = $receivedMessage;
}
self::assertSame(19450, strlen($output));
self::assertEmpty($errorOutput, $errorOutput);
self::assertCount(500, $receivedMessages);
self::assertCount(5, $receivedMessagesBySubProcesses);
}
}
| saxulum/saxulum-message-queue | tests/Redis/RedisIntegrationTest.php | PHP | mit | 2,281 | [
30522,
1026,
1029,
25718,
3415,
15327,
19656,
25100,
1032,
5852,
1032,
4471,
4226,
5657,
1032,
2417,
2483,
1025,
2224,
25718,
19496,
2102,
1032,
7705,
1032,
3231,
18382,
1025,
2224,
3653,
10521,
1032,
7396,
1025,
2224,
19656,
25100,
1032,
4... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
* Copyright (c) 2006 Apple Computer, Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file except in
* compliance with the License. Please obtain a copy of the License at
* http://www.opensource.apple.com/apsl/ and read it before using this
* file.
*
* The Original Code and all software distributed under the License are
* distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
* EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
* INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
* Please see the License for the specific language governing rights and
* limitations under the License.
*
* @APPLE_LICENSE_HEADER_END@
*/
/*!
@header IOPMKeys.h
IOPMKeys.h defines C strings for use accessing power management data.
Note that all of these C strings must be converted to CFStrings before use. You can wrap
them with the CFSTR() macro, or create a CFStringRef (that you must later CFRelease()) using CFStringCreateWithCString()
*/
#ifndef _IOPMKEYS_H_
#define _IOPMKEYS_H_
/*
* Types of power event
* These are potential arguments to IOPMSchedulePowerEvent().
* These are all potential values of the kIOPMPowerEventTypeKey in the CFDictionaries
* returned by IOPMCopyScheduledPowerEvents().
*/
/*!
@define kIOPMAutoWake
@abstract Value for scheduled wake from sleep.
*/
#define kIOPMAutoWake "wake"
/*!
@define kIOPMAutoPowerOn
@abstract Value for scheduled power on from off state.
*/
#define kIOPMAutoPowerOn "poweron"
/*!
@define kIOPMAutoWakeOrPowerOn
@abstract Value for scheduled wake from sleep, or power on. The system will either wake OR
power on, whichever is necessary.
*/
#define kIOPMAutoWakeOrPowerOn "wakepoweron"
/*!
@define kIOPMAutoSleep
@abstract Value for scheduled sleep.
*/
#define kIOPMAutoSleep "sleep"
/*!
@define kIOPMAutoShutdown
@abstract Value for scheduled shutdown.
*/
#define kIOPMAutoShutdown "shutdown"
/*!
@define kIOPMAutoRestart
@abstract Value for scheduled restart.
*/
#define kIOPMAutoRestart "restart"
/*
* Keys for evaluating the CFDictionaries returned by IOPMCopyScheduledPowerEvents()
*/
/*!
@define kIOPMPowerEventTimeKey
@abstract Key for the time of the scheduled power event. Value is a CFDateRef.
*/
#define kIOPMPowerEventTimeKey "time"
/*!
@define kIOPMPowerEventAppNameKey
@abstract Key for the CFBundleIdentifier of the app that scheduled the power event. Value is a CFStringRef.
*/
#define kIOPMPowerEventAppNameKey "scheduledby"
/*!
@define kIOPMPowerEventTypeKey
@abstract Key for the type of power event. Value is a CFStringRef, with the c-string value of one of the "kIOPMAuto" strings.
*/
#define kIOPMPowerEventTypeKey "eventtype"
#endif
| x56/pris0nbarake | untethers/include/IOKit/pwr_mgt/IOPMKeys.h | C | gpl-3.0 | 3,342 | [
30522,
1013,
1008,
1008,
9385,
1006,
1039,
1007,
2294,
6207,
3274,
1010,
4297,
1012,
2035,
2916,
9235,
1012,
1008,
1008,
1030,
6207,
1035,
6105,
1035,
20346,
1035,
2707,
1030,
1008,
1008,
2023,
5371,
3397,
2434,
3642,
1998,
1013,
2030,
12... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<?php /* Smarty version Smarty-3.1.19, created on 2016-03-17 14:44:03
compiled from "/Users/Evergreen/Documents/workspace/licpresta/admin/themes/default/template/controllers/shop/helpers/list/list_action_delete.tpl" */ ?>
<?php /*%%SmartyHeaderCode:154545909656eab4a3d7e136-98563971%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'cbf2ed399b76a836e7562130658957cc92238d15' =>
array (
0 => '/Users/Evergreen/Documents/workspace/licpresta/admin/themes/default/template/controllers/shop/helpers/list/list_action_delete.tpl',
1 => 1452095428,
2 => 'file',
),
),
'nocache_hash' => '154545909656eab4a3d7e136-98563971',
'function' =>
array (
),
'variables' =>
array (
'href' => 0,
'action' => 0,
'id_shop' => 0,
'shops_having_dependencies' => 0,
'confirm' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56eab4a3e7ff77_59198683',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56eab4a3e7ff77_59198683')) {function content_56eab4a3e7ff77_59198683($_smarty_tpl) {?>
<a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['href']->value, ENT_QUOTES, 'UTF-8', true);?>
" class="delete" title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['action']->value, ENT_QUOTES, 'UTF-8', true);?>
"
<?php if (in_array($_smarty_tpl->tpl_vars['id_shop']->value,$_smarty_tpl->tpl_vars['shops_having_dependencies']->value)) {?>
onclick="jAlert('<?php echo smartyTranslate(array('s'=>'You cannot delete this shop\'s (customer and/or order dependency)','js'=>1),$_smarty_tpl);?>
'); return false;"
<?php } elseif (isset($_smarty_tpl->tpl_vars['confirm']->value)) {?>
onclick="if (confirm('<?php echo $_smarty_tpl->tpl_vars['confirm']->value;?>
')){return true;}else{event.stopPropagation(); event.preventDefault();};"
<?php }?>>
<i class="icon-trash"></i> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['action']->value, ENT_QUOTES, 'UTF-8', true);?>
</a><?php }} ?>
| ToxEn/LicPresta | cache/smarty/compile/cb/f2/ed/cbf2ed399b76a836e7562130658957cc92238d15.file.list_action_delete.tpl.php | PHP | gpl-3.0 | 2,123 | [
30522,
1026,
1029,
25718,
1013,
1008,
6047,
2100,
2544,
6047,
2100,
1011,
1017,
1012,
1015,
1012,
2539,
1010,
2580,
2006,
2355,
1011,
6021,
1011,
2459,
2403,
1024,
4008,
1024,
6021,
9227,
2013,
1000,
1013,
5198,
1013,
16899,
1013,
5491,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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 org.apache.camel.component.netty4;
import java.net.URI;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ThreadFactory;
import io.netty.util.concurrent.DefaultEventExecutorGroup;
import io.netty.util.concurrent.EventExecutorGroup;
import org.apache.camel.CamelContext;
import org.apache.camel.Endpoint;
import org.apache.camel.impl.UriEndpointComponent;
import org.apache.camel.util.IntrospectionSupport;
import org.apache.camel.util.concurrent.CamelThreadFactory;
public class NettyComponent extends UriEndpointComponent {
private NettyConfiguration configuration;
private volatile EventExecutorGroup executorService;
public NettyComponent() {
super(NettyEndpoint.class);
}
public NettyComponent(Class<? extends Endpoint> endpointClass) {
super(endpointClass);
}
public NettyComponent(CamelContext context) {
super(context, NettyEndpoint.class);
}
@Override
protected Endpoint createEndpoint(String uri, String remaining, Map<String, Object> parameters) throws Exception {
NettyConfiguration config;
if (configuration != null) {
config = configuration.copy();
} else {
config = new NettyConfiguration();
}
config = parseConfiguration(config, remaining, parameters);
// merge any custom bootstrap configuration on the config
NettyServerBootstrapConfiguration bootstrapConfiguration = resolveAndRemoveReferenceParameter(parameters, "bootstrapConfiguration", NettyServerBootstrapConfiguration.class);
if (bootstrapConfiguration != null) {
Map<String, Object> options = new HashMap<String, Object>();
if (IntrospectionSupport.getProperties(bootstrapConfiguration, options, null, false)) {
IntrospectionSupport.setProperties(getCamelContext().getTypeConverter(), config, options);
}
}
// validate config
config.validateConfiguration();
NettyEndpoint nettyEndpoint = new NettyEndpoint(remaining, this, config);
setProperties(nettyEndpoint.getConfiguration(), parameters);
return nettyEndpoint;
}
/**
* Parses the configuration
*
* @return the parsed and valid configuration to use
*/
protected NettyConfiguration parseConfiguration(NettyConfiguration configuration, String remaining, Map<String, Object> parameters) throws Exception {
configuration.parseURI(new URI(remaining), parameters, this, "tcp", "udp");
return configuration;
}
public NettyConfiguration getConfiguration() {
return configuration;
}
public void setConfiguration(NettyConfiguration configuration) {
this.configuration = configuration;
}
public void setExecutorService(EventExecutorGroup executorService) {
this.executorService = executorService;
}
public synchronized EventExecutorGroup getExecutorService() {
if (executorService == null) {
executorService = createExecutorService();
}
return executorService;
}
@Override
protected void doStart() throws Exception {
if (configuration == null) {
configuration = new NettyConfiguration();
}
if (configuration.isUsingExecutorService() && executorService == null) {
executorService = createExecutorService();
}
super.doStart();
}
protected EventExecutorGroup createExecutorService() {
// Provide the executor service for the application
// and use a Camel thread factory so we have consistent thread namings
// we should use a shared thread pool as recommended by Netty
String pattern = getCamelContext().getExecutorServiceManager().getThreadNamePattern();
ThreadFactory factory = new CamelThreadFactory(pattern, "NettyEventExecutorGroup", true);
return new DefaultEventExecutorGroup(configuration.getMaximumPoolSize(), factory);
}
@Override
protected void doStop() throws Exception {
if (executorService != null) {
getCamelContext().getExecutorServiceManager().shutdownNow(executorService);
executorService = null;
}
super.doStop();
}
}
| logzio/camel | components/camel-netty4/src/main/java/org/apache/camel/component/netty4/NettyComponent.java | Java | apache-2.0 | 5,124 | [
30522,
1013,
1008,
1008,
1008,
7000,
2000,
1996,
15895,
4007,
3192,
1006,
2004,
2546,
1007,
2104,
2028,
2030,
2062,
1008,
12130,
6105,
10540,
1012,
2156,
1996,
5060,
5371,
5500,
2007,
1008,
2023,
2147,
2005,
3176,
2592,
4953,
9385,
6095,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/**
* Copyright (C) 2010-2013 Alibaba Group Holding Limited
*
* 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 com.alibaba.rocketmq.client.consumer.listener;
import java.util.List;
import com.alibaba.rocketmq.common.message.MessageExt;
/**
* 同一队列的消息并行消费
*
* @author shijia.wxr<vintage.wang@gmail.com>
* @since 2013-7-24
*/
public interface MessageListenerConcurrently extends MessageListener {
/**
* 方法抛出异常等同于返回 ConsumeConcurrentlyStatus.RECONSUME_LATER<br>
* P.S: 建议应用不要抛出异常
*
* @param msgs
* msgs.size() >= 1<br>
* DefaultMQPushConsumer.consumeMessageBatchMaxSize=1,默认消息数为1
* @param context
* @return
*/
public ConsumeConcurrentlyStatus consumeMessage(final List<MessageExt> msgs,
final ConsumeConcurrentlyContext context);
}
| dingjun84/mq-backup | rocketmq-client/src/main/java/com/alibaba/rocketmq/client/consumer/listener/MessageListenerConcurrently.java | Java | apache-2.0 | 1,466 | [
30522,
1013,
1008,
1008,
1008,
9385,
1006,
1039,
1007,
2230,
1011,
2286,
4862,
3676,
3676,
2177,
3173,
3132,
1008,
1008,
7000,
2104,
1996,
15895,
6105,
1010,
2544,
1016,
1012,
1014,
1006,
1996,
1000,
6105,
1000,
1007,
1025,
1008,
2017,
20... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>lxml.tests.dummy_http_server._RequestHandler</title>
<link rel="stylesheet" href="epydoc.css" type="text/css" />
<script type="text/javascript" src="epydoc.js"></script>
</head>
<body bgcolor="white" text="black" link="blue" vlink="#204080"
alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
bgcolor="#a0c0ff" cellspacing="0">
<tr valign="middle">
<!-- Home link -->
<th> <a
href="lxml-module.html">Home</a> </th>
<!-- Tree link -->
<th> <a
href="module-tree.html">Trees</a> </th>
<!-- Index link -->
<th> <a
href="identifier-index.html">Indices</a> </th>
<!-- Help link -->
<th> <a
href="help.html">Help</a> </th>
<!-- Project homepage -->
<th class="navbar" align="right" width="100%">
<table border="0" cellpadding="0" cellspacing="0">
<tr><th class="navbar" align="center"
><a class="navbar" target="_top" href="/">lxml API</a></th>
</tr></table></th>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
<tr valign="top">
<td width="100%">
<span class="breadcrumbs">
<a href="lxml-module.html">Package lxml</a> ::
<a href="lxml.tests-module.html">Package tests</a> ::
<a href="lxml.tests.dummy_http_server-module.html">Module dummy_http_server</a> ::
Class _RequestHandler
</span>
</td>
<td>
<table cellpadding="0" cellspacing="0">
<!-- hide/show private -->
<tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
onclick="toggle_private();">hide private</a>]</span></td></tr>
<tr><td align="right"><span class="options"
>[<a href="frames.html" target="_top">frames</a
>] | <a href="lxml.tests.dummy_http_server._RequestHandler-class.html"
target="_top">no frames</a>]</span></td></tr>
</table>
</td>
</tr>
</table>
<!-- ==================== CLASS DESCRIPTION ==================== -->
<h1 class="epydoc">Class _RequestHandler</h1><p class="nomargin-top"><span class="codelink"><a href="lxml.tests.dummy_http_server-pysrc.html#_RequestHandler">source code</a></span></p>
<pre class="base-tree">
SocketServer.BaseRequestHandler --+
|
SocketServer.StreamRequestHandler --+
|
BaseHTTPServer.BaseHTTPRequestHandler --+
|
wsgiref.simple_server.WSGIRequestHandler --+
|
<strong class="uidshort">_RequestHandler</strong>
</pre>
<hr />
<!-- ==================== NESTED CLASSES ==================== -->
<a name="section-NestedClasses"></a>
<table class="summary" border="1" cellpadding="3"
cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
<td colspan="2" class="table-header">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr valign="top">
<td align="left"><span class="table-header">Nested Classes</span></td>
<td align="right" valign="top"
><span class="options">[<a href="#section-NestedClasses"
class="privatelink" onclick="toggle_private();"
>hide private</a>]</span></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" class="summary">
<p class="indent-wrapped-lines"><b>Inherited from <code>BaseHTTPServer.BaseHTTPRequestHandler</code></b>:
<code><a href="mimetools.Message-class.html">MessageClass</a></code>
</p>
</td>
</tr>
</table>
<!-- ==================== INSTANCE METHODS ==================== -->
<a name="section-InstanceMethods"></a>
<table class="summary" border="1" cellpadding="3"
cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
<td colspan="2" class="table-header">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr valign="top">
<td align="left"><span class="table-header">Instance Methods</span></td>
<td align="right" valign="top"
><span class="options">[<a href="#section-InstanceMethods"
class="privatelink" onclick="toggle_private();"
>hide private</a>]</span></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="15%" align="right" valign="top" class="summary">
<span class="summary-type"> </span>
</td><td class="summary">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td><span class="summary-sig"><a href="lxml.tests.dummy_http_server._RequestHandler-class.html#get_stderr" class="summary-sig-name">get_stderr</a>(<span class="summary-sig-arg">self</span>)</span></td>
<td align="right" valign="top">
<span class="codelink"><a href="lxml.tests.dummy_http_server-pysrc.html#_RequestHandler.get_stderr">source code</a></span>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="15%" align="right" valign="top" class="summary">
<span class="summary-type"> </span>
</td><td class="summary">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td><span class="summary-sig"><a href="lxml.tests.dummy_http_server._RequestHandler-class.html#log_message" class="summary-sig-name">log_message</a>(<span class="summary-sig-arg">self</span>,
<span class="summary-sig-arg">format</span>,
<span class="summary-sig-arg">*args</span>)</span><br />
Log an arbitrary message.</td>
<td align="right" valign="top">
<span class="codelink"><a href="lxml.tests.dummy_http_server-pysrc.html#_RequestHandler.log_message">source code</a></span>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" class="summary">
<p class="indent-wrapped-lines"><b>Inherited from <code>wsgiref.simple_server.WSGIRequestHandler</code></b>:
<code>get_environ</code>,
<code>handle</code>
</p>
<p class="indent-wrapped-lines"><b>Inherited from <code>BaseHTTPServer.BaseHTTPRequestHandler</code></b>:
<code>address_string</code>,
<code>date_time_string</code>,
<code>end_headers</code>,
<code>handle_one_request</code>,
<code>log_date_time_string</code>,
<code>log_error</code>,
<code>log_request</code>,
<code>parse_request</code>,
<code>send_error</code>,
<code>send_header</code>,
<code>send_response</code>,
<code>version_string</code>
</p>
<p class="indent-wrapped-lines"><b>Inherited from <code>SocketServer.StreamRequestHandler</code></b>:
<code>finish</code>,
<code>setup</code>
</p>
<p class="indent-wrapped-lines"><b>Inherited from <code>SocketServer.BaseRequestHandler</code></b>:
<code>__init__</code>
</p>
</td>
</tr>
</table>
<!-- ==================== CLASS VARIABLES ==================== -->
<a name="section-ClassVariables"></a>
<table class="summary" border="1" cellpadding="3"
cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
<td colspan="2" class="table-header">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr valign="top">
<td align="left"><span class="table-header">Class Variables</span></td>
<td align="right" valign="top"
><span class="options">[<a href="#section-ClassVariables"
class="privatelink" onclick="toggle_private();"
>hide private</a>]</span></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" class="summary">
<p class="indent-wrapped-lines"><b>Inherited from <code>wsgiref.simple_server.WSGIRequestHandler</code></b>:
<code>server_version</code>
</p>
<p class="indent-wrapped-lines"><b>Inherited from <code>BaseHTTPServer.BaseHTTPRequestHandler</code></b>:
<code>default_request_version</code>,
<code>error_content_type</code>,
<code>error_message_format</code>,
<code>monthname</code>,
<code>protocol_version</code>,
<code>responses</code>,
<code>sys_version</code>,
<code>weekdayname</code>
</p>
<p class="indent-wrapped-lines"><b>Inherited from <code>SocketServer.StreamRequestHandler</code></b>:
<code>disable_nagle_algorithm</code>,
<code>rbufsize</code>,
<code>timeout</code>,
<code>wbufsize</code>
</p>
</td>
</tr>
</table>
<!-- ==================== METHOD DETAILS ==================== -->
<a name="section-MethodDetails"></a>
<table class="details" border="1" cellpadding="3"
cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
<td colspan="2" class="table-header">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr valign="top">
<td align="left"><span class="table-header">Method Details</span></td>
<td align="right" valign="top"
><span class="options">[<a href="#section-MethodDetails"
class="privatelink" onclick="toggle_private();"
>hide private</a>]</span></td>
</tr>
</table>
</td>
</tr>
</table>
<a name="get_stderr"></a>
<div>
<table class="details" border="1" cellpadding="3"
cellspacing="0" width="100%" bgcolor="white">
<tr><td>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr valign="top"><td>
<h3 class="epydoc"><span class="sig"><span class="sig-name">get_stderr</span>(<span class="sig-arg">self</span>)</span>
</h3>
</td><td align="right" valign="top"
><span class="codelink"><a href="lxml.tests.dummy_http_server-pysrc.html#_RequestHandler.get_stderr">source code</a></span>
</td>
</tr></table>
<dl class="fields">
<dt>Overrides:
wsgiref.simple_server.WSGIRequestHandler.get_stderr
</dt>
</dl>
</td></tr></table>
</div>
<a name="log_message"></a>
<div>
<table class="details" border="1" cellpadding="3"
cellspacing="0" width="100%" bgcolor="white">
<tr><td>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr valign="top"><td>
<h3 class="epydoc"><span class="sig"><span class="sig-name">log_message</span>(<span class="sig-arg">self</span>,
<span class="sig-arg">format</span>,
<span class="sig-arg">*args</span>)</span>
</h3>
</td><td align="right" valign="top"
><span class="codelink"><a href="lxml.tests.dummy_http_server-pysrc.html#_RequestHandler.log_message">source code</a></span>
</td>
</tr></table>
<p>Log an arbitrary message.</p>
<p>This is used by all other logging functions. Override
it if you have specific logging wishes.</p>
<p>The first argument, FORMAT, is a format string for the
message to be logged. If the format string contains
any % escapes requiring parameters, they should be
specified as subsequent arguments (it's just like
printf!).</p>
<p>The client ip address and current date/time are prefixed to every
message.</p>
<dl class="fields">
<dt>Overrides:
BaseHTTPServer.BaseHTTPRequestHandler.log_message
<dd><em class="note">(inherited documentation)</em></dd>
</dt>
</dl>
</td></tr></table>
</div>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
bgcolor="#a0c0ff" cellspacing="0">
<tr valign="middle">
<!-- Home link -->
<th> <a
href="lxml-module.html">Home</a> </th>
<!-- Tree link -->
<th> <a
href="module-tree.html">Trees</a> </th>
<!-- Index link -->
<th> <a
href="identifier-index.html">Indices</a> </th>
<!-- Help link -->
<th> <a
href="help.html">Help</a> </th>
<!-- Project homepage -->
<th class="navbar" align="right" width="100%">
<table border="0" cellpadding="0" cellspacing="0">
<tr><th class="navbar" align="center"
><a class="navbar" target="_top" href="/">lxml API</a></th>
</tr></table></th>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
<tr>
<td align="left" class="footer">
Generated by Epydoc 3.0.1
on Tue Mar 13 20:17:56 2018
</td>
<td align="right" class="footer">
<a target="mainFrame" href="http://epydoc.sourceforge.net"
>http://epydoc.sourceforge.net</a>
</td>
</tr>
</table>
<script type="text/javascript">
<!--
// Private objects are initially displayed (because if
// javascript is turned off then we want them to be
// visible); but by default, we want to hide them. So hide
// them unless we have a cookie that says to show them.
checkCookie();
// -->
</script>
</body>
</html>
| MichaelCoughlinAN/Odds-N-Ends | Python/Python Modules/lxml-4.2.0/doc/html/api/lxml.tests.dummy_http_server._RequestHandler-class.html | HTML | gpl-3.0 | 13,546 | [
30522,
1026,
1029,
20950,
2544,
1027,
1000,
1015,
1012,
1014,
1000,
17181,
1027,
1000,
2004,
6895,
2072,
1000,
1029,
1028,
1026,
999,
9986,
13874,
16129,
2270,
1000,
1011,
1013,
1013,
1059,
2509,
2278,
1013,
1013,
26718,
2094,
1060,
11039,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
from ..base import BaseTopazTest
class TestMarshal(BaseTopazTest):
def test_version_constants(self, space):
w_res = space.execute("return Marshal::MAJOR_VERSION")
assert space.int_w(w_res) == 4
w_res = space.execute("return Marshal::MINOR_VERSION")
assert space.int_w(w_res) == 8
w_res = space.execute("return Marshal.dump('test')[0].ord")
assert space.int_w(w_res) == 4
w_res = space.execute("return Marshal.dump('test')[1].ord")
assert space.int_w(w_res) == 8
def test_dump_constants(self, space):
w_res = space.execute("return Marshal.dump(nil)")
assert space.str_w(w_res) == "\x04\b0"
w_res = space.execute("return Marshal.dump(true)")
assert space.str_w(w_res) == "\x04\bT"
w_res = space.execute("return Marshal.dump(false)")
assert space.str_w(w_res) == "\x04\bF"
def test_load_constants(self, space):
w_res = space.execute("return Marshal.load('\x04\b0')")
assert w_res == space.w_nil
w_res = space.execute("return Marshal.load('\x04\bT')")
assert w_res == space.w_true
w_res = space.execute("return Marshal.load('\x04\bF')")
assert w_res == space.w_false
def test_constants(self, space):
w_res = space.execute("return Marshal.load(Marshal.dump(nil))")
assert w_res == space.w_nil
w_res = space.execute("return Marshal.load(Marshal.dump(true))")
assert w_res == space.w_true
w_res = space.execute("return Marshal.load(Marshal.dump(false))")
assert w_res == space.w_false
def test_dump_tiny_integer(self, space):
w_res = space.execute("return Marshal.dump(5)")
assert space.str_w(w_res) == "\x04\bi\n"
w_res = space.execute("return Marshal.dump(100)")
assert space.str_w(w_res) == "\x04\bii"
w_res = space.execute("return Marshal.dump(0)")
assert space.str_w(w_res) == "\x04\bi\x00"
w_res = space.execute("return Marshal.dump(-1)")
assert space.str_w(w_res) == "\x04\bi\xFA"
w_res = space.execute("return Marshal.dump(-123)")
assert space.str_w(w_res) == "\x04\bi\x80"
w_res = space.execute("return Marshal.dump(122)")
assert space.str_w(w_res) == "\x04\bi\x7F"
def test_load_tiny_integer(self, space):
w_res = space.execute("return Marshal.load('\x04\bi\n')")
assert space.int_w(w_res) == 5
w_res = space.execute("return Marshal.load('\x04\bii')")
assert space.int_w(w_res) == 100
#w_res = space.execute('return Marshal.load("\x04\bi\x00")')
w_res = space.execute('return Marshal.load(Marshal.dump(0))')
assert space.int_w(w_res) == 0
w_res = space.execute("return Marshal.load('\x04\bi\xFA')")
assert space.int_w(w_res) == -1
w_res = space.execute("return Marshal.load('\x04\bi\x80')")
assert space.int_w(w_res) == -123
w_res = space.execute("return Marshal.load('\x04\bi\x7F')")
assert space.int_w(w_res) == 122
def test_dump_array(self, space):
w_res = space.execute("return Marshal.dump([])")
assert space.str_w(w_res) == "\x04\b[\x00"
w_res = space.execute("return Marshal.dump([nil])")
assert space.str_w(w_res) == "\x04\b[\x060"
w_res = space.execute("return Marshal.dump([nil, true, false])")
assert space.str_w(w_res) == "\x04\b[\b0TF"
w_res = space.execute("return Marshal.dump([1, 2, 3])")
assert space.str_w(w_res) == "\x04\b[\x08i\x06i\x07i\x08"
w_res = space.execute("return Marshal.dump([1, [2, 3], 4])")
assert space.str_w(w_res) == "\x04\b[\bi\x06[\ai\ai\bi\t"
w_res = space.execute("return Marshal.dump([:foo, :bar])")
assert space.str_w(w_res) == "\x04\b[\a:\bfoo:\bbar"
def test_load_array(self, space):
#w_res = space.execute("return Marshal.load('\x04\b[\x00')")
w_res = space.execute("return Marshal.load(Marshal.dump([]))")
assert self.unwrap(space, w_res) == []
w_res = space.execute("return Marshal.load('\x04\b[\x060')")
assert self.unwrap(space, w_res) == [None]
w_res = space.execute("return Marshal.load('\x04\b[\b0TF')")
assert self.unwrap(space, w_res) == [None, True, False]
w_res = space.execute("return Marshal.load('\x04\b[\x08i\x06i\x07i\x08')")
assert self.unwrap(space, w_res) == [1, 2, 3]
w_res = space.execute("return Marshal.load('\x04\b[\bi\x06[\ai\ai\bi\t')")
assert self.unwrap(space, w_res) == [1, [2, 3], 4]
w_res = space.execute("return Marshal.load('\x04\b[\a:\bfoo:\bbar')")
assert self.unwrap(space, w_res) == ["foo", "bar"]
def test_dump_symbol(self, space):
w_res = space.execute("return Marshal.dump(:abc)")
assert space.str_w(w_res) == "\x04\b:\babc"
w_res = space.execute("return Marshal.dump(('hello' * 25).to_sym)")
assert space.str_w(w_res) == "\x04\b:\x01}" + "hello" * 25
w_res = space.execute("return Marshal.dump(('hello' * 100).to_sym)")
assert space.str_w(w_res) == "\x04\b:\x02\xF4\x01" + "hello" * 100
def test_load_symbol(self, space):
w_res = space.execute("return Marshal.load('\x04\b:\babc')")
assert space.symbol_w(w_res) == "abc"
w_res = space.execute("return Marshal.load('\x04\b:\x01}' + 'hello' * 25)")
assert space.symbol_w(w_res) == "hello" * 25
def test_dump_hash(self, space):
w_res = space.execute("return Marshal.dump({})")
assert space.str_w(w_res) == "\x04\b{\x00"
w_res = space.execute("return Marshal.dump({1 => 2, 3 => 4})")
assert self.unwrap(space, w_res) == "\x04\b{\ai\x06i\ai\bi\t"
w_res = space.execute("return Marshal.dump({1 => {2 => 3}, 4 => 5})")
assert self.unwrap(space, w_res) == "\x04\b{\ai\x06{\x06i\ai\bi\ti\n"
w_res = space.execute("return Marshal.dump({1234 => {23456 => 3456789}, 4 => 5})")
assert self.unwrap(space, w_res) == "\x04\b{\ai\x02\xD2\x04{\x06i\x02\xA0[i\x03\x15\xBF4i\ti\n"
def test_load_hash(self, space):
#w_res = space.execute("return Marshal.load('\x04\b{\x00')")
w_res = space.execute("return Marshal.load(Marshal.dump({}))")
assert self.unwrap(space, w_res) == {}
w_res = space.execute("return Marshal.load('\x04\b{\ai\x06i\ai\bi\t')")
assert self.unwrap(space, w_res) == {1: 2, 3: 4}
w_res = space.execute("return Marshal.load('\x04\b{\ai\x06{\x06i\ai\bi\ti\n')")
assert self.unwrap(space, w_res) == {1: {2: 3}, 4: 5}
w_res = space.execute("return Marshal.load('\x04\b{\ai\x02\xD2\x04{\x06i\x02\xA0[i\x03\x15\xBF4i\ti\n')")
assert self.unwrap(space, w_res) == {1234: {23456: 3456789}, 4: 5}
def test_dump_integer(self, space):
w_res = space.execute("return Marshal.dump(123)")
assert space.str_w(w_res) == "\x04\bi\x01{"
w_res = space.execute("return Marshal.dump(255)")
assert space.str_w(w_res) == "\x04\bi\x01\xFF"
w_res = space.execute("return Marshal.dump(256)")
assert space.str_w(w_res) == "\x04\bi\x02\x00\x01"
w_res = space.execute("return Marshal.dump(2 ** 16 - 2)")
assert space.str_w(w_res) == "\x04\bi\x02\xFE\xFF"
w_res = space.execute("return Marshal.dump(2 ** 16 - 1)")
assert space.str_w(w_res) == "\x04\bi\x02\xFF\xFF"
w_res = space.execute("return Marshal.dump(2 ** 16)")
assert space.str_w(w_res) == "\x04\bi\x03\x00\x00\x01"
w_res = space.execute("return Marshal.dump(2 ** 16 + 1)")
assert space.str_w(w_res) == "\x04\bi\x03\x01\x00\x01"
w_res = space.execute("return Marshal.dump(2 ** 30 - 1)")
assert space.str_w(w_res) == "\x04\bi\x04\xFF\xFF\xFF?"
# TODO: test tooo big numbers (they give a warning and inf)
def test_load_integer(self, space):
w_res = space.execute("return Marshal.load('\x04\bi\x01{')")
assert space.int_w(w_res) == 123
w_res = space.execute("return Marshal.load('\x04\bi\x01\xFF')")
assert space.int_w(w_res) == 255
#w_res = space.execute("return Marshal.load('\x04\bi\x02\x00\x01')")
w_res = space.execute("return Marshal.load(Marshal.dump(256))")
assert space.int_w(w_res) == 256
w_res = space.execute("return Marshal.load('\x04\bi\x02\xFE\xFF')")
assert space.int_w(w_res) == 2 ** 16 - 2
w_res = space.execute("return Marshal.load('\x04\bi\x02\xFF\xFF')")
assert space.int_w(w_res) == 2 ** 16 - 1
#w_res = space.execute("return Marshal.load('\x04\bi\x03\x00\x00\x01')")
w_res = space.execute("return Marshal.load(Marshal.dump(2 ** 16))")
assert space.int_w(w_res) == 2 ** 16
#w_res = space.execute("return Marshal.load('\x04\bi\x03\x01\x00\x01')")
w_res = space.execute("return Marshal.load(Marshal.dump(2 ** 16 + 1))")
assert space.int_w(w_res) == 2 ** 16 + 1
w_res = space.execute("return Marshal.load('\x04\bi\x04\xFF\xFF\xFF?')")
assert space.int_w(w_res) == 2 ** 30 - 1
def test_dump_negative_integer(self, space):
w_res = space.execute("return Marshal.dump(-1)")
assert space.str_w(w_res) == "\x04\bi\xFA"
w_res = space.execute("return Marshal.dump(-123)")
assert space.str_w(w_res) == "\x04\bi\x80"
w_res = space.execute("return Marshal.dump(-124)")
assert space.str_w(w_res) == "\x04\bi\xFF\x84"
w_res = space.execute("return Marshal.dump(-256)")
assert space.str_w(w_res) == "\x04\bi\xFF\x00"
w_res = space.execute("return Marshal.dump(-257)")
assert space.str_w(w_res) == "\x04\bi\xFE\xFF\xFE"
w_res = space.execute("return Marshal.dump(-(2 ** 30))")
assert space.str_w(w_res) == "\x04\bi\xFC\x00\x00\x00\xC0"
def test_load_negative_integer(self, space):
w_res = space.execute("return Marshal.load('\x04\bi\xFA')")
assert space.int_w(w_res) == -1
w_res = space.execute("return Marshal.load('\x04\bi\x80')")
assert space.int_w(w_res) == -123
w_res = space.execute("return Marshal.load('\x04\bi\xFF\x84')")
assert space.int_w(w_res) == -124
#w_res = space.execute("return Marshal.load('\x04\bi\xFF\x00')")
w_res = space.execute("return Marshal.load(Marshal.dump(-256))")
assert space.int_w(w_res) == -256
w_res = space.execute("return Marshal.load('\x04\bi\xFE\xFF\xFE')")
assert space.int_w(w_res) == -257
#w_res = space.execute("return Marshal.load('\x04\bi\xFE\x00\x00')")
w_res = space.execute("return Marshal.load(Marshal.dump(-(2 ** 16)))")
assert space.int_w(w_res) == -(2 ** 16)
w_res = space.execute("return Marshal.load('\x04\bi\xFD\xFF\xFF\xFE')")
assert space.int_w(w_res) == -(2 ** 16 + 1)
#w_res = space.execute("return Marshal.load('\x04\bi\xFC\x00\x00\x00')")
w_res = space.execute("return Marshal.load(Marshal.dump(-(2 ** 24)))")
assert space.int_w(w_res) == -(2 ** 24)
w_res = space.execute("return Marshal.load('\x04\bi\xFC\xFF\xFF\xFF\xFE')")
assert space.int_w(w_res) == -(2 ** 24 + 1)
#w_res = space.execute("return Marshal.load('\x04\bi\xFC\x00\x00\x00\xC0')")
w_res = space.execute("return Marshal.load(Marshal.dump(-(2 ** 30)))")
assert space.int_w(w_res) == -(2 ** 30)
def test_dump_float(self, space):
w_res = space.execute("return Marshal.dump(0.0)")
assert space.str_w(w_res) == "\x04\bf\x060"
w_res = space.execute("return Marshal.dump(0.1)")
assert space.str_w(w_res) == "\x04\bf\b0.1"
w_res = space.execute("return Marshal.dump(1.0)")
assert space.str_w(w_res) == "\x04\bf\x061"
w_res = space.execute("return Marshal.dump(1.1)")
assert space.str_w(w_res) == "\x04\bf\b1.1"
w_res = space.execute("return Marshal.dump(1.001)")
assert space.str_w(w_res) == "\x04\bf\n1.001"
#w_res = space.execute("return Marshal.dump(123456789.123456789)")
#assert space.str_w(w_res) == "\x04\bf\x17123456789.12345679"
#w_res = space.execute("return Marshal.dump(-123456789.123456789)")
#assert space.str_w(w_res) == "\x04\bf\x18-123456789.12345679"
#w_res = space.execute("return Marshal.dump(-0.0)")
#assert space.str_w(w_res) == "\x04\bf\a-0"
def test_load_float(self, space):
w_res = space.execute("return Marshal.load('\x04\bf\x060')")
assert space.float_w(w_res) == 0.0
w_res = space.execute("return Marshal.load('\x04\bf\b0.1')")
assert space.float_w(w_res) == 0.1
w_res = space.execute("return Marshal.load('\x04\bf\x061')")
assert space.float_w(w_res) == 1.0
w_res = space.execute("return Marshal.load('\x04\bf\b1.1')")
assert space.float_w(w_res) == 1.1
w_res = space.execute("return Marshal.load('\x04\bf\n1.001')")
assert space.float_w(w_res) == 1.001
#w_res = space.execute("return Marshal.load('\x04\bf\x17123456789.12345679')")
#assert space.float_w(w_res) == 123456789.123456789
#w_res = space.execute("return Marshal.load('\x04\bf\x18-123456789.12345679')")
#assert space.float_w(w_res) == -123456789.123456789
#w_res = space.execute("return Marshal.load('\x04\bf\a-0')")
#assert repr(space.float_w(w_res)) == repr(-0.0)
def test_dump_string(self, space):
w_res = space.execute("return Marshal.dump('')")
assert space.str_w(w_res) == "\x04\bI\"\x00\x06:\x06ET"
w_res = space.execute("return Marshal.dump('abc')")
assert space.str_w(w_res) == "\x04\bI\"\babc\x06:\x06ET"
w_res = space.execute("return Marshal.dump('i am a longer string')")
assert space.str_w(w_res) == "\x04\bI\"\x19i am a longer string\x06:\x06ET"
def test_load_string(self, space):
#w_res = space.execute("return Marshal.load('\x04\bI\"\x00\x06:\x06ET')")
w_res = space.execute("return Marshal.load(Marshal.dump(''))")
assert space.str_w(w_res) == ""
w_res = space.execute("return Marshal.load('\x04\bI\"\babc\x06:\x06ET')")
assert space.str_w(w_res) == "abc"
w_res = space.execute("return Marshal.load('\x04\bI\"\x19i am a longer string\x06:\x06ET')")
assert space.str_w(w_res) == "i am a longer string"
def test_array(self, space):
w_res = space.execute("return Marshal.load(Marshal.dump([1, 2, 3]))")
assert self.unwrap(space, w_res) == [1, 2, 3]
w_res = space.execute("return Marshal.load(Marshal.dump([1, [2, 3], 4]))")
assert self.unwrap(space, w_res) == [1, [2, 3], 4]
w_res = space.execute("return Marshal.load(Marshal.dump([130, [2, 3], 4]))")
assert self.unwrap(space, w_res) == [130, [2, 3], 4]
w_res = space.execute("return Marshal.load(Marshal.dump([-10000, [2, 123456], -9000]))")
assert self.unwrap(space, w_res) == [-10000, [2, 123456], -9000]
w_res = space.execute("return Marshal.load(Marshal.dump([:foo, :bar]))")
assert self.unwrap(space, w_res) == ["foo", "bar"]
w_res = space.execute("return Marshal.load(Marshal.dump(['foo', 'bar']))")
assert self.unwrap(space, w_res) == ["foo", "bar"]
def test_incompatible_format(self, space):
with self.raises(
space,
"TypeError",
"incompatible marshal file format (can't be read)\n"
"format version 4.8 required; 97.115 given"
):
space.execute("Marshal.load('asd')")
def test_short_data(self, space):
with self.raises(space, "ArgumentError", "marshal data too short"):
space.execute("Marshal.load('')")
def test_parameters(self, space):
with self.raises(space, "TypeError", "instance of IO needed"):
space.execute("Marshal.load(4)")
def test_io(self, space, tmpdir):
f = tmpdir.join("testfile")
w_res = space.execute("""
Marshal.dump('hallo', File.new('%s', 'wb'))
file = File.open('%s', 'rb')
return Marshal.load(file.read)
""" % (f, f))
assert space.str_w(w_res) == "hallo"
w_res = space.execute("""
Marshal.dump('hallo', File.new('%s', 'wb'))
file = File.open('%s', 'rb')
return Marshal.load(file)
""" % (f, f))
assert space.str_w(w_res) == "hallo"
| babelsberg/babelsberg-r | tests/modules/test_marshal.py | Python | bsd-3-clause | 16,593 | [
30522,
2013,
1012,
1012,
2918,
12324,
2918,
14399,
10936,
22199,
2465,
3231,
7849,
7377,
2140,
1006,
2918,
14399,
10936,
22199,
1007,
1024,
13366,
3231,
1035,
2544,
1035,
5377,
2015,
1006,
2969,
1010,
2686,
1007,
1024,
1059,
1035,
24501,
10... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/* global describe, it, require */
'use strict';
// MODULES //
var // Expectation library:
chai = require( 'chai' ),
// Deep close to:
deepCloseTo = require( './utils/deepcloseto.js' ),
// Module to be tested:
log10 = require( './../lib/array.js' );
// VARIABLES //
var expect = chai.expect,
assert = chai.assert;
// TESTS //
describe( 'array log10', function tests() {
it( 'should export a function', function test() {
expect( log10 ).to.be.a( 'function' );
});
it( 'should compute the base-10 logarithm', function test() {
var data, actual, expected;
data = [
Math.pow( 10, 4 ),
Math.pow( 10, 6 ),
Math.pow( 10, 9 ),
Math.pow( 10, 15 ),
Math.pow( 10, 10 ),
Math.pow( 10, 25 )
];
actual = new Array( data.length );
actual = log10( actual, data );
expected = [ 4, 6, 9, 15, 10, 25 ];
assert.isTrue( deepCloseTo( actual, expected, 1e-7 ) );
});
it( 'should return an empty array if provided an empty array', function test() {
assert.deepEqual( log10( [], [] ), [] );
});
it( 'should handle non-numeric values by setting the element to NaN', function test() {
var data, actual, expected;
data = [ true, null, [], {} ];
actual = new Array( data.length );
actual = log10( actual, data );
expected = [ NaN, NaN, NaN, NaN ];
assert.deepEqual( actual, expected );
});
});
| compute-io/log10 | test/test.array.js | JavaScript | mit | 1,348 | [
30522,
1013,
1008,
3795,
6235,
1010,
2009,
1010,
5478,
1008,
1013,
1005,
2224,
9384,
1005,
1025,
1013,
1013,
14184,
1013,
1013,
13075,
1013,
1013,
17626,
3075,
1024,
15775,
2072,
1027,
5478,
1006,
1005,
15775,
2072,
1005,
1007,
1010,
1013,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
class CreateImages < ActiveRecord::Migration
def change
create_table :images do |t|
t.string :title, :null => false
t.boolean :free_shipping, :null => false, :default => false
t.timestamps
end
end
end
| piggybak/piggybak_free_shipping_by_product | test/dummy/db/migrate/20111231040354_create_images.rb | Ruby | mit | 231 | [
30522,
2465,
3443,
9581,
8449,
1026,
3161,
2890,
27108,
2094,
1024,
1024,
9230,
13366,
2689,
3443,
1035,
2795,
1024,
4871,
2079,
1064,
1056,
1064,
1056,
1012,
5164,
1024,
2516,
1010,
1024,
19701,
1027,
1028,
6270,
1056,
1012,
22017,
20898,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
//
// DO NOT MODIFY!!! This file was machine generated. DO NOT MODIFY!!!
//
// Copyright (c) 2014 Vincent W. Chen.
//
// This file is part of XJavaB.
//
// XJavaB is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// XJavaB is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with XJavaB. If not, see <http://www.gnu.org/licenses/>.
//
package com.noodlewiz.xjavab.ext.dri2.internal;
import java.nio.ByteBuffer;
import com.noodlewiz.xjavab.core.XReply;
public class ReplyDispatcher
implements com.noodlewiz.xjavab.core.internal.ReplyDispatcher
{
@Override
public XReply dispatch(final ByteBuffer __xjb_buf, final short __xjb_opcode) {
switch (__xjb_opcode) {
case 0 :
return ReplyUnpacker.unpackQueryVersion(__xjb_buf);
case 1 :
return ReplyUnpacker.unpackConnect(__xjb_buf);
case 2 :
return ReplyUnpacker.unpackAuthenticate(__xjb_buf);
case 5 :
return ReplyUnpacker.unpackGetBuffers(__xjb_buf);
case 6 :
return ReplyUnpacker.unpackCopyRegion(__xjb_buf);
case 7 :
return ReplyUnpacker.unpackGetBuffersWithFormat(__xjb_buf);
case 8 :
return ReplyUnpacker.unpackSwapBuffers(__xjb_buf);
case 9 :
return ReplyUnpacker.unpackGetMSC(__xjb_buf);
case 10 :
return ReplyUnpacker.unpackWaitMSC(__xjb_buf);
case 11 :
return ReplyUnpacker.unpackWaitSBC(__xjb_buf);
case 13 :
return ReplyUnpacker.unpackGetParam(__xjb_buf);
default:
throw new IllegalArgumentException(("Invalid reply opcode: "+ __xjb_opcode));
}
}
}
| noodlewiz/xjavab | xjavab-ext/src/main/java/com/noodlewiz/xjavab/ext/dri2/internal/ReplyDispatcher.java | Java | gpl-3.0 | 2,264 | [
30522,
1013,
1013,
1013,
1013,
2079,
2025,
19933,
999,
999,
999,
2023,
5371,
2001,
3698,
7013,
1012,
2079,
2025,
19933,
999,
999,
999,
1013,
1013,
1013,
1013,
9385,
1006,
1039,
1007,
2297,
6320,
1059,
1012,
8802,
1012,
1013,
1013,
1013,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<?php
/**
* @package JCE
* @copyright Copyright © 2009-2011 Ryan Demmer. All rights reserved.
* @license GNU/GPL 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* JCE is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
*/
defined('_JEXEC') or die('RESTRICTED');
require_once(JPATH_COMPONENT_ADMINISTRATOR.DS.'jce.php');
?>
| thomascooper/joomla-173 | components/com_jce/jce.php | PHP | gpl-2.0 | 578 | [
30522,
1026,
1029,
25718,
1013,
1008,
1008,
1008,
1030,
7427,
29175,
2063,
1008,
1030,
9385,
9385,
1075,
30524,
17183,
5017,
1012,
2035,
2916,
9235,
1012,
1008,
1030,
6105,
27004,
1013,
14246,
2140,
1016,
2030,
2101,
1011,
8299,
1024,
1013,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
package com.viesis.viescraft.common.items.airshipitems.v3;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.SoundEvents;
import net.minecraft.item.ItemStack;
import net.minecraft.stats.StatList;
import net.minecraft.util.ActionResult;
import net.minecraft.util.EnumActionResult;
import net.minecraft.util.EnumHand;
import net.minecraft.util.SoundCategory;
import net.minecraft.util.text.translation.I18n;
import net.minecraft.world.World;
import com.viesis.viescraft.ViesCraft;
import com.viesis.viescraft.common.entity.airshipitems.v3.EntityItemAirshipV3Admin;
import com.viesis.viescraft.common.items.ItemHelper;
import com.viesis.viescraft.common.items.airshipitems.ItemAirshipCore;
import com.viesis.viescraft.configs.ViesCraftConfig;
public class ItemAirshipV3Admin extends ItemAirshipCore {
public ItemAirshipV3Admin()
{
ItemHelper.setItemName(this, "item_airship_v3_admin");
this.setCreativeTab(ViesCraft.tabViesCraftAirships);
}
@Override
public ActionResult<ItemStack> onItemRightClick(ItemStack itemStackIn, World worldIn, EntityPlayer playerIn, EnumHand hand)
{
if(playerIn.isSneaking())
{
if (!playerIn.capabilities.isCreativeMode)
{
--itemStackIn.stackSize;
}
worldIn.playSound((EntityPlayer)null, playerIn.posX, playerIn.posY, playerIn.posZ, SoundEvents.ENTITY_EXPERIENCE_BOTTLE_THROW, SoundCategory.NEUTRAL, 0.5F, 0.4F / (itemRand.nextFloat() * 0.4F + 0.8F));
if (!worldIn.isRemote)
{
EntityItemAirshipV3Admin entityairship = new EntityItemAirshipV3Admin(worldIn, playerIn);
entityairship.setHeadingFromThrower(playerIn, playerIn.rotationPitch, playerIn.rotationYaw, -20.0F, 0.7F, 1.0F);
worldIn.spawnEntityInWorld(entityairship);
}
playerIn.addStat(StatList.getObjectUseStats(this));
return new ActionResult(EnumActionResult.SUCCESS, itemStackIn);
}
return new ActionResult(EnumActionResult.SUCCESS, itemStackIn);
}
@Override
public String getItemStackDisplayName(ItemStack stack)
{
return ("" + I18n.translateToLocal("Admin " + ViesCraftConfig.v3AirshipName)).trim();
}
}
| Weisses/Ebonheart-Mods | ViesCraft/Archived/zzz - PreCapabilities - src/main/java/com/viesis/viescraft/common/items/airshipitems/v3/ItemAirshipV3Admin.java | Java | mit | 2,123 | [
30522,
7427,
4012,
1012,
20098,
6190,
1012,
20098,
11020,
27528,
2102,
1012,
2691,
1012,
5167,
1012,
27636,
4221,
5244,
1012,
1058,
2509,
1025,
12324,
5658,
1012,
3067,
10419,
1012,
9178,
1012,
2447,
1012,
9178,
13068,
2121,
1025,
12324,
56... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
import { postToServer } from "../app/utils";
import { wait } from "../app/utils";
/**
* Google Authentication and linking module
* @returns {{link: function:object, login: function}}
*/
const googleProvider = new firebase.auth.GoogleAuthProvider();
function callIfFunction(func, arg1, arg2) {
if ($.isFunction(func))
func(arg1, arg2);
}
export function login() {
return firebase.auth().signInWithPopup(googleProvider)
.then(function (result) {
const userLoggedIn = result && result.user;
if (userLoggedIn)
return result.user.getIdToken(false);
else
throw Error('Could not authenticate');
});
}
/**
* Google Linking Module
* @returns {{linkGoogle: function(callback), unlinkGoogle: function(callback), isGoogleLinked: function(callback}}
*/
export function link() {
function getProviderData(providerDataArray, providerId) {
if (!providerDataArray)
return null;
for (var i = 0; i < providerDataArray.length; i++)
if (providerDataArray[i].providerId === providerId)
return providerDataArray[i];
return null;
}
function isProvider(providerData, providerId) {
return getProviderData(providerData, providerId) !== null;
}
function updateUser(user, providerData) {
if (!providerData)
return;
const updateUser = {};
if (!user.displayName)
updateUser.displayName = providerData.displayName;
if (!user.photoURL)
updateUser.photoURL = providerData.photoURL;
user.updateProfile(updateUser)
.then(function () {
return firebase.auth().currentUser.getIdToken(false);
}).then(function (token) {
return postToServer('/profile/api/link', token);
}).then(function (response) {
if (response !== 'OK')
return;
wait(5000).then(function () {
window.location = '/profile?refresh';
});
});
}
function accountLinked(linkCallback, user) {
callIfFunction(linkCallback, true);
updateUser(user, getProviderData(user.providerData, googleProvider.providerId));
}
function deletePreviousUser(prevUser, credential) {
const auth = firebase.auth();
return auth.signInWithCredential(credential)
.then(function(user) {
return user.delete();
}).then(function() {
return prevUser.linkWithCredential(credential);
}).then(function() {
return auth.signInWithCredential(credential);
});
}
return {
linkGoogle: function (linkCallback) {
firebase.auth().currentUser.linkWithPopup(googleProvider)
.then(function(result) {
accountLinked(linkCallback, result.user);
}).catch(function(error) {
if (error.code === 'auth/credential-already-in-use') {
const prevUser = firebase.auth().currentUser;
const credential = error.credential;
deletePreviousUser(prevUser, credential)
.then(function (user) {
accountLinked(linkCallback, user);
}).catch(function(error) {
callIfFunction(linkCallback, false, error);
});
} else {
callIfFunction(linkCallback, false, error);
}
});
},
unlinkGoogle: function (unlinkCallback) {
firebase.auth().currentUser.unlink(googleProvider.providerId)
.then(function () {
callIfFunction(unlinkCallback, true);
}).catch(function (error) {
callIfFunction(unlinkCallback, false, error);
});
},
isGoogleLinked: function (linked) {
firebase.auth().onAuthStateChanged(function (user) {
if (!$.isFunction(linked))
return;
if (user) {
linked(isProvider(user.providerData, googleProvider.providerId));
} else {
linked(); // Trigger hiding the button
}
});
}
};
}
export default {
link,
login
}
| zhcet-amu/zhcet-web | src/main/resources/src/authentication/google.js | JavaScript | apache-2.0 | 4,462 | [
30522,
12324,
1063,
2695,
22282,
2099,
6299,
1065,
2013,
1000,
1012,
1012,
1013,
10439,
1013,
21183,
12146,
1000,
1025,
12324,
1063,
3524,
1065,
2013,
1000,
1012,
1012,
1013,
10439,
1013,
21183,
12146,
1000,
1025,
1013,
1008,
1008,
1008,
82... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
# 203. Remove Linked List Elements
Difficulty: Easy
https://leetcode.com/problems/remove-linked-list-elements/
Remove all elements from a linked list of integers that have value val.
**Example:**
```
Input: 1->2->6->3->4->5->6, val = 6
Output: 1->2->3->4->5
```
| jiadaizhao/LeetCode | 0201-0300/0203-Remove Linked List Elements/README.md | Markdown | mit | 267 | [
30522,
1001,
18540,
1012,
6366,
5799,
2862,
3787,
7669,
1024,
3733,
16770,
1024,
1013,
1013,
3389,
13535,
10244,
1012,
4012,
1013,
3471,
1013,
6366,
1011,
5799,
1011,
2862,
1011,
3787,
1013,
6366,
2035,
3787,
2013,
1037,
5799,
2862,
1997,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<?php
// Get conf data
include_once 'dbconf/dbconf.php';
// Create connection
$conn = new mysqli($host, $user, $pwd, $dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$sql = "select user_id, user_name, user_active from pbi_user order by user_name asc";
$result = $conn->query($sql);
// Print JSON
$rows = array();
while($r = mysqli_fetch_assoc($result)) {
$rows[] = $r;
}
print json_encode($rows);
mysqli_close($conn);
?>
| lcappuccio/PBI-Tracker | data/user_list.php | PHP | gpl-3.0 | 519 | [
30522,
1026,
1029,
25718,
1013,
1013,
2131,
9530,
2546,
2951,
2421,
1035,
2320,
1005,
16962,
8663,
2546,
1013,
16962,
8663,
2546,
1012,
25718,
1005,
1025,
1013,
1013,
3443,
4434,
1002,
9530,
2078,
1027,
2047,
2026,
2015,
4160,
3669,
1006,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
import React, { useEffect, useMemo, useRef } from 'react'
import styled from 'styled-components'
import {
Box,
Button,
Dialog,
extend,
Paragraph,
Progress,
RefreshIcon,
themeGet,
} from '../../components'
import { useFullSizeMode } from '../FullSizeView'
import { useIntersection } from '../IntersectionObserver'
import { usePages } from '../Pages'
import { Nav, useRouteActions } from '../Router'
import { Overlay, ScrollSpy } from '../ScrollSpy'
import { isUgoira } from '../Ugoira'
import { PADDING, StandardImg } from './StandardImg'
import { StandardUgoira } from './StandardUgoira'
import { LazyLoadingObserver } from './useLazyLoad'
interface Props {
illustId: string
}
interface SuspenseProps extends Props {
children?: React.ReactNode
}
interface SuccessProps {
pages: Pixiv.Pages
}
export const StandardView = ({ illustId, children }: SuspenseProps) => {
const root = useRef<HTMLDivElement>(null)
const { unset } = useRouteActions()
const [isFullSize, setFullSize] = useFullSizeMode()
// 作品を移動したら先頭までスクロールしてフォーカス
useEffect(() => {
setFullSize(false)
const node = root.current
if (!node) return
node.scroll(0, 0)
node.focus()
}, [illustId, setFullSize])
// フルサイズモードから戻ったらルートにフォーカス
useEffect(() => {
if (isFullSize) return
const node = root.current
if (!node) return
node.focus()
}, [isFullSize])
return (
<Root ref={root} tabIndex={0} hidden={isFullSize}>
<Box sx={{ userSelect: 'none', position: 'relative' }}>
<span onClick={unset}>
<React.Suspense fallback={<Loading />}>
<Loader illustId={illustId} />
</React.Suspense>
</span>
<Nav />
</Box>
{children}
</Root>
)
}
const Loader = ({ illustId }: Props) => {
const pages = usePages(illustId)
if (!pages) return <Failure illustId={illustId} />
return <Success pages={pages} />
}
const Loading = () => (
<ImageBox>
<Progress />
</ImageBox>
)
const Failure = ({ illustId }: Props) => (
<ImageBox>
<Dialog onClick={(e) => e.stopPropagation()}>
<Dialog.Content>
<Paragraph>リクエストに失敗しました[illustId: {illustId}]</Paragraph>
</Dialog.Content>
<Dialog.Footer>
<Button onClick={() => usePages.remove(illustId)}>
<RefreshIcon width={18} height={18} sx={{ mr: 2 }} />
再取得
</Button>
</Dialog.Footer>
</Dialog>
</ImageBox>
)
const Success = ({ pages }: SuccessProps) => {
const isMultiple = pages.length > 1
const imgs = useMemo(() => {
const ugoira = isUgoira(pages[0])
return pages.map((page, index) => (
<ScrollSpy.SpyItem key={page.urls.original} index={index}>
<ImageBox tabIndex={0}>
{!ugoira && <StandardImg {...page} />}
{ugoira && <StandardUgoira {...page} />}
</ImageBox>
</ScrollSpy.SpyItem>
))
}, [pages])
const observer = useIntersection()
useEffect(() => {
observer.start()
}, [observer])
return (
<LazyLoadingObserver.Provider value={observer}>
{imgs}
<ScrollSpy.SpyItemLast />
{isMultiple && <Overlay pages={pages} />}
</LazyLoadingObserver.Provider>
)
}
const Root = styled.section(
extend({
'--caption-height': '56px',
pointerEvents: 'auto',
outline: 'none',
position: 'relative',
overflow: 'auto',
width: '100%',
height: '100vh',
'&[hidden]': {
display: 'block',
opacity: 0,
},
} as any)
)
const ImageBox = styled.div(
extend({
outline: 'none',
position: 'relative',
display: 'flex',
flexDirection: 'column',
width: '100%',
height: 'calc(100vh - var(--caption-height))',
p: PADDING,
})
)
const Action = styled.div(
extend({
pointerEvents: 'none',
position: 'absolute',
top: 0,
left: 0,
display: 'flex',
justifyContent: 'space-between',
width: '100%',
height: '100%',
})
)
const Circle = styled.div(
extend({
pointerEvents: 'auto',
position: 'sticky',
top: 'calc(50vh - var(--caption-height))',
width: '48px',
height: '48px',
mx: 2,
borderRadius: '50%',
bg: 'surface',
opacity: themeGet('opacities.inactive'),
transform: 'translateY(-50%)',
':hover': {
opacity: 1,
},
})
)
if (__DEV__) {
Loader.displayName = 'StandardView.Loader'
Loading.displayName = 'StandardView.Loading'
Success.displayName = 'StandardView.Success'
Failure.displayName = 'StandardView.Failure'
Root.displayName = 'StandardView.Root'
ImageBox.displayName = 'StandardView.ImageBox'
Action.displayName = 'StandardView.Action'
Circle.displayName = 'StandardView.Circle'
}
| 8th713/cockpit-for-pixiv | packages/core/features/StandardView/StandardView.tsx | TypeScript | mit | 4,802 | [
30522,
12324,
10509,
1010,
1063,
2224,
12879,
25969,
1010,
2224,
4168,
5302,
1010,
5310,
12879,
1065,
2013,
1005,
10509,
1005,
12324,
13650,
2013,
1005,
13650,
1011,
6177,
1005,
12324,
1063,
3482,
1010,
6462,
1010,
13764,
8649,
1010,
7949,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/**
* Copyright 2020 The AMP HTML Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS-IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {Services} from '../../../src/services';
import {getMode} from '../../../src/mode';
import {includes} from '../../../src/string';
import {map} from '../../../src/utils/object';
import {parseExtensionUrl} from '../../../src/service/extension-script';
import {preloadFriendlyIframeEmbedExtensions} from '../../../src/friendly-iframe-embed';
import {removeElement, rootNodeFor} from '../../../src/dom';
import {urls} from '../../../src/config';
/**
* @typedef {{
* extensions: !Array<{extensionId: (string|undefined), extensionVersion: (string|undefined)}>,
* head: !Element
* }}
*/
export let ValidatedHeadDef;
// From validator/validator-main.protoascii
const ALLOWED_FONT_REGEX = new RegExp(
'https://cdn\\.materialdesignicons\\.com/' +
'([0-9]+\\.?)+/css/materialdesignicons\\.min\\.css|' +
'https://cloud\\.typography\\.com/' +
'[0-9]*/[0-9]*/css/fonts\\.css|' +
'https://fast\\.fonts\\.net/.*|' +
'https://fonts\\.googleapis\\.com/css2?\\?.*|' +
'https://fonts\\.googleapis\\.com/icon\\?.*|' +
'https://fonts\\.googleapis\\.com/earlyaccess/.*\\.css|' +
'https://maxcdn\\.bootstrapcdn\\.com/font-awesome/' +
'([0-9]+\\.?)+/css/font-awesome\\.min\\.css(\\?.*)?|' +
'https://(use|pro)\\.fontawesome\\.com/releases/v([0-9]+\\.?)+' +
'/css/[0-9a-zA-Z-]+\\.css|' +
'https://(use|pro)\\.fontawesome\\.com/[0-9a-zA-Z-]+\\.css|' +
'https://use\\.typekit\\.net/[\\w\\p{L}\\p{N}_]+\\.css'
);
// If editing please also change:
// extensions/amp-a4a/amp-a4a-format.md#allowed-amp-extensions-and-builtins
const EXTENSION_ALLOWLIST = map({
'amp-accordion': true,
'amp-ad-exit': true,
'amp-analytics': true,
'amp-anim': true,
'amp-animation': true,
'amp-audio': true,
'amp-bind': true,
'amp-carousel': true,
'amp-fit-text': true,
'amp-font': true,
'amp-form': true,
'amp-img': true,
'amp-layout': true,
'amp-lightbox': true,
'amp-mraid': true,
'amp-mustache': true,
'amp-pixel': true,
'amp-position-observer': true,
'amp-selector': true,
'amp-social-share': true,
'amp-video': true,
});
const EXTENSION_URL_PREFIX = new RegExp(
urls.cdn.replace(/\./g, '\\.') + '/v0/'
);
/**
* Sanitizes AMPHTML Ad head element and extracts extensions to be installed.
* @param {!Window} win
* @param {!Element} adElement
* @param {?Element} head
* @return {?ValidatedHeadDef}
*/
export function processHead(win, adElement, head) {
if (!head || !head.firstChild) {
return null;
}
const root = rootNodeFor(head);
const htmlTag = root.documentElement;
if (
!htmlTag ||
(!htmlTag.hasAttribute('amp4ads') &&
!htmlTag.hasAttribute('⚡️4ads') &&
!htmlTag.hasAttribute('⚡4ads')) // Unicode weirdness.
) {
return null;
}
const urlService = Services.urlForDoc(adElement);
/** @type {!Array<{extensionId: string, extensionVersion: string}>} */
const extensions = [];
const fonts = [];
const images = [];
let element = head.firstElementChild;
while (element) {
// Store next element here as the following code will remove
// certain elements from the detached DOM.
const nextElement = element.nextElementSibling;
switch (element.tagName.toUpperCase()) {
case 'SCRIPT':
handleScript(extensions, element);
break;
case 'STYLE':
handleStyle(element);
break;
case 'LINK':
handleLink(fonts, images, element);
break;
// Allow these without validation.
case 'META':
case 'TITLE':
break;
default:
removeElement(element);
break;
}
element = nextElement;
}
// Load any extensions; do not wait on their promises as this
// is just to prefetch.
preloadFriendlyIframeEmbedExtensions(win, extensions);
// Preload any fonts.
fonts.forEach((fontUrl) =>
Services.preconnectFor(win).preload(adElement.getAmpDoc(), fontUrl)
);
// Preload any AMP images.
images.forEach(
(imageUrl) =>
urlService.isSecure(imageUrl) &&
Services.preconnectFor(win).preload(adElement.getAmpDoc(), imageUrl)
);
return {
extensions,
head,
};
}
/**
* Allows json scripts and allowlisted amp elements while removing others.
* @param {!Array<{extensionId: string, extensionVersion: string}>} extensions
* @param {!Element} script
*/
function handleScript(extensions, script) {
if (script.type === 'application/json') {
return;
}
const {src} = script;
const isTesting = getMode().test || getMode().localDev;
if (
EXTENSION_URL_PREFIX.test(src) ||
// Integration tests point to local files.
(isTesting && includes(src, '/dist/'))
) {
const extensionInfo = parseExtensionUrl(src);
if (extensionInfo && EXTENSION_ALLOWLIST[extensionInfo.extensionId]) {
extensions.push(extensionInfo);
}
}
removeElement(script);
}
/**
* Collect links that are from allowed font providers or used for image
* preloading. Remove other <link> elements.
* @param {!Array<string>} fonts
* @param {!Array<string>} images
* @param {!Element} link
*/
function handleLink(fonts, images, link) {
const {href, as, rel} = link;
if (rel === 'preload' && as === 'image') {
images.push(href);
return;
}
if (rel === 'stylesheet' && ALLOWED_FONT_REGEX.test(href)) {
fonts.push(href);
return;
}
removeElement(link);
}
/**
* Remove any non `amp-custom` or `amp-keyframe` styles.
* @param {!Element} style
*/
function handleStyle(style) {
if (
style.hasAttribute('amp-custom') ||
style.hasAttribute('amp-keyframes') ||
style.hasAttribute('amp4ads-boilerplate')
) {
return;
}
removeElement(style);
}
| lannka/amphtml | extensions/amp-a4a/0.1/head-validation.js | JavaScript | apache-2.0 | 6,308 | [
30522,
1013,
1008,
1008,
1008,
9385,
12609,
1996,
23713,
16129,
6048,
1012,
2035,
2916,
9235,
1012,
1008,
1008,
7000,
2104,
1996,
15895,
6105,
1010,
2544,
1016,
1012,
1014,
1006,
1996,
1000,
6105,
1000,
1007,
1025,
1008,
2017,
2089,
2025,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/******************************************************************************
* os_intfs.c
*
* Copyright(c) 2007 - 2010 Realtek Corporation. All rights reserved.
* Linux device driver for RTL8192SU
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
* Modifications for inclusion into the Linux staging tree are
* Copyright(c) 2010 Larry Finger. All rights reserved.
*
* Contact information:
* WLAN FAE <wlanfae@realtek.com>.
* Larry Finger <Larry.Finger@lwfinger.net>
*
******************************************************************************/
#define _OS_INTFS_C_
#include <linux/module.h>
#include <linux/init.h>
#include <linux/kthread.h>
#include <linux/firmware.h>
#include "osdep_service.h"
#include "drv_types.h"
#include "xmit_osdep.h"
#include "recv_osdep.h"
#include "rtl871x_ioctl.h"
#include "usb_osintf.h"
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("rtl871x wireless lan driver");
MODULE_AUTHOR("Larry Finger");
static char ifname[IFNAMSIZ] = "wlan%d";
/* module param defaults */
static int chip_version = RTL8712_2ndCUT;
static int rfintfs = HWPI;
static int lbkmode = RTL8712_AIR_TRX;
static int hci = RTL8712_USB;
static int ampdu_enable = 1;/*for enable tx_ampdu*/
/* The video_mode variable is for vedio mode.*/
/* It may be specify when inserting module with video_mode=1 parameter.*/
static int video_mode = 1; /* enable video mode*/
/*Ndis802_11Infrastructure; infra, ad-hoc, auto*/
static int network_mode = Ndis802_11IBSS;
static int channel = 1;/*ad-hoc support requirement*/
static int wireless_mode = WIRELESS_11BG;
static int vrtl_carrier_sense = AUTO_VCS;
static int vcs_type = RTS_CTS;
static int frag_thresh = 2346;
static int preamble = PREAMBLE_LONG;/*long, short, auto*/
static int scan_mode = 1;/*active, passive*/
static int adhoc_tx_pwr = 1;
static int soft_ap;
static int smart_ps = 1;
static int power_mgnt = PS_MODE_ACTIVE;
static int radio_enable = 1;
static int long_retry_lmt = 7;
static int short_retry_lmt = 7;
static int busy_thresh = 40;
static int ack_policy = NORMAL_ACK;
static int mp_mode;
static int software_encrypt;
static int software_decrypt;
static int wmm_enable;/* default is set to disable the wmm.*/
static int uapsd_enable;
static int uapsd_max_sp = NO_LIMIT;
static int uapsd_acbk_en;
static int uapsd_acbe_en;
static int uapsd_acvi_en;
static int uapsd_acvo_en;
static int ht_enable = 1;
static int cbw40_enable = 1;
static int rf_config = RTL8712_RF_1T2R; /* 1T2R*/
static int low_power;
/* mac address to use instead of the one stored in Efuse */
char *r8712_initmac;
static char *initmac;
/* if wifi_test = 1, driver will disable the turbo mode and pass it to
* firmware private.
*/
static int wifi_test = 0;
module_param_string(ifname, ifname, sizeof(ifname), S_IRUGO|S_IWUSR);
module_param(wifi_test, int, 0644);
module_param(initmac, charp, 0644);
module_param(video_mode, int, 0644);
module_param(chip_version, int, 0644);
module_param(rfintfs, int, 0644);
module_param(lbkmode, int, 0644);
module_param(hci, int, 0644);
module_param(network_mode, int, 0644);
module_param(channel, int, 0644);
module_param(mp_mode, int, 0644);
module_param(wmm_enable, int, 0644);
module_param(vrtl_carrier_sense, int, 0644);
module_param(vcs_type, int, 0644);
module_param(busy_thresh, int, 0644);
module_param(ht_enable, int, 0644);
module_param(cbw40_enable, int, 0644);
module_param(ampdu_enable, int, 0644);
module_param(rf_config, int, 0644);
module_param(power_mgnt, int, 0644);
module_param(low_power, int, 0644);
MODULE_PARM_DESC(ifname, " Net interface name, wlan%d=default");
MODULE_PARM_DESC(initmac, "MAC-Address, default: use FUSE");
static uint loadparam(struct _adapter *padapter, struct net_device *pnetdev);
static int netdev_open(struct net_device *pnetdev);
static int netdev_close(struct net_device *pnetdev);
static uint loadparam(struct _adapter *padapter, struct net_device *pnetdev)
{
uint status = _SUCCESS;
struct registry_priv *registry_par = &padapter->registrypriv;
registry_par->chip_version = (u8)chip_version;
registry_par->rfintfs = (u8)rfintfs;
registry_par->lbkmode = (u8)lbkmode;
registry_par->hci = (u8)hci;
registry_par->network_mode = (u8)network_mode;
memcpy(registry_par->ssid.Ssid, "ANY", 3);
registry_par->ssid.SsidLength = 3;
registry_par->channel = (u8)channel;
registry_par->wireless_mode = (u8)wireless_mode;
registry_par->vrtl_carrier_sense = (u8)vrtl_carrier_sense ;
registry_par->vcs_type = (u8)vcs_type;
registry_par->frag_thresh = (u16)frag_thresh;
registry_par->preamble = (u8)preamble;
registry_par->scan_mode = (u8)scan_mode;
registry_par->adhoc_tx_pwr = (u8)adhoc_tx_pwr;
registry_par->soft_ap = (u8)soft_ap;
registry_par->smart_ps = (u8)smart_ps;
registry_par->power_mgnt = (u8)power_mgnt;
registry_par->radio_enable = (u8)radio_enable;
registry_par->long_retry_lmt = (u8)long_retry_lmt;
registry_par->short_retry_lmt = (u8)short_retry_lmt;
registry_par->busy_thresh = (u16)busy_thresh;
registry_par->ack_policy = (u8)ack_policy;
registry_par->mp_mode = (u8)mp_mode;
registry_par->software_encrypt = (u8)software_encrypt;
registry_par->software_decrypt = (u8)software_decrypt;
/*UAPSD*/
registry_par->wmm_enable = (u8)wmm_enable;
registry_par->uapsd_enable = (u8)uapsd_enable;
registry_par->uapsd_max_sp = (u8)uapsd_max_sp;
registry_par->uapsd_acbk_en = (u8)uapsd_acbk_en;
registry_par->uapsd_acbe_en = (u8)uapsd_acbe_en;
registry_par->uapsd_acvi_en = (u8)uapsd_acvi_en;
registry_par->uapsd_acvo_en = (u8)uapsd_acvo_en;
registry_par->ht_enable = (u8)ht_enable;
registry_par->cbw40_enable = (u8)cbw40_enable;
registry_par->ampdu_enable = (u8)ampdu_enable;
registry_par->rf_config = (u8)rf_config;
registry_par->low_power = (u8)low_power;
registry_par->wifi_test = (u8) wifi_test;
r8712_initmac = initmac;
return status;
}
static int r871x_net_set_mac_address(struct net_device *pnetdev, void *p)
{
struct _adapter *padapter = (struct _adapter *)netdev_priv(pnetdev);
struct sockaddr *addr = p;
if (padapter->bup == false)
memcpy(pnetdev->dev_addr, addr->sa_data, ETH_ALEN);
return 0;
}
static struct net_device_stats *r871x_net_get_stats(struct net_device *pnetdev)
{
struct _adapter *padapter = (struct _adapter *) netdev_priv(pnetdev);
struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
struct recv_priv *precvpriv = &(padapter->recvpriv);
padapter->stats.tx_packets = pxmitpriv->tx_pkts;
padapter->stats.rx_packets = precvpriv->rx_pkts;
padapter->stats.tx_dropped = pxmitpriv->tx_drop;
padapter->stats.rx_dropped = precvpriv->rx_drop;
padapter->stats.tx_bytes = pxmitpriv->tx_bytes;
padapter->stats.rx_bytes = precvpriv->rx_bytes;
return &padapter->stats;
}
static const struct net_device_ops rtl8712_netdev_ops = {
.ndo_open = netdev_open,
.ndo_stop = netdev_close,
.ndo_start_xmit = r8712_xmit_entry,
.ndo_set_mac_address = r871x_net_set_mac_address,
.ndo_get_stats = r871x_net_get_stats,
.ndo_do_ioctl = r871x_ioctl,
};
struct net_device *r8712_init_netdev(void)
{
struct _adapter *padapter;
struct net_device *pnetdev;
pnetdev = alloc_etherdev(sizeof(struct _adapter));
if (!pnetdev)
return NULL;
if (dev_alloc_name(pnetdev, ifname) < 0) {
strcpy(ifname, "wlan%d");
dev_alloc_name(pnetdev, ifname);
}
padapter = (struct _adapter *) netdev_priv(pnetdev);
padapter->pnetdev = pnetdev;
printk(KERN_INFO "r8712u: register rtl8712_netdev_ops to"
" netdev_ops\n");
pnetdev->netdev_ops = &rtl8712_netdev_ops;
pnetdev->watchdog_timeo = HZ; /* 1 second timeout */
pnetdev->wireless_handlers = (struct iw_handler_def *)
&r871x_handlers_def;
/*step 2.*/
loadparam(padapter, pnetdev);
netif_carrier_off(pnetdev);
padapter->pid = 0; /* Initial the PID value used for HW PBC.*/
return pnetdev;
}
static u32 start_drv_threads(struct _adapter *padapter)
{
padapter->cmdThread = kthread_run(r8712_cmd_thread, padapter,
padapter->pnetdev->name);
if (IS_ERR(padapter->cmdThread) < 0)
return _FAIL;
return _SUCCESS;
}
void r8712_stop_drv_threads(struct _adapter *padapter)
{
/*Below is to termindate r8712_cmd_thread & event_thread...*/
up(&padapter->cmdpriv.cmd_queue_sema);
if (padapter->cmdThread)
_down_sema(&padapter->cmdpriv.terminate_cmdthread_sema);
padapter->cmdpriv.cmd_seq = 1;
}
static void start_drv_timers(struct _adapter *padapter)
{
_set_timer(&padapter->mlmepriv.sitesurveyctrl.sitesurvey_ctrl_timer,
5000);
_set_timer(&padapter->mlmepriv.wdg_timer, 2000);
}
void r8712_stop_drv_timers(struct _adapter *padapter)
{
_cancel_timer_ex(&padapter->mlmepriv.assoc_timer);
_cancel_timer_ex(&padapter->securitypriv.tkip_timer);
_cancel_timer_ex(&padapter->mlmepriv.scan_to_timer);
_cancel_timer_ex(&padapter->mlmepriv.dhcp_timer);
_cancel_timer_ex(&padapter->mlmepriv.wdg_timer);
_cancel_timer_ex(&padapter->mlmepriv.sitesurveyctrl.
sitesurvey_ctrl_timer);
}
static u8 init_default_value(struct _adapter *padapter)
{
u8 ret = _SUCCESS;
struct registry_priv *pregistrypriv = &padapter->registrypriv;
struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
struct security_priv *psecuritypriv = &padapter->securitypriv;
/*xmit_priv*/
pxmitpriv->vcs_setting = pregistrypriv->vrtl_carrier_sense;
pxmitpriv->vcs = pregistrypriv->vcs_type;
pxmitpriv->vcs_type = pregistrypriv->vcs_type;
pxmitpriv->rts_thresh = pregistrypriv->rts_thresh;
pxmitpriv->frag_len = pregistrypriv->frag_thresh;
/* mlme_priv */
/* Maybe someday we should rename this variable to "active_mode"(Jeff)*/
pmlmepriv->passive_mode = 1; /* 1: active, 0: passive. */
/*ht_priv*/
{
int i;
struct ht_priv *phtpriv = &pmlmepriv->htpriv;
phtpriv->ampdu_enable = false;/*set to disabled*/
for (i = 0; i < 16; i++)
phtpriv->baddbareq_issued[i] = false;
}
/*security_priv*/
psecuritypriv->sw_encrypt = pregistrypriv->software_encrypt;
psecuritypriv->sw_decrypt = pregistrypriv->software_decrypt;
psecuritypriv->binstallGrpkey = _FAIL;
/*pwrctrl_priv*/
/*registry_priv*/
r8712_init_registrypriv_dev_network(padapter);
r8712_update_registrypriv_dev_network(padapter);
/*misc.*/
return ret;
}
u8 r8712_init_drv_sw(struct _adapter *padapter)
{
if ((r8712_init_cmd_priv(&padapter->cmdpriv)) == _FAIL)
return _FAIL;
padapter->cmdpriv.padapter = padapter;
if ((r8712_init_evt_priv(&padapter->evtpriv)) == _FAIL)
return _FAIL;
if (r8712_init_mlme_priv(padapter) == _FAIL)
return _FAIL;
_r8712_init_xmit_priv(&padapter->xmitpriv, padapter);
_r8712_init_recv_priv(&padapter->recvpriv, padapter);
memset((unsigned char *)&padapter->securitypriv, 0,
sizeof(struct security_priv));
_init_timer(&(padapter->securitypriv.tkip_timer), padapter->pnetdev,
r8712_use_tkipkey_handler, padapter);
_r8712_init_sta_priv(&padapter->stapriv);
padapter->stapriv.padapter = padapter;
r8712_init_bcmc_stainfo(padapter);
r8712_init_pwrctrl_priv(padapter);
sema_init(&(padapter->pwrctrlpriv.pnp_pwr_mgnt_sema), 0);
mp871xinit(padapter);
if (init_default_value(padapter) != _SUCCESS)
return _FAIL;
r8712_InitSwLeds(padapter);
return _SUCCESS;
}
u8 r8712_free_drv_sw(struct _adapter *padapter)
{
struct net_device *pnetdev = (struct net_device *)padapter->pnetdev;
r8712_free_cmd_priv(&padapter->cmdpriv);
r8712_free_evt_priv(&padapter->evtpriv);
r8712_DeInitSwLeds(padapter);
r8712_free_mlme_priv(&padapter->mlmepriv);
r8712_free_io_queue(padapter);
_free_xmit_priv(&padapter->xmitpriv);
if (padapter->fw_found)
_r8712_free_sta_priv(&padapter->stapriv);
_r8712_free_recv_priv(&padapter->recvpriv);
mp871xdeinit(padapter);
if (pnetdev)
free_netdev(pnetdev);
return _SUCCESS;
}
static void enable_video_mode(struct _adapter *padapter, int cbw40_value)
{
/* bit 8:
* 1 -> enable video mode to 96B AP
* 0 -> disable video mode to 96B AP
* bit 9:
* 1 -> enable 40MHz mode
* 0 -> disable 40MHz mode
* bit 10:
* 1 -> enable STBC
* 0 -> disable STBC
*/
u32 intcmd = 0xf4000500; /* enable bit8, bit10*/
if (cbw40_value) {
/* if the driver supports the 40M bandwidth,
* we can enable the bit 9.*/
intcmd |= 0x200;
}
r8712_fw_cmd(padapter, intcmd);
}
/**
*
* This function intends to handle the activation of an interface
* i.e. when it is brought Up/Active from a Down state.
*
*/
static int netdev_open(struct net_device *pnetdev)
{
struct _adapter *padapter = (struct _adapter *)netdev_priv(pnetdev);
mutex_lock(&padapter->mutex_start);
if (padapter->bup == false) {
padapter->bDriverStopped = false;
padapter->bSurpriseRemoved = false;
padapter->bup = true;
if (rtl871x_hal_init(padapter) != _SUCCESS)
goto netdev_open_error;
if (r8712_initmac == NULL)
/* Use the mac address stored in the Efuse */
memcpy(pnetdev->dev_addr,
padapter->eeprompriv.mac_addr, ETH_ALEN);
else {
/* We have to inform f/w to use user-supplied MAC
* address.
*/
msleep(200);
r8712_setMacAddr_cmd(padapter, (u8 *)pnetdev->dev_addr);
/*
* The "myid" function will get the wifi mac address
* from eeprompriv structure instead of netdev
* structure. So, we have to overwrite the mac_addr
* stored in the eeprompriv structure. In this case,
* the real mac address won't be used anymore. So that,
* the eeprompriv.mac_addr should store the mac which
* users specify.
*/
memcpy(padapter->eeprompriv.mac_addr,
pnetdev->dev_addr, ETH_ALEN);
}
if (start_drv_threads(padapter) != _SUCCESS)
goto netdev_open_error;
if (padapter->dvobjpriv.inirp_init == NULL)
goto netdev_open_error;
else
padapter->dvobjpriv.inirp_init(padapter);
r8712_set_ps_mode(padapter, padapter->registrypriv.power_mgnt,
padapter->registrypriv.smart_ps);
}
if (!netif_queue_stopped(pnetdev))
netif_start_queue(pnetdev);
else
netif_wake_queue(pnetdev);
if (video_mode)
enable_video_mode(padapter, cbw40_enable);
/* start driver mlme relation timer */
start_drv_timers(padapter);
padapter->ledpriv.LedControlHandler(padapter, LED_CTL_NO_LINK);
mutex_unlock(&padapter->mutex_start);
return 0;
netdev_open_error:
padapter->bup = false;
netif_carrier_off(pnetdev);
netif_stop_queue(pnetdev);
mutex_unlock(&padapter->mutex_start);
return -1;
}
/**
*
* This function intends to handle the shutdown of an interface
* i.e. when it is brought Down from an Up/Active state.
*
*/
static int netdev_close(struct net_device *pnetdev)
{
struct _adapter *padapter = (struct _adapter *) netdev_priv(pnetdev);
/* Close LED*/
padapter->ledpriv.LedControlHandler(padapter, LED_CTL_POWER_OFF);
msleep(200);
/*s1.*/
if (pnetdev) {
if (!netif_queue_stopped(pnetdev))
netif_stop_queue(pnetdev);
}
/*s2.*/
/*s2-1. issue disassoc_cmd to fw*/
r8712_disassoc_cmd(padapter);
/*s2-2. indicate disconnect to os*/
r8712_ind_disconnect(padapter);
/*s2-3.*/
r8712_free_assoc_resources(padapter);
/*s2-4.*/
r8712_free_network_queue(padapter);
/* The interface is no longer Up: */
padapter->bup = false;
release_firmware(padapter->fw);
/* never exit with a firmware callback pending */
wait_for_completion(&padapter->rtl8712_fw_ready);
return 0;
}
#include "mlme_osdep.h"
| SerenityS/android_kernel_allwinner_a31 | drivers/staging/rtl8712/os_intfs.c | C | gpl-2.0 | 15,781 | [
30522,
1013,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
100... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
* Code contributed to the Learning Layers project
* http://www.learning-layers.eu
* Development is partly funded by the FP7 Programme of the European
* Commission under Grant Agreement FP7-ICT-318209.
* Copyright (c) 2016, Karlsruhe University of Applied Sciences.
* For a list of contributors see the AUTHORS file at the top-level directory
* of this distribution.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package de.hska.ld.etherpad.service;
import de.hska.ld.etherpad.persistence.domain.UserEtherpadInfo;
public interface UserEtherpadInfoService {
public UserEtherpadInfo save(UserEtherpadInfo userEtherpadInfo);
public UserEtherpadInfo findById(Long id);
public void storeSessionForUser(String sessionId, String groupId, Long validUntil, UserEtherpadInfo userEtherpadInfo);
public void storeAuthorIdForCurrentUser(String authorId);
public UserEtherpadInfo getUserEtherpadInfoForCurrentUser();
public UserEtherpadInfo findByAuthorId(String authorId);
UserEtherpadInfo findBySessionId(String sessionId);
}
| learning-layers/LivingDocumentsServer | ld-etherpad/src/main/java/de/hska/ld/etherpad/service/UserEtherpadInfoService.java | Java | apache-2.0 | 1,589 | [
30522,
1013,
1008,
1008,
3642,
5201,
2000,
1996,
4083,
9014,
2622,
1008,
8299,
1024,
1013,
1013,
7479,
1012,
4083,
1011,
9014,
1012,
7327,
1008,
2458,
2003,
6576,
6787,
2011,
1996,
1042,
2361,
2581,
4746,
1997,
1996,
2647,
1008,
3222,
210... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
package com.google.api.ads.dfp.jaxws.v201508;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
*
* The action used for activating {@link Placement} objects.
*
*
* <p>Java class for ActivatePlacements complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="ActivatePlacements">
* <complexContent>
* <extension base="{https://www.google.com/apis/ads/publisher/v201508}PlacementAction">
* <sequence>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ActivatePlacements")
public class ActivatePlacements
extends PlacementAction
{
}
| raja15792/googleads-java-lib | modules/dfp_appengine/src/main/java/com/google/api/ads/dfp/jaxws/v201508/ActivatePlacements.java | Java | apache-2.0 | 904 | [
30522,
7427,
4012,
1012,
8224,
1012,
17928,
1012,
14997,
1012,
1040,
22540,
1012,
13118,
9333,
1012,
1058,
11387,
16068,
2692,
2620,
1025,
12324,
9262,
2595,
1012,
20950,
1012,
14187,
1012,
5754,
17287,
3508,
1012,
20950,
6305,
9623,
21756,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<?php
/* Copyright (C) 2012 Regis Houssin <regis.houssin@capnetworks.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
$interventions = array(
'CHARSET' => 'UTF-8',
'Intervention' => 'Вмешательство',
'Interventions' => 'Мероприятия',
'InterventionCard' => 'Вмешательство карту',
'NewIntervention' => 'Новая интервенция',
'AddIntervention' => 'Добавить вмешательства',
'ListOfInterventions' => 'Перечень мероприятий',
'EditIntervention' => 'Editer вмешательства',
'ActionsOnFicheInter' => 'Действия по вмешательству',
'LastInterventions' => 'Последнее% с мероприятиями',
'AllInterventions' => 'Все мероприятия',
'CreateDraftIntervention' => 'Создание проекта',
'CustomerDoesNotHavePrefix' => 'Клиент не имеет префикс',
'InterventionContact' => 'Вмешательство контакт',
'DeleteIntervention' => 'Удалить вмешательства',
'ValidateIntervention' => 'Проверка вмешательства',
'ModifyIntervention' => 'Изменить вмешательства',
'DeleteInterventionLine' => 'Исключить вмешательство линия',
'ConfirmDeleteIntervention' => 'Вы уверены, что хотите удалить это вмешательство?',
'ConfirmValidateIntervention' => 'Вы уверены, что хотите проверить это вмешательство?',
'ConfirmModifyIntervention' => 'Вы уверены, что хотите изменить это вмешательство?',
'ConfirmDeleteInterventionLine' => 'Вы уверены, что хотите удалить эту строку вмешательства?',
'NameAndSignatureOfInternalContact' => 'Имя и подпись вмешательства:',
'NameAndSignatureOfExternalContact' => 'Имя и подпись клиента:',
'DocumentModelStandard' => 'Стандартная модель документа для выступлений',
'ClassifyBilled' => 'Классифицировать "Объявленный"',
'StatusInterInvoiced' => 'Объявленный',
'RelatedInterventions' => 'Связанные с ней мероприятия',
'ShowIntervention' => 'Показать вмешательства',
'InterventionCardsAndInterventionLines' => 'Fiches interventions et lignes d\'interventions',
'InterId' => 'Id intervention',
'InterRef' => 'Réf. intervention',
'InterDateCreation' => 'Date création',
'InterDuration' => 'Durée totale',
'InterStatus' => 'Statut',
'InterNote' => 'Description',
'InterLine' => 'Ligne intervention',
'InterLineId' => 'Id ligne détail',
'InterLineDate' => 'Date ligne',
'InterLineDuration' => 'Durée ligne',
'InterLineDesc' => 'Description ligne',
'SendInterventionByMail' => 'Envoi de la fiche d\'intervention par mail',
'SendInterventionRef' => 'Envoi Intervention %s',
////////// Types de contacts //////////
'TypeContact_fichinter_internal_INTERREPFOLL' => 'Представители следующих мер вмешательства',
'TypeContact_fichinter_internal_INTERVENING' => 'Вмешательство',
'TypeContact_fichinter_external_BILLING' => 'Платежная заказчика контакт',
'TypeContact_fichinter_external_CUSTOMER' => 'После деятельность заказчика контакт',
// Modele numérotation
'ArcticNumRefModelDesc1' => 'Общие номера модели',
'ArcticNumRefModelError' => 'Ошибка при активации',
'PacificNumRefModelDesc1' => 'Вернуться Numero с форматом %syymm-YY, где NNNN это год, мм в месяц, и это NNNN последовательности без перерыва и не вернуться до 0',
'PacificNumRefModelError' => 'Вмешательство карточки начиная с $ syymm уже и не совместимы с этой моделью последовательности. Удалить или переименовать его, чтобы активировать этот модуль.'
);
?> | woakes070048/crm-php | htdocs/langs/ru_RU/interventions.lang.php | PHP | gpl-3.0 | 4,924 | [
30522,
1026,
1029,
25718,
1013,
1008,
9385,
1006,
1039,
1007,
2262,
20588,
7570,
17854,
2378,
1026,
20588,
1012,
7570,
17854,
2378,
1030,
6178,
7159,
9316,
1012,
4012,
1028,
1008,
1008,
2023,
2565,
2003,
2489,
4007,
1025,
2017,
2064,
2417,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
package com.mxt.anitrend.model.entity.anilist.meta;
import android.os.Parcel;
import android.os.Parcelable;
@Deprecated
public class FormatStats implements Parcelable {
private String format;
private int amount;
protected FormatStats(Parcel in) {
format = in.readString();
amount = in.readInt();
}
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(format);
dest.writeInt(amount);
}
@Override
public int describeContents() {
return 0;
}
public static final Creator<FormatStats> CREATOR = new Creator<FormatStats>() {
@Override
public FormatStats createFromParcel(Parcel in) {
return new FormatStats(in);
}
@Override
public FormatStats[] newArray(int size) {
return new FormatStats[size];
}
};
public String getFormat() {
return format;
}
public int getAmount() {
return amount;
}
}
| wax911/AniTrendApp | app/src/main/java/com/mxt/anitrend/model/entity/anilist/meta/FormatStats.java | Java | lgpl-3.0 | 1,012 | [
30522,
7427,
4012,
1012,
25630,
2102,
1012,
2019,
4183,
7389,
2094,
1012,
2944,
1012,
9178,
1012,
2019,
24411,
2102,
1012,
18804,
1025,
12324,
11924,
1012,
9808,
1012,
20463,
1025,
12324,
11924,
1012,
9808,
1012,
20463,
3085,
1025,
1030,
21... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Unfortunately, the campaign you contributed to, %campaign.name, did not reach its goal, so the contribution you made has been turned down and refunded according to the terms.
There are lots of other inspiring campaigns up at so if you feel moved to roll your contribution into another amazing project, please visit http://%site.url
Thanks again for offering your support to this campaign.
| crowdfundhq/site | app/views/mail/contribution_unsuccessful/contribution_unsuccessful.en.md | Markdown | mit | 391 | [
30522,
6854,
1010,
1996,
3049,
2017,
5201,
2000,
1010,
1003,
3049,
1012,
2171,
1010,
2106,
2025,
3362,
2049,
3125,
1010,
2061,
1996,
6691,
2017,
2081,
2038,
2042,
2357,
2091,
1998,
25416,
8630,
2098,
2429,
2000,
1996,
3408,
1012,
2045,
20... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<!DOCTYPE html>
<html>
<head>
<title>PongNub</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<canvas id="game"></canvas>
<div class="modal fade bs-example-modal-sm" id="playAgain">
<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
<h4 class="modal-title">Play Again?</h4>
</div>
<div class="modal-body">
<button type="button" class="btn btn-default" data-dismiss="modal">Nah I'm good</button>
<button type="button" class="btn btn-primary" id="REMATCH">REMATCH NOW</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.6.0/underscore-min.js"></script>
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.1.0/js/bootstrap.min.js"></script>
<script src=http://cdn.pubnub.com/pubnub.js ></script>
<script src="js/game.js" type="text/javascript"></script>
<script src="js/pong.js" type="text/javascript"></script>
<script src="js/pubgame.js" type="text/javascript"></script>
<script src="js/utils.js" type+"text/javascript"></script>
<script type="text/javascript">
$("#REMATCH").click(function() {window.location.reload()});
window.oldSchoolCool = true;
Game.ready(function() {
var pong = Game.start('game', Pong, {
sound: false,
});
// Game.addEvent(sound, 'change', function() { pong.enableSound(sound.checked); });
});
$("#game").show();
$(document).ready( function() {
setTimeout(function() {
window.PongGame.start(1);
}, 0);
});
</script>
<script src="./js/prefixfree.min.js" type="text/javascript"></script>
</body>
</html>
| rockmandew/pongnub | game.html | HTML | mit | 2,105 | [
30522,
1026,
999,
9986,
13874,
16129,
1028,
1026,
16129,
1028,
1026,
2132,
1028,
1026,
2516,
1028,
13433,
3070,
11231,
2497,
1026,
1013,
2516,
1028,
1026,
18804,
8299,
1011,
1041,
15549,
2615,
1027,
1000,
4180,
1011,
2828,
1000,
4180,
1027,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
# This code was automatically generated using xdrgen
# DO NOT EDIT or your changes may be overwritten
require 'xdr'
# === xdr source ============================================================
#
# enum PublicKeyType
# {
# PUBLIC_KEY_TYPE_ED25519 = KEY_TYPE_ED25519
# };
#
# ===========================================================================
module Stellar
class PublicKeyType < XDR::Enum
member :public_key_type_ed25519, 0
seal
end
end
| stellar/ruby-stellar-base | generated/stellar/public_key_type.rb | Ruby | apache-2.0 | 473 | [
30522,
1001,
2023,
3642,
2001,
8073,
7013,
2478,
1060,
13626,
6914,
1001,
2079,
2025,
10086,
2030,
2115,
3431,
2089,
2022,
2058,
15773,
5478,
1005,
1060,
13626,
1005,
1001,
1027,
1027,
1027,
1060,
13626,
3120,
1027,
1027,
1027,
1027,
1027,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
# Internal Input Plugin
The `internal` plugin collects metrics about the telegraf agent itself.
Note that some metrics are aggregates across all instances of one type of
plugin.
### Configuration:
```toml
# Collect statistics about itself
[[inputs.internal]]
## If true, collect telegraf memory stats.
# collect_memstats = true
```
### Measurements & Fields:
memstats are taken from the Go runtime: https://golang.org/pkg/runtime/#MemStats
- internal_memstats
- alloc_bytes
- frees
- heap_alloc_bytes
- heap_idle_bytes
- heap_in_use_bytes
- heap_objects_bytes
- heap_released_bytes
- heap_sys_bytes
- mallocs
- num_gc
- pointer_lookups
- sys_bytes
- total_alloc_bytes
agent stats collect aggregate stats on all telegraf plugins.
- internal_agent
- gather_errors
- metrics_dropped
- metrics_gathered
- metrics_written
internal_gather stats collect aggregate stats on all input plugins
that are of the same input type. They are tagged with `input=<plugin_name>`
`version=<telegraf_version>` and `go_version=<go_build_version>`.
- internal_gather
- gather_time_ns
- metrics_gathered
internal_write stats collect aggregate stats on all output plugins
that are of the same input type. They are tagged with `output=<plugin_name>`
and `version=<telegraf_version>`.
- internal_write
- buffer_limit
- buffer_size
- metrics_added
- metrics_written
- metrics_dropped
- metrics_filtered
- write_time_ns
internal_<plugin_name> are metrics which are defined on a per-plugin basis, and
usually contain tags which differentiate each instance of a particular type of
plugin and `version=<telegraf_version>`.
- internal_<plugin_name>
- individual plugin-specific fields, such as requests counts.
### Tags:
All measurements for specific plugins are tagged with information relevant
to each particular plugin and with `version=<telegraf_version>`.
### Example Output:
```
internal_memstats,host=tyrion alloc_bytes=4457408i,sys_bytes=10590456i,pointer_lookups=7i,mallocs=17642i,frees=7473i,heap_sys_bytes=6848512i,heap_idle_bytes=1368064i,heap_in_use_bytes=5480448i,heap_released_bytes=0i,total_alloc_bytes=6875560i,heap_alloc_bytes=4457408i,heap_objects_bytes=10169i,num_gc=2i 1480682800000000000
internal_agent,host=tyrion,go_version=1.12.7,version=1.99.0 metrics_written=18i,metrics_dropped=0i,metrics_gathered=19i,gather_errors=0i 1480682800000000000
internal_write,output=file,host=tyrion,version=1.99.0 buffer_limit=10000i,write_time_ns=636609i,metrics_added=18i,metrics_written=18i,buffer_size=0i 1480682800000000000
internal_gather,input=internal,host=tyrion,version=1.99.0 metrics_gathered=19i,gather_time_ns=442114i 1480682800000000000
internal_gather,input=http_listener,host=tyrion,version=1.99.0 metrics_gathered=0i,gather_time_ns=167285i 1480682800000000000
internal_http_listener,address=:8186,host=tyrion,version=1.99.0 queries_received=0i,writes_received=0i,requests_received=0i,buffers_created=0i,requests_served=0i,pings_received=0i,bytes_received=0i,not_founds_served=0i,pings_served=0i,queries_served=0i,writes_served=0i 1480682800000000000
```
| srfraser/telegraf | plugins/inputs/internal/README.md | Markdown | mit | 3,178 | [
30522,
1001,
4722,
7953,
13354,
2378,
1996,
1036,
4722,
1036,
13354,
2378,
17427,
12046,
2015,
2055,
1996,
10093,
13910,
27528,
4005,
2993,
1012,
3602,
2008,
2070,
12046,
2015,
2024,
9572,
2015,
2408,
2035,
12107,
1997,
2028,
2828,
1997,
13... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
# Copyright (C) 2011-2015 Patrick Totzke <patricktotzke@gmail.com>
# This file is released under the GNU GPL, version 3 or a later revision.
# For further details see the COPYING file
from __future__ import absolute_import
import re
import abc
class AddressbookError(Exception):
pass
class AddressBook(object):
"""can look up email addresses and realnames for contacts.
.. note::
This is an abstract class that leaves :meth:`get_contacts`
unspecified. See :class:`AbookAddressBook` and
:class:`ExternalAddressbook` for implementations.
"""
__metaclass__ = abc.ABCMeta
def __init__(self, ignorecase=True):
self.reflags = re.IGNORECASE if ignorecase else 0
@abc.abstractmethod
def get_contacts(self): # pragma no cover
"""list all contacts tuples in this abook as (name, email) tuples"""
return []
def lookup(self, query=''):
"""looks up all contacts where name or address match query"""
res = []
query = re.compile('.*%s.*' % query, self.reflags)
for name, email in self.get_contacts():
if query.match(name) or query.match(email):
res.append((name, email))
return res
| geier/alot | alot/addressbook/__init__.py | Python | gpl-3.0 | 1,232 | [
30522,
1001,
9385,
1006,
1039,
1007,
2249,
1011,
2325,
4754,
30524,
2030,
1037,
2101,
13921,
1012,
1001,
2005,
2582,
4751,
2156,
1996,
24731,
5371,
2013,
1035,
1035,
2925,
1035,
1035,
12324,
7619,
1035,
12324,
12324,
2128,
12324,
5925,
2465... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
version https://git-lfs.github.com/spec/v1
oid sha256:8b2c75ae8236614319bbfe99cee3dba6fa2183434deff5a3dd2f69625589c74a
size 391
| yogeshsaroya/new-cdnjs | ajax/libs/yui/3.15.0/arraylist-filter/arraylist-filter-min.js | JavaScript | mit | 128 | [
30522,
2544,
16770,
1024,
1013,
1013,
21025,
2102,
1011,
1048,
10343,
1012,
21025,
2705,
12083,
1012,
4012,
1013,
28699,
1013,
1058,
2487,
1051,
3593,
21146,
17788,
2575,
1024,
1022,
2497,
2475,
2278,
23352,
6679,
2620,
21926,
28756,
16932,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
package eu.sii.pl;
import javax.swing.*;
import javax.swing.event.DocumentEvent;
import javax.swing.event.DocumentListener;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
/**
*
*/
public class SiiFrame extends JFrame {
private JLabel loginLabel;
private JTextField login;
private JLabel passwordLabel;
private JPasswordField password;
private JButton okButton;
public SiiFrame(String title) throws HeadlessException {
super(title);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setDimensionAndPosition();
buildContent();
}
private void setDimensionAndPosition() {
setMinimumSize(new Dimension(400, 200));
setLocationRelativeTo(null);
}
private void buildContent() {
// Create components
createComponents();
// Configure components
configureField(login);
configureField(password);
// Place components
placeComponents();
}
private void placeComponents() {
// Create panel
GridBagLayout layout = new GridBagLayout();
JPanel contentPane = new JPanel(layout);
contentPane.setBackground(new Color(196, 196, 255));
contentPane.setPreferredSize(new Dimension(300, 100));
// Add components
contentPane.add(loginLabel);
contentPane.add(login);
contentPane.add(passwordLabel);
contentPane.add(password);
contentPane.add(okButton);
GridBagConstraints c = new GridBagConstraints();
c.weightx = 1.0;
c.fill = GridBagConstraints.BOTH;
c.gridwidth = GridBagConstraints.RELATIVE;
layout.setConstraints(loginLabel, c);
layout.setConstraints(passwordLabel, c);
c.gridwidth = GridBagConstraints.REMAINDER;
c.weightx = 4.0;
layout.setConstraints(login, c);
layout.setConstraints(password, c);
layout.setConstraints(okButton, c);
getRootPane().setContentPane(contentPane);
}
private void createComponents() {
// Login label
loginLabel = new JLabel("Login");
// Login field
login = createLoginField();
// Password label
passwordLabel = new JLabel("Password");
// Password field
password = new JPasswordField();
// OK button
okButton = createOkButton();
}
private JButton createOkButton() {
JButton button = new JButton("OK");
button.setEnabled(false);
button.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
JDialog dialog = new JDialog(SiiFrame.this, "Login Action", true);
dialog.setLocationRelativeTo(SiiFrame.this);
dialog.add(new Label("Hello " + login.getText()));
dialog.setMinimumSize(new Dimension(300, 200));
dialog.setVisible(true);
}
});
return button;
}
private JTextField createLoginField() {
JTextField field = new JTextField();
field.getDocument().addDocumentListener(new DocumentListener() {
@Override
public void insertUpdate(DocumentEvent e) {
validateInput();
}
@Override
public void removeUpdate(DocumentEvent e) {
validateInput();
}
@Override
public void changedUpdate(DocumentEvent e) {
validateInput();
}
});
return field;
}
private void validateInput() {
if (login.getText().length() <= 0) {
okButton.setEnabled(false);
} else {
okButton.setEnabled(true);
}
}
private void configureField(Component field) {
Dimension size = field.getSize();
size.setSize(100, size.getHeight());
field.setMinimumSize(size);
}
}
| p-ja/javabeginner2017 | workshop/src/eu/sii/pl/SiiFrame.java | Java | mit | 4,015 | [
30522,
7427,
7327,
1012,
9033,
2072,
1012,
20228,
1025,
12324,
9262,
2595,
1012,
7370,
1012,
1008,
1025,
12324,
9262,
2595,
1012,
7370,
1012,
2724,
1012,
6254,
18697,
3372,
1025,
12324,
9262,
2595,
1012,
7370,
1012,
2724,
1012,
6254,
9863,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*! MVW-Injection (0.2.5). (C) 2015 Xavier Boubert. MIT @license: en.wikipedia.org/wiki/MIT_License */
(function(root) {
'use strict';
var DependencyInjection = new (function DependencyInjection() {
var _this = this,
_interfaces = {};
function _formatFactoryFunction(factoryFunction) {
if (typeof factoryFunction == 'function') {
var funcString = factoryFunction
.toString()
// remove comments
.replace(/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg, '');
var matches = funcString.match(/^function\s*[^\(]*\s*\(\s*([^\)]*)\)/m);
if (matches === null || matches.length < 2) {
factoryFunction = [factoryFunction];
}
else {
factoryFunction = matches[1]
.replace(/\s/g, '')
.split(',')
.filter(function(arg) {
return arg.trim().length > 0;
})
.concat(factoryFunction);
}
return factoryFunction;
}
else {
var factoryArrayCopy = [];
for (var i = 0; i < factoryFunction.length; i++) {
factoryArrayCopy.push(factoryFunction[i]);
}
factoryFunction = factoryArrayCopy;
}
return factoryFunction;
}
function Injector(instanceName) {
function _getInjections(dependencies, name, customDependencies, noError) {
var interfaces = _interfaces[name].interfacesSupported,
injections = [],
i,
j;
for (i = 0; i < dependencies.length; i++) {
var factory = null;
if (customDependencies && typeof customDependencies[dependencies[i]] != 'undefined') {
factory = customDependencies[dependencies[i]];
}
else {
for (j = 0; j < interfaces.length; j++) {
if (!_interfaces[interfaces[j]]) {
if (noError) {
return false;
}
throw new Error('DependencyInjection: "' + interfaces[j] + '" interface is not registered.');
}
factory = _interfaces[interfaces[j]].factories[dependencies[i]];
if (factory) {
factory.interfaceName = interfaces[j];
break;
}
}
}
if (factory) {
if (!factory.instantiated) {
var deps = _formatFactoryFunction(factory.result);
factory.result = deps.pop();
var factoryInjections = _getInjections(deps, factory.interfaceName);
factory.result = factory.result.apply(_this, factoryInjections);
factory.instantiated = true;
}
injections.push(factory.result);
}
else {
if (noError) {
return false;
}
throw new Error('DependencyInjection: "' + dependencies[i] + '" is not registered or accessible in ' + name + '.');
}
}
return injections;
}
this.get = function(factoryName, noError) {
var injections = _getInjections([factoryName], instanceName, null, noError);
if (injections.length) {
return injections[0];
}
return false;
};
this.invoke = function(thisArg, func, customDependencies) {
var dependencies = _formatFactoryFunction(func);
func = dependencies.pop();
if (customDependencies) {
var formatcustomDependencies = {},
interfaceName,
factory;
for (interfaceName in customDependencies) {
for (factory in customDependencies[interfaceName]) {
formatcustomDependencies[factory] = {
interfaceName: interfaceName,
instantiated: false,
result: customDependencies[interfaceName][factory]
};
}
}
customDependencies = formatcustomDependencies;
}
var injections = _getInjections(dependencies, instanceName, customDependencies);
return func.apply(thisArg, injections);
};
}
this.injector = {};
this.registerInterface = function(name, canInjectInterfaces) {
if (_this[name]) {
return _this;
}
_interfaces[name] = {
interfacesSupported: (canInjectInterfaces || []).concat(name),
factories: {}
};
_this.injector[name] = new Injector(name);
_this[name] = function DependencyInjectionFactory(factoryName, factoryFunction, replaceIfExists) {
if (!replaceIfExists && _interfaces[name].factories[factoryName]) {
return _this;
}
_interfaces[name].factories[factoryName] = {
instantiated: false,
result: factoryFunction
};
return _this;
};
return _this;
};
})();
if (typeof module != 'undefined' && typeof module.exports != 'undefined') {
module.exports = DependencyInjection;
}
else {
root.DependencyInjection = DependencyInjection;
}
})(this);
| dlueth/cdnjs | ajax/libs/mvw-injection/0.2.5/dependency-injection.js | JavaScript | mit | 5,110 | [
30522,
1013,
1008,
999,
19842,
2860,
1011,
13341,
1006,
1014,
30524,
9384,
1005,
1025,
13075,
24394,
2378,
20614,
3258,
1027,
2047,
1006,
3853,
24394,
2378,
20614,
3258,
1006,
1007,
1063,
13075,
1035,
2023,
1027,
2023,
1010,
1035,
19706,
10... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
package org.support.project.knowledge.bat;
import org.apache.commons.lang.ClassUtils;
import org.h2.tools.Server;
import org.support.project.common.config.ConfigLoader;
import org.support.project.common.log.Log;
import org.support.project.common.log.LogFactory;
import org.support.project.knowledge.logic.DataTransferLogic;
import org.support.project.ormapping.config.ConnectionConfig;
import org.support.project.web.config.AppConfig;
import org.support.project.web.logic.DBConnenctionLogic;
public class DataTransferBat extends AbstractBat implements Runnable {
/** ログ */
private static final Log LOG = LogFactory.getLog(DataTransferBat.class);
private boolean runing = false;
private boolean serverStarted = false;
public static void main(String[] args) throws Exception {
try {
initLogName("DataTransferBat.log");
configInit(ClassUtils.getShortClassName(DataTransferBat.class));
DataTransferLogic.get().requestTransfer();
DataTransferBat bat = new DataTransferBat();
bat.dbInit();
bat.start();
} catch (Exception e) {
LOG.error("any error", e);
throw e;
}
}
@Override
public void run() {
// データ取得元の組み込みDBを起動(既に起動している場合起動しない)
runing = true;
try {
AppConfig appConfig = ConfigLoader.load(AppConfig.APP_CONFIG, AppConfig.class);
String[] parms = { "-tcp", "-baseDir", appConfig.getDatabasePath() };
LOG.info("start h2 database");
Server server = Server.createTcpServer(parms);
server.start();
// System.out.println("Database start...");
serverStarted = true;
while (runing) {
Thread.sleep(1000);
}
server.stop();
} catch (Exception e) {
LOG.error(e);
}
LOG.info("Database stop.");
}
/**
*
* @throws Exception
*/
private void start() throws Exception {
if (DataTransferLogic.get().isTransferRequested() || DataTransferLogic.get().isTransferBackRequested()) {
// 多重起動チェック
if (DataTransferLogic.get().isTransferStarted()) {
LOG.info("ALL Ready started.");
return;
}
// DBを起動
Thread thread = new Thread(this);
thread.start();
try {
// サーバーが起動するまで待機
while (!serverStarted) {
Thread.sleep(1000);
}
// コネクションの設定を読み込み
ConnectionConfig defaultConnection = DBConnenctionLogic.get().getDefaultConnectionConfig();
ConnectionConfig customConnection = DBConnenctionLogic.get().getCustomConnectionConfig();
// データ移行を実行(すごく時間がかかる可能性あり)
if (DataTransferLogic.get().isTransferBackRequested()) {
DataTransferLogic.get().transferData(customConnection, defaultConnection);
} else {
DataTransferLogic.get().transferData(defaultConnection, customConnection);
}
} catch (Exception e) {
LOG.error("ERROR", e);
} finally {
// データ移行終了
DataTransferLogic.get().finishTransfer();
// DBを停止
runing = false;
thread.join();
}
}
}
}
| support-project/knowledge | src/main/java/org/support/project/knowledge/bat/DataTransferBat.java | Java | apache-2.0 | 3,706 | [
30522,
7427,
8917,
1012,
2490,
1012,
2622,
1012,
3716,
1012,
7151,
1025,
12324,
8917,
1012,
15895,
1012,
7674,
1012,
11374,
1012,
2465,
21823,
4877,
1025,
12324,
8917,
1012,
1044,
2475,
1012,
5906,
1012,
8241,
1025,
12324,
8917,
1012,
2490,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
using Jal.Locator.Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using System;
namespace Jal.Factory.Microsoft.Extensions.DependencyInjection.Installer
{
public static class ServiceCollectionExtensions
{
public static IServiceCollection AddFactory(this IServiceCollection servicecollection, Action<IFactoryBuilder> action = null)
{
servicecollection.AddServiceLocator();
servicecollection.TryAddSingleton<IObjectFactory, ObjectFactory>();
servicecollection.TryAddSingleton<IObjectCreator, ObjectCreator>();
servicecollection.TryAddSingleton<IObjectFactoryConfigurationProvider, ObjectFactoryConfigurationProvider>();
if (action != null)
{
action(new FactoryBuilder(servicecollection));
}
return servicecollection;
}
}
}
| raulnq/Jal.Factory | Jal.Factory.Microsoft.Extensions.DependencyInjection.Installer/ServiceCollectionExtensions.cs | C# | apache-2.0 | 980 | [
30522,
2478,
14855,
2140,
1012,
8840,
11266,
2953,
1012,
7513,
1012,
14305,
1012,
24394,
2378,
20614,
3258,
1025,
2478,
7513,
1012,
14305,
1012,
24394,
2378,
20614,
3258,
1025,
2478,
7513,
1012,
14305,
1012,
24394,
2378,
20614,
3258,
1012,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
* Copyright (C) 2001-2012 Free Software Foundation, Inc.
*
* Author: Nikos Mavrogiannopoulos, Simon Josefsson
*
* This file is part of GnuTLS.
*
* The GnuTLS is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
/* Functions that relate to the TLS hello extension parsing.
* Hello extensions are packets appended in the TLS hello packet, and
* allow for extra functionality.
*/
#include "gnutls_int.h"
#include "extensions.h"
#include "errors.h"
#include "ext/max_record.h"
#include <ext/cert_type.h>
#include <ext/server_name.h>
#include <ext/srp.h>
#include <ext/heartbeat.h>
#include <ext/session_ticket.h>
#include <ext/safe_renegotiation.h>
#include <ext/signature.h>
#include <ext/safe_renegotiation.h>
#include <ext/ecc.h>
#include <ext/status_request.h>
#include <ext/ext_master_secret.h>
#include <ext/srtp.h>
#include <ext/alpn.h>
#include <ext/dumbfw.h>
#include <ext/etm.h>
#include <num.h>
static int ext_register(extension_entry_st * mod);
static void _gnutls_ext_unset_resumed_session_data(gnutls_session_t
session, uint16_t type);
static extension_entry_st const *extfunc[MAX_EXT_TYPES+1] = {
&ext_mod_max_record_size,
&ext_mod_ext_master_secret,
&ext_mod_etm,
#ifdef ENABLE_OCSP
&ext_mod_status_request,
#endif
#ifdef ENABLE_OPENPGP
&ext_mod_cert_type,
#endif
&ext_mod_server_name,
&ext_mod_sr,
#ifdef ENABLE_SRP
&ext_mod_srp,
#endif
#ifdef ENABLE_HEARTBEAT
&ext_mod_heartbeat,
#endif
#ifdef ENABLE_SESSION_TICKETS
&ext_mod_session_ticket,
#endif
&ext_mod_supported_ecc,
&ext_mod_supported_ecc_pf,
&ext_mod_sig,
#ifdef ENABLE_DTLS_SRTP
&ext_mod_srtp,
#endif
#ifdef ENABLE_ALPN
&ext_mod_alpn,
#endif
/* This must be the last extension registered.
*/
&ext_mod_dumbfw,
NULL
};
static gnutls_ext_parse_type_t _gnutls_ext_parse_type(uint16_t type)
{
size_t i;
for (i = 0; extfunc[i] != NULL; i++) {
if (extfunc[i]->type == type)
return extfunc[i]->parse_type;
}
return GNUTLS_EXT_NONE;
}
static gnutls_ext_recv_func
_gnutls_ext_func_recv(uint16_t type, gnutls_ext_parse_type_t parse_type)
{
size_t i;
for (i = 0; extfunc[i] != NULL; i++)
if (extfunc[i]->type == type)
if (parse_type == GNUTLS_EXT_ANY
|| extfunc[i]->parse_type == parse_type)
return extfunc[i]->recv_func;
return NULL;
}
static gnutls_ext_deinit_data_func _gnutls_ext_func_deinit(uint16_t type)
{
size_t i;
for (i = 0; extfunc[i] != NULL; i++)
if (extfunc[i]->type == type)
return extfunc[i]->deinit_func;
return NULL;
}
static gnutls_ext_unpack_func _gnutls_ext_func_unpack(uint16_t type)
{
size_t i;
for (i = 0; extfunc[i] != NULL; i++)
if (extfunc[i]->type == type)
return extfunc[i]->unpack_func;
return NULL;
}
static const char *_gnutls_extension_get_name(uint16_t type)
{
size_t i;
for (i = 0; extfunc[i] != NULL; i++)
if (extfunc[i]->type == type)
return extfunc[i]->name;
return NULL;
}
/* Checks if the extension we just received is one of the
* requested ones. Otherwise it's a fatal error.
*/
static int
_gnutls_extension_list_check(gnutls_session_t session, uint16_t type)
{
int i;
for (i = 0; i < session->internals.extensions_sent_size; i++) {
if (type == session->internals.extensions_sent[i])
return 0; /* ok found */
}
return GNUTLS_E_RECEIVED_ILLEGAL_EXTENSION;
}
int
_gnutls_parse_extensions(gnutls_session_t session,
gnutls_ext_parse_type_t parse_type,
const uint8_t * data, int data_size)
{
int next, ret;
int pos = 0;
uint16_t type;
const uint8_t *sdata;
gnutls_ext_recv_func ext_recv;
uint16_t size;
#ifdef DEBUG
int i;
if (session->security_parameters.entity == GNUTLS_CLIENT)
for (i = 0; i < session->internals.extensions_sent_size;
i++) {
_gnutls_handshake_log
("EXT[%d]: expecting extension '%s'\n",
session,
_gnutls_extension_get_name(session->internals.
extensions_sent
[i]));
}
#endif
DECR_LENGTH_RET(data_size, 2, 0);
next = _gnutls_read_uint16(data);
pos += 2;
DECR_LENGTH_RET(data_size, next, GNUTLS_E_UNEXPECTED_EXTENSIONS_LENGTH);
do {
DECR_LENGTH_RET(next, 2, GNUTLS_E_UNEXPECTED_EXTENSIONS_LENGTH);
type = _gnutls_read_uint16(&data[pos]);
pos += 2;
if (session->security_parameters.entity == GNUTLS_CLIENT) {
if ((ret =
_gnutls_extension_list_check(session, type)) < 0) {
gnutls_assert();
return ret;
}
} else {
_gnutls_extension_list_add(session, type);
}
DECR_LENGTH_RET(next, 2, GNUTLS_E_UNEXPECTED_EXTENSIONS_LENGTH);
size = _gnutls_read_uint16(&data[pos]);
pos += 2;
DECR_LENGTH_RET(next, size, GNUTLS_E_UNEXPECTED_EXTENSIONS_LENGTH);
sdata = &data[pos];
pos += size;
ext_recv = _gnutls_ext_func_recv(type, parse_type);
if (ext_recv == NULL) {
_gnutls_handshake_log
("EXT[%p]: Found extension '%s/%d'\n", session,
_gnutls_extension_get_name(type), type);
continue;
}
_gnutls_handshake_log
("EXT[%p]: Parsing extension '%s/%d' (%d bytes)\n",
session, _gnutls_extension_get_name(type), type,
size);
if ((ret = ext_recv(session, sdata, size)) < 0) {
gnutls_assert();
return ret;
}
}
while (next > 2);
return 0;
}
/* Adds the extension we want to send in the extensions list.
* This list is used to check whether the (later) received
* extensions are the ones we requested.
*/
void _gnutls_extension_list_add(gnutls_session_t session, uint16_t type)
{
if (session->internals.extensions_sent_size <
MAX_EXT_TYPES) {
session->internals.extensions_sent[session->
internals.extensions_sent_size]
= type;
session->internals.extensions_sent_size++;
} else {
_gnutls_handshake_log
("extensions: Increase MAX_EXT_TYPES\n");
}
}
int
_gnutls_gen_extensions(gnutls_session_t session,
gnutls_buffer_st * extdata,
gnutls_ext_parse_type_t parse_type)
{
int size;
int pos, size_pos, ret;
size_t i, init_size = extdata->length;
pos = extdata->length; /* we will store length later on */
ret = _gnutls_buffer_append_prefix(extdata, 16, 0);
if (ret < 0)
return gnutls_assert_val(ret);
for (i = 0; extfunc[i] != NULL; i++) {
const extension_entry_st *p = extfunc[i];
if (p->send_func == NULL)
continue;
if (parse_type != GNUTLS_EXT_ANY
&& p->parse_type != parse_type)
continue;
/* ensure we are sending only what we received */
if (session->security_parameters.entity == GNUTLS_SERVER) {
if ((ret =
_gnutls_extension_list_check(session, p->type)) < 0) {
continue;
}
}
ret = _gnutls_buffer_append_prefix(extdata, 16, p->type);
if (ret < 0)
return gnutls_assert_val(ret);
size_pos = extdata->length;
ret = _gnutls_buffer_append_prefix(extdata, 16, 0);
if (ret < 0)
return gnutls_assert_val(ret);
size = p->send_func(session, extdata);
/* returning GNUTLS_E_INT_RET_0 means to send an empty
* extension of this type.
*/
if (size > 0 || size == GNUTLS_E_INT_RET_0) {
if (size == GNUTLS_E_INT_RET_0)
size = 0;
/* write the real size */
_gnutls_write_uint16(size,
&extdata->data[size_pos]);
/* add this extension to the extension list
*/
if (session->security_parameters.entity == GNUTLS_CLIENT)
_gnutls_extension_list_add(session, p->type);
_gnutls_handshake_log
("EXT[%p]: Sending extension %s (%d bytes)\n",
session, p->name, size);
} else if (size < 0) {
gnutls_assert();
return size;
} else if (size == 0)
extdata->length -= 4; /* reset type and size */
}
/* remove any initial data, and the size of the header */
size = extdata->length - init_size - 2;
if (size > 0)
_gnutls_write_uint16(size, &extdata->data[pos]);
else if (size == 0)
extdata->length -= 2; /* the length bytes */
return size;
}
int _gnutls_ext_init(void)
{
return GNUTLS_E_SUCCESS;
}
void _gnutls_ext_deinit(void)
{
unsigned i;
for (i = 0; extfunc[i] != NULL; i++) {
if (extfunc[i]->free_struct != 0) {
gnutls_free((void*)extfunc[i]->name);
gnutls_free((void*)extfunc[i]);
extfunc[i] = NULL;
}
}
}
static
int ext_register(extension_entry_st * mod)
{
unsigned i = 0;
while(extfunc[i] != NULL) {
i++;
}
if (i >= MAX_EXT_TYPES-1) {
return gnutls_assert_val(GNUTLS_E_INTERNAL_ERROR);
}
extfunc[i] = mod;
extfunc[i+1] = NULL;
return GNUTLS_E_SUCCESS;
}
int _gnutls_ext_pack(gnutls_session_t session, gnutls_buffer_st * packed)
{
unsigned int i;
int ret;
gnutls_ext_priv_data_t data;
int cur_size;
int size_offset;
int total_exts_pos;
int exts = 0;
total_exts_pos = packed->length;
BUFFER_APPEND_NUM(packed, 0);
for (i = 0; extfunc[i] != NULL; i++) {
ret =
_gnutls_ext_get_session_data(session, extfunc[i]->type,
&data);
if (ret >= 0 && extfunc[i]->pack_func != NULL) {
BUFFER_APPEND_NUM(packed, extfunc[i]->type);
size_offset = packed->length;
BUFFER_APPEND_NUM(packed, 0);
cur_size = packed->length;
ret = extfunc[i]->pack_func(data, packed);
if (ret < 0) {
gnutls_assert();
return ret;
}
exts++;
/* write the actual size */
_gnutls_write_uint32(packed->length - cur_size,
packed->data + size_offset);
}
}
_gnutls_write_uint32(exts, packed->data + total_exts_pos);
return 0;
}
void _gnutls_ext_restore_resumed_session(gnutls_session_t session)
{
int i;
/* clear everything except MANDATORY extensions */
for (i = 0; i < MAX_EXT_TYPES; i++) {
if (session->internals.extension_int_data[i].set != 0 &&
_gnutls_ext_parse_type(session->
internals.extension_int_data[i].
type) != GNUTLS_EXT_MANDATORY) {
_gnutls_ext_unset_session_data(session,
session->internals.
extension_int_data
[i].type);
}
}
/* copy resumed to main */
for (i = 0; i < MAX_EXT_TYPES; i++) {
if (session->internals.resumed_extension_int_data[i].set !=
0
&& _gnutls_ext_parse_type(session->internals.
resumed_extension_int_data
[i].type) !=
GNUTLS_EXT_MANDATORY) {
_gnutls_ext_set_session_data(session,
session->internals.
resumed_extension_int_data
[i].type,
session->internals.
resumed_extension_int_data
[i].priv);
session->internals.resumed_extension_int_data[i].
set = 0;
}
}
}
static void
_gnutls_ext_set_resumed_session_data(gnutls_session_t session,
uint16_t type,
gnutls_ext_priv_data_t data)
{
int i;
for (i = 0; i < MAX_EXT_TYPES; i++) {
if (session->internals.resumed_extension_int_data[i].
type == type
|| session->internals.resumed_extension_int_data[i].
set == 0) {
if (session->internals.
resumed_extension_int_data[i].set != 0)
_gnutls_ext_unset_resumed_session_data
(session, type);
session->internals.resumed_extension_int_data[i].
type = type;
session->internals.resumed_extension_int_data[i].
priv = data;
session->internals.resumed_extension_int_data[i].
set = 1;
return;
}
}
}
int _gnutls_ext_unpack(gnutls_session_t session, gnutls_buffer_st * packed)
{
int i, ret;
gnutls_ext_priv_data_t data;
gnutls_ext_unpack_func unpack;
int max_exts = 0;
uint16_t type;
int size_for_type, cur_pos;
BUFFER_POP_NUM(packed, max_exts);
for (i = 0; i < max_exts; i++) {
BUFFER_POP_NUM(packed, type);
BUFFER_POP_NUM(packed, size_for_type);
cur_pos = packed->length;
unpack = _gnutls_ext_func_unpack(type);
if (unpack == NULL) {
gnutls_assert();
return GNUTLS_E_PARSING_ERROR;
}
ret = unpack(packed, &data);
if (ret < 0) {
gnutls_assert();
return ret;
}
/* verify that unpack read the correct bytes */
cur_pos = cur_pos - packed->length;
if (cur_pos /* read length */ != size_for_type) {
gnutls_assert();
return GNUTLS_E_PARSING_ERROR;
}
_gnutls_ext_set_resumed_session_data(session, type, data);
}
return 0;
error:
return ret;
}
void
_gnutls_ext_unset_session_data(gnutls_session_t session, uint16_t type)
{
gnutls_ext_deinit_data_func deinit;
gnutls_ext_priv_data_t data;
int ret, i;
deinit = _gnutls_ext_func_deinit(type);
ret = _gnutls_ext_get_session_data(session, type, &data);
if (ret >= 0 && deinit != NULL) {
deinit(data);
}
for (i = 0; i < MAX_EXT_TYPES; i++) {
if (session->internals.extension_int_data[i].type == type) {
session->internals.extension_int_data[i].set = 0;
return;
}
}
}
static void
_gnutls_ext_unset_resumed_session_data(gnutls_session_t session,
uint16_t type)
{
gnutls_ext_deinit_data_func deinit;
gnutls_ext_priv_data_t data;
int ret, i;
deinit = _gnutls_ext_func_deinit(type);
ret = _gnutls_ext_get_resumed_session_data(session, type, &data);
if (ret >= 0 && deinit != NULL) {
deinit(data);
}
for (i = 0; i < MAX_EXT_TYPES; i++) {
if (session->internals.resumed_extension_int_data[i].
type == type) {
session->internals.resumed_extension_int_data[i].
set = 0;
return;
}
}
}
/* Deinitializes all data that are associated with TLS extensions.
*/
void _gnutls_ext_free_session_data(gnutls_session_t session)
{
unsigned int i;
for (i = 0; extfunc[i] != NULL; i++) {
_gnutls_ext_unset_session_data(session, extfunc[i]->type);
}
for (i = 0; extfunc[i] != NULL; i++) {
_gnutls_ext_unset_resumed_session_data(session,
extfunc[i]->type);
}
}
/* This function allows an extension to store data in the current session
* and retrieve them later on. We use functions instead of a pointer to a
* private pointer, to allow API additions by individual extensions.
*/
void
_gnutls_ext_set_session_data(gnutls_session_t session, uint16_t type,
gnutls_ext_priv_data_t data)
{
unsigned int i;
gnutls_ext_deinit_data_func deinit;
deinit = _gnutls_ext_func_deinit(type);
for (i = 0; i < MAX_EXT_TYPES; i++) {
if (session->internals.extension_int_data[i].type == type
|| session->internals.extension_int_data[i].set == 0) {
if (session->internals.extension_int_data[i].set !=
0) {
if (deinit)
deinit(session->internals.
extension_int_data[i].priv);
}
session->internals.extension_int_data[i].type =
type;
session->internals.extension_int_data[i].priv =
data;
session->internals.extension_int_data[i].set = 1;
return;
}
}
}
int
_gnutls_ext_get_session_data(gnutls_session_t session,
uint16_t type, gnutls_ext_priv_data_t * data)
{
int i;
for (i = 0; i < MAX_EXT_TYPES; i++) {
if (session->internals.extension_int_data[i].set != 0 &&
session->internals.extension_int_data[i].type == type)
{
*data =
session->internals.extension_int_data[i].priv;
return 0;
}
}
return GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE;
}
int
_gnutls_ext_get_resumed_session_data(gnutls_session_t session,
uint16_t type,
gnutls_ext_priv_data_t * data)
{
int i;
for (i = 0; i < MAX_EXT_TYPES; i++) {
if (session->internals.resumed_extension_int_data[i].set !=
0
&& session->internals.resumed_extension_int_data[i].
type == type) {
*data =
session->internals.
resumed_extension_int_data[i].priv;
return 0;
}
}
return GNUTLS_E_INVALID_REQUEST;
}
/**
* gnutls_ext_register:
* @name: the name of the extension to register
* @type: the numeric id of the extension
* @parse_type: the parse type of the extension (see gnutls_ext_parse_type_t)
* @recv_func: a function to receive the data
* @send_func: a function to send the data
* @deinit_func: a function deinitialize any private data
* @pack_func: a function which serializes the extension's private data (used on session packing for resumption)
* @unpack_func: a function which will deserialize the extension's private data
*
* This function will register a new extension type. The extension will remain
* registered until gnutls_global_deinit() is called. If the extension type
* is already registered then %GNUTLS_E_ALREADY_REGISTERED will be returned.
*
* Each registered extension can store temporary data into the gnutls_session_t
* structure using gnutls_ext_set_data(), and they can be retrieved using
* gnutls_ext_get_data().
*
* This function is not thread safe.
*
* Returns: %GNUTLS_E_SUCCESS on success, otherwise a negative error code.
*
* Since: 3.4.0
**/
int
gnutls_ext_register(const char *name, int type, gnutls_ext_parse_type_t parse_type,
gnutls_ext_recv_func recv_func, gnutls_ext_send_func send_func,
gnutls_ext_deinit_data_func deinit_func, gnutls_ext_pack_func pack_func,
gnutls_ext_unpack_func unpack_func)
{
extension_entry_st *tmp_mod;
int ret;
unsigned i;
for (i = 0; extfunc[i] != NULL; i++) {
if (extfunc[i]->type == type)
return gnutls_assert_val(GNUTLS_E_ALREADY_REGISTERED);
}
tmp_mod = gnutls_calloc(1, sizeof(*tmp_mod));
if (tmp_mod == NULL)
return gnutls_assert_val(GNUTLS_E_MEMORY_ERROR);
tmp_mod->name = gnutls_strdup(name);
tmp_mod->free_struct = 1;
tmp_mod->type = type;
tmp_mod->parse_type = parse_type;
tmp_mod->recv_func = recv_func;
tmp_mod->send_func = send_func;
tmp_mod->deinit_func = deinit_func;
tmp_mod->pack_func = pack_func;
tmp_mod->unpack_func = unpack_func;
ret = ext_register(tmp_mod);
if (ret < 0) {
gnutls_free((void*)tmp_mod->name);
gnutls_free(tmp_mod);
}
return ret;
}
/**
* gnutls_ext_set_data:
* @session: a #gnutls_session_t opaque pointer
* @type: the numeric id of the extension
* @data: the private data to set
*
* This function allows an extension handler to store data in the current session
* and retrieve them later on. The set data will be deallocated using
* the gnutls_ext_deinit_data_func.
*
* Since: 3.4.0
**/
void
gnutls_ext_set_data(gnutls_session_t session, unsigned type,
gnutls_ext_priv_data_t data)
{
_gnutls_ext_set_session_data(session, type, data);
}
/**
* gnutls_ext_get_data:
* @session: a #gnutls_session_t opaque pointer
* @type: the numeric id of the extension
* @data: a pointer to the private data to retrieve
*
* This function retrieves any data previously stored with gnutls_ext_set_data().
*
* Returns: %GNUTLS_E_SUCCESS on success, otherwise a negative error code.
*
* Since: 3.4.0
**/
int
gnutls_ext_get_data(gnutls_session_t session,
unsigned type, gnutls_ext_priv_data_t *data)
{
return _gnutls_ext_get_session_data(session, type, data);
}
| attilamolnar/gnutls | lib/extensions.c | C | gpl-3.0 | 18,974 | [
30522,
1013,
1008,
1008,
9385,
1006,
1039,
1007,
2541,
1011,
2262,
2489,
4007,
3192,
1010,
4297,
1012,
1008,
1008,
3166,
1024,
23205,
2891,
5003,
19716,
8649,
2937,
3630,
24662,
1010,
4079,
12947,
7092,
1008,
1008,
2023,
5371,
2003,
2112,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<?php include($this->showManageTpl('header','manage'));?>
<?php
$config=loadConfig('special');
?>
<script type="text/javascript" src="/js/formCheck/lang/cn.js"> </script>
<script type="text/javascript" src="/js/formCheck/formcheck.js"> </script>
<link rel="stylesheet" href="/js/formCheck/theme/grey/formcheck.css" type="text/css" media="screen" />
<script type="text/javascript">
window.addEvent('domready', function(){
new FormCheck('myform');
});
</script>
<div class="columntitle">专题设置</div>
<form method="post" action="?m=special&c=m_special&a=config" id="myform">
<table class="addTable">
<tr>
<th>专题存放文件夹名称</th>
<td><input type="text" name="info[folder]" size="20" class="validate['required','alpha'] colorblur" value="<?php echo $config['folder'];?>"></td>
</tr>
<tr>
<th>专题首页url格式</th>
<td><input type="text" name="info[urlFormate]" size="60" class="validate['required'] colorblur" value="<?php echo $config['urlFormate'];?>"> <span class="tdtip">必须以“http://”开头。{domainName}网站域名 {folder}专题存放文件夹名称 {catIndex}类别索引 {specialIndex}专题索引</span></td>
</tr>
<tr>
<td class="addName"></td>
<td><input type="submit" name="doSubmit" value="提交" class="button"/></td>
</tr>
</table>
</form>
<?php include($this->showManageTpl('footer','manage'));?> | royalwang/saivi | cms/manage/modules/special/templates/config.tpl.php | PHP | apache-2.0 | 1,550 | [
30522,
1026,
1029,
25718,
2421,
1006,
1002,
2023,
1011,
1028,
2265,
24805,
18150,
24759,
1006,
1005,
20346,
1005,
1010,
1005,
6133,
1005,
1007,
1007,
1025,
1029,
1028,
1026,
1029,
25718,
1002,
9530,
8873,
2290,
1027,
7170,
8663,
8873,
2290,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/* Genuine Channels product.
*
* Copyright (c) 2002-2007 Dmitry Belikov. All rights reserved.
*
* This source code comes under and must be used and distributed according to the Genuine Channels license agreement.
*/
using System;
namespace Belikov.GenuineChannels.GenuineHttp
{
/// <summary>
/// Enumerates types of HTTP packet.
/// </summary>
internal enum HttpPacketType
{
/// <summary>
/// CLIENT. The usual (PIO/sender) message.
/// </summary>
Usual,
/// <summary>
/// CLIENT. The listening request (P/listener).
/// </summary>
Listening,
/// <summary>
/// CLIENT/SERVER. The request to establish a new connection and release all data previously acquired by this host.
/// </summary>
Establishing_ResetConnection,
/// <summary>
/// CLIENT/SERVER. The request to establish a connection.
/// </summary>
Establishing,
/// <summary>
/// SERVER. Server received two listener requests and this one is ignored.
/// </summary>
DoubleRequests,
/// <summary>
/// SERVER. Server repeated the response.
/// </summary>
RequestRepeated,
/// <summary>
/// SERVER. Too small or too large sequence number.
/// </summary>
Desynchronization,
/// <summary>
/// SERVER. The response to the sender's request.
/// </summary>
SenderResponse,
/// <summary>
/// SERVER. The listener request is expired.
/// </summary>
ListenerTimedOut,
/// <summary>
/// SERVER. The listener connection is manually closed.
/// </summary>
ClosedManually,
/// <summary>
/// SERVER. Error during parsing the client's request.
/// </summary>
SenderError,
/// <summary>
/// CLIENT/SERVER. Specifies undetermined state of the connection.
/// </summary>
Unkown,
}
}
| dbelikov/GenuineChannels | Genuine Channels/Sources/GenuineHttp/HttpPacketType.cs | C# | mit | 1,821 | [
30522,
1013,
1008,
10218,
6833,
4031,
1012,
1008,
1008,
9385,
1006,
1039,
1007,
2526,
1011,
2289,
22141,
19337,
12676,
2615,
1012,
2035,
2916,
9235,
1012,
1008,
1008,
2023,
3120,
3642,
3310,
2104,
1998,
2442,
2022,
2109,
1998,
5500,
2429,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
Copyright 2010 Google Inc.
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.
*/
#ifndef GrRectanizer_DEFINED
#define GrRectanizer_DEFINED
#include "GrRect.h"
#include "GrTDArray.h"
class GrRectanizerPurgeListener {
public:
virtual ~GrRectanizerPurgeListener() {}
virtual void notifyPurgeStrip(void*, int yCoord) = 0;
};
class GrRectanizer {
public:
GrRectanizer(int width, int height) : fWidth(width), fHeight(height) {
GrAssert(width >= 0);
GrAssert(height >= 0);
}
virtual ~GrRectanizer() {}
int width() const { return fWidth; }
int height() const { return fHeight; }
virtual bool addRect(int width, int height, GrIPoint16* loc) = 0;
virtual float percentFull() const = 0;
// return the Y-coordinate of a strip that should be purged, given height
// i.e. return the oldest such strip, or some other criteria. Return -1
// if there is no candidate
virtual int stripToPurge(int height) const = 0;
virtual void purgeStripAtY(int yCoord) = 0;
/**
* Our factory, which returns the subclass du jour
*/
static GrRectanizer* Factory(int width, int height);
private:
int fWidth;
int fHeight;
};
#endif
| diwu/Tiny-Wings-Remake-on-Android | twxes10/libs/cocos2dx/platform/third_party/qnx/include/grskia/GrRectanizer.h | C | mit | 1,793 | [
30522,
1013,
1008,
9385,
2230,
8224,
4297,
1012,
7000,
2104,
1996,
15895,
6105,
1010,
2544,
1016,
1012,
1014,
1006,
1996,
1000,
6105,
1000,
1007,
1025,
2017,
2089,
2025,
2224,
2023,
5371,
3272,
1999,
12646,
2007,
1996,
6105,
1012,
2017,
2... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Fatw;
import Case.cas;
import java.io.Serializable;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
/**
*
* @author fathi
*/
@Entity
@Table(name = "fatwa")
public class fatwa implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id")
private Integer id;//il faaut yarja3 kima kan id
@Column(name = "hokm")
private String hokm;
@Column(name = "quren")
private String quren;
@Column(name = "suna")
private String suna;
@Column(name = "ijtihad")
private String ijtihad;
public fatwa(String hokm, String quren, String suna, String ijtihad) {
//this.id=id;
this.hokm = hokm;
this.quren = quren;
this.suna = suna;
this.ijtihad = ijtihad;
}
public fatwa(Integer id, String hokm, String quren, String suna, String ijtihad) {
this.id = id;
this.hokm = hokm;
this.quren = quren;
this.suna = suna;
this.ijtihad = ijtihad;
}
public fatwa() {
}
/**
* @return the id
*/
public Integer getId() {
return id;
}
/**
* @param id the id to set
*/
public void setId(Integer id) {
this.id = id;
}
/**
* @return the hokm
*/
public String getHokm() {
return hokm;
}
/**
* @param hokm the hokm to set
*/
public void setHokm(String hokm) {
this.hokm = hokm;
}
/**
* @return the quren
*/
public String getQuren() {
return quren;
}
/**
* @param quren the quren to set
*/
public void setQuren(String quren) {
this.quren = quren;
}
/**
* @return the suna
*/
public String getSuna() {
return suna;
}
/**
* @param suna the suna to set
*/
public void setSuna(String suna) {
this.suna = suna;
}
/**
* @return the ijtihad
*/
public String getIjtihad() {
return ijtihad;
}
/**
* @param ijtihad the ijtihad to set
*/
public void setIjtihad(String ijtihad) {
this.ijtihad = ijtihad;
}
@Override
public String toString() {
return " fatwa [ id=" + id + ", hokm=" + hokm + ", quren=" + quren + ", suna=" + suna + " , ijtihad=" + ijtihad + "]";
}
/**
* @return the cas
*/
/**
* @param cas the cas to set
*/
}
| boudjaamaa/IslamicfinanceOntology | src/main/java/Fatw/fatwa.java | Java | gpl-3.0 | 3,044 | [
30522,
1013,
1008,
1008,
2000,
2689,
2023,
6105,
20346,
1010,
5454,
6105,
20346,
2015,
1999,
2622,
5144,
1012,
1008,
2000,
2689,
2023,
23561,
5371,
1010,
5454,
5906,
1064,
23561,
2015,
1008,
1998,
2330,
1996,
23561,
1999,
1996,
3559,
1012,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<?php
namespace RobotsTxtParser;
class CommentsTest extends \PHPUnit\Framework\TestCase
{
/**
* @dataProvider generateDataForTest
*/
public function testRemoveComments($robotsTxtContent)
{
$parser = new RobotsTxtParser($robotsTxtContent);
$rules = $parser->getRules('*');
$this->assertEmpty($rules, 'expected remove comments');
}
/**
* @dataProvider generateDataFor2Test
*/
public function testRemoveCommentsFromValue($robotsTxtContent, $expectedDisallowValue)
{
$parser = new RobotsTxtParser($robotsTxtContent);
$rules = $parser->getRules('*');
$this->assertNotEmpty($rules, 'expected data');
$this->assertArrayHasKey('disallow', $rules);
$this->assertNotEmpty($rules['disallow'], 'disallow expected');
$this->assertEquals($expectedDisallowValue, $rules['disallow'][0]);
}
/**
* Generate test case data
* @return array
*/
public function generateDataForTest()
{
return array(
array(
"
User-agent: *
#Disallow: /tech
"
),
array(
"
User-agent: *
Disallow: #/tech
"
),
array(
"
User-agent: *
Disal # low: /tech
"
),
array(
"
User-agent: *
Disallow#: /tech # ds
"
),
);
}
/**
* Generate test case data
* @return array
*/
public function generateDataFor2Test()
{
return array(
array(
"User-agent: *
Disallow: /tech #comment",
'disallowValue' => '/tech',
),
);
}
}
| bopoda/robots-txt-parser | tests/RobotsTxtParser/CommentsTest.php | PHP | mit | 1,834 | [
30522,
1026,
1029,
25718,
3415,
15327,
13507,
2102,
18413,
19362,
8043,
1025,
2465,
7928,
22199,
8908,
1032,
25718,
19496,
2102,
1032,
7705,
1032,
3231,
18382,
1063,
1013,
1008,
1008,
1008,
1030,
2951,
21572,
17258,
2121,
7013,
6790,
13028,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<?php
namespace Augwa\QuickBooks\Model;
/**
* Master Account is the list of accounts in the master list. The master
* list is the complete list of accounts prescribed by the French
* Government. These accounts can be created in the company on a need
* basis. The account create API needs to be used to create an account.
*
* Class MasterAccountModel
* @package Augwa\QuickBooks\Model
*/
class MasterAccountModel
extends AccountModel
{
/**
* @var bool
*/
private $AccountExistsInCompany;
/**
* Product: ALL
* Specifies whether the account has been created in the company.
*
* @return bool
*/
public function getAccountExistsInCompany()
{
return $this->AccountExistsInCompany;
}
/**
* Product: ALL
* Specifies whether the account has been created in the company.
*
* @param bool $AccountExistsInCompany
*
* @return MasterAccountModel
*/
public function setAccountExistsInCompany(
$AccountExistsInCompany
)
{
$this->AccountExistsInCompany = $AccountExistsInCompany;
return $this;
}
} | augwa/quickbooks-php-sdk | src/Model/MasterAccountModel.php | PHP | mit | 1,145 | [
30522,
1026,
1029,
25718,
3415,
15327,
15476,
4213,
1032,
4248,
17470,
1032,
2944,
1025,
1013,
1008,
1008,
1008,
3040,
4070,
2003,
1996,
2862,
1997,
6115,
1999,
1996,
3040,
2862,
1012,
1996,
3040,
1008,
2862,
2003,
1996,
3143,
2862,
1997,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
#
# init_lib.py
#
# functions for initialization
#
from aws_lib import SpinupError
import base64
from boto import vpc, ec2
from os import environ
from pprint import pprint
import re
import sys
import time
from yaml_lib import yaml_attr
def read_user_data( fn ):
"""
Given a filename, returns the file's contents in a string.
"""
r = ''
with open( fn ) as fh:
r = fh.read()
fh.close()
return r
def get_tags( ec, r_id ):
"""
Takes EC2Connection object and resource ID. Returns tags associated
with that resource.
"""
return ec.get_all_tags(filters={ "resource-id": r_id })
def get_tag( ec, obj, tag ):
"""
Get the value of a tag associated with the given resource object.
Returns None if the tag is not set. Warning: EC2 tags are case-sensitive.
"""
tags = get_tags( ec, obj.id )
found = 0
for t in tags:
if t.name == tag:
found = 1
break
if found:
return t
else:
return None
def update_tag( obj, tag, val ):
"""
Given an EC2 resource object, a tag and a value, updates the given tag
to val.
"""
for x in range(0, 5):
error = False
try:
obj.add_tag( tag, val )
except:
error = True
e = sys.exc_info()[0]
print "Huh, trying again ({})".format(e)
time.sleep(5)
if not error:
print "Object {} successfully tagged.".format(obj)
break
return None
def init_region( r ):
"""
Takes a region string. Connects to that region. Returns EC2Connection
and VPCConnection objects in a tuple.
"""
# connect to region
c = vpc.connect_to_region( r )
ec = ec2.connect_to_region( r )
return ( c, ec )
def init_vpc( c, cidr ):
"""
Takes VPCConnection object (which is actually a connection to a
particular region) and a CIDR block string. Looks for our VPC in that
region. Returns the boto.vpc.vpc.VPC object corresponding to our VPC.
See:
http://boto.readthedocs.org/en/latest/ref/vpc.html#boto.vpc.vpc.VPC
"""
# look for our VPC
all_vpcs = c.get_all_vpcs()
found = 0
our_vpc = None
for v in all_vpcs:
if v.cidr_block == cidr:
our_vpc = v
found = 1
break
if not found:
raise SpinupError( "VPC {} not found".format(cidr) )
return our_vpc
def init_subnet( c, vpc_id, cidr ):
"""
Takes VPCConnection object, which is actually a connection to a
region, and a CIDR block string. Looks for our subnet in that region.
If subnet does not exist, creates it. Returns the subnet resource
object on success, raises exception on failure.
"""
# look for our VPC
all_subnets = c.get_all_subnets()
found = False
our_subnet = None
for s in all_subnets:
if s.cidr_block == cidr:
#print "Found subnet {}".format(cidr)
our_subnet = s
found = True
break
if not found:
our_subnet = c.create_subnet( vpc_id, cidr )
return our_subnet
def set_subnet_map_public_ip( ec, subnet_id ):
"""
Takes ECConnection object and SubnetId string. Attempts to set the
MapPublicIpOnLaunch attribute to True.
FIXME: give credit to source
"""
orig_api_version = ec.APIVersion
ec.APIVersion = '2014-06-15'
ec.get_status(
'ModifySubnetAttribute',
{'SubnetId': subnet_id, 'MapPublicIpOnLaunch.Value': 'true'},
verb='POST'
)
ec.APIVersion = orig_api_version
return None
def derive_ip_address( cidr_block, delegate, final8 ):
"""
Given a CIDR block string, a delegate number, and an integer
representing the final 8 bits of the IP address, construct and return
the IP address derived from this values. For example, if cidr_block is
10.0.0.0/16, the delegate number is 10, and the final8 is 8, the
derived IP address will be 10.0.10.8.
"""
result = ''
match = re.match( r'\d+\.\d+', cidr_block )
if match:
result = '{}.{}.{}'.format( match.group(0), delegate, final8 )
else:
raise SpinupError( "{} passed to derive_ip_address() is not a CIDR block!".format(cidr_block) )
return result
def get_master_instance( ec2_conn, subnet_id ):
"""
Given EC2Connection object and Master Subnet id, check that there is
just one instance running in that subnet - this is the Master. Raise
exception if the number of instances is != 0.
Return the Master instance object.
"""
instances = ec2_conn.get_only_instances( filters={ "subnet-id": subnet_id } )
if 1 > len(instances):
raise SpinupError( "There are no instances in the master subnet" )
if 1 < len(instances):
raise SpinupError( "There are too many instances in the master subnet" )
return instances[0]
def template_token_subst( buf, key, val ):
"""
Given a string (buf), a key (e.g. '@@MASTER_IP@@') and val, replace all
occurrences of key in buf with val. Return the new string.
"""
targetre = re.compile( re.escape( key ) )
return re.sub( targetre, str(val), buf )
def process_user_data( fn, vars = [] ):
"""
Given filename of user-data file and a list of environment
variable names, replaces @@...@@ tokens with the values of the
environment variables. Returns the user-data string on success
raises exception on failure.
"""
# Get user_data string.
buf = read_user_data( fn )
for e in vars:
if not e in environ:
raise SpinupError( "Missing environment variable {}!".format( e ) )
buf = template_token_subst( buf, '@@'+e+'@@', environ[e] )
return buf
def count_instances_in_subnet( ec, subnet_id ):
"""
Given EC2Connection object and subnet ID, count number of instances
in that subnet and return it.
"""
instance_list = ec.get_only_instances(
filters={ "subnet-id": subnet_id }
)
return len(instance_list)
def make_reservation( ec, ami_id, **kwargs ):
"""
Given EC2Connection object, delegate number, AMI ID, as well as
all the kwargs referred to below, make a reservation for an instance
and return the registration object.
"""
# extract arguments to be passed to ec.run_instances()
our_kwargs = {
"key_name": kwargs['key_name'],
"subnet_id": kwargs['subnet_id'],
"instance_type": kwargs['instance_type'],
"private_ip_address": kwargs['private_ip_address']
}
# Master or minion?
if kwargs['master']:
our_kwargs['user_data'] = kwargs['user_data']
else:
# perform token substitution in user-data string
u = kwargs['user_data']
u = template_token_subst( u, '@@MASTER_IP@@', kwargs['master_ip'] )
u = template_token_subst( u, '@@DELEGATE@@', kwargs['delegate_no'] )
u = template_token_subst( u, '@@ROLE@@', kwargs['role'] )
u = template_token_subst( u, '@@NODE_NO@@', kwargs['node_no'] )
our_kwargs['user_data'] = u
# Make the reservation.
reservation = ec.run_instances( ami_id, **our_kwargs )
# Return the reservation object.
return reservation
def wait_for_running( ec2_conn, instance_id ):
"""
Given an instance id, wait for its state to change to "running".
"""
print "Waiting for {} running state".format( instance_id )
while True:
instances = ec2_conn.get_only_instances( instance_ids=[ instance_id ] )
print "Current state is {}".format( instances[0].state )
if instances[0].state != 'running':
print "Sleeping for 5 seconds"
time.sleep(5)
else:
print "Waiting another 5 seconds for good measure"
time.sleep(5)
break
def wait_for_available( ec2_conn, volume_id ):
"""
Given a volume id, wait for its state to change to "available".
"""
print "Waiting for {} available state".format( volume_id )
while True:
volumes = ec2_conn.get_all_volumes( volume_ids=[ volume_id ] )
print "Current status is {}".format( volumes[0].status )
if volumes[0].status != 'available':
print "Sleeping for 5 seconds"
time.sleep(5)
else:
break
def wait_for_detachment( ec2_conn, v_id, i_id ):
"""
Given a volume ID and an instance ID, wait for volume to
become detached.
"""
print "Waiting for volume {} to be detached from instnace {}".format(v_id, i_id)
while True:
attached_vol = ec2_conn.get_all_volumes(
filters={
"volume-id": v_id,
"attachment.instance-id": i_id,
"attachment.device": "/dev/sdb"
}
)
print "attached_vol == {}".format(attached_vol)
if attached_vol is None or len(attached_vol) == 0:
print "Detached!"
break
else:
time.sleep(5)
print "Still attached."
| smithfarm/ceph-auto-aws | susecon2015/init_lib.py | Python | bsd-3-clause | 9,277 | [
30522,
1001,
1001,
1999,
4183,
1035,
5622,
2497,
1012,
1052,
2100,
1001,
1001,
4972,
2005,
3988,
3989,
1001,
2013,
22091,
2015,
1035,
5622,
2497,
12324,
6714,
6279,
2121,
29165,
12324,
2918,
21084,
2013,
28516,
2080,
12324,
21210,
2278,
101... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
package javay.test.security;
import java.security.Key;
import java.security.SecureRandom;
import javax.crypto.Cipher;
import javax.crypto.KeyGenerator;
import javax.crypto.SecretKey;
import javax.crypto.SecretKeyFactory;
import javax.crypto.spec.DESKeySpec;
/**
* DES安全编码组件
*
* <pre>
* 支持 DES、DESede(TripleDES,就是3DES)、AES、Blowfish、RC2、RC4(ARCFOUR)
* DES key size must be equal to 56
* DESede(TripleDES) key size must be equal to 112 or 168
* AES key size must be equal to 128, 192 or 256,but 192 and 256 bits may not be available
* Blowfish key size must be multiple of 8, and can only range from 32 to 448 (inclusive)
* RC2 key size must be between 40 and 1024 bits
* RC4(ARCFOUR) key size must be between 40 and 1024 bits
* 具体内容 需要关注 JDK Document http://.../docs/technotes/guides/security/SunProviders.html
* </pre>
*
*/
public abstract class DESCoder extends Coder {
/**
* ALGORITHM 算法 <br>
* 可替换为以下任意一种算法,同时key值的size相应改变。
*
* <pre>
* DES key size must be equal to 56
* DESede(TripleDES) key size must be equal to 112 or 168
* AES key size must be equal to 128, 192 or 256,but 192 and 256 bits may not be available
* Blowfish key size must be multiple of 8, and can only range from 32 to 448 (inclusive)
* RC2 key size must be between 40 and 1024 bits
* RC4(ARCFOUR) key size must be between 40 and 1024 bits
* </pre>
*
* 在Key toKey(byte[] key)方法中使用下述代码
* <code>SecretKey secretKey = new SecretKeySpec(key, ALGORITHM);</code> 替换
* <code>
* DESKeySpec dks = new DESKeySpec(key);
* SecretKeyFactory keyFactory = SecretKeyFactory.getInstance(ALGORITHM);
* SecretKey secretKey = keyFactory.generateSecret(dks);
* </code>
*/
public static final String ALGORITHM = "DES";
/**
* 转换密钥<br>
*
* @param key
* @return
* @throws Exception
*/
private static Key toKey(byte[] key) throws Exception {
DESKeySpec dks = new DESKeySpec(key);
SecretKeyFactory keyFactory = SecretKeyFactory.getInstance(ALGORITHM);
SecretKey secretKey = keyFactory.generateSecret(dks);
// 当使用其他对称加密算法时,如AES、Blowfish等算法时,用下述代码替换上述三行代码
// SecretKey secretKey = new SecretKeySpec(key, ALGORITHM);
return secretKey;
}
/**
* 解密
*
* @param data
* @param key
* @return
* @throws Exception
*/
public static byte[] decrypt(byte[] data, String key) throws Exception {
Key k = toKey(decryptBASE64(key));
Cipher cipher = Cipher.getInstance(ALGORITHM);
cipher.init(Cipher.DECRYPT_MODE, k);
return cipher.doFinal(data);
}
/**
* 加密
*
* @param data
* @param key
* @return
* @throws Exception
*/
public static byte[] encrypt(byte[] data, String key) throws Exception {
Key k = toKey(decryptBASE64(key));
Cipher cipher = Cipher.getInstance(ALGORITHM);
cipher.init(Cipher.ENCRYPT_MODE, k);
return cipher.doFinal(data);
}
/**
* 生成密钥
*
* @return
* @throws Exception
*/
public static String initKey() throws Exception {
return initKey(null);
}
/**
* 生成密钥
*
* @param seed
* @return
* @throws Exception
*/
public static String initKey(String seed) throws Exception {
SecureRandom secureRandom = null;
if (seed != null) {
secureRandom = new SecureRandom(decryptBASE64(seed));
} else {
secureRandom = new SecureRandom();
}
KeyGenerator kg = KeyGenerator.getInstance(ALGORITHM);
kg.init(secureRandom);
SecretKey secretKey = kg.generateKey();
return encryptBASE64(secretKey.getEncoded());
}
}
| dubenju/javay | src/java/javay/test/security/DESCoder.java | Java | apache-2.0 | 4,047 | [
30522,
7427,
9262,
2100,
1012,
3231,
1012,
3036,
1025,
12324,
9262,
1012,
3036,
1012,
3145,
1025,
12324,
9262,
1012,
3036,
1012,
5851,
13033,
5358,
1025,
12324,
9262,
2595,
1012,
19888,
2080,
1012,
27715,
1025,
12324,
9262,
2595,
1012,
1988... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 org.apache.gora.cassandra.store;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import me.prettyprint.cassandra.model.ConfigurableConsistencyLevel;
import me.prettyprint.cassandra.serializers.ByteBufferSerializer;
import me.prettyprint.cassandra.serializers.IntegerSerializer;
import me.prettyprint.cassandra.serializers.StringSerializer;
import me.prettyprint.cassandra.service.CassandraHostConfigurator;
import me.prettyprint.hector.api.Cluster;
import me.prettyprint.hector.api.Keyspace;
import me.prettyprint.hector.api.beans.OrderedRows;
import me.prettyprint.hector.api.beans.OrderedSuperRows;
import me.prettyprint.hector.api.beans.Row;
import me.prettyprint.hector.api.beans.SuperRow;
import me.prettyprint.hector.api.ddl.ColumnFamilyDefinition;
import me.prettyprint.hector.api.ddl.ComparatorType;
import me.prettyprint.hector.api.ddl.KeyspaceDefinition;
import me.prettyprint.hector.api.factory.HFactory;
import me.prettyprint.hector.api.mutation.Mutator;
import me.prettyprint.hector.api.query.QueryResult;
import me.prettyprint.hector.api.query.RangeSlicesQuery;
import me.prettyprint.hector.api.query.RangeSuperSlicesQuery;
import me.prettyprint.hector.api.HConsistencyLevel;
import me.prettyprint.hector.api.Serializer;
import org.apache.avro.Schema;
import org.apache.avro.Schema.Type;
import org.apache.avro.generic.GenericArray;
import org.apache.avro.util.Utf8;
import org.apache.gora.cassandra.query.CassandraQuery;
import org.apache.gora.cassandra.serializers.GenericArraySerializer;
import org.apache.gora.cassandra.serializers.GoraSerializerTypeInferer;
import org.apache.gora.cassandra.serializers.TypeUtils;
import org.apache.gora.mapreduce.GoraRecordReader;
import org.apache.gora.persistency.Persistent;
import org.apache.gora.persistency.impl.PersistentBase;
import org.apache.gora.persistency.State;
import org.apache.gora.persistency.StatefulHashMap;
import org.apache.gora.query.Query;
import org.apache.gora.util.ByteUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class CassandraClient<K, T extends PersistentBase> {
public static final Logger LOG = LoggerFactory.getLogger(CassandraClient.class);
private Cluster cluster;
private Keyspace keyspace;
private Mutator<K> mutator;
private Class<K> keyClass;
private Class<T> persistentClass;
private CassandraMapping cassandraMapping = null;
private Serializer<K> keySerializer;
public void initialize(Class<K> keyClass, Class<T> persistentClass) throws Exception {
this.keyClass = keyClass;
// get cassandra mapping with persistent class
this.persistentClass = persistentClass;
this.cassandraMapping = CassandraMappingManager.getManager().get(persistentClass);
// LOG.info("persistentClass=" + persistentClass.getName() + " -> cassandraMapping=" + cassandraMapping);
this.cluster = HFactory.getOrCreateCluster(this.cassandraMapping.getClusterName(), new CassandraHostConfigurator(this.cassandraMapping.getHostName()));
// add keyspace to cluster
checkKeyspace();
// Just create a Keyspace object on the client side, corresponding to an already existing keyspace with already created column families.
this.keyspace = HFactory.createKeyspace(this.cassandraMapping.getKeyspaceName(), this.cluster);
this.keySerializer = GoraSerializerTypeInferer.getSerializer(keyClass);
this.mutator = HFactory.createMutator(this.keyspace, this.keySerializer);
}
/**
* Check if keyspace already exists.
*/
public boolean keyspaceExists() {
KeyspaceDefinition keyspaceDefinition = this.cluster.describeKeyspace(this.cassandraMapping.getKeyspaceName());
return (keyspaceDefinition != null);
}
/**
* Check if keyspace already exists. If not, create it.
* In this method, we also utilise Hector's {@ConfigurableConsistencyLevel}
* logic. It is set by passing a ConfigurableConsistencyLevel object right
* when the Keyspace is created. Currently consistency level is .ONE which
* permits consistency to wait until one replica has responded.
*/
public void checkKeyspace() {
// "describe keyspace <keyspaceName>;" query
KeyspaceDefinition keyspaceDefinition = this.cluster.describeKeyspace(this.cassandraMapping.getKeyspaceName());
if (keyspaceDefinition == null) {
List<ColumnFamilyDefinition> columnFamilyDefinitions = this.cassandraMapping.getColumnFamilyDefinitions();
// GORA-197
for (ColumnFamilyDefinition cfDef : columnFamilyDefinitions) {
cfDef.setComparatorType(ComparatorType.BYTESTYPE);
}
keyspaceDefinition = HFactory.createKeyspaceDefinition(this.cassandraMapping.getKeyspaceName(), "org.apache.cassandra.locator.SimpleStrategy", 1, columnFamilyDefinitions);
this.cluster.addKeyspace(keyspaceDefinition, true);
// LOG.info("Keyspace '" + this.cassandraMapping.getKeyspaceName() + "' in cluster '" + this.cassandraMapping.getClusterName() + "' was created on host '" + this.cassandraMapping.getHostName() + "'");
// Create a customized Consistency Level
ConfigurableConsistencyLevel configurableConsistencyLevel = new ConfigurableConsistencyLevel();
Map<String, HConsistencyLevel> clmap = new HashMap<String, HConsistencyLevel>();
// Define CL.ONE for ColumnFamily "ColumnFamily"
clmap.put("ColumnFamily", HConsistencyLevel.ONE);
// In this we use CL.ONE for read and writes. But you can use different CLs if needed.
configurableConsistencyLevel.setReadCfConsistencyLevels(clmap);
configurableConsistencyLevel.setWriteCfConsistencyLevels(clmap);
// Then let the keyspace know
HFactory.createKeyspace("Keyspace", this.cluster, configurableConsistencyLevel);
keyspaceDefinition = null;
}
else {
List<ColumnFamilyDefinition> cfDefs = keyspaceDefinition.getCfDefs();
if (cfDefs == null || cfDefs.size() == 0) {
LOG.warn(keyspaceDefinition.getName() + " does not have any column family.");
}
else {
for (ColumnFamilyDefinition cfDef : cfDefs) {
ComparatorType comparatorType = cfDef.getComparatorType();
if (! comparatorType.equals(ComparatorType.BYTESTYPE)) {
// GORA-197
LOG.warn("The comparator type of " + cfDef.getName() + " column family is " + comparatorType.getTypeName()
+ ", not BytesType. It may cause a fatal error on column validation later.");
}
else {
// LOG.info("The comparator type of " + cfDef.getName() + " column family is " + comparatorType.getTypeName() + ".");
}
}
}
}
}
/**
* Drop keyspace.
*/
public void dropKeyspace() {
// "drop keyspace <keyspaceName>;" query
this.cluster.dropKeyspace(this.cassandraMapping.getKeyspaceName());
}
/**
* Insert a field in a column.
* @param key the row key
* @param fieldName the field name
* @param value the field value.
*/
public void addColumn(K key, String fieldName, Object value) {
if (value == null) {
return;
}
ByteBuffer byteBuffer = toByteBuffer(value);
String columnFamily = this.cassandraMapping.getFamily(fieldName);
String columnName = this.cassandraMapping.getColumn(fieldName);
if (columnName == null) {
LOG.warn("Column name is null for field=" + fieldName + " with value=" + value.toString());
return;
}
synchronized(mutator) {
HectorUtils.insertColumn(mutator, key, columnFamily, columnName, byteBuffer);
}
}
/**
* Insert a member in a super column. This is used for map and record Avro types.
* @param key the row key
* @param fieldName the field name
* @param columnName the column name (the member name, or the index of array)
* @param value the member value
*/
@SuppressWarnings("unchecked")
public void addSubColumn(K key, String fieldName, ByteBuffer columnName, Object value) {
if (value == null) {
return;
}
ByteBuffer byteBuffer = toByteBuffer(value);
String columnFamily = this.cassandraMapping.getFamily(fieldName);
String superColumnName = this.cassandraMapping.getColumn(fieldName);
synchronized(mutator) {
HectorUtils.insertSubColumn(mutator, key, columnFamily, superColumnName, columnName, byteBuffer);
}
}
public void addSubColumn(K key, String fieldName, String columnName, Object value) {
addSubColumn(key, fieldName, StringSerializer.get().toByteBuffer(columnName), value);
}
public void addSubColumn(K key, String fieldName, Integer columnName, Object value) {
addSubColumn(key, fieldName, IntegerSerializer.get().toByteBuffer(columnName), value);
}
/**
* Delete a member in a super column. This is used for map and record Avro types.
* @param key the row key
* @param fieldName the field name
* @param columnName the column name (the member name, or the index of array)
*/
@SuppressWarnings("unchecked")
public void deleteSubColumn(K key, String fieldName, ByteBuffer columnName) {
String columnFamily = this.cassandraMapping.getFamily(fieldName);
String superColumnName = this.cassandraMapping.getColumn(fieldName);
synchronized(mutator) {
HectorUtils.deleteSubColumn(mutator, key, columnFamily, superColumnName, columnName);
}
}
public void deleteSubColumn(K key, String fieldName, String columnName) {
deleteSubColumn(key, fieldName, StringSerializer.get().toByteBuffer(columnName));
}
@SuppressWarnings("unchecked")
public void addGenericArray(K key, String fieldName, GenericArray array) {
if (isSuper( cassandraMapping.getFamily(fieldName) )) {
int i= 0;
for (Object itemValue: array) {
// TODO: hack, do not store empty arrays
if (itemValue instanceof GenericArray<?>) {
if (((GenericArray)itemValue).size() == 0) {
continue;
}
} else if (itemValue instanceof StatefulHashMap<?,?>) {
if (((StatefulHashMap)itemValue).size() == 0) {
continue;
}
}
addSubColumn(key, fieldName, i++, itemValue);
}
}
else {
addColumn(key, fieldName, array);
}
}
@SuppressWarnings("unchecked")
public void addStatefulHashMap(K key, String fieldName, StatefulHashMap<Utf8,Object> map) {
if (isSuper( cassandraMapping.getFamily(fieldName) )) {
int i= 0;
for (Utf8 mapKey: map.keySet()) {
if (map.getState(mapKey) == State.DELETED) {
deleteSubColumn(key, fieldName, mapKey.toString());
continue;
}
// TODO: hack, do not store empty arrays
Object mapValue = map.get(mapKey);
if (mapValue instanceof GenericArray<?>) {
if (((GenericArray)mapValue).size() == 0) {
continue;
}
} else if (mapValue instanceof StatefulHashMap<?,?>) {
if (((StatefulHashMap)mapValue).size() == 0) {
continue;
}
}
addSubColumn(key, fieldName, mapKey.toString(), mapValue);
}
}
else {
addColumn(key, fieldName, map);
}
}
/**
* Serialize value to ByteBuffer.
* @param value the member value
* @return ByteBuffer object
*/
@SuppressWarnings("unchecked")
public ByteBuffer toByteBuffer(Object value) {
ByteBuffer byteBuffer = null;
Serializer serializer = GoraSerializerTypeInferer.getSerializer(value);
if (serializer == null) {
LOG.info("Serializer not found for: " + value.toString());
}
else {
byteBuffer = serializer.toByteBuffer(value);
}
if (byteBuffer == null) {
LOG.info("value class=" + value.getClass().getName() + " value=" + value + " -> null");
}
return byteBuffer;
}
/**
* Select a family column in the keyspace.
* @param cassandraQuery a wrapper of the query
* @param family the family name to be queried
* @return a list of family rows
*/
public List<Row<K, ByteBuffer, ByteBuffer>> execute(CassandraQuery<K, T> cassandraQuery, String family) {
String[] columnNames = cassandraQuery.getColumns(family);
ByteBuffer[] columnNameByteBuffers = new ByteBuffer[columnNames.length];
for (int i = 0; i < columnNames.length; i++) {
columnNameByteBuffers[i] = StringSerializer.get().toByteBuffer(columnNames[i]);
}
Query<K, T> query = cassandraQuery.getQuery();
int limit = (int) query.getLimit();
if (limit < 1) {
limit = Integer.MAX_VALUE;
}
K startKey = query.getStartKey();
K endKey = query.getEndKey();
RangeSlicesQuery<K, ByteBuffer, ByteBuffer> rangeSlicesQuery = HFactory.createRangeSlicesQuery(this.keyspace, this.keySerializer, ByteBufferSerializer.get(), ByteBufferSerializer.get());
rangeSlicesQuery.setColumnFamily(family);
rangeSlicesQuery.setKeys(startKey, endKey);
rangeSlicesQuery.setRange(ByteBuffer.wrap(new byte[0]), ByteBuffer.wrap(new byte[0]), false, GoraRecordReader.BUFFER_LIMIT_READ_VALUE);
rangeSlicesQuery.setRowCount(limit);
rangeSlicesQuery.setColumnNames(columnNameByteBuffers);
QueryResult<OrderedRows<K, ByteBuffer, ByteBuffer>> queryResult = rangeSlicesQuery.execute();
OrderedRows<K, ByteBuffer, ByteBuffer> orderedRows = queryResult.get();
return orderedRows.getList();
}
/**
* Select the families that contain at least one column mapped to a query field.
* @param query indicates the columns to select
* @return a map which keys are the family names and values the corresponding column names required to get all the query fields.
*/
public Map<String, List<String>> getFamilyMap(Query<K, T> query) {
Map<String, List<String>> map = new HashMap<String, List<String>>();
for (String field: query.getFields()) {
String family = this.cassandraMapping.getFamily(field);
String column = this.cassandraMapping.getColumn(field);
// check if the family value was already initialized
List<String> list = map.get(family);
if (list == null) {
list = new ArrayList<String>();
map.put(family, list);
}
if (column != null) {
list.add(column);
}
}
return map;
}
/**
* Select the field names according to the column names, which format if fully qualified: "family:column"
* @param query
* @return a map which keys are the fully qualified column names and values the query fields
*/
public Map<String, String> getReverseMap(Query<K, T> query) {
Map<String, String> map = new HashMap<String, String>();
for (String field: query.getFields()) {
String family = this.cassandraMapping.getFamily(field);
String column = this.cassandraMapping.getColumn(field);
map.put(family + ":" + column, field);
}
return map;
}
public boolean isSuper(String family) {
return this.cassandraMapping.isSuper(family);
}
public List<SuperRow<K, String, ByteBuffer, ByteBuffer>> executeSuper(CassandraQuery<K, T> cassandraQuery, String family) {
String[] columnNames = cassandraQuery.getColumns(family);
Query<K, T> query = cassandraQuery.getQuery();
int limit = (int) query.getLimit();
if (limit < 1) {
limit = Integer.MAX_VALUE;
}
K startKey = query.getStartKey();
K endKey = query.getEndKey();
RangeSuperSlicesQuery<K, String, ByteBuffer, ByteBuffer> rangeSuperSlicesQuery = HFactory.createRangeSuperSlicesQuery(this.keyspace, this.keySerializer, StringSerializer.get(), ByteBufferSerializer.get(), ByteBufferSerializer.get());
rangeSuperSlicesQuery.setColumnFamily(family);
rangeSuperSlicesQuery.setKeys(startKey, endKey);
rangeSuperSlicesQuery.setRange("", "", false, GoraRecordReader.BUFFER_LIMIT_READ_VALUE);
rangeSuperSlicesQuery.setRowCount(limit);
rangeSuperSlicesQuery.setColumnNames(columnNames);
QueryResult<OrderedSuperRows<K, String, ByteBuffer, ByteBuffer>> queryResult = rangeSuperSlicesQuery.execute();
OrderedSuperRows<K, String, ByteBuffer, ByteBuffer> orderedRows = queryResult.get();
return orderedRows.getList();
}
/**
* Obtain Schema/Keyspace name
* @return Keyspace
*/
public String getKeyspaceName() {
return this.cassandraMapping.getKeyspaceName();
}
}
| prateekbansal/apache-gora-0.4 | gora-cassandra/src/main/java/org/apache/gora/cassandra/store/CassandraClient.java | Java | apache-2.0 | 17,283 | [
30522,
1013,
1008,
1008,
1008,
7000,
2000,
1996,
15895,
4007,
3192,
1006,
2004,
2546,
1007,
2104,
2028,
1008,
2030,
2062,
12130,
6105,
10540,
1012,
2156,
1996,
5060,
5371,
1008,
5500,
2007,
2023,
2147,
2005,
3176,
2592,
1008,
4953,
9385,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
---
title: About
permalink: /about/
---
Hi! I'm Leo.
| lepistone/lepistone.github.io | about.md | Markdown | gpl-3.0 | 53 | [
30522,
1011,
1011,
1011,
2516,
1024,
2055,
2566,
9067,
19839,
1024,
1013,
2055,
1013,
1011,
1011,
1011,
7632,
999,
1045,
1005,
1049,
6688,
1012,
102,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
body {
background-color: #222;
color:white;
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif
}
p {
line-height: 1.5;
}
h1 {
text-align: center;
}
.container {
width: 800px;
padding: 10px;
margin: auto;
}
.container section {
margin: 10px 0;
position: relative;
padding: 10px;
background: black;
border-radius: 10px;
height: 240px;
display: flex;
}
#slider > .image-container {
flex-grow: 10;
height:230px;
text-align: center;
}
img {
max-height: 100%;
}
.padding-right {
margin-right: 50px;
display: inline-block;
}
.details {
float: left;
}
.thumb {
max-height: 100px;
}
.padding-left-10 {
padding-left: 10px;
}
.roster-image-container {
flex-grow: 1;
text-align: center;
padding: 1px;
}
.button {
flex-grow: 1;
}
.button:hover {
cursor: pointer;
}
#bio .image {
flex-grow: 1;
}
#bio .info {
flex-grow: 2;
padding: 10px 30px;
}
#bio .info p:last-child {
text-indent: 20px;
}
| akkirilov/SoftUniProject | 12_ReactJS Fundamentals/02_components_demo/src/App.css | CSS | mit | 1,048 | [
30522,
2303,
1063,
4281,
1011,
3609,
1024,
1001,
19015,
1025,
3609,
1024,
2317,
1025,
15489,
1011,
2155,
1024,
1005,
12267,
20344,
1005,
1010,
1005,
12267,
20344,
11047,
1005,
1010,
10250,
12322,
3089,
1010,
1005,
29461,
25987,
3388,
5796,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
#include "bench_framework.hpp"
#include <mapnik/image_util.hpp>
class test : public benchmark::test_case
{
mapnik::image_rgba8 im_;
public:
test(mapnik::parameters const& params)
: test_case(params),
im_(256,256) {}
bool validate() const
{
return true;
}
bool operator()() const
{
std::string out;
for (std::size_t i=0;i<iterations_;++i) {
out.clear();
out = mapnik::save_to_string(im_,"png8:m=h:z=1");
}
return true;
}
};
BENCHMARK(test,"encoding blank png")
| mapycz/mapnik | benchmark/test_png_encoding1.cpp | C++ | lgpl-2.1 | 570 | [
30522,
1001,
2421,
1000,
6847,
1035,
7705,
1012,
6522,
2361,
1000,
1001,
2421,
1026,
4949,
8238,
1013,
3746,
1035,
21183,
4014,
1012,
6522,
2361,
1028,
2465,
3231,
1024,
2270,
6847,
10665,
1024,
1024,
3231,
1035,
2553,
1063,
4949,
8238,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
---
title: "यूपी: हमीरपुर में नाबालिग लड़की का 18 दिन गैंगरेप"
layout: item
category: ["UP"]
date: 2018-05-09T11:25:49.615Z
image: 1525884949614gang-rape.jpg
---
<p>लखनऊ: यूपी के हमीरपुर जिले में एक गैंगरेप की घटना ने हड़कंप मचा दिया है. इस वारदात में बाजार गई एक नाबालिग लड़की को कार में लिफ्ट देने के बहाने तीन युवकों ने अपहरण किया. इसके बाद उन्होंने 18 दिनों तक बंधक बनाकर उसके साथ गैंगरेप किया. फिलहाल पीड़िता की तहरीर पर पुलिस ने मुकदमा दर्ज कर आरोपियों कि तलाश शुरू कर दी है.</p>
<p>पीड़िता ने बताया कि वह जब बाजार समान लेने गई थी, तभी असलहा लगाकर इसका अपहरण कर लिया गया. बंधक बनाकर इसको गैंग रेप का शिकार बनाया गया. मामला राठ कोतवाली कस्बे का है. यहां 20 दिन पहले एक लड़की के अपहरण का मुकदमा दर्ज हुआ था. किसी तरह जान बचाकर अपहरणकर्ताओ के चंगुल से छूट कर जब वो दो दिन पहले अपने घर पहुंची तो उसके साथ हुई दरिंदगी सुनकर घरवालों के पैरों के जमीन सरक गई. आनन-फानन में परिजन पीड़िता को लेकर पुलिस के पास पहुंचे तो पुलिस ने उसका मेडिकल करवाते हुए मामला दर्ज कर आरोपियों की तलाश शुरू कर दी है.</p>
<p>एसपी दिनेश कुमार पी ने बताया कि 20 अप्रैल अपहरण की एफआईआर दर्ज की गई थी. इस बीच लड़की खुद अपने घर पहुंच गई. पूछताछ में लड़की ये नहीं बता पा रही है कि उसका किसने अपहरण किया था? कहां ले गए थे? लड़की की मेडिकल जांच के लिए भेजा जा रहा है. उसके 164 के बयान का आदेश दे दिया गया है. मामले में अलग से स्पेशल टीम गठित कर जांच कर रही है.</p> | InstantKhabar/_source | _source/news/2018-05-09-gang-rape.html | HTML | gpl-3.0 | 3,158 | [
30522,
1011,
1011,
1011,
2516,
1024,
1000,
1332,
29864,
29878,
1024,
1339,
29867,
29878,
29869,
29864,
29869,
1331,
1327,
29876,
29865,
29876,
29870,
29877,
29853,
1334,
29857,
29851,
29878,
1315,
29876,
2324,
1325,
29877,
29863,
1317,
29853,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
#!/bin/bash
source $(dirname $0)/test.inc.sh
po2flatxml --progress=none $one $out
check_results
| unho/translate | tests/cli/test_po2flatxml.sh | Shell | gpl-2.0 | 98 | [
30522,
1001,
999,
1013,
8026,
1013,
24234,
3120,
1002,
1006,
16101,
18442,
1002,
1014,
1007,
1013,
3231,
1012,
4297,
1012,
14021,
13433,
2475,
10258,
4017,
2595,
19968,
1011,
1011,
5082,
1027,
3904,
1002,
2028,
1002,
2041,
4638,
1035,
3463,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.