repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
tianbymy/cms
app/models/infodeploy/wordage.rb
2400
# -*- coding: utf-8 -*- module Infodeploy class Wordage include Mongoid::Document include Mongoid::Timestamps field :title, :type => String field :content, :type => String field :author field :keyword field :overview field :permission field :deploy_type,:type => Integer field :deploy_start,:type => Time field :deploy_end,:type => Time field :image field :kinds field :article_id field :attachment field :video mount_uploader :attachment, AttachmentUploader mount_uploader :image, ImageUploader mount_uploader :video, VideoUploader validates_presence_of :title,:author,:keyword,:overview, :message => "不能为空" def get_kinds marked if self[:kinds] != nil if self[:kinds].include?(marked.to_s) then {:checked => true} end end end scope :get_by_like_attribute,(lambda do |attribute,value| where(attribute => /#{value}/) end) scope :search,(lambda do |value| any_of({:title => /#{value}/}, {:content => /#{value}/}, {:author => /#{value}/}, {:overview => /#{value}/} ) end) def make attribute self[:kinds]=attribute[:kinds] Slide.save_picture(attribute[:slide],self[:article_id]) self end def view_title view_count if self[:title].length <= 17 self[:title] else self[:title][0,view_count]+"..." end end def make_kinds_name if self[:kinds] != nil kinds="" Property.all.each do |p| if self[:kinds].include?(p.marked) kinds+=p.name+"," end end kinds[0,(kinds.length-1)] end end def out_of_date now_time=Time.now.strftime('%Y-%m-%d %H:%M:%S').to_time.to_i return true if self[:deploy_type] == 1 return true if is_out_of_date_condition(self,now_time) false end def is_out_of_date_condition wordage,now_time wordage[:deploy_end].strftime('%Y-%m-%d %H:%M:%S').to_time.to_i >= now_time end def self.out_of_date_articles articles,result new_articles=Array.new articles.each do |article| wordage=Wordage.where(:article_id => article.id).first if wordage.out_of_date == result new_articles.push(article.id) end end new_articles end end end
mit
Avanet/CommunityEventsPlatform
Src/CommunityEvents.Api/Global.asax.cs
586
using System.Web.Http; using System.Web.Mvc; using System.Web.Optimization; using System.Web.Routing; namespace CommunityEvents.Api { public class WebApiApplication : System.Web.HttpApplication { protected void Application_Start() { AreaRegistration.RegisterAllAreas(); GlobalConfiguration.Configure(WebApiConfig.Register); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); } } }
mit
goncalvesjoao/rest_my_case
spec/rest_my_case/context/base_spec.rb
925
require 'spec_helper' describe RestMyCase::Context::Base do describe '#values_at' do let(:context) { described_class.new(one: 1, two: 2, three: 3) } context "no params are used" do it 'empty array should be returned' do expect(context.values_at).to eq [] end end context "when all of the params are known" do it 'all of the values should be returned' do expect(context.values_at(:one, :two, :three)).to eq [1, 2, 3] end end context "when trying to extract less values then all of the known attributes" do it 'nil will be returned in the place of the unknown' do expect(context.values_at(:one, :two, :four)).to eq [1, 2, nil] end end context "when one of the params is not known" do it 'just the known values should be returned' do expect(context.values_at(:one, :two)).to eq [1, 2] end end end end
mit
ktan2020/legacy-automation
win/Lib/site-packages/wx-3.0-msw/wx/py/tests/testall.py
662
#!/usr/bin/env python __author__ = "Patrick K. O'Brien <pobrien@orbtech.com>" __cvsid__ = "$Id$" __revision__ = "$Revision$"[11:-2] import unittest import glob import os def suite(): """Return a test suite containing all test cases in all test modules. Searches the current directory for any modules matching test_*.py.""" suite = unittest.TestSuite() for filename in glob.glob('test_*.py'): module = __import__(os.path.splitext(filename)[0]) suite.addTest(unittest.defaultTestLoader.loadTestsFromModule(module)) return suite if __name__ == '__main__': unittest.main(defaultTest='suite')
mit
adrianomota/design-patterns
src/DesignPattern/Command.Core/Commands/NoCommand.cs
168
using Command.Core.Contract; namespace Command.Core.Commands { public class NoCommand : ICommand { public void Execute() { } } }
mit
stamhe/Honorcoin
src/qt/bitcoinstrings.cpp
13148
#include <QtGlobal> // Automatically generated by extract_strings.py #ifdef __GNUC__ #define UNUSED __attribute__((unused)) #else #define UNUSED #endif static const char UNUSED *bitcoin_strings[] = {QT_TRANSLATE_NOOP("bitcoin-core", "To use the %s option"), QT_TRANSLATE_NOOP("bitcoin-core", "" "%s, you must set a rpcpassword in the configuration file:\n" " %s\n" "It is recommended you use the following random password:\n" "rpcuser=Honorcoinrpc\n" "rpcpassword=%s\n" "(you do not need to remember this password)\n" "The username and password MUST NOT be the same.\n" "If the file does not exist, create it with owner-readable-only file " "permissions.\n" "It is also recommended to set alertnotify so you are notified of problems;\n" "for example: alertnotify=echo %%s | mail -s \"Honorcoin Alert\" admin@foo." "com\n"), QT_TRANSLATE_NOOP("bitcoin-core", "Error"), QT_TRANSLATE_NOOP("bitcoin-core", "" "An error occurred while setting up the RPC port %u for listening on IPv6, " "falling back to IPv4: %s"), QT_TRANSLATE_NOOP("bitcoin-core", "" "An error occurred while setting up the RPC port %u for listening on IPv4: %s"), QT_TRANSLATE_NOOP("bitcoin-core", "" "You must set rpcpassword=<password> in the configuration file:\n" "%s\n" "If the file does not exist, create it with owner-readable-only file " "permissions."), QT_TRANSLATE_NOOP("bitcoin-core", "Honorcoin version"), QT_TRANSLATE_NOOP("bitcoin-core", "Usage:"), QT_TRANSLATE_NOOP("bitcoin-core", "Send command to -server or Honorcoind"), QT_TRANSLATE_NOOP("bitcoin-core", "List commands"), QT_TRANSLATE_NOOP("bitcoin-core", "Get help for a command"), QT_TRANSLATE_NOOP("bitcoin-core", "Honorcoin"), QT_TRANSLATE_NOOP("bitcoin-core", "Options:"), QT_TRANSLATE_NOOP("bitcoin-core", "This help message"), QT_TRANSLATE_NOOP("bitcoin-core", "Specify configuration file (default: Honorcoin.conf)"), QT_TRANSLATE_NOOP("bitcoin-core", "Specify pid file (default: Honorcoind.pid)"), QT_TRANSLATE_NOOP("bitcoin-core", "Specify data directory"), QT_TRANSLATE_NOOP("bitcoin-core", "Specify wallet file (within data directory)"), QT_TRANSLATE_NOOP("bitcoin-core", "Set database cache size in megabytes (default: 25)"), QT_TRANSLATE_NOOP("bitcoin-core", "Set database disk log size in megabytes (default: 100)"), QT_TRANSLATE_NOOP("bitcoin-core", "Specify connection timeout in milliseconds (default: 5000)"), QT_TRANSLATE_NOOP("bitcoin-core", "Connect through socks proxy"), QT_TRANSLATE_NOOP("bitcoin-core", "Select the version of socks proxy to use (4-5, default: 5)"), QT_TRANSLATE_NOOP("bitcoin-core", "Use proxy to reach tor hidden services (default: same as -proxy)"), QT_TRANSLATE_NOOP("bitcoin-core", "Allow DNS lookups for -addnode, -seednode and -connect"), QT_TRANSLATE_NOOP("bitcoin-core", "Listen for connections on <port> (default: 15714 or testnet: 25714)"), QT_TRANSLATE_NOOP("bitcoin-core", "Maintain at most <n> connections to peers (default: 125)"), QT_TRANSLATE_NOOP("bitcoin-core", "Add a node to connect to and attempt to keep the connection open"), QT_TRANSLATE_NOOP("bitcoin-core", "Connect only to the specified node(s)"), QT_TRANSLATE_NOOP("bitcoin-core", "Connect to a node to retrieve peer addresses, and disconnect"), QT_TRANSLATE_NOOP("bitcoin-core", "Specify your own public address"), QT_TRANSLATE_NOOP("bitcoin-core", "Only connect to nodes in network <net> (IPv4, IPv6 or Tor)"), QT_TRANSLATE_NOOP("bitcoin-core", "Discover own IP address (default: 1 when listening and no -externalip)"), QT_TRANSLATE_NOOP("bitcoin-core", "Find peers using internet relay chat (default: 0)"), QT_TRANSLATE_NOOP("bitcoin-core", "Accept connections from outside (default: 1 if no -proxy or -connect)"), QT_TRANSLATE_NOOP("bitcoin-core", "Bind to given address. Use [host]:port notation for IPv6"), QT_TRANSLATE_NOOP("bitcoin-core", "Find peers using DNS lookup (default: 1)"), QT_TRANSLATE_NOOP("bitcoin-core", "Stake your coins to support network and gain reward (default: 1)"), QT_TRANSLATE_NOOP("bitcoin-core", "" "Sync time with other nodes. Disable if time on your system is precise e.g. " "syncing with NTP (default: 1)"), QT_TRANSLATE_NOOP("bitcoin-core", "Sync checkpoints policy (default: strict)"), QT_TRANSLATE_NOOP("bitcoin-core", "Threshold for disconnecting misbehaving peers (default: 100)"), QT_TRANSLATE_NOOP("bitcoin-core", "" "Number of seconds to keep misbehaving peers from reconnecting (default: " "86400)"), QT_TRANSLATE_NOOP("bitcoin-core", "Maximum per-connection receive buffer, <n>*1000 bytes (default: 5000)"), QT_TRANSLATE_NOOP("bitcoin-core", "Maximum per-connection send buffer, <n>*1000 bytes (default: 1000)"), QT_TRANSLATE_NOOP("bitcoin-core", "Use UPnP to map the listening port (default: 1 when listening)"), QT_TRANSLATE_NOOP("bitcoin-core", "Use UPnP to map the listening port (default: 0)"), QT_TRANSLATE_NOOP("bitcoin-core", "" "Detach block and address databases. Increases shutdown time (default: 0)"), QT_TRANSLATE_NOOP("bitcoin-core", "Fee per KB to add to transactions you send"), QT_TRANSLATE_NOOP("bitcoin-core", "" "When creating transactions, ignore inputs with value less than this " "(default: 0.01)"), QT_TRANSLATE_NOOP("bitcoin-core", "Accept command line and JSON-RPC commands"), QT_TRANSLATE_NOOP("bitcoin-core", "Run in the background as a daemon and accept commands"), QT_TRANSLATE_NOOP("bitcoin-core", "Use the test network"), QT_TRANSLATE_NOOP("bitcoin-core", "Output extra debugging information. Implies all other -debug* options"), QT_TRANSLATE_NOOP("bitcoin-core", "Output extra network debugging information"), QT_TRANSLATE_NOOP("bitcoin-core", "Prepend debug output with timestamp"), QT_TRANSLATE_NOOP("bitcoin-core", "Shrink debug.log file on client startup (default: 1 when no -debug)"), QT_TRANSLATE_NOOP("bitcoin-core", "Send trace/debug info to console instead of debug.log file"), QT_TRANSLATE_NOOP("bitcoin-core", "Send trace/debug info to debugger"), QT_TRANSLATE_NOOP("bitcoin-core", "Username for JSON-RPC connections"), QT_TRANSLATE_NOOP("bitcoin-core", "Password for JSON-RPC connections"), QT_TRANSLATE_NOOP("bitcoin-core", "" "Listen for JSON-RPC connections on <port> (default: 15715 or testnet: 25715)"), QT_TRANSLATE_NOOP("bitcoin-core", "Allow JSON-RPC connections from specified IP address"), QT_TRANSLATE_NOOP("bitcoin-core", "Send commands to node running on <ip> (default: 127.0.0.1)"), QT_TRANSLATE_NOOP("bitcoin-core", "" "Execute command when the best block changes (%s in cmd is replaced by block " "hash)"), QT_TRANSLATE_NOOP("bitcoin-core", "" "Execute command when a wallet transaction changes (%s in cmd is replaced by " "TxID)"), QT_TRANSLATE_NOOP("bitcoin-core", "Require a confirmations for change (default: 0)"), QT_TRANSLATE_NOOP("bitcoin-core", "" "Enforce transaction scripts to use canonical PUSH operators (default: 1)"), QT_TRANSLATE_NOOP("bitcoin-core", "" "Execute command when a relevant alert is received (%s in cmd is replaced by " "message)"), QT_TRANSLATE_NOOP("bitcoin-core", "Upgrade wallet to latest format"), QT_TRANSLATE_NOOP("bitcoin-core", "Set key pool size to <n> (default: 100)"), QT_TRANSLATE_NOOP("bitcoin-core", "Rescan the block chain for missing wallet transactions"), QT_TRANSLATE_NOOP("bitcoin-core", "Attempt to recover private keys from a corrupt wallet.dat"), QT_TRANSLATE_NOOP("bitcoin-core", "How many blocks to check at startup (default: 2500, 0 = all)"), QT_TRANSLATE_NOOP("bitcoin-core", "How thorough the block verification is (0-6, default: 1)"), QT_TRANSLATE_NOOP("bitcoin-core", "Imports blocks from external blk000?.dat file"), QT_TRANSLATE_NOOP("bitcoin-core", "Block creation options:"), QT_TRANSLATE_NOOP("bitcoin-core", "Set minimum block size in bytes (default: 0)"), QT_TRANSLATE_NOOP("bitcoin-core", "Set maximum block size in bytes (default: 250000)"), QT_TRANSLATE_NOOP("bitcoin-core", "" "Set maximum size of high-priority/low-fee transactions in bytes (default: " "27000)"), QT_TRANSLATE_NOOP("bitcoin-core", "SSL options: (see the Bitcoin Wiki for SSL setup instructions)"), QT_TRANSLATE_NOOP("bitcoin-core", "Use OpenSSL (https) for JSON-RPC connections"), QT_TRANSLATE_NOOP("bitcoin-core", "Server certificate file (default: server.cert)"), QT_TRANSLATE_NOOP("bitcoin-core", "Server private key (default: server.pem)"), QT_TRANSLATE_NOOP("bitcoin-core", "" "Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:" "@STRENGTH)"), QT_TRANSLATE_NOOP("bitcoin-core", "Invalid amount for -paytxfee=<amount>: '%s'"), QT_TRANSLATE_NOOP("bitcoin-core", "" "Warning: -paytxfee is set very high! This is the transaction fee you will " "pay if you send a transaction."), QT_TRANSLATE_NOOP("bitcoin-core", "Invalid amount for -mininput=<amount>: '%s'"), QT_TRANSLATE_NOOP("bitcoin-core", "Wallet %s resides outside data directory %s."), QT_TRANSLATE_NOOP("bitcoin-core", "" "Cannot obtain a lock on data directory %s. Honorcoin is probably already " "running."), QT_TRANSLATE_NOOP("bitcoin-core", "Verifying database integrity..."), QT_TRANSLATE_NOOP("bitcoin-core", "" "Error initializing database environment %s! To recover, BACKUP THAT " "DIRECTORY, then remove everything from it except for wallet.dat."), QT_TRANSLATE_NOOP("bitcoin-core", "" "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."), QT_TRANSLATE_NOOP("bitcoin-core", "wallet.dat corrupt, salvage failed"), QT_TRANSLATE_NOOP("bitcoin-core", "Unknown -socks proxy version requested: %i"), QT_TRANSLATE_NOOP("bitcoin-core", "Unknown network specified in -onlynet: '%s'"), QT_TRANSLATE_NOOP("bitcoin-core", "Invalid -proxy address: '%s'"), QT_TRANSLATE_NOOP("bitcoin-core", "Invalid -tor address: '%s'"), QT_TRANSLATE_NOOP("bitcoin-core", "Cannot resolve -bind address: '%s'"), QT_TRANSLATE_NOOP("bitcoin-core", "Failed to listen on any port. Use -listen=0 if you want this."), QT_TRANSLATE_NOOP("bitcoin-core", "Cannot resolve -externalip address: '%s'"), QT_TRANSLATE_NOOP("bitcoin-core", "Invalid amount for -reservebalance=<amount>"), QT_TRANSLATE_NOOP("bitcoin-core", "Unable to sign checkpoint, wrong checkpointkey?\n"), QT_TRANSLATE_NOOP("bitcoin-core", "Loading block index..."), QT_TRANSLATE_NOOP("bitcoin-core", "Error loading blkindex.dat"), QT_TRANSLATE_NOOP("bitcoin-core", "Loading wallet..."), QT_TRANSLATE_NOOP("bitcoin-core", "Error loading wallet.dat: Wallet corrupted"), QT_TRANSLATE_NOOP("bitcoin-core", "" "Warning: error reading wallet.dat! All keys read correctly, but transaction " "data or address book entries might be missing or incorrect."), QT_TRANSLATE_NOOP("bitcoin-core", "Error loading wallet.dat: Wallet requires newer version of Honorcoin"), QT_TRANSLATE_NOOP("bitcoin-core", "Wallet needed to be rewritten: restart Honorcoin to complete"), QT_TRANSLATE_NOOP("bitcoin-core", "Error loading wallet.dat"), QT_TRANSLATE_NOOP("bitcoin-core", "Cannot downgrade wallet"), QT_TRANSLATE_NOOP("bitcoin-core", "Cannot initialize keypool"), QT_TRANSLATE_NOOP("bitcoin-core", "Cannot write default address"), QT_TRANSLATE_NOOP("bitcoin-core", "Rescanning..."), QT_TRANSLATE_NOOP("bitcoin-core", "Importing blockchain data file."), QT_TRANSLATE_NOOP("bitcoin-core", "Importing bootstrap blockchain data file."), QT_TRANSLATE_NOOP("bitcoin-core", "Loading addresses..."), QT_TRANSLATE_NOOP("bitcoin-core", "Error: could not start node"), QT_TRANSLATE_NOOP("bitcoin-core", "Done loading"), QT_TRANSLATE_NOOP("bitcoin-core", "" "Unable to bind to %s on this computer. Honorcoin is probably already running."), QT_TRANSLATE_NOOP("bitcoin-core", "Unable to bind to %s on this computer (bind returned error %d, %s)"), QT_TRANSLATE_NOOP("bitcoin-core", "Error: Wallet locked, unable to create transaction "), QT_TRANSLATE_NOOP("bitcoin-core", "Error: Wallet unlocked for staking only, unable to create transaction."), QT_TRANSLATE_NOOP("bitcoin-core", "" "Error: This transaction requires a transaction fee of at least %s because of " "its amount, complexity, or use of recently received funds "), QT_TRANSLATE_NOOP("bitcoin-core", "Error: Transaction creation failed "), QT_TRANSLATE_NOOP("bitcoin-core", "Sending..."), QT_TRANSLATE_NOOP("bitcoin-core", "" "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."), QT_TRANSLATE_NOOP("bitcoin-core", "Invalid amount"), QT_TRANSLATE_NOOP("bitcoin-core", "Insufficient funds"), QT_TRANSLATE_NOOP("bitcoin-core", "" "Warning: Please check that your computer's date and time are correct! If " "your clock is wrong Honorcoin will not work properly."), QT_TRANSLATE_NOOP("bitcoin-core", "Warning: This version is obsolete, upgrade required!"), QT_TRANSLATE_NOOP("bitcoin-core", "WARNING: syncronized checkpoint violation detected, but skipped!"), QT_TRANSLATE_NOOP("bitcoin-core", "Warning: Disk space is low!"), QT_TRANSLATE_NOOP("bitcoin-core", "" "WARNING: Invalid checkpoint found! Displayed transactions may not be " "correct! You may need to upgrade, or notify developers."), };
mit
xiamidaxia/zz
utils/fontDetect.js
3470
/** * 浏览器字体检测 * !!只支持支持 canvas 对象的浏览器 * !!默认字体的检测不可靠,可能返回错误结果 * * @author by xuhaiqiang * @date 2013-06-22 * * 不同字体渲染出来的图形是不一样的 * 浏览器将依次使用指定的字体来渲染图像。当指定的字体不存在时,浏览器使用默认字体 * 如果指定的字体渲染出来后和默认(备用)字体一样,则可以认为指定的字体不存在 * * 为了检测不同文字(中文/英文/...),需要多个实例 * * var fontDetect = new FontDetect(opts) * @param opts{ * defaultFont: '宋体', // 检测时用的参照字体 * testString: '木', // 渲染时用的文本 * fontSize: '12px', // 渲染时用的字体大小 * width: 100, // 画布宽度 * height: 100 // 画面高度 * } * */ define(function(require){ var objs = require('zz/utils/objs'), defaultModes = []; try{ var cv = document.createElement('canvas'), ctx = cv.getContext('2d'), defaultOpts = { fontSize:'12px', defaultFont:'宋体', testString:'木', width:100, height:100 }; }catch(e){ throw new Error('当前浏览器不支持 canvas 对象!'); } function FontDetect(opts){ objs.extend(this,defaultOpts,opts); this.defaultMode = this.getFontMode(this.defaultFont); } /** * 检测多个字体 */ function detectFonts(fonts){ fonts = fonts.split? fonts.split(','): fonts; var validFont = [], invalidFont = []; } /** * 检测字体 * @param fontName {String} * @param callback {function || Ignore} */ function detect(fontName,callback){ if(fontName === this.defaultFont){ return this.detectDefaultFont(defaultModes); } var mode = this.getFontMode(fontName), ret = mode !== this.defaultMode; return callback ? callback.call(this,fontName,ret) : ret; } /** * 使用预置数据检测默认字体 * @param modes {Array} */ function detectDefaultFont(modes){ var mode, i, defMode = this.defaultMode; for(i=modes.length;i--;){ mode = modes[i]; if(mode===defMode || mode&&mode.data===defMode){ return mode; } } return false; } /** * 获取渲染图形 * @param fontName {String} */ function getFontMode(fontName){ cv.width = this.width; cv.height = this.height; ctx.textAlign = 'left'; ctx.textBaseline = 'top'; ctx.font = this.fontSize+' '+ fontName+','+ this.defaultFont; ctx.fillText(this.testString,0,0); // todo 在(0,0)位置可能因为对齐方式而取不到完全内容 // todo 使用自动收缩程序收缩图像,裁剪空白部分 return cv.toDataURL(); } FontDetect.prototype = { constructor:FontDetect, detect:detect, detectDefaultFont:detectDefaultFont, getFontMode:getFontMode }; return FontDetect; });
mit
marciojrtorres/fds-2015-2
rails/cobaia/app/models/usuario.rb
296
class Usuario < ActiveRecord::Base has_many :compromissos # Include default devise modules. Others available are: # :confirmable, :lockable, :timeoutable and :omniauthable devise :database_authenticatable, :registerable, :recoverable, :rememberable, :trackable, :validatable end
mit
petebacondarwin/dgeni-packages
jsdoc/tag-defs/license.js
307
var spdxLicenseList = require('spdx-license-list/spdx-full'); module.exports = function() { return { name: 'license', transforms: function(doc, tagName, value) { if (spdxLicenseList[value]) { doc.licenseDescription = spdxLicenseList[value]; } return value; } }; };
mit
NottingHack/hms2
app/HMS/Entities/Gatekeeper/ZoneOccupant.php
1177
<?php namespace HMS\Entities\Gatekeeper; use Carbon\Carbon; use HMS\Entities\User; class ZoneOccupant { /** * @var User */ protected $user; /** * @var Zone */ protected $zone; /** * @var Carbon */ protected $timeEntered; /** * @return User */ public function getUser() { return $this->user; } /** * @return Zone */ public function getZone() { return $this->zone; } /** * @return Carbon */ public function getTimeEntered() { return $this->timeEntered; } /** * @param User $user * * @return self */ public function setUser(User $user) { $this->user = $user; return $this; } /** * @param Zone $zone * * @return self */ public function setZone(Zone $zone) { $this->zone = $zone; return $this; } /** * @param Carbon $timeEntered * * @return self */ public function setTimeEntered(Carbon $timeEntered) { $this->timeEntered = $timeEntered; return $this; } }
mit
edgecase/spotbox
app/assets/javascripts/views/users.js
965
Spotbox.UsersView = Ember.View.extend({ templateName: "users", classNames: ["users"], itemView: Ember.View.extend({ classNameBindings: ["vote"], iconView: Ember.View.extend({ tagName: "i", classNameBindings: ["icon", "kind"], setClassName: function() { var user = this.getPath("parentView.content"); var vote = Spotbox.router.usersController.getPath("votes." + user.id); if (vote === "up") { this.setPath("parentView.vote", "like"); this.set("icon", "icon-plus-sign"); } else if (vote === "down") { this.setPath("parentView.vote", "dislike"); this.set("icon", "icon-minus-sign"); } else { this.setPath("parentView.vote", "no-vote"); this.set("icon", "icon-question-sign"); } }.observes("parentView.parentView.controller.votes"), didInsertElement: function() { this.setClassName(); } }) }) });
mit
little-dude/xi-tui
src/widgets/view/client.rs
2509
use futures::Future; use tokio::spawn; use xrl; pub struct Client { inner: xrl::Client, view_id: xrl::ViewId, } impl Client { pub fn new(client: xrl::Client, view_id: xrl::ViewId) -> Self { Client { inner: client, view_id, } } pub fn insert(&mut self, character: char) { let f = self.inner.char(self.view_id, character).map_err(|_| ()); spawn(f); } pub fn insert_newline(&mut self) { let f = self.inner.insert_newline(self.view_id).map_err(|_| ()); spawn(f); } pub fn insert_tab(&mut self) { let f = self.inner.insert_tab(self.view_id).map_err(|_| ()); spawn(f); } pub fn scroll(&mut self, start: u64, end: u64) { let f = self.inner.scroll(self.view_id, start, end).map_err(|_| ()); spawn(f); } pub fn down(&mut self) { let f = self.inner.down(self.view_id).map_err(|_| ()); spawn(f); } pub fn up(&mut self) { let f = self.inner.up(self.view_id).map_err(|_| ()); spawn(f); } pub fn right(&mut self) { let f = self.inner.right(self.view_id).map_err(|_| ()); spawn(f); } pub fn left(&mut self) { let f = self.inner.left(self.view_id).map_err(|_| ()); spawn(f); } pub fn page_down(&mut self) { let f = self.inner.page_down(self.view_id).map_err(|_| ()); spawn(f); } pub fn page_up(&mut self) { let f = self.inner.page_up(self.view_id).map_err(|_| ()); spawn(f); } pub fn home(&mut self) { let f = self.inner.line_start(self.view_id).map_err(|_| ()); spawn(f); } pub fn end(&mut self) { let f = self.inner.line_end(self.view_id).map_err(|_| ()); spawn(f); } pub fn delete(&mut self) { let f = self.inner.delete(self.view_id).map_err(|_| ()); spawn(f); } pub fn backspace(&mut self) { let f = self.inner.backspace(self.view_id).map_err(|_| ()); spawn(f); } pub fn save(&mut self, file: &str) { let f = self.inner.save(self.view_id, file).map_err(|_| ()); spawn(f); } pub fn click(&mut self, line: u64, column: u64) { let f = self.inner.click(self.view_id, line, column).map_err(|_| ()); spawn(f); } pub fn drag(&mut self, line: u64, column: u64) { let f = self.inner.drag(self.view_id, line, column).map_err(|_| ()); spawn(f); } }
mit
peercoin/peercoin
test/functional/test_framework/segwit_addr.py
4237
#!/usr/bin/env python3 # Copyright (c) 2017 Pieter Wuille # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Reference implementation for Bech32/Bech32m and segwit addresses.""" from enum import Enum CHARSET = "qpzry9x8gf2tvdw0s3jn54khce6mua7l" BECH32_CONST = 1 BECH32M_CONST = 0x2bc830a3 class Encoding(Enum): """Enumeration type to list the various supported encodings.""" BECH32 = 1 BECH32M = 2 def bech32_polymod(values): """Internal function that computes the Bech32 checksum.""" generator = [0x3b6a57b2, 0x26508e6d, 0x1ea119fa, 0x3d4233dd, 0x2a1462b3] chk = 1 for value in values: top = chk >> 25 chk = (chk & 0x1ffffff) << 5 ^ value for i in range(5): chk ^= generator[i] if ((top >> i) & 1) else 0 return chk def bech32_hrp_expand(hrp): """Expand the HRP into values for checksum computation.""" return [ord(x) >> 5 for x in hrp] + [0] + [ord(x) & 31 for x in hrp] def bech32_verify_checksum(hrp, data): """Verify a checksum given HRP and converted data characters.""" check = bech32_polymod(bech32_hrp_expand(hrp) + data) if check == BECH32_CONST: return Encoding.BECH32 elif check == BECH32M_CONST: return Encoding.BECH32M else: return None def bech32_create_checksum(encoding, hrp, data): """Compute the checksum values given HRP and data.""" values = bech32_hrp_expand(hrp) + data const = BECH32M_CONST if encoding == Encoding.BECH32M else BECH32_CONST polymod = bech32_polymod(values + [0, 0, 0, 0, 0, 0]) ^ const return [(polymod >> 5 * (5 - i)) & 31 for i in range(6)] def bech32_encode(encoding, hrp, data): """Compute a Bech32 or Bech32m string given HRP and data values.""" combined = data + bech32_create_checksum(encoding, hrp, data) return hrp + '1' + ''.join([CHARSET[d] for d in combined]) def bech32_decode(bech): """Validate a Bech32/Bech32m string, and determine HRP and data.""" if ((any(ord(x) < 33 or ord(x) > 126 for x in bech)) or (bech.lower() != bech and bech.upper() != bech)): return (None, None, None) bech = bech.lower() pos = bech.rfind('1') if pos < 1 or pos + 7 > len(bech) or len(bech) > 90: return (None, None, None) if not all(x in CHARSET for x in bech[pos+1:]): return (None, None, None) hrp = bech[:pos] data = [CHARSET.find(x) for x in bech[pos+1:]] encoding = bech32_verify_checksum(hrp, data) if encoding is None: return (None, None, None) return (encoding, hrp, data[:-6]) def convertbits(data, frombits, tobits, pad=True): """General power-of-2 base conversion.""" acc = 0 bits = 0 ret = [] maxv = (1 << tobits) - 1 max_acc = (1 << (frombits + tobits - 1)) - 1 for value in data: if value < 0 or (value >> frombits): return None acc = ((acc << frombits) | value) & max_acc bits += frombits while bits >= tobits: bits -= tobits ret.append((acc >> bits) & maxv) if pad: if bits: ret.append((acc << (tobits - bits)) & maxv) elif bits >= frombits or ((acc << (tobits - bits)) & maxv): return None return ret def decode(hrp, addr): """Decode a segwit address.""" encoding, hrpgot, data = bech32_decode(addr) if hrpgot != hrp: return (None, None) decoded = convertbits(data[1:], 5, 8, False) if decoded is None or len(decoded) < 2 or len(decoded) > 40: return (None, None) if data[0] > 16: return (None, None) if data[0] == 0 and len(decoded) != 20 and len(decoded) != 32: return (None, None) if (data[0] == 0 and encoding != Encoding.BECH32) or (data[0] != 0 and encoding != Encoding.BECH32M): return (None, None) return (data[0], decoded) def encode(hrp, witver, witprog): """Encode a segwit address.""" encoding = Encoding.BECH32 if witver == 0 else Encoding.BECH32M ret = bech32_encode(encoding, hrp, [witver] + convertbits(witprog, 8, 5)) if decode(hrp, ret) == (None, None): return None return ret
mit
PSkoczylas/Hotel
spec/rails_helper.rb
1244
# 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 'capybara/rails' require 'database_cleaner' require 'devise' ActiveRecord::Migration.maintain_test_schema! RSpec.configure do |config| config.include Devise::Test::ControllerHelpers, :type => :controller config.include FactoryGirl::Syntax::Methods config.fixture_path = "#{::Rails.root}/spec/fixtures" config.use_transactional_fixtures = true config.infer_spec_type_from_file_location! config.filter_rails_from_backtrace! config.before(:suite) do begin DatabaseCleaner.start FactoryGirl.lint ensure DatabaseCleaner.clean end end config.before(:suite) do DatabaseCleaner.clean_with(:truncation) end config.before(:each) do |example| DatabaseCleaner.strategy = example.metadata[:js] ? :truncation : :transaction DatabaseCleaner.start end config.after(:each) do DatabaseCleaner.clean end end
mit
bitcoin-solutions/multibit-hd
mbhd-swing/src/test/java/org/multibit/hd/ui/fest/requirements/trezor/create_wallet/CreateTrezorHardwareWalletColdStart_ro_RO_Requirements.java
1121
package org.multibit.hd.ui.fest.requirements.trezor.create_wallet; import com.google.common.collect.Maps; import org.fest.swing.fixture.FrameFixture; import org.multibit.hd.testing.hardware_wallet_fixtures.HardwareWalletFixture; import org.multibit.hd.ui.fest.use_cases.standard.welcome_select.WelcomeSelectLanguage_ro_RO_UseCase; import java.util.Map; /** * <p>FEST Swing UI test to provide:</p> * <ul> * <li>Exercise the responses to hardware wallet events before wallet unlock takes place</li> * </ul> * * @since 0.0.1 */ public class CreateTrezorHardwareWalletColdStart_ro_RO_Requirements extends BaseCreateTrezorHardwareWalletColdStartRequirements { public static void verifyUsing(FrameFixture window, HardwareWalletFixture hardwareWalletFixture) { Map<String, Object> parameters = Maps.newHashMap(); // Work through the language panel // Assign the ro_RO language new WelcomeSelectLanguage_ro_RO_UseCase(window).execute(parameters); // Hand over to the standard Trezor process verifyCreateTrezorHardwareWalletAfterLanguage(window, hardwareWalletFixture, parameters); } }
mit
tinaken-v/romancoin
src/qt/sendcoinsdialog.cpp
17901
#include "sendcoinsdialog.h" #include "ui_sendcoinsdialog.h" #include "init.h" #include "walletmodel.h" #include "addresstablemodel.h" #include "addressbookpage.h" #include "bitcoinunits.h" #include "addressbookpage.h" #include "optionsmodel.h" #include "sendcoinsentry.h" #include "guiutil.h" #include "askpassphrasedialog.h" #include "coincontrol.h" #include "coincontroldialog.h" #include <QMessageBox> #include <QLocale> #include <QTextDocument> #include <QScrollBar> #include <QClipboard> SendCoinsDialog::SendCoinsDialog(QWidget *parent) : QDialog(parent), ui(new Ui::SendCoinsDialog), model(0) { ui->setupUi(this); #ifdef Q_OS_MAC // Icons on push buttons are very uncommon on Mac ui->addButton->setIcon(QIcon()); ui->clearButton->setIcon(QIcon()); ui->sendButton->setIcon(QIcon()); #endif #if QT_VERSION >= 0x040700 /* Do not move this to the XML file, Qt before 4.7 will choke on it */ ui->lineEditCoinControlChange->setPlaceholderText(tr("Enter a Romancoin address (e.g. RomancoinfwYhBmGXcFP2Po1NpRUEiK8km2)")); #endif addEntry(); connect(ui->addButton, SIGNAL(clicked()), this, SLOT(addEntry())); connect(ui->clearButton, SIGNAL(clicked()), this, SLOT(clear())); // Coin Control ui->lineEditCoinControlChange->setFont(GUIUtil::bitcoinAddressFont()); connect(ui->pushButtonCoinControl, SIGNAL(clicked()), this, SLOT(coinControlButtonClicked())); connect(ui->checkBoxCoinControlChange, SIGNAL(stateChanged(int)), this, SLOT(coinControlChangeChecked(int))); connect(ui->lineEditCoinControlChange, SIGNAL(textEdited(const QString &)), this, SLOT(coinControlChangeEdited(const QString &))); // Coin Control: clipboard actions QAction *clipboardQuantityAction = new QAction(tr("Copy quantity"), this); QAction *clipboardAmountAction = new QAction(tr("Copy amount"), this); QAction *clipboardFeeAction = new QAction(tr("Copy fee"), this); QAction *clipboardAfterFeeAction = new QAction(tr("Copy after fee"), this); QAction *clipboardBytesAction = new QAction(tr("Copy bytes"), this); QAction *clipboardPriorityAction = new QAction(tr("Copy priority"), this); QAction *clipboardLowOutputAction = new QAction(tr("Copy low output"), this); QAction *clipboardChangeAction = new QAction(tr("Copy change"), this); connect(clipboardQuantityAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardQuantity())); connect(clipboardAmountAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardAmount())); connect(clipboardFeeAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardFee())); connect(clipboardAfterFeeAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardAfterFee())); connect(clipboardBytesAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardBytes())); connect(clipboardPriorityAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardPriority())); connect(clipboardLowOutputAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardLowOutput())); connect(clipboardChangeAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardChange())); ui->labelCoinControlQuantity->addAction(clipboardQuantityAction); ui->labelCoinControlAmount->addAction(clipboardAmountAction); ui->labelCoinControlFee->addAction(clipboardFeeAction); ui->labelCoinControlAfterFee->addAction(clipboardAfterFeeAction); ui->labelCoinControlBytes->addAction(clipboardBytesAction); ui->labelCoinControlPriority->addAction(clipboardPriorityAction); ui->labelCoinControlLowOutput->addAction(clipboardLowOutputAction); ui->labelCoinControlChange->addAction(clipboardChangeAction); fNewRecipientAllowed = true; } void SendCoinsDialog::setModel(WalletModel *model) { this->model = model; for(int i = 0; i < ui->entries->count(); ++i) { SendCoinsEntry *entry = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(i)->widget()); if(entry) { entry->setModel(model); } } if(model && model->getOptionsModel()) { setBalance(model->getBalance(), model->getStake(), model->getUnconfirmedBalance(), model->getImmatureBalance()); connect(model, SIGNAL(balanceChanged(qint64, qint64, qint64, qint64)), this, SLOT(setBalance(qint64, qint64, qint64, qint64))); connect(model->getOptionsModel(), SIGNAL(displayUnitChanged(int)), this, SLOT(updateDisplayUnit())); // Coin Control connect(model->getOptionsModel(), SIGNAL(displayUnitChanged(int)), this, SLOT(coinControlUpdateLabels())); connect(model->getOptionsModel(), SIGNAL(coinControlFeaturesChanged(bool)), this, SLOT(coinControlFeatureChanged(bool))); connect(model->getOptionsModel(), SIGNAL(transactionFeeChanged(qint64)), this, SLOT(coinControlUpdateLabels())); ui->frameCoinControl->setVisible(model->getOptionsModel()->getCoinControlFeatures()); coinControlUpdateLabels(); } } SendCoinsDialog::~SendCoinsDialog() { delete ui; } void SendCoinsDialog::on_sendButton_clicked() { QList<SendCoinsRecipient> recipients; bool valid = true; if(!model) return; for(int i = 0; i < ui->entries->count(); ++i) { SendCoinsEntry *entry = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(i)->widget()); if(entry) { if(entry->validate()) { recipients.append(entry->getValue()); } else { valid = false; } } } if(!valid || recipients.isEmpty()) { return; } // Format confirmation message QStringList formatted; foreach(const SendCoinsRecipient &rcp, recipients) { formatted.append(tr("<b>%1</b> to %2 (%3)").arg(BitcoinUnits::formatWithUnit(BitcoinUnits::BTC, rcp.amount), Qt::escape(rcp.label), rcp.address)); } fNewRecipientAllowed = false; QMessageBox::StandardButton retval = QMessageBox::question(this, tr("Confirm send coins"), tr("Are you sure you want to send %1?").arg(formatted.join(tr(" and "))), QMessageBox::Yes|QMessageBox::Cancel, QMessageBox::Cancel); if(retval != QMessageBox::Yes) { fNewRecipientAllowed = true; return; } WalletModel::UnlockContext ctx(model->requestUnlock()); if(!ctx.isValid()) { // Unlock wallet was cancelled fNewRecipientAllowed = true; return; } WalletModel::SendCoinsReturn sendstatus; if (!model->getOptionsModel() || !model->getOptionsModel()->getCoinControlFeatures()) sendstatus = model->sendCoins(recipients); else sendstatus = model->sendCoins(recipients, CoinControlDialog::coinControl); switch(sendstatus.status) { case WalletModel::InvalidAddress: QMessageBox::warning(this, tr("Send Coins"), tr("The recipient address is not valid, please recheck."), QMessageBox::Ok, QMessageBox::Ok); break; case WalletModel::InvalidAmount: QMessageBox::warning(this, tr("Send Coins"), tr("The amount to pay must be larger than 0."), QMessageBox::Ok, QMessageBox::Ok); break; case WalletModel::AmountExceedsBalance: QMessageBox::warning(this, tr("Send Coins"), tr("The amount exceeds your balance."), QMessageBox::Ok, QMessageBox::Ok); break; case WalletModel::AmountWithFeeExceedsBalance: QMessageBox::warning(this, tr("Send Coins"), tr("The total exceeds your balance when the %1 transaction fee is included."). arg(BitcoinUnits::formatWithUnit(BitcoinUnits::BTC, sendstatus.fee)), QMessageBox::Ok, QMessageBox::Ok); break; case WalletModel::DuplicateAddress: QMessageBox::warning(this, tr("Send Coins"), tr("Duplicate address found, can only send to each address once per send operation."), QMessageBox::Ok, QMessageBox::Ok); break; case WalletModel::TransactionCreationFailed: QMessageBox::warning(this, tr("Send Coins"), tr("Error: Transaction creation failed."), QMessageBox::Ok, QMessageBox::Ok); break; case WalletModel::TransactionCommitFailed: QMessageBox::warning(this, tr("Send Coins"), tr("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."), QMessageBox::Ok, QMessageBox::Ok); break; case WalletModel::Aborted: // User aborted, nothing to do break; case WalletModel::OK: accept(); CoinControlDialog::coinControl->UnSelectAll(); coinControlUpdateLabels(); break; } fNewRecipientAllowed = true; } void SendCoinsDialog::clear() { // Remove entries until only one left while(ui->entries->count()) { delete ui->entries->takeAt(0)->widget(); } addEntry(); updateRemoveEnabled(); ui->sendButton->setDefault(true); } void SendCoinsDialog::reject() { clear(); } void SendCoinsDialog::accept() { clear(); } SendCoinsEntry *SendCoinsDialog::addEntry() { SendCoinsEntry *entry = new SendCoinsEntry(this); entry->setModel(model); ui->entries->addWidget(entry); connect(entry, SIGNAL(removeEntry(SendCoinsEntry*)), this, SLOT(removeEntry(SendCoinsEntry*))); connect(entry, SIGNAL(payAmountChanged()), this, SLOT(coinControlUpdateLabels())); updateRemoveEnabled(); // Focus the field, so that entry can start immediately entry->clear(); entry->setFocus(); ui->scrollAreaWidgetContents->resize(ui->scrollAreaWidgetContents->sizeHint()); QCoreApplication::instance()->processEvents(); QScrollBar* bar = ui->scrollArea->verticalScrollBar(); if(bar) bar->setSliderPosition(bar->maximum()); return entry; } void SendCoinsDialog::updateRemoveEnabled() { // Remove buttons are enabled as soon as there is more than one send-entry bool enabled = (ui->entries->count() > 1); for(int i = 0; i < ui->entries->count(); ++i) { SendCoinsEntry *entry = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(i)->widget()); if(entry) { entry->setRemoveEnabled(enabled); } } setupTabChain(0); coinControlUpdateLabels(); } void SendCoinsDialog::removeEntry(SendCoinsEntry* entry) { delete entry; updateRemoveEnabled(); } QWidget *SendCoinsDialog::setupTabChain(QWidget *prev) { for(int i = 0; i < ui->entries->count(); ++i) { SendCoinsEntry *entry = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(i)->widget()); if(entry) { prev = entry->setupTabChain(prev); } } QWidget::setTabOrder(prev, ui->addButton); QWidget::setTabOrder(ui->addButton, ui->sendButton); return ui->sendButton; } void SendCoinsDialog::pasteEntry(const SendCoinsRecipient &rv) { if(!fNewRecipientAllowed) return; SendCoinsEntry *entry = 0; // Replace the first entry if it is still unused if(ui->entries->count() == 1) { SendCoinsEntry *first = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(0)->widget()); if(first->isClear()) { entry = first; } } if(!entry) { entry = addEntry(); } entry->setValue(rv); } bool SendCoinsDialog::handleURI(const QString &uri) { SendCoinsRecipient rv; // URI has to be valid if (GUIUtil::parseBitcoinURI(uri, &rv)) { CBitcoinAddress address(rv.address.toStdString()); if (!address.IsValid()) return false; pasteEntry(rv); return true; } return false; } void SendCoinsDialog::setBalance(qint64 balance, qint64 stake, qint64 unconfirmedBalance, qint64 immatureBalance) { Q_UNUSED(stake); Q_UNUSED(unconfirmedBalance); Q_UNUSED(immatureBalance); if(!model || !model->getOptionsModel()) return; int unit = model->getOptionsModel()->getDisplayUnit(); ui->labelBalance->setText(BitcoinUnits::formatWithUnit(unit, balance)); } void SendCoinsDialog::updateDisplayUnit() { if(model && model->getOptionsModel()) { // Update labelBalance with the current balance and the current unit ui->labelBalance->setText(BitcoinUnits::formatWithUnit(model->getOptionsModel()->getDisplayUnit(), model->getBalance())); } } // Coin Control: copy label "Quantity" to clipboard void SendCoinsDialog::coinControlClipboardQuantity() { QApplication::clipboard()->setText(ui->labelCoinControlQuantity->text()); } // Coin Control: copy label "Amount" to clipboard void SendCoinsDialog::coinControlClipboardAmount() { QApplication::clipboard()->setText(ui->labelCoinControlAmount->text().left(ui->labelCoinControlAmount->text().indexOf(" "))); } // Coin Control: copy label "Fee" to clipboard void SendCoinsDialog::coinControlClipboardFee() { QApplication::clipboard()->setText(ui->labelCoinControlFee->text().left(ui->labelCoinControlFee->text().indexOf(" "))); } // Coin Control: copy label "After fee" to clipboard void SendCoinsDialog::coinControlClipboardAfterFee() { QApplication::clipboard()->setText(ui->labelCoinControlAfterFee->text().left(ui->labelCoinControlAfterFee->text().indexOf(" "))); } // Coin Control: copy label "Bytes" to clipboard void SendCoinsDialog::coinControlClipboardBytes() { QApplication::clipboard()->setText(ui->labelCoinControlBytes->text()); } // Coin Control: copy label "Priority" to clipboard void SendCoinsDialog::coinControlClipboardPriority() { QApplication::clipboard()->setText(ui->labelCoinControlPriority->text()); } // Coin Control: copy label "Low output" to clipboard void SendCoinsDialog::coinControlClipboardLowOutput() { QApplication::clipboard()->setText(ui->labelCoinControlLowOutput->text()); } // Coin Control: copy label "Change" to clipboard void SendCoinsDialog::coinControlClipboardChange() { QApplication::clipboard()->setText(ui->labelCoinControlChange->text().left(ui->labelCoinControlChange->text().indexOf(" "))); } // Coin Control: settings menu - coin control enabled/disabled by user void SendCoinsDialog::coinControlFeatureChanged(bool checked) { ui->frameCoinControl->setVisible(checked); if (!checked && model) // coin control features disabled CoinControlDialog::coinControl->SetNull(); } // Coin Control: button inputs -> show actual coin control dialog void SendCoinsDialog::coinControlButtonClicked() { CoinControlDialog dlg; dlg.setModel(model); dlg.exec(); coinControlUpdateLabels(); } // Coin Control: checkbox custom change address void SendCoinsDialog::coinControlChangeChecked(int state) { if (model) { if (state == Qt::Checked) CoinControlDialog::coinControl->destChange = CBitcoinAddress(ui->lineEditCoinControlChange->text().toStdString()).Get(); else CoinControlDialog::coinControl->destChange = CNoDestination(); } ui->lineEditCoinControlChange->setEnabled((state == Qt::Checked)); ui->labelCoinControlChangeLabel->setEnabled((state == Qt::Checked)); } // Coin Control: custom change address changed void SendCoinsDialog::coinControlChangeEdited(const QString & text) { if (model) { CoinControlDialog::coinControl->destChange = CBitcoinAddress(text.toStdString()).Get(); // label for the change address ui->labelCoinControlChangeLabel->setStyleSheet("QLabel{color:black;}"); if (text.isEmpty()) ui->labelCoinControlChangeLabel->setText(""); else if (!CBitcoinAddress(text.toStdString()).IsValid()) { ui->labelCoinControlChangeLabel->setStyleSheet("QLabel{color:red;}"); ui->labelCoinControlChangeLabel->setText(tr("WARNING: Invalid Romancoin address")); } else { QString associatedLabel = model->getAddressTableModel()->labelForAddress(text); if (!associatedLabel.isEmpty()) ui->labelCoinControlChangeLabel->setText(associatedLabel); else { CPubKey pubkey; CKeyID keyid; CBitcoinAddress(text.toStdString()).GetKeyID(keyid); if (model->getPubKey(keyid, pubkey)) ui->labelCoinControlChangeLabel->setText(tr("(no label)")); else { ui->labelCoinControlChangeLabel->setStyleSheet("QLabel{color:red;}"); ui->labelCoinControlChangeLabel->setText(tr("WARNING: unknown change address")); } } } } } // Coin Control: update labels void SendCoinsDialog::coinControlUpdateLabels() { if (!model || !model->getOptionsModel() || !model->getOptionsModel()->getCoinControlFeatures()) return; // set pay amounts CoinControlDialog::payAmounts.clear(); for(int i = 0; i < ui->entries->count(); ++i) { SendCoinsEntry *entry = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(i)->widget()); if(entry) CoinControlDialog::payAmounts.append(entry->getValue().amount); } if (CoinControlDialog::coinControl->HasSelected()) { // actual coin control calculation CoinControlDialog::updateLabels(model, this); // show coin control stats ui->labelCoinControlAutomaticallySelected->hide(); ui->widgetCoinControl->show(); } else { // hide coin control stats ui->labelCoinControlAutomaticallySelected->show(); ui->widgetCoinControl->hide(); ui->labelCoinControlInsuffFunds->hide(); } }
mit
fetus-hina/stat.ink
views/fest/view.php
3864
<?php use app\components\widgets\AdWidget; use app\components\widgets\SnsWidget; use yii\helpers\Html; use yii\helpers\Json; use yii\web\View; $title = "フェス「{$fest->name}」の各チーム勝率"; $this->title = implode(' | ', [ Yii::$app->name, $title, ]); $this->registerMetaTag(['name' => 'twitter:card', 'content' => 'summary']); $this->registerMetaTag(['name' => 'twitter:title', 'content' => $title]); $this->registerMetaTag(['name' => 'twitter:description', 'content' => $title]); $this->registerMetaTag(['name' => 'twitter:site', 'content' => '@stat_ink']); ?> <div class="container"> <h1><?= Html::encode($title) ?></h1> <?= AdWidget::widget() . "\n" ?> <?= SnsWidget::widget() . "\n" ?> <p> <?= Html::encode(Yii::$app->name) ?>へ投稿されたデータからチームを推測し、勝率を計算したデータです。利用者の偏りから正確な勝率を表していません。 </p> <?php if ($fest->region->key === 'jp'): ?> <p> <a href="https://fest.ink/<?= Html::encode($fest->order) ?>"> 公式サイトから取得したデータを基に推測した勝率はイカフェスレートで確認できます。 </a> </p> <?php endif ?> <h2 id="rate"> 推定勝率: <span class="total-rate" data-team="alpha">取得中</span> VS <span class="total-rate" data-team="bravo">取得中</span> </h2> <p> <?= Html::encode($alpha->name) ?>チーム: <span class="total-rate" data-team="alpha">取得中</span>(サンプル数:<span class="sample-count" data-team="alpha">???</span>) </p> <div class="progress"> <div class="progress-bar progress-bar-danger progress-bar-striped total-progressbar" style="width:0%" data-team="alpha"> </div> </div> <p> <?= Html::encode($bravo->name) ?>チーム: <span class="total-rate" data-team="bravo">取得中</span>(サンプル数:<span class="sample-count" data-team="bravo">???</span>) </p> <div class="progress"> <div class="progress-bar progress-bar-success progress-bar-striped total-progressbar" style="width:0%" data-team="bravo"> </div> </div> </div> <?php if ($alpha->color_hue !== null) { $this->registerCss(sprintf( '.progress-bar[data-team="alpha"]{background-color:hsl(%d,67%%,48%%)}', $alpha->color_hue )); } if ($bravo->color_hue !== null) { $this->registerCss(sprintf( '.progress-bar[data-team="bravo"]{background-color:hsl(%d,67%%,48%%)}', $bravo->color_hue )); } $this->registerJs( sprintf( 'window.fest={start:new Date(%d*1000),end:new Date(%d*1000),data:%s};', strtotime($fest->start_at), strtotime($fest->end_at), Json::encode($results) ), View::POS_BEGIN ); $this->registerJs(<<<'JS' (function($, info) { var wins = { alpha: info.data.map(function(a){return a.alpha}).reduce(function(x,y){return x+y},0), bravo: info.data.map(function(a){return a.bravo}).reduce(function(x,y){return x+y},0), total: 0 }; wins.total = wins.alpha + wins.bravo; var wp = { alpha: wins.total > 0 ? wins.alpha * 100 / wins.total : Number.NaN, bravo: wins.total > 0 ? wins.bravo * 100 / wins.total : Number.NaN }; $('.total-rate').each(function(){ var v = wp[$(this).attr('data-team')]; console.log(v); if (v === undefined || Number.isNaN(v)) { $(this).text('???'); } else { $(this).text(v.toFixed(1) + '%'); } }); $('.sample-count').each(function(){ var v = wins[$(this).attr('data-team')]; if (v === undefined || Number.isNaN(v)) { $(this).text('???'); } else { $(this).text(v); } }); $('.total-progressbar').each(function(){ var v = wp[$(this).attr('data-team')]; if (v === undefined || Number.isNaN(v)) { $(this).css('width', 0); } else { $(this).css('width', v + '%'); } }); })(jQuery, window.fest); JS );
mit
will-hart/game-off-2016
Assets/Scripts/Systems/TacticalAiPlanningSystem.cs
3435
// /** // * AiPlanner.cs // * Will Hart // * 20161103 // */ //#define AI_DEBUG namespace GameGHJ.Systems { #region Dependencies using System; #if AI_DEBUG using System.Linq; #endif using UnityEngine; using GameGHJ.AI.Bundles; using GameGHJ.AI.Core; #endregion public class TacticalAiPlanningSystem : ZenBehaviour, IOnUpdate { /// <summary> /// Build context and periodically plan current action /// </summary> public void OnUpdate() { #if AI_DEBUG var planners = ZenBehaviourManager.Instance.Get<TacticalAiStateComp>(ComponentTypes.TacticalAiStateComp).ToList(); Debug.Log($"Planning actions for {planners.Count} entities"); #else // leave result as IEnumerable if we aren't debugging var planners = ZenBehaviourManager.Instance.Get<TacticalAiStateComp>(ComponentTypes.TacticalAiStateComp); #endif foreach (var planner in planners) { if (ErrorInCreatingActionContainer(planner)) continue; var context = new AiContext<TacticalAiStateComp>(planner.Owner); // run the action if (planner.Action != null) { planner.Action.Update(context); // check if the action is complete if (planner.Action.IsComplete) { planner.Action.OnExit(context); planner.Action = null; } } // only replan the ai if required if ((planner.Action != null) && (Time.time <= planner.NextAiPlanTime)) continue; // do not interrupt timed actions, let them run to completion if ((planner.Action != null) && planner.Action.IsTimed) continue; // if the action has changed, exit the previous action var newAction = planner.ActionContainer.GetActiveAction(context); if (newAction == planner.Action) continue; planner.Action?.OnExit(context); newAction.OnEnter(context); planner.Action = newAction; } } private static bool ErrorInCreatingActionContainer(TacticalAiStateComp planner) { if (planner.ActionContainer != null) return false; planner.ActionContainer = new AiActionContainer<TacticalAiStateComp>(); if (planner.Owner.HasComponent(ComponentTypes.CreepComp)) { planner.ActionContainer.AddBundle(new CreepAiBundle()); } else if (planner.Owner.HasComponent(ComponentTypes.HeroComp)) { planner.ActionContainer.AddBundle(new HeroAiBundle()); } else if (planner.Owner.HasComponent(ComponentTypes.TowerComp)) { planner.ActionContainer.AddBundle(new TowerAiBundle()); } else { Debug.LogWarning( $"Unable to select an appropriate AI bundle for entity {planner.Owner.EntityName}, ignoring"); return true; } return false; } public override int ExecutionPriority => 100; public override Type ObjectType => typeof(TacticalAiPlanningSystem); } }
mit
astropeak/aspk-code-base
python/aspk/text_test.py
400
import unittest from text import * class TextTest(unittest.TestCase): def test__is_title(self): s = 'This is a Title' self.assertTrue(is_title(s)) s = 'this is a title' self.assertFalse(is_title(s)) self.assertFalse(is_title('"Aaa"')) if __name__ == '__main__': suite = unittest.TestLoader().loadTestsFromTestCase(TextTest) unittest.TextTestRunner(verbosity=2).run(suite)
mit
malasiot/maplite
src/renderer/collision_checker.hpp
1606
#ifndef __COLLISION_CHECKER_H__ #define __COLLISION_CHECKER_H__ #include <vector> #include <cstdint> struct Vector2 { Vector2(): x(0), y(0) {} Vector2(double x_, double y_): x(x_), y(y_) {} friend Vector2 operator - ( const Vector2 &op1, const Vector2 &op2 ) { return Vector2(op1.x - op2.x, op1.y - op2.y) ; } friend Vector2 operator + ( const Vector2 &op1, const Vector2 &op2 ) { return Vector2(op1.x + op2.x, op1.y + op2.y) ; } Vector2 &operator /= (double s) { x /= s ; y /= s ; return *this ; } double squaredLength() const { return x * x + y * y ; } double dot(const Vector2 &other) const { return x * other.x + y * other.y ; } double x, y ; }; class OBB { public: OBB(double cx_, double cy_, double angle_, double width_, double height_) ; bool overlaps(const OBB& other) const ; private: void computeAxes() ; bool overlaps1Way(const OBB& other) const ; Vector2 corner[4]; Vector2 axis[2]; double origin[2]; double minx, miny, maxx, maxy ; }; class CollisionChecker { public: CollisionChecker() {} // check collision between given OBB and stored labels bool addLabelBox(double cx, double cy, double angle, double width, double height, int32_t id = -1, int32_t item = 0) ; bool addLabelBox(const std::vector<OBB> &boxes, int32_t id = -1, int32_t item = 0) ; private: struct Label { std::vector<OBB> boxes_ ; int32_t uid_, item_ ; }; std::vector<Label> labels_ ; }; #endif
mit
jonestimd/finances
src/main/java/io/github/jonestimd/finance/domain/transaction/TransactionGroup.java
4229
// The MIT License (MIT) // // Copyright (c) 2021 Tim Jones // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in all // copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. package io.github.jonestimd.finance.domain.transaction; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Lob; import javax.persistence.NamedQuery; import javax.persistence.SequenceGenerator; import javax.persistence.Table; import javax.persistence.UniqueConstraint; import com.google.common.base.Function; import io.github.jonestimd.finance.domain.BaseDomain; import org.hibernate.annotations.GenericGenerator; @Entity @Table(name="tx_group", uniqueConstraints={@UniqueConstraint(name = "tx_group_ak", columnNames={"name"})}) @SequenceGenerator(name="id_generator", sequenceName="tx_group_id_seq") @NamedQuery(name = TransactionGroup.SUMMARY_QUERY, query = "select g, (select count(distinct td.transaction) from TransactionDetail td where td.group = g) as useCount from TransactionGroup g") public class TransactionGroup extends BaseDomain<Long> implements Comparable<TransactionGroup> { public static final String SUMMARY_QUERY = "transactionGroup.getSummaries"; public static final String NAME = "name"; public static final String DESCRIPTION = "description"; public static final Function<TransactionGroup, String> GET_NAME = new Function<TransactionGroup, String>() { public String apply(TransactionGroup input) { return input.getName(); } }; @Id @GeneratedValue(strategy=GenerationType.AUTO, generator="id_generator") @GenericGenerator(name = "id_generator", strategy = "native") private Long id; @Column(name="name", nullable=false, length=50) private String name; @Lob @Column(name="description") private String description; public TransactionGroup() {} public TransactionGroup(long id) { this.id = id; } public TransactionGroup(String name, String description) { this.name = name; this.description = description; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public int hashCode() { return 31 + ((name == null) ? 0 : name.toUpperCase().hashCode()); } public boolean equals(Object obj) { if (this == obj) return true; if (obj == null || getClass() != obj.getClass()) return false; TransactionGroup that = (TransactionGroup) obj; if (name == null ? that.name != null : ! name.equalsIgnoreCase(that.name)) { return false; } return true; } public String toString() { return "Transaction Group (" + name + ")"; } public int compareTo(TransactionGroup that) { return that == null ? 1 : name.compareTo(that.name); } }
mit
thiar/dokumentasi_lfs
application/views/base/v_scripts_content.php
479
<script src="<?php echo base_url('public/semantic'); ?>/semantic.min.js"></script> <script type="text/javascript" charset="utf8" src="<?php echo base_url('public/semantic/components'); ?>/dropdown.min.js"></script> <?php if (isset($need_table) && $need_table){ ?> <script type="text/javascript" charset="utf8" src="<?php echo base_url('public/datatable/media'); ?>/js/jquery.dataTables.js"></script> <?php } ?> <script src="<?php echo base_url('public/js'); ?>/app.js"></script>
mit
mskog/broad
app/graphql/mutations/base_mutation.rb
190
module Mutations # This class is used as a parent for all mutations, and it is the place to have common utilities class BaseMutation < GraphQL::Schema::Mutation null false end end
mit
ukatama/nekotaku
src/browser/router.ts
195
import Vue from 'vue'; import VueRouter from 'vue-router'; import routes from './routes'; Vue.use(VueRouter); export default new VueRouter({ mode: 'history', base: __dirname, routes, });
mit
ivtpz/brancher
app/actions/linkedListActions.js
894
import { findNodeIndex } from '../utils/linkedListUtils'; const updateStructure = newState => { return { type: 'UPDATE_LIST_STRUCTURE', newState }; }; const highlightNode = (nodeValue, nodeId) => (dispatch, getState) => { const stateList = getState().linkedListData.present; const searchProp = Number.isInteger(nodeValue) ? 'value' : '_id'; const searchValue = Number.isInteger(nodeValue) ? nodeValue : nodeId; const nodeIndex = findNodeIndex(searchValue, stateList, searchProp); if (nodeIndex !== -1) { setTimeout(() => dispatch(unHighlightNode(nodeIndex)), getState().async.delay / 1.1); dispatch({ type: 'HIGHLIGHT_NODE', nodeIndex }); } }; const unHighlightNode = nodeIndex => ({ type: 'UNHIGHLIGHT_NODE', nodeIndex }); const resetList = () => ({ type: 'RESET_TO_DEFAULT' }); export default { updateStructure, highlightNode, unHighlightNode, resetList };
mit
AMVSoftware/Cake.Hosts
src/Cake.Hosts.Tests/TestsHostPathProvider.cs
253
using System.IO; namespace Cake.Hosts.Tests { public class TestsHostPathProvider : IHostsPathProvider { public string GetHostsFilePath() { return Directory.GetCurrentDirectory() + @"\testHosts"; } } }
mit
HenryLoenwind/AgriCraft
src/main/java/com/InfinityRaider/AgriCraft/compatibility/pneumaticcraft/PneumaticCraftHelper.java
2877
package com.InfinityRaider.AgriCraft.compatibility.pneumaticcraft; import com.InfinityRaider.AgriCraft.api.v1.BlockWithMeta; import com.InfinityRaider.AgriCraft.compatibility.ModHelper; import com.InfinityRaider.AgriCraft.farming.CropPlantHandler; import com.InfinityRaider.AgriCraft.farming.GrowthRequirementHandler; import com.InfinityRaider.AgriCraft.utility.exception.BlacklistedCropPlantException; import com.InfinityRaider.AgriCraft.utility.exception.DuplicateCropPlantException; import net.minecraft.block.Block; import net.minecraft.init.Blocks; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; public class PneumaticCraftHelper extends ModHelper { @Override @SuppressWarnings("unchecked") protected void initPlants() { Method getPlantsMethod = null; int maxMeta = 16; try { Class PC_SeedClass = Class.forName("pneumaticCraft.common.item.ItemPlasticPlants"); getPlantsMethod = PC_SeedClass.getMethod("getPlantBlockIDFromSeed", int.class); } catch (ClassNotFoundException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } for (int i = 0; i < maxMeta; i++) { try { assert getPlantsMethod != null; Block plant = (Block) getPlantsMethod.invoke(null, i); if(plant != null) { CropPlantPneumaticCraft cropPlant = new CropPlantPneumaticCraft(i, plant); CropPlantHandler.registerPlant(cropPlant); BlockWithMeta soil = null; switch(i) { case 0: soil = new BlockWithMeta(com.InfinityRaider.AgriCraft.init.Blocks.blockWaterPadFull); break; //squid plant: water case 5: soil = new BlockWithMeta(Blocks.end_stone); break; //end plant: end stone case 1: soil = new BlockWithMeta(Blocks.netherrack); break; //fire flower: netherrack case 11: soil = new BlockWithMeta(Blocks.netherrack); break; //helium plant: netherrack } if(soil != null) { GrowthRequirementHandler.getGrowthRequirement(cropPlant.getSeed().getItem(), cropPlant.getSeed().getItemDamage()).setSoil(soil); } } } catch (DuplicateCropPlantException e1) { e1.printStackTrace(); } catch (BlacklistedCropPlantException e2) { e2.printStackTrace(); } catch (InvocationTargetException e3) { e3.printStackTrace(); } catch (IllegalAccessException e4) { e4.printStackTrace(); } } } @Override protected String modId() { return "PneumaticCraft"; } }
mit
AngleSharp/AngleSharp.Css
src/AngleSharp.Css/Values/Functions/CssCalcValue.cs
1435
namespace AngleSharp.Css.Values { using AngleSharp.Css.Dom; using AngleSharp.Text; using System; /// <summary> /// Represents a CSS calculated value. /// </summary> sealed class CssCalcValue : ICssRawValue, ICssFunctionValue { #region Fields private readonly ICssValue _expression; #endregion #region ctor /// <summary> /// Creates a new calc function. /// </summary> /// <param name="expression">The argument to use.</param> public CssCalcValue(ICssValue expression) { _expression = expression; } #endregion #region Properties /// <summary> /// Gets the name of the function. /// </summary> public String Name => FunctionNames.Calc; /// <summary> /// Gets the raw value. /// </summary> public String Value => _expression.CssText; /// <summary> /// Gets the arguments. /// </summary> public ICssValue[] Arguments => new[] { _expression }; /// <summary> /// Gets the argument of the calc function. /// </summary> public ICssValue Expression => _expression; /// <summary> /// Gets the CSS text representation. /// </summary> public String CssText => Name.CssFunction(_expression.CssText); #endregion } }
mit
OrionNebula/jLacewing
src/net/lotrek/lacewing/server/ServerPacketActions.java
1321
package net.lotrek.lacewing.server; import net.lotrek.lacewing.server.structure.ServerChannel; import net.lotrek.lacewing.server.structure.ServerClient; public interface ServerPacketActions { public boolean onConnectRequest(ServerClient client); public String onSetNameRequest(ServerClient client, String newName); public String onJoinChannelRequest(ServerClient client, boolean hide, boolean close, String channelName); public boolean onLeaveChannelRequest(ServerClient client, ServerChannel channel); public boolean onChannelListRequest(ServerClient client); public void onBinaryServerMessage(ServerClient client, int subchannel, byte[] message); public void onBinaryChannelMessage(ServerClient client, ServerChannel channel, int subchannel, byte[] message); public void onBinaryPeerMessage(ServerClient from, ServerClient to, ServerChannel channel, int subchannel, byte[] message); public void onObjectServerMessage(ServerClient client, int subchannel, String json); public void onObjectChannelMessage(ServerClient client, ServerChannel channel, int subchannel, String json); public void onObjectPeerMessage(ServerClient from, ServerClient to, ServerChannel channel, int subchannel, String json); public boolean onKickPeerRequest(ServerClient client, ServerChannel channel, ServerClient toKick); }
mit
steffen-foerster/mgh
src/ch/giesserei/view/stellplatz/StellplatzViewController.java
1771
package ch.giesserei.view.stellplatz; import ch.giesserei.resource.AppRes; import ch.giesserei.service.ServiceLocator; import ch.giesserei.service.StellplatzService; import ch.giesserei.view.AbstractViewController; import com.google.inject.Inject; import com.vaadin.ui.Component; import com.vaadin.ui.Table; /** * Controller für die View {@link StellplatzView}. * * @author Steffen Förster */ public class StellplatzViewController extends AbstractViewController { private StellplatzService stellplatzService = ServiceLocator.getStellplatzService(); private StellplatzView view; /** * Konstruktor. */ @Inject public StellplatzViewController() { } @Override public Component createView() { this.view = new StellplatzView(); setData(); setActions(); return this.view; } @Override public StellplatzView getView() { return this.view; } // --------------------------------------------------------- // private section // --------------------------------------------------------- private void setData() { Table table = this.view.getTable(); table.setContainerDataSource(this.stellplatzService.getStellplaetze()); table.setVisibleColumns(new Object[]{"nummer", "sektor", "typ", "buttons"}); table.setColumnHeader("nummer", AppRes.getString("stellplatz.lb.nummer")); table.setColumnHeader("sector", AppRes.getString("stellplatz.lb.sektor")); table.setColumnHeader("typ", AppRes.getString("stellplatz.lb.typ")); table.setColumnHeader("buttons", ""); } private void setActions() { this.view.setEditAction(new EditAction(this)); this.view.setRemoveAction(new RemoveAction(this)); this.view.setAddAction(new AddAction(this)); } }
mit
edwise/java-pocs
springbootseries-integrationtests/src/main/java/com/edwise/springbootseries/integrationtests/Application.java
336
package com.edwise.springbootseries.integrationtests; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class Application { public static void main(String[] args) { SpringApplication.run(Application.class, args); } }
mit
lzrgibson/ueaac
public/javascripts/ueaac.js
171
Ext.application({ name: 'Ueaac', appFolder: 'javascripts/ueaac/app', autoCreateViewport: true, models: [], stores: [], controllers: [] });
mit
Bojo966/SoftUni-JS-Fundamentals
Strings-and-Regex/ends-with-give-substring.js
111
function endsWithSubstring(inputString, substring) { console.log(String(inputString).endsWith(substring)) }
mit
jeroeningen/acts_as_price
spec/advanced_tests/car_spec.rb
1602
require File.expand_path("../../spec_helper", __FILE__) describe Car do before(:each) do @column_name = :price @acts_as_price_model = stub_model(Car, :brand => "Ford", :cartype => "Stationwagon", :model => "Focus", :price => "23995,99") end context "return the price" do it "should return the price in cents" do columns_in_cents.each do |column| @acts_as_price_model.send(column).should == 2399599 end end it "should return the price seperated by a comma" do columns_in_doubles.each do |column| @acts_as_price_model.send(column).should == "EUR. 23995,99" end end end context "set the price for hundred different prices to test if you got no floating point problems" do 2200000.upto(2200099) do |i| it "should set the price in cents and return it correctly (seperated by comma)" do test_setter_in_cents i.to_s, "," end it "should set the price and return it correctly (seperated by comma)" do test_setter_in_doubles sprintf("%.2f", i.to_f / 100).gsub(".", ","), "," end end end context "given a float as price" do it "should convert it to the right price in cents" do test_setter_in_doubles "EUR. 25500,5", "," test_setter_in_doubles "EUR. 21599,05", "," test_setter_in_doubles "EUR. 21599,055", "," test_setter_in_doubles "EUR. 21599,054", "," end end context "given the price is zero" do it "should return an empty price per liter" do test_setter_in_cents "", "," test_setter_in_doubles "", "," end end end
mit
ovation22/PragmaticTDD
Pragmatic.TDD.Web/App_Start/AutofacConfig.cs
1584
using System.Data.Entity; using System.Reflection; using System.Web.Mvc; using Autofac; using Autofac.Integration.Mvc; using Pragmatic.TDD.Models; using Pragmatic.TDD.Repositories; using Pragmatic.TDD.Repositories.Interfaces; using Pragmatic.TDD.Services; using Pragmatic.TDD.Services.Interfaces; using Pragmatic.TDD.Web.Interfaces; using Pragmatic.TDD.Web.Mappers; namespace Pragmatic.TDD.Web { public static class AutofacConfig { private static ContainerBuilder _builder; public static void RegisterDependencies() { _builder = new ContainerBuilder(); _builder.RegisterControllers(Assembly.GetExecutingAssembly()); RegisterItems(); var container = _builder.Build(); var resolver = new AutofacDependencyResolver(container); DependencyResolver.SetResolver(resolver); } private static void RegisterItems() { _builder.RegisterType<PragmaticEntities>().As(typeof(DbContext)).InstancePerLifetimeScope(); _builder.RegisterGeneric(typeof(Repository<>)).As(typeof(IRepository<>)); _builder.RegisterType(typeof(HorseService)).As(typeof(IHorseService)).InstancePerRequest(); _builder.RegisterType(typeof(HorseToHorseDetailMapper)).As(typeof(IMapper<Dto.Horse, Models.HorseDetail>)).InstancePerRequest(); _builder.RegisterType(typeof(HorseToHorseSummaryMapper)).As(typeof(IMapper<Dto.Horse, Models.HorseSummary>)).InstancePerRequest(); } } }
mit
docusign/docusign-java-client
src/main/java/com/docusign/esign/model/DisplayApplianceDocumentPage.java
7578
package com.docusign.esign.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; /** * DisplayApplianceDocumentPage */ public class DisplayApplianceDocumentPage { @JsonProperty("docPageCountTotal") private Integer docPageCountTotal = null; @JsonProperty("documentId") private String documentId = null; @JsonProperty("documentName") private String documentName = null; @JsonProperty("extension") private String extension = null; @JsonProperty("height72DPI") private Integer height72DPI = null; @JsonProperty("isAttachmentType") private Boolean isAttachmentType = null; @JsonProperty("page") private Integer page = null; @JsonProperty("pageId") private String pageId = null; @JsonProperty("type") private String type = null; @JsonProperty("width72DPI") private Integer width72DPI = null; public DisplayApplianceDocumentPage docPageCountTotal(Integer docPageCountTotal) { this.docPageCountTotal = docPageCountTotal; return this; } /** * * @return docPageCountTotal **/ @ApiModelProperty(example = "null", value = "") public Integer getDocPageCountTotal() { return docPageCountTotal; } public void setDocPageCountTotal(Integer docPageCountTotal) { this.docPageCountTotal = docPageCountTotal; } public DisplayApplianceDocumentPage documentId(String documentId) { this.documentId = documentId; return this; } /** * Specifies the document ID number that the tab is placed on. This must refer to an existing Document's ID attribute. * @return documentId **/ @ApiModelProperty(example = "null", value = "Specifies the document ID number that the tab is placed on. This must refer to an existing Document's ID attribute.") public String getDocumentId() { return documentId; } public void setDocumentId(String documentId) { this.documentId = documentId; } public DisplayApplianceDocumentPage documentName(String documentName) { this.documentName = documentName; return this; } /** * * @return documentName **/ @ApiModelProperty(example = "null", value = "") public String getDocumentName() { return documentName; } public void setDocumentName(String documentName) { this.documentName = documentName; } public DisplayApplianceDocumentPage extension(String extension) { this.extension = extension; return this; } /** * * @return extension **/ @ApiModelProperty(example = "null", value = "") public String getExtension() { return extension; } public void setExtension(String extension) { this.extension = extension; } public DisplayApplianceDocumentPage height72DPI(Integer height72DPI) { this.height72DPI = height72DPI; return this; } /** * * @return height72DPI **/ @ApiModelProperty(example = "null", value = "") public Integer getHeight72DPI() { return height72DPI; } public void setHeight72DPI(Integer height72DPI) { this.height72DPI = height72DPI; } public DisplayApplianceDocumentPage isAttachmentType(Boolean isAttachmentType) { this.isAttachmentType = isAttachmentType; return this; } /** * * @return isAttachmentType **/ @ApiModelProperty(example = "null", value = "") public Boolean getIsAttachmentType() { return isAttachmentType; } public void setIsAttachmentType(Boolean isAttachmentType) { this.isAttachmentType = isAttachmentType; } public DisplayApplianceDocumentPage page(Integer page) { this.page = page; return this; } /** * * @return page **/ @ApiModelProperty(example = "null", value = "") public Integer getPage() { return page; } public void setPage(Integer page) { this.page = page; } public DisplayApplianceDocumentPage pageId(String pageId) { this.pageId = pageId; return this; } /** * * @return pageId **/ @ApiModelProperty(example = "null", value = "") public String getPageId() { return pageId; } public void setPageId(String pageId) { this.pageId = pageId; } public DisplayApplianceDocumentPage type(String type) { this.type = type; return this; } /** * * @return type **/ @ApiModelProperty(example = "null", value = "") public String getType() { return type; } public void setType(String type) { this.type = type; } public DisplayApplianceDocumentPage width72DPI(Integer width72DPI) { this.width72DPI = width72DPI; return this; } /** * * @return width72DPI **/ @ApiModelProperty(example = "null", value = "") public Integer getWidth72DPI() { return width72DPI; } public void setWidth72DPI(Integer width72DPI) { this.width72DPI = width72DPI; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } DisplayApplianceDocumentPage displayApplianceDocumentPage = (DisplayApplianceDocumentPage) o; return Objects.equals(this.docPageCountTotal, displayApplianceDocumentPage.docPageCountTotal) && Objects.equals(this.documentId, displayApplianceDocumentPage.documentId) && Objects.equals(this.documentName, displayApplianceDocumentPage.documentName) && Objects.equals(this.extension, displayApplianceDocumentPage.extension) && Objects.equals(this.height72DPI, displayApplianceDocumentPage.height72DPI) && Objects.equals(this.isAttachmentType, displayApplianceDocumentPage.isAttachmentType) && Objects.equals(this.page, displayApplianceDocumentPage.page) && Objects.equals(this.pageId, displayApplianceDocumentPage.pageId) && Objects.equals(this.type, displayApplianceDocumentPage.type) && Objects.equals(this.width72DPI, displayApplianceDocumentPage.width72DPI); } @Override public int hashCode() { return Objects.hash(docPageCountTotal, documentId, documentName, extension, height72DPI, isAttachmentType, page, pageId, type, width72DPI); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DisplayApplianceDocumentPage {\n"); sb.append(" docPageCountTotal: ").append(toIndentedString(docPageCountTotal)).append("\n"); sb.append(" documentId: ").append(toIndentedString(documentId)).append("\n"); sb.append(" documentName: ").append(toIndentedString(documentName)).append("\n"); sb.append(" extension: ").append(toIndentedString(extension)).append("\n"); sb.append(" height72DPI: ").append(toIndentedString(height72DPI)).append("\n"); sb.append(" isAttachmentType: ").append(toIndentedString(isAttachmentType)).append("\n"); sb.append(" page: ").append(toIndentedString(page)).append("\n"); sb.append(" pageId: ").append(toIndentedString(pageId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" width72DPI: ").append(toIndentedString(width72DPI)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(java.lang.Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
mit
arhframe/arhframe
arhframe/Doctrine/ORM/Query/AST/NullComparisonExpression.php
1652
<?php /* * 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. * * This software consists of voluntary contributions made by many individuals * and is licensed under the MIT license. For more information, see * <http://www.doctrine-project.org>. */ namespace Doctrine\ORM\Query\AST; /** * NullComparisonExpression ::= (SingleValuedPathExpression | InputParameter) "IS" ["NOT"] "NULL" * * * @link www.doctrine-project.org * @since 2.0 * @author Guilherme Blanco <guilhermeblanco@hotmail.com> * @author Jonathan Wage <jonwage@gmail.com> * @author Roman Borschel <roman@code-factory.org> */ class NullComparisonExpression extends Node { public $not; public $expression; public function __construct($expression) { $this->expression = $expression; } public function dispatch($sqlWalker) { return $sqlWalker->walkNullComparisonExpression($this); } }
mit
ColorGenomics/clr
clr/__init__.py
71
# This is the main entry point for the tool. from clr.main import main
mit
MrPhil/CatLikeCoding
CatLikeCoding-Mesh-Deformation/Assets/MeshDeformerInput.cs
594
using UnityEngine; public class MeshDeformerInput : MonoBehaviour { public float force = 10f; public float forceOffset = 0.1f; void Update() { if (Input.GetMouseButton(0)) { HandleInput(); } } void HandleInput() { Ray inputRay = Camera.main.ScreenPointToRay(Input.mousePosition); RaycastHit hit; if (Physics.Raycast(inputRay, out hit)) { MeshDeformer deformer = hit.collider.GetComponent<MeshDeformer>(); if (deformer) { Vector3 point = hit.point; point += hit.normal * forceOffset; deformer.AddDeformingForce(point, force); } } } }
mit
Clavus/LD32
game/words/S Words.lua
139192
return [[sab sabadilla sabaton sabatons sabbat sabbatic sabbatical sabbatine sabbatise sabbatised sabbatises sabbatism sabbatize sabbatized sabbatizes sabbats sabayon sabayons sabella sabellas saber sabers sabin sabins sabkha sabkhas sable sabled sables sabling sabot sabotage sabotaged sabotages sabotaging saboteur saboteurs sabotier sabotiers sabots sabra sabras sabre sabred sabres sabretache sabreur sabring sabs sabuline sabulose sabulous saburra saburral saburras sac sacaton sacatons saccade saccades saccadic saccate saccharase saccharate saccharic saccharide saccharify saccharin saccharine saccharise saccharize saccharoid saccharose sacciform saccos saccoses saccular sacculate sacculated saccule saccules sacculi sacculus sacella sacellum sacerdotal sachem sachemdom sachemic sachems sachemship sachet sachets sack sackage sackages sackbut sackbuts sackcloth sackcloths sacked sacker sackers sackful sackfuls sacking sackings sackless sacks sacless saclike sacque sacques sacra sacral sacralgia sacralise sacralised sacralises sacralize sacralized sacralizes sacrament sacraments sacraria sacrarium sacrariums sacred sacredly sacredness sacrifice sacrificed sacrificer sacrifices sacrified sacrifies sacrify sacrifying sacrilege sacrileges sacring sacrings sacrist sacristan sacristans sacristies sacrists sacristy sacroiliac sacrosanct sacrum sacs sad sadden saddened saddening saddens sadder saddest saddhu saddhus saddish saddle saddleback saddlebill saddled saddleless saddlenose saddler saddleries saddlers saddlery saddles saddling sade sadhe sadhu sadhus sadism sadist sadistic sadists sadly sadness sae saeculum saeculums saeter saeters safari safaried safariing safaris safe safeguard safeguards safelight safely safeness safer safes safest safeties safety safetyman saffian saffians safflower safflowers saffron saffroned saffrons saffrony safranin safranine safrole safroles sag saga sagacious sagacity sagaman sagamen sagamore sagamores sagapenum sagas sagathy sage sagebrush sagely sagene sagenes sageness sagenite sagenites sagenitic sager sages sagest saggar saggard saggards saggars sagged sagger saggers sagging saggings saggy saginate saginated saginates saginating sagination sagitta sagittal sagittally sagittary sagittas sagittate sago sagoin sagoins sagos sags saguaro saguaros sagum sagy sahib sahibah sahibahs sahibs sai saic saice saick saicks saics said saidest saidst saiga saigas sail sailable sailboard sailboards sailed sailer sailers sailing sailings sailless sailmaker sailor sailoring sailorings sailorless sailorly sailors sailplane sailplanes sails saily saim saimiri saimiris saims sain sained sainfoin sainfoins saining sains saint saintdom sainted saintess saintesses sainthood sainting saintish saintism saintlier saintliest saintlike saintling saintlings saintly saints saintship saique saiques sair saired sairing sairs sais saist saith saithe saithes saiths sajou sajous sake saker sakeret sakerets sakers sakes saki sakieh sakiehs sakis sal salaam salaamed salaaming salaams salability salable salably salacious salacity salad salade salades salading salads salal salals salamander salame salami salamis salangane salanganes salariat salariats salaried salaries salary salarying salaryman salarymen salband salbands salbutamol salchow salchows sale saleable saleably salep saleps saleratus sales salesgirl salesgirls saleslady salesman salesmen salesroom salesrooms saleswoman saleswomen salet salets salework saleyard salfern salferns salic salices salicet salicets salicetum salicetums salicin salicine salicional salicornia salicylate salicylic salicylism salience saliency salient salientian saliently salients saliferous salifiable salified salifies salify salifying saligot saligots salimeter salimeters salina salinas saline salines salinity saliva salival salivary salivas salivate salivated salivates salivating salivation salix salle sallee sallenders sallet sallets sallied sallies sallow sallowed sallower sallowest sallowing sallowish sallowness sallows sallowy sally sallying sallyport sallyports salmagundi salmagundy salmi salmis salmon salmonella salmonet salmonets salmonid salmonids salmonoid salmonoids salmons salon salons saloon saloonist saloonists saloons saloop saloops salopette salopettes salp salpa salpae salpas salpian salpians salpicon salpicons salpiform salpingian salpinx salpinxes salps sals salsa salse salses salsifies salsify salt saltant saltants saltarelli saltarello saltate saltated saltates saltating saltation saltations saltatory saltchuck salted salter saltern salterns salters saltier saltiers saltiest saltigrade saltily saltiness salting saltings saltire saltires saltish saltishly saltless saltly saltness salto saltoed saltoing saltos saltpeter saltpetre salts saltus saltuses salty salubrious salubrity salue saluki salukis salutarily salutary salutation salutatory salute saluted saluter saluters salutes saluting salvable salvage salvaged salvages salvaging salvarsan salvation salvations salvatory salve salved salver salverform salvers salves salvete salvia salvias salvific salvifical salving salvings salvo salvoes salvor salvors salvos sam samaan samadhi saman samara samaras samariform samarium samarskite samba sambar sambars sambas sambo sambos sambuca sambucas sambur samburs same samekh samel samely samen sameness sames samey samfoo samfoos samfu samfus samiel samiels samisen samisens samite samiti samitis samizdat samlet samlets samosa samosas samovar samovars samp sampan sampans samphire samphires sampi sampis sample sampled sampler samplers samplery samples sampling samplings samps samsara samshoo samshoos samshu samshus samurai san sanative sanatoria sanatorium sanatory sanbenito sanbenitos sancho sanchos sanctified sanctifier sanctifies sanctify sanctimony sanction sanctioned sanctions sanctities sanctitude sanctity sanctuary sanctum sanctums sand sandal sandalled sandals sandalwood sandarac sandarach sandbag sandbagged sandbagger sandbags sandblast sandblasts sanded sander sanderling sanders sanderses sandgroper sandhi sandhis sandier sandiest sandiness sanding sandings sandiver sandivers sandling sandlings sandman sandmen sandpaper sandpapers sandpiper sandpipers sands sandsoap sandstone sandstones sandwich sandwiched sandwiches sandwort sandworts sandy sandyish sane sanely saneness saner sanest sang sangar sangaree sangarees sangars sangfroid sanglier sangoma sangomas sangria sangrias sangs sanguified sanguifies sanguify sanguinary sanguine sanguined sanguinely sanguines sanguining sanguinity sanicle sanicles sanidine sanies sanified sanifies sanify sanifying sanious sanitaria sanitarian sanitarily sanitarist sanitarium sanitary sanitate sanitated sanitates sanitating sanitation sanitise sanitised sanitises sanitising sanitize sanitized sanitizes sanitizing sanity sanjak sanjaks sank sannup sannups sannyasi sannyasin sannyasins sannyasis sans sansei sanseis sanserif sanserifs sant santal santalin santals santir santirs santolina santolinas santon santonica santonin santons santour santours santur santurs sap sapajou sapajous sapan sapans sapego sapele sapeles sapful saphead sapheaded sapheads saphena saphenae saphenous sapid sapidity sapidless sapidness sapience sapient sapiential sapiently sapless sapling saplings sapodilla sapodillas sapogenin saponified saponifies saponify saponin saponite sapor saporous sapors sapota sapotas sapped sapper sappers sapphire sapphired sapphires sapphirine sapphism sapphist sapphists sappier sappiest sappiness sapping sapple sapples sappy sapraemia sapraemic saprobe saprobes saprogenic saprolite saprolites sapropel sapropelic saprophyte saprozoic saps sapsago sapsagos sapsucker sapsuckers sapucaia sapucaias sar saraband sarabande sarabandes sarabands sarafan sarafans sarangi sarangis sarape sarapes sarbacane sarbacanes sarcasm sarcasms sarcastic sarcenet sarcenets sarcocarp sarcocarps sarcocolla sarcode sarcodes sarcodic sarcoid sarcolemma sarcology sarcoma sarcomas sarcomata sarcomere sarcophagi sarcophagy sarcoplasm sarcoptic sarcous sard sardana sardel sardelle sardelles sardels sardine sardines sardius sardiuses sardonian sardonic sardonical sardonyx sardonyxes saree sarees sargasso sargassos sargassum sarge sarges sargo sargos sargus sarguses sari sarin saris sark sarkful sarkfuls sarkier sarkiest sarking sarkings sarks sarky sarment sarmenta sarmentas sarmentose sarmentous sarments sarmentum sarnie sarnies sarod sarods sarong sarongs saronic saros saroses sarpanch sarracenia sarrasin sarrasins sarrazin sarrazins sarred sarring sars sarsa sarsas sarsen sarsenet sarsenets sarsens sartor sartorial sartorian sartorius sartors sarus saruses sash sashay sashayed sashaying sashays sashed sashes sashimi sashimis sashing sasin sasine sasines sasins saskatoon saskatoons sasquatch sass sassabies sassaby sassafras sasse sassed sasses sassier sassiest sassing sassolite sassy sastruga sastrugi sat satang satanic satanical satanism satanist satanists satanity satanology satara sataras satay satays satchel satchelled satchels sate sated sateen sateens sateless satelles satellite satellited satellites satellitic satem sates sati satiable satiate satiated satiates satiating satiation satiety satin satined satinet satinets satinette satinettes sating satining satins satinwood satinwoods satiny satire satires satiric satirical satirise satirised satirises satirising satirist satirists satirize satirized satirizes satirizing satis satisfice satisficed satisfices satisfied satisfier satisfiers satisfies satisfy satisfying sative satori satoris satrap satrapal satrapic satrapical satrapies satraps satrapy satsuma satsumas saturable saturant saturants saturate saturated saturates saturating saturation saturator saturators saturnic saturniid saturnine saturnism satyagraha satyr satyra satyral satyrals satyras satyresque satyress satyresses satyriasis satyric satyrical satyrid satyrids satyrs sauba saubas sauce sauced saucepan saucepans saucer saucerful saucerfuls saucers sauces sauch sauchs saucier sauciest saucily sauciness saucing saucisse saucisses saucisson saucissons saucy sauerkraut sauger saugers saugh saughs saul saulie saulies sauls sault saults sauna saunas saunter sauntered saunterer saunterers sauntering saunters saurel saurels saurian saurians sauries sauroid sauropod sauropods saury sausage sausages saussurite saut sauted sauting sautoir sautoirs sauts savable savage savaged savagedom savagely savageness savageries savagery savages savaging savagism savanna savannah savannahs savannas savant savants savarin savarins savate savates save saved saveloy saveloys saver savers saves savin savine savines saving savingly savingness savings savins saviour saviours savor savories savorous savors savory savour savoured savouries savouring savourless savours savoury savoy savoys savvied savvies savvy savvying saw sawah sawahs sawder sawdered sawdering sawders sawdust sawdusted sawdusting sawdusts sawdusty sawed sawer sawers sawing sawings sawn sawpit sawpits saws sawyer sawyers sax saxatile saxaul saxauls saxes saxhorn saxhorns saxicavous saxicoline saxicolous saxifrage saxifrages saxitoxin saxonies saxonite saxony saxophone saxophones say sayable sayer sayers sayest sayid sayids saying sayings sayonara says sayst sayyid sayyids sazerac sbirri sbirro scab scabbard scabbarded scabbards scabbed scabbier scabbiest scabbiness scabbing scabble scabbled scabbles scabbling scabby scabies scabious scablands scabrid scabridity scabrous scabrously scabs scad scads scaff scaffie scaffies scaffold scaffolded scaffolder scaffolds scaffs scag scaglia scagliola scail scailed scailing scails scala scalable scalade scalades scalado scalados scalae scalar scalars scalawag scalawags scald scalded scalder scalders scaldic scalding scaldings scaldini scaldino scalds scale scaled scaleless scalelike scalene scaleni scalenus scaler scalers scales scalier scaliest scaliness scaling scalings scall scallawag scallawags scalled scallion scallions scallop scalloped scalloping scallops scallywag scallywags scalp scalped scalpel scalpels scalper scalpers scalping scalpins scalpless scalprum scalps scaly scam scamble scambled scambler scamblers scambles scambling scamel scammed scamming scammony scamp scamped scamper scampered scampering scampers scampi scamping scampings scampis scampish scampishly scamps scams scan scandal scandalise scandalize scandalled scandalous scandals scandent scandium scannable scanned scanner scanners scanning scannings scans scansion scansions scansorial scant scanted scantier scanties scantiest scantily scantiness scanting scantity scantle scantled scantles scantling scantlings scantly scantness scants scanty scapa scapaed scapaing scapas scape scaped scapegoat scapegoats scapegrace scapeless scapement scapements scapes scaphoid scaphoids scaphopod scaphopods scapi scaping scapolite scapple scappled scapples scappling scapula scapulae scapular scapulary scapulas scapulated scapus scar scarab scarabaean scarabaei scarabaeid scarabaeus scarabee scarabees scaraboid scarabs scaramouch scarce scarcely scarcement scarceness scarcer scarcest scarcities scarcity scare scarecrow scarecrows scared scarer scarers scares scarey scarf scarfed scarfing scarfings scarfs scarfskin scarfskins scarfwise scarier scariest scarified scarifier scarifiers scarifies scarify scarifying scaring scarious scarlatina scarless scarlet scarleted scarleting scarlets scarp scarped scarper scarpered scarpering scarpers scarph scarphed scarphing scarphs scarpines scarping scarpings scarps scarred scarrier scarriest scarring scarrings scarry scars scart scarted scarth scarths scarting scarts scarves scary scat scatch scatches scathe scathed scatheful scatheless scathes scathing scathingly scatology scatophagy scats scatt scatted scatter scattered scatterer scatterers scattering scatters scattery scattier scattiest scattiness scatting scatts scatty scaturient scaud scauded scauding scauds scaup scauper scaupers scaups scaur scaured scauring scaurs scavage scavager scavagers scavages scavenge scavenged scavenger scavengers scavengery scavenges scavenging scaw scaws scawtite scazon scazons scazontic scazontics sceat sceatas sceatt sceattas scelerat scelerate scena scenario scenarios scenarise scenarised scenarises scenarist scenarists scenarize scenarized scenarizes scenary scend scended scending scends scene scened sceneries scenery scenes scenic scenical scenically scening scent scented scentful scenting scentings scentless scents scepses scepsis scepter sceptered sceptering scepters sceptic sceptical scepticism sceptics sceptral sceptre sceptred sceptres sceptry scerne schalstein schanse schantze schanze schappe schapped schappes schapping schapska schapskas schechita schechitah schedule scheduled scheduler schedulers schedules scheduling scheelite schelm schelms schema schemata schematic schematise schematism schematist schematize scheme schemed schemer schemers schemes scheming schemings schemozzle scherzandi scherzando scherzi scherzo scherzos schiavone schiavones schiedam schiedams schiller schilling schillings schimmel schimmels schipperke schism schisma schismas schismatic schisms schist schistose schistous schists schizo schizocarp schizogony schizoid schizoids schizont schizonts schizopod schizopods schizos schl‰ger schl‰gers schlemiel schlemiels schlemihl schlemihls schlep schlepp schlepped schlepper schleppers schlepping schlepps schleps schlieren schlimazel schlock schlocky schloss schlosses schmaltz schmaltzes schmaltzy schmalz schmalzes schmalzier schmalzy schmeck schmecks schmelz schmelzes schmo schmoe schmoes schmoose schmoosed schmooses schmoosing schmooz schmooze schmoozed schmoozes schmoozing schmuck schmucks schmutter schnapper schnappers schnapps schnappses schnaps schnapses schnauzer schnauzers schnecke schnecken schnell schnitzel schnitzels schnook schnooks schnorkel schnorkels schnorrer schnozzle schnozzles scholar scholarch scholarchs scholarly scholars scholastic scholia scholiast scholiasts scholion scholium school schoolbag schoolbags schoolboy schoolboys schooled schoolery schoolgirl schoolie schoolies schooling schoolings schoolmaid schoolman schoolmen schoolroom schools schoolward schoolwork schooner schooners schorl schout schouts schtick schticks schtik schtiks schtook schtoom schtuck schuit schuits schul schuls schuss schussed schusses schussing schwa schwas sciaenid sciaenoid sciamachy sciarid sciarids sciatic sciatica sciatical science scienced sciences scient scienter sciential scientific scientise scientised scientises scientism scientist scientists scientize scientized scientizes scilicet scilla scillas scimitar scimitars scincoid scintigram scintilla scintillas scintiscan sciolism sciolist sciolistic sciolists sciolous sciolto scion scions sciosophy scirocco sciroccos scirrhoid scirrhous scirrhus scirrhuses scissel scissile scission scissions scissor scissorer scissorers scissors scissure scissures sciurine sciuroid sclaff sclaffed sclaffing sclaffs sclate sclates sclaunder sclave sclera scleral scleras sclere sclereid sclereids sclerema scleres scleriasis sclerite sclerites scleritis scleroderm scleroid scleroma scleromata sclerosal sclerose sclerosed scleroses sclerosing sclerosis sclerotal sclerotals sclerotia sclerotial sclerotic sclerotics sclerotin sclerotium sclerotomy sclerous scliff scliffs sclim sclimmed sclimming sclims scoff scoffed scoffer scoffers scoffing scoffingly scoffings scofflaw scofflaws scoffs scog scogged scogging scogs scoinson scoinsons scold scolded scolder scolders scolding scoldingly scoldings scolds scoleces scolecid scolecite scolecoid scolex scolia scolices scolioma scolion scoliosis scoliotic scollop scolloped scolloping scollops scolytid scolytids scolytoid scombrid scombroid sconce sconces sconcheon sconcheons scone scones scoop scooped scooper scoopers scoopful scoopfuls scooping scoopings scoops scoot scooted scooter scooters scooting scoots scop scopa scopae scopas scopate scope scopelid scopes scopula scopulas scopulate scorbutic scorch scorched scorcher scorchers scorches scorching scordatura score scored scoreline scorelines scorer scorers scores scoria scoriac scoriae scorified scorifier scorifies scorify scorifying scoring scorings scorious scorn scorned scorner scorners scornful scornfully scorning scornings scorns scorodite scorpaenid scorper scorpers scorpio scorpioid scorpion scorpionic scorpions scorpios scorse scorzonera scot scotch scotched scotches scotching scoter scoters scotodinia scotoma scotomas scotomata scotomia scotomy scotopia scotopic scoundrel scoundrels scoup scouped scouping scoups scour scoured scourer scourers scourge scourged scourger scourgers scourges scourging scouring scourings scours scouse scouser scousers scouses scout scoutcraft scouted scouter scouters scouth scouther scouthered scouthers scouting scoutings scouts scow scowder scowdered scowdering scowders scowl scowled scowling scowlingly scowls scows scrab scrabbed scrabbing scrabble scrabbled scrabbler scrabblers scrabbles scrabbling scrabs scrae scraes scrag scragged scraggier scraggiest scraggily scragging scragglier scraggling scraggly scraggy scrags scraich scraiched scraiching scraichs scraigh scraighed scraighing scraighs scram scramble scrambled scrambler scramblers scrambles scrambling scramjet scramjets scrammed scramming scrams scran scranch scranched scranching scranchs scrannel scranny scrap scrape scraped scraper scrapers scrapes scrapie scraping scrapings scrapped scrappier scrappiest scrappily scrapping scrapple scrapples scrappy scraps scrat scratch scratched scratcher scratchers scratches scratchier scratchily scratching scratchpad scratchy scrats scratted scratting scrattle scrattled scrattles scrattling scrauch scrauched scrauching scrauchs scraw scrawl scrawled scrawler scrawlers scrawlier scrawliest scrawling scrawlings scrawls scrawly scrawm scrawmed scrawming scrawms scrawnier scrawniest scrawny scraws scray scrays screak screaked screaking screaks screaky scream screamed screamer screamers screaming screams scree screech screeched screecher screechers screeches screechier screeching screechy screed screeding screedings screeds screen screened screener screeners screening screenings screenplay screens screes screeve screeved screever screevers screeves screeving screevings screich screiched screiching screichs screigh screighed screighing screighs screw screwed screwer screwers screwier screwiest screwing screwings screws screwy scribable scribal scribble scribbled scribbler scribblers scribbles scribbling scribbly scribe scribed scriber scribers scribes scribing scribings scribism scribisms scried scries scrieve scrieved scrieves scrieving scriggle scriggled scriggles scriggling scriggly scrike scrim scrimmage scrimmaged scrimmager scrimmages scrimp scrimped scrimpier scrimpiest scrimpily scrimping scrimply scrimpness scrimps scrimpy scrims scrimshank scrimshaw scrimshaws scrine scrip scrippage scrips script scripted scripting scriptoria scriptory scripts scriptural scripture scriptures scritch scritched scritches scritching scrive scrived scrivener scriveners scrivening scrives scriving scrobe scrobes scrobicule scrod scroddled scrods scrofula scrofulous scrog scroggier scroggiest scroggy scrogs scroll scrolled scrollery scrolling scrolls scrollwise scrollwork scrooge scrooged scrooges scrooging scroop scrooped scrooping scroops scrota scrotal scrotum scrotums scrouge scrouged scrouger scrouges scrouging scrounge scrounged scrounger scroungers scrounges scrounging scrow scrowl scrowle scrowles scrowls scrows scroyle scrub scrubbed scrubber scrubbers scrubbier scrubbiest scrubbing scrubby scrubland scrublands scrubs scruff scruffier scruffiest scruffs scruffy scrum scrummage scrummager scrummages scrummed scrummier scrummiest scrumming scrummy scrump scrumped scrumpies scrumping scrumple scrumpled scrumples scrumpling scrumps scrumpy scrums scrunch scrunched scrunches scrunching scrunchy scrunt scrunts scruple scrupled scrupler scruplers scruples scrupling scrupulous scrutable scrutator scrutators scrutineer scrutinies scrutinise scrutinize scrutinous scrutiny scruto scrutoire scrutoires scrutos scruze scruzed scruzes scruzing scry scryer scryers scrying scryings scuba scubas scud scuddaler scuddalers scudded scudder scudders scudding scuddle scuddled scuddles scuddling scudi scudler scudlers scudo scuds scuff scuffed scuffing scuffle scuffled scuffler scufflers scuffles scuffling scuffs scuffy scuft scufts scug scugged scugging scugs scul sculk sculked sculking sculks scull sculle sculled sculler sculleries scullers scullery sculles sculling scullings scullion scullions sculls sculp sculped sculpin sculping sculpins sculps sculpsit sculpt sculpted sculpting sculptor sculptors sculptress sculpts sculptural sculpture sculptured sculptures sculs scum scumbag scumber scumbered scumbering scumbers scumble scumbled scumbles scumbling scumblings scumfish scumfished scumfishes scummed scummer scummers scummier scummiest scumming scummings scummy scums scuncheon scuncheons scunge scunged scungeing scunges scungier scungiest scungy scunner scunnered scunnering scunners scup scuppaug scuppaugs scupper scuppered scuppering scuppers scups scur scurf scurfier scurfiest scurfiness scurfs scurfy scurred scurried scurrier scurries scurril scurrile scurrility scurrilous scurring scurry scurrying scurs scurvily scurviness scurvy scuse scused scuses scusing scut scuta scutage scutages scutal scutate scutch scutched scutcheon scutcheons scutcher scutchers scutches scutching scutchings scute scutella scutellar scutellate scutellum scutes scutiform scutiger scutigers scuts scutter scuttered scuttering scutters scuttle scuttled scuttleful scuttler scuttlers scuttles scuttling scutum scuzz scuzzball scuzzier scuzziest scuzzy scybala scybalous scybalum scye scyes scyphi scyphiform scyphozoan scyphus scytale scytales scythe scythed scytheman scythemen scythes scything sdeign sdeigne sdeignfull sdein sdrucciola sea seabed seaberries seaberry seaboard seaboards seaborgium seaborne seacraft seacrafts seacunnies seacunny seadrome seadromes seafarer seafarers seafaring seafront seafronts seagull seagulls seakeeping seal sealant sealants sealch sealchs sealed sealer sealeries sealers sealery sealing sealings seals sealskin sealskins sealyham sealyhams seam seaman seamanlike seamanly seamanship seamark seamarks seamed seamen seamer seamers seamier seamiest seaminess seaming seamless seams seamset seamsets seamster seamsters seamstress seamy sean seaned seaning seans seaplane seaplanes seaport seaports seaquake seaquakes sear searce searced searces search searchable searched searcher searchers searches searching searchless searcing seared searedness searing searings searness sears seas seascape seascapes seasick seaside seasides season seasonable seasonably seasonal seasonally seasoned seasoner seasoners seasoning seasonings seasonless seasons seat seated seater seaters seating seatings seatless seats seaward seawardly seawards seaway seaways seaweed seaweeds seaworthy sebaceous sebacic sebate sebates sebesten sebestens sebiferous sebific seborrhoea sebum sebundies sebundy sec secant secantly secants secateurs secco seccos secede seceded seceder seceders secedes seceding secern secerned secernent secernents secerning secernment secerns secesh secesher secession secessions sech seckel seckels seclude secluded secludedly secludes secluding seclusion seclusions seclusive secodont secodonts seconal second secondary seconde seconded secondee secondees seconder seconders secondi seconding secondly secondment secondo seconds secrecies secrecy secret secreta secretage secretaire secretary secrete secreted secretes secretin secreting secretion secretions secretive secretly secretness secretory secrets secs sect sectarial sectarian sectarians sectaries sectary sectator sectators sectile sectility section sectional sectioned sectioning sectionise sectionize sections sector sectoral sectored sectorial sectoring sectors sects secular secularise secularism secularist secularity secularize secularly seculars secund secundine secundines secundum securable securance securances secure secured securely securement secureness securer securers secures securest securiform securing securitan securities securitise securitize security sed sedan sedans sedate sedated sedately sedateness sedater sedates sedatest sedating sedation sedative sedatives sedent sedentary sederunt sederunts sedge sedged sedges sedgier sedgiest sedgy sedile sedilia sediment sedimented sediments sedition seditions seditious seduce seduced seducement seducer seducers seduces seducing seducingly seducings seduction seductions seductive seductress sedulity sedulous sedulously sedum sedums see seeable seecatch seecatchie seed seedbed seedbeds seedbox seedboxes seedcake seedcakes seedcase seedcases seeded seeder seeders seedier seediest seedily seediness seeding seedings seedless seedling seedlings seedlip seedlips seedness seeds seedsman seedsmen seedy seeing seeings seek seeker seekers seeking seeks seel seeled seeling seels seely seem seemed seemer seemers seeming seemingly seemings seemless seemlier seemliest seemlihead seemliness seemly seems seen seep seepage seepages seeped seepier seepiest seeping seeps seepy seer seeress seeresses seers seersucker sees seesaw seesawed seesawing seesaws seethe seethed seether seethers seethes seething seethings seg seggar seggars segment segmental segmentary segmentate segmented segmenting segments segno segnos sego segol segolate segolates segols segos segreant segregable segregate segregated segregates segs segue segued segueing segues seguidilla sei seicento seiche seiches seif seifs seigneur seigneurie seigneurs seignior seigniors seigniory seignorage seignoral seignories seignory seik seil seiled seiling seils seine seined seiner seiners seines seining seinings seir seirs seis seise seised seises seisin seising seisins seism seismal seismic seismical seismicity seismism seismogram seismology seisms seities seity seizable seize seized seizer seizers seizes seizin seizing seizings seizins seizure seizures sejant sejeant sekos sekoses sel selachian selachians seladang seladangs selah selahs selcouth seld seldom seldomness seldseen sele select selected selectee selectees selecting selection selections selective selectness selector selectors selects selenate selenates selenian selenic selenide selenides selenious selenite selenites selenitic selenium selenodont selenology selenous self selfed selfhood selfing selfish selfishly selfism selfist selfists selfless selfness selfs selfsame selictar selictars selkie selkies sell sella sellable selle seller sellers selles selling sells sels seltzer seltzers seltzogene selva selvage selvaged selvagee selvages selvaging selvas selvedge selvedged selvedges selvedging selves semanteme semantemes semantic semantics semantra semantron semaphore semaphored semaphores sematic semblable semblably semblance semblances semblant semblants semblative semble semeia semeiology semeion semeiotic semeiotics sememe sememes semen semens semester semesters semestral semestrial semi semibold semibreve semibreves semibull semibulls semichorus semicircle semicirque semicolon semicolons semicoma semicomas semifinal semifinals semifluid semifluids semilog semilogs semilucent semilune semilunes seminal seminality seminally seminar seminarial seminarian seminaries seminarist seminars seminary seminate seminated seminates seminating semination semiology semiotic semiotics semiped semipeds semiplume semiplumes semipostal semiquaver semis semises semisolid semiterete semitone semitones semitonic semivowel semivowels semmit semmits semolina semper sempitern semple semplice sempre sempstress semsem semsems semuncia semuncial semuncias sen sena senaries senarii senarius senary senate senates senator senatorial senators send sendal sendals sended sender senders sending sendings sends senecio senecios senega senegas senescence senescent seneschal seneschals sengreen sengreens senile senilely senility senior seniority seniors senna sennachie sennachies sennas sennet sennets sennight sennights sennit sennits sens sensa sensate sensation sensations sense sensed senseful senseless senses sensibilia sensible sensibly sensile sensilla sensillum sensing sensings sensism sensist sensists sensitise sensitised sensitiser sensitises sensitive sensitives sensitize sensitized sensitizer sensitizes sensor sensoria sensorial sensorium sensoriums sensors sensory sensual sensualise sensualism sensualist sensuality sensualize sensually sensuism sensuist sensuists sensum sensuous sensuously sent sentence sentenced sentencer sentencers sentences sentencing sentential sentience sentiency sentient sentients sentiment sentiments sentinel sentinels sentries sentry senza sepad sepadded sepadding sepads sepal sepaline sepalody sepaloid sepalous sepals separable separably separate separated separately separates separating separation separatism separatist separative separator separators separatory separatrix separatum separatums sephen sephens sepia sepias sepiment sepiments sepiolite sepiost sepiosts sepium sepiums sepmag sepoy sepoys seppuku seppukus seps sepses sepsis sept septa septal septaria septarian septarium septate septation septations septemfid septemvir septemviri septemvirs septenary septennate septennia septennial septennium septet septets septette septettes septic septically septicemia septicemic septicidal septicity septiform septillion septimal septime septimes septimole septimoles septleva septlevas septs septum septuor septuors septuple septupled septuples septuplet septuplets septupling sepulcher sepulchers sepulchral sepulchre sepulchres sepultural sepulture sepultured sepultures sequacious sequacity sequel sequela sequelae sequels sequence sequenced sequencer sequencers sequences sequencing sequent sequential sequents sequester sequesters sequestra sequestrum sequin sequined sequinned sequins sequoia sequoias sera serac seracs seraglio seraglios serai serail serails serais seral serang serangs serape serapes seraph seraphic seraphical seraphim seraphims seraphin seraphine seraphines seraphins seraphs seraskier seraskiers serdab serdabs sere sered serein sereins serenade serenaded serenader serenaders serenades serenading serenata serenatas serenate serenates serene serened serenely sereneness serener serenes serenest serening serenity seres serf serfage serfdom serfhood serfish serflike serfs serfship serge sergeancy sergeant sergeantcy sergeants serges serial serialise serialised serialises serialism serialisms serialist serialists seriality serialize serialized serializes serially serials seriate seriately seriatim seriation seriations seric sericeous sericin sericite sericitic sericteria seriema seriemas series serif serifs serigraph serigraphs serigraphy serin serine serinette serinettes sering seringa seringas serins seriocomic serious seriously serjeant serjeantcy serjeants serjeanty serk serks sermon sermoned sermoneer sermoneers sermoner sermoners sermonet sermonets sermonette sermonic sermonical sermoning sermonise sermonised sermoniser sermonises sermonish sermonize sermonized sermonizer sermonizes sermons serologist serology seron serons seroon seroons seropus serosa serosae serosas serosity serotinal serotine serotines serotinous serotonin serotype serotyped serotypes serotyping serous serow serows serpent serpented serpentine serpenting serpentise serpentize serpentry serpents serpigines serpigo serpigoes serpula serpulae serpulas serpulite serpulites serr serra serradella serrae serran serranid serranids serranoid serranoids serrans serras serrasalmo serrate serrated serrates serrating serration serrations serrature serratures serre serred serrefile serrefiles serres serricorn serried serries serring serrs serrulate serrulated serry serrying serum serums serval servals servant servanted servanting servantry servants serve served server serveries servers servery serves service serviced serviceman servicemen services servicing servient serviette serviettes servile servilely serviles servilism servility serving servings servitor servitors servitress servitude servitudes servo sesame sesames sesamoid sesamoids sese seseli seselis sesey sess sessa sessile session sessional sessions sesspool sesspools sesterce sesterces sestertia sestertium sestet sestets sestette sestettes sestetto sestettos sestina sestinas sestine sestines set seta setaceous setae setback setbacks setiferous setiform setigerous setness seton setons setose sets sett setted settee settees setter setters setterwort setting settings settle settleable settled settlement settler settlers settles settling settlings settlor settlors setts setule setules setulose setulous setwall setwalls seven sevenfold sevenpence sevenpenny sevens seventeen seventeens seventh seventhly sevenths seventies seventieth seventy sever severable several severally severals severalty severance severances severe severed severely severeness severer severest severies severing severity severs severy sevruga sew sewage sewed sewellel sewellels sewen sewens sewer sewerage sewered sewering sewerings sewers sewin sewing sewings sewins sewn sews sex sexagenary sexed sexennial sexer sexers sexes sexfid sexfoil sexfoils sexier sexiest sexiness sexing sexism sexist sexists sexivalent sexless sexlocular sexologist sexology sexpartite sexpert sexperts sexpot sexpots sext sextan sextans sextanses sextant sextantal sextants sextet sextets sextette sextettes sextile sextiles sextillion sextolet sextolets sexton sextoness sextons sextonship sexts sextuor sextuors sextuple sextupled sextuples sextuplet sextuplets sextupling sexual sexualise sexualised sexualises sexualism sexualist sexualists sexuality sexualize sexualized sexualizes sexually sexvalent sexy sey seys sferics sforzandi sforzando sforzandos sforzati sforzato sforzatos sfumato sfumatos sgraffiti sgraffito sh shabbier shabbiest shabbily shabbiness shabble shabbles shabby shabrack shabracks shabracque shack shacked shacking shackle shackled shackles shackling shacko shackoes shackos shacks shad shadberry shadblow shadblows shadbush shadbushes shaddock shaddocks shade shaded shadeless shades shadier shadiest shadily shadiness shading shadings shadoof shadoofs shadow shadowed shadower shadowers shadowier shadowiest shadowing shadowings shadowless shadows shadowy shads shaduf shadufs shady shaft shafted shafter shafters shafting shaftings shaftless shafts shag shagged shaggier shaggiest shaggily shagginess shagging shaggy shaggymane shagpile shagreen shagreened shagreens shagroon shagroons shags shah shahs shaikh shaikhs shairn shaitan shaitans shakable shake shakeable shaken shaker shakerism shakers shakes shakier shakiest shakily shakiness shaking shakings shako shakoes shakos shakuhachi shaky shale shalier shaliest shall shallon shallons shalloon shallop shallops shallot shallots shallow shallowed shallower shallowest shallowing shallowly shallows shalm shalms shalom shalt shalwar shaly sham shama shamable shaman shamanic shamanism shamanist shamanists shamans shamas shamateur shamateurs shamba shamble shambled shambles shambling shamblings shambolic shame shamed shamefaced shamefast shameful shamefully shameless shamer shamers shames shamianah shamianahs shaming shamisen shamisens shamiyanah shammash shammashim shammed shammer shammers shammes shammies shamming shammosim shammy shamoy shamoyed shamoying shamoys shampoo shampooed shampooer shampooers shampooing shampoos shamrock shamrocks shams shamus shamuses shan shanachie shanachies shandies shandries shandry shandrydan shandy shandygaff shanghai shanghaied shanghaier shanghais shank shanked shanking shanks shannies shanny shans shantey shanteys shanties shantung shantungs shanty shantyman shantymen shapable shape shapeable shaped shapeless shapelier shapeliest shapely shapen shaper shapers shapes shaping shapings shaps shard sharded shards share sharebone shared shareman sharemen sharer sharers shares sharesman sharesmen shareware sharif sharifs sharing sharings shark sharked sharker sharkers sharking sharkings sharks sharkskin sharkskins sharn sharny sharp sharped sharpen sharpened sharpener sharpeners sharpening sharpens sharper sharpers sharpest sharpie sharpies sharping sharpings sharpish sharply sharpness sharps shash shashes shashlick shashlicks shashlik shashliks shaster shasters shastra shastras shat shatter shattered shattering shatters shattery shauchle shauchled shauchles shauchling shauchly shave shaved shaveling shavelings shaven shaver shavers shaves shavie shavies shaving shavings shaw shawed shawing shawl shawled shawlie shawlies shawling shawlings shawlless shawls shawm shawms shaws shay shays shchi shchis she shea sheading sheadings sheaf sheafed sheafing sheafs sheafy sheal shealing shealings sheals shear sheared shearer shearers shearing shearings shearling shearlings shearman shearmen shears shearwater sheas sheath sheathe sheathed sheathes sheathing sheathings sheathless sheaths sheathy sheave sheaved sheaves shebang shebangs shebeen shebeened shebeener shebeeners shebeening shebeens shechita shechitah shed shedder shedders shedding sheddings shedhand shedhands sheds sheel sheeling sheelings sheen sheened sheenier sheeniest sheening sheens sheeny sheep sheepdog sheepdogs sheepfold sheepfolds sheepish sheepishly sheepo sheepos sheepshank sheepskin sheepskins sheepwalk sheepwalks sheepy sheer sheered sheerer sheerest sheering sheerleg sheerlegs sheerly sheers sheet sheeted sheeting sheetings sheets sheety shehita shehitah sheik sheikdom sheikdoms sheikh sheikha sheikhas sheikhdom sheikhdoms sheikhs sheiks sheila sheilas shekel shekels sheldduck sheldducks sheldrake sheldrakes shelduck shelducks shelf shelfed shelfing shelflike shelfroom shelfy shell shellac shellacked shellacs shellback shellbacks shellbark shellbarks shellbound shelled sheller shellers shellfire shellfires shellfish shellful shellfuls shellier shelliest shelliness shelling shellings shellproof shells shellshock shellwork shelly shellycoat shelter sheltered shelterer shelterers sheltering shelters sheltery sheltie shelties shelty shelve shelved shelves shelvier shelviest shelving shelvings shelvy shemozzle shemozzles shenanigan shend shending shends shent shepherd shepherded shepherds sherardise sherardize sherbet sherbets sherd sherds shereef shereefs sherif sheriff sheriffdom sheriffs sherifian sherifs sherlock sherlocks sherpa sherpas sherries sherris sherry sherwani sherwanis shes shet shetland shetlands sheuch sheuched sheuching sheuchs sheugh sheughed sheughing sheughs sheva shevas shew shewbread shewbreads shewed shewel shewels shewing shewn shews shiatsu shiatzu shibah shibahs shibboleth shibuichi shicker shickered shicksa shicksas shidder shied shiel shield shielded shielder shielders shielding shieldless shieldlike shieldling shields shieldwall shieling shielings shiels shier shiers shies shiest shift shifted shifter shifters shiftier shiftiest shiftily shiftiness shifting shiftings shiftless shifts shiftwork shifty shigella shigellas shiitake shikar shikaree shikarees shikari shikaris shikars shiksa shiksas shikse shikses shill shillaber shillabers shillalah shillalahs shillelagh shilling shillings shilpit shily shim shimmer shimmered shimmering shimmers shimmery shimmied shimmies shimmy shimmying shims shin shinbone shinbones shindies shindig shindigs shindy shine shined shineless shiner shiners shines shingle shingled shingler shinglers shingles shinglier shingliest shingling shinglings shingly shinier shiniest shininess shining shiningly shinned shinnies shinning shinny shins shinties shinty shiny ship shipboard shipboards shipful shipfuls shiplap shiplapped shiplaps shipless shipload shiploads shipman shipmate shipmates shipmen shipment shipments shipped shippen shippens shipper shippers shipping shippings shippo shippon shippons shippos ships shipshape shipway shipways shipwreck shipwrecks shipwright shipyard shipyards shiralee shiralees shire shireman shiremen shires shirk shirked shirker shirkers shirking shirks shirr shirred shirring shirrings shirrs shirt shirted shirtier shirtiest shirtiness shirting shirtless shirts shirtwaist shirty shit shite shites shithead shitheads shiting shits shittah shittahs shitted shittim shittims shittiness shitting shitty shiv shivah shivahs shivaree shive shiver shivered shiverer shiverers shivering shiverings shivers shivery shives shivoo shivoos shivs shivved shivving shlemiel shlemiels shlemozzle shlep shlepped shlepper shleppers shlepping shleps shlimazel shlimazels shlock shmaltz shmaltzier shmaltzy shmek shmeks shmo shmock shmocks shmoes shmoose shmoosed shmooses shmoosing shmooze shmoozed shmoozes shmoozing shmuck shmucks shoal shoaled shoalier shoaliest shoaling shoalings shoalness shoals shoalwise shoaly shoat shoats shock shockable shocked shocker shockers shocking shockingly shocks shockstall shod shoddier shoddies shoddiest shoddily shoddiness shoddy shoder shoders shoe shoeblack shoeblacks shoebox shoeboxes shoebuckle shoed shoehorn shoehorned shoehorns shoeing shoeings shoelace shoelaces shoeless shoemaker shoemakers shoemaking shoer shoers shoes shoeshine shoeshines shoestring shoetree shoetrees shofar shofars shofroth shog shogged shogging shoggle shoggled shoggles shoggling shoggly shogi shogs shogun shogunal shogunate shogunates shoguns shoji shojis shola sholas sholom shone shoneen shoneens shonkier shonkiest shonky shoo shooed shoofly shoogle shoogled shoogles shoogling shoogly shooing shook shooks shool shooled shooling shools shoon shoos shoot shootable shooter shooters shooting shootings shootist shoots shop shopaholic shopboard shopboards shope shopful shopfuls shophar shophars shophroth shopkeeper shoplift shoplifted shoplifter shoplifts shopman shopmen shopped shopper shoppers shopping shoppy shops shopwalker shopwoman shopwomen shopworn shoran shore shored shoreless shoreline shorelines shoreman shoremen shorer shorers shores shoresman shoresmen shoreward shorewards shoring shorings shorn short shortage shortages shortarm shortbread shortcake shortcakes shortcrust shortcut shortcuts shorted shorten shortened shortener shorteners shortening shortens shorter shortest shortfall shortfalls shorthand shorthead shorthorn shorthorns shortie shorties shorting shortish shortly shortness shorts shorty shot shote shotes shotgun shotguns shotmaker shots shott shotted shotten shotting shotts shough shoughs should shoulder shouldered shoulders shouldest shouldst shout shouted shouter shouters shouting shoutingly shoutings shouts shove shoved shovel shoveler shovelers shovelful shovelfuls shovelled shoveller shovellers shovelling shovelnose shovels shover shovers shoves shoving show showbiz showbizzy showboat showboated showboater showboats showbread showbreads showcase showcased showcases showcasing showed shower showered showerful showerier showeriest showering showerings showerless showers showery showghe showghes showgirl showgirls showground showier showiest showily showiness showing showings showjumper showman showmen shown showpiece showpieces showplace showplaces showroom showrooms shows showy shoyu shraddha shraddhas shrank shrapnel shrapnels shred shredded shredder shredders shredding shreddings shreddy shredless shreds shrew shrewd shrewder shrewdest shrewdie shrewdies shrewdly shrewdness shrewish shrewishly shrews shriech shriek shrieked shrieker shriekers shrieking shriekings shrieks shrieval shrievalty shrieve shrieved shrieves shrieving shrift shrifts shrike shrikes shrill shrilled shriller shrillest shrilling shrillings shrillness shrills shrilly shrimp shrimped shrimper shrimpers shrimping shrimpings shrimps shrimpy shrinal shrine shrined shrinelike shrines shrining shrink shrinkable shrinkage shrinkages shrinker shrinkers shrinking shrinks shrinkwrap shrive shrived shrivel shriveled shriveling shrivelled shrivels shriven shriver shrivers shrives shriving shroff shroffed shroffing shroffs shroud shrouded shrouding shroudings shroudless shrouds shroudy shrove shrub shrubbed shrubbery shrubbier shrubbiest shrubbing shrubby shrubless shrublike shrubs shrug shrugged shrugging shrugs shrunk shrunken shtchi shtchis shtetel shtetl shtetlach shtetls shtick shticks shtook shtoom shtuck shtum shtumm shtup shtupped shtupping shtups shubunkin shubunkins shuck shucked shucker shuckers shucking shuckings shucks shuckses shudder shuddered shuddering shudders shuddery shuffle shuffled shuffler shufflers shuffles shuffling shufflings shufti shufties shufty shul shuln shuls shun shunless shunnable shunned shunner shunners shunning shuns shunt shunted shunter shunters shunting shuntings shunts shush shushed shushes shushing shut shute shuted shutes shuting shuts shutter shutterbug shuttered shuttering shutters shutting shuttle shuttled shuttles shuttling shwa shwas shy shyer shyers shyest shying shyish shyly shyness shyster shysters si sial sialagogic sialagogue sialic sialogogue sialoid sialolith sialoliths siamang siamangs siamese siamesed siameses siamesing sib sibilance sibilancy sibilant sibilantly sibilants sibilate sibilated sibilates sibilating sibilation sibilator sibilatory sibilous sibling siblings sibs sibship sibships sibyl sibylic sibyllic sibyls sic siccan siccar siccative siccatives siccity sice sices sich siciliana sicilianas siciliano sicilianos sicilienne sick sicked sicken sickened sickener sickeners sickening sickenings sickens sicker sickerly sickerness sickest sickie sickies sicking sickish sickishly sickle sickled sickleman sicklemen sicklemia sickles sicklied sicklier sickliest sicklily sickliness sickly sickness sicknesses sicko sickos sicks sida sidalcea sidalceas sidas siddha siddhi siddur siddurim side sidearm sidearms sideboard sideboards sideburn sideburns sidecar sidecars sided sidedress sidelight sidelights sidelined sideling sidelong sideman sidemen sider sideral siderate siderated siderates siderating sideration sidereal siderite siderites sideritic siderolite siderosis siderostat siders sides sidesman sidesmen sidestream sideswipe sideswiped sideswiper sideswipes sidetrack sidetracks sidewalk sidewalks sidewall sidewalls sideward sidewards sideways sidewinder sidewise siding sidings sidle sidled sidles sidling siege siegecraft sieged sieger siegers sieges sieging siemens sienna siennas sierra sierran sierras siesta siestas sieve sieved sievert sieverts sieves sieving sifaka sifakas siffle siffled siffles siffleur siffleurs siffleuse siffleuses siffling sift sifted sifter sifters sifting siftings sifts sigh sighed sigher sighers sighful sighing sighingly sighs sight sightable sighted sighter sighters sighting sightings sightless sightlier sightliest sightline sightlines sightly sights sightsaw sightsee sightseen sightseer sightseers sightsees sightsman sightsmen sigil sigillarid sigillary sigillate sigils sigla siglum sigma sigmate sigmated sigmates sigmatic sigmating sigmation sigmations sigmatism sigmoid sigmoidal sign signage signal signaled signaler signalers signaling signalise signalised signalises signalize signalized signalizes signalled signaller signallers signalling signally signalman signalmen signals signaries signary signatory signature signatures signboard signboards signed signer signers signet signeted signets signeur significs signified signifier signifiers signifies signify signifying signing signless signor signora signoras signore signori signoria signorial signories signorina signorinas signorine signorino signors signory signpost signposted signposts signs sika sikas sike sikes sikorsky silage silaged silages silaging silane sild silds sile siled silen silence silenced silencer silencers silences silencing silene silenes sileni silens silent silentiary silently silentness silenus silenuses siler silers siles silesia silex silhouette silica silicane silicate silicates siliceous silicic silicide silicides silicified silicifies silicify silicious silicium silicle silicles silicon silicone silicones silicosis silicotic silicotics silicula siliculas silicule silicules siliculose siling siliqua siliquas silique siliques siliquose silk silked silken silkened silkening silkens silkie silkier silkies silkiest silkily silkiness silking silks silktail silktails silkweed silkworm silkworms silky sill sillabub sillabubs silladar silladars siller sillers sillier sillies silliest sillily silliness sillock sillocks sills silly silo siloed siloing silos silphia silphium silphiums silt siltation siltations silted siltier siltiest silting silts siltstone silty silurid siluroid siluroids silva silvae silvan silvans silvas silver silverback silverbill silvered silverier silveriest silvering silverings silverise silverised silverises silverize silverized silverizes silverling silverly silvern silvers silverside silverskin silvertail silverware silverweed silvery sim sima simar simarouba simaroubas simars simaruba simarubas simazine simi simial simian simians similar similarity similarly similative simile similes similise similised similises similising similitude similize similized similizes similizing similor simious simis simitar simitars simkin simkins simmer simmered simmering simmers simnel simnels simoniac simoniacal simoniacs simonies simonious simonist simonists simony simoom simooms simoon simoons simorg simorgs simp simpai simpais simpatico simper simpered simperer simperers simpering simpers simple simpled simpleness simpler simplers simples simplesse simplest simpleton simpletons simplex simplices simplicity simplified simplifier simplifies simplify simpling simplings simplism simplist simpliste simplistic simplists simply simps sims simul simulacra simulacre simulacres simulacrum simulant simulants simular simulars simulate simulated simulates simulating simulation simulative simulator simulators simulatory simulcast simulcasts simulium simuls simurg simurgh simurghs simurgs sin sinapism sinapisms sinarchism sinarchist sinarquism sinarquist since sincere sincerely sincerer sincerest sincerity sincipita sincipital sinciput sinciputs sind sinded sinding sindings sindon sindons sinds sine sinecure sinecures sinecurism sinecurist sines sinew sinewed sinewing sinewless sinews sinewy sinfonia sinfonias sinful sinfully sinfulness sing singable singe singed singeing singer singers singes singing singingly singings single singled singlehood singleness singles singlet singleton singletons singletree singlets singling singlings singly sings singsong singsonged singsongs singspiel singspiels singular singularly singulars singult singults singultus sinh sinical sinicise sinicised sinicises sinicising sinicize sinicized sinicizes sinicizing sinister sinisterly sinistral sinistrals sinistrous sink sinkable sinkage sinkages sinker sinkers sinking sinkings sinks sinky sinless sinlessly sinned sinner sinners sinnet sinnets sinning sinopia sinopias sinopite sinopites sins sinsemilla sinsyne sinter sintered sintering sinters sinuate sinuated sinuately sinuation sinuations sinuitis sinuose sinuosity sinuous sinuously sinus sinuses sinusitis sinusoid sinusoidal sinusoids sip sipe siped sipes siphon siphonage siphonages siphonal siphonate siphoned siphonet siphonets siphonic siphoning siphonogam siphons siphuncle siphuncles siping sipped sipper sippers sippet sippets sipping sipple sippled sipples sippling sips sipunculid sir sircar sircars sirdar sirdars sire sired siren sirene sirenes sirenian sirenians sirenic sirenise sirenised sirenises sirenising sirenize sirenized sirenizes sirenizing sirens sires sirgang sirgangs siri siriasis sirih sirihs siring siris sirkar sirkars sirloin sirloins siroc sirocco siroccos sirocs sirrah sirrahs sirred sirree sirring sirs sirup siruped siruping sirups sirvente sirventes sis sisal siseraries siserary siskin siskins siss sisses sissier sissies sissiest sissified sissoo sissoos sissy sist sisted sister sistered sisterhood sistering sisterless sisterly sisters sisting sistra sistrum sists sit sitar sitarist sitarists sitars sitatunga sitatungas sitcom sitcoms sitdown sitdowns site sited sites sitfast sitfasts sith sithe sithen sithence sithens sithes siting sitiology sitology sitophobia sitrep sitreps sits sitter sitters sittine sitting sittings situate situated situates situating situation situations situla situlae situs situtunga situtungas sitzkrieg sitzkriegs siver sivers siwash six sixain sixaine sixaines sixains sixer sixers sixes sixfold sixpence sixpences sixpennies sixpenny sixscore sixscores sixte sixteen sixteener sixteeners sixteenmo sixteenmos sixteens sixteenth sixteenths sixtes sixth sixthly sixths sixties sixtieth sixtieths sixty sizable sizar sizars sizarship sizarships size sizeable sized sizer sizers sizes siziness sizing sizings sizy sizzle sizzled sizzler sizzlers sizzles sizzling sizzlingly sizzlings sjambok sjambokked sjamboks ska skag skail skailed skailing skails skald skaldic skalds skaldship skank skanked skanking skanks skart skarts skat skate skateboard skated skatepark skater skaters skates skating skatings skatole skats skaw skaws skean skeans skedaddle skedaddled skedaddler skedaddles skeely skeer skeery skeesicks skeet skeeter skeg skegger skeggers skegs skeigh skein skeins skelder skeldered skeldering skelders skeletal skeleton skeletons skelf skelfs skell skellied skellies skelloch skelloched skellochs skells skellum skellums skelly skellying skelm skelms skelp skelped skelping skelpings skelps skelter skeltered skeltering skelters skene skenes skeo skeos skep skepful skepfuls skepped skepping skeps skepses skepsis skeptic skeptical skepticism skeptics sker skerred skerrick skerries skerring skerry skers sketch sketchable sketched sketcher sketchers sketches sketchier sketchiest sketchily sketching sketchy skeuomorph skew skewbald skewbalds skewed skewer skewered skewering skewers skewing skewness skews ski skiable skiagram skiagrams skiagraph skiagraphs skiamachy skiascopy skid skidded skidder skidders skidding skidlid skidlids skidoo skidoos skidpan skidpans skidproof skids skied skier skiers skies skiey skiff skiffed skiffing skiffle skiffs skiing skiings skijoring skilful skilfully skill skilled skilless skillet skillets skillful skillfully skilling skillings skillion skills skilly skim skimmed skimmer skimmers skimmia skimmias skimming skimmingly skimmings skimp skimped skimpier skimpiest skimpily skimping skimpingly skimps skimpy skims skin skincare skinflick skinflicks skinflint skinflints skinful skinfuls skinhead skinheads skink skinked skinker skinkers skinking skinks skinless skinned skinner skinners skinnier skinniest skinniness skinning skinny skins skint skip skipjack skipjacks skiplane skiplanes skipped skipper skippered skippering skippers skippet skippets skipping skippingly skippy skips skirl skirled skirling skirlings skirls skirmish skirmished skirmisher skirmishes skirr skirred skirret skirrets skirring skirrs skirt skirted skirter skirters skirting skirtings skirtless skirts skis skit skite skited skites skiting skits skitter skittered skittering skitters skittish skittishly skittle skittled skittles skittling skive skived skiver skivered skivering skivers skives skiving skivings skivvies skivvy sklate sklated sklates sklating sklent sklented sklenting sklents skoal skoals skokiaan skokiaans skol skolia skolion skollie skollies skolly skols skreigh skreighed skreighing skreighs skrik skriks skrimshank skua skuas skulk skulked skulker skulkers skulking skulkingly skulkings skulks skull skulls skunk skunkbird skunkbirds skunks sky skyborn skyclad skydive skydived skydiver skydivers skydives skydiving skyer skyers skyey skyhook skyhooks skying skyish skyjack skyjacked skyjacker skyjackers skyjacking skyjacks skylab skylark skylarked skylarker skylarkers skylarking skylarks skylight skylights skyline skylines skyman skymen skyre skyred skyres skyring skysail skysails skyscape skyscapes skyscraper skyward skywards skywave skyway skyways skywriter skywriters skywriting slab slabbed slabber slabbered slabberer slabberers slabbering slabbers slabbery slabbiness slabbing slabby slabs slabstone slabstones slack slacked slacken slackened slackening slackens slacker slackers slackest slacking slackly slackness slacks sladang sladangs slade slades slae slaes slag slagged slaggier slaggiest slagging slaggy slags slain sl‡inte slaister slaistered slaisters slaistery slake slaked slakeless slakes slaking slalom slalomed slaloming slaloms slam slammakin slammed slammer slammerkin slammers slamming slams slander slandered slanderer slanderers slandering slanderous slanders slane slanes slang slanged slangier slangiest slangily slanginess slanging slangings slangish slangs slangular slangy slant slanted slanting slantingly slantly slants slantways slantwise slap slapjack slapped slapper slappers slapping slaps slapshot slapshots slapstick slapsticks slash slashed slasher slashers slashes slashing slashings slat slatch slate slated slater slaters slates slather slatier slatiest slatiness slating slatings slats slatted slatter slattered slattering slattern slatternly slatterns slatters slattery slatting slaty slaughter slaughters slave slaved slaver slavered slaverer slaverers slavering slavers slavery slaves slavey slaveys slaving slavish slavishly slavocracy slavocrat slavocrats slaw slaws slay slayed slayer slayers slaying slays sleave sleaved sleaves sleaving sleaze sleazebag sleazebags sleazeball sleazes sleazier sleaziest sleazily sleaziness sleazy sled sledded sledding sleddings sledge sledged sledger sledgers sledges sledging sledgings sleds slee sleech sleeches sleechy sleek sleeked sleeken sleekened sleekening sleekens sleeker sleekers sleekest sleekier sleekiest sleeking sleekings sleekit sleekly sleekness sleeks sleekstone sleeky sleep sleeper sleepers sleepier sleepiest sleepily sleepiness sleeping sleepings sleepless sleepry sleeps sleepwalk sleepwalks sleepy sleer sleet sleeted sleetier sleetiest sleetiness sleeting sleets sleety sleeve sleeved sleeveen sleeveens sleeveless sleever sleevers sleeves sleeving sleezy sleigh sleighed sleigher sleighers sleighing sleighings sleighs sleight sleights slender slenderer slenderest slenderise slenderize slenderly slenter slenters slept sleuth sleuthed sleuthing sleuths slew slewed slewing slews sley sleys slice sliced slicer slicers slices slicing slicings slick slicked slicken slickened slickening slickens slicker slickered slickers slickest slicking slickings slickly slickness slicks slickstone slid slidden slidder sliddered sliddering slidders sliddery slide slided slider sliders slides sliding slidingly slidings slier sliest slight slighted slighter slightest slighting slightish slightly slightness slights slily slim slime slimeball slimeballs slimed slimes slimier slimiest slimily sliminess sliming slimline slimly slimmed slimmer slimmers slimmest slimming slimmings slimmish slimness slims slimsy slimy sling slingback slingbacks slinger slingers slinging slings slingstone slink slinker slinkers slinkier slinkiest slinking slinks slinkskin slinkskins slinkweed slinkweeds slinky slinter slinters slip slipcover slipcovers slipe slipes slipform slipforms slipover slipovers slippage slippages slipped slipper slippered slipperier slipperily slippering slippers slippery slippier slippiest slippiness slipping slippy sliprail slips slipshod slipslop slipslops slipstream slipt slipware slipwares slipway slipways slish slit slither slithered slithering slithers slithery slits slitter slitters slitting slive slived sliven sliver slivered slivering slivers slives sliving slivovic slivovics slivovitz sloan sloans slob slobber slobbered slobbering slobbers slobbery slobbish slobby slobland sloblands slobs slocken slockened slockening slockens sloe sloebush sloebushes sloes sloethorn sloethorns sloetree sloetrees slog slogan sloganeer sloganeers sloganise sloganised sloganises sloganize sloganized sloganizes slogans slogged slogger sloggers slogging slogs sloid sloom sloomed slooming slooms sloomy sloop sloops sloosh slooshed slooshes slooshing sloot sloots slop slope sloped slopes slopewise sloping slopingly slopped sloppier sloppiest sloppily sloppiness slopping sloppy slops slopwork slopy slosh sloshed sloshes sloshier sloshiest sloshing sloshy slot sloth slothed slothful slothfully slothing sloths slots slotted slotter slotters slotting slouch slouched sloucher slouchers slouches slouchier slouchiest slouching slouchy slough sloughed sloughier sloughiest sloughing sloughs sloughy slove sloven slovenlier slovenlike slovenly slovens slow slowback slowbacks slowcoach slowed slower slowest slowing slowings slowish slowly slowness slowpoke slowpokes slows slowworm slowworms sloyd slub slubbed slubber slubbered slubbering slubbers slubbing slubbings slubby slubs sludge sludges sludgier sludgiest sludgy slue slued slueing slues slug slugfest slugfests sluggabed sluggabeds sluggard sluggards slugged slugger sluggers slugging sluggish sluggishly slughorn slughorns slugs sluice sluiced sluices sluicing sluicy sluit slum slumber slumbered slumberer slumberers slumberful slumbering slumberous slumbers slumbery slumbrous slumlord slumlords slummed slummer slummers slummier slummiest slumming slummings slummock slummocked slummocks slummy slump slumped slumping slumps slumpy slums slung slunk slur slurb slurbs slurp slurped slurping slurps slurred slurries slurring slurry slurs sluse slused sluses slush slushed slushes slushier slushiest slushing slushy slusing slut sluts slutteries sluttery sluttish sluttishly sly slyboots slyer slyest slyish slyly slyness slype slypes smack smacked smacker smackers smacking smackings smacks smaik smaiks small smallage smallages smalled smaller smallest smallgoods smalling smallish smallness smallpox smalls smalm smalmed smalmier smalmiest smalmily smalminess smalming smalms smalmy smalt smalti smaltite smalto smaltos smalts smaragd smaragdine smaragdite smaragds smarm smarmed smarmier smarmiest smarmily smarminess smarming smarms smarmy smart smartarse smartarses smartass smartasses smarted smarten smartened smartening smartens smarter smartest smartie smarties smarting smartish smartly smartness smarts smarty smash smashed smasher smasheroo smasheroos smashers smashes smashing smatch smatched smatches smatching smatter smattered smatterer smatterers smattering smatters smear smeared smearier smeariest smearily smeariness smearing smears smeary smeath smectic smectite smeddum smeddums smee smeech smeeched smeeches smeeching smeek smeeked smeeking smeeks smees smeeth smegma smegmas smell smelled smeller smellers smellier smelliest smelliness smelling smellings smells smelly smelt smelted smelter smelteries smelters smeltery smelting smeltings smelts smeuse smew smews smicker smickering smicket smickets smidgen smidgens smidgeon smidgeons smidgin smidgins smifligate smilax smilaxes smile smiled smileful smileless smiler smilers smiles smilet smiley smileys smiling smilingly smilings smilodon smilodons smir smirch smirched smirches smirching smirk smirked smirkier smirkiest smirking smirkingly smirks smirky smirr smirred smirring smirrs smirs smit smite smiter smiters smites smith smithcraft smithed smitheries smithers smithery smithies smithing smiths smithy smiting smits smitten smitting smittle smock smocked smocking smockings smocks smog smoggier smoggiest smoggy smogs smokable smoke smoked smokeho smokehos smokeless smokeproof smoker smokers smokes smoketight smokier smokies smokiest smokily smokiness smoking smokings smoko smokos smoky smolder smolt smolts smooch smooched smooches smooching smoodge smoodged smoodges smoodging smooge smooged smooges smooging smoot smooted smooth smoothe smoothed smoothen smoothened smoothens smoother smoothers smoothes smoothest smoothie smoothies smoothing smoothings smoothish smoothly smoothness smoothpate smooths smooting smoots smore smored smores smoring sm¯rrebr¯d smorzando smorzandos smorzato smote smother smothered smotherer smotherers smothering smothers smothery smouch smouched smouches smouching smoulder smouldered smoulders smous smouse smouser smout smouted smouting smouts smowt smowts smriti smudge smudged smudger smudgers smudges smudgier smudgiest smudgily smudginess smudging smudgy smug smugged smugger smuggest smugging smuggle smuggled smuggler smugglers smuggles smuggling smugglings smugly smugness smugs smur smurred smurring smurry smurs smut smutch smutched smutches smutching smuts smutted smuttier smuttiest smuttily smuttiness smutting smutty smytrie smytries snab snabble snabbled snabbles snabbling snabs snack snacked snacking snacks snaffle snaffled snaffles snaffling snafu snag snagged snaggier snaggiest snagging snaggy snags snail snailed snaileries snailery snailing snails snaily snake snakebird snakebirds snakebite snakebites snaked snakelike snakeroot snakeroots snakes snakeskin snakestone snakeweed snakeweeds snakewise snakewood snakewoods snakier snakiest snakily snakiness snaking snakish snaky snap snapdragon snaphance snapped snapper snappers snappier snappiest snappily snapping snappingly snappings snappish snappishly snappy snaps snapshot snapshots snare snared snarer snarers snares snaring snarings snark snarks snarl snarled snarler snarlers snarlier snarliest snarling snarlingly snarlings snarls snarly snary snash snashed snashes snashing snaste snastes snatch snatched snatcher snatchers snatches snatchier snatchiest snatchily snatching snatchy snath snathe snathes snaths snazzier snazziest snazzy snead sneads sneak sneaked sneaker sneakers sneakier sneakiest sneakily sneakiness sneaking sneakingly sneakish sneakishly sneaks sneaksbies sneaksby sneaky sneap sneaped sneaping sneaps sneath sneaths sneb snebbed snebbing snebs sneck snecked snecking snecks sned snedded snedding sneds snee sneed sneeing sneer sneered sneerer sneerers sneering sneeringly sneerings sneers sneery snees sneesh sneeshes sneeshing sneeshings sneeze sneezed sneezer sneezers sneezes sneezeweed sneezewood sneezewort sneezier sneeziest sneezing sneezings sneezy snell snelled sneller snellest snelling snells snelly snib snibbed snibbing snibs snick snicked snicker snickered snickering snickers snicket snickets snicking snicks snide snidely snideness snider snides snidest sniff sniffed sniffer sniffers sniffier sniffiest sniffily sniffiness sniffing sniffingly sniffings sniffle sniffled sniffler snifflers sniffles sniffling sniffs sniffy snift snifted snifter sniftered sniftering snifters snifties snifting snifts snifty snig snigged snigger sniggered sniggerer sniggerers sniggering sniggers snigging sniggle sniggled sniggler snigglers sniggles sniggling snigglings snigs snip snipe sniped sniper snipers snipes sniping snipings snipped snipper snippers snippet snippets snippety snippier snippiest snipping snippings snippy snips snipy snirt snirtle snirtled snirtles snirtling snirts snit snitch snitched snitcher snitchers snitches snitching snits snivel snivelled sniveller snivellers snivelling snivelly snivels snob snobbery snobbier snobbiest snobbish snobbishly snobbism snobby snobling snoblings snobocracy snobs snod snodded snodding snoddit snods snoek snoeks snog snogged snogging snogs snoke snoked snokes snoking snood snooded snooding snoods snook snooked snooker snookered snookering snookers snooking snooks snookses snool snooled snooling snools snoop snooped snooper snoopers snooping snoops snoopy snoot snooted snootful snootfuls snootier snootiest snootily snootiness snooting snoots snooty snooze snoozed snoozer snoozers snoozes snoozing snoozle snoozled snoozles snoozling snoozy snore snored snorer snorers snores snoring snorings snorkel snorkeler snorkelers snorkelled snorkels snort snorted snorter snorters snortier snortiest snorting snortingly snortings snorts snorty snot snots snotted snotter snotters snottier snottiest snottily snottiness snotting snotty snout snouted snoutier snoutiest snouting snouts snouty snow snowball snowballed snowballs snowberry snowblower snowboard snowboards snowbush snowbushes snowcap snowcaps snowdrift snowdrifts snowdrop snowdrops snowed snowfall snowfalls snowfield snowfields snowflake snowflakes snowier snowiest snowily snowiness snowing snowish snowk snowked snowking snowks snowless snowlike snowline snowlines snowman snowmen snowmobile snows snowscape snowscapes snowslip snowstorm snowstorms snowy snub snubbed snubber snubbers snubbier snubbiest snubbing snubbingly snubbings snubbish snubby snubnose snubs snuck snudge snudged snudges snudging snuff snuffbox snuffboxes snuffed snuffer snuffers snuffier snuffiest snuffiness snuffing snuffings snuffle snuffled snuffler snufflers snuffles snuffling snufflings snuffly snuffs snuffy snug snugged snugger snuggeries snuggery snuggest snugging snuggle snuggled snuggles snuggling snugly snugness snugs snuzzle snuzzled snuzzles snuzzling sny snye snyes so soak soakage soakaway soakaways soaked soaken soaker soakers soaking soakingly soakings soaks soap soapberry soapbox soapboxes soaped soaper soapers soapier soapiest soapily soapiness soaping soapless soaps soapstone soapwort soapworts soapy soar soared soarer soarers soaring soaringly soarings soars sob sobbed sobbing sobbingly sobbings sobeit sober sobered soberer soberest sobering soberingly soberise soberised soberises soberising soberize soberized soberizes soberizing soberly soberness sobers sobersides sobole soboles sobriety sobriquet sobriquets sobs soc soca socage socager socagers socages soccage soccer sociable sociably social socialise socialised socialises socialism socialist socialists socialite socialites sociality socialize socialized socializes socially socialness socials sociate sociates sociation sociative societal societally societary societies society sociogram sociograms sociologic sociology sociometry sociopath sociopaths sociopathy sock socked socker socket socketed socketing sockets sockeye sockeyes socking socko socks socle socles socman socmen socs sod soda sodaic sodalite sodalities sodality sodamide sodas sodbuster sodbusters sodded sodden soddened soddening soddenness soddens sodding soddy sodger sodgered sodgering sodgers sodic sodium sodomise sodomised sodomises sodomising sodomitic sodomize sodomized sodomizes sodomizing sodomy sods soever sofa sofar sofas soffit soffits soft softa softas softback softbacks softball soften softened softener softeners softening softenings softens softer softest softhead softheads softie softies softish softling softlings softly softness softs software softwood softy sog soger sogered sogering sogers sogged soggier soggiest soggily sogginess sogging soggings soggy sogs soh sohs soil soilage soiled soiling soilings soilless soils soilure soily soja sojas sojourn sojourned sojourner sojourners sojourning sojourns sokah soke sokeman sokemanry sokemen soken sokens sokes sol sola solace solaced solacement solaces solacing solacious solan solander solanders solanine solano solanos solans solanum solanums solar solaria solarise solarised solarises solarising solarism solarist solarists solarium solariums solarize solarized solarizes solarizing solars solas solatia solation solatium sold soldado soldados soldan soldans solder soldered solderer solderers soldering solderings solders soldi soldier soldiered soldieries soldiering soldierly soldiers soldiery soldo sole solecise solecised solecises solecising solecism solecisms solecist solecistic solecists solecize solecized solecizes solecizing soled solely solemn solemner solemness solemnest solemnify solemnise solemnised solemniser solemnises solemnity solemnize solemnized solemnizer solemnizes solemnly solemnness solen soleness solenette solenettes solenoid solenoidal solenoids solens soler solera solers soles soleus soleuses solfatara solfataras solfataric solfËge solfËges solfeggi solfeggio solferino solferinos solgel soli solicit solicitant solicited soliciting solicitor solicitors solicitous solicits solicitude solid solidago solidagos solidarism solidarist solidarity solidary solidate solidated solidates solidating solider solidest solidi solidified solidifies solidify solidish solidism solidist solidists solidities solidity solidly solidness solids solidum solidums solidus solifidian soliloquy soling solion solions soliped solipedous solipeds solipsism solipsist solipsists solitaire solitaires solitarian solitaries solitarily solitary soliton solitons solitude solitudes solivagant sollar sollars solleret sollerets solo soloed soloing soloist soloists solonchak solonets solonetses solonetz solonetzes solonetzic solos solpugid sols solstice solstices solstitial solubilise solubility solubilize soluble solum solums solus solute solutes solution solutional solutions solutive solvable solvate solvated solvates solvating solvation solve solved solvency solvent solvents solver solvers solves solving soma soman somas somata somatic somatism somatist somatists somatology somatotype somber sombre sombred sombrely sombreness sombrerite sombrero sombreros sombring sombrous some somebodies somebody someday somedeal somegate somehow someone someplace somersault somerset somersets something somethings sometime sometimes someway someways somewhat somewhen somewhence somewhere somewhile somewhiles somewhy somewise somital somite somites somitic sommelier sommeliers somnambule somnial somniate somniated somniates somniating somniative somnific somniloquy somnolence somnolency somnolent son sonance sonances sonancy sonant sonants sonar sonars sonata sonatas sonatina sonatinas sonce sondage sondages sonde sondeli sondelis sondes sone soneri sones song songbird songbirds songbook songbooks songcraft songfest songfests songful songfully songless songman songs songsmith songsmiths songster songsters songstress songwriter sonic sonics sonless sonnet sonnetary sonneted sonneteer sonneteers sonneting sonnetings sonnetise sonnetised sonnetises sonnetist sonnetists sonnetize sonnetized sonnetizes sonnets sonnies sonny sonobuoy sonobuoys sonogram sonograms sonograph sonographs sonography sonorant sonorants sonorities sonority sonorous sonorously sons sonse sonship sonsie sonsier sonsiest sonsy sontag sontags soogee soogeed soogeeing soogees soogie soogied soogieing soogies soojey soojeyed soojeying soojeys sook sooks sool sooled sooling sools soon sooner soonest soot sooted sooterkin sooterkins sooth soothe soothed soother soothers soothes soothest soothfast soothful soothing soothingly soothings soothly sooths soothsaid soothsay soothsayer soothsays sootier sootiest sootily sootiness sooting sootless soots sooty sop soph sopheric sopherim sophia sophic sophical sophically sophism sophisms sophist sophister sophisters sophistic sophistics sophistry sophists sophomore sophomores sophomoric sophs sopite sopited sopites sopiting sopor soporific soporifics soporose sopors sopped soppier soppiest soppily soppiness sopping soppings soppy soprani sopranini sopranino sopraninos sopranist sopranists soprano sopranos sops sora sorage sorages soral soras sorb sorbaria sorbate sorbates sorbed sorbent sorbents sorbet sorbets sorbing sorbite sorbitic sorbitise sorbitised sorbitises sorbitize sorbitized sorbitizes sorbitol sorbo sorbos sorbs sorbus sorbuses sorcerer sorcerers sorceress sorceries sorcerous sorcery sord sorda sordamente sordes sordid sordidly sordidness sordine sordines sordini sordino sordo sordor sords sore sored soredia soredial sorediate soredium soree sorees sorehead sorehon sorehons sorel sorely soreness sorer sores sorest sorex sorexes sorgho sorghos sorghum sorgo sorgos sori soricident soricine soricoid soring sorites soritic soritical sorn sorned sorner sorners sorning sornings sorns soroban sorobans soroche sororal sororate sororates sororial sororially sororicide sororise sororised sororises sororising sororities sorority sororize sororized sororizes sororizing soroses sorosis sorption sorptions sorra sorrel sorrels sorrier sorries sorriest sorrily sorriness sorrow sorrowed sorrower sorrowers sorrowful sorrowing sorrowings sorrowless sorrows sorry sorryish sort sortable sortation sortations sorted sorter sorters sortie sortied sortieing sorties sortilege sortileger sortilegy sorting sortings sortition sortitions sorts sorus sos soss sossed sosses sossing sossings sostenuto sot soterial sots sotted sottish sottishly sou souari souaris soubise soubises soubrette soubrettes soubriquet souchong souchongs sough soughed soughing soughs sought souk soukous souks soul souled soulful soulfully soulless soullessly souls soum soumed souming soumings soums sound soundcard soundcards soundcheck sounded sounder sounders soundest sounding soundingly soundings soundless soundly soundman soundmen soundness soundproof sounds soup soupÁon soupÁons souper soupers soupier soupiest souple soupled souples soupling soups soupspoon soupspoons soupy sour source sourced sources sourcing sourdeline sourdine sourdines soured sourer sourest souring sourings sourish sourishly sourly sourness sourock sourocks sourpuss sourpusses sours sous sousaphone souse soused souses sousing sousings souslik sousliks soutache soutaches soutane soutanes soutar soutars souteneur souteneurs souter souterrain souters south southed souther southered southering southerly southern southerner southernly southerns southers southing southings southland southlands southmost southpaw southpaws southron southrons souths southward southwards souvenir souvenirs souvlaki souvlakia sov sovenance sovereign sovereigns soviet sovietic sovietise sovietised sovietises sovietism sovietisms sovietize sovietized sovietizes soviets sovran sovranly sovrans sovranties sovranty sovs sow sowans sowar sowarries sowarry sowars sowback sowed sowens sower sowers sowf sowfed sowff sowffed sowffing sowffs sowfing sowfs sowing sowings sowl sowle sowled sowles sowling sowls sown sows sowse sox soy soya soyas soys sozzle sozzled sozzles sozzling sozzly spa space spacecraft spaced spaceless spaceman spacemen spaceport spaceports spacer spacers spaces spaceship spaceships spacewalk spacewalks spacewoman spacewomen spacey spacial spacier spaciest spacing spacings spacious spaciously spacy spade spaded spadefish spadeful spadefuls spadelike spademan spademen spader spaders spades spadesman spadesmen spadework spadger spadgers spadiceous spadices spadille spadilles spading spadix spado spadoes spadones spados spadroon spadroons spae spaed spaeing spaeman spaemen spaer spaers spaes spaewife spaewives spaghetti spaghettis spagyric spagyrical spagyrics spagyrist spagyrists spahee spahees spahi spahis spain spained spaining spains spairge spairged spairges spairging spake spald spalds spale spales spall spallation spalled spalling spalls spalpeen spalpeens spalt spalted spalting spalts spam spammed spammer spammers spamming spammy spams span spanaemia spancel spancelled spancels spandex spandrel spandrels spandril spandrils spane spaned spanes spang spanged spanghew spanging spangle spangled spangler spanglers spangles spanglet spanglets spanglier spangliest spangling spanglings spangly spangs spaniel spanielled spaniels spaning spaniolate spaniolise spaniolize spank spanked spanker spankers spanking spankingly spankings spanks spanless spanned spanner spanners spanning spans spansule spansules spar sparable sparables sparagrass sparaxis spare spared spareless sparely spareness sparer sparers spares sparest sparganium sparge sparged sparger spargers sparges sparging sparid sparids sparing sparingly spark sparked sparking sparkish sparkishly sparkle sparkled sparkler sparklers sparkles sparkless sparklet sparklets sparkling sparklings sparkly sparks sparky sparling sparlings sparoid sparoids sparred sparrer sparrers sparrier sparriest sparring sparrings sparrow sparrows sparry spars sparse sparsedly sparsely sparseness sparser sparsest sparsity spart spartanly sparteine sparterie sparth sparths sparts spas spasm spasmatic spasmic spasmodic spasmodist spasms spastic spasticity spastics spat spatangoid spatchcock spate spates spathe spathed spathes spathic spathose spathulate spatial spatiality spatially spats spatted spattee spattees spatter spattered spattering spatters spatting spatula spatular spatulas spatulate spatule spatules spauld spaulds spavie spavin spavined spawl spawled spawling spawls spawn spawned spawner spawners spawning spawnings spawns spawny spay spayad spayed spaying spays speak speakable speaker speakerine speakers speaking speakingly speakings speaks speal spean speaned speaning speans spear speared spearfish spearhead spearheads spearing spearman spearmen spearmint spearmints spears spearwort spearworts speary spec special specialise specialism specialist speciality specialize specially specials specialty speciate speciated speciates speciating speciation specie species speciesism specific specifical specifics specified specifier specifiers specifies specify specifying specimen specimens speciosity specious speciously speck specked specking speckle speckled speckles speckless speckling specks specky specs spectacle spectacled spectacles spectate spectated spectates spectating spectator spectators spectatrix specter specters spectra spectral spectrally spectre spectres spectrum specula specular speculate speculated speculates speculator speculum sped speech speeched speeches speechful speechify speeching speechless speed speeded speeder speeders speedful speedfully speedier speediest speedily speediness speeding speedings speedless speedo speedos speeds speedster speedsters speedway speedways speedwell speedwells speedy speel speeled speeling speels speer speered speering speerings speers speir speired speiring speirings speirs speiss speisses spek spekboom spekbooms spelaean speld spelded spelder speldered speldering spelders speldin spelding speldings speldins speldrin speldring speldrings speldrins spelds spelean speleology spelk spelks spell spellable spellbind spellbinds spellbound spellcheck spelldown spelldowns spelled speller spellers spellful spellican spellicans spelling spellingly spellings spells spelt spelter spelunker spelunkers spelunking spence spencer spencers spences spend spendable spendall spendalls spender spenders spending spendings spends spent speos speoses sperling sperlings sperm spermaceti spermaduct spermaria spermaries spermarium spermary spermatia spermatic spermatics spermatid spermatids spermatist spermatium spermic spermicide spermiduct spermogone spermous sperms sperrylite sperse spersed sperses spersing sperst spet spetch spetches spew spewed spewer spewers spewiness spewing spews spewy sphacelate sphacelus sphaeridia sphaerite sphaerites sphagnous sphalerite sphendone sphendones sphene sphenic sphenodon sphenodons sphenogram sphenoid sphenoidal sphenoids spheral sphere sphered sphereless spheres spheric spherical sphericity spherics spherier spheriest sphering spheroid spheroidal spheroids spherular spherule spherules spherulite sphery sphincter sphincters sphinges sphingid sphingids sphinx sphinxes sphinxlike sphygmic sphygmoid sphygmus sphygmuses spial spic spica spicae spicas spicate spicated spiccato spiccatos spice spiceberry spiced spicer spiceries spicers spicery spices spicier spiciest spicilege spicileges spicily spiciness spicing spick spicknel spicks spics spicula spicular spiculas spiculate spicule spicules spiculum spicy spider spiderman spidermen spiders spidery spied spiel spieled spieler spielers spieling spiels spies spiff spiffier spiffiest spiffing spiffy spiflicate spignel spignels spigot spigots spik spike spiked spikelet spikelets spikenard spikenards spikes spikier spikiest spikily spikiness spiking spiks spiky spile spiled spiles spilikin spilikins spiling spilings spilite spilitic spill spillage spillages spilled spiller spillers spillikin spillikins spilling spillings spillover spillovers spills spillway spillways spilosite spilt spilth spin spina spinaceous spinach spinaches spinage spinages spinal spinas spinate spindle spindled spindles spindlier spindliest spindling spindlings spindly spindrift spine spined spinel spineless spinels spines spinescent spinet spinets spinier spiniest spinifex spinifexes spiniform spinigrade spininess spink spinks spinnaker spinnakers spinner spinneret spinnerets spinneries spinners spinnerule spinnery spinney spinneys spinnies spinning spinnings spinny spinode spinodes spinose spinosity spinous spinout spinouts spins spinster spinsterly spinsters spinstress spintext spintexts spinulate spinule spinules spinulose spinulous spiny spiracle spiracles spiracula spiracular spiraculum spiraea spiraeas spiral spiralism spirality spiralled spiralling spirally spirals spirant spirants spiraster spirasters spirated spiration spirations spire spirea spireas spired spireless spireme spiremes spires spirewise spirilla spirillar spirillum spiring spirit spirited spiritedly spiritful spiriting spiritings spiritism spiritist spiritists spiritless spiritoso spiritous spirits spiritual spirituals spirituel spirituous spiritus spirituses spirity spirling spirogram spirograph spiroid spirometer spirometry spirt spirted spirting spirtle spirtles spirts spiry spissitude spit spital spitals spitchcock spite spited spiteful spitefully spites spitfire spitfires spiting spits spitted spitten spitter spitters spitting spittings spittle spittlebug spittles spittoon spittoons spitz spitzes spiv spivs spivvy splanchnic splash splashdown splashed splasher splashers splashes splashier splashiest splashily splashing splashings splashy splat splatch splatched splatches splatching splats splatter splattered splatters splay splayed splaying splays spleen spleenful spleenish spleenless spleens spleeny splenative splendent splendid splendidly splendor splendors splendour splendours splendrous splenetic splenetics splenial splenic splenitis splenium spleniums splenius spleniuses splent splented splenting splents spleuchan spleuchans splice spliced splicer splicers splices splicing spliff spliffs spline splined splines splining splint splinted splinter splintered splinters splintery splinting splints splintwood split splits splitter splitters splitting splodge splodged splodges splodging splodgy splore splores splosh sploshed sploshes sploshing splotch splotched splotches splotchier splotchily splotching splotchy splurge splurged splurges splurgier splurgiest splurging splurgy splutter spluttered splutterer splutters spluttery spode spodium spodomancy spodumene spoffish spoffy spoil spoilage spoilbank spoiled spoiler spoilers spoilful spoiling spoils spoilsman spoilsmen spoilt spoke spoken spokes spokeshave spokesman spokesmen spokewise spoliate spoliated spoliates spoliating spoliation spoliative spoliator spoliators spoliatory spondaic spondaical spondee spondees spondulix spondyl spondylous spondyls sponge sponged spongeous sponger spongers sponges spongeware spongewood spongier spongiest spongiform spongily spongin sponginess sponging spongiose spongious spongoid spongology spongy sponsal sponsalia sponsible sponsing sponsings sponsion sponsional sponsions sponson sponsons sponsor sponsored sponsorial sponsoring sponsors spontoon spontoons spoof spoofed spoofer spoofers spoofery spoofing spoofs spook spooked spookery spookier spookiest spookily spookiness spooking spookish spooks spooky spool spooled spooler spoolers spooling spools spoom spoomed spooming spooms spoon spoonbill spoonbills spoondrift spooned spoonerism spooney spooneys spoonful spoonfuls spoonier spoonies spooniest spoonily spooning spoonmeat spoonmeats spoons spoonways spoonwise spoony spoor spoored spoorer spoorers spooring spoors spoot sporadic sporadical sporangia sporangial sporangium spore spores sporidesm sporidesms sporidia sporidial sporidium sporocarp sporocarps sporocyst sporocysts sporogeny sporogonia sporophore sporophyll sporophyte sporozoan sporozoite sporran sporrans sport sportable sportance sportances sported sporter sporters sportful sportfully sportier sportiest sportily sportiness sporting sportingly sportive sportively sportless sports sportscast sportsman sportsmen sportswear sporty sporular sporulate sporulated sporulates sporule sporules sposh sposhy spot spotless spotlessly spotlight spotlights spotlit spots spotted spotter spotters spottier spottiest spottily spottiness spotting spottings spotty spousage spousages spousal spousals spouse spouseless spouses spout spouted spouter spouters spouting spoutless spouts spouty sprack sprackle sprackled sprackles sprackling sprad sprag spragged spragging sprags sprain sprained spraining sprains spraint spraints sprang sprangle sprangled sprangles sprangling sprat sprats sprattle sprattled sprattles sprattling sprauchle sprauchled sprauchles sprauncier sprauncy sprawl sprawled sprawler sprawlers sprawlier sprawliest sprawling sprawls sprawly spray sprayed sprayer sprayers sprayey spraying sprays spread spreader spreaders spreading spreadings spreads spreagh spreaghery spreaghs spreathe spreathed spreathes spreathing spree spreed spreeing sprees sprent sprew sprig sprigged spriggier spriggiest sprigging spriggy spright sprighted sprightful sprighting sprightly sprights sprigs spring springal springald springalds springals springbok springboks springbuck springe springed springer springers springes springhead springier springiest springily springing springings springle springles springless springlet springlets springlike springs springtail springtide springtime springwood springwort springy sprinkle sprinkled sprinkler sprinklers sprinkles sprinkling sprint sprinted sprinter sprinters sprinting sprintings sprints sprit sprite sprites sprits spritsail spritsails spritz spritzed spritzer spritzers spritzes spritzig spritzigs spritzing sprocket sprockets sprod sprods sprog sprogs sprong sprout sprouted sprouting sproutings sprouts spruce spruced sprucely spruceness sprucer spruces sprucest sprucing sprue sprues sprug sprugs spruik spruiked spruiker spruikers spruiking spruiks spruit sprung spry spryer spryest spryly spryness spud spudded spudding spuddy spuds spue spued spues spuilzie spuilzied spuilzies spuing spulebane spulebanes spulyie spulyied spulyieing spulyies spumante spume spumed spumes spumescent spumier spumiest spuming spumoni spumous spumy spun spunge spunk spunked spunkie spunkier spunkies spunkiest spunkiness spunking spunks spunky spur spurge spurges spuriae spuriosity spurious spuriously spurless spurling spurlings spurn spurned spurner spurners spurning spurnings spurns spurred spurrer spurrers spurrey spurreys spurrier spurriers spurries spurring spurrings spurry spurs spurt spurted spurting spurtle spurtles spurts sputa sputnik sputniks sputter sputtered sputterer sputterers sputtering sputters sputtery sputum spy spyglass spyglasses spying spyings spymaster spymasters spyplane spyplanes squab squabash squabashed squabasher squabashes squabbed squabbier squabbiest squabbing squabbish squabble squabbled squabbler squabblers squabbles squabbling squabby squabs squacco squaccos squad squaddie squaddies squaddy squadron squadrone squadroned squadrons squads squail squailed squailer squailers squailing squailings squails squalene squalid squalider squalidest squalidity squalidly squall squalled squaller squallers squallier squalliest squalling squallings squalls squally squaloid squalor squama squamae squamate squamation squame squamella squamellas squames squamiform squamosal squamosals squamose squamosity squamous squamula squamulas squamule squamules squamulose squander squandered squanderer squanders square squared squarely squareness squarer squarers squares squarest squarewise squarial squarials squaring squarings squarish squarrose squarson squarsons squash squashed squasher squashers squashes squashier squashiest squashily squashing squashy squat squatness squats squatted squatter squatters squattest squattier squattiest squatting squatty squaw squawk squawked squawker squawkers squawking squawkings squawks squawky squawman squawmen squaws squeak squeaked squeaker squeakers squeakery squeakier squeakiest squeakily squeaking squeakings squeaks squeaky squeal squealed squealer squealers squealing squealings squeals squeamish squeegee squeegeed squeegees squeezable squeeze squeezed squeezer squeezers squeezes squeezing squeezings squeezy squeg squegged squegger squeggers squegging squegs squelch squelched squelcher squelchers squelches squelchier squelching squelchy squeteague squib squibbed squibbing squibbings squibs squid squidded squidding squidge squidged squidges squidging squidgy squids squiffer squiffers squiffier squiffiest squiffy squiggle squiggled squiggles squigglier squiggling squiggly squilgee squilgeed squilgees squill squilla squills squinancy squinch squinches squinny squint squinted squinter squinters squintest squinting squintings squints squirage squiralty squirarchy squire squirearch squired squiredom squiredoms squireen squireens squirehood squireling squirely squires squireship squiress squiresses squiring squirm squirmed squirming squirms squirmy squirr squirred squirrel squirrelly squirrels squirring squirrs squirt squirted squirter squirters squirting squirtings squirts squish squished squishes squishier squishiest squishing squishy squit squitch squitches squits squitters squiz squizzes sraddha sraddhas st stab stabbed stabber stabbers stabbing stabbingly stabbings stabile stabiles stabilise stabilised stabiliser stabilises stability stabilize stabilized stabilizer stabilizes stable stabled stablemate stableness stabler stablers stables stablest stabling stablings stablish stablished stablishes stably stabs staccato staccatos stachys stack stacked stacker stacking stackings stacks stackyard stackyards stacte stactes stadda staddas staddle staddles stade stades stadholder stadia stadias stadium stadiums staff staffage staffed staffer staffers staffing staffroom staffrooms staffs stag stage stagecoach stagecraft staged stager stagers stagery stages stagey staggard staggards stagged stagger staggered staggerer staggerers staggering staggers stagging staghorn staghorns staghound staghounds stagier stagiest stagily staginess staging stagings stagnancy stagnant stagnantly stagnate stagnated stagnates stagnating stagnation stags stagy staid staider staidest staidly staidness staig staigs stain stained stainer stainers staining stainings stainless stains stair staircase staircases staired stairfoot stairfoots stairhead stairheads stairlift stairlifts stairs stairway stairways stairwise staith staithe staithes staiths stake staked stakes staking stalactic stalactite stalag stalagma stalagmas stalagmite stalags stale staled stalely stalemate stalemated stalemates staleness staler stales stalest staling stalk stalked stalker stalkers stalkier stalkiest stalking stalkings stalkless stalko stalkoes stalks stalky stall stallage stalled stallenger stalling stallings stallion stallions stallman stallmen stalls stalwart stalwartly stalwarts stalworth stalworths stamen stamened stamens stamina staminal staminate stamineal stamineous staminode staminodes staminody stammel stammels stammer stammered stammerer stammerers stammering stammers stamnoi stamnos stamp stamped stampede stampeded stampedes stampeding stamper stampers stamping stampings stamps stance stances stanch stanchable stanched stanchel stanchels stancher stanchered stanchers stanches stanching stanchings stanchion stanchions stanchless stand standard standards standee standees stander standers standfast standgale standgales standing standings standish standishes standpoint stands standstill stane staned stanes stang stanged stanging stangs stanhope stanhopes staniel staniels staning stank stanks stannaries stannary stannate stannates stannator stannators stannel stannels stannic stannite stannites stannotype stannous stanza stanzaic stanzas stanze stanzes stap stapedes stapedial stapedius stapelia stapelias stapes stapeses staph staphyle staphyles staphyline staphyloma staple stapled stapler staplers staples stapling stapped stapping staps star starboard starboards starch starched starchedly starcher starchers starches starchier starchiest starchily starching starchy stardom stare stared starer starers stares starets staretses starfish starfishes starfruit staring staringly starings stark starked starken starkened starkening starkens starker starkers starkest starking starkly starkness starks starless starlet starlets starlight starlike starling starlings starlit starmonger starn starned starnie starnies starning starns starosta starostas starosties starosty starr starred starrier starriest starrily starriness starring starrings starrs starry stars starshine starship starships start started starter starters startful starting startingly startings startish startle startled startler startlers startles startling startlish startly starts starvation starve starved starveling starves starving starvings starwort starworts stases stash stashed stashes stashie stashing stasidion stasidions stasima stasimon stasis statable statal statant state statecraft stated statedly statehood stateless statelier stateliest statelily stately statement statements stater stateroom staterooms states stateside statesman statesmen statewide static statical statically statice statics stating station stational stationary stationed stationer stationers stationery stationing stations statism statist statistic statistics statists stative statocyst statocysts statolith statoliths stator stators statoscope statua statuaries statuary statue statued statues statuesque statuette statuettes stature statured statures status statuses statutable statutably statute statutes statutory staunch staunched stauncher staunches staunchest staunching staunchly staurolite stave staved staves stavesacre staving staw stawed stawing staws stay stayed stayer stayers staying stayings stayless stays staysail staysails stead steaded steadfast steadicam steadicams steadied steadier steadies steadiest steadily steadiness steading steadings steads steady steadying steak steakhouse steaks steal steale stealed stealer stealers steales stealing stealingly stealings steals stealth stealthier stealthily stealthy steam steamboat steamboats steamed steamer steamers steamie steamier steamies steamiest steamily steaminess steaming steamings steams steamship steamships steamtight steamy stean steane steaned steanes steaning steanings steans steapsin stear stearage stearate stearates steard stearic stearin stearine stearing stears stearsman stearsmen steatite steatites steatitic steatocele steatoma steatomas steatosis sted stedd stedde steddes stedds steddy stede stedes stedfast stedfasts steds steed steeds steedy steek steeked steeking steekit steeks steel steelbow steelbows steeled steelhead steelheads steelier steeliest steeliness steeling steelings steels steelwork steelworks steely steelyard steelyards steem steen steenbok steenboks steenbras steened steening steenings steenkirk steenkirks steens steep steeped steepen steepened steepening steepens steeper steepers steepest steepiness steeping steepish steeple steepled steeples steeply steepness steeps steepy steer steerable steerage steerages steered steerer steerers steering steerings steerling steerlings steers steersman steersmen steeve steeved steevely steever steeves steeving steevings steganopod stegnosis stegnotic stegodon stegodons stegodont stegodonts stegomyia stegosaur stegosaurs steil steils stein steinbock steinbocks steined steining steinings steinkirk steinkirks steins stela stelae stelar stelas stele stelene steles stell stellar stellate stellated stellately stelled stellerid stellified stellifies stelliform stellify stelling stellion stellions stells stellular stellulate stem stembok stemboks stembuck stembucks stemless stemlet stemma stemmata stemmatous stemmed stemmer stemmers stemming stemple stemples stems stemson stemsons stemware stemwinder sten stench stenched stenches stenchier stenchiest stenching stenchy stencil stenciled stenciling stencilled stenciller stencils stend stended stending stends stengah stengahs stenned stenning stenograph stenopaeic stenopaic stenosed stenoses stenosis stenotic stenotopic stenotype stenotypes stenotypy stens stent stented stenting stentor stentorian stentors stents step stepbairn stepbairns stepchild stepdame stepdames stepfather stephane stephanes stephanite stepmother stepney stepneys steppe stepped stepper steppers steppes stepping steps stepsister stepson stepsons stept stepwise steradian steradians stercoral stercorary stercorate sterculia sterculias stere stereo stereobate stereogram stereome stereomes stereopsis stereos stereotomy stereotype stereotypy steres steric sterigma sterigmata sterilant sterile sterilise sterilised steriliser sterilises sterility sterilize sterilized sterilizer sterilizes sterlet sterlets sterling sterlings stern sternage sternal sternboard sternebra sternebras sterned sterner sternest sterning sternite sternites sternitic sternly sternmost sternness sternport sternports sterns sternson sternsons sternum sternums sternward sternwards sternway sternways sternworks steroid steroids sterol sterols stertorous sterve stet stets stetted stetting stevedore stevedored stevedores steven stevens stew steward stewardess stewardry stewards stewartry stewed stewing stewings stewpan stewpans stewpond stewponds stewpot stewpots stews stewy stey sthenic stibbler stibblers stibial stibialism stibine stibium stibnite sticcado sticcadoes sticcados stich sticharion sticheron sticherons stichic stichidia stichidium stichoi stichos stichs stick sticked sticker stickers stickful stickfuls stickied stickier stickies stickiest stickily stickiness sticking stickings stickit stickjaw stickjaws stickle stickled stickler sticklers stickles stickling sticks stickup stickups stickweed stickwork sticky stickybeak stickying stiction stied sties stiff stiffen stiffened stiffener stiffeners stiffening stiffens stiffer stiffest stiffish stiffly stiffness stiffs stifle stifled stifler stiflers stifles stifling stiflingly stiflings stigma stigmarian stigmas stigmata stigmatic stigmatics stigmatise stigmatism stigmatist stigmatize stigmatose stigme stigmes stilb stilbene stilbite stilbites stilbs stile stiled stiles stilet stilets stiletto stilettoed stilettoes stilettos stiling still stillage stillages stillatory stilled stiller stillers stillest stillicide stillier stilliest stilling stillings stillion stillions stillness stills stilly stilt stilted stiltedly stilter stilters stiltiness stilting stiltings stiltish stilts stilty stime stimed stimes stimie stimied stimies stiming stimulable stimulancy stimulant stimulants stimulate stimulated stimulates stimulator stimuli stimulus stimy stimying sting stingaree stingarees stinged stinger stingers stingier stingiest stingily stinginess stinging stingingly stingings stingless stingo stingos stings stingy stink stinkard stinkards stinker stinkers stinkhorn stinkhorns stinking stinkingly stinkings stinko stinks stinkstone stinkweed stint stinted stintedly stinter stinters stinting stintingly stintings stintless stints stinty stipa stipas stipe stipel stipellate stipels stipend stipends stipes stipitate stipites stipple stippled stippler stipplers stipples stippling stipplings stipular stipulary stipulate stipulated stipulates stipulator stipule stipuled stipules stir stirabout stirabouts stire stirk stirks stirless stirp stirpes stirps stirra stirrah stirred stirrer stirrers stirring stirringly stirrings stirrup stirrups stirs stishie stitch stitched stitcher stitchers stitchery stitches stitching stitchings stitchwork stitchwort stithied stithies stithy stithying stive stived stiver stivers stives stiving stivy stoa stoae stoai stoas stoat stoats stob stobs stoccado stoccados stoccata stoccatas stochastic stock stockade stockaded stockades stockading stockcar stockcars stocked stocker stockers stockfish stockier stockiest stockily stockiness stockinet stockinets stocking stockinged stockinger stockings stockish stockist stockists stockless stockman stockmen stockpile stockpiled stockpiles stocks stockstill stocktake stocktaken stocktakes stockwork stockworks stocky stockyard stockyards stodge stodged stodger stodgers stodges stodgier stodgiest stodgily stodginess stodging stodgy stoep stogey stogie stogy stoic stoical stoically stoicism stoics stoit stoited stoiter stoitered stoitering stoiters stoiting stoits stoke stoked stokehold stokeholds stoker stokers stokes stoking stola stolas stole stoled stolen stolenwise stoles stolid stolider stolidest stolidity stolidly stolidness stollen stolon stolons stoma stomach stomachal stomached stomacher stomachers stomachful stomachic stomachics stomaching stomachous stomachs stomachy stomal stomata stomatal stomatic stomatitis stomatopod stomp stomped stomper stompers stomping stomps stond stone stoneboat stonechat stonechats stonecrop stonecrops stoned stonefish stonehand stonehorse stoneless stonen stoner stoners stones stoneshot stoneshots stonewall stonewalls stoneware stonework stonewort stoneworts stong stonied stonier stoniest stonily stoniness stoning stonk stonked stonker stonkered stonkering stonkers stonking stonks stony stood stooden stooge stooged stooges stooging stook stooked stooker stookers stooking stooks stool stoolball stooled stoolie stoolies stooling stools stoop stoope stooped stooper stoopers stoopes stooping stoopingly stoops stoor stoors stooshie stop stopbank stopbanks stope stoped stopes stoping stopings stopless stoplight stoplights stoppage stoppages stopped stopper stoppered stoppering stoppers stopping stoppings stopple stoppled stopples stoppling stops storable storage storages storax storaxes store stored storefront storehouse storeman storemen storer storeroom storerooms storers stores storey storeyed storeys storge storiated storied stories storiette storiettes storing storiology stork storks storm stormbound stormed stormful stormfully stormier stormiest stormily storminess storming stormings stormless stormproof storms stormy stornelli stornello story storyboard storying storyings storyline stoss stot stotinka stotinki stotious stots stotted stotter stotters stotting stoun stound stounded stounding stounds stoup stoups stour stours stoury stoush stoushed stoushes stoushing stout stouten stoutened stoutening stoutens stouter stoutest stouth stoutish stoutly stoutness stouts stovaine stove stoved stover stoves stovies stoving stovings stow stowage stowages stowaway stowaways stowdown stowed stower stowers stowing stowings stowlins stown stownlins stows strabism strabismal strabismic strabisms strabismus strabotomy stracchini stracchino strack strad straddle straddled straddles straddling stradiot stradiots strads strae straes strafe strafed strafes strafing strag straggle straggled straggler stragglers straggles stragglier straggling straggly strags straight straighted straighten straighter straightly straights straik straiked straiking straiks strain strained strainedly strainer strainers straining strainings strains straint strait straited straiten straitened straitens straiting straitly straitness straits strake strakes stramash stramashed stramashes stramazon stramazons strammel stramonium stramp stramped stramping stramps strand stranded stranding strands strange strangely stranger strangers strangest strangle strangled strangler stranglers strangles strangling strangury strap strapless strapline straplines strapontin strappado strappados strapped strapper strappers strapping strappings strappy straps strapwort strapworts strass strata stratagem stratagems strategic strategics strategies strategist strategy strath straths strathspey stratified stratifies stratiform stratify stratocrat stratonic stratose stratous stratum stratus stratuses straucht strauchted strauchts stravaig stravaiged stravaigs straw strawberry strawboard strawed strawen strawier strawiest strawing strawless strawlike strawman straws strawy stray strayed strayer strayers straying strayings strayling straylings strays streak streaked streaker streakers streakier streakiest streakily streaking streakings streaks streaky stream streamed streamer streamers streamier streamiest streaming streamings streamless streamlet streamlets streamline streamling streams streamy streek streeked streeking streeks streel street streetage streetful streetfuls streetlamp streets streetway streetways streetwise strelitz strelitzes strelitzi strelitzia strene strenes strength strengthen strengths strenuity strenuous strep strepent streperous strepitant strepitoso strepitous streps stress stressed stresses stressful stressing stressless stressor stressors stretch stretched stretcher stretchers stretches stretchier stretching stretchy stretta strette stretti stretto strew strewage strewed strewer strewers strewing strewings strewment strewn strews stria striae striate striated striation striations striatum striatums striature striatures strich stricken strickle strickled strickles strickling strict stricter strictest strictish strictly strictness stricture strictured strictures strid stridden striddle striddled striddles striddling stride stridelegs stridence stridency strident stridently strides strideways striding stridling stridor stridors strids stridulant stridulate stridulous strife strifeful strifeless strifes strift strifts strig striga strigae strigate strigged strigging strigiform strigil strigils strigine strigose strigs strike strikeout strikeouts striker strikers strikes striking strikingly strikings string stringed stringency stringendo stringent stringer stringers stringhalt stringier stringiest stringily stringing stringings stringless strings stringy strinkle strinkled strinkles strinkling strip stripe striped stripeless striper stripers stripes stripier stripiest striping stripings stripling striplings stripped stripper strippers stripping strippings strips stripy strive strived striven striver strivers strives striving strivingly strivings stroam stroamed stroaming stroams strobe strobes strobic strobila strobilae strobilate strobile strobiles strobili strobiline strobiloid strobilus stroddle stroddled stroddles stroddling strode stroganoff stroke stroked stroker strokers strokes strokesman strokesmen stroking strokings stroll strolled stroller strollers strolling strollings strolls stroma stromata stromatic stromatous stromb strombs strombus strombuses strong strongarm strongarms stronger strongest stronghead stronghold strongish strongly strongman strongmen strongyl strongyle strongyles strongyls strontia strontian strontias strontium strook strooke strooken strookes strop strophe strophes strophic strophiole stropped stroppier stroppiest stropping stroppy strops stroud strouding stroudings strouds stroup stroups strout strouted strouting strouts strove strow strowed strowing strowings strown strows stroy struck structural structure structured structures strudel strudels struggle struggled struggler strugglers struggles struggling strum struma strumae strumatic strumitis strummed strumming strumose strumous strumpet strumpeted strumpets strums strung strunt strunted strunting strunts strut struthioid struthious struts strutted strutter strutters strutting struttings strychnia strychnic strychnine strychnism stub stubbed stubbier stubbies stubbiest stubbiness stubbing stubble stubbled stubbles stubblier stubbliest stubbly stubborn stubborned stubbornly stubborns stubbs stubby stubs stucco stuccoed stuccoer stuccoers stuccoes stuccoing stuccos stuck stud studded studding studdings studdle studdles student studentry students studied studiedly studier studiers studies studio studios studious studiously studs studwork study studying stuff stuffed stuffer stuffers stuffier stuffiest stuffily stuffiness stuffing stuffings stuffs stuffy stuggy stull stulls stulm stulms stultified stultifier stultifies stultify stum stumble stumblebum stumbled stumbler stumblers stumbles stumbling stumbly stumer stumers stumm stummed stumming stump stumpage stumped stumper stumpers stumpier stumpiest stumpily stumpiness stumping stumps stumpy stums stun stung stunk stunkard stunned stunner stunners stunning stunningly stuns stunsail stunsails stunt stunted stunting stuntman stuntmen stunts stupa stupas stupe stuped stupefied stupefier stupefiers stupefies stupefy stupefying stupendous stupent stupes stupid stupider stupidest stupidity stupidly stupidness stupids stuping stupor stuporous stupors stuprate stuprated stuprates stuprating stupration sturdied sturdier sturdies sturdiest sturdily sturdiness sturdy sturgeon sturgeons sturnine sturnoid sturt sturted sturting sturts stushie stutter stuttered stutterer stutterers stuttering stutters sty stye styed styes stying stylar stylate style styled styleless styles stylet stylets styli styliform styling stylise stylised stylises stylish stylishly stylising stylist stylistic stylistics stylists stylite stylites stylize stylized stylizes stylizing stylo stylobate stylobates stylograph styloid styloids stylolite stylolitic stylometry stylophone stylopised stylopized stylos stylus styluses stymie stymied stymies stymying stypses stypsis styptic styptical stypticity styptics styrax styraxes styrene styrenes suability suable suably suasible suasion suasions suasive suasively suasory suave suavely suaveolent suaver suavest suavity sub subabbot subacetate subacid subacidity subacrid subact subacted subacting subacts subacute subacutely subadar subadars subadult subaerial subagency subagent subagents subah subahdar subahdars subahdary subahs subahship subahships subalpine subaltern subalterns subangular subapical subaqua subaquatic subaqueous subarctic subarcuate subarea subarid subarticle subastral subatom subatomic subatomics subatoms subaudible subaural subaverage subbasal subbasals subbase subbed subbing subbings subbranch subbred subbreed subbreeds subbureau subcabinet subcaliber subcantor subcantors subcarrier subcaste subcaudal subcavity subceiling subcellar subcentral subchanter subchapter subchelate subchief subcircuit subclaim subclass subclasses subclause subclauses subclavian subclimax subcompact subcool subcordate subcortex subcosta subcostal subcostals subcostas subcranial subcrust subcrustal subculture subdeacon subdeacons subdean subdeanery subdeans subdecanal subdeliria subdermal subdialect subdivide subdivided subdivider subdivides subdolous subdorsal subduable subdual subduals subduce subduct subducted subducting subduction subducts subdue subdued subduedly subduement subduer subduers subdues subduing subduple subdural subedit subedited subediting subeditor subeditors subedits subentire subequal suber suberate suberates suberect subereous suberic suberin suberise suberised suberises suberising suberize suberized suberizes suberizing suberose suberous subers subfamily subfertile subfeu subfeued subfeuing subfeus subfield subfloor subfloors subframe subfusc subfuscous subfuscs subfusk subfusks subgenera subgeneric subgenre subgenres subgenus subgenuses subglacial subglobose subgoal subgoals subgrade subgroup subgroups subgum subgums subheading subhedral subhuman subhumid subimago subimagos subincise subincised subincises subintrant subitise subitised subitises subitising subitize subitized subitizes subitizing subito subjacent subject subjected subjectify subjecting subjection subjective subjects subjoin subjoinder subjoined subjoining subjoins subjugate subjugated subjugates subjugator subkingdom sublate sublated sublates sublating sublation sublations sublease subleased subleases subleasing sublessee sublessees sublessor sublessors sublet sublethal sublets subletter subletters subletting sublimable sublimate sublimated sublimates sublime sublimed sublimely sublimer sublimes sublimest subliminal subliming sublimings sublimise sublimised sublimises sublimity sublimize sublimized sublimizes sublinear sublingual sublunar sublunars sublunary sublunate subman submanager submarine submarined submariner submarines submatrix submediant submen submental submentum submentums submerge submerged submerges submerging submerse submersed submerses submersing submersion submicron submicrons submiss submission submissive submissly submit submits submitted submitter submitters submitting submontane submucosa submucosal submucous subnascent subnatural subneural subniveal subnivean subnormal subnormals subnuclear suboceanic suboctave suboctaves suboctuple subocular suboffice subofficer suboffices suborbital suborder suborders subordinal suborn suborned suborner suborners suborning suborns subovate suboxide suboxides subphrenic subphyla subphylum subplot subplots subpoena subpoenaed subpoenas subpolar subpotent subprefect subprior subpriors subprogram subregion subregions subreption subreptive subrogate subrogated subrogates subroutine subs subsacral subsample subschema subscribe subscribed subscriber subscribes subscript subscripts subsecive subsection subsellia subsellium subsequent subsere subseres subseries subserve subserved subserves subserving subsessile subset subsets subshrub subshrubby subshrubs subside subsided subsidence subsidency subsides subsidiary subsidies subsiding subsidise subsidised subsidises subsidize subsidized subsidizes subsidy subsist subsisted subsistent subsisting subsists subsizar subsizars subsoil subsoiled subsoiler subsoilers subsoiling subsoils subsolar subsong subsongs subsonic subspecies subspinous substage substages substance substances substation substernal substitute substract substracts substrata substratal substrate substrates substratum substruct substructs substylar substyle substyles subsultive subsultory subsultus subsumable subsume subsumed subsumes subsuming subsurface subsystem subsystems subtack subtacks subtangent subteen subteens subtenancy subtenant subtenants subtend subtended subtending subtends subtense subtenses subtenure subterfuge subterrane subterrene subtext subtexts subtil subtile subtilely subtiler subtilest subtilise subtilised subtilises subtilist subtilists subtility subtilize subtilized subtilizes subtilly subtilties subtilty subtitle subtitled subtitles subtitling subtle subtleness subtler subtlest subtleties subtlety subtlist subtlists subtly subtonic subtonics subtopia subtopian subtopias subtorrid subtotal subtotals subtract subtracted subtracter subtractor subtracts subtrahend subtribe subtribes subtrist subtropic subtropics subtrude subtruded subtrudes subtruding subtype subtypes subulate subungual subunit subunits suburb suburban suburbans suburbia suburbias suburbs subursine subvariety subvassal subvassals subvention subversal subversals subverse subversed subverses subversing subversion subversive subvert subverted subverter subverters subverting subverts subviral subvocal subwarden subwardens subway subways subwoofer subwoofers subzero subzonal subzone subzones succade succades succah succahs succedanea succeed succeeded succeeder succeeders succeeding succeeds succentor succentors succËs success successes successful succession successive successor successors succi succinate succinates succinct succincter succinctly succinic succinite succinum succinyl succise succor succored succories succoring succors succory succose succotash succour succoured succourer succourers succouring succours succous succuba succubae succubas succubi succubine succubous succubus succubuses succulence succulency succulent succulents succumb succumbed succumbing succumbs succursal succursale succursals succus succuss succussed succusses succussing succussion succussive such suchlike suchness suchwise suck sucked sucken suckener suckeners suckens sucker suckered suckering suckers sucket suckhole sucking suckings suckle suckled suckler sucklers suckles suckling sucklings sucks sucrase sucre sucres sucrier sucrose suction suctions suctorial suctorian sucuruj˙ sucuruj˙s sud sudamen sudamina sudaminal sudanic sudaries sudarium sudariums sudary sudate sudated sudates sudating sudation sudations sudatories sudatorium sudatory sudd sudden suddenly suddenness suddenty sudder sudders sudds sudor sudoral sudorific sudorous sudors suds sudser sudsers sudsier sudsiest sudsy sue sued suede sueded suedes sueding suer suers sues suet suety suffect suffer sufferable sufferably sufferance suffered sufferer sufferers suffering sufferings suffers suffete suffetes suffice sufficed sufficer sufficers suffices sufficient sufficing suffisance suffix suffixal suffixed suffixes suffixing suffixion sufflate sufflation suffocate suffocated suffocates suffragan suffragans suffrage suffrages suffragism suffragist suffuse suffused suffuses suffusing suffusion suffusions suffusive sugar sugarallie sugarbird sugarbush sugared sugarier sugariest sugariness sugaring sugarings sugarless sugars sugary suggest suggested suggester suggesters suggesting suggestion suggestive suggests sugging sui suicidal suicidally suicide suicides suid suidian suilline suing suint suit suitable suitably suite suited suites suiting suitings suitor suitors suitress suitresses suits suivante suivantes suivez sujee sujeed sujeeing sujees suk sukh sukhs sukiyaki sukiyakis sukkah sukkahs suks sulcal sulcalise sulcalised sulcalises sulcalize sulcalized sulcalizes sulcate sulcated sulcation sulcations sulci sulcus sulfa sulfatase sulfate sulfhydryl sulfide sulfinyl sulfonate sulfone sulfonic sulfonium sulfur sulfurate sulfuric sulk sulked sulkier sulkies sulkiest sulkily sulkiness sulking sulks sulky sullage sullen sullener sullenest sullenly sullenness sullied sullies sully sullying sulpha sulphatase sulphate sulphates sulphatic sulphation sulphide sulphides sulphinyl sulphite sulphites sulphonate sulphone sulphones sulphonic sulphonium sulphur sulphurate sulphured sulphuret sulphuric sulphuring sulphurise sulphurize sulphurous sulphurs sulphury sultan sultana sultanas sultanate sultanates sultaness sultanic sultans sultanship sultrier sultriest sultrily sultriness sultry sum sumac sumach sumachs sumacs sumatra sumatras sumless summa summae summand summands summar summaries summarily summarise summarised summarises summarist summarists summarize summarized summarizes summary summat summate summated summates summating summation summations summative summed summer summered summerier summeriest summering summerings summerlike summerly summers summerset summersets summertide summertime summerwood summery summing summings summist summists summit summital summiteer summiteers summitless summitry summits summon summonable summoned summoner summoners summoning summons summonsed summonses summonsing sumo sumos sumotori sumotoris sump sumph sumphish sumphs sumpit sumpitan sumpitans sumpits sumps sumpsimus sumpter sumpters sumptuary sumptuous sums sun sunbake sunbaked sunbakes sunbaking sunbathe sunbathed sunbather sunbathers sunbathes sunbathing sunbeamed sunbeamy sunbed sunbeds sunbelt sunberry sunblind sunblinds sunblock sunbow sunbows sunburn sunburned sunburning sunburns sunburnt sunburst sunbursts sundae sundaes sundari sundaris sunder sunderance sundered sunderer sunderers sundering sunderings sunderment sunders sundial sundials sundown sundowns sundra sundras sundress sundresses sundri sundries sundris sundry sunfast sunfish sunfishes sunflower sunflowers sung sungar sungars sunglass sunglasses sunglow sunglows sungod sungods sunhat sunhats sunk sunken sunket sunkets sunks sunless sunlight sunlike sunlit sunlounger sunn sunned sunnier sunniest sunnily sunniness sunning sunns sunny sunproof sunray sunrays sunrise sunrises sunrising sunrisings sunroom suns sunscreen sunscreens sunset sunsets sunsetting sunshine sunshiny sunspot sunspots sunstar sunstars sunstone sunstones sunstroke sunstruck sunsuit sunsuits suntan suntanned suntans suntrap suntraps sunward sunwards sunwise sup supawn supawns super superable superably superacute superadd superadded superadds superalloy superaltar superb superbity superbly superbness superbold superbrain supercargo superclass supercoil supercoils supercold supercool supercools superdense supered superette superettes superexalt superfast superfine superfluid superflux superfuse superfused superfuses supergene supergenes supergiant superglue superglues supergrass supergroup supergun superheat superheats superheavy superhero superheros superhet superhets superhive superhives superhuman supering superior superiorly superiors superjet superjets superloo superloos superlunar superman supermen supermini superminis supermodel supernal supernally supernova supernovae supernovas superorder superoxide superplus superpose superposed superposes superpower superrich supers supersafe supersalt supersalts supersaver supersede superseded superseder supersedes supersoft supersonic superstar superstars superstate superstore supersweet supertax supertaxes superthin supertonic supervene supervened supervenes supervisal supervise supervised supervisee supervises supervisor superwoman superwomen supinate supinated supinates supinating supination supinator supinators supine supinely supineness suppeago supped suppedanea supper suppered suppering supperless suppers suppertime supping supplant supplanted supplanter supplants supple suppled supplely supplement suppleness suppler supples supplest suppletion suppletive suppletory supplial supplials suppliance suppliant suppliants supplicant supplicat supplicate supplicats supplied supplier suppliers supplies suppling supply supplying support supported supporter supporters supporting supportive supports supposable supposably supposal supposals suppose supposed supposedly supposer supposers supposes supposing supposings suppress suppressed suppresses suppressor suppurate suppurated suppurates supra supralunar suprapubic suprarenal supremacy supreme supremely supremer supremes supremest supremity supremo supremos sups suq suqs sura surah surahs sural surance suras surat surbahar surbahars surbase surbased surbases surbate surbated surbates surbating surbed surcease surceased surceases surceasing surcharge surcharged surcharger surcharges surcingle surcingled surcingles surcoat surcoats surculose surculus surculuses surd surdity surds sure surefooted surely sureness surer sures surest sureties surety suretyship surf surface surfaced surfaceman surfacemen surfacer surfacers surfaces surfacing surfacings surfactant surfcaster surfed surfeit surfeited surfeiter surfeiters surfeiting surfeits surfer surfers surficial surfie surfier surfies surfiest surfing surfings surfman surfmen surfperch surfs surfy surge surged surgeful surgeless surgent surgeon surgeoncy surgeons surgeries surgery surges surgical surgically surging surgings surgy suricate suricates surjection surlier surliest surlily surliness surly surmaster surmasters surmisable surmisal surmisals surmise surmised surmiser surmisers surmises surmising surmisings surmount surmounted surmounter surmounts surmullet surmullets surname surnamed surnames surnaming surnominal surpass surpassed surpasses surpassing surplice surpliced surplices surplus surplusage surpluses surprisal surprisals surprise surprised surpriser surprisers surprises surprising surquedry surra surreal surrealism surrealist surrebut surrebuts surrejoin surrejoins surrender surrenders surrendry surrey surreys surrogacy surrogate surrogates surround surrounded surrounds surroyal surroyals surtax surtaxed surtaxes surtaxing surtitle surtitles surtout surtouts survey surveyal surveyals surveyance surveyed surveying surveyings surveyor surveyors surveys surview surviewed surviewing surviews survivable survival survivals survivance survive survived survives surviving survivor survivors sus susceptive susceptor suscipient suscitate suscitated suscitates sushi sushis suslik susliks suspect suspected suspectful suspecting suspects suspend suspended suspender suspenders suspending suspends suspense suspenser suspensers suspenses suspension suspensive suspensoid suspensor suspensors suspensory suspicion suspicions suspicious suspire suspired suspires suspiring suspirious suss sussed susses sussing sustain sustained sustainer sustainers sustaining sustains sustenance sustentate sustention sustentive susurrant susurrate susurrated susurrates susurrus susurruses sutile sutler sutleries sutlers sutlery sutor sutorial sutorian sutors sutra sutras suttee sutteeism suttees suttle suttled suttles suttling sutural suturally suturation suture sutured sutures suturing suzerain suzerains suzerainty svelte svelter sveltest swab swabbed swabber swabbers swabbies swabbing swabby swabs swack swad swaddies swaddle swaddled swaddler swaddlers swaddles swaddling swaddy swads swag swage swaged swages swagged swagger swaggered swaggerer swaggerers swaggering swaggers swaggie swagging swaging swagman swagmen swags swagshop swagshops swagsman swagsmen swain swainish swains swale swaled swales swaling swalings swallet swallets swallow swallowed swallower swallowers swallowing swallows swaly swam swami swamis swamp swamped swamper swampers swampier swampiest swampiness swamping swampland swamplands swamps swampy swan swang swanherd swanherds swank swanked swanker swankers swankest swankier swankies swankiest swanking swankpot swankpots swanks swanky swanlike swanned swanneries swannery swanning swanny swans swansdown swansdowns swap swapped swapper swappers swapping swappings swaps swaption swaptions swaraj swarajism swarajist swarajists sward swarded swarding swards swardy sware swarf swarfed swarfing swarfs swarm swarmed swarmer swarmers swarming swarmings swarms swart swarth swarthier swarthiest swarthy swartness swarty swarve swarved swarves swarving swash swashed swasher swashes swashing swashings swashwork swashworks swashy swastika swastikas swat swatch swatchbook swatches swath swathe swathed swathes swathing swaths swathy swats swatted swatter swattered swattering swatters swatting sway swayed swayer swayers swaying swayings sways swazzle swazzles sweal swealed swealing swealings sweals swear swearer swearers swearing swearings swears sweat sweated sweater sweaters sweatier sweatiest sweatiness sweating sweatings sweatpants sweats sweatshirt sweaty swede swedes sweeney sweeny sweep sweepback sweepbacks sweeper sweepers sweepier sweepiest sweeping sweepingly sweepings sweeps sweepstake sweepy sweer sweered sweert sweet sweetbread sweeten sweetened sweetener sweeteners sweetening sweetens sweeter sweetest sweetfish sweetheart sweetie sweeties sweeting sweetings sweetish sweetly sweetmeal sweetmeat sweetmeats sweetness sweetpea sweetpeas sweets sweetshop sweetshops sweetwood sweetwoods sweetwort sweetworts sweety sweir sweirness sweirt swelchie swelchies swell swelldom swelled sweller swellers swellest swelling swellings swellish swells swelt swelted swelter sweltered sweltering swelters swelting sweltrier sweltriest sweltry swelts swept sweptwing swerve swerved swerveless swerver swervers swerves swerving swervings sweven swidden swiddens swies swift swifted swifter swifters swiftest swiftie swifties swifting swiftlet swiftlets swiftly swiftness swifts swig swigged swigger swiggers swigging swigs swill swilled swiller swillers swilling swillings swills swim swimmable swimmer swimmeret swimmerets swimmers swimmier swimmiest swimming swimmingly swimmings swimmy swims swimsuit swimsuits swimwear swindle swindled swindler swindlers swindles swindling swindlings swine swineherd swineherds swinehood swineries swinery swinestone swing swingboat swingboats swinge swinged swingeing swinger swingers swinges swinging swingingly swingings swingism swingle swingled swingles swingling swinglings swings swingtree swingtrees swingy swinish swinishly swink swinked swinking swinks swipe swiped swiper swipers swipes swiping swipple swipples swire swires swirl swirled swirlier swirliest swirling swirls swirly swish swished swisher swishers swishes swishier swishiest swishing swishings swishy swissing swissings switch switchback switched switchel switchels switches switchgear switching switchings switchman switchmen switchy swith swither swithered swithering swithers swive swived swivel swivelled swivelling swivels swives swivet swivets swiving swiz swizz swizzes swizzle swizzled swizzles swizzling swob swobbed swobber swobbers swobbing swobs swollen swoon swooned swooning swooningly swoonings swoons swoop swooped swooping swoops swoosh swooshed swooshes swooshing swop swopped swopping swoppings swops sword swordcraft sworded sworder sworders swordfish swording swordless swordlike swordman swordmen swordplay swordproof swords swordsman swordsmen swore sworn swot swots swotted swotter swotters swotting swottings swoun swound swounded swounding swounds swouned swouning swouns swozzle swozzles swum swung swy sybarite sybarites sybaritic sybaritish sybaritism sybil sybils sybo syboe syboes sybotic sybotism sybow sybows sycamine sycamines sycamore sycamores syce sycee sycomore sycomores syconium syconiums sycophancy sycophant sycophants sycosis sye syed syeing syenite syenites syenitic syes syke syker sykes syllabary syllabi syllabic syllabical syllabics syllabify syllabise syllabised syllabises syllabism syllabisms syllabize syllabized syllabizes syllable syllabled syllables syllabub syllabubs syllabus syllabuses syllepses syllepsis sylleptic syllogise syllogised syllogiser syllogises syllogism syllogisms syllogize syllogized syllogizer syllogizes sylph sylphid sylphidine sylphids sylphish sylphs sylphy sylva sylvae sylvan sylvanite sylvas sylvatic sylvia sylvias sylviine sylvine sylvinite sylvite symar symars symbion symbions symbiont symbionts symbioses symbiosis symbiotic symbol symbolic symbolical symbolics symbolise symbolised symboliser symbolises symbolism symbolisms symbolist symbolists symbolize symbolized symbolizer symbolizes symbolled symbolling symbology symbols symmetral symmetrian symmetric symmetries symmetrise symmetrize symmetry sympathies sympathin sympathise sympathize sympathy sympatric symphile symphiles symphilism symphilous symphily symphonic symphonies symphonion symphonist symphony symphylous symphyseal symphysial symphysis symphytic symplast symploce symploces sympodia sympodial sympodium symposia symposiac symposial symposiast symposium symposiums symptom symptoms symptosis synaereses synaeresis synagogal synagogue synagogues synaloepha synangium synangiums synanthic synanthous synanthy synaphea synapheia synapse synapses synapsis synaptase synapte synaptes synaptic synarchies synarchy synastries synastry synaxarion synaxes synaxis sync syncarp syncarpous syncarps syncarpy synced synch synched synching synchro synchronal synchronic synchrony synchs synchysis syncing synclastic synclinal synclinals syncline synclines syncopal syncopate syncopated syncopates syncopator syncope syncopes syncopic syncretic syncretise syncretism syncretist syncretize syncs syncytia syncytial syncytium syncytiums synd syndactyl syndactyly synded synderesis syndesis syndet syndetic syndetical syndets syndic syndical syndicate syndicated syndicates syndicator syndics synding syndings syndrome syndromes syndromic synds syne synecdoche synechia synecology synectic synectics syned synedria synedrial synedrion synedrium syneidesis syneresis synergetic synergic synergid synergids synergise synergised synergises synergism synergist synergists synergize synergized synergizes synergy synes synesis synfuel synfuels syngamic syngamous syngamy syngas syngeneic syngenesis syngenetic syngraph syngraphs syning synizesis synkaryon synod synodal synodals synodic synodical synods synodsman synodsmen synoecete synoecetes synoecious synoecise synoecised synoecises synoecism synoecize synoecized synoecizes synoekete synoeketes synoicous synonym synonymic synonymies synonymise synonymist synonymity synonymize synonymous synonyms synonymy synopses synopsis synopsise synopsised synopsises synopsize synopsized synopsizes synoptic synoptical synoptist synostoses synostosis synovia synovial synovitic synovitis synroc syntactic syntagm syntagma syntagmata syntan syntans syntax syntaxes syntectic syntenoses syntenosis synteresis syntexis synth syntheses synthesis synthesise synthesist synthesize synthetic synthetics synthetise synthetist synthetize synthronus syntonic syntonies syntonin syntonise syntonised syntonises syntonize syntonized syntonizes syntonous syntony sype syped sypes sypher syphered syphering syphers syphilis syphilise syphilised syphilises syphilitic syphilize syphilized syphilizes syphiloid syphiloma syphilomas syphon syphoned syphoning syphons syping syren syrens syringa syringas syringe syringeal syringed syringes syringing syringitis syrinx syrinxes syrphid syrphids syrtes syrtis syrup syruped syruping syrups syrupy sysop sysops syssitia systaltic system systematic systemed systemic systemise systemised systemises systemize systemized systemizes systemless systems systole systoles systolic systyle systyles syver syvers syzygial syzygies syzygy]]
mit
zeraien/django-url-framework
django_url_framework/flash.py
2909
from django.conf import settings import hashlib from django.utils.encoding import smart_text from django.utils.safestring import mark_safe class FlashMessage(object): def __init__(self, message, is_error=False, kind='normal'): self.message = smart_text(message, encoding="utf8") self.is_error = is_error self.kind = kind self.digest = hashlib.sha1(self.message.encode('utf8') + kind.encode('utf8')).hexdigest() def hash(self): return self.digest def json_ready(self): return { 'message': self.message, 'is_error': self.is_error, 'kind': self.kind } def __unicode__(self): return mark_safe(self.message) def __repr__(self): return mark_safe(self.message.encode('utf8')) def __str__(self): return self.__repr__() class FlashManager(object): SESSION_KEY = getattr(settings, 'URL_FRAMEWORK_SESSION_KEY', 'django_url_framework_flash') def __init__(self, request): self.request = request self._messages_cache = None def _get_messages(self): if self._messages_cache is None: self._messages_cache = [] if self.SESSION_KEY in self.request.session: for msg_data in self.request.session[self.SESSION_KEY]: self._messages_cache.append(FlashMessage(**msg_data)) return self._messages_cache messages = property(_get_messages) def has_messages(self): return len(self) > 0 def clear(self): self._messages_cache = [] if self.SESSION_KEY in self.request.session: del(self.request.session[self.SESSION_KEY]) self.request.session.save() def get_and_clear(self): messages = self.messages self.clear() return messages def __bool__(self): return len(self.messages) > 0 def __iter__(self): return iter(self.messages) def __len__(self): return len(self.messages) def __getitem__(self, key): return self.messages[key] def append_error(self, msg): self.append(msg=msg, msg_type='error') def append(self, msg, msg_type='normal'): new_message = FlashMessage(**{ 'message': smart_text(msg, encoding="utf8"), 'kind': msg_type, 'is_error': msg_type == 'error' }) new_hash = new_message.hash() for message in self.messages: if message.hash() == new_hash: return self.messages.append(new_message) self.request.session[self.SESSION_KEY] = [m.json_ready() for m in self.messages] def set(self, msg, msg_type='normal'): self.clear() self.append(msg=msg, msg_type=msg_type) def error(self, msg): self.clear() self.append(msg=msg, msg_type='error')
mit
ebernerd/WaveLite
src/lib/apis/system.lua
1697
--[[ system string platform() void copy(string text) string paste() ]] local util = require "src.lib.util" local function newSystemAPI() local system = {} function system.open_url( url ) if type( url ) ~= "string" then return error( "expected string url, got " .. type( url ) ) end return love.system.openURL( url ) end function system.read_file( file ) if type( file ) ~= "string" then return error( "expected string file, got " .. type( file ) ) end return love.filesystem.exists( file ) and love.filesystem.read( file ) end function system.write_file( file, text ) if type( file ) ~= "string" then return error( "expected string file, got " .. type( file ) ) end if type( text ) ~= "string" then return error( "expected string text, got " .. type( text ) ) end return not love.filesystem.isDirectory( file ) and love.filesystem.write( file, text ) or error( "attempt to write to directory '" .. tostring( file ) .. "'" ) end function system.list_files( path ) return love.filesystem.isDirectory( path ) and love.filesystem.getDirectoryItems( path ) end function system.platform() return love.system.getOS() end function system.copy( text ) if type( text ) ~= "string" then return error( "expected string text, got " .. type( text ) ) end return love.system.setClipboardText( text ) end function system.paste() return love.system.getClipboardText() end function system.show_keyboard() if not love.keyboard.hasTextInput() then return love.keyboard.setTextInput( true ) end end function system.hide_keyboard() return love.keyboard.setTextInput( false ) end return util.protected_table( system ) end return newSystemAPI
mit
JedWatson/happiness
test/api.js
619
var standard = require('../'); var test = require('tape'); test('api: lintFiles', function (t) { t.plan(3); standard.lintFiles([], { cwd: 'bin' }, function (err, result) { t.error(err, 'no error while linting'); t.equal(typeof result, 'object', 'result is an object'); t.equal(result.errorCount, 0); }); }); test('api: lintText', function (t) { t.plan(3); standard.lintText('console.log("hi there");\n', function (err, result) { t.error(err, 'no error while linting'); t.equal(typeof result, 'object', 'result is an object'); t.equal(result.errorCount, 1, 'should have used single quotes'); }); });
mit
kblin/rpi-temp-monitor
index.js
90
var hw = require('./hardware'), server = require('./server'); hw.init(server.start);
mit
P87/bookie-odds
crawlers/skybet/match.js
1083
/** * Get the source code for a live match and add it to our queue */ var projectConfig = require('../../config/project.json'); var skybetConfig = require('../../config/skybet.json'); var queueDriver = require('../../utils/queue/' + projectConfig.queueDriver); var request = require('request'); var Match = { crawl: function(url, callback) { request( { uri: skybetConfig.baseUrl + url }, function(error, response, body) { if (error) { log.error('Error requesting ' + skybetConfig.baseUrl + url); } log.info(skybetConfig.baseUrl + url + ' scraped. Adding to queue'); queueDriver.save( 'matchSourceQueue', JSON.stringify({ site: 'skybet', content: body }), function() { callback(); } ); } ); } } module.exports = Match;
mit
TeamMapR/d-mapreduce
.eslintrc.js
276
module.exports = { "extends": "airbnb-base", "env": { "node": true, "jest": true, }, "rules": { "semi": 0, "arrow-parens": 0, "no-plusplus": 0, "no-case-declarations": 0, "consistent-return": 0, }, };
mit
Azure/azure-sdk-for-python
sdk/servicebus/azure-mgmt-servicebus/azure/mgmt/servicebus/v2015_08_01/aio/_service_bus_management_client.py
5096
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from typing import Any, Optional, TYPE_CHECKING from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient from msrest import Deserializer, Serializer if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from azure.core.credentials_async import AsyncTokenCredential from ._configuration import ServiceBusManagementClientConfiguration from .operations import Operations from .operations import NamespacesOperations from .operations import QueuesOperations from .operations import TopicsOperations from .operations import SubscriptionsOperations from .. import models class ServiceBusManagementClient(object): """Azure Service Bus client. :ivar operations: Operations operations :vartype operations: azure.mgmt.servicebus.v2015_08_01.aio.operations.Operations :ivar namespaces: NamespacesOperations operations :vartype namespaces: azure.mgmt.servicebus.v2015_08_01.aio.operations.NamespacesOperations :ivar queues: QueuesOperations operations :vartype queues: azure.mgmt.servicebus.v2015_08_01.aio.operations.QueuesOperations :ivar topics: TopicsOperations operations :vartype topics: azure.mgmt.servicebus.v2015_08_01.aio.operations.TopicsOperations :ivar subscriptions: SubscriptionsOperations operations :vartype subscriptions: azure.mgmt.servicebus.v2015_08_01.aio.operations.SubscriptionsOperations :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. :type subscription_id: str :param str base_url: Service URL :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( self, credential: "AsyncTokenCredential", subscription_id: str, base_url: Optional[str] = None, **kwargs: Any ) -> None: if not base_url: base_url = 'https://management.azure.com' self._config = ServiceBusManagementClientConfiguration(credential, subscription_id, **kwargs) self._client = AsyncARMPipelineClient(base_url=base_url, config=self._config, **kwargs) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} self._serialize = Serializer(client_models) self._serialize.client_side_validation = False self._deserialize = Deserializer(client_models) self.operations = Operations( self._client, self._config, self._serialize, self._deserialize) self.namespaces = NamespacesOperations( self._client, self._config, self._serialize, self._deserialize) self.queues = QueuesOperations( self._client, self._config, self._serialize, self._deserialize) self.topics = TopicsOperations( self._client, self._config, self._serialize, self._deserialize) self.subscriptions = SubscriptionsOperations( self._client, self._config, self._serialize, self._deserialize) async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: """Runs the network request through the client's chained policies. :param http_request: The network request you want to make. Required. :type http_request: ~azure.core.pipeline.transport.HttpRequest :keyword bool stream: Whether the response payload will be streamed. Defaults to True. :return: The response of your network call. Does not do error handling on your response. :rtype: ~azure.core.pipeline.transport.AsyncHttpResponse """ path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), } http_request.url = self._client.format_url(http_request.url, **path_format_arguments) stream = kwargs.pop("stream", True) pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs) return pipeline_response.http_response async def close(self) -> None: await self._client.close() async def __aenter__(self) -> "ServiceBusManagementClient": await self._client.__aenter__() return self async def __aexit__(self, *exc_details) -> None: await self._client.__aexit__(*exc_details)
mit
alsiola/react-doc-props
src/docsToDefaults.js
123
import { mapToDefaults } from './utils'; export const docsToDefaults = (docs) => { return mapToDefaults(docs.props); }
mit
russellgoldenberg/scrollama
index.js
56
import entry from "./src/entry"; export default entry;
mit
austinsand/journalist
imports/api/system_health_metrics/server/health_tracker.js
1352
import { check } from 'meteor/check'; import { SystemHealthMetrics } from '../system_health_metrics'; let debug = false; export const HealthTracker = { /** * Clear out all existing health metrics */ init () { console.log('HealthTracker.init'); SystemHealthMetrics.remove({}); }, /** * Create a record for this key and title * @param key * @param title */ add (key, title, type) { console.log('Adding HealthTracker:', key, title, type); check(key, String); check(title, String); // Create or update the row SystemHealthMetrics.upsert({ key: key }, { $set: { key : key, title : title, type : type, isHealthy: true } }); }, /** * Update the health of a system * @param {*} key * @param {*} isHealthy * @param {*} detail */ update (key, isHealthy, detail) { debug && console.log('Updating HealthTracker:', key, isHealthy, detail); // Update the row SystemHealthMetrics.update({ key: key }, { $set: { key : key, isHealthy: isHealthy, detail : detail, } }); }, /** * Remove a health metrics row * @param {*} key */ remove (key) { SystemHealthMetrics.remove({ key: key }); } };
mit
bluemurder/ecc.net
MSDNExamples/ECDSA/Properties/AssemblyInfo.cs
1386
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("ECDSA")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("ECDSA")] [assembly: AssemblyCopyright("Copyright © 2016")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("3970ca47-52bf-46ba-afe4-cfc6bd127458")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
mit
anonymousthing/ListenMoeClient
Settings.cs
7585
using System; using System.Collections.Generic; using System.Drawing; using System.Globalization; using System.IO; using System.Reflection; using System.Text; namespace ListenMoeClient { enum Setting { //UI and form settings LocationX, LocationY, TopMost, SizeX, SizeY, FormOpacity, CustomColors, JPOPBaseColor, JPOPAccentColor, KPOPBaseColor, KPOPAccentColor, CustomBaseColor, CustomAccentColor, Scale, CloseToTray, HideFromAltTab, ThumbnailButton, //Visualiser settings EnableVisualiser, VisualiserResolutionFactor, FftSize, VisualiserBarWidth, VisualiserOpacity, VisualiserBars, VisualiserFadeEdges, JPOPVisualiserColor, KPOPVisualiserColor, CustomVisualiserColor, //Stream StreamType, //Misc UpdateAutocheck, UpdateInterval, Volume, OutputDeviceGuid, Token, Username, DiscordPresence } enum StreamType { Jpop, Kpop } //I should have just used a json serialiser static class Settings { public const int DEFAULT_WIDTH = 512; public const int DEFAULT_HEIGHT = 64; public const int DEFAULT_RIGHT_PANEL_WIDTH = 64; public const int DEFAULT_PLAY_PAUSE_SIZE = 20; private const string settingsFileLocation = "listenMoeSettings.ini"; static readonly object settingsMutex = new object(); static readonly object fileMutex = new object(); static Dictionary<Type, object> typedSettings = new Dictionary<Type, object>(); static readonly Dictionary<char, Type> typePrefixes = new Dictionary<char, Type>() { { 'i', typeof(int) }, { 'f', typeof(float) }, { 'b', typeof(bool) }, { 's', typeof(string) }, { 'c', typeof(Color) }, { 't', typeof(StreamType) } }; static readonly Dictionary<Type, char> reverseTypePrefixes = new Dictionary<Type, char>() { { typeof(int), 'i'}, { typeof(float), 'f'}, { typeof(bool), 'b'}, { typeof(string), 's'}, { typeof(Color), 'c' }, { typeof(StreamType), 't' } }; //Deserialisation static readonly Dictionary<Type, Func<string, (bool Success, object Result)>> parseActions = new Dictionary<Type, Func<string, (bool, object)>>() { { typeof(int), s => { bool success = int.TryParse(s, out int i); return (success, i); }}, { typeof(float), s => { bool success = float.TryParse(s, out float f); return (success, f); }}, { typeof(bool), s => { bool success = bool.TryParse(s, out bool b); return (success, b); }}, { typeof(string), s => { return (true, s); }}, { typeof(Color), s => { if (int.TryParse(s.Replace("#", ""), NumberStyles.HexNumber, CultureInfo.InvariantCulture, out int argb)) return (true, Color.FromArgb(255, Color.FromArgb(argb))); else throw new Exception("Could not parse color '" + s + "'. Check your settings file for any errors."); }}, { typeof(StreamType), s => { if (s == "jpop") return (true, StreamType.Jpop); else if (s == "kpop") return (true, StreamType.Kpop); throw new Exception("Could not parse StreamType."); }} }; //Serialisation static readonly Dictionary<Type, Func<dynamic, string>> saveActions = new Dictionary<Type, Func<dynamic, string>>() { { typeof(int), i => i.ToString() }, { typeof(float), f => f.ToString() }, { typeof(bool), b => b.ToString() }, { typeof(string), s => s }, { typeof(Color), c => ("#" + c.R.ToString("X2") + c.G.ToString("X2") + c.B.ToString("X2")).ToLowerInvariant() }, { typeof(StreamType), st => st == StreamType.Jpop ? "jpop" : "kpop" } }; static Settings() => LoadDefaultSettings(); public static T Get<T>(Setting key) { lock (settingsMutex) { return ((Dictionary<Setting, T>)(typedSettings[typeof(T)]))[key]; } } public static void Set<T>(Setting key, T value) { Type t = typeof(T); lock (settingsMutex) { if (!typedSettings.ContainsKey(t)) { typedSettings.Add(t, new Dictionary<Setting, T>()); } ((Dictionary<Setting, T>)typedSettings[t])[key] = value; } } private static void LoadDefaultSettings() { Set(Setting.LocationX, 100); Set(Setting.LocationY, 100); Set(Setting.VisualiserResolutionFactor, 3); Set(Setting.UpdateInterval, 3600); //in seconds Set(Setting.SizeX, DEFAULT_WIDTH); Set(Setting.SizeY, DEFAULT_HEIGHT); Set(Setting.FftSize, 2048); Set(Setting.Volume, 0.3f); Set(Setting.VisualiserBarWidth, 3.0f); Set(Setting.VisualiserOpacity, 0.5f); Set(Setting.FormOpacity, 1.0f); Set(Setting.Scale, 1.0f); Set(Setting.TopMost, false); Set(Setting.UpdateAutocheck, true); Set(Setting.CloseToTray, false); Set(Setting.HideFromAltTab, false); Set(Setting.ThumbnailButton, true); Set(Setting.EnableVisualiser, true); Set(Setting.VisualiserBars, true); Set(Setting.VisualiserFadeEdges, false); Set(Setting.Token, ""); Set(Setting.Username, ""); Set(Setting.OutputDeviceGuid, ""); Set(Setting.JPOPVisualiserColor, Color.FromArgb(255, 1, 91)); Set(Setting.JPOPBaseColor, Color.FromArgb(33, 35, 48)); Set(Setting.JPOPAccentColor, Color.FromArgb(255, 1, 91)); Set(Setting.KPOPVisualiserColor, Color.FromArgb(48, 169, 237)); Set(Setting.KPOPBaseColor, Color.FromArgb(33, 35, 48)); Set(Setting.KPOPAccentColor, Color.FromArgb(48, 169, 237)); Set(Setting.CustomColors, false); Set(Setting.CustomVisualiserColor, Color.FromArgb(255, 1, 91)); Set(Setting.CustomBaseColor, Color.FromArgb(33, 35, 48)); Set(Setting.CustomAccentColor, Color.FromArgb(255, 1, 91)); Set(Setting.StreamType, StreamType.Jpop); Set(Setting.DiscordPresence, true); } public static void LoadSettings() { if (!File.Exists(settingsFileLocation)) { WriteSettings(); return; } string[] lines = File.ReadAllLines(settingsFileLocation); foreach (string line in lines) { string[] parts = line.Split(new char[] { '=' }, 2); if (string.IsNullOrWhiteSpace(parts[0])) continue; char prefix = parts[0][0]; Type t = typePrefixes[prefix]; Func<string, (bool Success, object Result)> parseAction = parseActions[t]; (bool success, object o) = parseAction(parts[1]); if (!success) continue; if (!Enum.TryParse(parts[0].Substring(1), out Setting settingKey)) continue; MethodInfo setMethod = typeof(Settings).GetMethod("Set", BindingFlags.Static | BindingFlags.Public); MethodInfo genericSet = setMethod.MakeGenericMethod(t); genericSet.Invoke(null, new object[] { settingKey, o }); } } public static void WriteSettings() { StringBuilder sb = new StringBuilder(); lock (settingsMutex) { foreach (KeyValuePair<Type, object> dict in typedSettings) { Type t = dict.Key; System.Collections.IDictionary typedDict = (System.Collections.IDictionary)dict.Value; Func<dynamic, string> saveAction = saveActions[t]; foreach (dynamic setting in typedDict) { sb.AppendLine(reverseTypePrefixes[t] + ((Setting)setting.Key).ToString() + "=" + saveAction(setting.Value)); } } } lock (fileMutex) { using (FileStream fileStream = new FileStream(settingsFileLocation, FileMode.Create, FileAccess.Write)) { using (StreamWriter streamWriter = new StreamWriter(fileStream)) streamWriter.Write(sb.ToString()); } } } } }
mit
montudor/django-oidc-user
django_oidc_user/timezones.py
19355
TIMEZONES = [ ("Africa/Abidjan", "Abidjan"), ("Africa/Accra", "Accra"), ("Africa/Addis_Ababa", "Addis Ababa"), ("Africa/Algiers", "Algiers"), ("Africa/Asmara", "Asmara"), ("Africa/Asmera", "Asmera"), ("Africa/Bamako", "Bamako"), ("Africa/Bangui", "Bangui"), ("Africa/Banjul", "Banjul"), ("Africa/Bissau", "Bissau"), ("Africa/Blantyre", "Blantyre"), ("Africa/Brazzaville", "Brazzaville"), ("Africa/Bujumbura", "Bujumbura"), ("Africa/Cairo", "Cairo"), ("Africa/Casablanca", "Casablanca"), ("Africa/Ceuta", "Ceuta"), ("Africa/Conakry", "Conakry"), ("Africa/Dakar", "Dakar"), ("Africa/Dar_es_Salaam", "Dar es Salaam"), ("Africa/Djibouti", "Djibouti"), ("Africa/Douala", "Douala"), ("Africa/El_Aaiun", "El Aaiun"), ("Africa/Freetown", "Freetown"), ("Africa/Gaborone", "Gaborone"), ("Africa/Harare", "Harare"), ("Africa/Johannesburg", "Johannesburg"), ("Africa/Juba", "Juba"), ("Africa/Kampala", "Kampala"), ("Africa/Khartoum", "Khartoum"), ("Africa/Kigali", "Kigali"), ("Africa/Kinshasa", "Kinshasa"), ("Africa/Lagos", "Lagos"), ("Africa/Libreville", "Libreville"), ("Africa/Lome", "Lome"), ("Africa/Luanda", "Luanda"), ("Africa/Lubumbashi", "Lubumbashi"), ("Africa/Lusaka", "Lusaka"), ("Africa/Malabo", "Malabo"), ("Africa/Maputo", "Maputo"), ("Africa/Maseru", "Maseru"), ("Africa/Mbabane", "Mbabane"), ("Africa/Mogadishu", "Mogadishu"), ("Africa/Monrovia", "Monrovia"), ("Africa/Nairobi", "Nairobi"), ("Africa/Ndjamena", "Ndjamena"), ("Africa/Niamey", "Niamey"), ("Africa/Nouakchott", "Nouakchott"), ("Africa/Ouagadougou", "Ouagadougou"), ("Africa/Porto-Novo", "Porto Novo"), ("Africa/Sao_Tome", "Sao Tome"), ("Africa/Timbuktu", "Timbuktu"), ("Africa/Tripoli", "Tripoli"), ("Africa/Tunis", "Tunis"), ("Africa/Windhoek", "Windhoek"), ("America/Adak", "Adak"), ("America/Anchorage", "Anchorage"), ("America/Anguilla", "Anguilla"), ("America/Antigua", "Antigua"), ("America/Araguaina", "Araguaina"), ("America/Argentina/Buenos_Aires", "Argentina"), ("America/Argentina/Catamarca", "Argentina"), ("America/Argentina/ComodRivadavia", "Argentina"), ("America/Argentina/Cordoba", "Argentina"), ("America/Argentina/Jujuy", "Argentina"), ("America/Argentina/La_Rioja", "Argentina"), ("America/Argentina/Mendoza", "Argentina"), ("America/Argentina/Rio_Gallegos", "Argentina"), ("America/Argentina/Salta", "Argentina"), ("America/Argentina/San_Juan", "Argentina"), ("America/Argentina/San_Luis", "Argentina"), ("America/Argentina/Tucuman", "Argentina"), ("America/Argentina/Ushuaia", "Argentina"), ("America/Aruba", "Aruba"), ("America/Asuncion", "Asuncion"), ("America/Atikokan", "Atikokan"), ("America/Atka", "Atka"), ("America/Bahia", "Bahia"), ("America/Bahia_Banderas", "Bahia Banderas"), ("America/Barbados", "Barbados"), ("America/Belem", "Belem"), ("America/Belize", "Belize"), ("America/Blanc-Sablon", "Blanc Sablon"), ("America/Boa_Vista", "Boa Vista"), ("America/Bogota", "Bogota"), ("America/Boise", "Boise"), ("America/Buenos_Aires", "Buenos Aires"), ("America/Cambridge_Bay", "Cambridge Bay"), ("America/Campo_Grande", "Campo Grande"), ("America/Cancun", "Cancun"), ("America/Caracas", "Caracas"), ("America/Catamarca", "Catamarca"), ("America/Cayenne", "Cayenne"), ("America/Cayman", "Cayman"), ("America/Chicago", "Chicago"), ("America/Chihuahua", "Chihuahua"), ("America/Coral_Harbour", "Coral Harbour"), ("America/Cordoba", "Cordoba"), ("America/Costa_Rica", "Costa Rica"), ("America/Creston", "Creston"), ("America/Cuiaba", "Cuiaba"), ("America/Curacao", "Curacao"), ("America/Danmarkshavn", "Danmarkshavn"), ("America/Dawson", "Dawson"), ("America/Dawson_Creek", "Dawson Creek"), ("America/Denver", "Denver"), ("America/Detroit", "Detroit"), ("America/Dominica", "Dominica"), ("America/Edmonton", "Edmonton"), ("America/Eirunepe", "Eirunepe"), ("America/El_Salvador", "El Salvador"), ("America/Ensenada", "Ensenada"), ("America/Fort_Nelson", "Fort Nelson"), ("America/Fort_Wayne", "Fort Wayne"), ("America/Fortaleza", "Fortaleza"), ("America/Glace_Bay", "Glace Bay"), ("America/Godthab", "Godthab"), ("America/Goose_Bay", "Goose Bay"), ("America/Grand_Turk", "Grand Turk"), ("America/Grenada", "Grenada"), ("America/Guadeloupe", "Guadeloupe"), ("America/Guatemala", "Guatemala"), ("America/Guayaquil", "Guayaquil"), ("America/Guyana", "Guyana"), ("America/Halifax", "Halifax"), ("America/Havana", "Havana"), ("America/Hermosillo", "Hermosillo"), ("America/Indiana/Indianapolis", "Indiana"), ("America/Indiana/Knox", "Indiana"), ("America/Indiana/Marengo", "Indiana"), ("America/Indiana/Petersburg", "Indiana"), ("America/Indiana/Tell_City", "Indiana"), ("America/Indiana/Vevay", "Indiana"), ("America/Indiana/Vincennes", "Indiana"), ("America/Indiana/Winamac", "Indiana"), ("America/Indianapolis", "Indianapolis"), ("America/Inuvik", "Inuvik"), ("America/Iqaluit", "Iqaluit"), ("America/Jamaica", "Jamaica"), ("America/Jujuy", "Jujuy"), ("America/Juneau", "Juneau"), ("America/Kentucky/Louisville", "Kentucky"), ("America/Kentucky/Monticello", "Kentucky"), ("America/Knox_IN", "Knox IN"), ("America/Kralendijk", "Kralendijk"), ("America/La_Paz", "La Paz"), ("America/Lima", "Lima"), ("America/Los_Angeles", "Los Angeles"), ("America/Louisville", "Louisville"), ("America/Lower_Princes", "Lower Princes"), ("America/Maceio", "Maceio"), ("America/Managua", "Managua"), ("America/Manaus", "Manaus"), ("America/Marigot", "Marigot"), ("America/Martinique", "Martinique"), ("America/Matamoros", "Matamoros"), ("America/Mazatlan", "Mazatlan"), ("America/Mendoza", "Mendoza"), ("America/Menominee", "Menominee"), ("America/Merida", "Merida"), ("America/Metlakatla", "Metlakatla"), ("America/Mexico_City", "Mexico City"), ("America/Miquelon", "Miquelon"), ("America/Moncton", "Moncton"), ("America/Monterrey", "Monterrey"), ("America/Montevideo", "Montevideo"), ("America/Montreal", "Montreal"), ("America/Montserrat", "Montserrat"), ("America/Nassau", "Nassau"), ("America/New_York", "New York"), ("America/Nipigon", "Nipigon"), ("America/Nome", "Nome"), ("America/Noronha", "Noronha"), ("America/North_Dakota/Beulah", "North Dakota"), ("America/North_Dakota/Center", "North Dakota"), ("America/North_Dakota/New_Salem", "North Dakota"), ("America/Ojinaga", "Ojinaga"), ("America/Panama", "Panama"), ("America/Pangnirtung", "Pangnirtung"), ("America/Paramaribo", "Paramaribo"), ("America/Phoenix", "Phoenix"), ("America/Port-au-Prince", "Port au Prince"), ("America/Port_of_Spain", "Port of Spain"), ("America/Porto_Acre", "Porto Acre"), ("America/Porto_Velho", "Porto Velho"), ("America/Puerto_Rico", "Puerto Rico"), ("America/Punta_Arenas", "Punta Arenas"), ("America/Rainy_River", "Rainy River"), ("America/Rankin_Inlet", "Rankin Inlet"), ("America/Recife", "Recife"), ("America/Regina", "Regina"), ("America/Resolute", "Resolute"), ("America/Rio_Branco", "Rio Branco"), ("America/Rosario", "Rosario"), ("America/Santa_Isabel", "Santa Isabel"), ("America/Santarem", "Santarem"), ("America/Santiago", "Santiago"), ("America/Santo_Domingo", "Santo Domingo"), ("America/Sao_Paulo", "Sao Paulo"), ("America/Scoresbysund", "Scoresbysund"), ("America/Shiprock", "Shiprock"), ("America/Sitka", "Sitka"), ("America/St_Barthelemy", "St Barthelemy"), ("America/St_Johns", "St Johns"), ("America/St_Kitts", "St Kitts"), ("America/St_Lucia", "St Lucia"), ("America/St_Thomas", "St Thomas"), ("America/St_Vincent", "St Vincent"), ("America/Swift_Current", "Swift Current"), ("America/Tegucigalpa", "Tegucigalpa"), ("America/Thule", "Thule"), ("America/Thunder_Bay", "Thunder Bay"), ("America/Tijuana", "Tijuana"), ("America/Toronto", "Toronto"), ("America/Tortola", "Tortola"), ("America/Vancouver", "Vancouver"), ("America/Virgin", "Virgin"), ("America/Whitehorse", "Whitehorse"), ("America/Winnipeg", "Winnipeg"), ("America/Yakutat", "Yakutat"), ("America/Yellowknife", "Yellowknife"), ("Antarctica/Casey", "Casey"), ("Antarctica/Davis", "Davis"), ("Antarctica/DumontDUrville", "DumontDUrville"), ("Antarctica/Macquarie", "Macquarie"), ("Antarctica/Mawson", "Mawson"), ("Antarctica/McMurdo", "McMurdo"), ("Antarctica/Palmer", "Palmer"), ("Antarctica/Rothera", "Rothera"), ("Antarctica/South_Pole", "South Pole"), ("Antarctica/Syowa", "Syowa"), ("Antarctica/Troll", "Troll"), ("Antarctica/Vostok", "Vostok"), ("Arctic/Longyearbyen", "Longyearbyen"), ("Asia/Aden", "Aden"), ("Asia/Almaty", "Almaty"), ("Asia/Amman", "Amman"), ("Asia/Anadyr", "Anadyr"), ("Asia/Aqtau", "Aqtau"), ("Asia/Aqtobe", "Aqtobe"), ("Asia/Ashgabat", "Ashgabat"), ("Asia/Ashkhabad", "Ashkhabad"), ("Asia/Atyrau", "Atyrau"), ("Asia/Baghdad", "Baghdad"), ("Asia/Bahrain", "Bahrain"), ("Asia/Baku", "Baku"), ("Asia/Bangkok", "Bangkok"), ("Asia/Barnaul", "Barnaul"), ("Asia/Beirut", "Beirut"), ("Asia/Bishkek", "Bishkek"), ("Asia/Brunei", "Brunei"), ("Asia/Calcutta", "Calcutta"), ("Asia/Chita", "Chita"), ("Asia/Choibalsan", "Choibalsan"), ("Asia/Chongqing", "Chongqing"), ("Asia/Chungking", "Chungking"), ("Asia/Colombo", "Colombo"), ("Asia/Dacca", "Dacca"), ("Asia/Damascus", "Damascus"), ("Asia/Dhaka", "Dhaka"), ("Asia/Dili", "Dili"), ("Asia/Dubai", "Dubai"), ("Asia/Dushanbe", "Dushanbe"), ("Asia/Famagusta", "Famagusta"), ("Asia/Gaza", "Gaza"), ("Asia/Harbin", "Harbin"), ("Asia/Hebron", "Hebron"), ("Asia/Ho_Chi_Minh", "Ho Chi Minh"), ("Asia/Hong_Kong", "Hong Kong"), ("Asia/Hovd", "Hovd"), ("Asia/Irkutsk", "Irkutsk"), ("Asia/Istanbul", "Istanbul"), ("Asia/Jakarta", "Jakarta"), ("Asia/Jayapura", "Jayapura"), ("Asia/Jerusalem", "Jerusalem"), ("Asia/Kabul", "Kabul"), ("Asia/Kamchatka", "Kamchatka"), ("Asia/Karachi", "Karachi"), ("Asia/Kashgar", "Kashgar"), ("Asia/Kathmandu", "Kathmandu"), ("Asia/Katmandu", "Katmandu"), ("Asia/Khandyga", "Khandyga"), ("Asia/Kolkata", "Kolkata"), ("Asia/Krasnoyarsk", "Krasnoyarsk"), ("Asia/Kuala_Lumpur", "Kuala Lumpur"), ("Asia/Kuching", "Kuching"), ("Asia/Kuwait", "Kuwait"), ("Asia/Macao", "Macao"), ("Asia/Macau", "Macau"), ("Asia/Magadan", "Magadan"), ("Asia/Makassar", "Makassar"), ("Asia/Manila", "Manila"), ("Asia/Muscat", "Muscat"), ("Asia/Nicosia", "Nicosia"), ("Asia/Novokuznetsk", "Novokuznetsk"), ("Asia/Novosibirsk", "Novosibirsk"), ("Asia/Omsk", "Omsk"), ("Asia/Oral", "Oral"), ("Asia/Phnom_Penh", "Phnom Penh"), ("Asia/Pontianak", "Pontianak"), ("Asia/Pyongyang", "Pyongyang"), ("Asia/Qatar", "Qatar"), ("Asia/Qyzylorda", "Qyzylorda"), ("Asia/Rangoon", "Rangoon"), ("Asia/Riyadh", "Riyadh"), ("Asia/Saigon", "Saigon"), ("Asia/Sakhalin", "Sakhalin"), ("Asia/Samarkand", "Samarkand"), ("Asia/Seoul", "Seoul"), ("Asia/Shanghai", "Shanghai"), ("Asia/Singapore", "Singapore"), ("Asia/Srednekolymsk", "Srednekolymsk"), ("Asia/Taipei", "Taipei"), ("Asia/Tashkent", "Tashkent"), ("Asia/Tbilisi", "Tbilisi"), ("Asia/Tehran", "Tehran"), ("Asia/Tel_Aviv", "Tel Aviv"), ("Asia/Thimbu", "Thimbu"), ("Asia/Thimphu", "Thimphu"), ("Asia/Tokyo", "Tokyo"), ("Asia/Tomsk", "Tomsk"), ("Asia/Ujung_Pandang", "Ujung Pandang"), ("Asia/Ulaanbaatar", "Ulaanbaatar"), ("Asia/Ulan_Bator", "Ulan Bator"), ("Asia/Urumqi", "Urumqi"), ("Asia/Ust-Nera", "Ust Nera"), ("Asia/Vientiane", "Vientiane"), ("Asia/Vladivostok", "Vladivostok"), ("Asia/Yakutsk", "Yakutsk"), ("Asia/Yangon", "Yangon"), ("Asia/Yekaterinburg", "Yekaterinburg"), ("Asia/Yerevan", "Yerevan"), ("Atlantic/Azores", "Azores"), ("Atlantic/Bermuda", "Bermuda"), ("Atlantic/Canary", "Canary"), ("Atlantic/Cape_Verde", "Cape Verde"), ("Atlantic/Faeroe", "Faeroe"), ("Atlantic/Faroe", "Faroe"), ("Atlantic/Jan_Mayen", "Jan Mayen"), ("Atlantic/Madeira", "Madeira"), ("Atlantic/Reykjavik", "Reykjavik"), ("Atlantic/South_Georgia", "South Georgia"), ("Atlantic/St_Helena", "St Helena"), ("Atlantic/Stanley", "Stanley"), ("Australia/ACT", "ACT"), ("Australia/Adelaide", "Adelaide"), ("Australia/Brisbane", "Brisbane"), ("Australia/Broken_Hill", "Broken Hill"), ("Australia/Canberra", "Canberra"), ("Australia/Currie", "Currie"), ("Australia/Darwin", "Darwin"), ("Australia/Eucla", "Eucla"), ("Australia/Hobart", "Hobart"), ("Australia/LHI", "LHI"), ("Australia/Lindeman", "Lindeman"), ("Australia/Lord_Howe", "Lord Howe"), ("Australia/Melbourne", "Melbourne"), ("Australia/NSW", "NSW"), ("Australia/North", "North"), ("Australia/Perth", "Perth"), ("Australia/Queensland", "Queensland"), ("Australia/South", "South"), ("Australia/Sydney", "Sydney"), ("Australia/Tasmania", "Tasmania"), ("Australia/Victoria", "Victoria"), ("Australia/West", "West"), ("Australia/Yancowinna", "Yancowinna"), ("Brazil/Acre", "Acre"), ("Brazil/DeNoronha", "DeNoronha"), ("Brazil/East", "East"), ("Brazil/West", "West"), ("CET", "CET"), ("CST6CDT", "CST6CDT"), ("Canada/Atlantic", "Atlantic"), ("Canada/Central", "Central"), ("Canada/East-Saskatchewan", "East Saskatchewan"), ("Canada/Eastern", "Eastern"), ("Canada/Mountain", "Mountain"), ("Canada/Newfoundland", "Newfoundland"), ("Canada/Pacific", "Pacific"), ("Canada/Saskatchewan", "Saskatchewan"), ("Canada/Yukon", "Yukon"), ("Chile/Continental", "Continental"), ("Chile/EasterIsland", "EasterIsland"), ("Cuba", "Cuba"), ("EET", "EET"), ("EST", "EST"), ("EST5EDT", "EST5EDT"), ("Egypt", "Egypt"), ("Eire", "Eire"), ("Etc/GMT", "GMT"), ("Etc/GMT+0", "GMT+0"), ("Etc/GMT+1", "GMT+1"), ("Etc/GMT+10", "GMT+10"), ("Etc/GMT+11", "GMT+11"), ("Etc/GMT+12", "GMT+12"), ("Etc/GMT+2", "GMT+2"), ("Etc/GMT+3", "GMT+3"), ("Etc/GMT+4", "GMT+4"), ("Etc/GMT+5", "GMT+5"), ("Etc/GMT+6", "GMT+6"), ("Etc/GMT+7", "GMT+7"), ("Etc/GMT+8", "GMT+8"), ("Etc/GMT+9", "GMT+9"), ("Etc/GMT-0", "GMT-0"), ("Etc/GMT-1", "GMT-1"), ("Etc/GMT-10", "GMT-10"), ("Etc/GMT-11", "GMT-11"), ("Etc/GMT-12", "GMT-12"), ("Etc/GMT-13", "GMT-13"), ("Etc/GMT-14", "GMT-14"), ("Etc/GMT-2", "GMT-2"), ("Etc/GMT-3", "GMT-3"), ("Etc/GMT-4", "GMT-4"), ("Etc/GMT-5", "GMT-5"), ("Etc/GMT-6", "GMT-6"), ("Etc/GMT-7", "GMT-7"), ("Etc/GMT-8", "GMT-8"), ("Etc/GMT-9", "GMT-9"), ("Etc/GMT0", "GMT0"), ("Etc/Greenwich", "Greenwich"), ("Etc/UCT", "UCT"), ("Etc/UTC", "UTC"), ("Etc/Universal", "Universal"), ("Etc/Zulu", "Zulu"), ("Europe/Amsterdam", "Amsterdam"), ("Europe/Andorra", "Andorra"), ("Europe/Astrakhan", "Astrakhan"), ("Europe/Athens", "Athens"), ("Europe/Belfast", "Belfast"), ("Europe/Belgrade", "Belgrade"), ("Europe/Berlin", "Berlin"), ("Europe/Bratislava", "Bratislava"), ("Europe/Brussels", "Brussels"), ("Europe/Bucharest", "Bucharest"), ("Europe/Budapest", "Budapest"), ("Europe/Busingen", "Busingen"), ("Europe/Chisinau", "Chisinau"), ("Europe/Copenhagen", "Copenhagen"), ("Europe/Dublin", "Dublin"), ("Europe/Gibraltar", "Gibraltar"), ("Europe/Guernsey", "Guernsey"), ("Europe/Helsinki", "Helsinki"), ("Europe/Isle_of_Man", "Isle of Man"), ("Europe/Istanbul", "Istanbul"), ("Europe/Jersey", "Jersey"), ("Europe/Kaliningrad", "Kaliningrad"), ("Europe/Kiev", "Kiev"), ("Europe/Kirov", "Kirov"), ("Europe/Lisbon", "Lisbon"), ("Europe/Ljubljana", "Ljubljana"), ("Europe/London", "London"), ("Europe/Luxembourg", "Luxembourg"), ("Europe/Madrid", "Madrid"), ("Europe/Malta", "Malta"), ("Europe/Mariehamn", "Mariehamn"), ("Europe/Minsk", "Minsk"), ("Europe/Monaco", "Monaco"), ("Europe/Moscow", "Moscow"), ("Europe/Nicosia", "Nicosia"), ("Europe/Oslo", "Oslo"), ("Europe/Paris", "Paris"), ("Europe/Podgorica", "Podgorica"), ("Europe/Prague", "Prague"), ("Europe/Riga", "Riga"), ("Europe/Rome", "Rome"), ("Europe/Samara", "Samara"), ("Europe/San_Marino", "San Marino"), ("Europe/Sarajevo", "Sarajevo"), ("Europe/Saratov", "Saratov"), ("Europe/Simferopol", "Simferopol"), ("Europe/Skopje", "Skopje"), ("Europe/Sofia", "Sofia"), ("Europe/Stockholm", "Stockholm"), ("Europe/Tallinn", "Tallinn"), ("Europe/Tirane", "Tirane"), ("Europe/Tiraspol", "Tiraspol"), ("Europe/Ulyanovsk", "Ulyanovsk"), ("Europe/Uzhgorod", "Uzhgorod"), ("Europe/Vaduz", "Vaduz"), ("Europe/Vatican", "Vatican"), ("Europe/Vienna", "Vienna"), ("Europe/Vilnius", "Vilnius"), ("Europe/Volgograd", "Volgograd"), ("Europe/Warsaw", "Warsaw"), ("Europe/Zagreb", "Zagreb"), ("Europe/Zaporozhye", "Zaporozhye"), ("Europe/Zurich", "Zurich"), ("GB", "GB"), ("GB-Eire", "GB Eire"), ("GMT", "GMT"), ("GMT+0", "GMT+0"), ("GMT-0", "GMT 0"), ("GMT0", "GMT0"), ("Greenwich", "Greenwich"), ("HST", "HST"), ("Hongkong", "Hongkong"), ("Iceland", "Iceland"), ("Indian/Antananarivo", "Antananarivo"), ("Indian/Chagos", "Chagos"), ("Indian/Christmas", "Christmas"), ("Indian/Cocos", "Cocos"), ("Indian/Comoro", "Comoro"), ("Indian/Kerguelen", "Kerguelen"), ("Indian/Mahe", "Mahe"), ("Indian/Maldives", "Maldives"), ("Indian/Mauritius", "Mauritius"), ("Indian/Mayotte", "Mayotte"), ("Indian/Reunion", "Reunion"), ("Iran", "Iran"), ("Israel", "Israel"), ("Jamaica", "Jamaica"), ("Japan", "Japan"), ("Kwajalein", "Kwajalein"), ("Libya", "Libya"), ("MET", "MET"), ("MST", "MST"), ("MST7MDT", "MST7MDT"), ("Mexico/BajaNorte", "BajaNorte"), ("Mexico/BajaSur", "BajaSur"), ("Mexico/General", "General"), ("NZ", "NZ"), ("NZ-CHAT", "NZ CHAT"), ("Navajo", "Navajo"), ("PRC", "PRC"), ("PST8PDT", "PST8PDT"), ("Pacific/Apia", "Apia"), ("Pacific/Auckland", "Auckland"), ("Pacific/Bougainville", "Bougainville"), ("Pacific/Chatham", "Chatham"), ("Pacific/Chuuk", "Chuuk"), ("Pacific/Easter", "Easter"), ("Pacific/Efate", "Efate"), ("Pacific/Enderbury", "Enderbury"), ("Pacific/Fakaofo", "Fakaofo"), ("Pacific/Fiji", "Fiji"), ("Pacific/Funafuti", "Funafuti"), ("Pacific/Galapagos", "Galapagos"), ("Pacific/Gambier", "Gambier"), ("Pacific/Guadalcanal", "Guadalcanal"), ("Pacific/Guam", "Guam"), ("Pacific/Honolulu", "Honolulu"), ("Pacific/Johnston", "Johnston"), ("Pacific/Kiritimati", "Kiritimati"), ("Pacific/Kosrae", "Kosrae"), ("Pacific/Kwajalein", "Kwajalein"), ("Pacific/Majuro", "Majuro"), ("Pacific/Marquesas", "Marquesas"), ("Pacific/Midway", "Midway"), ("Pacific/Nauru", "Nauru"), ("Pacific/Niue", "Niue"), ("Pacific/Norfolk", "Norfolk"), ("Pacific/Noumea", "Noumea"), ("Pacific/Pago_Pago", "Pago Pago"), ("Pacific/Palau", "Palau"), ("Pacific/Pitcairn", "Pitcairn"), ("Pacific/Pohnpei", "Pohnpei"), ("Pacific/Ponape", "Ponape"), ("Pacific/Port_Moresby", "Port Moresby"), ("Pacific/Rarotonga", "Rarotonga"), ("Pacific/Saipan", "Saipan"), ("Pacific/Samoa", "Samoa"), ("Pacific/Tahiti", "Tahiti"), ("Pacific/Tarawa", "Tarawa"), ("Pacific/Tongatapu", "Tongatapu"), ("Pacific/Truk", "Truk"), ("Pacific/Wake", "Wake"), ("Pacific/Wallis", "Wallis"), ("Pacific/Yap", "Yap"), ("Poland", "Poland"), ("Portugal", "Portugal"), ("ROC", "ROC"), ("ROK", "ROK"), ("Singapore", "Singapore"), ("Turkey", "Turkey"), ("UCT", "UCT"), ("US/Alaska", "Alaska"), ("US/Aleutian", "Aleutian"), ("US/Arizona", "Arizona"), ("US/Central", "Central"), ("US/East-Indiana", "East Indiana"), ("US/Eastern", "Eastern"), ("US/Hawaii", "Hawaii"), ("US/Indiana-Starke", "Indiana Starke"), ("US/Michigan", "Michigan"), ("US/Mountain", "Mountain"), ("US/Pacific", "Pacific"), ("US/Pacific-New", "Pacific New"), ("US/Samoa", "Samoa"), ("UTC", "UTC"), ("Universal", "Universal"), ("W-SU", "W SU"), ("WET", "WET"), ("Zulu", "Zulu"), ]
mit
Karasiq/scalajs-highcharts
src/main/scala/com/highmaps/config/SeriesBubbleStatesSelect.scala
7443
/** * Automatically generated file. Please do not edit. * @author Highcharts Config Generator by Karasiq * @see [[http://api.highcharts.com/highmaps]] */ package com.highmaps.config import scalajs.js, js.`|` import com.highcharts.CleanJsObject import com.highcharts.HighchartsUtils._ /** * @note JavaScript name: <code>series&lt;bubble&gt;-states-select</code> */ @js.annotation.ScalaJSDefined class SeriesBubbleStatesSelect extends com.highcharts.HighchartsGenericObject { /** * <p>Animation setting for hovering the graph in line-type series.</p> * @since 5.0.8 */ val animation: js.UndefOr[Boolean | js.Object] = js.undefined /** * <p>The additional line width for the graph of a hovered series.</p> * @example <a href="https://jsfiddle.net/gh/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-states-hover-linewidthplus/">5 pixels wider</a> <a href="https://jsfiddle.net/gh/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-states-hover-linewidthplus/">5 pixels wider</a> * @since 4.0.3 */ val lineWidthPlus: js.UndefOr[Double] = js.undefined /** * <p>In Highcharts 1.0, the appearance of all markers belonging to the * hovered series. For settings on the hover state of the individual * point, see * <a href="#plotOptions.series.marker.states.hover">marker.states.hover</a>.</p> */ val marker: js.UndefOr[CleanJsObject[SeriesBubbleStatesSelectMarker]] = js.undefined /** * <p>Options for the halo appearing around the hovered point in line- * type series as well as outside the hovered slice in pie charts. * By default the halo is filled by the current point or series * color with an opacity of 0.25. The halo can be disabled by * setting the <code>halo</code> option to <code>false</code>.</p> * <p>In styled mode, the halo is styled with the <code>.highcharts-halo</code> * class, with colors inherited from <code>.highcharts-color-{n}</code>.</p> * @example <a href="https://jsfiddle.net/gh/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/halo/">Halo options</a> <a href="https://jsfiddle.net/gh/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/halo/">Halo options</a> * @since 4.0 */ val halo: js.Any = js.undefined /** * <p>Enable separate styles for the hovered series to visualize that * the user hovers either the series itself or the legend. .</p> * @example <a href="https://jsfiddle.net/gh/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-states-hover-enabled/">Line</a> <a href="https://jsfiddle.net/gh/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-states-hover-enabled-column/">Column</a> <a href="https://jsfiddle.net/gh/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-states-hover-enabled-pie/">Pie</a> * @since 1.2 */ val enabled: js.UndefOr[Boolean] = js.undefined /** * <p>Pixel width of the graph line. By default this property is * undefined, and the <code>lineWidthPlus</code> property dictates how much * to increase the linewidth from normal state.</p> * @example <a href="https://jsfiddle.net/gh/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-states-hover-linewidth/">5px line on hover</a> */ val lineWidth: js.UndefOr[Double] = js.undefined /** * <p>The color of the shape in this state</p> * @example <a href="https://jsfiddle.net/gh/library/pure/highcharts/highcharts/tree/master/samples/maps/plotoptions/series-states-hover/">Hover options</a> */ val color: js.UndefOr[String | js.Object] = js.undefined /** * <p>The border color of the point in this state.</p> */ val borderColor: js.UndefOr[String | js.Object] = js.undefined /** * <p>The border width of the point in this state</p> */ val borderWidth: js.UndefOr[Double] = js.undefined } object SeriesBubbleStatesSelect { /** * @param animation <p>Animation setting for hovering the graph in line-type series.</p> * @param lineWidthPlus <p>The additional line width for the graph of a hovered series.</p> * @param marker <p>In Highcharts 1.0, the appearance of all markers belonging to the. hovered series. For settings on the hover state of the individual. point, see. <a href="#plotOptions.series.marker.states.hover">marker.states.hover</a>.</p> * @param halo <p>Options for the halo appearing around the hovered point in line-. type series as well as outside the hovered slice in pie charts.. By default the halo is filled by the current point or series. color with an opacity of 0.25. The halo can be disabled by. setting the <code>halo</code> option to <code>false</code>.</p>. <p>In styled mode, the halo is styled with the <code>.highcharts-halo</code>. class, with colors inherited from <code>.highcharts-color-{n}</code>.</p> * @param enabled <p>Enable separate styles for the hovered series to visualize that. the user hovers either the series itself or the legend. .</p> * @param lineWidth <p>Pixel width of the graph line. By default this property is. undefined, and the <code>lineWidthPlus</code> property dictates how much. to increase the linewidth from normal state.</p> * @param color <p>The color of the shape in this state</p> * @param borderColor <p>The border color of the point in this state.</p> * @param borderWidth <p>The border width of the point in this state</p> */ def apply(animation: js.UndefOr[Boolean | js.Object] = js.undefined, lineWidthPlus: js.UndefOr[Double] = js.undefined, marker: js.UndefOr[CleanJsObject[SeriesBubbleStatesSelectMarker]] = js.undefined, halo: js.UndefOr[js.Any] = js.undefined, enabled: js.UndefOr[Boolean] = js.undefined, lineWidth: js.UndefOr[Double] = js.undefined, color: js.UndefOr[String | js.Object] = js.undefined, borderColor: js.UndefOr[String | js.Object] = js.undefined, borderWidth: js.UndefOr[Double] = js.undefined): SeriesBubbleStatesSelect = { val animationOuter: js.UndefOr[Boolean | js.Object] = animation val lineWidthPlusOuter: js.UndefOr[Double] = lineWidthPlus val markerOuter: js.UndefOr[CleanJsObject[SeriesBubbleStatesSelectMarker]] = marker val haloOuter: js.Any = halo val enabledOuter: js.UndefOr[Boolean] = enabled val lineWidthOuter: js.UndefOr[Double] = lineWidth val colorOuter: js.UndefOr[String | js.Object] = color val borderColorOuter: js.UndefOr[String | js.Object] = borderColor val borderWidthOuter: js.UndefOr[Double] = borderWidth com.highcharts.HighchartsGenericObject.toCleanObject(new SeriesBubbleStatesSelect { override val animation: js.UndefOr[Boolean | js.Object] = animationOuter override val lineWidthPlus: js.UndefOr[Double] = lineWidthPlusOuter override val marker: js.UndefOr[CleanJsObject[SeriesBubbleStatesSelectMarker]] = markerOuter override val halo: js.Any = haloOuter override val enabled: js.UndefOr[Boolean] = enabledOuter override val lineWidth: js.UndefOr[Double] = lineWidthOuter override val color: js.UndefOr[String | js.Object] = colorOuter override val borderColor: js.UndefOr[String | js.Object] = borderColorOuter override val borderWidth: js.UndefOr[Double] = borderWidthOuter }) } }
mit
plotly/plotly.py
packages/python/plotly/plotly/validators/layout/scene/annotation/_yanchor.py
508
import _plotly_utils.basevalidators class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, plotly_name="yanchor", parent_name="layout.scene.annotation", **kwargs ): super(YanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["auto", "top", "middle", "bottom"]), **kwargs )
mit
viciious/go-tarantool
slave.go
14521
package tarantool import ( "bufio" "context" "io" "time" "github.com/satori/go.uuid" "github.com/viciious/go-tarantool/typeconv" ) const ( procLUALastSnapVClock = "lastsnapvclock" ) // PacketIterator is a wrapper around Slave provided iteration over new Packets functionality. type PacketIterator interface { Next() (*Packet, error) } // Slave connects to Tarantool 1.6, 1.7 or 1.10 instance and subscribes for changes. // Tarantool instance acting as a master sees Slave like any replica in replication set. // Slave can't be used concurrently, route responses from returned channel instead. type Slave struct { c *Connection cr *bufio.Reader cw *bufio.Writer UUID string VClock VectorClock ReplicaSet ReplicaSet next func() (*Packet, error) // next stores current iterator p *Packet // p stores last packet for Packet method err error // err stores last error for Err method } // NewSlave instance with tarantool master uri. // URI is parsed by url package and therefore should contains any scheme supported by net.Dial. func NewSlave(uri string, opts ...Options) (s *Slave, err error) { s = new(Slave) options := Options{} if len(opts) > 0 { options = opts[0] } s.ReplicaSet = NewReplicaSet() if err = s.parseOptions(uri, options); err != nil { return nil, err } // it is discussable to connect to instance in instance creation if err = s.connect(uri, options); err != nil { return nil, err } // prevent from NPE in Next method s.next = s.nextEOF return s, nil } func (s *Slave) parseOptions(uri string, options Options) (err error) { if len(options.UUID) == 0 { s.UUID = uuid.NewV1().String() } else { s.UUID = options.UUID } s.ReplicaSet.UUID = options.ReplicaSetUUID return nil } // Attach Slave to Replica Set and subscribe for the new(!) DML requests. // Use out chan for asynchronous packet receiving or synchronous PacketIterator otherwise. // If you need all requests in chan use JoinWithSnap(chan) and then s.Subscribe(s.VClock[1:]...). func (s *Slave) Attach(out ...chan *Packet) (it PacketIterator, err error) { if err = s.Join(); err != nil { return nil, err } // skip reserved zero index of the Vector Clock if len(s.VClock) <= 1 { return nil, ErrVectorClock } if it, err = s.Subscribe(s.VClock[1:]...); err != nil { return nil, err } // no chan means synchronous dml request receiving if s.isEmptyChan(out...) { return it, nil } // consume new DML requests and send them to the given chan go func(out chan *Packet) { defer close(out) for s.HasNext() { out <- s.Packet() } }(out[0]) // return nil iterator to avoid concurrent using of the Next method return nil, nil } // Close Slave connection to Master. func (s *Slave) Close() error { return s.disconnect() } // Join the Replica Set using Master instance. func (s *Slave) Join() (err error) { _, err = s.JoinWithSnap() if err != nil { return err } for s.HasNext() { } return s.Err() } // JoinWithSnap the Replica Set using Master instance. // Snapshot logs is available through the given out channel or returned PacketIterator. // (In truth, Slave itself is returned in PacketIterator wrapper) func (s *Slave) JoinWithSnap(out ...chan *Packet) (it PacketIterator, err error) { if err = s.join(); err != nil { return nil, err } // set iterator for the Next method s.next = s.nextSnap if s.isEmptyChan(out...) { // no chan means synchronous snapshot scanning return s, nil } defer close(out[0]) for s.HasNext() { out[0] <- s.Packet() } return nil, s.Err() } // isEmptyChan parses channels option. func (s *Slave) isEmptyChan(out ...chan *Packet) bool { return len(out) == 0 || out[0] == nil } // Subscribe for DML requests (insert, update, delete, replace, upsert) since vector clock. // Variadic lsn is start vector clock. Each lsn is one clock in vector (sequentially). // One lsn is enough for master-slave replica set. // Replica Set and self UUID should be set before call subscribe. Use options in New or Join for it. // Subscribe sends requests asynchronously to out channel specified or use synchronous PacketIterator otherwise. func (s *Slave) Subscribe(lsns ...uint64) (it PacketIterator, err error) { if len(lsns) == 0 || len(lsns) >= VClockMax { return nil, ErrVectorClock } //don't call subscribe if there are no options had been set or before join request if !s.IsInReplicaSet() { return nil, ErrNotInReplicaSet } if err = s.subscribe(lsns...); err != nil { return nil, err } // set iterator for the Next method s.next = s.nextXlog // Tarantool >= 1.7.0 sends periodic heartbeat messages if s.Version() < version1_7_0 { return s, nil } // Start sending heartbeat messages to master go s.heartbeat() return s, nil } // IsInReplicaSet checks whether Slave has Replica Set params or not. func (s *Slave) IsInReplicaSet() bool { return len(s.UUID) > 0 && len(s.ReplicaSet.UUID) > 0 } func (s *Slave) LastSnapVClock() (VectorClock, error) { pp, err := s.newPacket(&Call{Name: procLUALastSnapVClock}) if err != nil { return nil, err } if err = s.send(pp); err != nil { return nil, err } s.c.releasePacket(pp) if pp, err = s.receive(); err != nil { return nil, err } defer s.c.releasePacket(pp) p := &pp.packet err = p.UnmarshalBinary(pp.body) if err != nil { return nil, err } if p.Cmd != OKCommand { s.p = p if p.Result == nil { return nil, ErrBadResult } s.err = p.Result.Error return nil, s.err } res := p.Result.Data if len(res) == 0 || len(res[0]) == 0 { return nil, ErrBadResult } vc := NewVectorClock() for i, lsnu64 := range res[0] { lsn, rerr := numberToUint64(lsnu64) if rerr != nil { return nil, ErrBadResult } vc.Follow(uint32(i+1), lsn) } return vc, nil } // join send JOIN request. func (s *Slave) join() (err error) { pp, err := s.newPacket(&Join{UUID: s.UUID}) if err != nil { return } if err = s.send(pp); err != nil { return err } s.c.releasePacket(pp) // Tarantool < 1.7.0: if JOIN is successful, there is no "OK" // response, but a stream of rows from checkpoint. if s.Version() < version1_7_0 { return nil } if pp, err = s.receive(); err != nil { return err } defer pp.Release() p := &Packet{} if err := p.UnmarshalBinary(pp.body); err != nil { return err } if p.Cmd != OKCommand { s.p = p if p.Result == nil { return ErrBadResult } return p.Result.Error } v := new(VClock) _, err = v.UnmarshalMsg(pp.body) if err != nil { return err } s.VClock = v.VClock return nil } // subscribe sends SUBSCRIBE request and waits for VCLOCK response. func (s *Slave) subscribe(lsns ...uint64) error { vc := NewVectorClock(lsns...) pp, err := s.newPacket(&Subscribe{ UUID: s.UUID, ReplicaSetUUID: s.ReplicaSet.UUID, VClock: vc, }) if err != nil { return err } if err = s.send(pp); err != nil { return err } s.c.releasePacket(pp) if pp, err = s.receive(); err != nil { return err } defer s.c.releasePacket(pp) p := &pp.packet err = p.UnmarshalBinary(pp.body) if err != nil { return err } if p.Cmd != OKCommand { s.p = p if p.Result == nil { return ErrBadResult } return p.Result.Error } v := new(VClock) _, err = v.UnmarshalMsg(pp.body) if err != nil { return err } s.VClock = v.VClock return nil } // HasNext implements bufio.Scanner Scan style iterator. func (s *Slave) HasNext() bool { s.p, s.err = s.Next() if s.err == nil { return true } if s.err == io.EOF { s.err = nil } return false } // Packet has been got by HasNext method. func (s *Slave) Packet() *Packet { return s.p } // Err has been got by HasNext method. func (s *Slave) Err() error { return s.err } // Next implements PacketIterator interface. func (s *Slave) Next() (*Packet, error) { // Next wraps unexported "next" fields. // Because of exported Next field can't implements needed interface itself. var ( p *Packet err error ) if s.Version() < version1_7_7 { if p, err = s.next(); err != nil { // don't iterate after error has been occurred s.next = s.nextEOF } return p, err } // Process periodic heartbeat messages from master for tarantool >= 1.7.7 for { p, err = s.next() if err != nil { // don't iterate after error has occurred s.next = s.nextEOF break } // Skip non DML requests and heartbeat messages if p.Request == nil && p.Result.ErrorCode == OKCommand { continue } break } return p, err } // nextFinalData iterates new packets (response on JOIN request for Tarantool > 1.7.0) func (s *Slave) nextFinalData() (p *Packet, err error) { pp, err := s.receive() if err != nil { return nil, err } defer pp.Release() p = &Packet{} if err := p.UnmarshalBinary(pp.body); err != nil { return nil, err } if !s.VClock.Follow(p.InstanceID, p.LSN) { return nil, ErrVectorClock } switch p.Cmd { case InsertCommand: q := p.Request.(*Insert) switch q.Space { case SpaceSchema: // assert space _schema always has str index on field one // and in "cluster" tuple uuid is string too // {"cluster", "ea74fc91-54fe-4f64-adae-ad2bc3eb4194"} key := q.Tuple[0].(string) if key == SchemaKeyClusterUUID { s.ReplicaSet.UUID = q.Tuple[1].(string) } case SpaceCluster: // fill in Replica Set from _cluster space; format: // {0x1, "89b1203b-acda-4ff1-ae76-8069145344b8"} // {0x2, "7c025e42-2394-11e7-aacf-0242ac110002"} // in reality _cluster key field is decoded to uint64 // but we know exactly that it can be cast to uint32 without losing data instanceIDu64, _ := typeconv.IntfToUint64(q.Tuple[0]) instanceID, _ := typeconv.IntfToUint32(instanceIDu64) // uuid s.ReplicaSet.SetInstance(instanceID, q.Tuple[1].(string)) } case OKCommand: // Current vclock. This is not used now, ignore. return nil, io.EOF } return p, nil } // nextXlog iterates new packets (responses on SUBSCRIBE request). func (s *Slave) nextXlog() (p *Packet, err error) { pp, err := s.receive() if err != nil { return nil, err } defer s.c.releasePacket(pp) p = &Packet{} err = p.UnmarshalBinary(pp.body) if err != nil { return nil, err } // Tarantool >= 1.7.7 master sends periodic heartbeat messages without body if s.Version() < version1_7_7 && p.Result == nil && p.Request == nil { return nil, ErrBadResult } // skip heartbeat message if p.Request == nil && p.Result.ErrorCode == OKCommand { return p, nil } if !s.VClock.Follow(p.InstanceID, p.LSN) { return nil, ErrVectorClock } return p, nil } // nextSnap iterates responses on JOIN request. // At the end it returns io.EOF error and nil packet. // While iterating all func (s *Slave) nextSnap() (p *Packet, err error) { pp, err := s.receive() if err != nil { return nil, err } defer s.c.releasePacket(pp) p = &Packet{} err = p.UnmarshalBinary(pp.body) if err != nil { return nil, err } // we have to parse snapshot logs to find replica set instances, UUID // this response error type means that UUID had been joined Replica Set already joined := uint(ErrorFlag | ErrTupleFound) switch p.Cmd { case InsertCommand: q := p.Request.(*Insert) switch q.Space { case SpaceSchema: // assert space _schema always has str index on field one // and in "cluster" tuple uuid is string too // {"cluster", "ea74fc91-54fe-4f64-adae-ad2bc3eb4194"} key := q.Tuple[0].(string) if key == SchemaKeyClusterUUID { s.ReplicaSet.UUID = q.Tuple[1].(string) } case SpaceCluster: // fill in Replica Set from _cluster space; format: // {0x1, "89b1203b-acda-4ff1-ae76-8069145344b8"} // {0x2, "7c025e42-2394-11e7-aacf-0242ac110002"} // in reality _cluster key field is decoded to int64 // but we know exactly that it can be casted to uint32 without data loss instanceIDu64, _ := typeconv.IntfToUint64(q.Tuple[0]) instanceID, _ := typeconv.IntfToUint32(instanceIDu64) // uuid s.ReplicaSet.SetInstance(instanceID, q.Tuple[1].(string)) } case OKCommand: v := new(VClock) _, err = v.UnmarshalMsg(pp.body) if err != nil { return nil, err } s.VClock = v.VClock if s.Version() < version1_7_0 { return nil, io.EOF } s.next = s.nextFinalData return p, nil case joined: // already joined return nil, io.EOF } return p, nil } // nextEOF is empty iterator to avoid calling others in inappropriate cases. func (s *Slave) nextEOF() (*Packet, error) { return nil, io.EOF } // for Tarantool >= 1.7.0 heartbeat sends encoded vclock to master every second func (s *Slave) heartbeat() { if s.Version() < version1_7_0 { return } var ( err error pp *BinaryPacket numSeqErrors int ) const maxSeqErrors = 5 ticker := time.NewTicker(time.Second) defer ticker.Stop() loop: for { select { case <-s.c.exit: return case <-ticker.C: if pp, err = s.newPacket(&VClock{ VClock: s.VClock, }); err != nil { break loop } err = s.send(pp) pp.Release() if err == nil { numSeqErrors = 0 continue } numSeqErrors++ if numSeqErrors == maxSeqErrors { break loop } } } s.disconnect() } // connect to tarantool instance (dial + handshake + auth). func (s *Slave) connect(uri string, options Options) (err error) { dsn, opts, err := parseOptions(uri, options) if err != nil { return } conn, err := newConn(context.Background(), dsn.Scheme, dsn.Host, opts) if err != nil { return } s.c = conn s.cr = bufio.NewReaderSize(s.c.tcpConn, DefaultReaderBufSize) // for better error checking while writing to connection s.cw = bufio.NewWriter(s.c.tcpConn) return } // disconnect call stop on shadow connection instance. func (s *Slave) disconnect() (err error) { s.c.stop() return } // send packed packet to the connection buffer, flush buffer. func (s *Slave) send(pp *BinaryPacket) (err error) { if _, err = pp.WriteTo(s.cw); err != nil { return } return s.cw.Flush() } // receive new response packet. func (s *Slave) receive() (*BinaryPacket, error) { pp := packetPool.Get() _, err := pp.ReadFrom(s.cr) return pp, err } // newPacket compose packet from body. func (s *Slave) newPacket(q Query) (pp *BinaryPacket, err error) { pp = packetPool.GetWithID(s.c.nextID()) if err = pp.packMsg(q, s.c.packData); err != nil { s.c.releasePacket(pp) return nil, err } return } func (s *Slave) Version() uint32 { return s.c.greeting.Version }
mit
drewet/gtk
src/widgets/css_provider.rs
1837
// Copyright 2013-2015, The Rust-GNOME Project Developers. // See the COPYRIGHT file at the top-level directory of this distribution. // Licensed under the MIT license, see the LICENSE file or <http://opensource.org/licenses/MIT> use std::fmt::{self, Display, Formatter}; use ffi::{self, GtkCssProvider}; use glib::translate::{ToGlibPtr, from_glib_full}; use glib::{self, GlibContainer}; #[repr(C)] pub struct CssProvider { pointer: *mut GtkCssProvider } impl ::StyleProviderTrait for CssProvider {} impl CssProvider { pub fn new() -> Self { unsafe { CssProvider { pointer: ffi::gtk_css_provider_new() } } } pub fn get_default() -> Self { unsafe { CssProvider { pointer: ffi::gtk_css_provider_get_default() } } } pub fn get_named(name: &str, variant: &str) -> Self { unsafe { CssProvider { pointer: ffi::gtk_css_provider_get_named(name.to_glib_none().0, variant.to_glib_none().0) } } } pub fn load_from_path(path: &str) -> Result<CssProvider, glib::Error> { unsafe { let pointer = ffi::gtk_css_provider_new(); let mut error = ::std::ptr::null_mut(); ffi::gtk_css_provider_load_from_path(pointer, path.to_glib_none().0, &mut error); if error.is_null() { Ok(CssProvider { pointer: pointer }) } else { Err(glib::Error::wrap(error)) } } } } impl Display for CssProvider { fn fmt(&self, f: &mut Formatter) -> fmt::Result { let tmp: String = unsafe { from_glib_full(ffi::gtk_css_provider_to_string(self.pointer)) }; write!(f, "{}", tmp) } } impl_GObjectFunctions!(CssProvider, GtkCssProvider); impl_TraitObject!(CssProvider, GtkCssProvider);
mit
hypercharge/hypercharge-ruby
lib/hypercharge/concerns.rb
1462
# encoding: UTF-8 module Hypercharge module Concerns # :nodoc: module Enum # :nodoc: # This module contains mixins for renums # module UpcaseName def self.included(base) base.extend ClassMethods end module ClassMethods def with_name(name) super(name.to_s.upcase) || super(name) end end def hc_name name.downcase end end module CamelizedName def self.included(base) base.extend ClassMethods end module ClassMethods def with_name(name) super(::Hypercharge::StringHelpers.camelize(name)) || super(name) end end def hc_name ::Hypercharge::StringHelpers.underscore(name) end end # provides ActiveSupport::StringInquirer like behaviour for REnum's # # enum :Status, [:APPROVED, :DECLINED] # o = Status::APPROVED # o.approved? => true module Inquirer def method_missing(m, *a) if m[-1] == "?" && m.size > 1 self.class.class_eval do define_method m do ::Hypercharge::StringHelpers.underscore(m[0...-1]) == \ ::Hypercharge::StringHelpers.underscore(self.name) end end send(m) else super end end end end end end
mit
miscbrah/misccoin
src/qt/locale/bitcoin_zh_TW.ts
113385
<?xml version="1.0" ?><!DOCTYPE TS><TS language="zh_TW" version="2.0"> <defauMSCodec>UTF-8</defauMSCodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About MiscCoin</source> <translation>關於莱特幣</translation> </message> <message> <location line="+39"/> <source>&lt;b&gt;MiscCoin&lt;/b&gt; version</source> <translation>&lt;b&gt;莱特幣&lt;/b&gt;版本</translation> </message> <message> <location line="+57"/> <source> This is experimental software. Distributed under the MIT/X11 software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php. This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard.</source> <translation> 這是一套實驗性的軟體. 此軟體是依據 MIT/X11 軟體授權條款散布, 詳情請見附帶的 COPYING 檔案, 或是以下網站: http://www.opensource.org/licenses/mit-license.php. 此產品也包含了由 OpenSSL Project 所開發的 OpenSSL Toolkit (http://www.openssl.org/) 軟體, 由 Eric Young (eay@cryptsoft.com) 撰寫的加解密軟體, 以及由 Thomas Bernard 所撰寫的 UPnP 軟體.</translation> </message> <message> <location filename="../aboutdialog.cpp" line="+14"/> <source>Copyright</source> <translation>版權</translation> </message> <message> <location line="+0"/> <source>The MiscCoin developers</source> <translation>莱特幣開發人員</translation> </message> </context> <context> <name>AddressBookPage</name> <message> <location filename="../forms/addressbookpage.ui" line="+14"/> <source>Address Book</source> <translation>位址簿</translation> </message> <message> <location line="+19"/> <source>Double-click to edit address or label</source> <translation>點兩下來修改位址或標記</translation> </message> <message> <location line="+27"/> <source>Create a new address</source> <translation>產生新位址</translation> </message> <message> <location line="+14"/> <source>Copy the currently selected address to the system clipboard</source> <translation>複製目前選取的位址到系統剪貼簿</translation> </message> <message> <location line="-11"/> <source>&amp;New Address</source> <translation>新增位址</translation> </message> <message> <location filename="../addressbookpage.cpp" line="+63"/> <source>These are your MiscCoin 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>這些是你用來收款的莱特幣位址. 你可以提供不同的位址給不同的付款人, 來追蹤是誰支付給你.</translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="+14"/> <source>&amp;Copy Address</source> <translation>複製位址</translation> </message> <message> <location line="+11"/> <source>Show &amp;QR Code</source> <translation>顯示 &amp;QR 條碼</translation> </message> <message> <location line="+11"/> <source>Sign a message to prove you own a MiscCoin address</source> <translation>簽署訊息是用來證明莱特幣位址是你的</translation> </message> <message> <location line="+3"/> <source>Sign &amp;Message</source> <translation>訊息簽署</translation> </message> <message> <location line="+25"/> <source>Delete the currently selected address from the list</source> <translation>從列表中刪除目前選取的位址</translation> </message> <message> <location line="+27"/> <source>Export the data in the current tab to a file</source> <translation>將目前分頁的資料匯出存成檔案</translation> </message> <message> <location line="+3"/> <source>&amp;Export</source> <translation>匯出</translation> </message> <message> <location line="-44"/> <source>Verify a message to ensure it was signed with a specified MiscCoin address</source> <translation>驗證訊息是用來確認訊息是用指定的莱特幣位址簽署的</translation> </message> <message> <location line="+3"/> <source>&amp;Verify Message</source> <translation>訊息驗證</translation> </message> <message> <location line="+14"/> <source>&amp;Delete</source> <translation>刪除</translation> </message> <message> <location filename="../addressbookpage.cpp" line="-5"/> <source>These are your MiscCoin addresses for sending payments. Always check the amount and the receiving address before sending coins.</source> <translation>這是你用來付款的莱特幣位址. 在付錢之前, 務必要檢查金額和收款位址是否正確.</translation> </message> <message> <location line="+13"/> <source>Copy &amp;Label</source> <translation>複製標記</translation> </message> <message> <location line="+1"/> <source>&amp;Edit</source> <translation>編輯</translation> </message> <message> <location line="+1"/> <source>Send &amp;Coins</source> <translation>付錢</translation> </message> <message> <location line="+260"/> <source>Export Address Book Data</source> <translation>匯出位址簿資料</translation> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation>逗號區隔資料檔 (*.csv)</translation> </message> <message> <location line="+13"/> <source>Error exporting</source> <translation>匯出失敗</translation> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation>無法寫入檔案 %1.</translation> </message> </context> <context> <name>AddressTableModel</name> <message> <location filename="../addresstablemodel.cpp" line="+144"/> <source>Label</source> <translation>標記</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>位址</translation> </message> <message> <location line="+36"/> <source>(no label)</source> <translation>(沒有標記)</translation> </message> </context> <context> <name>AskPassphraseDialog</name> <message> <location filename="../forms/askpassphrasedialog.ui" line="+26"/> <source>Passphrase Dialog</source> <translation>密碼對話視窗</translation> </message> <message> <location line="+21"/> <source>Enter passphrase</source> <translation>輸入密碼</translation> </message> <message> <location line="+14"/> <source>New passphrase</source> <translation>新的密碼</translation> </message> <message> <location line="+14"/> <source>Repeat new passphrase</source> <translation>重複新密碼</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="+33"/> <source>Enter the new passphrase to the wallet.&lt;br/&gt;Please use a passphrase of &lt;b&gt;10 or more random characters&lt;/b&gt;, or &lt;b&gt;eight or more words&lt;/b&gt;.</source> <translation>輸入錢包的新密碼.&lt;br/&gt;請用&lt;b&gt;10個以上的字元&lt;/b&gt;, 或是&lt;b&gt;8個以上的單字&lt;/b&gt;.</translation> </message> <message> <location line="+1"/> <source>Encrypt wallet</source> <translation>錢包加密</translation> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to unlock the wallet.</source> <translation>這個動作需要用你的錢包密碼來解鎖</translation> </message> <message> <location line="+5"/> <source>Unlock wallet</source> <translation>錢包解鎖</translation> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to decrypt the wallet.</source> <translation>這個動作需要用你的錢包密碼來解密</translation> </message> <message> <location line="+5"/> <source>Decrypt wallet</source> <translation>錢包解密</translation> </message> <message> <location line="+3"/> <source>Change passphrase</source> <translation>變更密碼</translation> </message> <message> <location line="+1"/> <source>Enter the old and new passphrase to the wallet.</source> <translation>輸入錢包的新舊密碼.</translation> </message> <message> <location line="+46"/> <source>Confirm wallet encryption</source> <translation>錢包加密確認</translation> </message> <message> <location line="+1"/> <source>Warning: If you encrypt your wallet and lose your passphrase, you will &lt;b&gt;LOSE ALL OF YOUR MiscCoinS&lt;/b&gt;!</source> <translation>警告: 如果將錢包加密後忘記密碼, 你會&lt;b&gt;失去其中所有的莱特幣&lt;/b&gt;!</translation> </message> <message> <location line="+0"/> <source>Are you sure you wish to encrypt your wallet?</source> <translation>你確定要將錢包加密嗎?</translation> </message> <message> <location line="+15"/> <source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source> <translation>重要: 請改用新產生有加密的錢包檔, 來取代之前錢包檔的備份. 為了安全性的理由, 當你開始使用新的有加密的錢包時, 舊錢包的備份就不能再使用了.</translation> </message> <message> <location line="+100"/> <location line="+24"/> <source>Warning: The Caps Lock key is on!</source> <translation>警告: 大寫字母鎖定作用中!</translation> </message> <message> <location line="-130"/> <location line="+58"/> <source>Wallet encrypted</source> <translation>錢包已加密</translation> </message> <message> <location line="-56"/> <source>MiscCoin will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your MiscCoins from being stolen by malware infecting your computer.</source> <translation>莱特幣現在要關閉以完成加密程序. 請記住, 加密錢包無法完全防止入侵電腦的惡意程式偷取你的莱特幣.</translation> </message> <message> <location line="+13"/> <location line="+7"/> <location line="+42"/> <location line="+6"/> <source>Wallet encryption failed</source> <translation>錢包加密失敗</translation> </message> <message> <location line="-54"/> <source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source> <translation>錢包加密因程式內部錯誤而失敗. 你的錢包還是沒有加密.</translation> </message> <message> <location line="+7"/> <location line="+48"/> <source>The supplied passphrases do not match.</source> <translation>提供的密碼不符.</translation> </message> <message> <location line="-37"/> <source>Wallet unlock failed</source> <translation>錢包解鎖失敗</translation> </message> <message> <location line="+1"/> <location line="+11"/> <location line="+19"/> <source>The passphrase entered for the wallet decryption was incorrect.</source> <translation>用來解密錢包的密碼輸入錯誤.</translation> </message> <message> <location line="-20"/> <source>Wallet decryption failed</source> <translation>錢包解密失敗</translation> </message> <message> <location line="+14"/> <source>Wallet passphrase was successfully changed.</source> <translation>錢包密碼變更成功.</translation> </message> </context> <context> <name>BitcoinGUI</name> <message> <location filename="../bitcoingui.cpp" line="+233"/> <source>Sign &amp;message...</source> <translation>訊息簽署...</translation> </message> <message> <location line="+280"/> <source>Synchronizing with network...</source> <translation>網路同步中...</translation> </message> <message> <location line="-349"/> <source>&amp;Overview</source> <translation>總覽</translation> </message> <message> <location line="+1"/> <source>Show general overview of wallet</source> <translation>顯示錢包一般總覽</translation> </message> <message> <location line="+20"/> <source>&amp;Transactions</source> <translation>交易</translation> </message> <message> <location line="+1"/> <source>Browse transaction history</source> <translation>瀏覽交易紀錄</translation> </message> <message> <location line="+7"/> <source>Edit the list of stored addresses and labels</source> <translation>編輯位址與標記的儲存列表</translation> </message> <message> <location line="-14"/> <source>Show the list of addresses for receiving payments</source> <translation>顯示收款位址的列表</translation> </message> <message> <location line="+31"/> <source>E&amp;xit</source> <translation>結束</translation> </message> <message> <location line="+1"/> <source>Quit application</source> <translation>結束應用程式</translation> </message> <message> <location line="+4"/> <source>Show information about MiscCoin</source> <translation>顯示莱特幣相關資訊</translation> </message> <message> <location line="+2"/> <source>About &amp;Qt</source> <translation>關於 &amp;Qt</translation> </message> <message> <location line="+1"/> <source>Show information about Qt</source> <translation>顯示有關於 Qt 的資訊</translation> </message> <message> <location line="+2"/> <source>&amp;Options...</source> <translation>選項...</translation> </message> <message> <location line="+6"/> <source>&amp;Encrypt Wallet...</source> <translation>錢包加密...</translation> </message> <message> <location line="+3"/> <source>&amp;Backup Wallet...</source> <translation>錢包備份...</translation> </message> <message> <location line="+2"/> <source>&amp;Change Passphrase...</source> <translation>密碼變更...</translation> </message> <message> <location line="+285"/> <source>Importing blocks from disk...</source> <translation>從磁碟匯入區塊中...</translation> </message> <message> <location line="+3"/> <source>Reindexing blocks on disk...</source> <translation>重建磁碟區塊索引中...</translation> </message> <message> <location line="-347"/> <source>Send coins to a MiscCoin address</source> <translation>付錢到莱特幣位址</translation> </message> <message> <location line="+49"/> <source>Modify configuration options for MiscCoin</source> <translation>修改莱特幣的設定選項</translation> </message> <message> <location line="+9"/> <source>Backup wallet to another location</source> <translation>將錢包備份到其它地方</translation> </message> <message> <location line="+2"/> <source>Change the passphrase used for wallet encryption</source> <translation>變更錢包加密用的密碼</translation> </message> <message> <location line="+6"/> <source>&amp;Debug window</source> <translation>除錯視窗</translation> </message> <message> <location line="+1"/> <source>Open debugging and diagnostic console</source> <translation>開啓除錯與診斷主控台</translation> </message> <message> <location line="-4"/> <source>&amp;Verify message...</source> <translation>驗證訊息...</translation> </message> <message> <location line="-165"/> <location line="+530"/> <source>MiscCoin</source> <translation>莱特幣</translation> </message> <message> <location line="-530"/> <source>Wallet</source> <translation>錢包</translation> </message> <message> <location line="+101"/> <source>&amp;Send</source> <translation>付出</translation> </message> <message> <location line="+7"/> <source>&amp;Receive</source> <translation>收受</translation> </message> <message> <location line="+14"/> <source>&amp;Addresses</source> <translation>位址</translation> </message> <message> <location line="+22"/> <source>&amp;About MiscCoin</source> <translation>關於莱特幣</translation> </message> <message> <location line="+9"/> <source>&amp;Show / Hide</source> <translation>顯示或隱藏</translation> </message> <message> <location line="+1"/> <source>Show or hide the main Window</source> <translation>顯示或隱藏主視窗</translation> </message> <message> <location line="+3"/> <source>Encrypt the private keys that belong to your wallet</source> <translation>將屬於你的錢包的密鑰加密</translation> </message> <message> <location line="+7"/> <source>Sign messages with your MiscCoin addresses to prove you own them</source> <translation>用莱特幣位址簽署訊息來證明那是你的</translation> </message> <message> <location line="+2"/> <source>Verify messages to ensure they were signed with specified MiscCoin addresses</source> <translation>驗證訊息來確認是用指定的莱特幣位址簽署的</translation> </message> <message> <location line="+28"/> <source>&amp;File</source> <translation>檔案</translation> </message> <message> <location line="+7"/> <source>&amp;Settings</source> <translation>設定</translation> </message> <message> <location line="+6"/> <source>&amp;Help</source> <translation>求助</translation> </message> <message> <location line="+9"/> <source>Tabs toolbar</source> <translation>分頁工具列</translation> </message> <message> <location line="+17"/> <location line="+10"/> <source>[testnet]</source> <translation>[testnet]</translation> </message> <message> <location line="+47"/> <source>MiscCoin client</source> <translation>莱特幣客戶端軟體</translation> </message> <message numerus="yes"> <location line="+141"/> <source>%n active connection(s) to MiscCoin network</source> <translation><numerusform>與莱特幣網路有 %n 個連線在使用中</numerusform></translation> </message> <message> <location line="+22"/> <source>No block source available...</source> <translation>目前沒有區塊來源...</translation> </message> <message> <location line="+12"/> <source>Processed %1 of %2 (estimated) blocks of transaction history.</source> <translation>已處理了估計全部 %2 個中的 %1 個區塊的交易紀錄.</translation> </message> <message> <location line="+4"/> <source>Processed %1 blocks of transaction history.</source> <translation>已處理了 %1 個區塊的交易紀錄.</translation> </message> <message numerus="yes"> <location line="+20"/> <source>%n hour(s)</source> <translation><numerusform>%n 個小時</numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n day(s)</source> <translation><numerusform>%n 天</numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n week(s)</source> <translation><numerusform>%n 個星期</numerusform></translation> </message> <message> <location line="+4"/> <source>%1 behind</source> <translation>落後 %1</translation> </message> <message> <location line="+14"/> <source>Last received block was generated %1 ago.</source> <translation>最近收到的區塊是在 %1 之前生產出來.</translation> </message> <message> <location line="+2"/> <source>Transactions after this will not yet be visible.</source> <translation>會看不見在這之後的交易.</translation> </message> <message> <location line="+22"/> <source>Error</source> <translation>錯誤</translation> </message> <message> <location line="+3"/> <source>Warning</source> <translation>警告</translation> </message> <message> <location line="+3"/> <source>Information</source> <translation>資訊</translation> </message> <message> <location line="+70"/> <source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source> <translation>這筆交易的資料大小超過限制了. 你還是可以付出 %1 的費用來傳送, 這筆費用會付給處理你的交易的節點, 並幫助維持整個網路. 你願意支付這項費用嗎?</translation> </message> <message> <location line="-140"/> <source>Up to date</source> <translation>最新狀態</translation> </message> <message> <location line="+31"/> <source>Catching up...</source> <translation>進度追趕中...</translation> </message> <message> <location line="+113"/> <source>Confirm transaction fee</source> <translation>確認交易手續費</translation> </message> <message> <location line="+8"/> <source>Sent transaction</source> <translation>付款交易</translation> </message> <message> <location line="+0"/> <source>Incoming transaction</source> <translation>收款交易</translation> </message> <message> <location line="+1"/> <source>Date: %1 Amount: %2 Type: %3 Address: %4 </source> <translation>日期: %1 金額: %2 類別: %3 位址: %4</translation> </message> <message> <location line="+33"/> <location line="+23"/> <source>URI handling</source> <translation>URI 處理</translation> </message> <message> <location line="-23"/> <location line="+23"/> <source>URI can not be parsed! This can be caused by an invalid MiscCoin address or malformed URI parameters.</source> <translation>無法解析 URI! 也許莱特幣位址無效或 URI 參數有誤.</translation> </message> <message> <location line="+17"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;unlocked&lt;/b&gt;</source> <translation>錢包&lt;b&gt;已加密&lt;/b&gt;並且正&lt;b&gt;解鎖中&lt;/b&gt;</translation> </message> <message> <location line="+8"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;locked&lt;/b&gt;</source> <translation>錢包&lt;b&gt;已加密&lt;/b&gt;並且正&lt;b&gt;上鎖中&lt;/b&gt;</translation> </message> <message> <location filename="../bitcoin.cpp" line="+111"/> <source>A fatal error occurred. MiscCoin can no longer continue safely and will quit.</source> <translation>發生了致命的錯誤. 莱特幣程式無法再繼續安全執行, 只好結束.</translation> </message> </context> <context> <name>ClientModel</name> <message> <location filename="../clientmodel.cpp" line="+104"/> <source>Network Alert</source> <translation>網路警報</translation> </message> </context> <context> <name>EditAddressDialog</name> <message> <location filename="../forms/editaddressdialog.ui" line="+14"/> <source>Edit Address</source> <translation>編輯位址</translation> </message> <message> <location line="+11"/> <source>&amp;Label</source> <translation>標記</translation> </message> <message> <location line="+10"/> <source>The label associated with this address book entry</source> <translation>與這個位址簿項目關聯的標記</translation> </message> <message> <location line="+7"/> <source>&amp;Address</source> <translation>位址</translation> </message> <message> <location line="+10"/> <source>The address associated with this address book entry. This can only be modified for sending addresses.</source> <translation>與這個位址簿項目關聯的位址. 付款位址才能被更改.</translation> </message> <message> <location filename="../editaddressdialog.cpp" line="+21"/> <source>New receiving address</source> <translation>新收款位址</translation> </message> <message> <location line="+4"/> <source>New sending address</source> <translation>新增付款位址</translation> </message> <message> <location line="+3"/> <source>Edit receiving address</source> <translation>編輯收款位址</translation> </message> <message> <location line="+4"/> <source>Edit sending address</source> <translation>編輯付款位址</translation> </message> <message> <location line="+76"/> <source>The entered address &quot;%1&quot; is already in the address book.</source> <translation>輸入的位址&quot;%1&quot;已存在於位址簿中.</translation> </message> <message> <location line="-5"/> <source>The entered address &quot;%1&quot; is not a valid MiscCoin address.</source> <translation>輸入的位址 &quot;%1&quot; 並不是有效的莱特幣位址.</translation> </message> <message> <location line="+10"/> <source>Could not unlock wallet.</source> <translation>無法將錢包解鎖.</translation> </message> <message> <location line="+5"/> <source>New key generation failed.</source> <translation>新密鑰產生失敗.</translation> </message> </context> <context> <name>GUIUtil::HelpMessageBox</name> <message> <location filename="../guiutil.cpp" line="+424"/> <location line="+12"/> <source>MiscCoin-Qt</source> <translation>莱特幣-Qt</translation> </message> <message> <location line="-12"/> <source>version</source> <translation>版本</translation> </message> <message> <location line="+2"/> <source>Usage:</source> <translation>用法:</translation> </message> <message> <location line="+1"/> <source>command-line options</source> <translation>命令列選項</translation> </message> <message> <location line="+4"/> <source>UI options</source> <translation>使用界面選項</translation> </message> <message> <location line="+1"/> <source>Set language, for example &quot;de_DE&quot; (default: system locale)</source> <translation>設定語言, 比如說 &quot;de_DE&quot; (預設: 系統語系)</translation> </message> <message> <location line="+1"/> <source>Start minimized</source> <translation>啓動時最小化 </translation> </message> <message> <location line="+1"/> <source>Show splash screen on startup (default: 1)</source> <translation>顯示啓動畫面 (預設: 1)</translation> </message> </context> <context> <name>OptionsDialog</name> <message> <location filename="../forms/optionsdialog.ui" line="+14"/> <source>Options</source> <translation>選項</translation> </message> <message> <location line="+16"/> <source>&amp;Main</source> <translation>主要</translation> </message> <message> <location line="+6"/> <source>Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB.</source> <translation>非必要的交易手續費, 以 kB 為計費單位, 且有助於縮短你的交易處理時間. 大部份交易資料的大小是 1 kB.</translation> </message> <message> <location line="+15"/> <source>Pay transaction &amp;fee</source> <translation>付交易手續費</translation> </message> <message> <location line="+31"/> <source>Automatically start MiscCoin after logging in to the system.</source> <translation>在登入系統後自動啓動莱特幣.</translation> </message> <message> <location line="+3"/> <source>&amp;Start MiscCoin on system login</source> <translation>系統登入時啟動莱特幣</translation> </message> <message> <location line="+35"/> <source>Reset all client options to default.</source> <translation>回復所有客戶端軟體選項成預設值.</translation> </message> <message> <location line="+3"/> <source>&amp;Reset Options</source> <translation>選項回復</translation> </message> <message> <location line="+13"/> <source>&amp;Network</source> <translation>網路</translation> </message> <message> <location line="+6"/> <source>Automatically open the MiscCoin client port on the router. This only works when your router supports UPnP and it is enabled.</source> <translation>自動在路由器上開啟 MiscCoin 的客戶端通訊埠. 只有在你的路由器支援 UPnP 且開啟時才有作用.</translation> </message> <message> <location line="+3"/> <source>Map port using &amp;UPnP</source> <translation>用 &amp;UPnP 設定通訊埠對應</translation> </message> <message> <location line="+7"/> <source>Connect to the MiscCoin network through a SOCKS proxy (e.g. when connecting through Tor).</source> <translation>透過 SOCKS 代理伺服器連線至莱特幣網路 (比如說要透過 Tor 連線).</translation> </message> <message> <location line="+3"/> <source>&amp;Connect through SOCKS proxy:</source> <translation>透過 SOCKS 代理伺服器連線:</translation> </message> <message> <location line="+9"/> <source>Proxy &amp;IP:</source> <translation>代理伺服器位址:</translation> </message> <message> <location line="+19"/> <source>IP address of the proxy (e.g. 127.0.0.1)</source> <translation>代理伺服器的網際網路位址 (比如說 127.0.0.1)</translation> </message> <message> <location line="+7"/> <source>&amp;Port:</source> <translation>通訊埠:</translation> </message> <message> <location line="+19"/> <source>Port of the proxy (e.g. 9050)</source> <translation>代理伺服器的通訊埠 (比如說 9050)</translation> </message> <message> <location line="+7"/> <source>SOCKS &amp;Version:</source> <translation>SOCKS 協定版本:</translation> </message> <message> <location line="+13"/> <source>SOCKS version of the proxy (e.g. 5)</source> <translation>代理伺服器的 SOCKS 協定版本 (比如說 5)</translation> </message> <message> <location line="+36"/> <source>&amp;Window</source> <translation>視窗</translation> </message> <message> <location line="+6"/> <source>Show only a tray icon after minimizing the window.</source> <translation>最小化視窗後只在通知區域顯示圖示</translation> </message> <message> <location line="+3"/> <source>&amp;Minimize to the tray instead of the taskbar</source> <translation>最小化至通知區域而非工作列</translation> </message> <message> <location line="+7"/> <source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source> <translation>當視窗關閉時將其最小化, 而非結束應用程式. 當勾選這個選項時, 應用程式只能用選單中的結束來停止執行.</translation> </message> <message> <location line="+3"/> <source>M&amp;inimize on close</source> <translation>關閉時最小化</translation> </message> <message> <location line="+21"/> <source>&amp;Display</source> <translation>顯示</translation> </message> <message> <location line="+8"/> <source>User Interface &amp;language:</source> <translation>使用界面語言</translation> </message> <message> <location line="+13"/> <source>The user interface language can be set here. This setting will take effect after restarting MiscCoin.</source> <translation>可以在這裡設定使用者介面的語言. 這個設定在莱特幣程式重啓後才會生效.</translation> </message> <message> <location line="+11"/> <source>&amp;Unit to show amounts in:</source> <translation>金額顯示單位:</translation> </message> <message> <location line="+13"/> <source>Choose the default subdivision unit to show in the interface and when sending coins.</source> <translation>選擇操作界面與付錢時預設顯示的細分單位.</translation> </message> <message> <location line="+9"/> <source>Whether to show MiscCoin addresses in the transaction list or not.</source> <translation>是否要在交易列表中顯示莱特幣位址.</translation> </message> <message> <location line="+3"/> <source>&amp;Display addresses in transaction list</source> <translation>在交易列表顯示位址</translation> </message> <message> <location line="+71"/> <source>&amp;OK</source> <translation>好</translation> </message> <message> <location line="+7"/> <source>&amp;Cancel</source> <translation>取消</translation> </message> <message> <location line="+10"/> <source>&amp;Apply</source> <translation>套用</translation> </message> <message> <location filename="../optionsdialog.cpp" line="+53"/> <source>default</source> <translation>預設</translation> </message> <message> <location line="+130"/> <source>Confirm options reset</source> <translation>確認回復選項</translation> </message> <message> <location line="+1"/> <source>Some settings may require a client restart to take effect.</source> <translation>有些設定可能需要重新啓動客戶端軟體才會生效.</translation> </message> <message> <location line="+0"/> <source>Do you want to proceed?</source> <translation>你想要就做下去嗎?</translation> </message> <message> <location line="+42"/> <location line="+9"/> <source>Warning</source> <translation>警告</translation> </message> <message> <location line="-9"/> <location line="+9"/> <source>This setting will take effect after restarting MiscCoin.</source> <translation>這個設定會在莱特幣程式重啓後生效.</translation> </message> <message> <location line="+29"/> <source>The supplied proxy address is invalid.</source> <translation>提供的代理伺服器位址無效</translation> </message> </context> <context> <name>OverviewPage</name> <message> <location filename="../forms/overviewpage.ui" line="+14"/> <source>Form</source> <translation>表單</translation> </message> <message> <location line="+50"/> <location line="+166"/> <source>The displayed information may be out of date. Your wallet automatically synchronizes with the MiscCoin network after a connection is established, but this process has not completed yet.</source> <translation>顯示的資訊可能是過期的. 與莱特幣網路的連線建立後, 你的錢包會自動和網路同步, 但這個步驟還沒完成.</translation> </message> <message> <location line="-124"/> <source>Balance:</source> <translation>餘額:</translation> </message> <message> <location line="+29"/> <source>Unconfirmed:</source> <translation>未確認額:</translation> </message> <message> <location line="-78"/> <source>Wallet</source> <translation>錢包</translation> </message> <message> <location line="+107"/> <source>Immature:</source> <translation>未熟成</translation> </message> <message> <location line="+13"/> <source>Mined balance that has not yet matured</source> <translation>尚未熟成的開採金額</translation> </message> <message> <location line="+46"/> <source>&lt;b&gt;Recent transactions&lt;/b&gt;</source> <translation>&lt;b&gt;最近交易&lt;/b&gt;</translation> </message> <message> <location line="-101"/> <source>Your current balance</source> <translation>目前餘額</translation> </message> <message> <location line="+29"/> <source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source> <translation>尚未確認之交易的總額, 不包含在目前餘額中</translation> </message> <message> <location filename="../overviewpage.cpp" line="+116"/> <location line="+1"/> <source>out of sync</source> <translation>沒同步</translation> </message> </context> <context> <name>PaymentServer</name> <message> <location filename="../paymentserver.cpp" line="+107"/> <source>Cannot start MiscCoin: click-to-pay handler</source> <translation>無法啟動 MiscCoin 隨按隨付處理器</translation> </message> </context> <context> <name>QRCodeDialog</name> <message> <location filename="../forms/qrcodedialog.ui" line="+14"/> <source>QR Code Dialog</source> <translation>QR 條碼對話視窗</translation> </message> <message> <location line="+59"/> <source>Request Payment</source> <translation>付款單</translation> </message> <message> <location line="+56"/> <source>Amount:</source> <translation>金額:</translation> </message> <message> <location line="-44"/> <source>Label:</source> <translation>標記:</translation> </message> <message> <location line="+19"/> <source>Message:</source> <translation>訊息:</translation> </message> <message> <location line="+71"/> <source>&amp;Save As...</source> <translation>儲存為...</translation> </message> <message> <location filename="../qrcodedialog.cpp" line="+62"/> <source>Error encoding URI into QR Code.</source> <translation>將 URI 編碼成 QR 條碼失敗</translation> </message> <message> <location line="+40"/> <source>The entered amount is invalid, please check.</source> <translation>輸入的金額無效, 請檢查看看.</translation> </message> <message> <location line="+23"/> <source>Resulting URI too long, try to reduce the text for label / message.</source> <translation>造出的網址太長了,請把標籤或訊息的文字縮短再試看看.</translation> </message> <message> <location line="+25"/> <source>Save QR Code</source> <translation>儲存 QR 條碼</translation> </message> <message> <location line="+0"/> <source>PNG Images (*.png)</source> <translation>PNG 圖檔 (*.png)</translation> </message> </context> <context> <name>RPCConsole</name> <message> <location filename="../forms/rpcconsole.ui" line="+46"/> <source>Client name</source> <translation>客戶端軟體名稱</translation> </message> <message> <location line="+10"/> <location line="+23"/> <location line="+26"/> <location line="+23"/> <location line="+23"/> <location line="+36"/> <location line="+53"/> <location line="+23"/> <location line="+23"/> <location filename="../rpcconsole.cpp" line="+339"/> <source>N/A</source> <translation>無</translation> </message> <message> <location line="-217"/> <source>Client version</source> <translation>客戶端軟體版本</translation> </message> <message> <location line="-45"/> <source>&amp;Information</source> <translation>資訊</translation> </message> <message> <location line="+68"/> <source>Using OpenSSL version</source> <translation>使用 OpenSSL 版本</translation> </message> <message> <location line="+49"/> <source>Startup time</source> <translation>啓動時間</translation> </message> <message> <location line="+29"/> <source>Network</source> <translation>網路</translation> </message> <message> <location line="+7"/> <source>Number of connections</source> <translation>連線數</translation> </message> <message> <location line="+23"/> <source>On testnet</source> <translation>位於測試網路</translation> </message> <message> <location line="+23"/> <source>Block chain</source> <translation>區塊鎖鏈</translation> </message> <message> <location line="+7"/> <source>Current number of blocks</source> <translation>目前區塊數</translation> </message> <message> <location line="+23"/> <source>Estimated total blocks</source> <translation>估計總區塊數</translation> </message> <message> <location line="+23"/> <source>Last block time</source> <translation>最近區塊時間</translation> </message> <message> <location line="+52"/> <source>&amp;Open</source> <translation>開啓</translation> </message> <message> <location line="+16"/> <source>Command-line options</source> <translation>命令列選項</translation> </message> <message> <location line="+7"/> <source>Show the MiscCoin-Qt help message to get a list with possible MiscCoin command-line options.</source> <translation>顯示莱特幣-Qt的求助訊息, 來取得可用的命令列選項列表.</translation> </message> <message> <location line="+3"/> <source>&amp;Show</source> <translation>顯示</translation> </message> <message> <location line="+24"/> <source>&amp;Console</source> <translation>主控台</translation> </message> <message> <location line="-260"/> <source>Build date</source> <translation>建置日期</translation> </message> <message> <location line="-104"/> <source>MiscCoin - Debug window</source> <translation>莱特幣 - 除錯視窗</translation> </message> <message> <location line="+25"/> <source>MiscCoin Core</source> <translation>莱特幣核心</translation> </message> <message> <location line="+279"/> <source>Debug log file</source> <translation>除錯紀錄檔</translation> </message> <message> <location line="+7"/> <source>Open the MiscCoin debug log file from the current data directory. This can take a few seconds for large log files.</source> <translation>從目前的資料目錄下開啓莱特幣的除錯紀錄檔. 當紀錄檔很大時可能要花好幾秒的時間.</translation> </message> <message> <location line="+102"/> <source>Clear console</source> <translation>清主控台</translation> </message> <message> <location filename="../rpcconsole.cpp" line="-30"/> <source>Welcome to the MiscCoin RPC console.</source> <translation>歡迎使用莱特幣 RPC 主控台.</translation> </message> <message> <location line="+1"/> <source>Use up and down arrows to navigate history, and &lt;b&gt;Ctrl-L&lt;/b&gt; to clear screen.</source> <translation>請用上下游標鍵來瀏覽歷史指令, 且可用 &lt;b&gt;Ctrl-L&lt;/b&gt; 來清理畫面.</translation> </message> <message> <location line="+1"/> <source>Type &lt;b&gt;help&lt;/b&gt; for an overview of available commands.</source> <translation>請打 &lt;b&gt;help&lt;/b&gt; 來看可用指令的簡介.</translation> </message> </context> <context> <name>SendCoinsDialog</name> <message> <location filename="../forms/sendcoinsdialog.ui" line="+14"/> <location filename="../sendcoinsdialog.cpp" line="+124"/> <location line="+5"/> <location line="+5"/> <location line="+5"/> <location line="+6"/> <location line="+5"/> <location line="+5"/> <source>Send Coins</source> <translation>付錢</translation> </message> <message> <location line="+50"/> <source>Send to multiple recipients at once</source> <translation>一次付給多個人</translation> </message> <message> <location line="+3"/> <source>Add &amp;Recipient</source> <translation>加收款人</translation> </message> <message> <location line="+20"/> <source>Remove all transaction fields</source> <translation>移除所有交易欄位</translation> </message> <message> <location line="+3"/> <source>Clear &amp;All</source> <translation>全部清掉</translation> </message> <message> <location line="+22"/> <source>Balance:</source> <translation>餘額:</translation> </message> <message> <location line="+10"/> <source>123.456 BTC</source> <translation>123.456 BTC</translation> </message> <message> <location line="+31"/> <source>Confirm the send action</source> <translation>確認付款動作</translation> </message> <message> <location line="+3"/> <source>S&amp;end</source> <translation>付出</translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="-59"/> <source>&lt;b&gt;%1&lt;/b&gt; to %2 (%3)</source> <translation>&lt;b&gt;%1&lt;/b&gt; 給 %2 (%3)</translation> </message> <message> <location line="+5"/> <source>Confirm send coins</source> <translation>確認要付錢</translation> </message> <message> <location line="+1"/> <source>Are you sure you want to send %1?</source> <translation>確定要付出 %1 嗎?</translation> </message> <message> <location line="+0"/> <source> and </source> <translation>和</translation> </message> <message> <location line="+23"/> <source>The recipient address is not valid, please recheck.</source> <translation>無效的收款位址, 請再檢查看看.</translation> </message> <message> <location line="+5"/> <source>The amount to pay must be larger than 0.</source> <translation>付款金額必須大於 0.</translation> </message> <message> <location line="+5"/> <source>The amount exceeds your balance.</source> <translation>金額超過餘額了.</translation> </message> <message> <location line="+5"/> <source>The total exceeds your balance when the %1 transaction fee is included.</source> <translation>包含 %1 的交易手續費後, 總金額超過你的餘額了.</translation> </message> <message> <location line="+6"/> <source>Duplicate address found, can only send to each address once per send operation.</source> <translation>發現有重複的位址. 每個付款動作中, 只能付給個別的位址一次.</translation> </message> <message> <location line="+5"/> <source>Error: Transaction creation failed!</source> <translation>錯誤: 交易產生失敗!</translation> </message> <message> <location line="+5"/> <source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation>錯誤: 交易被拒絕. 有時候會發生這種錯誤, 是因為你錢包中的一些錢已經被花掉了. 比如說你複製了錢包檔 wallet.dat, 然後用複製的錢包花掉了錢, 你現在所用的原來的錢包中卻沒有該筆交易紀錄.</translation> </message> </context> <context> <name>SendCoinsEntry</name> <message> <location filename="../forms/sendcoinsentry.ui" line="+14"/> <source>Form</source> <translation>表單</translation> </message> <message> <location line="+15"/> <source>A&amp;mount:</source> <translation>金額:</translation> </message> <message> <location line="+13"/> <source>Pay &amp;To:</source> <translation>付給:</translation> </message> <message> <location line="+34"/> <source>The address to send the payment to (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source> <translation>付款的目標位址 (比如說 Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</translation> </message> <message> <location line="+60"/> <location filename="../sendcoinsentry.cpp" line="+26"/> <source>Enter a label for this address to add it to your address book</source> <translation>輸入一個標記給這個位址, 並加到位址簿中</translation> </message> <message> <location line="-78"/> <source>&amp;Label:</source> <translation>標記:</translation> </message> <message> <location line="+28"/> <source>Choose address from address book</source> <translation>從位址簿中選一個位址</translation> </message> <message> <location line="+10"/> <source>Alt+A</source> <translation>Alt+A</translation> </message> <message> <location line="+7"/> <source>Paste address from clipboard</source> <translation>從剪貼簿貼上位址</translation> </message> <message> <location line="+10"/> <source>Alt+P</source> <translation>Alt+P</translation> </message> <message> <location line="+7"/> <source>Remove this recipient</source> <translation>去掉這個收款人</translation> </message> <message> <location filename="../sendcoinsentry.cpp" line="+1"/> <source>Enter a MiscCoin address (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source> <translation>輸入莱特幣位址 (比如說 Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</translation> </message> </context> <context> <name>SignVerifyMessageDialog</name> <message> <location filename="../forms/signverifymessagedialog.ui" line="+14"/> <source>Signatures - Sign / Verify a Message</source> <translation>簽章 - 簽署或驗證訊息</translation> </message> <message> <location line="+13"/> <source>&amp;Sign Message</source> <translation>訊息簽署</translation> </message> <message> <location line="+6"/> <source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source> <translation>你可以用自己的位址來簽署訊息, 以證明你對它的所有權. 但是請小心, 不要簽署語意含糊不清的內容, 因為釣魚式詐騙可能會用騙你簽署的手法來冒充是你. 只有在語句中的細節你都同意時才簽署.</translation> </message> <message> <location line="+18"/> <source>The address to sign the message with (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source> <translation>用來簽署訊息的位址 (比如說 Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</translation> </message> <message> <location line="+10"/> <location line="+213"/> <source>Choose an address from the address book</source> <translation>從位址簿選一個位址</translation> </message> <message> <location line="-203"/> <location line="+213"/> <source>Alt+A</source> <translation>Alt+A</translation> </message> <message> <location line="-203"/> <source>Paste address from clipboard</source> <translation>從剪貼簿貼上位址</translation> </message> <message> <location line="+10"/> <source>Alt+P</source> <translation>Alt+P</translation> </message> <message> <location line="+12"/> <source>Enter the message you want to sign here</source> <translation>在這裡輸入你想簽署的訊息</translation> </message> <message> <location line="+7"/> <source>Signature</source> <translation>簽章</translation> </message> <message> <location line="+27"/> <source>Copy the current signature to the system clipboard</source> <translation>複製目前的簽章到系統剪貼簿</translation> </message> <message> <location line="+21"/> <source>Sign the message to prove you own this MiscCoin address</source> <translation>簽署訊息是用來證明這個莱特幣位址是你的</translation> </message> <message> <location line="+3"/> <source>Sign &amp;Message</source> <translation>訊息簽署</translation> </message> <message> <location line="+14"/> <source>Reset all sign message fields</source> <translation>重置所有訊息簽署欄位</translation> </message> <message> <location line="+3"/> <location line="+146"/> <source>Clear &amp;All</source> <translation>全部清掉</translation> </message> <message> <location line="-87"/> <source>&amp;Verify Message</source> <translation>訊息驗證</translation> </message> <message> <location line="+6"/> <source>Enter the signing address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack.</source> <translation>請在下面輸入簽署的位址, 訊息(請確認完整複製了所包含的換行, 空格, 跳位符號等等), 與簽章, 以驗證該訊息. 請小心, 除了訊息內容外, 不要對簽章本身過度解讀, 以避免被用&quot;中間人攻擊法&quot;詐騙.</translation> </message> <message> <location line="+21"/> <source>The address the message was signed with (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source> <translation>簽署該訊息的位址 (比如說 Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</translation> </message> <message> <location line="+40"/> <source>Verify the message to ensure it was signed with the specified MiscCoin address</source> <translation>驗證訊息是用來確認訊息是用指定的莱特幣位址簽署的</translation> </message> <message> <location line="+3"/> <source>Verify &amp;Message</source> <translation>訊息驗證</translation> </message> <message> <location line="+14"/> <source>Reset all verify message fields</source> <translation>重置所有訊息驗證欄位</translation> </message> <message> <location filename="../signverifymessagedialog.cpp" line="+27"/> <location line="+3"/> <source>Enter a MiscCoin address (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source> <translation>輸入莱特幣位址 (比如說 Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</translation> </message> <message> <location line="-2"/> <source>Click &quot;Sign Message&quot; to generate signature</source> <translation>按&quot;訊息簽署&quot;來產生簽章</translation> </message> <message> <location line="+3"/> <source>Enter MiscCoin signature</source> <translation>輸入莱特幣簽章</translation> </message> <message> <location line="+82"/> <location line="+81"/> <source>The entered address is invalid.</source> <translation>輸入的位址無效.</translation> </message> <message> <location line="-81"/> <location line="+8"/> <location line="+73"/> <location line="+8"/> <source>Please check the address and try again.</source> <translation>請檢查位址是否正確後再試一次.</translation> </message> <message> <location line="-81"/> <location line="+81"/> <source>The entered address does not refer to a key.</source> <translation>輸入的位址沒有指到任何密鑰.</translation> </message> <message> <location line="-73"/> <source>Wallet unlock was cancelled.</source> <translation>錢包解鎖已取消.</translation> </message> <message> <location line="+8"/> <source>Private key for the entered address is not available.</source> <translation>沒有所輸入位址的密鑰.</translation> </message> <message> <location line="+12"/> <source>Message signing failed.</source> <translation>訊息簽署失敗.</translation> </message> <message> <location line="+5"/> <source>Message signed.</source> <translation>訊息已簽署.</translation> </message> <message> <location line="+59"/> <source>The signature could not be decoded.</source> <translation>無法將這個簽章解碼.</translation> </message> <message> <location line="+0"/> <location line="+13"/> <source>Please check the signature and try again.</source> <translation>請檢查簽章是否正確後再試一次.</translation> </message> <message> <location line="+0"/> <source>The signature did not match the message digest.</source> <translation>這個簽章與訊息的數位摘要不符.</translation> </message> <message> <location line="+7"/> <source>Message verification failed.</source> <translation>訊息驗證失敗.</translation> </message> <message> <location line="+5"/> <source>Message verified.</source> <translation>訊息已驗證.</translation> </message> </context> <context> <name>SplashScreen</name> <message> <location filename="../splashscreen.cpp" line="+22"/> <source>The MiscCoin developers</source> <translation>莱特幣開發人員</translation> </message> <message> <location line="+1"/> <source>[testnet]</source> <translation>[testnet]</translation> </message> </context> <context> <name>TransactionDesc</name> <message> <location filename="../transactiondesc.cpp" line="+20"/> <source>Open until %1</source> <translation>在 %1 前未定</translation> </message> <message> <location line="+6"/> <source>%1/offline</source> <translation>%1/離線中</translation> </message> <message> <location line="+2"/> <source>%1/unconfirmed</source> <translation>%1/未確認</translation> </message> <message> <location line="+2"/> <source>%1 confirmations</source> <translation>經確認 %1 次</translation> </message> <message> <location line="+18"/> <source>Status</source> <translation>狀態</translation> </message> <message numerus="yes"> <location line="+7"/> <source>, broadcast through %n node(s)</source> <translation><numerusform>, 已公告至 %n 個節點</numerusform></translation> </message> <message> <location line="+4"/> <source>Date</source> <translation>日期</translation> </message> <message> <location line="+7"/> <source>Source</source> <translation>來源</translation> </message> <message> <location line="+0"/> <source>Generated</source> <translation>生產出</translation> </message> <message> <location line="+5"/> <location line="+17"/> <source>From</source> <translation>來處</translation> </message> <message> <location line="+1"/> <location line="+22"/> <location line="+58"/> <source>To</source> <translation>目的</translation> </message> <message> <location line="-77"/> <location line="+2"/> <source>own address</source> <translation>自己的位址</translation> </message> <message> <location line="-2"/> <source>label</source> <translation>標籤</translation> </message> <message> <location line="+37"/> <location line="+12"/> <location line="+45"/> <location line="+17"/> <location line="+30"/> <source>Credit</source> <translation>入帳</translation> </message> <message numerus="yes"> <location line="-102"/> <source>matures in %n more block(s)</source> <translation><numerusform>將在 %n 個區塊產出後熟成</numerusform></translation> </message> <message> <location line="+2"/> <source>not accepted</source> <translation>不被接受</translation> </message> <message> <location line="+44"/> <location line="+8"/> <location line="+15"/> <location line="+30"/> <source>Debit</source> <translation>出帳</translation> </message> <message> <location line="-39"/> <source>Transaction fee</source> <translation>交易手續費</translation> </message> <message> <location line="+16"/> <source>Net amount</source> <translation>淨額</translation> </message> <message> <location line="+6"/> <source>Message</source> <translation>訊息</translation> </message> <message> <location line="+2"/> <source>Comment</source> <translation>附註</translation> </message> <message> <location line="+2"/> <source>Transaction ID</source> <translation>交易識別碼</translation> </message> <message> <location line="+3"/> <source>Generated coins must mature 120 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to &quot;not accepted&quot; and it won&apos;t be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source> <translation>生產出來的錢要再等 120 個區塊熟成之後, 才能夠花用. 當你產出區塊時, 它會被公布到網路上, 以被串連至區塊鎖鏈. 如果串連失敗了, 它的狀態就會變成&quot;不被接受&quot;, 且不能被花用. 當你產出區塊的幾秒鐘內, 也有其他節點產出區塊的話, 有時候就會發生這種情形.</translation> </message> <message> <location line="+7"/> <source>Debug information</source> <translation>除錯資訊</translation> </message> <message> <location line="+8"/> <source>Transaction</source> <translation>交易</translation> </message> <message> <location line="+3"/> <source>Inputs</source> <translation>輸入</translation> </message> <message> <location line="+23"/> <source>Amount</source> <translation>金額</translation> </message> <message> <location line="+1"/> <source>true</source> <translation>是</translation> </message> <message> <location line="+0"/> <source>false</source> <translation>否</translation> </message> <message> <location line="-209"/> <source>, has not been successfully broadcast yet</source> <translation>, 尚未成功公告出去</translation> </message> <message numerus="yes"> <location line="-35"/> <source>Open for %n more block(s)</source> <translation><numerusform>在接下來 %n 個區塊產出前未定</numerusform></translation> </message> <message> <location line="+70"/> <source>unknown</source> <translation>未知</translation> </message> </context> <context> <name>TransactionDescDialog</name> <message> <location filename="../forms/transactiondescdialog.ui" line="+14"/> <source>Transaction details</source> <translation>交易明細</translation> </message> <message> <location line="+6"/> <source>This pane shows a detailed description of the transaction</source> <translation>此版面顯示交易的詳細說明</translation> </message> </context> <context> <name>TransactionTableModel</name> <message> <location filename="../transactiontablemodel.cpp" line="+225"/> <source>Date</source> <translation>日期</translation> </message> <message> <location line="+0"/> <source>Type</source> <translation>種類</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>位址</translation> </message> <message> <location line="+0"/> <source>Amount</source> <translation>金額</translation> </message> <message numerus="yes"> <location line="+57"/> <source>Open for %n more block(s)</source> <translation><numerusform>在接下來 %n 個區塊產出前未定</numerusform></translation> </message> <message> <location line="+3"/> <source>Open until %1</source> <translation>在 %1 前未定</translation> </message> <message> <location line="+3"/> <source>Offline (%1 confirmations)</source> <translation>離線中 (經確認 %1 次)</translation> </message> <message> <location line="+3"/> <source>Unconfirmed (%1 of %2 confirmations)</source> <translation>未確認 (經確認 %1 次, 應確認 %2 次)</translation> </message> <message> <location line="+3"/> <source>Confirmed (%1 confirmations)</source> <translation>已確認 (經確認 %1 次)</translation> </message> <message numerus="yes"> <location line="+8"/> <source>Mined balance will be available when it matures in %n more block(s)</source> <translation><numerusform>開採金額將可在 %n 個區塊熟成後可用</numerusform></translation> </message> <message> <location line="+5"/> <source>This block was not received by any other nodes and will probably not be accepted!</source> <translation>沒有其他節點收到這個區塊, 也許它不被接受!</translation> </message> <message> <location line="+3"/> <source>Generated but not accepted</source> <translation>生產出但不被接受</translation> </message> <message> <location line="+43"/> <source>Received with</source> <translation>收受於</translation> </message> <message> <location line="+2"/> <source>Received from</source> <translation>收受自</translation> </message> <message> <location line="+3"/> <source>Sent to</source> <translation>付出至</translation> </message> <message> <location line="+2"/> <source>Payment to yourself</source> <translation>付給自己</translation> </message> <message> <location line="+2"/> <source>Mined</source> <translation>開採所得</translation> </message> <message> <location line="+38"/> <source>(n/a)</source> <translation>(不適用)</translation> </message> <message> <location line="+199"/> <source>Transaction status. Hover over this field to show number of confirmations.</source> <translation>交易狀態. 移動游標至欄位上方來顯示確認次數.</translation> </message> <message> <location line="+2"/> <source>Date and time that the transaction was received.</source> <translation>收到交易的日期與時間.</translation> </message> <message> <location line="+2"/> <source>Type of transaction.</source> <translation>交易的種類.</translation> </message> <message> <location line="+2"/> <source>Destination address of transaction.</source> <translation>交易的目標位址.</translation> </message> <message> <location line="+2"/> <source>Amount removed from or added to balance.</source> <translation>減去或加入至餘額的金額</translation> </message> </context> <context> <name>TransactionView</name> <message> <location filename="../transactionview.cpp" line="+52"/> <location line="+16"/> <source>All</source> <translation>全部</translation> </message> <message> <location line="-15"/> <source>Today</source> <translation>今天</translation> </message> <message> <location line="+1"/> <source>This week</source> <translation>這週</translation> </message> <message> <location line="+1"/> <source>This month</source> <translation>這個月</translation> </message> <message> <location line="+1"/> <source>Last month</source> <translation>上個月</translation> </message> <message> <location line="+1"/> <source>This year</source> <translation>今年</translation> </message> <message> <location line="+1"/> <source>Range...</source> <translation>指定範圍...</translation> </message> <message> <location line="+11"/> <source>Received with</source> <translation>收受於</translation> </message> <message> <location line="+2"/> <source>Sent to</source> <translation>付出至</translation> </message> <message> <location line="+2"/> <source>To yourself</source> <translation>給自己</translation> </message> <message> <location line="+1"/> <source>Mined</source> <translation>開採所得</translation> </message> <message> <location line="+1"/> <source>Other</source> <translation>其他</translation> </message> <message> <location line="+7"/> <source>Enter address or label to search</source> <translation>輸入位址或標記來搜尋</translation> </message> <message> <location line="+7"/> <source>Min amount</source> <translation>最小金額</translation> </message> <message> <location line="+34"/> <source>Copy address</source> <translation>複製位址</translation> </message> <message> <location line="+1"/> <source>Copy label</source> <translation>複製標記</translation> </message> <message> <location line="+1"/> <source>Copy amount</source> <translation>複製金額</translation> </message> <message> <location line="+1"/> <source>Copy transaction ID</source> <translation>複製交易識別碼</translation> </message> <message> <location line="+1"/> <source>Edit label</source> <translation>編輯標記</translation> </message> <message> <location line="+1"/> <source>Show transaction details</source> <translation>顯示交易明細</translation> </message> <message> <location line="+139"/> <source>Export Transaction Data</source> <translation>匯出交易資料</translation> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation>逗號分隔資料檔 (*.csv)</translation> </message> <message> <location line="+8"/> <source>Confirmed</source> <translation>已確認</translation> </message> <message> <location line="+1"/> <source>Date</source> <translation>日期</translation> </message> <message> <location line="+1"/> <source>Type</source> <translation>種類</translation> </message> <message> <location line="+1"/> <source>Label</source> <translation>標記</translation> </message> <message> <location line="+1"/> <source>Address</source> <translation>位址</translation> </message> <message> <location line="+1"/> <source>Amount</source> <translation>金額</translation> </message> <message> <location line="+1"/> <source>ID</source> <translation>識別碼</translation> </message> <message> <location line="+4"/> <source>Error exporting</source> <translation>匯出失敗</translation> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation>無法寫入至 %1 檔案.</translation> </message> <message> <location line="+100"/> <source>Range:</source> <translation>範圍:</translation> </message> <message> <location line="+8"/> <source>to</source> <translation>至</translation> </message> </context> <context> <name>WalletModel</name> <message> <location filename="../walletmodel.cpp" line="+193"/> <source>Send Coins</source> <translation>付錢</translation> </message> </context> <context> <name>WalletView</name> <message> <location filename="../walletview.cpp" line="+42"/> <source>&amp;Export</source> <translation>匯出</translation> </message> <message> <location line="+1"/> <source>Export the data in the current tab to a file</source> <translation>將目前分頁的資料匯出存成檔案</translation> </message> <message> <location line="+193"/> <source>Backup Wallet</source> <translation>錢包備份</translation> </message> <message> <location line="+0"/> <source>Wallet Data (*.dat)</source> <translation>錢包資料檔 (*.dat)</translation> </message> <message> <location line="+3"/> <source>Backup Failed</source> <translation>備份失敗</translation> </message> <message> <location line="+0"/> <source>There was an error trying to save the wallet data to the new location.</source> <translation>儲存錢包資料到新的地方失敗</translation> </message> <message> <location line="+4"/> <source>Backup Successful</source> <translation>備份成功</translation> </message> <message> <location line="+0"/> <source>The wallet data was successfully saved to the new location.</source> <translation>錢包的資料已經成功儲存到新的地方了.</translation> </message> </context> <context> <name>bitcoin-core</name> <message> <location filename="../bitcoinstrings.cpp" line="+94"/> <source>MiscCoin version</source> <translation>莱特幣版本</translation> </message> <message> <location line="+102"/> <source>Usage:</source> <translation>用法:</translation> </message> <message> <location line="-29"/> <source>Send command to -server or MiscCoind</source> <translation>送指令給 -server 或 MiscCoind </translation> </message> <message> <location line="-23"/> <source>List commands</source> <translation>列出指令 </translation> </message> <message> <location line="-12"/> <source>Get help for a command</source> <translation>取得指令說明 </translation> </message> <message> <location line="+24"/> <source>Options:</source> <translation>選項: </translation> </message> <message> <location line="+24"/> <source>Specify configuration file (default: MiscCoin.conf)</source> <translation>指定設定檔 (預設: MiscCoin.conf) </translation> </message> <message> <location line="+3"/> <source>Specify pid file (default: MiscCoind.pid)</source> <translation>指定行程識別碼檔案 (預設: MiscCoind.pid) </translation> </message> <message> <location line="-1"/> <source>Specify data directory</source> <translation>指定資料目錄 </translation> </message> <message> <location line="-9"/> <source>Set database cache size in megabytes (default: 25)</source> <translation>設定資料庫快取大小為多少百萬位元組(MB, 預設: 25)</translation> </message> <message> <location line="-28"/> <source>Listen for connections on &lt;port&gt; (default: 9333 or testnet: 19333)</source> <translation>在通訊埠 &lt;port&gt; 聽候連線 (預設: 9333, 或若為測試網路: 19333)</translation> </message> <message> <location line="+5"/> <source>Maintain at most &lt;n&gt; connections to peers (default: 125)</source> <translation>維持與節點連線數的上限為 &lt;n&gt; 個 (預設: 125)</translation> </message> <message> <location line="-48"/> <source>Connect to a node to retrieve peer addresses, and disconnect</source> <translation>連線到某個節點以取得其它節點的位址, 然後斷線</translation> </message> <message> <location line="+82"/> <source>Specify your own public address</source> <translation>指定自己公開的位址</translation> </message> <message> <location line="+3"/> <source>Threshold for disconnecting misbehaving peers (default: 100)</source> <translation>與亂搞的節點斷線的臨界值 (預設: 100)</translation> </message> <message> <location line="-134"/> <source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source> <translation>避免與亂搞的節點連線的秒數 (預設: 86400)</translation> </message> <message> <location line="-29"/> <source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source> <translation>在 IPv4 網路上以通訊埠 %u 聽取 RPC 連線時發生錯誤: %s</translation> </message> <message> <location line="+27"/> <source>Listen for JSON-RPC connections on &lt;port&gt; (default: 9332 or testnet: 19332)</source> <translation>在通訊埠 &lt;port&gt; 聽候 JSON-RPC 連線 (預設: 9332, 或若為測試網路: 19332)</translation> </message> <message> <location line="+37"/> <source>Accept command line and JSON-RPC commands</source> <translation>接受命令列與 JSON-RPC 指令 </translation> </message> <message> <location line="+76"/> <source>Run in the background as a daemon and accept commands</source> <translation>以背景程式執行並接受指令</translation> </message> <message> <location line="+37"/> <source>Use the test network</source> <translation>使用測試網路 </translation> </message> <message> <location line="-112"/> <source>Accept connections from outside (default: 1 if no -proxy or -connect)</source> <translation>是否接受外來連線 (預設: 當沒有 -proxy 或 -connect 時預設為 1)</translation> </message> <message> <location line="-80"/> <source>%s, you must set a rpcpassword in the configuration file: %s It is recommended you use the following random password: rpcuser=MiscCoinrpc rpcpassword=%s (you do not need to remember this password) The username and password MUST NOT be the same. If the file does not exist, create it with owner-readable-only file permissions. It is also recommended to set alertnotify so you are notified of problems; for example: alertnotify=echo %%s | mail -s &quot;MiscCoin Alert&quot; admin@foo.com </source> <translation>%s, 你必須要在以下設定檔中設定 RPC 密碼(rpcpassword): %s 建議你使用以下隨機產生的密碼: rpcuser=MiscCoinrpc rpcpassword=%s (你不用記住這個密碼) 使用者名稱(rpcuser)和密碼(rpcpassword)不可以相同! 如果設定檔還不存在, 請在新增時, 設定檔案權限為&quot;只有主人才能讀取&quot;. 也建議你設定警示通知, 發生問題時你才會被通知到; 比如說設定為: alertnotify=echo %%s | mail -s &quot;MiscCoin Alert&quot; admin@foo.com </translation> </message> <message> <location line="+17"/> <source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source> <translation>設定在 IPv6 網路的通訊埠 %u 上聽候 RPC 連線失敗, 退而改用 IPv4 網路: %s</translation> </message> <message> <location line="+3"/> <source>Bind to given address and always listen on it. Use [host]:port notation for IPv6</source> <translation>和指定的位址繫結, 並總是在該位址聽候連線. IPv6 請用 &quot;[主機]:通訊埠&quot; 這種格式</translation> </message> <message> <location line="+3"/> <source>Cannot obtain a lock on data directory %s. MiscCoin is probably already running.</source> <translation>無法鎖定資料目錄 %s. 也許莱特幣已經在執行了.</translation> </message> <message> <location line="+3"/> <source>Error: The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation>錯誤: 交易被拒絕了! 有時候會發生這種錯誤, 是因為你錢包中的一些錢已經被花掉了. 比如說你複製了錢包檔 wallet.dat, 然後用複製的錢包花掉了錢, 你現在所用的原來的錢包中卻沒有該筆交易紀錄.</translation> </message> <message> <location line="+4"/> <source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds!</source> <translation>錯誤: 這筆交易需要至少 %s 的手續費! 因為它的金額太大, 或複雜度太高, 或是使用了最近才剛收到的款項.</translation> </message> <message> <location line="+3"/> <source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source> <translation>當收到相關警示時所要執行的指令 (指令中的 %s 會被取代為警示訊息)</translation> </message> <message> <location line="+3"/> <source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source> <translation>當錢包有交易改變時所要執行的指令 (指令中的 %s 會被取代為交易識別碼)</translation> </message> <message> <location line="+11"/> <source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source> <translation>設定高優先權或低手續費的交易資料大小上限為多少位元組 (預設: 27000)</translation> </message> <message> <location line="+6"/> <source>This is a pre-release test build - use at your own risk - do not use for mining or merchant applications</source> <translation>這是尚未發表的測試版本 - 使用請自負風險 - 請不要用於開採或商業應用</translation> </message> <message> <location line="+5"/> <source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source> <translation>警告: -paytxfee 設定了很高的金額! 這可是你交易付款所要付的手續費.</translation> </message> <message> <location line="+3"/> <source>Warning: Displayed transactions may not be correct! You may need to upgrade, or other nodes may need to upgrade.</source> <translation>警告: 顯示的交易可能不正確! 你可能需要升級, 或者需要等其它的節點升級.</translation> </message> <message> <location line="+3"/> <source>Warning: Please check that your computer&apos;s date and time are correct! If your clock is wrong MiscCoin will not work properly.</source> <translation>警告: 請檢查電腦時間與日期是否正確! 莱特幣無法在時鐘不準的情況下正常運作.</translation> </message> <message> <location line="+3"/> <source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source> <translation>警告: 讀取錢包檔 wallet.dat 失敗了! 所有的密鑰都正確讀取了, 但是交易資料或位址簿資料可能會缺少或不正確.</translation> </message> <message> <location line="+3"/> <source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source> <translation>警告: 錢包檔 wallet.dat 壞掉, 但資料被拯救回來了! 原來的 wallet.dat 會改儲存在 %s, 檔名為 wallet.{timestamp}.bak. 如果餘額或交易資料有誤, 你應該要用備份資料復原回來.</translation> </message> <message> <location line="+14"/> <source>Attempt to recover private keys from a corrupt wallet.dat</source> <translation>嘗試從壞掉的錢包檔 wallet.dat 復原密鑰</translation> </message> <message> <location line="+2"/> <source>Block creation options:</source> <translation>區塊產生選項:</translation> </message> <message> <location line="+5"/> <source>Connect only to the specified node(s)</source> <translation>只連線至指定節點(可多個)</translation> </message> <message> <location line="+3"/> <source>Corrupted block database detected</source> <translation>發現區塊資料庫壞掉了</translation> </message> <message> <location line="+1"/> <source>Discover own IP address (default: 1 when listening and no -externalip)</source> <translation>找出自己的網際網路位址 (預設: 當有聽候連線且沒有 -externalip 時為 1)</translation> </message> <message> <location line="+1"/> <source>Do you want to rebuild the block database now?</source> <translation>你要現在重建區塊資料庫嗎?</translation> </message> <message> <location line="+2"/> <source>Error initializing block database</source> <translation>初始化區塊資料庫失敗</translation> </message> <message> <location line="+1"/> <source>Error initializing wallet database environment %s!</source> <translation>錢包資料庫環境 %s 初始化錯誤!</translation> </message> <message> <location line="+1"/> <source>Error loading block database</source> <translation>載入區塊資料庫失敗</translation> </message> <message> <location line="+4"/> <source>Error opening block database</source> <translation>打開區塊資料庫檔案失敗</translation> </message> <message> <location line="+2"/> <source>Error: Disk space is low!</source> <translation>錯誤: 磁碟空間很少!</translation> </message> <message> <location line="+1"/> <source>Error: Wallet locked, unable to create transaction!</source> <translation>錯誤: 錢包被上鎖了, 無法產生新的交易!</translation> </message> <message> <location line="+1"/> <source>Error: system error: </source> <translation>錯誤: 系統錯誤:</translation> </message> <message> <location line="+1"/> <source>Failed to listen on any port. Use -listen=0 if you want this.</source> <translation>在任意的通訊埠聽候失敗. 如果你想的話可以用 -listen=0.</translation> </message> <message> <location line="+1"/> <source>Failed to read block info</source> <translation>讀取區塊資訊失敗</translation> </message> <message> <location line="+1"/> <source>Failed to read block</source> <translation>讀取區塊失敗</translation> </message> <message> <location line="+1"/> <source>Failed to sync block index</source> <translation>同步區塊索引失敗</translation> </message> <message> <location line="+1"/> <source>Failed to write block index</source> <translation>寫入區塊索引失敗</translation> </message> <message> <location line="+1"/> <source>Failed to write block info</source> <translation>寫入區塊資訊失敗</translation> </message> <message> <location line="+1"/> <source>Failed to write block</source> <translation>寫入區塊失敗</translation> </message> <message> <location line="+1"/> <source>Failed to write file info</source> <translation>寫入檔案資訊失敗</translation> </message> <message> <location line="+1"/> <source>Failed to write to coin database</source> <translation>寫入莱特幣資料庫失敗</translation> </message> <message> <location line="+1"/> <source>Failed to write transaction index</source> <translation>寫入交易索引失敗</translation> </message> <message> <location line="+1"/> <source>Failed to write undo data</source> <translation>寫入回復資料失敗</translation> </message> <message> <location line="+2"/> <source>Find peers using DNS lookup (default: 1 unless -connect)</source> <translation>是否允許在找節點時使用域名查詢 (預設: 當沒用 -connect 時為 1)</translation> </message> <message> <location line="+1"/> <source>Generate coins (default: 0)</source> <translation>生產莱特幣 (預設值: 0)</translation> </message> <message> <location line="+2"/> <source>How many blocks to check at startup (default: 288, 0 = all)</source> <translation>啓動時檢查的區塊數 (預設: 288, 指定 0 表示全部)</translation> </message> <message> <location line="+1"/> <source>How thorough the block verification is (0-4, default: 3)</source> <translation>區塊檢查的仔細程度 (0 至 4, 預設: 3)</translation> </message> <message> <location line="+19"/> <source>Not enough file descriptors available.</source> <translation>檔案描述器不足.</translation> </message> <message> <location line="+8"/> <source>Rebuild block chain index from current blk000??.dat files</source> <translation>從目前的區塊檔 blk000??.dat 重建鎖鏈索引</translation> </message> <message> <location line="+16"/> <source>Set the number of threads to service RPC calls (default: 4)</source> <translation>設定處理 RPC 服務請求的執行緒數目 (預設為 4)</translation> </message> <message> <location line="+26"/> <source>Verifying blocks...</source> <translation>驗證區塊資料中...</translation> </message> <message> <location line="+1"/> <source>Verifying wallet...</source> <translation>驗證錢包資料中...</translation> </message> <message> <location line="-69"/> <source>Imports blocks from external blk000??.dat file</source> <translation>從其它來源的 blk000??.dat 檔匯入區塊</translation> </message> <message> <location line="-76"/> <source>Set the number of script verification threads (up to 16, 0 = auto, &lt;0 = leave that many cores free, default: 0)</source> <translation>設定指令碼驗證的執行緒數目 (最多為 16, 若為 0 表示程式自動決定, 小於 0 表示保留不用的處理器核心數目, 預設為 0)</translation> </message> <message> <location line="+77"/> <source>Information</source> <translation>資訊</translation> </message> <message> <location line="+3"/> <source>Invalid -tor address: &apos;%s&apos;</source> <translation>無效的 -tor 位址: &apos;%s&apos;</translation> </message> <message> <location line="+1"/> <source>Invalid amount for -minrelaytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation>設定 -minrelaytxfee=&lt;金額&gt; 的金額無效: &apos;%s&apos;</translation> </message> <message> <location line="+1"/> <source>Invalid amount for -mintxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation>設定 -mintxfee=&lt;amount&gt; 的金額無效: &apos;%s&apos;</translation> </message> <message> <location line="+8"/> <source>Maintain a full transaction index (default: 0)</source> <translation>維護全部交易的索引 (預設為 0)</translation> </message> <message> <location line="+2"/> <source>Maximum per-connection receive buffer, &lt;n&gt;*1000 bytes (default: 5000)</source> <translation>每個連線的接收緩衝區大小上限為 &lt;n&gt;*1000 個位元組 (預設: 5000)</translation> </message> <message> <location line="+1"/> <source>Maximum per-connection send buffer, &lt;n&gt;*1000 bytes (default: 1000)</source> <translation>每個連線的傳送緩衝區大小上限為 &lt;n&gt;*1000 位元組 (預設: 1000)</translation> </message> <message> <location line="+2"/> <source>Only accept block chain matching built-in checkpoints (default: 1)</source> <translation>只接受與內建的檢查段點吻合的區塊鎖鏈 (預設: 1)</translation> </message> <message> <location line="+1"/> <source>Only connect to nodes in network &lt;net&gt; (IPv4, IPv6 or Tor)</source> <translation>只和 &lt;net&gt; 網路上的節點連線 (IPv4, IPv6, 或 Tor)</translation> </message> <message> <location line="+2"/> <source>Output extra debugging information. Implies all other -debug* options</source> <translation>輸出額外的除錯資訊. 包含了其它所有的 -debug* 選項</translation> </message> <message> <location line="+1"/> <source>Output extra network debugging information</source> <translation>輸出額外的網路除錯資訊</translation> </message> <message> <location line="+2"/> <source>Prepend debug output with timestamp</source> <translation>在除錯輸出內容前附加時間</translation> </message> <message> <location line="+5"/> <source>SSL options: (see the MiscCoin Wiki for SSL setup instructions)</source> <translation>SSL 選項: (SSL 設定程序請見 MiscCoin Wiki)</translation> </message> <message> <location line="+1"/> <source>Select the version of socks proxy to use (4-5, default: 5)</source> <translation>選擇 SOCKS 代理伺服器的協定版本(4 或 5, 預設: 5)</translation> </message> <message> <location line="+3"/> <source>Send trace/debug info to console instead of debug.log file</source> <translation>在終端機顯示追蹤或除錯資訊, 而非寫到 debug.log 檔</translation> </message> <message> <location line="+1"/> <source>Send trace/debug info to debugger</source> <translation>輸出追蹤或除錯資訊給除錯器</translation> </message> <message> <location line="+5"/> <source>Set maximum block size in bytes (default: 250000)</source> <translation>設定區塊大小上限為多少位元組 (預設: 250000)</translation> </message> <message> <location line="+1"/> <source>Set minimum block size in bytes (default: 0)</source> <translation>設定區塊大小下限為多少位元組 (預設: 0)</translation> </message> <message> <location line="+2"/> <source>Shrink debug.log file on client startup (default: 1 when no -debug)</source> <translation>客戶端軟體啓動時將 debug.log 檔縮小 (預設: 當沒有 -debug 時為 1)</translation> </message> <message> <location line="+1"/> <source>Signing transaction failed</source> <translation>簽署交易失敗</translation> </message> <message> <location line="+2"/> <source>Specify connection timeout in milliseconds (default: 5000)</source> <translation>指定連線在幾毫秒後逾時 (預設: 5000)</translation> </message> <message> <location line="+4"/> <source>System error: </source> <translation>系統錯誤:</translation> </message> <message> <location line="+4"/> <source>Transaction amount too small</source> <translation>交易金額太小</translation> </message> <message> <location line="+1"/> <source>Transaction amounts must be positive</source> <translation>交易金額必須是正的</translation> </message> <message> <location line="+1"/> <source>Transaction too large</source> <translation>交易位元量太大</translation> </message> <message> <location line="+7"/> <source>Use UPnP to map the listening port (default: 0)</source> <translation>是否使用通用即插即用(UPnP)協定來設定聽候連線的通訊埠 (預設: 0)</translation> </message> <message> <location line="+1"/> <source>Use UPnP to map the listening port (default: 1 when listening)</source> <translation>是否使用通用即插即用(UPnP)協定來設定聽候連線的通訊埠 (預設: 當有聽候連線為 1)</translation> </message> <message> <location line="+1"/> <source>Use proxy to reach tor hidden services (default: same as -proxy)</source> <translation>透過代理伺服器來使用 Tor 隱藏服務 (預設: 同 -proxy)</translation> </message> <message> <location line="+2"/> <source>Username for JSON-RPC connections</source> <translation>JSON-RPC 連線使用者名稱</translation> </message> <message> <location line="+4"/> <source>Warning</source> <translation>警告</translation> </message> <message> <location line="+1"/> <source>Warning: This version is obsolete, upgrade required!</source> <translation>警告: 這個版本已經被淘汰掉了, 必須要升級!</translation> </message> <message> <location line="+1"/> <source>You need to rebuild the databases using -reindex to change -txindex</source> <translation>改變 -txindex 參數後, 必須要用 -reindex 參數來重建資料庫</translation> </message> <message> <location line="+1"/> <source>wallet.dat corrupt, salvage failed</source> <translation>錢包檔 weallet.dat 壞掉了, 拯救失敗</translation> </message> <message> <location line="-50"/> <source>Password for JSON-RPC connections</source> <translation>JSON-RPC 連線密碼</translation> </message> <message> <location line="-67"/> <source>Allow JSON-RPC connections from specified IP address</source> <translation>只允許從指定網路位址來的 JSON-RPC 連線</translation> </message> <message> <location line="+76"/> <source>Send commands to node running on &lt;ip&gt; (default: 127.0.0.1)</source> <translation>送指令給在 &lt;ip&gt; 的節點 (預設: 127.0.0.1) </translation> </message> <message> <location line="-120"/> <source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source> <translation>當最新區塊改變時所要執行的指令 (指令中的 %s 會被取代為區塊的雜湊值)</translation> </message> <message> <location line="+147"/> <source>Upgrade wallet to latest format</source> <translation>將錢包升級成最新的格式</translation> </message> <message> <location line="-21"/> <source>Set key pool size to &lt;n&gt; (default: 100)</source> <translation>設定密鑰池大小為 &lt;n&gt; (預設: 100) </translation> </message> <message> <location line="-12"/> <source>Rescan the block chain for missing wallet transactions</source> <translation>重新掃描區塊鎖鏈, 以尋找錢包所遺漏的交易.</translation> </message> <message> <location line="+35"/> <source>Use OpenSSL (https) for JSON-RPC connections</source> <translation>於 JSON-RPC 連線使用 OpenSSL (https) </translation> </message> <message> <location line="-26"/> <source>Server certificate file (default: server.cert)</source> <translation>伺服器憑證檔 (預設: server.cert) </translation> </message> <message> <location line="+1"/> <source>Server private key (default: server.pem)</source> <translation>伺服器密鑰檔 (預設: server.pem) </translation> </message> <message> <location line="-151"/> <source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source> <translation>可以接受的加密法 (預設: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH) </translation> </message> <message> <location line="+165"/> <source>This help message</source> <translation>此協助訊息 </translation> </message> <message> <location line="+6"/> <source>Unable to bind to %s on this computer (bind returned error %d, %s)</source> <translation>無法和這台電腦上的 %s 繫結 (繫結回傳錯誤 %d, %s)</translation> </message> <message> <location line="-91"/> <source>Connect through socks proxy</source> <translation>透過 SOCKS 代理伺服器連線</translation> </message> <message> <location line="-10"/> <source>Allow DNS lookups for -addnode, -seednode and -connect</source> <translation>允許對 -addnode, -seednode, -connect 的參數使用域名查詢 </translation> </message> <message> <location line="+55"/> <source>Loading addresses...</source> <translation>載入位址中...</translation> </message> <message> <location line="-35"/> <source>Error loading wallet.dat: Wallet corrupted</source> <translation>載入檔案 wallet.dat 失敗: 錢包壞掉了</translation> </message> <message> <location line="+1"/> <source>Error loading wallet.dat: Wallet requires newer version of MiscCoin</source> <translation>載入檔案 wallet.dat 失敗: 此錢包需要新版的 MiscCoin</translation> </message> <message> <location line="+93"/> <source>Wallet needed to be rewritten: restart MiscCoin to complete</source> <translation>錢包需要重寫: 請重啟莱特幣來完成</translation> </message> <message> <location line="-95"/> <source>Error loading wallet.dat</source> <translation>載入檔案 wallet.dat 失敗</translation> </message> <message> <location line="+28"/> <source>Invalid -proxy address: &apos;%s&apos;</source> <translation>無效的 -proxy 位址: &apos;%s&apos;</translation> </message> <message> <location line="+56"/> <source>Unknown network specified in -onlynet: &apos;%s&apos;</source> <translation>在 -onlynet 指定了不明的網路別: &apos;%s&apos;</translation> </message> <message> <location line="-1"/> <source>Unknown -socks proxy version requested: %i</source> <translation>在 -socks 指定了不明的代理協定版本: %i</translation> </message> <message> <location line="-96"/> <source>Cannot resolve -bind address: &apos;%s&apos;</source> <translation>無法解析 -bind 位址: &apos;%s&apos;</translation> </message> <message> <location line="+1"/> <source>Cannot resolve -externalip address: &apos;%s&apos;</source> <translation>無法解析 -externalip 位址: &apos;%s&apos;</translation> </message> <message> <location line="+44"/> <source>Invalid amount for -paytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation>設定 -paytxfee=&lt;金額&gt; 的金額無效: &apos;%s&apos;</translation> </message> <message> <location line="+1"/> <source>Invalid amount</source> <translation>無效的金額</translation> </message> <message> <location line="-6"/> <source>Insufficient funds</source> <translation>累積金額不足</translation> </message> <message> <location line="+10"/> <source>Loading block index...</source> <translation>載入區塊索引中...</translation> </message> <message> <location line="-57"/> <source>Add a node to connect to and attempt to keep the connection open</source> <translation>加入一個要連線的節線, 並試著保持對它的連線暢通</translation> </message> <message> <location line="-25"/> <source>Unable to bind to %s on this computer. MiscCoin is probably already running.</source> <translation>無法和這台電腦上的 %s 繫結. 也許莱特幣已經在執行了.</translation> </message> <message> <location line="+64"/> <source>Fee per KB to add to transactions you send</source> <translation>交易付款時每 KB 的交易手續費</translation> </message> <message> <location line="+19"/> <source>Loading wallet...</source> <translation>載入錢包中...</translation> </message> <message> <location line="-52"/> <source>Cannot downgrade wallet</source> <translation>無法將錢包格式降級</translation> </message> <message> <location line="+3"/> <source>Cannot write default address</source> <translation>無法寫入預設位址</translation> </message> <message> <location line="+64"/> <source>Rescanning...</source> <translation>重新掃描中...</translation> </message> <message> <location line="-57"/> <source>Done loading</source> <translation>載入完成</translation> </message> <message> <location line="+82"/> <source>To use the %s option</source> <translation>為了要使用 %s 選項</translation> </message> <message> <location line="-74"/> <source>Error</source> <translation>錯誤</translation> </message> <message> <location line="-31"/> <source>You must set rpcpassword=&lt;password&gt; in the configuration file: %s If the file does not exist, create it with owner-readable-only file permissions.</source> <translation>你必須在下列設定檔中設定 RPC 密碼(rpcpassword=&lt;password&gt;): %s 如果這個檔案還不存在, 請在新增時, 設定檔案權限為&quot;只有主人才能讀取&quot;.</translation> </message> </context> </TS>
mit
spiral/spiral
tests/Framework/Database/DescribeTest.php
1920
<?php /** * Spiral Framework. * * @license MIT * @author Anton Titov (Wolfy-J) */ declare(strict_types=1); namespace Spiral\Tests\Framework\Database; use Spiral\Database\Database; use Spiral\Database\Exception\DBALException; use Spiral\Tests\Framework\ConsoleTest; class DescribeTest extends ConsoleTest { public function testDescribeWrongDB(): void { $this->expectException(DBALException::class); $this->runCommand('db:table', [ '--database' => 'missing', 'table' => 'missing' ]); } public function testDescribeWrongTable(): void { $this->expectException(DBALException::class); $this->runCommand('db:table', [ '--database' => 'runtime', 'table' => 'missing' ]); } public function testDescribeExisted(): void { /** @var Database $db */ $db = $this->app->get(Database::class); $table = $db->table('sample1')->getSchema(); $table->primary('primary_id'); $table->string('some_string'); $table->index(['some_string'])->setName('custom_index_1'); $table->save(); $table = $db->table('sample')->getSchema(); $table->primary('primary_id'); $table->integer('primary1_id'); $table->foreignKey(['primary1_id'])->references('sample1', ['primary_id']); $table->integer('some_int'); $table->index(['some_int'])->setName('custom_index'); $table->save(); $output = $this->runCommand('db:table', [ '--database' => 'default', 'table' => 'sample' ]); $this->assertStringContainsString('primary_id', $output); $this->assertStringContainsString('some_int', $output); $this->assertStringContainsString('custom_index', $output); $this->assertStringContainsString('sample1', $output); } }
mit
Leo-g/Flask-Scaffold
app/templates/static/node_modules/@angular/language-service/src/types.d.ts
11395
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /// <amd-module name="@angular/language-service/src/types" /> import { CompileDirectiveMetadata, CompileMetadataResolver, CompilePipeSummary, NgAnalyzedModules, StaticSymbol } from '@angular/compiler'; import { BuiltinType, DeclarationKind, Definition, PipeInfo, Pipes, Signature, Span, Symbol, SymbolDeclaration, SymbolQuery, SymbolTable } from '@angular/compiler-cli/src/language_services'; export { BuiltinType, DeclarationKind, Definition, PipeInfo, Pipes, Signature, Span, Symbol, SymbolDeclaration, SymbolQuery, SymbolTable }; /** * The information `LanguageService` needs from the `LanguageServiceHost` to describe the content of * a template and the language context the template is in. * * A host interface; see `LanguageSeriviceHost`. * * @experimental */ export interface TemplateSource { /** * The source of the template. */ readonly source: string; /** * The version of the source. As files are modified the version should change. That is, if the * `LanguageService` requesting template information for a source file and that file has changed * since the last time the host was asked for the file then this version string should be * different. No assumptions are made about the format of this string. * * The version can change more often than the source but should not change less often. */ readonly version: string; /** * The span of the template within the source file. */ readonly span: Span; /** * A static symbol for the template's component. */ readonly type: StaticSymbol; /** * The `SymbolTable` for the members of the component. */ readonly members: SymbolTable; /** * A `SymbolQuery` for the context of the template. */ readonly query: SymbolQuery; } /** * A sequence of template sources. * * A host type; see `LanguageSeriviceHost`. * * @experimental */ export declare type TemplateSources = TemplateSource[] | undefined; /** * Error information found getting declaration information * * A host type; see `LanguageServiceHost`. * * @experimental */ export interface DeclarationError { /** * The span of the error in the declaration's module. */ readonly span: Span; /** * The message to display describing the error or a chain * of messages. */ readonly message: string | DiagnosticMessageChain; } /** * Information about the component declarations. * * A file might contain a declaration without a template because the file contains only * templateUrl references. However, the compoennt declaration might contain errors that * need to be reported such as the template string is missing or the component is not * declared in a module. These error should be reported on the declaration, not the * template. * * A host type; see `LanguageSeriviceHost`. * * @experimental */ export interface Declaration { /** * The static symbol of the compponent being declared. */ readonly type: StaticSymbol; /** * The span of the declaration annotation reference (e.g. the 'Component' or 'Directive' * reference). */ readonly declarationSpan: Span; /** * Reference to the compiler directive metadata for the declaration. */ readonly metadata?: CompileDirectiveMetadata; /** * Error reported trying to get the metadata. */ readonly errors: DeclarationError[]; } /** * A sequence of declarations. * * A host type; see `LanguageSeriviceHost`. * * @experimental */ export declare type Declarations = Declaration[]; /** * The host for a `LanguageService`. This provides all the `LanguageService` requires to respond * to * the `LanguageService` requests. * * This interface describes the requirements of the `LanguageService` on its host. * * The host interface is host language agnostic. * * Adding optional member to this interface or any interface that is described as a * `LanguageServiceHost` interface is not considered a breaking change as defined by SemVer. * Removing a method or changing a member from required to optional will also not be considered a * breaking change. * * If a member is deprecated it will be changed to optional in a minor release before it is * removed in a major release. * * Adding a required member or changing a method's parameters, is considered a breaking change and * will only be done when breaking changes are allowed. When possible, a new optional member will * be added and the old member will be deprecated. The new member will then be made required in * and the old member will be removed only when breaking changes are allowed. * * While an interface is marked as experimental breaking-changes will be allowed between minor * releases. After an interface is marked as stable breaking-changes will only be allowed between * major releases. No breaking changes are allowed between patch releases. * * @experimental */ export interface LanguageServiceHost { /** * The resolver to use to find compiler metadata. */ readonly resolver: CompileMetadataResolver; /** * Returns the template information for templates in `fileName` at the given location. If * `fileName` refers to a template file then the `position` should be ignored. If the `position` * is not in a template literal string then this method should return `undefined`. */ getTemplateAt(fileName: string, position: number): TemplateSource | undefined; /** * Return the template source information for all templates in `fileName` or for `fileName` if * it * is a template file. */ getTemplates(fileName: string): TemplateSources; /** * Returns the Angular declarations in the given file. */ getDeclarations(fileName: string): Declarations; /** * Return a summary of all Angular modules in the project. */ getAnalyzedModules(): NgAnalyzedModules; /** * Return a list all the template files referenced by the project. */ getTemplateReferences(): string[]; } /** * An item of the completion result to be displayed by an editor. * * A `LanguageService` interface. * * @experimental */ export interface Completion { /** * The kind of comletion. */ kind: DeclarationKind; /** * The name of the completion to be displayed */ name: string; /** * The key to use to sort the completions for display. */ sort: string; } /** * A sequence of completions. * * @experimental */ export declare type Completions = Completion[] | undefined; /** * A file and span. */ export interface Location { fileName: string; span: Span; } /** * The kind of diagnostic message. * * @experimental */ export declare enum DiagnosticKind { Error = 0, Warning = 1 } /** * A template diagnostics message chain. This is similar to the TypeScript * DiagnosticMessageChain. The messages are intended to be formatted as separate * sentence fragments and indented. * * For compatibility previous implementation, the values are expected to override * toString() to return a formatted message. * * @experimental */ export interface DiagnosticMessageChain { /** * The text of the diagnostic message to display. */ message: string; /** * The next message in the chain. */ next?: DiagnosticMessageChain; } /** * An template diagnostic message to display. * * @experimental */ export interface Diagnostic { /** * The kind of diagnostic message */ kind: DiagnosticKind; /** * The source span that should be highlighted. */ span: Span; /** * The text of the diagnostic message to display or a chain of messages. */ message: string | DiagnosticMessageChain; } /** * A sequence of diagnostic message. * * @experimental */ export declare type Diagnostics = Diagnostic[]; /** * A section of hover text. If the text is code then language should be provided. * Otherwise the text is assumed to be Markdown text that will be sanitized. */ export interface HoverTextSection { /** * Source code or markdown text describing the symbol a the hover location. */ readonly text: string; /** * The language of the source if `text` is a source code fragment. */ readonly language?: string; } /** * Hover information for a symbol at the hover location. */ export interface Hover { /** * The hover text to display for the symbol at the hover location. If the text includes * source code, the section will specify which language it should be interpreted as. */ readonly text: HoverTextSection[]; /** * The span of source the hover covers. */ readonly span: Span; } /** * An instance of an Angular language service created by `createLanguageService()`. * * The language service returns information about Angular templates that are included in a project * as defined by the `LanguageServiceHost`. * * When a method expects a `fileName` this file can either be source file in the project that * contains a template in a string literal or a template file referenced by the project returned * by `getTemplateReference()`. All other files will cause the method to return `undefined`. * * If a method takes a `position`, it is the offset of the UTF-16 code-point relative to the * beginning of the file reference by `fileName`. * * This interface and all interfaces and types marked as `LanguageService` types, describe a * particlar implementation of the Angular language service and is not intented to be * implemented. Adding members to the interface will not be considered a breaking change as * defined by SemVer. * * Removing a member or making a member optional, changing a method parameters, or changing a * member's type will all be considered a breaking change. * * While an interface is marked as experimental breaking-changes will be allowed between minor * releases. After an interface is marked as stable breaking-changes will only be allowed between * major releases. No breaking changes are allowed between patch releases. * * @experimental */ export interface LanguageService { /** * Returns a list of all the external templates referenced by the project. */ getTemplateReferences(): string[] | undefined; /** * Returns a list of all error for all templates in the given file. */ getDiagnostics(fileName: string): Diagnostics | undefined; /** * Return the completions at the given position. */ getCompletionsAt(fileName: string, position: number): Completions | undefined; /** * Return the definition location for the symbol at position. */ getDefinitionAt(fileName: string, position: number): Definition | undefined; /** * Return the hover information for the symbol at position. */ getHoverAt(fileName: string, position: number): Hover | undefined; /** * Return the pipes that are available at the given position. */ getPipesAt(fileName: string, position: number): CompilePipeSummary[]; }
mit
vishnu4/WebpackMVC5
WebpackMVC5App/App_Start/RouteConfig.cs
584
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; namespace WebpackMVC5App { public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( name: "Default", url: "{controller}/{action}/{id}", defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } ); } } }
mit
yht-fand/cardone-platform-usercenter
consumer-bak/src/test/java/top/cardone/func/v1/usercenter/org/M0003FuncTest.java
3229
package top.cardone.func.v1.usercenter.org; import com.google.common.base.Charsets; import com.google.common.collect.Maps; import com.google.gson.Gson; import top.cardone.ConsumerApplication; import lombok.extern.log4j.Log4j2; import lombok.val; import org.apache.commons.io.FileUtils; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.core.io.Resource; import org.springframework.http.HttpEntity; import org.springframework.http.HttpHeaders; import org.springframework.http.MediaType; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.util.CollectionUtils; import top.cardone.context.ApplicationContextHolder; import java.util.Map; @Log4j2 @RunWith(SpringJUnit4ClassRunner.class) @SpringBootTest(classes = ConsumerApplication.class, value = {"spring.profiles.active=test"}, webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT) public class M0003FuncTest { @Value("http://localhost:${server.port:8765}${server.servlet.context-path:}/v1/usercenter/org/m0003.json") private String funcUrl; @Value("file:src/test/resources/top/cardone/func/v1/usercenter/org/M0003FuncTest.func.input.json") private Resource funcInputResource; @Value("file:src/test/resources/top/cardone/func/v1/usercenter/org/M0003FuncTest.func.output.json") private Resource funcOutputResource; @Test public void func() throws Exception { if (!funcInputResource.exists()) { FileUtils.write(funcInputResource.getFile(), "{}", Charsets.UTF_8); } val input = FileUtils.readFileToString(funcInputResource.getFile(), Charsets.UTF_8); Map<String, Object> parametersMap = ApplicationContextHolder.getBean(Gson.class).fromJson(input, Map.class); Assert.assertFalse("输入未配置", CollectionUtils.isEmpty(parametersMap)); Map<String, Object> output = Maps.newLinkedHashMap(); for (val parametersEntry : parametersMap.entrySet()) { val body = ApplicationContextHolder.getBean(Gson.class).toJson(parametersEntry.getValue()); val headers = new HttpHeaders(); headers.setContentType(MediaType.APPLICATION_JSON_UTF8); headers.set("Accept", MediaType.APPLICATION_JSON_UTF8_VALUE); headers.set("collectionStationCodeForToken", parametersEntry.getKey().split(":")[0]); headers.set("token", ApplicationContextHolder.getBean(org.apache.shiro.authc.credential.PasswordService.class).encryptPassword(headers.get("collectionStationCodeForToken").get(0))); val httpEntity = new HttpEntity<>(body, headers); val json = new org.springframework.boot.test.web.client.TestRestTemplate().postForObject(funcUrl, httpEntity, String.class); val value = ApplicationContextHolder.getBean(Gson.class).fromJson(json, Map.class); output.put(parametersEntry.getKey(), value); } FileUtils.write(funcOutputResource.getFile(), ApplicationContextHolder.getBean(Gson.class).toJson(output), Charsets.UTF_8); } }
mit
cs2103jan2016-w13-4j/main
src/main/java/jfdi/logic/commands/ListCommand.java
2420
// @@author A0130195M package jfdi.logic.commands; import jfdi.logic.events.ListDoneEvent; import jfdi.logic.interfaces.Command; import jfdi.storage.apis.TaskAttributes; import java.util.ArrayList; import java.util.stream.Collectors; /** * @author Liu Xinan */ public class ListCommand extends Command { public enum ListType { ALL, COMPLETED, INCOMPLETE, OVERDUE, UPCOMING } private ListType listType; private ListCommand(Builder builder) { this.listType = builder.listType; } public static class Builder { ListType listType; public Builder setListType(ListType listType) { this.listType = listType; return this; } public ListCommand build() { return new ListCommand(this); } } public ListType getListType() { return this.listType; } @Override public void execute() { ArrayList<TaskAttributes> tasks = taskDb.getAll().stream() .collect(Collectors.toCollection(ArrayList::new)); switch (listType) { case COMPLETED: tasks = tasks.stream() .filter(TaskAttributes::isCompleted) .collect(Collectors.toCollection(ArrayList::new)); logger.info("List of completed tasks requested."); break; case INCOMPLETE: tasks = tasks.stream() .filter(task -> !task.isCompleted()) .collect(Collectors.toCollection(ArrayList::new)); logger.info("List of incomplete tasks requested."); break; case OVERDUE: tasks = taskDb.getOverdue().stream() .sorted() .collect(Collectors.toCollection(ArrayList::new)); logger.info("List of overdue tasks requested."); break; case UPCOMING: tasks = taskDb.getUpcoming().stream() .sorted() .collect(Collectors.toCollection(ArrayList::new)); logger.info("List of upcoming tasks requested."); break; default: break; } eventBus.post(new ListDoneEvent(listType, tasks)); } @Override public void undo() { assert false; } }
mit
computist/onlineSnack
public/javascripts/directives/umDetailModal.js
551
(function () { 'use strict'; angular .module('umDirectives', []) .directive('umDetailModal', function() { return { restrict: 'E', scope: { show: '=' }, transclude: true, link: function(scope, element, attrs) { scope.hideModal = function() { scope.show = false; }; }, templateUrl: '../../views/itemDetail.html', } }) })();
mit
Franky666/programmiersprachen-raytracer
external/boost_1_59_0/boost/test/test_tools.hpp
2013
// (C) Copyright Gennadiy Rozental 2001-2014. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // See http://www.boost.org/libs/test for the library home page. // /// @file /// @brief test tools compatibility header /// /// This file is used to select the test tools implementation and includes all the necessary headers // *************************************************************************** #ifndef BOOST_TEST_TOOLS_HPP_111812GER #define BOOST_TEST_TOOLS_HPP_111812GER #include <boost/config.hpp> #include <boost/preprocessor/config/config.hpp> #if !BOOST_PP_VARIADICS || ((__cplusplus >= 201103L) && defined(BOOST_NO_CXX11_VARIADIC_MACROS)) #define BOOST_TEST_NO_VARIADIC #endif // Boost.Test // #define BOOST_TEST_NO_OLD_TOOLS #if defined(BOOST_TEST_NO_VARIADIC) # define BOOST_TEST_NO_NEW_TOOLS #endif // #define BOOST_TEST_TOOLS_UNDER_DEBUGGER // #define BOOST_TEST_TOOLS_DEBUGGABLE #include <boost/test/tools/context.hpp> #ifndef BOOST_TEST_NO_OLD_TOOLS # include <boost/test/tools/old/interface.hpp> # include <boost/test/tools/old/impl.hpp> # include <boost/test/tools/detail/print_helper.hpp> #endif #ifndef BOOST_TEST_NO_NEW_TOOLS # include <boost/test/tools/interface.hpp> # include <boost/test/tools/assertion.hpp> # include <boost/test/tools/fpc_op.hpp> # include <boost/test/tools/collection_comparison_op.hpp> # include <boost/test/tools/cstring_comparison_op.hpp> # include <boost/test/tools/detail/fwd.hpp> # include <boost/test/tools/detail/print_helper.hpp> # include <boost/test/tools/detail/it_pair.hpp> # include <boost/test/tools/detail/bitwise_manip.hpp> # include <boost/test/tools/detail/tolerance_manip.hpp> # include <boost/test/tools/detail/per_element_manip.hpp> # include <boost/test/tools/detail/lexicographic_manip.hpp> #endif #endif // BOOST_TEST_TOOLS_HPP_111812GER
mit
lars-erik/Umbraco-CMS
src/Umbraco.Web/WebApi/MvcVersionCheck.cs
250
namespace Umbraco.Web.WebApi { internal class WebApiVersionCheck { public static System.Version WebApiVersion { get { return typeof(System.Web.Http.ApiController).Assembly.GetName().Version; } } } }
mit
patillades/boardgame-timer
tests/reducers/playersTest.js
6775
import expect from 'expect'; import { play, tick, pause, resume, addPlayer, next, changeName } from 'state/actions'; import players, { initialState } from 'state/reducers/players'; describe('players reducer', function() { const initialLength = initialState.ids.length; it('should have 2 inactive players by default', function() { expect(initialLength).toBe(2); expect(Object.keys(initialState.data).length).toBe(2); expect(Object.keys(initialState.offsets).length).toBe(2); expect(Object.keys(initialState.turns).length).toBe(2); expect(initialState.data[1].isActive).toBe(false); expect(initialState.data[2].isActive).toBe(false); expect(initialState.offsets[1]).toBe(null); expect(initialState.offsets[2]).toBe(null); }); it('should update user name on "CHANGE" action', function() { const id = 1; const name = 'tureru'; const newState = players(initialState, changeName(id, name)); expect(newState.data[id].name).toBe(name); }); it('should add a new player on "ADD_PLAYER" action', function() { const newState = players(initialState, addPlayer()); expect(initialState.ids.length).toBe( initialLength, "The reducer is a pure function and shouldn't make changes to the initialState object" ); expect(newState.ids.length).toBe(3); expect(Object.keys(newState.data).length).toBe(3); expect(Object.keys(newState.offsets).length).toBe(3); expect(Object.keys(newState.turns).length).toBe(3); }); context('PLAY/PAUSE/RESUME/TICK', function() { let playAction; let stateAfterPlay; let pauseAction; let stateAfterPause; let resumeAction; let stateAfterResume; let tickAction; let stateAfterTick; let nextAction; let stateAfterNext; let secondNextAction; let stateAfterSecondNext; before(function(done) { playAction = play(); stateAfterPlay = players(initialState, playAction); // make sure that there's a bit of time between the actions setTimeout(function() { pauseAction = pause(); stateAfterPause = players(stateAfterPlay, pauseAction); setTimeout(function() { resumeAction = resume(); stateAfterResume = players(stateAfterPause, resumeAction); setTimeout(function() { tickAction = tick(); stateAfterTick = players(stateAfterResume, tickAction); setTimeout(function() { nextAction = next(); stateAfterNext = players( stateAfterTick, nextAction ); setTimeout(function() { secondNextAction = next(); stateAfterSecondNext = players( stateAfterNext, secondNextAction ); done(); }, 100); }, 100); }, 100); }, 100); }, 100); }); it('should set player #1 as active on "PLAY" action', function() { expect(stateAfterPlay.data[1].isActive).toBe(true); expect(stateAfterPlay.data[2].isActive).toBe(false); expect(stateAfterPlay.offsets[1]).toBe(playAction.time); expect(stateAfterPlay.offsets[2]).toBe(null); expect(stateAfterPlay.turns[1].length).toBe(1); expect(stateAfterPlay.turns[2].length).toBe(0); expect(initialState.offsets[1]).toBe( null, "The reducer is a pure function and shouldn't make changes to the initialState object" ); }); it('should keep track of elapsed time on "PAUSE" action', function() { expect(stateAfterPause.offsets[1]).toBe( stateAfterPlay.offsets[1], 'The PAUSE action has nothing to do with the offset prop' ); expect(stateAfterPause.turns[1][0]).toBe( pauseAction.time - stateAfterPause.offsets[1] ); expect(stateAfterPause.turns[1][0]).toBeMoreThan( stateAfterPlay.turns[1][0] ); }); it('should update player\'s offset on "RESUME" action', function() { expect(stateAfterResume.offsets[1]).toBe( resumeAction.time - stateAfterPause.turns[1][0] ); expect(stateAfterResume.offsets[1]).toBeMoreThan( stateAfterPause.offsets[1] ); }); it('should update player\'s time on "TICK" action', function() { expect(stateAfterTick.turns[1][0]).toBe( tickAction.time - stateAfterResume.offsets[1] ); expect(stateAfterTick.turns[1][0]).toBeMoreThan( stateAfterResume.turns[1][0] ); }); it('should update player\'s time on "NEXT" action and set the next one as active', function() { expect(stateAfterNext.turns[1][0]).toBe( nextAction.time - stateAfterTick.offsets[1] ); expect(stateAfterNext.turns[1][0]).toBeMoreThan( stateAfterTick.turns[1][0] ); expect(stateAfterNext.data[1].isActive).toBe(false); expect(stateAfterNext.data[2].isActive).toBe(true); expect(stateAfterNext.offsets[2]).toBe(nextAction.time); expect(stateAfterNext.turns[1].length).toBe(1); expect(stateAfterNext.turns[2].length).toBe(1); }); it('should go back to player #1 on another "NEXT" action', function() { expect(stateAfterSecondNext.turns[2][0]).toBe( secondNextAction.time - stateAfterNext.offsets[2] ); expect(stateAfterSecondNext.turns[2][0]).toBeMoreThan( stateAfterNext.turns[2][0] ); expect(stateAfterSecondNext.data[1].isActive).toBe(true); expect(stateAfterSecondNext.data[2].isActive).toBe(false); expect(stateAfterSecondNext.offsets[1]).toBe(secondNextAction.time); expect(stateAfterSecondNext.turns[1].length).toBe(2); expect(stateAfterSecondNext.turns[2].length).toBe(1); }); }); });
mit
chaithu563/cisco_app
app/nested_view/nview.js
2038
'use strict'; angular.module('myApp.nview', ['ui.router', 'ui.bootstrap']) .config(['$stateProvider', function ($stateProvider) { $stateProvider.state('nview', { url: '/nview', views: { '': { // url: '', templateUrl: 'nested_view/nview.html', controller: 'nviewCtrl' }, 'header@nview': { // url: '', templateUrl: 'nested_view/templates/header.html' // controller: 'HeaderController' }, 'content@nview': { // url:'', templateUrl: 'nested_view/templates/content.html' // controller: 'ContentController' }, 'footer@nview': { // url: '', templateUrl: 'nested_view/templates/footer.html' // controller: 'FooterController' } } }); //.state('home', { // url: '/', // views: { // 'header': { // templateUrl: '/templates/partials/header.html', // controller: 'HeaderController' // }, // 'content': { // templateUrl: '/templates/partials/content.html', // controller: 'ContentController' // }, // 'footer': { // templateUrl: '/templates/partials/footer.html', // controller: 'FooterController' // } // } //}) //.state('shows', { // url: '/shows', // templateUrl: 'templates/shows.html', // controller: 'ShowsController' //}) // .state('shows.detail', { // url: '/detail/:id', // templateUrl: 'templates/shows-detail.html', // controller: 'ShowsDetailController' // }); }]) .controller('nviewCtrl', ['$scope', '$http', function ($scope, $http) { //$scope.today = function () { // $scope.dt = new Date(); //}; //$scope.today(); }]);
mit
olemstrom/simple-shop
app/Http/Controllers/Auth/AuthController.php
1920
<?php namespace App\Http\Controllers\Auth; use App\Admin; use Validator; use App\Http\Controllers\Controller; use App\Cart; use Illuminate\Foundation\Auth\ThrottlesLogins; use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers; class AuthController extends Controller { /* |-------------------------------------------------------------------------- | Registration & Login Controller |-------------------------------------------------------------------------- | | This controller handles the registration of new users, as well as the | authentication of existing users. By default, this controller uses | a simple trait to add these behaviors. Why don't you explore it? | */ use AuthenticatesAndRegistersUsers, ThrottlesLogins; protected $loginPath = '/auth/login'; protected $redirectPath = '/admin'; /** * Create a new authentication controller instance. * * @return void */ public function __construct() { $this->middleware('guest', ['except' => 'getLogout']); view()->share('cart', Cart::all()); } /** * Get a validator for an incoming registration request. * * @param array $data * @return \Illuminate\Contracts\Validation\Validator */ protected function validator(array $data) { return Validator::make($data, [ 'name' => 'required|max:255', 'email' => 'required|email|max:255|unique:admin', 'password' => 'required|confirmed|min:6', ]); } /** * Create a new user instance after a valid registration. * * @param array $data * @return Admin */ protected function create(array $data) { return Admin::create([ 'name' => $data['name'], 'email' => $data['email'], 'password' => bcrypt($data['password']), ]); } }
mit
dtecta/motion-toolkit
jointlimits/Types.hpp
1500
/* MoTo - Motion Toolkit Copyright (c) 2016 Gino van den Bergen, DTECTA Source published under the terms of the MIT License. For details please see COPYING file or visit http://opensource.org/licenses/MIT */ #ifndef IK_TYPES_HPP #define IK_TYPES_HPP #include <moto/Interval.hpp> #include <moto/Vector3.hpp> #include <moto/Matrix3x3.hpp> #include <moto/Vector4.hpp> #include <moto/DualVector3.hpp> #include <moto/DualVector4.hpp> #include <moto/ScalarTraits.hpp> #include <moto/Matrix3x4.hpp> #include <moto/Matrix4x4.hpp> #include <moto/Metric.hpp> #include <moto/Diagonal3.hpp> namespace ik { typedef float Scalar; typedef mt::Interval<Scalar> Interval; typedef mt::Vector3<Scalar> Vector3; typedef mt::Vector4<Scalar> Quaternion; typedef mt::Vector4<Scalar> Vector4; typedef mt::Matrix3x3<Scalar> Matrix3x3; typedef mt::Matrix3x4<Scalar> Matrix3x4; typedef mt::Matrix4x4<Scalar> Matrix4x4; typedef mt::Diagonal3<Scalar> Diagonal3; typedef mt::Dual<Scalar> Dual; typedef mt::Vector3<Dual> DualVector3; typedef mt::Vector4<Dual> DualQuaternion; typedef mt::Interval<Scalar> Interval; typedef mt::Vector3<Interval> BBox3; typedef mt::ScalarTraits<Scalar> ScalarTraits; using mt::Zero; using mt::Identity; using mt::Unit; } #endif
mit
LIN3S/WPSymfonyForm
spec/LIN3S/WPSymfonyForm/Action/MailerActionSpec.php
917
<?php /* * This file is part of the WPSymfonyForm plugin. * * Copyright (c) 2015-2016 LIN3S <info@lin3s.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace spec\LIN3S\WPSymfonyForm\Action; use LIN3S\WPSymfonyForm\Action\Action; use LIN3S\WPSymfonyForm\Action\MailerAction; use PhpSpec\ObjectBehavior; use Symfony\Component\Form\FormInterface; /** * Spec file of MailerAction. * * @author Beñat Espiña <benatespina@gmail.com> */ class MailerActionSpec extends ObjectBehavior { function let() { $this->beConstructedWith('info@lin3s.com', '<html>The template</html>', 'The email subject'); } function it_is_initializable() { $this->shouldHaveType(MailerAction::class); } function it_implements_action() { $this->shouldImplement(Action::class); } }
mit
uber/typed-request-client
test/typed-request-client.js
22966
'use strict'; var test = require('tape'); var TypedRequestClient = require('../index.js'); var fakeStatsd = { stats: [], increment: function increment(key) { this.stats.push({ type: 'increment', key: key }); }, timing: function timing(key, delta) { this.stats.push({ type: 'timing', key: key, delta: delta }); } }; var requestSchema = { type: 'object', properties: { 'url': {type: 'string'}, 'method': {type: 'string'}, 'headers': {type: 'object'}, 'query': {type: 'object'}, 'body': { type: 'object', properties: { 'foo': {type: 'string'} }, required: ['foo'] } }, required: ['url', 'method', 'headers', 'body'], additionalProperties: false }; var responseSchema = { type: 'object', properties: { 'statusCode': {type: 'number'}, 'httpVersion': {type: 'string'}, 'headers': {type: 'object'}, 'body': { type: 'object', properties: { 'test': {'type': 'string'} }, additionalProperties: false } }, required: ['statusCode', 'httpVersion', 'headers', 'body'] }; test('can make request', function t(assert) { var request = TypedRequestClient({ clientName: 'demo', statsd: fakeStatsd, request: function r(opts, cb) { assert.equal(opts.url, 'http://localhost:8000/'); assert.equal(opts.method, 'GET'); assert.deepEqual(opts.headers, {}); assert.equal(opts.timeout, 30000); assert.deepEqual(opts.json, { 'foo': 'bar' }); assert.deepEqual(Object.keys(opts).sort(), [ 'headers', 'json', 'method', 'timeout', 'transformUrlFn', 'url' ]); cb(null, { statusCode: 200, httpVersion: '1.1', headers: {}, body: {} }); } }); var treq = { url: 'http://localhost:8000/', method: 'GET', headers: {}, body: { 'foo': 'bar' } }; request(treq, { requestSchema: requestSchema, responseSchema: responseSchema, resource: '.read', filterRequest: true, filterResponse: true, validateRequest: true, validateResponse: true }, onResponse); function onResponse(err, tres) { assert.ifError(err); assert.equal(tres.statusCode, 200); assert.equal(tres.httpVersion, '1.1'); assert.deepEqual(tres.headers, {}); assert.deepEqual(tres.body, {}); assert.deepEqual(Object.keys(tres).sort(), [ 'body', 'headers', 'httpVersion', 'statusCode' ]); assert.end(); } }); test('request error', function t(assert) { var request = TypedRequestClient({ clientName: 'demo', statsd: fakeStatsd, request: function r(opts, cb) { assert.fail('request called'); } }); var treq = { url: 'http://localhost:8000/', method: 'GET', headers: {} }; request(treq, { requestSchema: requestSchema, responseSchema: responseSchema, resource: '.read', filterRequest: true, filterResponse: true, validateRequest: true, validateResponse: true }, onResponse); function onResponse(err, tres) { assert.ok(err); assert.equal(err.message, 'Required'); assert.equal(err.attribute, 'body'); assert.end(); } }); test('io error', function t(assert) { var request = TypedRequestClient({ clientName: 'demo', statsd: fakeStatsd, request: function r(opts, cb) { cb(new Error('ECONNRESET')); } }); var treq = { url: 'http://localhost:8000/', method: 'GET', headers: {}, body: { 'foo': 'bar' } }; request(treq, { requestSchema: requestSchema, responseSchema: responseSchema, resource: '.read', filterRequest: true, filterResponse: true, validateRequest: true, validateResponse: true }, onResponse); function onResponse(err, tres) { assert.ok(err); assert.equal(err.message, 'ECONNRESET'); assert.end(); } }); test('response error', function t(assert) { var request = TypedRequestClient({ clientName: 'demo', statsd: fakeStatsd, request: function r(opts, cb) { cb(null, { statusCode: 200, httpVersion: '1.1', headers: {} }); } }); var treq = { url: 'http://localhost:8000/', method: 'GET', headers: {}, body: { 'foo': 'bar' } }; request(treq, { requestSchema: requestSchema, responseSchema: responseSchema, resource: '.read', filterRequest: true, filterResponse: true, validateRequest: true, validateResponse: true }, onResponse); function onResponse(err, tres) { assert.ok(err); assert.equal(err.message, 'Required'); assert.equal(err.attribute, 'body'); assert.end(); } }); test('response with nonstringified query', function t(assert) { var treq = { url: 'http://localhost:8000/', method: 'GET', headers: {}, query: {prop: ['a,b', 'c,d']}, body: { 'foo': 'bar' } }; var request = TypedRequestClient({ clientName: 'demo', statsd: fakeStatsd, request: function r(opts, cb) { assert.equal(opts.url, treq.url + '?prop=a,b&prop=c,d'); cb(null, { statusCode: 200, httpVersion: '1.1', headers: {}, body: {} }); } }); request(treq, { requestSchema: requestSchema, responseSchema: responseSchema, resource: '.read', filterRequest: true, filterResponse: true, validateRequest: true, validateResponse: true, transformUrlFn: function transform(url) { return url.replace(/%2C/g, ','); } }, onResponse); function onResponse(err, tres) { assert.ifError(err); assert.equal(tres.httpVersion, '1.1'); assert.end(); } }); test('can make request without request validation', function t(assert) { var request = TypedRequestClient({ clientName: 'demo', statsd: fakeStatsd, request: function r(opts, cb) { assert.equal(opts.url, 'http://localhost:8000/'); assert.equal(opts.method, 'GET'); assert.deepEqual(opts.headers, {}); assert.equal(opts.timeout, 30000); assert.deepEqual(opts.json, {}); assert.deepEqual(Object.keys(opts).sort(), [ 'headers', 'json', 'method', 'timeout', 'transformUrlFn', 'url' ]); cb(null, { statusCode: 200, httpVersion: '1.1', headers: {}, body: { 'baz': 'filter-this' } }); } }); var treq = { url: 'http://localhost:8000/', method: 'GET', headers: {}, body: { 'moo': 'filter-this' } }; request(treq, { requestSchema: requestSchema, responseSchema: responseSchema, resource: '.read', filterRequest: true, filterResponse: true, validateRequest: false, validateResponse: true }, onResponse); function onResponse(err, tres) { assert.ifError(err); assert.equal(tres.statusCode, 200); assert.equal(tres.httpVersion, '1.1'); assert.deepEqual(tres.headers, {}); assert.deepEqual(tres.body, {}); assert.deepEqual(Object.keys(tres).sort(), [ 'body', 'headers', 'httpVersion', 'statusCode' ]); assert.end(); } }); test('can make request without filtering request', function t(assert) { var request = TypedRequestClient({ clientName: 'demo', statsd: fakeStatsd, request: function r(opts, cb) { assert.equal(opts.url, 'http://localhost:8000/'); assert.equal(opts.method, 'GET'); assert.deepEqual(opts.headers, {}); assert.equal(opts.timeout, 30000); assert.deepEqual(opts.json, { 'foo': 'bar', 'moo': 'dont-filter-this' }); assert.deepEqual(Object.keys(opts).sort(), [ 'headers', 'json', 'method', 'timeout', 'transformUrlFn', 'url' ]); cb(null, { statusCode: 200, httpVersion: '1.1', headers: {}, body: {} }); } }); var treq = { url: 'http://localhost:8000/', method: 'GET', headers: {}, body: { 'foo': 'bar', 'moo': 'dont-filter-this' } }; request(treq, { requestSchema: requestSchema, responseSchema: responseSchema, resource: '.read', filterRequest: false, filterResponse: true, validateRequest: false, validateResponse: true }, onResponse); function onResponse(err, tres) { assert.ifError(err); assert.equal(tres.statusCode, 200); assert.equal(tres.httpVersion, '1.1'); assert.deepEqual(tres.headers, {}); assert.deepEqual(tres.body, {}); assert.deepEqual(Object.keys(tres), [ 'statusCode', 'httpVersion', 'headers', 'body' ]); assert.end(); } }); test('can make request without validating response', function t(assert) { var request = TypedRequestClient({ clientName: 'demo', statsd: fakeStatsd, request: function r(opts, cb) { assert.equal(opts.url, 'http://localhost:8000/'); assert.equal(opts.method, 'GET'); assert.deepEqual(opts.headers, {}); assert.equal(opts.timeout, 30000); assert.deepEqual(opts.json, { 'foo': 'bar' }); assert.deepEqual(Object.keys(opts).sort(), [ 'headers', 'json', 'method', 'timeout', 'transformUrlFn', 'url' ]); cb(null, { statusCode: 200, httpVersion: '1.1', headers: {}, body: { 'test': {'message': 'test should be a string'}, 'moo': 'filter-this' } }); } }); var treq = { url: 'http://localhost:8000/', method: 'GET', headers: {}, body: { 'foo': 'bar' } }; request(treq, { requestSchema: requestSchema, responseSchema: responseSchema, resource: '.read', filterRequest: true, filterResponse: true, validateRequest: true, validateResponse: false }, onResponse); function onResponse(err, tres) { assert.ifError(err); assert.equal(tres.statusCode, 200); assert.equal(tres.httpVersion, '1.1'); assert.deepEqual(tres.headers, {}); assert.deepEqual(tres.body, { 'test': { 'message': 'test should be a string' } }); assert.deepEqual(Object.keys(tres).sort(), [ 'body', 'headers', 'httpVersion', 'statusCode' ]); assert.end(); } }); test('can make request without filtering response', function t(assert) { var request = TypedRequestClient({ clientName: 'demo', statsd: fakeStatsd, request: function r(opts, cb) { assert.equal(opts.url, 'http://localhost:8000/'); assert.equal(opts.method, 'GET'); assert.deepEqual(opts.headers, {}); assert.equal(opts.timeout, 30000); assert.deepEqual(opts.json, { 'foo': 'bar' }); assert.deepEqual(Object.keys(opts).sort(), [ 'headers', 'json', 'method', 'timeout', 'transformUrlFn', 'url' ]); cb(null, { statusCode: 200, httpVersion: '1.1', headers: {}, body: { 'moo': 'invalid-property' } }); } }); var treq = { url: 'http://localhost:8000/', method: 'GET', headers: {}, body: { 'foo': 'bar' } }; request(treq, { requestSchema: requestSchema, responseSchema: responseSchema, resource: '.read', filterRequest: true, filterResponse: false, validateRequest: true, validateResponse: false }, onResponse); function onResponse(err, tres) { assert.ifError(err); assert.equal(tres.statusCode, 200); assert.equal(tres.httpVersion, '1.1'); assert.deepEqual(tres.headers, {}); assert.deepEqual(tres.body, { 'moo': 'invalid-property' }); assert.deepEqual(Object.keys(tres).sort(), [ 'body', 'headers', 'httpVersion', 'statusCode' ]); assert.end(); } }); test('can make request with prober enabled', function t(assert) { fakeStatsd.stats = []; var request = TypedRequestClient({ clientName: 'demo', statsd: fakeStatsd, // Prober should be enabled request: function r(opts, cb) { assert.equal(opts.url, 'http://localhost:8000/'); assert.equal(opts.method, 'GET'); assert.deepEqual(opts.headers, {}); assert.equal(opts.timeout, 30000); assert.deepEqual(opts.json, { 'foo': 'bar' }); assert.deepEqual(Object.keys(opts).sort(), [ 'headers', 'json', 'method', 'timeout', 'transformUrlFn', 'url' ]); cb(null, { statusCode: 200, httpVersion: '1.1', headers: {}, body: { 'moo': 'invalid-property' } }); } }); var treq = { url: 'http://localhost:8000/', method: 'GET', headers: {}, body: { 'foo': 'bar' } }; request(treq, { requestSchema: requestSchema, responseSchema: responseSchema, resource: '.read', filterRequest: true, filterResponse: false, validateRequest: true, validateResponse: false }, onResponse); function onResponse(err, tres) { assert.ifError(err); assert.equal(tres.statusCode, 200); assert.equal(tres.httpVersion, '1.1'); assert.deepEqual(tres.headers, {}); assert.deepEqual(tres.body, { 'moo': 'invalid-property' }); assert.deepEqual(Object.keys(tres).sort(), [ 'body', 'headers', 'httpVersion', 'statusCode' ]); var statsed = false; fakeStatsd.stats.forEach(function f(stat) { if (stat.key.indexOf('prober') !== -1) { statsed = true; } }); assert.ok(statsed, 'Prober fired'); assert.end(); } }); test('can make request without prober enabled', function t(assert) { fakeStatsd.stats = []; var request = TypedRequestClient({ clientName: 'demo', statsd: fakeStatsd, proberEnabled: false, request: function r(opts, cb) { assert.equal(opts.url, 'http://localhost:8000/'); assert.equal(opts.method, 'GET'); assert.deepEqual(opts.headers, {}); assert.equal(opts.timeout, 30000); assert.deepEqual(opts.json, { 'foo': 'bar' }); assert.deepEqual(Object.keys(opts).sort(), [ 'headers', 'json', 'method', 'timeout', 'transformUrlFn', 'url' ]); cb(null, { statusCode: 200, httpVersion: '1.1', headers: {}, body: { 'moo': 'invalid-property' } }); } }); var treq = { url: 'http://localhost:8000/', method: 'GET', headers: {}, body: { 'foo': 'bar' } }; request(treq, { requestSchema: requestSchema, responseSchema: responseSchema, resource: '.read', filterRequest: true, filterResponse: false, validateRequest: true, validateResponse: false }, onResponse); function onResponse(err, tres) { assert.ifError(err); assert.equal(tres.statusCode, 200); assert.equal(tres.httpVersion, '1.1'); assert.deepEqual(tres.headers, {}); assert.deepEqual(tres.body, { 'moo': 'invalid-property' }); assert.deepEqual(Object.keys(tres).sort(), [ 'body', 'headers', 'httpVersion', 'statusCode' ]); fakeStatsd.stats.forEach(function f(stat) { if (stat.key.indexOf('prober') !== -1) { assert.fail('Prober fired a statsd when it should be disabled'); } }); assert.end(); } }); test('can disable and enable prober after instantiation', function t(assert) { fakeStatsd.stats = []; var request = TypedRequestClient({ clientName: 'demo', statsd: fakeStatsd, proberEnabled: true, request: function r(opts, cb) { assert.equal(opts.url, 'http://localhost:8000/'); assert.equal(opts.method, 'GET'); assert.deepEqual(opts.headers, {}); assert.equal(opts.timeout, 30000); assert.deepEqual(opts.json, { 'foo': 'bar' }); assert.deepEqual(Object.keys(opts).sort(), [ 'headers', 'json', 'method', 'timeout', 'transformUrlFn', 'url' ]); cb(null, { statusCode: 200, httpVersion: '1.1', headers: {}, body: { 'moo': 'invalid-property' } }); } }); var treq = { url: 'http://localhost:8000/', method: 'GET', headers: {}, body: { 'foo': 'bar' } }; [false, true].forEach(function proberEnabled(enabled) { request.setProberEnabled(enabled); request(treq, { requestSchema: requestSchema, responseSchema: responseSchema, resource: '.read', filterRequest: true, filterResponse: false, validateRequest: true, validateResponse: false }, onResponse); function onResponse(err, tres) { assert.ifError(err); assert.equal(tres.statusCode, 200); assert.equal(tres.httpVersion, '1.1'); assert.deepEqual(tres.headers, {}); assert.deepEqual(tres.body, { 'moo': 'invalid-property' }); assert.deepEqual(Object.keys(tres).sort(), [ 'body', 'headers', 'httpVersion', 'statusCode' ]); var statsed = false; fakeStatsd.stats.forEach(function f(stat) { if (stat.key.indexOf('prober') !== -1) { statsed = true; if (!enabled) { assert.fail( 'Prober fired a statsd when it should be disabled'); } } }); if (enabled) { assert.ok(statsed, 'Prober fired'); } } }); assert.end(); }); test('can return error validating response', function t(assert) { var request = TypedRequestClient({ clientName: 'demo', statsd: fakeStatsd, request: function r(opts, cb) { assert.equal(opts.url, 'http://localhost:8000/'); assert.equal(opts.method, 'GET'); assert.deepEqual(opts.headers, {}); assert.equal(opts.timeout, 30000); assert.deepEqual(opts.json, { 'foo': 'bar' }); assert.deepEqual(Object.keys(opts).sort(), [ 'headers', 'json', 'method', 'timeout', 'transformUrlFn', 'url' ]); cb(null, { statusCode: 500, httpVersion: '1.1', headers: {}, body: { 'message': 'Internal service error' } }); } }); var treq = { url: 'http://localhost:8000/', method: 'GET', headers: {}, body: { 'foo': 'bar' } }; request(treq, { requestSchema: requestSchema, responseSchema: responseSchema, resource: '.read', filterRequest: true, filterResponse: true, validateRequest: true, validateResponse: false }, onResponse); function onResponse(err, tres) { assert.ifError(err); assert.equal(tres.statusCode, 500); assert.equal(tres.httpVersion, '1.1'); assert.deepEqual(tres.headers, {}); assert.deepEqual(tres.body, { 'message': 'Internal service error' }); assert.deepEqual(Object.keys(tres).sort(), [ 'body', 'headers', 'httpVersion', 'statusCode' ]); assert.end(); } }); test('request error', function t(assert) { var request = TypedRequestClient({ clientName: 'demo', statsd: fakeStatsd, request: function r(opts, cb) { assert.fail('request called'); } }); var treq = { url: 'http://localhost:8000/', method: 'GET', headers: {} }; request(treq, { requestSchema: requestSchema, responseSchema: responseSchema, resource: '.read', filterRequest: true, filterResponse: true, validateRequest: true, validateResponse: true }, onResponse); function onResponse(err, tres) { assert.ok(err); assert.equal(err.message, 'Required'); assert.equal(err.attribute, 'body'); assert.end(); } });
mit
mtabini/chine
tests/test_fsm.js
3560
var Chine = require('../lib'); var expect = require('chai').expect; describe('The finite-state machine system', function() { it('should allow specifying a valid machine', function(done) { var fsm = new Chine('initial'); fsm.state(function() { this.name('initial'); this.outgoing('step1'); this.run(function() { this.transition('step1'); }); }); fsm.state(function() { this.name('step1'); this.incoming('initial'); this.outgoing('step2'); this.enter(function() { this.machine.run(); }); this.run(function() { this.transition('step2'); }); }); fsm.state(function() { this.name('step2'); this.incoming('step1'); this.enter(function() { this.machine.run(); }); this.run(function() { done(); }); }); fsm.compile(); fsm.run(); }); it('should disallow transitioning to a non-existing state', function(done) { var fsm = new Chine('initial'); fsm.state(function() { this.name('initial'); this.outgoing('step1'); this.run(function() { this.transition('step3'); }); }); fsm.state(function() { this.name('step1'); this.incoming('initial'); this.enter(function() { this.machine.run(); }); this.run(function() { this.transition('step2'); }); }); fsm.compile(); expect(fsm.run).to.throw(Error); done(); }); it('should disallow specifying invalid incoming routes', function(done) { var fsm = new Chine('initial'); fsm.state(function() { this.name('initial'); this.outgoing('step1'); this.run(function() { this.transition('step3'); }); }); fsm.state(function() { this.name('step1'); this.incoming('initial22'); this.enter(function() { this.machine.run(); }); this.run(function() { this.transition('step2'); }); }); expect(fsm.compile).to.throw(Error); done(); }); it('should disallow specifying invalid outgoing routes', function(done) { var fsm = new Chine('initial'); fsm.state(function() { this.name('initial'); this.outgoing('step12'); this.run(function() { this.transition('step3'); }); }); expect(fsm.compile).to.throw(Error); done(); }); });
mit
stivalet/PHP-Vulnerability-test-suite
Injection/CWE_91/safe/CWE_91__POST__func_FILTER-CLEANING-number_int_filter__ID_at-sprintf_%u_simple_quote.php
1507
<?php /* Safe sample input : get the field UserData from the variable $_POST Uses a number_int_filter via filter_var function construction : use of sprintf via a %u with simple quote */ /*Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agreement or royalty fee, to use, copy, modify, and distribute this software and its documentation for any purpose, provided that the above copyright notice and the following three paragraphs appear in all copies of this software. IN NO EVENT SHALL AUTHORS BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF AUTHORS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. AUTHORS SPECIFICALLY DISCLAIM ANY WARRANTIES INCLUDING, BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. THE SOFTWARE IS PROVIDED ON AN "AS-IS" BASIS AND AUTHORS HAVE NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.*/ $tainted = $_POST['UserData']; $sanitized = filter_var($tainted, FILTER_SANITIZE_NUMBER_INT); if (filter_var($sanitized, FILTER_VALIDATE_INT)) $tainted = $sanitized ; else $tainted = "" ; $query = sprintf("//User[@id='%u']", $tainted); $xml = simplexml_load_file("users.xml");//file load echo "query : ". $query ."<br /><br />" ; $res=$xml->xpath($query);//execution print_r($res); echo "<br />" ; ?>
mit
youchan/gohra
samples/web/app/login.rb
147
require 'hyalite' require 'menilite' require_relative 'views/login_form' Hyalite.render(Hyalite.create_element(LoginForm), $document[".content"])
mit
reimagined/resolve
templates/js/postcss/client/components/PostCSS.js
268
import React from 'react' import styles from './PostCSS.css' const PostCSS = () => ( <div className={styles.wrapper}> <div className={styles.title}> Hello World, this is my first component with postcss-modules! </div> </div> ) export default PostCSS
mit
Ptomaine/nstd
include/external/agg/agg/src/ctrl/agg_bezier_ctrl.cpp
11301
//---------------------------------------------------------------------------- // Anti-Grain Geometry - Version 2.4 // Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com) // // Permission to copy, use, modify, sell and distribute this software // is granted provided this copyright notice appears in all copies. // This software is provided "as is" without express or implied // warranty, and with no claim as to its suitability for any purpose. // //---------------------------------------------------------------------------- // Contact: mcseem@antigrain.com // mcseemagg@yahoo.com // http://www.antigrain.com //---------------------------------------------------------------------------- // // classes bezier_ctrl_impl, bezier_ctrl // //---------------------------------------------------------------------------- #include <string.h> #include <stdio.h> #include "ctrl/agg_bezier_ctrl.h" namespace agg { //------------------------------------------------------------------------ bezier_ctrl_impl::bezier_ctrl_impl() : ctrl(0,0,1,1,false), m_stroke(m_curve), m_poly(4, 5.0), m_idx(0) { m_poly.in_polygon_check(false); m_poly.xn(0) = 100.0; m_poly.yn(0) = 0.0; m_poly.xn(1) = 100.0; m_poly.yn(1) = 50.0; m_poly.xn(2) = 50.0; m_poly.yn(2) = 100.0; m_poly.xn(3) = 0.0; m_poly.yn(3) = 100.0; } //------------------------------------------------------------------------ void bezier_ctrl_impl::curve(double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4) { m_poly.xn(0) = x1; m_poly.yn(0) = y1; m_poly.xn(1) = x2; m_poly.yn(1) = y2; m_poly.xn(2) = x3; m_poly.yn(2) = y3; m_poly.xn(3) = x4; m_poly.yn(3) = y4; curve(); } //------------------------------------------------------------------------ curve4& bezier_ctrl_impl::curve() { m_curve.init(m_poly.xn(0), m_poly.yn(0), m_poly.xn(1), m_poly.yn(1), m_poly.xn(2), m_poly.yn(2), m_poly.xn(3), m_poly.yn(3)); return m_curve; } //------------------------------------------------------------------------ void bezier_ctrl_impl::rewind(unsigned idx) { m_idx = idx; m_curve.approximation_scale(scale()); switch(idx) { default: case 0: // Control line 1 m_curve.init(m_poly.xn(0), m_poly.yn(0), (m_poly.xn(0) + m_poly.xn(1)) * 0.5, (m_poly.yn(0) + m_poly.yn(1)) * 0.5, (m_poly.xn(0) + m_poly.xn(1)) * 0.5, (m_poly.yn(0) + m_poly.yn(1)) * 0.5, m_poly.xn(1), m_poly.yn(1)); m_stroke.rewind(0); break; case 1: // Control line 2 m_curve.init(m_poly.xn(2), m_poly.yn(2), (m_poly.xn(2) + m_poly.xn(3)) * 0.5, (m_poly.yn(2) + m_poly.yn(3)) * 0.5, (m_poly.xn(2) + m_poly.xn(3)) * 0.5, (m_poly.yn(2) + m_poly.yn(3)) * 0.5, m_poly.xn(3), m_poly.yn(3)); m_stroke.rewind(0); break; case 2: // Curve itself m_curve.init(m_poly.xn(0), m_poly.yn(0), m_poly.xn(1), m_poly.yn(1), m_poly.xn(2), m_poly.yn(2), m_poly.xn(3), m_poly.yn(3)); m_stroke.rewind(0); break; case 3: // Point 1 m_ellipse.init(m_poly.xn(0), m_poly.yn(0), point_radius(), point_radius(), 20); m_ellipse.rewind(0); break; case 4: // Point 2 m_ellipse.init(m_poly.xn(1), m_poly.yn(1), point_radius(), point_radius(), 20); m_ellipse.rewind(0); break; case 5: // Point 3 m_ellipse.init(m_poly.xn(2), m_poly.yn(2), point_radius(), point_radius(), 20); m_ellipse.rewind(0); break; case 6: // Point 4 m_ellipse.init(m_poly.xn(3), m_poly.yn(3), point_radius(), point_radius(), 20); m_ellipse.rewind(0); break; } } //------------------------------------------------------------------------ unsigned bezier_ctrl_impl::vertex(double* x, double* y) { unsigned cmd = path_cmd_stop; switch(m_idx) { case 0: case 1: case 2: cmd = m_stroke.vertex(x, y); break; case 3: case 4: case 5: case 6: case 7: cmd = m_ellipse.vertex(x, y); break; } if(!is_stop(cmd)) { transform_xy(x, y); } return cmd; } //------------------------------------------------------------------------ bool bezier_ctrl_impl::in_rect(double, double) const { return false; } //------------------------------------------------------------------------ bool bezier_ctrl_impl::on_mouse_button_down(double x, double y) { inverse_transform_xy(&x, &y); return m_poly.on_mouse_button_down(x, y); } //------------------------------------------------------------------------ bool bezier_ctrl_impl::on_mouse_move(double x, double y, bool button_flag) { inverse_transform_xy(&x, &y); return m_poly.on_mouse_move(x, y, button_flag); } //------------------------------------------------------------------------ bool bezier_ctrl_impl::on_mouse_button_up(double x, double y) { return m_poly.on_mouse_button_up(x, y); } //------------------------------------------------------------------------ bool bezier_ctrl_impl::on_arrow_keys(bool left, bool right, bool down, bool up) { return m_poly.on_arrow_keys(left, right, down, up); } //------------------------------------------------------------------------ curve3_ctrl_impl::curve3_ctrl_impl() : ctrl(0,0,1,1,false), m_stroke(m_curve), m_poly(3, 5.0), m_idx(0) { m_poly.in_polygon_check(false); m_poly.xn(0) = 100.0; m_poly.yn(0) = 0.0; m_poly.xn(1) = 100.0; m_poly.yn(1) = 50.0; m_poly.xn(2) = 50.0; m_poly.yn(2) = 100.0; } //------------------------------------------------------------------------ void curve3_ctrl_impl::curve(double x1, double y1, double x2, double y2, double x3, double y3) { m_poly.xn(0) = x1; m_poly.yn(0) = y1; m_poly.xn(1) = x2; m_poly.yn(1) = y2; m_poly.xn(2) = x3; m_poly.yn(2) = y3; curve(); } //------------------------------------------------------------------------ curve3& curve3_ctrl_impl::curve() { m_curve.init(m_poly.xn(0), m_poly.yn(0), m_poly.xn(1), m_poly.yn(1), m_poly.xn(2), m_poly.yn(2)); return m_curve; } //------------------------------------------------------------------------ void curve3_ctrl_impl::rewind(unsigned idx) { m_idx = idx; switch(idx) { default: case 0: // Control line m_curve.init(m_poly.xn(0), m_poly.yn(0), (m_poly.xn(0) + m_poly.xn(1)) * 0.5, (m_poly.yn(0) + m_poly.yn(1)) * 0.5, m_poly.xn(1), m_poly.yn(1)); m_stroke.rewind(0); break; case 1: // Control line 2 m_curve.init(m_poly.xn(1), m_poly.yn(1), (m_poly.xn(1) + m_poly.xn(2)) * 0.5, (m_poly.yn(1) + m_poly.yn(2)) * 0.5, m_poly.xn(2), m_poly.yn(2)); m_stroke.rewind(0); break; case 2: // Curve itself m_curve.init(m_poly.xn(0), m_poly.yn(0), m_poly.xn(1), m_poly.yn(1), m_poly.xn(2), m_poly.yn(2)); m_stroke.rewind(0); break; case 3: // Point 1 m_ellipse.init(m_poly.xn(0), m_poly.yn(0), point_radius(), point_radius(), 20); m_ellipse.rewind(0); break; case 4: // Point 2 m_ellipse.init(m_poly.xn(1), m_poly.yn(1), point_radius(), point_radius(), 20); m_ellipse.rewind(0); break; case 5: // Point 3 m_ellipse.init(m_poly.xn(2), m_poly.yn(2), point_radius(), point_radius(), 20); m_ellipse.rewind(0); break; } } //------------------------------------------------------------------------ unsigned curve3_ctrl_impl::vertex(double* x, double* y) { unsigned cmd = path_cmd_stop; switch(m_idx) { case 0: case 1: case 2: cmd = m_stroke.vertex(x, y); break; case 3: case 4: case 5: case 6: cmd = m_ellipse.vertex(x, y); break; } if(!is_stop(cmd)) { transform_xy(x, y); } return cmd; } //------------------------------------------------------------------------ bool curve3_ctrl_impl::in_rect(double, double) const { return false; } //------------------------------------------------------------------------ bool curve3_ctrl_impl::on_mouse_button_down(double x, double y) { inverse_transform_xy(&x, &y); return m_poly.on_mouse_button_down(x, y); } //------------------------------------------------------------------------ bool curve3_ctrl_impl::on_mouse_move(double x, double y, bool button_flag) { inverse_transform_xy(&x, &y); return m_poly.on_mouse_move(x, y, button_flag); } //------------------------------------------------------------------------ bool curve3_ctrl_impl::on_mouse_button_up(double x, double y) { return m_poly.on_mouse_button_up(x, y); } //------------------------------------------------------------------------ bool curve3_ctrl_impl::on_arrow_keys(bool left, bool right, bool down, bool up) { return m_poly.on_arrow_keys(left, right, down, up); } }
mit
dowhle/jobs
src/pages/Vacancies/reducer.ts
1164
import { fromJS } from 'immutable'; import { pick } from 'ramda'; import Vacancy from 'models/Vacancy'; import { LOAD_VACANCIES_PENDING, LOAD_VACANCIES_FULFILLED, LOAD_VACANCIES_REJECTED, UPDATE_SEARCH_STRING, } from './constants'; const initialModel = fromJS({ vacancies: [], isLoading: true, searchString: '', errorMessage: '', count: 0, currentPage: 1, next: '', previous: '', pageSize: 20, }); export default (state = initialModel, action) => { switch (action.type) { case LOAD_VACANCIES_PENDING: return state.set('isLoading', true); case LOAD_VACANCIES_FULFILLED: let vacancies = action.payload.results.map(result => new Vacancy(result)); return state .set('vacancies', vacancies) .set('isLoading', false) .set('currentPage', action.meta.currentPage) .merge(pick(['count', 'next', 'previous'], action.payload)); case UPDATE_SEARCH_STRING: return state.set('searchString', action.data); case LOAD_VACANCIES_REJECTED: return state.set('errorMessage', action.payload) .set('isLoading', false); default: return state; } }
mit
lsdlab/awesome_coffice
coffice/views.py
7718
from django.shortcuts import render from django.core import serializers from django.http import JsonResponse import urllib.parse from random import randint from coffice.models import Spot, Comment from user.models import User from rest_framework.decorators import api_view from rest_framework.response import Response from coffice.serializers import SpotsDatatableSerializer, CitySpotsListSerializer, CitySpotsListForMapSerializer, SpotsSerializer, CommentSerializer, CommentSampleSerializer from user.serializers import UserSerializer # Create your views here. # HTML views # @require_login def spots_view(request): return render(request, 'coffice/spots.html', {'title': 'spots'}) # API views @api_view(['GET']) def city_spot_list(request, city): city = urllib.parse.unquote(city) if request.method == 'GET': city_spot_list = Spot.objects.filter(city=city).order_by('-id') serializer = CitySpotsListSerializer(city_spot_list, many=True) return Response(serializer.data) @api_view(['GET']) def city_spot_list_for_map(request, city): # city = urllib.parse.unquote(city) if request.method == 'GET': city_spot_list = Spot.objects.filter(city=city).order_by('-id') serializer = CitySpotsListForMapSerializer(city_spot_list, many=True) return Response(serializer.data) @api_view(['GET', 'POST']) def spots(request): if request.method == 'GET': spots = Spot.objects.all().order_by('-id') serializer = SpotsDatatableSerializer(spots, many=True) return Response(serializer.data) elif request.method == 'POST': if request.POST.get('bathroom') == "1": bathroom = True else: bathroom = False spot = Spot(city = request.POST.get('city'), name = request.POST.get('name'), longitude = request.POST.get('longitude'), latitude = request.POST.get('latitude'), download_speed = request.POST.get('download_speed'), upload_speed = request.POST.get('upload_speed'), speed_test_link = request.POST.get('speed_test_link'), price_indication = request.POST.get('price_indication'), bathroom = bathroom, commit_user_name = request.POST.get('commit_user_name'), commit_message = request.POST.get('commit_message'), commit_user_id = request.POST.get('commit_user_id')) spot.save() serializer = SpotsSerializer(spot) return Response(serializer.data) @api_view(['GET']) def spot_detail(request, pk): if request.method == 'GET': spot_detail = Spot.objects.get(pk=pk) serializer = SpotsSerializer(spot_detail) return Response(serializer.data) @api_view(['GET']) def spot_comment_list(request, pk): if request.method == 'GET': spot = Spot.objects.get(pk=pk) spot_comment_list = spot.comment_set.all().order_by('-comment_date')[:5] serializer = CommentSerializer(spot_comment_list, many=True) return Response(serializer.data) @api_view(['GET']) def user_comment_list(request, pk): if request.method == 'GET': user = User.objects.get(pk=pk) user_comment_list = user.comment_set.all().order_by('-comment_date')[:5] serializer = CommentSerializer(user_comment_list, many=True) return Response(serializer.data) @api_view(['GET']) def all_spot_comment_list(request, pk): if request.method == 'GET': spot = Spot.objects.get(pk=pk) spot_comment_list = spot.comment_set.all().order_by('-comment_date') serializer = CommentSerializer(spot_comment_list, many=True) return Response(serializer.data) @api_view(['GET']) def all_user_comment_list(request, pk): if request.method == 'GET': user = User.objects.get(pk=pk) user_comment_list = user.comment_set.all().order_by('-comment_date') serializer = CommentSerializer(user_comment_list, many=True) return Response(serializer.data) @api_view(['GET', 'POST']) def comments(request): if request.method == 'GET': comments = Comment.objects.all().order_by('-id') serializer = CommentSerializer(comments, many=True) return Response(serializer.data) elif request.method == 'POST': comment = Comment(spot_id = request.POST.get('spot_id'), comment_message = request.POST.get('comment_message'), comment_user_id = request.POST.get('comment_user_id'), comment_user_name = request.POST.get('comment_user_name'), comment_user_avatarurl = request.POST.get('comment_user_avatarurl'), comment_mark = request.POST.get('comment_mark'), city = request.POST.get('spot_city')) comment.save() serializer = CommentSerializer(comment) return Response(serializer.data) @api_view(['GET', 'POST']) def latest_comments(request): if request.method == 'GET': comments = Comment.objects.all().order_by('-id')[:6] serializer = CommentSerializer(comments, many=True) return Response(serializer.data) @api_view(['GET']) def comment_detail(request, pk): if request.method == 'GET': user = User.objects.get(pk=pk) user_comment_list = user.comment_set.all().order_by('-comment_date') serializer = CommentSerializer(user_comment_list, many=True) return Response(serializer.data) @api_view(['GET']) def user_spot_list(request, pk): if request.method == 'GET': user = User.objects.get(pk=pk) user_spot_list = user.spot_set.all().order_by('-id')[:5] serializer = SpotsSerializer(user_spot_list, many=True) return Response(serializer.data) @api_view(['GET']) def all_user_spot_list(request, pk): if request.method == 'GET': user = User.objects.get(pk=pk) all_user_spot_list = user.spot_set.all().order_by('-id') serializer = SpotsSerializer(all_user_spot_list, many=True) return Response(serializer.data) @api_view(['GET']) def random_spots(request): if request.method == 'GET': last = Spot.objects.count() - 1 index1 = randint(0, last) index2 = randint(0, last - 1) if index2 == index1: index2 = last spots1 = Spot.objects.all()[index1] spots2 = Spot.objects.all()[index2] last2 = Spot.objects.count() - 4 index3 = randint(0, last) index4 = randint(0, last - 1) if index4 == index3: index4 = last2 spots3 = Spot.objects.all()[index3] spots4 = Spot.objects.all()[index4] spots = [spots1, spots2, spots3, spots4] serializer = SpotsSerializer(spots, many=True) return Response(serializer.data) @api_view(['GET']) def city_users(request, city): city = urllib.parse.unquote(city) comment_list = Comment.objects.filter(city=city) if comment_list: user_id_list = [i.id for i in comment_list] user_list = User.objects.filter(id__in=user_id_list) else: user_list = User.objects.none() serializer = UserSerializer(user_list, many=True) return Response(serializer.data) @api_view(['GET']) def spot_users(request, pk): comment_list = Comment.objects.filter(spot_id=pk) if comment_list: user_id_list = [i.id for i in comment_list] user_list = User.objects.filter(id__in=user_id_list) else: user_list = User.objects.none() serializer = UserSerializer(user_list, many=True) return Response(serializer.data)
mit
pgmemk/craigslist-search
main.js
169
// USAGE node main [city/www(for all cities)] [category] [start record] [hasPic] var qc = require('./') var argv = require('minimist')(process.argv.slice(2)) qc(argv)
mit
gochant/veronica
Gruntfile.js
3738
'use strict'; module.exports = function (grunt) { var path = require('path'); var banner = "/*!\n" + " * Veronica v<%= pkg.version %>\n" + " *\n" + " * <%= pkg.homepage %>\n" + " *\n" + " * Copyright (c) <%= grunt.template.today('yyyy') %> <%= pkg.author.name %>\n" + " * Released under the <%= _.pluck(pkg.licenses, 'type').join(', ') %> license\n" + " */\n"; grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), concat: { dist: { options: { banner: banner }, files: { 'dist/veronica.js': ['dist/veronica.js'] } } }, requirejs: { main: { options: { "baseUrl": "lib", "paths": { "veronica": "main", 'lodash': 'empty:', 'jquery': 'empty:', 'text': '../node_modules/requirejs-text/text' }, "include": ["../node_modules/almond/almond", "veronica"], "exclude": ["jquery", "lodash", "text"], "out": "dist/veronica.js", "wrap": { "startFile": "build/wrap.start", "endFile": "build/wrap.end" }, "optimize": "none" } } }, clean: { main: [ 'dist/build.txt', 'dist/text.js' ] }, uglify: { options: { report: 'gzip', sourceMap: true }, main: { files: { 'dist/veronica.min.js': ['dist/veronica.js'] } } }, jsdoc: { dist: { src: ['lib/**/*.js', 'lib/intro.md', '!lib/assets/**/*'], options: { verbose: true, destination: './docs/api', configure: 'jsdoc-conf.json', template: 'node_modules/docdash', private: false } } }, watch: { options: { livereload: true }, jsdoc: { files: ['lib/**/*.js'], tasks: ['jsdoc'] } }, connect: { options: { hostname: '*' }, jsdoc: { options: { port: 8000, middleware: function (connect, options) { return [ require('connect-livereload')(), connect.static(path.resolve('./site')) ]; } } } }, mkdocs: { dist: { src: './lib/docs/1.x', options: { clean: true } } } }); grunt.loadNpmTasks('grunt-contrib-requirejs'); grunt.loadNpmTasks('grunt-contrib-clean'); grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.loadNpmTasks('grunt-contrib-connect'); grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-contrib-concat'); grunt.loadNpmTasks('grunt-jsdoc'); grunt.loadNpmTasks('grunt-mkdocs'); grunt.registerTask('release', ['requirejs', 'concat', 'clean', 'uglify']); // grunt.registerTask('doc', ['mkdocs', 'jsdoc', 'connect', 'watch']); grunt.registerTask('default', ['release']); };
mit
tarlepp/symfony-flex-backend
tests/Integration/Entity/LogRequestTest.php
9691
<?php declare(strict_types = 1); /** * /tests/Integration/Entity/LogRequestTest.php * * @author TLe, Tarmo Leppänen <tarmo.leppanen@pinja.com> */ namespace App\Tests\Integration\Entity; use App\Entity\ApiKey; use App\Entity\LogRequest; use App\Entity\User; use App\Utils\Tests\PhpUnitUtil; use App\Utils\Tests\StringableArrayObject; use Doctrine\Common\Collections\ArrayCollection; use Generator; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Throwable; use function array_key_exists; use function get_class; use function in_array; use function is_array; use function is_object; use function sprintf; use function ucfirst; /** * Class LogRequestTest * * @package App\Tests\Integration\Entity * @author TLe, Tarmo Leppänen <tarmo.leppanen@pinja.com> * * @method LogRequest getEntity() */ class LogRequestTest extends EntityTestCase { /** * @var class-string */ protected string $entityName = LogRequest::class; /** @noinspection PhpMissingParentCallCommonInspection */ /** * @testdox No setter for `$property` property in read only entity - so cannot test this */ public function testThatSetterOnlyAcceptSpecifiedType( ?string $property = null, ?string $type = null, ?array $meta = null ): void { self::markTestSkipped('There is not setter in read only entity...'); } /** @noinspection PhpMissingParentCallCommonInspection */ /** * @testdox No setter for `$property` property in read only entity - so cannot test this */ public function testThatSetterReturnsInstanceOfEntity( ?string $property = null, ?string $type = null, ?array $meta = null ): void { self::markTestSkipped('There is not setter in read only entity...'); } /** @noinspection PhpMissingParentCallCommonInspection */ /** * @dataProvider dataProviderTestThatSetterAndGettersWorks * * @throws Throwable * * @testdox Test that getter method for `$type $property` returns expected */ public function testThatGetterReturnsExpectedValue(string $property, string $type, array $meta): void { $getter = 'get' . ucfirst($property); if (in_array($type, [PhpUnitUtil::TYPE_BOOL, PhpUnitUtil::TYPE_BOOLEAN], true)) { $getter = 'is' . ucfirst($property); } $logRequest = new LogRequest( [], Request::create(''), new Response('abcdefgh'), new User(), new ApiKey() ); $value = $logRequest->{$getter}(); if (!(array_key_exists('columnName', $meta) || array_key_exists('joinColumns', $meta))) { $type = ArrayCollection::class; self::assertInstanceOf($type, $value); } $returnValue = $value; if (is_object($value)) { $returnValue = get_class($value); } elseif (is_array($value)) { $returnValue = 'array'; } $message = sprintf( 'Getter \'%s\' for field \'%s\' did not return expected type \'%s\' return value was \'%s\'', $getter, $property, $type, $returnValue ); try { $method = 'assertIs' . ucfirst($type); self::$method($value, $message); } catch (Throwable $error) { /** * @var class-string $type */ self::assertInstanceOf($type, $value, $message . ' - ' . $error->getMessage()); } } /** * @dataProvider dataProviderTestThatSensitiveDataIsCleaned * * @phpstan-param StringableArrayObject<array<int, string>> $properties * @phpstan-param StringableArrayObject<array<string, string>> $headers * @phpstan-param StringableArrayObject<array<string, string>> $expected * @psalm-param StringableArrayObject $properties * @psalm-param StringableArrayObject $headers * @psalm-param StringableArrayObject $expected * * @throws Throwable * * @testdox Test that sensitive data `$properties` from `$headers` is cleaned and output is expected `$expected` */ public function testThatSensitiveDataIsCleanedFromHeaders( StringableArrayObject $properties, StringableArrayObject $headers, StringableArrayObject $expected ): void { $request = Request::create(''); $request->headers->replace($headers->getArrayCopy()); $logRequest = new LogRequest($properties->getArrayCopy(), $request, new Response()); self::assertSame($expected->getArrayCopy(), $logRequest->getHeaders()); } /** * @dataProvider dataProviderTestThatSensitiveDataIsCleaned * * @phpstan-param StringableArrayObject<array<int, string>> $properties * @phpstan-param StringableArrayObject<array<string, string>> $parameters * @phpstan-param StringableArrayObject<array<string, string>> $expected * @psalm-param StringableArrayObject $properties * @psalm-param StringableArrayObject $parameters * @psalm-param StringableArrayObject $expected * * @throws Throwable * * @testdox Test that sensitive data `$properties` from `parameters` is cleaned and output is expected `$expected` */ public function testThatSensitiveDataIsCleanedFromParameters( StringableArrayObject $properties, StringableArrayObject $parameters, StringableArrayObject $expected, ): void { $request = Request::create('', 'POST'); $request->request->replace($parameters->getArrayCopy()); $logRequest = new LogRequest($properties->getArrayCopy(), $request, new Response()); self::assertSame($expected->getArrayCopy(), $logRequest->getParameters()); } /** * @dataProvider dataProviderTestThatDetermineParametersWorksLikeExpected * * @phpstan-param StringableArrayObject<array<string, string>> $expected * @psalm-param StringableArrayObject $expected * * @throws Throwable * * @testdox Test that `determineParameters` method returns `$expected` when using `$content` as input */ public function testThatDetermineParametersWorksLikeExpected(string $content, StringableArrayObject $expected): void { $logRequest = new LogRequest([], Request::create(''), new Response()); $request = Request::create('', 'GET', [], [], [], [], $content); self::assertSame( $expected->getArrayCopy(), PhpUnitUtil::callMethod($logRequest, 'determineParameters', [$request]) ); } /** * @psalm-return Generator<array{0: StringableArrayObject, 1: StringableArrayObject, 2: StringableArrayObject}> * @phpstan-return Generator<array{ * 0: StringableArrayObject<mixed>, * 1: StringableArrayObject<mixed>, * 2: StringableArrayObject<mixed>, * }> */ public function dataProviderTestThatSensitiveDataIsCleaned(): Generator { yield [ new StringableArrayObject(['password']), new StringableArrayObject([ 'password' => 'password', ]), new StringableArrayObject([ 'password' => '*** REPLACED ***', ]), ]; yield [ new StringableArrayObject(['token']), new StringableArrayObject([ 'token' => 'secret token', ]), new StringableArrayObject([ 'token' => '*** REPLACED ***', ]), ]; yield [ new StringableArrayObject(['authorization']), new StringableArrayObject([ 'authorization' => 'authorization bearer', ]), new StringableArrayObject([ 'authorization' => '*** REPLACED ***', ]), ]; yield [ new StringableArrayObject(['cookie']), new StringableArrayObject([ 'cookie' => 'cookie', ]), new StringableArrayObject([ 'cookie' => '*** REPLACED ***', ]), ]; yield [ new StringableArrayObject([ 'password', 'token', 'authorization', 'cookie', ]), new StringableArrayObject([ 'password' => 'password', 'token' => 'secret token', 'authorization' => 'authorization bearer', 'cookie' => 'cookie', ]), new StringableArrayObject([ 'password' => '*** REPLACED ***', 'token' => '*** REPLACED ***', 'authorization' => '*** REPLACED ***', 'cookie' => '*** REPLACED ***', ]), ]; } /** * @psalm-return Generator<array{0: string, 1: StringableArrayObject}> * @phpstan-return Generator<array{0: string, 1: StringableArrayObject<mixed>}> */ public function dataProviderTestThatDetermineParametersWorksLikeExpected(): Generator { yield [ '{"foo":"bar"}', new StringableArrayObject([ 'foo' => 'bar', ]), ]; yield [ 'foo=bar', new StringableArrayObject([ 'foo' => 'bar', ]), ]; } /** * @noinspection PhpMissingParentCallCommonInspection * * @throws Throwable */ protected function createEntity(): LogRequest { return new LogRequest([]); } }
mit
howardrya/AcademicCoin
src/test/test_bitcoin.cpp
1756
#define BOOST_TEST_MODULE Bitcoin Test Suite #include <boost/test/unit_test.hpp> #include <boost/filesystem.hpp> #include "db.h" #include "txdb.h" #include "main.h" #include "wallet.h" #include "util.h" CWallet* pwalletMain; CClientUIInterface uiInterface; extern bool fPrintToConsole; extern void noui_connect(); struct TestingSetup { CCoinsViewDB *pcoinsdbview; boost::filesystem::path pathTemp; boost::thread_group threadGroup; TestingSetup() { fPrintToDebugger = true; // don't want to write to debug.log file noui_connect(); bitdb.MakeMock(); pathTemp = GetTempPath() / strprintf("test_academiccoin_%lu_%i", (unsigned long)GetTime(), (int)(GetRand(100000))); boost::filesystem::create_directories(pathTemp); mapArgs["-datadir"] = pathTemp.string(); pblocktree = new CBlockTreeDB(1 << 20, true); pcoinsdbview = new CCoinsViewDB(1 << 23, true); pcoinsTip = new CCoinsViewCache(*pcoinsdbview); InitBlockIndex(); bool fFirstRun; pwalletMain = new CWallet("wallet.dat"); pwalletMain->LoadWallet(fFirstRun); RegisterWallet(pwalletMain); nScriptCheckThreads = 3; for (int i=0; i < nScriptCheckThreads-1; i++) threadGroup.create_thread(&ThreadScriptCheck); } ~TestingSetup() { threadGroup.interrupt_all(); threadGroup.join_all(); delete pwalletMain; pwalletMain = NULL; delete pcoinsTip; delete pcoinsdbview; delete pblocktree; bitdb.Flush(true); boost::filesystem::remove_all(pathTemp); } }; BOOST_GLOBAL_FIXTURE(TestingSetup); void Shutdown(void* parg) { exit(0); } void StartShutdown() { exit(0); }
mit
Zhanat1987/yii2basic
modules/catalog/views/comp-prep/_form.php
1355
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; use app\assets\Select2Asset; use app\widgets\CancelBtn; /** * @var yii\web\View $this * @var app\modules\catalog\models\CompPrep $model * @var yii\widgets\ActiveForm $form */ Select2Asset::register($this); ?> <div class="comps-drugs-form"> <?php $form = ActiveForm::begin(); ?> <?= $form->field($model, 'type')->dropDownList($types, ['class' => 'select2 width100']); ?> <?= $form->field($model, 'name')->textInput(['maxlength' => 200]) ?> <?= $form->field($model, 'short_name')->textInput(['maxlength' => 100]) ?> <?= $form->field($model, 'group')->textInput(['maxlength' => 255]) ?> <?= $form->field($model, 'code')->textInput(['maxlength' => 255]) ?> <?= $form->field($model, 'infodonor_id')->textInput() ?> <?= $form->field($model, 'alert_time')->textInput(['maxlength' => 50]) ?> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? Yii::t('common', 'Создать') : Yii::t('common', 'Редактировать'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); echo CancelBtn::widget( [ 'url' => '/catalog/comp-prep/index', ] ); ?> </div> <?php ActiveForm::end(); ?> </div>
mit
naokits/adminkun_viewer_old
Server/gaeo/html5lib/html5parser.py
106815
try: frozenset except NameError: # Import from the sets module for python 2.3 from sets import Set as set from sets import ImmutableSet as frozenset try: any except: # Implement 'any' for python 2.4 and previous def any(iterable): for element in iterable: if element: return True return False import sys import inputstream import tokenizer import treebuilders from treebuilders._base import Marker from treebuilders import simpletree import utils from constants import contentModelFlags, spaceCharacters, asciiUpper2Lower from constants import scopingElements, formattingElements, specialElements from constants import headingElements, tableInsertModeElements from constants import cdataElements, rcdataElements, voidElements from constants import tokenTypes, ReparseException, namespaces def parse(doc, treebuilder="simpletree", encoding=None, namespaceHTMLElements=True): tb = treebuilders.getTreeBuilder(treebuilder) p = HTMLParser(tb, namespaceHTMLElements=namespaceHTMLElements) return p.parse(doc, encoding=encoding) def parseFragment(doc, container="div", treebuilder="simpletree", encoding=None, namespaceHTMLElements=True): tb = treebuilders.getTreeBuilder(treebuilder) p = HTMLParser(tb, namespaceHTMLElements=namespaceHTMLElements) return p.parseFragment(doc, container=container, encoding=encoding) class HTMLParser(object): """HTML parser. Generates a tree structure from a stream of (possibly malformed) HTML""" def __init__(self, tree = simpletree.TreeBuilder, tokenizer = tokenizer.HTMLTokenizer, strict = False, namespaceHTMLElements = True): """ strict - raise an exception when a parse error is encountered tree - a treebuilder class controlling the type of tree that will be returned. Built in treebuilders can be accessed through html5lib.treebuilders.getTreeBuilder(treeType) tokenizer - a class that provides a stream of tokens to the treebuilder. This may be replaced for e.g. a sanitizer which converts some tags to text """ # Raise an exception on the first error encountered self.strict = strict self.tree = tree(namespaceHTMLElements) self.tokenizer_class = tokenizer self.errors = [] self.phases = { "initial": InitialPhase(self, self.tree), "beforeHtml": BeforeHtmlPhase(self, self.tree), "beforeHead": BeforeHeadPhase(self, self.tree), "inHead": InHeadPhase(self, self.tree), # XXX "inHeadNoscript": InHeadNoScriptPhase(self, self.tree), "afterHead": AfterHeadPhase(self, self.tree), "inBody": InBodyPhase(self, self.tree), "inCDataRCData": InCDataRCDataPhase(self, self.tree), "inTable": InTablePhase(self, self.tree), "inTableText": InTableTextPhase(self, self.tree), "inCaption": InCaptionPhase(self, self.tree), "inColumnGroup": InColumnGroupPhase(self, self.tree), "inTableBody": InTableBodyPhase(self, self.tree), "inRow": InRowPhase(self, self.tree), "inCell": InCellPhase(self, self.tree), "inSelect": InSelectPhase(self, self.tree), "inSelectInTable": InSelectInTablePhase(self, self.tree), "inForeignContent": InForeignContentPhase(self, self.tree), "afterBody": AfterBodyPhase(self, self.tree), "inFrameset": InFramesetPhase(self, self.tree), "afterFrameset": AfterFramesetPhase(self, self.tree), "afterAfterBody": AfterAfterBodyPhase(self, self.tree), "afterAfterFrameset": AfterAfterFramesetPhase(self, self.tree), # XXX after after frameset } def _parse(self, stream, innerHTML=False, container="div", encoding=None, parseMeta=True, useChardet=True, **kwargs): self.innerHTMLMode = innerHTML self.container = container self.tokenizer = self.tokenizer_class(stream, encoding=encoding, parseMeta=parseMeta, useChardet=useChardet, **kwargs) self.reset() while True: try: self.mainLoop() break except ReparseException, e: self.reset() def reset(self): self.tree.reset() self.firstStartTag = False self.errors = [] # "quirks" / "limited quirks" / "no quirks" self.compatMode = "no quirks" if self.innerHTMLMode: self.innerHTML = self.container.lower() if self.innerHTML in cdataElements: self.tokenizer.contentModelFlag = tokenizer.contentModelFlags["RCDATA"] elif self.innerHTML in rcdataElements: self.tokenizer.contentModelFlag = tokenizer.contentModelFlags["CDATA"] elif self.innerHTML == 'plaintext': self.tokenizer.contentModelFlag = tokenizer.contentModelFlags["PLAINTEXT"] else: # contentModelFlag already is PCDATA #self.tokenizer.contentModelFlag = tokenizer.contentModelFlags["PCDATA"] pass self.phase = self.phases["beforeHtml"] self.phase.insertHtmlElement() self.resetInsertionMode() else: self.innerHTML = False self.phase = self.phases["initial"] self.lastPhase = None self.secondaryPhase = None self.beforeRCDataPhase = None self.framesetOK = True def mainLoop(self): (CharactersToken, SpaceCharactersToken, StartTagToken, EndTagToken, CommentToken, DoctypeToken) = (tokenTypes["Characters"], tokenTypes["SpaceCharacters"], tokenTypes["StartTag"], tokenTypes["EndTag"], tokenTypes["Comment"], tokenTypes["Doctype"]) CharactersToken = tokenTypes["Characters"] SpaceCharactersToken = tokenTypes["SpaceCharacters"] StartTagToken = tokenTypes["StartTag"] EndTagToken = tokenTypes["EndTag"] CommentToken = tokenTypes["Comment"] DoctypeToken = tokenTypes["Doctype"] for token in self.normalizedTokens(): type = token["type"] if type == CharactersToken: self.phase.processCharacters(token) elif type == SpaceCharactersToken: self.phase.processSpaceCharacters(token) elif type == StartTagToken: self.selfClosingAcknowledged = False self.phase.processStartTag(token) if (token["selfClosing"] and not self.selfClosingAcknowledged): self.parseError("non-void-element-with-trailing-solidus", {"name":token["name"]}) elif type == EndTagToken: self.phase.processEndTag(token) elif type == CommentToken: self.phase.processComment(token) elif type == DoctypeToken: self.phase.processDoctype(token) else: self.parseError(token["data"], token.get("datavars", {})) # When the loop finishes it's EOF self.phase.processEOF() def normalizedTokens(self): for token in self.tokenizer: yield self.normalizeToken(token) def parse(self, stream, encoding=None, parseMeta=True, useChardet=True): """Parse a HTML document into a well-formed tree stream - a filelike object or string containing the HTML to be parsed The optional encoding parameter must be a string that indicates the encoding. If specified, that encoding will be used, regardless of any BOM or later declaration (such as in a meta element) """ self._parse(stream, innerHTML=False, encoding=encoding, parseMeta=parseMeta, useChardet=useChardet) return self.tree.getDocument() def parseFragment(self, stream, container="div", encoding=None, parseMeta=False, useChardet=True): """Parse a HTML fragment into a well-formed tree fragment container - name of the element we're setting the innerHTML property if set to None, default to 'div' stream - a filelike object or string containing the HTML to be parsed The optional encoding parameter must be a string that indicates the encoding. If specified, that encoding will be used, regardless of any BOM or later declaration (such as in a meta element) """ self._parse(stream, True, container=container, encoding=encoding) return self.tree.getFragment() def parseError(self, errorcode="XXX-undefined-error", datavars={}): # XXX The idea is to make errorcode mandatory. self.errors.append((self.tokenizer.stream.position(), errorcode, datavars)) if self.strict: raise ParseError def normalizeToken(self, token): """ HTML5 specific normalizations to the token stream """ if token["type"] == tokenTypes["StartTag"]: token["data"] = dict(token["data"][::-1]) return token def adjustMathMLAttributes(self, token): replacements = {"definitionurl":"definitionURL"} for k,v in replacements.iteritems(): if k in token["data"]: token["data"][v] = token["data"][k] del token["data"][k] def adjustSVGAttributes(self, token): replacements = { "attributename" : "attributeName", "attributetype" : "attributeType", "basefrequency" : "baseFrequency", "baseprofile" : "baseProfile", "calcmode" : "calcMode", "clippathunits" : "clipPathUnits", "contentscripttype" : "contentScriptType", "contentstyletype" : "contentStyleType", "diffuseconstant" : "diffuseConstant", "edgemode" : "edgeMode", "externalresourcesrequired" : "externalResourcesRequired", "filterres" : "filterRes", "filterunits" : "filterUnits", "glyphref" : "glyphRef", "gradienttransform" : "gradientTransform", "gradientunits" : "gradientUnits", "kernelmatrix" : "kernelMatrix", "kernelunitlength" : "kernelUnitLength", "keypoints" : "keyPoints", "keysplines" : "keySplines", "keytimes" : "keyTimes", "lengthadjust" : "lengthAdjust", "limitingconeangle" : "limitingConeAngle", "markerheight" : "markerHeight", "markerunits" : "markerUnits", "markerwidth" : "markerWidth", "maskcontentunits" : "maskContentUnits", "maskunits" : "maskUnits", "numoctaves" : "numOctaves", "pathlength" : "pathLength", "patterncontentunits" : "patternContentUnits", "patterntransform" : "patternTransform", "patternunits" : "patternUnits", "pointsatx" : "pointsAtX", "pointsaty" : "pointsAtY", "pointsatz" : "pointsAtZ", "preservealpha" : "preserveAlpha", "preserveaspectratio" : "preserveAspectRatio", "primitiveunits" : "primitiveUnits", "refx" : "refX", "refy" : "refY", "repeatcount" : "repeatCount", "repeatdur" : "repeatDur", "requiredextensions" : "requiredExtensions", "requiredfeatures" : "requiredFeatures", "specularconstant" : "specularConstant", "specularexponent" : "specularExponent", "spreadmethod" : "spreadMethod", "startoffset" : "startOffset", "stddeviation" : "stdDeviation", "stitchtiles" : "stitchTiles", "surfacescale" : "surfaceScale", "systemlanguage" : "systemLanguage", "tablevalues" : "tableValues", "targetx" : "targetX", "targety" : "targetY", "textlength" : "textLength", "viewbox" : "viewBox", "viewtarget" : "viewTarget", "xchannelselector" : "xChannelSelector", "ychannelselector" : "yChannelSelector", "zoomandpan" : "zoomAndPan" } for originalName in token["data"].keys(): if originalName in replacements: svgName = replacements[originalName] token["data"][svgName] = token["data"][originalName] del token["data"][originalName] def adjustForeignAttributes(self, token): replacements = { "xlink:actuate":("xlink", "actuate", namespaces["xlink"]), "xlink:arcrole":("xlink", "arcrole", namespaces["xlink"]), "xlink:href":("xlink", "href", namespaces["xlink"]), "xlink:role":("xlink", "role", namespaces["xlink"]), "xlink:show":("xlink", "show", namespaces["xlink"]), "xlink:title":("xlink", "title", namespaces["xlink"]), "xlink:type":("xlink", "type", namespaces["xlink"]), "xml:base":("xml", "base", namespaces["xml"]), "xml:lang":("xml", "lang", namespaces["xml"]), "xml:space":("xml", "space", namespaces["xml"]), "xmlns":(None, "xmlns", namespaces["xmlns"]), "xmlns:xlink":("xmlns", "xlink", namespaces["xmlns"]) } for originalName in token["data"].iterkeys(): if originalName in replacements: foreignName = replacements[originalName] token["data"][foreignName] = token["data"][originalName] del token["data"][originalName] def resetInsertionMode(self): # The name of this method is mostly historical. (It's also used in the # specification.) last = False newModes = { "select":"inSelect", "td":"inCell", "th":"inCell", "tr":"inRow", "tbody":"inTableBody", "thead":"inTableBody", "tfoot":"inTableBody", "caption":"inCaption", "colgroup":"inColumnGroup", "table":"inTable", "head":"inBody", "body":"inBody", "frameset":"inFrameset" } for node in self.tree.openElements[::-1]: nodeName = node.name if node == self.tree.openElements[0]: last = True if nodeName not in ['td', 'th']: # XXX assert self.innerHTML nodeName = self.innerHTML # Check for conditions that should only happen in the innerHTML # case if nodeName in ("select", "colgroup", "head", "frameset"): # XXX assert self.innerHTML if nodeName in newModes: self.phase = self.phases[newModes[nodeName]] break elif node.namespace in (namespaces["mathml"], namespaces["svg"]): self.phase = self.phases["inForeignContent"] self.secondaryPhase = self.phases["inBody"] break elif nodeName == "html": if self.tree.headPointer is None: self.phase = self.phases["beforeHead"] else: self.phase = self.phases["afterHead"] break elif last: self.phase = self.phases["inBody"] break def parseRCDataCData(self, token, contentType): """Generic (R)CDATA Parsing algorithm contentType - RCDATA or CDATA """ assert contentType in ("CDATA", "RCDATA") element = self.tree.insertElement(token) self.tokenizer.contentModelFlag = contentModelFlags[contentType] self.originalPhase = self.phase self.phase = self.phases["inCDataRCData"] class Phase(object): """Base class for helper object that implements each phase of processing """ # Order should be (they can be omitted): # * EOF # * Comment # * Doctype # * SpaceCharacters # * Characters # * StartTag # - startTag* methods # * EndTag # - endTag* methods def __init__(self, parser, tree): self.parser = parser self.tree = tree def processEOF(self): raise NotImplementedError def processComment(self, token): # For most phases the following is correct. Where it's not it will be # overridden. self.tree.insertComment(token, self.tree.openElements[-1]) def processDoctype(self, token): self.parser.parseError("unexpected-doctype") def processCharacters(self, token): self.tree.insertText(token["data"]) def processSpaceCharacters(self, token): self.tree.insertText(token["data"]) def processStartTag(self, token): self.startTagHandler[token["name"]](token) def startTagHtml(self, token): if self.parser.firstStartTag == False and token["name"] == "html": self.parser.parseError("non-html-root") # XXX Need a check here to see if the first start tag token emitted is # this token... If it's not, invoke self.parser.parseError(). for attr, value in token["data"].iteritems(): if attr not in self.tree.openElements[0].attributes: self.tree.openElements[0].attributes[attr] = value self.parser.firstStartTag = False def processEndTag(self, token): self.endTagHandler[token["name"]](token) class InitialPhase(Phase): # This phase deals with error handling as well which is currently not # covered in the specification. The error handling is typically known as # "quirks mode". It is expected that a future version of HTML5 will defin # this. def processEOF(self): self.parser.parseError("expected-doctype-but-got-eof") self.parser.compatMode = "quirks" self.parser.phase = self.parser.phases["beforeHtml"] self.parser.phase.processEOF() def processComment(self, token): self.tree.insertComment(token, self.tree.document) def processDoctype(self, token): name = token["name"] publicId = token["publicId"] systemId = token["systemId"] correct = token["correct"] if (name != "html" or publicId != None or systemId != None): self.parser.parseError("unknown-doctype") if publicId is None: publicId = "" if systemId is None: systemId = "" self.tree.insertDoctype(token) if publicId != "": publicId = publicId.translate(asciiUpper2Lower) if (not correct or token["name"] != "html" or publicId in ("+//silmaril//dtd html pro v0r11 19970101//en", "-//advasoft ltd//dtd html 3.0 aswedit + extensions//en", "-//as//dtd html 3.0 aswedit + extensions//en", "-//ietf//dtd html 2.0 level 1//en", "-//ietf//dtd html 2.0 level 2//en", "-//ietf//dtd html 2.0 strict level 1//en", "-//ietf//dtd html 2.0 strict level 2//en", "-//ietf//dtd html 2.0 strict//en", "-//ietf//dtd html 2.0//en", "-//ietf//dtd html 2.1e//en", "-//ietf//dtd html 3.0//en", "-//ietf//dtd html 3.0//en//", "-//ietf//dtd html 3.2 final//en", "-//ietf//dtd html 3.2//en", "-//ietf//dtd html 3//en", "-//ietf//dtd html level 0//en", "-//ietf//dtd html level 0//en//2.0", "-//ietf//dtd html level 1//en", "-//ietf//dtd html level 1//en//2.0", "-//ietf//dtd html level 2//en", "-//ietf//dtd html level 2//en//2.0", "-//ietf//dtd html level 3//en", "-//ietf//dtd html level 3//en//3.0", "-//ietf//dtd html strict level 0//en", "-//ietf//dtd html strict level 0//en//2.0", "-//ietf//dtd html strict level 1//en", "-//ietf//dtd html strict level 1//en//2.0", "-//ietf//dtd html strict level 2//en", "-//ietf//dtd html strict level 2//en//2.0", "-//ietf//dtd html strict level 3//en", "-//ietf//dtd html strict level 3//en//3.0", "-//ietf//dtd html strict//en", "-//ietf//dtd html strict//en//2.0", "-//ietf//dtd html strict//en//3.0", "-//ietf//dtd html//en", "-//ietf//dtd html//en//2.0", "-//ietf//dtd html//en//3.0", "-//metrius//dtd metrius presentational//en", "-//microsoft//dtd internet explorer 2.0 html strict//en", "-//microsoft//dtd internet explorer 2.0 html//en", "-//microsoft//dtd internet explorer 2.0 tables//en", "-//microsoft//dtd internet explorer 3.0 html strict//en", "-//microsoft//dtd internet explorer 3.0 html//en", "-//microsoft//dtd internet explorer 3.0 tables//en", "-//netscape comm. corp.//dtd html//en", "-//netscape comm. corp.//dtd strict html//en", "-//o'reilly and associates//dtd html 2.0//en", "-//o'reilly and associates//dtd html extended 1.0//en", "-//o'reilly and associates//dtd html extended relaxed 1.0//en", "-//spyglass//dtd html 2.0 extended//en", "-//sq//dtd html 2.0 hotmetal + extensions//en", "-//sun microsystems corp.//dtd hotjava html//en", "-//sun microsystems corp.//dtd hotjava strict html//en", "-//w3c//dtd html 3 1995-03-24//en", "-//w3c//dtd html 3.2 draft//en", "-//w3c//dtd html 3.2 final//en", "-//w3c//dtd html 3.2//en", "-//w3c//dtd html 3.2s draft//en", "-//w3c//dtd html 4.0 frameset//en", "-//w3c//dtd html 4.0 transitional//en", "-//w3c//dtd html experimental 19960712//en", "-//w3c//dtd html experimental 970421//en", "-//w3c//dtd w3 html//en", "-//w3o//dtd w3 html 3.0//en", "-//w3o//dtd w3 html 3.0//en//", "-//w3o//dtd w3 html strict 3.0//en//", "-//webtechs//dtd mozilla html 2.0//en", "-//webtechs//dtd mozilla html//en", "-/w3c/dtd html 4.0 transitional/en", "html") or (publicId in ("-//w3c//dtd html 4.01 frameset//EN", "-//w3c//dtd html 4.01 transitional//EN") and systemId == None) or (systemId != None and systemId == "http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd")): self.parser.compatMode = "quirks" elif (publicId in ("-//w3c//dtd xhtml 1.0 frameset//EN", "-//w3c//dtd xhtml 1.0 transitional//EN") or (publicId in ("-//w3c//dtd html 4.01 frameset//EN", "-//w3c//dtd html 4.01 transitional//EN") and systemId == None)): self.parser.compatMode = "limited quirks" self.parser.phase = self.parser.phases["beforeHtml"] def processSpaceCharacters(self, token): pass def processCharacters(self, token): self.parser.parseError("expected-doctype-but-got-chars") self.parser.compatMode = "quirks" self.parser.phase = self.parser.phases["beforeHtml"] self.parser.phase.processCharacters(token) def processStartTag(self, token): self.parser.parseError("expected-doctype-but-got-start-tag", {"name": token["name"]}) self.parser.compatMode = "quirks" self.parser.phase = self.parser.phases["beforeHtml"] self.parser.phase.processStartTag(token) def processEndTag(self, token): self.parser.parseError("expected-doctype-but-got-end-tag", {"name": token["name"]}) self.parser.compatMode = "quirks" self.parser.phase = self.parser.phases["beforeHtml"] self.parser.phase.processEndTag(token) class BeforeHtmlPhase(Phase): # helper methods def insertHtmlElement(self): self.tree.insertRoot(impliedTagToken("html", "StartTag")) self.parser.phase = self.parser.phases["beforeHead"] # other def processEOF(self): self.insertHtmlElement() self.parser.phase.processEOF() def processComment(self, token): self.tree.insertComment(token, self.tree.document) def processSpaceCharacters(self, token): pass def processCharacters(self, token): self.insertHtmlElement() self.parser.phase.processCharacters(token) def processStartTag(self, token): if token["name"] == "html": self.parser.firstStartTag = True self.insertHtmlElement() self.parser.phase.processStartTag(token) def processEndTag(self, token): self.insertHtmlElement() self.parser.phase.processEndTag(token) class BeforeHeadPhase(Phase): def __init__(self, parser, tree): Phase.__init__(self, parser, tree) self.startTagHandler = utils.MethodDispatcher([ ("html", self.startTagHtml), ("head", self.startTagHead) ]) self.startTagHandler.default = self.startTagOther self.endTagHandler = utils.MethodDispatcher([ (("head", "br"), self.endTagImplyHead) ]) self.endTagHandler.default = self.endTagOther def processEOF(self): self.startTagHead(impliedTagToken("head", "StartTag")) self.parser.phase.processEOF() def processSpaceCharacters(self, token): pass def processCharacters(self, token): self.startTagHead(impliedTagToken("head", "StartTag")) self.parser.phase.processCharacters(token) def startTagHead(self, token): self.tree.insertElement(token) self.tree.headPointer = self.tree.openElements[-1] self.parser.phase = self.parser.phases["inHead"] def startTagOther(self, token): self.startTagHead(impliedTagToken("head", "StartTag")) self.parser.phase.processStartTag(token) def endTagImplyHead(self, token): self.startTagHead(impliedTagToken("head", "StartTag")) self.parser.phase.processEndTag(token) def endTagOther(self, token): self.parser.parseError("end-tag-after-implied-root", {"name": token["name"]}) class InHeadPhase(Phase): def __init__(self, parser, tree): Phase.__init__(self, parser, tree) self.startTagHandler = utils.MethodDispatcher([ ("html", self.startTagHtml), ("title", self.startTagTitle), (("noscript", "noframes", "style"), self.startTagNoScriptNoFramesStyle), ("script", self.startTagScript), (("base", "link", "command", "eventsource"), self.startTagBaseLinkCommandEventsource), ("meta", self.startTagMeta), ("head", self.startTagHead) ]) self.startTagHandler.default = self.startTagOther self. endTagHandler = utils.MethodDispatcher([ ("head", self.endTagHead), (("br", "html", "body"), self.endTagHtmlBodyBr) ]) self.endTagHandler.default = self.endTagOther # helper def appendToHead(self, element): if self.tree.headPointer is not None: self.tree.headPointer.appendChild(element) else: assert self.parser.innerHTML self.tree.openElementsw[-1].appendChild(element) # the real thing def processEOF (self): self.anythingElse() self.parser.phase.processEOF() def processCharacters(self, token): self.anythingElse() self.parser.phase.processCharacters(token) def startTagHtml(self, token): self.parser.phases["inBody"].processStartTag(token) def startTagHead(self, token): self.parser.parseError("two-heads-are-not-better-than-one") def startTagBaseLinkCommandEventsource(self, token): self.tree.insertElement(token) self.tree.openElements.pop() token["selfClosingAcknowledged"] = True def startTagMeta(self, token): self.tree.insertElement(token) self.tree.openElements.pop() token["selfClosingAcknowledged"] = True attributes = token["data"] if self.parser.tokenizer.stream.charEncoding[1] == "tentative": if "charset" in attributes: self.parser.tokenizer.stream.changeEncoding(attributes["charset"]) elif "content" in attributes: data = inputstream.EncodingBytes( attributes["content"].encode(self.parser.tokenizer.stream.charEncoding[0])) parser = inputstream.ContentAttrParser(data) codec = parser.parse() self.parser.tokenizer.stream.changeEncoding(codec) def startTagTitle(self, token): self.parser.parseRCDataCData(token, "RCDATA") def startTagNoScriptNoFramesStyle(self, token): #Need to decide whether to implement the scripting-disabled case self.parser.parseRCDataCData(token, "CDATA") def startTagScript(self, token): #I think this is equivalent to the CDATA stuff since we don't execute script #self.tree.insertElement(token) self.parser.parseRCDataCData(token, "CDATA") def startTagOther(self, token): self.anythingElse() self.parser.phase.processStartTag(token) def endTagHead(self, token): node = self.parser.tree.openElements.pop() assert node.name == "head", "Expected head got %s"%node.name self.parser.phase = self.parser.phases["afterHead"] def endTagHtmlBodyBr(self, token): self.anythingElse() self.parser.phase.processEndTag(token) def endTagOther(self, token): self.parser.parseError("unexpected-end-tag", {"name": token["name"]}) def anythingElse(self): self.endTagHead(impliedTagToken("head")) # XXX If we implement a parser for which scripting is disabled we need to # implement this phase. # # class InHeadNoScriptPhase(Phase): class AfterHeadPhase(Phase): def __init__(self, parser, tree): Phase.__init__(self, parser, tree) self.startTagHandler = utils.MethodDispatcher([ ("html", self.startTagHtml), ("body", self.startTagBody), ("frameset", self.startTagFrameset), (("base", "link", "meta", "noframes", "script", "style", "title"), self.startTagFromHead), ("head", self.startTagHead) ]) self.startTagHandler.default = self.startTagOther self.endTagHandler = utils.MethodDispatcher([(("body", "html", "br"), self.endTagHtmlBodyBr)]) self.endTagHandler.default = self.endTagOther def processEOF(self): self.anythingElse() self.parser.phase.processEOF() def processCharacters(self, token): self.anythingElse() self.parser.phase.processCharacters(token) def startTagBody(self, token): self.parser.framesetOK = False self.tree.insertElement(token) self.parser.phase = self.parser.phases["inBody"] def startTagFrameset(self, token): self.tree.insertElement(token) self.parser.phase = self.parser.phases["inFrameset"] def startTagFromHead(self, token): self.parser.parseError("unexpected-start-tag-out-of-my-head", {"name": token["name"]}) self.tree.openElements.append(self.tree.headPointer) self.parser.phases["inHead"].processStartTag(token) for node in self.tree.openElements[::-1]: if node.name == "head": self.tree.openElements.remove(node) break def startTagHead(self, token): self.parser.parseError("unexpected-start-tag", {"name":token["name"]}) def startTagOther(self, token): self.anythingElse() self.parser.phase.processStartTag(token) def endTagHtmlBodyBr(self, token): #This is not currently in the spec self.anythingElse() self.parser.phase.processEndTag(token) def endTagOther(self, token): self.parser.parseError("unexpected-end-tag", {"name":token["name"]}) def anythingElse(self): self.tree.insertElement(impliedTagToken("body", "StartTag")) self.parser.phase = self.parser.phases["inBody"] self.parser.framesetOK = True class InBodyPhase(Phase): # http://www.whatwg.org/specs/web-apps/current-work/#in-body # the crazy mode def __init__(self, parser, tree): Phase.__init__(self, parser, tree) #Keep a ref to this for special handling of whitespace in <pre> self.processSpaceCharactersNonPre = self.processSpaceCharacters self.startTagHandler = utils.MethodDispatcher([ ("html", self.startTagHtml), (("base", "link", "meta", "script", "style", "title"), self.startTagProcessInHead), ("body", self.startTagBody), ("frameset", self.startTagFrameset), (("address", "article", "aside", "blockquote", "center", "datagrid", "details", "dialog", "dir", "div", "dl", "fieldset", "figure", "footer", "h1", "h2", "h3", "h4", "h5", "h6", "header", "listing", "menu", "nav", "ol", "p", "pre", "section", "ul"), self.startTagCloseP), ("form", self.startTagForm), (("li", "dd", "dt"), self.startTagListItem), ("plaintext",self.startTagPlaintext), (headingElements, self.startTagHeading), ("a", self.startTagA), (("b", "big", "code", "em", "font", "i", "s", "small", "strike", "strong", "tt", "u"),self.startTagFormatting), ("nobr", self.startTagNobr), ("button", self.startTagButton), (("applet", "marquee", "object"), self.startTagAppletMarqueeObject), ("xmp", self.startTagXmp), ("table", self.startTagTable), (("area", "basefont", "bgsound", "br", "embed", "img", "input", "keygen", "param", "spacer", "wbr"), self.startTagVoidFormatting), ("hr", self.startTagHr), ("image", self.startTagImage), ("isindex", self.startTagIsIndex), ("textarea", self.startTagTextarea), ("iframe", self.startTagIFrame), (("noembed", "noframes", "noscript"), self.startTagCdata), ("select", self.startTagSelect), (("rp", "rt"), self.startTagRpRt), (("option", "optgroup"), self.startTagOpt), (("math"), self.startTagMath), (("svg"), self.startTagSvg), (("caption", "col", "colgroup", "frame", "head", "tbody", "td", "tfoot", "th", "thead", "tr"), self.startTagMisplaced), (("event-source", "command"), self.startTagNew) ]) self.startTagHandler.default = self.startTagOther self.endTagHandler = utils.MethodDispatcher([ ("body",self.endTagBody), ("html",self.endTagHtml), (("address", "article", "aside", "blockquote", "center", "datagrid", "details", "dialog", "dir", "div", "dl", "fieldset", "figure", "footer", "header", "listing", "menu", "nav", "ol", "pre", "section", "ul"), self.endTagBlock), ("form", self.endTagForm), ("p",self.endTagP), (("dd", "dt", "li"), self.endTagListItem), (headingElements, self.endTagHeading), (("a", "b", "big", "code", "em", "font", "i", "nobr", "s", "small", "strike", "strong", "tt", "u"), self.endTagFormatting), (("applet", "button", "marquee", "object"), self.endTagAppletButtonMarqueeObject), ("br", self.endTagBr), ]) self.endTagHandler.default = self.endTagOther # helper def addFormattingElement(self, token): self.tree.insertElement(token) self.tree.activeFormattingElements.append( self.tree.openElements[-1]) # the real deal def processEOF(self): allowed_elements = frozenset(("dd", "dt", "li", "p", "tbody", "td", "tfoot", "th", "thead", "tr", "body", "html")) for node in self.tree.openElements[::-1]: if node.name not in allowed_elements: self.parser.parseError("expected-closing-tag-but-got-eof") break #Stop parsing def processSpaceCharactersDropNewline(self, token): # Sometimes (start of <pre>, <listing>, and <textarea> blocks) we # want to drop leading newlines data = token["data"] self.processSpaceCharacters = self.processSpaceCharactersNonPre if (data.startswith("\n") and self.tree.openElements[-1].name in ("pre", "listing", "textarea") and not self.tree.openElements[-1].hasContent()): data = data[1:] if data: self.tree.reconstructActiveFormattingElements() self.tree.insertText(data) def processCharacters(self, token): # XXX The specification says to do this for every character at the # moment, but apparently that doesn't match the real world so we don't # do it for space characters. self.tree.reconstructActiveFormattingElements() self.tree.insertText(token["data"]) self.framesetOK = False #This matches the current spec but may not match the real world def processSpaceCharacters(self, token): self.tree.reconstructActiveFormattingElements() self.tree.insertText(token["data"]) def startTagProcessInHead(self, token): self.parser.phases["inHead"].processStartTag(token) def startTagBody(self, token): self.parser.parseError("unexpected-start-tag", {"name": "body"}) if (len(self.tree.openElements) == 1 or self.tree.openElements[1].name != "body"): assert self.parser.innerHTML else: for attr, value in token["data"].iteritems(): if attr not in self.tree.openElements[1].attributes: self.tree.openElements[1].attributes[attr] = value def startTagFrameset(self, token): self.parser.parseError("unexpected-start-tag", {"name": "frameset"}) if (len(self.tree.openElements) == 1 or self.tree.openElements[1].name != "body"): assert self.parser.innerHTML elif not self.parser.framesetOK: pass else: if self.tree.openElements[1].parent: self.tree.openElements[1].parent.removeChild(self.tree.openElements[1]) while self.tree.openElements[-1].name != "html": self.tree.openElements.pop() self.tree.insertElement(token) self.parser.phase = self.parser.phases["inFrameset"] def startTagCloseP(self, token): if self.tree.elementInScope("p"): self.endTagP(impliedTagToken("p")) self.tree.insertElement(token) if token["name"] in ("pre", "listing"): self.parser.framesetOK = False self.processSpaceCharacters = self.processSpaceCharactersDropNewline def startTagForm(self, token): if self.tree.formPointer: self.parser.parseError(u"unexpected-start-tag", {"name": "form"}) else: if self.tree.elementInScope("p"): self.endTagP("p") self.tree.insertElement(token) self.tree.formPointer = self.tree.openElements[-1] def startTagListItem(self, token): self.parser.framesetOK = False stopNamesMap = {"li":["li"], "dt":["dt", "dd"], "dd":["dt", "dd"]} stopNames = stopNamesMap[token["name"]] for node in reversed(self.tree.openElements): if node.name in stopNames: self.parser.phase.processEndTag( impliedTagToken(node.name, "EndTag")) break if (node.nameTuple in (scopingElements | specialElements) and node.name not in ("address", "div", "p")): break if self.tree.elementInScope("p"): self.parser.phase.processEndTag( impliedTagToken("p", "EndTag")) self.tree.insertElement(token) def startTagPlaintext(self, token): if self.tree.elementInScope("p"): self.endTagP(impliedTagToken("p")) self.tree.insertElement(token) self.parser.tokenizer.contentModelFlag = contentModelFlags["PLAINTEXT"] def startTagHeading(self, token): if self.tree.elementInScope("p"): self.endTagP(impliedTagToken("p")) if self.tree.openElements[-1].name in headingElements: self.parser.parseError("unexpected-start-tag", {"name": token["name"]}) self.tree.openElements.pop() # Uncomment the following for IE7 behavior: # #for item in headingElements: # if self.tree.elementInScope(item): # self.parser.parseError("unexpected-start-tag", {"name": token["name"]}) # item = self.tree.openElements.pop() # while item.name not in headingElements: # item = self.tree.openElements.pop() # break self.tree.insertElement(token) def startTagA(self, token): afeAElement = self.tree.elementInActiveFormattingElements("a") if afeAElement: self.parser.parseError("unexpected-start-tag-implies-end-tag", {"startName": "a", "endName": "a"}) self.endTagFormatting(impliedTagToken("a")) if afeAElement in self.tree.openElements: self.tree.openElements.remove(afeAElement) if afeAElement in self.tree.activeFormattingElements: self.tree.activeFormattingElements.remove(afeAElement) self.tree.reconstructActiveFormattingElements() self.addFormattingElement(token) def startTagFormatting(self, token): self.tree.reconstructActiveFormattingElements() self.addFormattingElement(token) def startTagNobr(self, token): self.tree.reconstructActiveFormattingElements() if self.tree.elementInScope("nobr"): self.parser.parseError("unexpected-start-tag-implies-end-tag", {"startName": "nobr", "endName": "nobr"}) self.processEndTag(impliedTagToken("nobr")) # XXX Need tests that trigger the following self.tree.reconstructActiveFormattingElements() self.addFormattingElement(token) def startTagButton(self, token): if self.tree.elementInScope("button"): self.parser.parseError("unexpected-start-tag-implies-end-tag", {"startName": "button", "endName": "button"}) self.processEndTag(impliedTagToken("button")) self.parser.phase.processStartTag(token) else: self.tree.reconstructActiveFormattingElements() self.tree.insertElement(token) self.tree.activeFormattingElements.append(Marker) self.parser.framesetOK = False def startTagAppletMarqueeObject(self, token): self.tree.reconstructActiveFormattingElements() self.tree.insertElement(token) self.tree.activeFormattingElements.append(Marker) self.parser.framesetOK = False def startTagXmp(self, token): if self.tree.elementInScope("p"): self.endTagP(impliedTagToken("p")) self.tree.reconstructActiveFormattingElements() self.parser.framesetOK = False self.parser.parseRCDataCData(token, "CDATA") def startTagTable(self, token): if self.parser.compatMode != "quirks": if self.tree.elementInScope("p"): self.processEndTag(impliedTagToken("p")) self.tree.insertElement(token) self.parser.framesetOK = False self.parser.phase = self.parser.phases["inTable"] def startTagVoidFormatting(self, token): self.tree.reconstructActiveFormattingElements() self.tree.insertElement(token) self.tree.openElements.pop() token["selfClosingAcknowledged"] = True self.parser.framesetOK = False def startTagHr(self, token): if self.tree.elementInScope("p"): self.endTagP(impliedTagToken("p")) self.tree.insertElement(token) self.tree.openElements.pop() token["selfClosingAcknowledged"] = True self.parser.framesetOK = False def startTagImage(self, token): # No really... self.parser.parseError("unexpected-start-tag-treated-as", {"originalName": "image", "newName": "img"}) self.processStartTag(impliedTagToken("img", "StartTag", attributes=token["data"], selfClosing=token["selfClosing"])) def startTagIsIndex(self, token): self.parser.parseError("deprecated-tag", {"name": "isindex"}) if self.tree.formPointer: return form_attrs = {} if "action" in token["data"]: form_attrs["action"] = token["data"]["action"] self.processStartTag(impliedTagToken("form", "StartTag", attributes=form_attrs)) self.processStartTag(impliedTagToken("hr", "StartTag")) self.processStartTag(impliedTagToken("label", "StartTag")) # XXX Localization ... if "prompt" in token["data"]: prompt = token["data"]["prompt"] else: prompt = "This is a searchable index. Insert your search keywords here: " self.processCharacters( {"type":tokenTypes["Characters"], "data":prompt}) attributes = token["data"].copy() if "action" in attributes: del attributes["action"] if "prompt" in attributes: del attributes["prompt"] attributes["name"] = "isindex" self.processStartTag(impliedTagToken("input", "StartTag", attributes = attributes, selfClosing = token["selfClosing"])) self.processEndTag(impliedTagToken("label")) self.processStartTag(impliedTagToken("hr", "StartTag")) self.processEndTag(impliedTagToken("form")) def startTagTextarea(self, token): # XXX Form element pointer checking here as well... self.tree.insertElement(token) self.parser.tokenizer.contentModelFlag = contentModelFlags["RCDATA"] self.processSpaceCharacters = self.processSpaceCharactersDropNewline self.parser.framesetOK = False def startTagIFrame(self, token): self.parser.framesetOK = False self.startTagCdata(token) def startTagCdata(self, token): """iframe, noembed noframes, noscript(if scripting enabled)""" self.parser.parseRCDataCData(token, "CDATA") def startTagOpt(self, token): if self.tree.elementInScope("option"): self.parser.phase.processEndTag(impliedTagToken("option")) self.tree.reconstructActiveFormattingElements() self.parser.tree.insertElement(token) def startTagSelect(self, token): self.tree.reconstructActiveFormattingElements() self.tree.insertElement(token) self.parser.framesetOK = False if self.parser.phase in (self.parser.phases["inTable"], self.parser.phases["inCaption"], self.parser.phases["inColumnGroup"], self.parser.phases["inTableBody"], self.parser.phases["inRow"], self.parser.phases["inCell"]): self.parser.phase = self.parser.phases["inSelectInTable"] else: self.parser.phase = self.parser.phases["inSelect"] def startTagRpRt(self, token): if self.tree.elementInScope("ruby"): self.tree.generateImpliedEndTags() if self.tree.openElements[-1].name != "ruby": self.parser.parseError() while self.tree.openElements[-1].name != "ruby": self.tree.openElements.pop() self.tree.insertElement(token) def startTagMath(self, token): self.tree.reconstructActiveFormattingElements() self.parser.adjustMathMLAttributes(token) self.parser.adjustForeignAttributes(token) token["namespace"] = namespaces["mathml"] self.tree.insertElement(token) #Need to get the parse error right for the case where the token #has a namespace not equal to the xmlns attribute if self.parser.phase != self.parser.phases["inForeignContent"]: self.parser.secondaryPhase = self.parser.phase self.parser.phase = self.parser.phases["inForeignContent"] if token["selfClosing"]: self.tree.openElements.pop() token["selfClosingAcknowledged"] = True def startTagSvg(self, token): self.tree.reconstructActiveFormattingElements() self.parser.adjustSVGAttributes(token) self.parser.adjustForeignAttributes(token) token["namespace"] = namespaces["svg"] self.tree.insertElement(token) #Need to get the parse error right for the case where the token #has a namespace not equal to the xmlns attribute if self.parser.phase != self.parser.phases["inForeignContent"]: self.parser.secondaryPhase = self.parser.phase self.parser.phase = self.parser.phases["inForeignContent"] if token["selfClosing"]: self.tree.openElements.pop() token["selfClosingAcknowledged"] = True def startTagMisplaced(self, token): """ Elements that should be children of other elements that have a different insertion mode; here they are ignored "caption", "col", "colgroup", "frame", "frameset", "head", "option", "optgroup", "tbody", "td", "tfoot", "th", "thead", "tr", "noscript" """ self.parser.parseError("unexpected-start-tag-ignored", {"name": token["name"]}) def startTagNew(self, token): """New HTML5 elements, "event-source", "section", "nav", "article", "aside", "header", "footer", "datagrid", "command" """ #2007-08-30 - MAP - commenting out this write to sys.stderr because # it's really annoying me when I run the validator tests #sys.stderr.write("Warning: Undefined behaviour for start tag %s"%name) self.startTagOther(token) #raise NotImplementedError def startTagOther(self, token): self.tree.reconstructActiveFormattingElements() self.tree.insertElement(token) def endTagP(self, token): if self.tree.elementInScope("p"): self.tree.generateImpliedEndTags("p") if self.tree.openElements[-1].name != "p": self.parser.parseError("unexpected-end-tag", {"name": "p"}) if self.tree.elementInScope("p"): while self.tree.elementInScope("p"): self.tree.openElements.pop() else: self.startTagCloseP(impliedTagToken("p", "StartTag")) self.endTagP(impliedTagToken("p")) def endTagBody(self, token): # XXX Need to take open <p> tags into account here. We shouldn't imply # </p> but we should not throw a parse error either. Specification is # likely to be updated. if (len(self.tree.openElements) == 1 or self.tree.openElements[1].name != "body"): # innerHTML case self.parser.parseError() return elif self.tree.openElements[-1].name != "body": for node in self.tree.openElements[2:]: if node.name not in frozenset(("dd", "dt", "li", "p", "tbody", "td", "tfoot", "th", "thead", "tr")): #Not sure this is the correct name for the parse error self.parser.parseError( "expected-one-end-tag-but-got-another", {"expectedName": "body", "gotName": node.name}) break self.parser.phase = self.parser.phases["afterBody"] def endTagHtml(self, token): self.endTagBody(impliedTagToken("body")) if not self.parser.innerHTML: self.parser.phase.processEndTag(token) def endTagBlock(self, token): #Put us back in the right whitespace handling mode if token["name"] == "pre": self.processSpaceCharacters = self.processSpaceCharactersNonPre inScope = self.tree.elementInScope(token["name"]) if inScope: self.tree.generateImpliedEndTags() if self.tree.openElements[-1].name != token["name"]: self.parser.parseError("end-tag-too-early", {"name": token["name"]}) if inScope: node = self.tree.openElements.pop() while node.name != token["name"]: node = self.tree.openElements.pop() def endTagForm(self, token): node = self.tree.formPointer self.tree.formPointer = None if node is None or not self.tree.elementInScope(token["name"]): self.parser.parseError("unexpected-end-tag", {"name":"form"}) else: self.tree.generateImpliedEndTags() if self.tree.openElements[-1].name != node: self.parser.parseError("end-tag-too-early-ignored", {"name": "form"}) self.tree.openElements.remove(node) def endTagListItem(self, token): if token["name"] == "li": variant = "list" else: variant = None if not self.tree.elementInScope(token["name"], variant=variant): self.parser.parseError("unexpected-end-tag", {"name": token["name"]}) else: self.tree.generateImpliedEndTags(exclude = token["name"]) if self.tree.openElements[-1].name != token["name"]: self.parser.parseError( "end-tag-too-early", {"name": token["name"]}) node = self.tree.openElements.pop() while node.name != token["name"]: node = self.tree.openElements.pop() def endTagHeading(self, token): for item in headingElements: if self.tree.elementInScope(item): self.tree.generateImpliedEndTags() break if self.tree.openElements[-1].name != token["name"]: self.parser.parseError("end-tag-too-early", {"name": token["name"]}) for item in headingElements: if self.tree.elementInScope(item): item = self.tree.openElements.pop() while item.name not in headingElements: item = self.tree.openElements.pop() break def endTagFormatting(self, token): """The much-feared adoption agency algorithm""" # http://www.whatwg.org/specs/web-apps/current-work/#adoptionAgency # XXX Better parseError messages appreciated. name = token["name"] while True: # Step 1 paragraph 1 formattingElement = self.tree.elementInActiveFormattingElements( token["name"]) if not formattingElement or (formattingElement in self.tree.openElements and not self.tree.elementInScope( formattingElement.name)): self.parser.parseError("adoption-agency-1.1", {"name": token["name"]}) return # Step 1 paragraph 2 elif formattingElement not in self.tree.openElements: self.parser.parseError("adoption-agency-1.2", {"name": token["name"]}) self.tree.activeFormattingElements.remove(formattingElement) return # Step 1 paragraph 3 if formattingElement != self.tree.openElements[-1]: self.parser.parseError("adoption-agency-1.3", {"name": token["name"]}) # Step 2 # Start of the adoption agency algorithm proper afeIndex = self.tree.openElements.index(formattingElement) furthestBlock = None for element in self.tree.openElements[afeIndex:]: if (element.nameTuple in specialElements | scopingElements): furthestBlock = element break # Step 3 if furthestBlock is None: element = self.tree.openElements.pop() while element != formattingElement: element = self.tree.openElements.pop() self.tree.activeFormattingElements.remove(element) return commonAncestor = self.tree.openElements[afeIndex-1] # Step 5 #if furthestBlock.parent: # furthestBlock.parent.removeChild(furthestBlock) # Step 5 # The bookmark is supposed to help us identify where to reinsert # nodes in step 12. We have to ensure that we reinsert nodes after # the node before the active formatting element. Note the bookmark # can move in step 7.4 bookmark = self.tree.activeFormattingElements.index(formattingElement) # Step 6 lastNode = node = furthestBlock while True: # AT replace this with a function and recursion? # Node is element before node in open elements node = self.tree.openElements[ self.tree.openElements.index(node)-1] while node not in self.tree.activeFormattingElements: tmpNode = node node = self.tree.openElements[ self.tree.openElements.index(node)-1] self.tree.openElements.remove(tmpNode) # Step 6.3 if node == formattingElement: break # Step 6.4 if lastNode == furthestBlock: bookmark = (self.tree.activeFormattingElements.index(node) + 1) # Step 6.5 #cite = node.parent #if node.hasContent(): clone = node.cloneNode() # Replace node with clone self.tree.activeFormattingElements[ self.tree.activeFormattingElements.index(node)] = clone self.tree.openElements[ self.tree.openElements.index(node)] = clone node = clone # Step 6.6 # Remove lastNode from its parents, if any if lastNode.parent: lastNode.parent.removeChild(lastNode) node.appendChild(lastNode) # Step 7.7 lastNode = node # End of inner loop # Step 7 # Foster parent lastNode if commonAncestor is a # table, tbody, tfoot, thead, or tr we need to foster parent the # lastNode if lastNode.parent: lastNode.parent.removeChild(lastNode) commonAncestor.appendChild(lastNode) # Step 8 clone = formattingElement.cloneNode() # Step 9 furthestBlock.reparentChildren(clone) # Step 10 furthestBlock.appendChild(clone) # Step 11 self.tree.activeFormattingElements.remove(formattingElement) self.tree.activeFormattingElements.insert(bookmark, clone) # Step 12 self.tree.openElements.remove(formattingElement) self.tree.openElements.insert( self.tree.openElements.index(furthestBlock) + 1, clone) def endTagAppletButtonMarqueeObject(self, token): if self.tree.elementInScope(token["name"]): self.tree.generateImpliedEndTags() if self.tree.openElements[-1].name != token["name"]: self.parser.parseError("end-tag-too-early", {"name": token["name"]}) if self.tree.elementInScope(token["name"]): element = self.tree.openElements.pop() while element.name != token["name"]: element = self.tree.openElements.pop() self.tree.clearActiveFormattingElements() def endTagBr(self, token): self.parser.parseError("unexpected-end-tag-treated-as", {"originalName": "br", "newName": "br element"}) self.tree.reconstructActiveFormattingElements() self.tree.insertElement(impliedTagToken("br", "StartTag")) self.tree.openElements.pop() def endTagOther(self, token): for node in self.tree.openElements[::-1]: if node.name == token["name"]: self.tree.generateImpliedEndTags() if self.tree.openElements[-1].name != token["name"]: self.parser.parseError("unexpected-end-tag", {"name": token["name"]}) while self.tree.openElements.pop() != node: pass break else: if (node.nameTuple in specialElements | scopingElements): self.parser.parseError("unexpected-end-tag", {"name": token["name"]}) break class InCDataRCDataPhase(Phase): def __init__(self, parser, tree): Phase.__init__(self, parser, tree) self.startTagHandler = utils.MethodDispatcher([]) self.startTagHandler.default = self.startTagOther self.endTagHandler = utils.MethodDispatcher([ ("script", self.endTagScript)]) self.endTagHandler.default = self.endTagOther def processCharacters(self, token): self.tree.insertText(token["data"]) def processEOF(self): self.parser.parseError("expected-named-closing-tag-but-got-eof", self.tree.openElements[-1].name) self.tree.openElements.pop() self.parser.phase = self.parser.originalPhase self.parser.phase.processEOF() def startTagOther(self, token): assert False, "Tried to process start tag %s in (R)CDATA mode"%name def endTagScript(self, token): node = self.tree.openElements.pop() assert node.name == "script" self.parser.phase = self.parser.originalPhase #The rest of this method is all stuff that only happens if #document.write works def endTagOther(self, token): node = self.tree.openElements.pop() self.parser.phase = self.parser.originalPhase class InTablePhase(Phase): # http://www.whatwg.org/specs/web-apps/current-work/#in-table def __init__(self, parser, tree): Phase.__init__(self, parser, tree) self.startTagHandler = utils.MethodDispatcher([ ("html", self.startTagHtml), ("caption", self.startTagCaption), ("colgroup", self.startTagColgroup), ("col", self.startTagCol), (("tbody", "tfoot", "thead"), self.startTagRowGroup), (("td", "th", "tr"), self.startTagImplyTbody), ("table", self.startTagTable), (("style", "script"), self.startTagStyleScript), ("input", self.startTagInput) ]) self.startTagHandler.default = self.startTagOther self.endTagHandler = utils.MethodDispatcher([ ("table", self.endTagTable), (("body", "caption", "col", "colgroup", "html", "tbody", "td", "tfoot", "th", "thead", "tr"), self.endTagIgnore) ]) self.endTagHandler.default = self.endTagOther # helper methods def clearStackToTableContext(self): # "clear the stack back to a table context" while self.tree.openElements[-1].name not in ("table", "html"): #self.parser.parseError("unexpected-implied-end-tag-in-table", # {"name": self.tree.openElements[-1].name}) self.tree.openElements.pop() # When the current node is <html> it's an innerHTML case def getCurrentTable(self): i = -1 while -i <= len(self.tree.openElements) and self.tree.openElements[i].name != "table": i -= 1 if -i > len(self.tree.openElements): return self.tree.openElements[0] else: return self.tree.openElements[i] # processing methods def processEOF(self): if self.tree.openElements[-1].name != "html": self.parser.parseError("eof-in-table") else: assert self.parser.innerHTML #Stop parsing def processSpaceCharacters(self, token): originalPhase = self.parser.phase self.parser.phase = self.parser.phases["inTableText"] self.parser.phase.originalPhase = originalPhase self.parser.phase.characterTokens.append(token) def processCharacters(self, token): #If we get here there must be at least one non-whitespace character # Do the table magic! self.tree.insertFromTable = True self.parser.phases["inBody"].processCharacters(token) self.tree.insertFromTable = False def startTagCaption(self, token): self.clearStackToTableContext() self.tree.activeFormattingElements.append(Marker) self.tree.insertElement(token) self.parser.phase = self.parser.phases["inCaption"] def startTagColgroup(self, token): self.clearStackToTableContext() self.tree.insertElement(token) self.parser.phase = self.parser.phases["inColumnGroup"] def startTagCol(self, token): self.startTagColgroup(impliedTagToken("colgroup", "StartTag")) self.parser.phase.processStartTag(token) def startTagRowGroup(self, token): self.clearStackToTableContext() self.tree.insertElement(token) self.parser.phase = self.parser.phases["inTableBody"] def startTagImplyTbody(self, token): self.startTagRowGroup(impliedTagToken("tbody", "StartTag")) self.parser.phase.processStartTag(token) def startTagTable(self, token): self.parser.parseError("unexpected-start-tag-implies-end-tag", {"startName": "table", "endName": "table"}) self.parser.phase.processEndTag(impliedTagToken("table")) if not self.parser.innerHTML: self.parser.phase.processStartTag(token) def startTagStyleScript(self, token): self.parser.phases["inHead"].processStartTag(token) def startTagInput(self, token): if ("type" in token["data"] and token["data"]["type"].translate(asciiUpper2Lower) == "hidden"): self.parser.parseError("unexpected-hidden-input-in-table") self.tree.insertElement(token) # XXX associate with form self.tree.openElements.pop() else: self.startTagOther(token) def startTagOther(self, token): self.parser.parseError("unexpected-start-tag-implies-table-voodoo", {"name": token["name"]}) if "tainted" not in self.getCurrentTable()._flags: self.getCurrentTable()._flags.append("tainted") # Do the table magic! self.tree.insertFromTable = True self.parser.phases["inBody"].processStartTag(token) self.tree.insertFromTable = False def endTagTable(self, token): if self.tree.elementInScope("table", variant="table"): self.tree.generateImpliedEndTags() if self.tree.openElements[-1].name != "table": self.parser.parseError("end-tag-too-early-named", {"gotName": "table", "expectedName": self.tree.openElements[-1].name}) while self.tree.openElements[-1].name != "table": self.tree.openElements.pop() self.tree.openElements.pop() self.parser.resetInsertionMode() else: # innerHTML case assert self.parser.innerHTML self.parser.parseError() def endTagIgnore(self, token): self.parser.parseError("unexpected-end-tag", {"name": token["name"]}) def endTagOther(self, token): self.parser.parseError("unexpected-end-tag-implies-table-voodoo", {"name": token["name"]}) if "tainted" not in self.getCurrentTable()._flags: self.getCurrentTable()._flags.append("tainted") # Do the table magic! self.tree.insertFromTable = True self.parser.phases["inBody"].processEndTag(token) self.tree.insertFromTable = False class InTableTextPhase(Phase): def __init__(self, parser, tree): Phase.__init__(self, parser, tree) self.originalPhase = None self.characterTokens = [] def flushCharacters(self): data = "".join([item["data"] for item in self.characterTokens]) if any([item not in spaceCharacters for item in data]): token = {"type":tokenTypes["Characters"], "data":data} self.originalPhase.processCharacters(token) elif data: self.tree.insertText(data) self.characterTokens = [] def processComment(self, token): self.flushCharacters() self.phase = self.originalPhase self.phase.processComment(token) def processEOF(self, token): self.flushCharacters() self.phase = self.originalPhase self.phase.processEOF(token) def processCharacters(self, token): self.characterTokens.append(token) def processSpaceCharacters(self, token): #pretty sure we should never reach here self.characterTokens.append(token) # assert False def processStartTag(self, token): self.flushCharacters() self.phase = self.originalPhase self.phase.processStartTag(token) def processEndTag(self, token): self.flushCharacters() self.phase = self.originalPhase self.phase.processEndTag(token) class InCaptionPhase(Phase): # http://www.whatwg.org/specs/web-apps/current-work/#in-caption def __init__(self, parser, tree): Phase.__init__(self, parser, tree) self.startTagHandler = utils.MethodDispatcher([ ("html", self.startTagHtml), (("caption", "col", "colgroup", "tbody", "td", "tfoot", "th", "thead", "tr"), self.startTagTableElement) ]) self.startTagHandler.default = self.startTagOther self.endTagHandler = utils.MethodDispatcher([ ("caption", self.endTagCaption), ("table", self.endTagTable), (("body", "col", "colgroup", "html", "tbody", "td", "tfoot", "th", "thead", "tr"), self.endTagIgnore) ]) self.endTagHandler.default = self.endTagOther def ignoreEndTagCaption(self): return not self.tree.elementInScope("caption", variant="table") def processEOF(self): self.parser.phases["inBody"].processEOF() def processCharacters(self, token): self.parser.phases["inBody"].processCharacters(token) def startTagTableElement(self, token): self.parser.parseError() #XXX Have to duplicate logic here to find out if the tag is ignored ignoreEndTag = self.ignoreEndTagCaption() self.parser.phase.processEndTag(impliedTagToken("caption")) if not ignoreEndTag: self.parser.phase.processStartTag(token) def startTagOther(self, token): self.parser.phases["inBody"].processStartTag(token) def endTagCaption(self, token): if not self.ignoreEndTagCaption(): # AT this code is quite similar to endTagTable in "InTable" self.tree.generateImpliedEndTags() if self.tree.openElements[-1].name != "caption": self.parser.parseError("expected-one-end-tag-but-got-another", {"gotName": "caption", "expectedName": self.tree.openElements[-1].name}) while self.tree.openElements[-1].name != "caption": self.tree.openElements.pop() self.tree.openElements.pop() self.tree.clearActiveFormattingElements() self.parser.phase = self.parser.phases["inTable"] else: # innerHTML case assert self.parser.innerHTML self.parser.parseError() def endTagTable(self, token): self.parser.parseError() ignoreEndTag = self.ignoreEndTagCaption() self.parser.phase.processEndTag(impliedTagToken("caption")) if not ignoreEndTag: self.parser.phase.processEndTag(token) def endTagIgnore(self, token): self.parser.parseError("unexpected-end-tag", {"name": token["name"]}) def endTagOther(self, token): self.parser.phases["inBody"].processEndTag(token) class InColumnGroupPhase(Phase): # http://www.whatwg.org/specs/web-apps/current-work/#in-column def __init__(self, parser, tree): Phase.__init__(self, parser, tree) self.startTagHandler = utils.MethodDispatcher([ ("html", self.startTagHtml), ("col", self.startTagCol) ]) self.startTagHandler.default = self.startTagOther self.endTagHandler = utils.MethodDispatcher([ ("colgroup", self.endTagColgroup), ("col", self.endTagCol) ]) self.endTagHandler.default = self.endTagOther def ignoreEndTagColgroup(self): return self.tree.openElements[-1].name == "html" def processEOF(self): if self.tree.openElements[-1].name == "html": assert self.parser.innerHTML return else: ignoreEndTag = self.ignoreEndTagColgroup() self.endTagColgroup("colgroup") if not ignoreEndTag: self.parser.phase.processEOF() def processCharacters(self, token): ignoreEndTag = self.ignoreEndTagColgroup() self.endTagColgroup(impliedTagToken("colgroup")) if not ignoreEndTag: self.parser.phase.processCharacters(token) def startTagCol(self, token): self.tree.insertElement(token) self.tree.openElements.pop() def startTagOther(self, token): ignoreEndTag = self.ignoreEndTagColgroup() self.endTagColgroup("colgroup") if not ignoreEndTag: self.parser.phase.processStartTag(token) def endTagColgroup(self, token): if self.ignoreEndTagColgroup(): # innerHTML case assert self.parser.innerHTML self.parser.parseError() else: self.tree.openElements.pop() self.parser.phase = self.parser.phases["inTable"] def endTagCol(self, token): self.parser.parseError("no-end-tag", {"name": "col"}) def endTagOther(self, token): ignoreEndTag = self.ignoreEndTagColgroup() self.endTagColgroup("colgroup") if not ignoreEndTag: self.parser.phase.processEndTag(token) class InTableBodyPhase(Phase): # http://www.whatwg.org/specs/web-apps/current-work/#in-table0 def __init__(self, parser, tree): Phase.__init__(self, parser, tree) self.startTagHandler = utils.MethodDispatcher([ ("html", self.startTagHtml), ("tr", self.startTagTr), (("td", "th"), self.startTagTableCell), (("caption", "col", "colgroup", "tbody", "tfoot", "thead"), self.startTagTableOther) ]) self.startTagHandler.default = self.startTagOther self.endTagHandler = utils.MethodDispatcher([ (("tbody", "tfoot", "thead"), self.endTagTableRowGroup), ("table", self.endTagTable), (("body", "caption", "col", "colgroup", "html", "td", "th", "tr"), self.endTagIgnore) ]) self.endTagHandler.default = self.endTagOther # helper methods def clearStackToTableBodyContext(self): while self.tree.openElements[-1].name not in ("tbody", "tfoot", "thead", "html"): #self.parser.parseError("unexpected-implied-end-tag-in-table", # {"name": self.tree.openElements[-1].name}) self.tree.openElements.pop() if self.tree.openElements[-1].name == "html": assert self.parser.innerHTML # the rest def processEOF(self): self.parser.phases["inTable"].processEOF() def processSpaceCharacters(self, token): self.parser.phases["inTable"].processSpaceCharacters(token) def processCharacters(self, token): self.parser.phases["inTable"].processCharacters(token) def startTagTr(self, token): self.clearStackToTableBodyContext() self.tree.insertElement(token) self.parser.phase = self.parser.phases["inRow"] def startTagTableCell(self, token): self.parser.parseError("unexpected-cell-in-table-body", {"name": token["name"]}) self.startTagTr(impliedTagToken("tr", "StartTag")) self.parser.phase.processStartTag(token) def startTagTableOther(self, token): # XXX AT Any ideas on how to share this with endTagTable? if (self.tree.elementInScope("tbody", variant="table") or self.tree.elementInScope("thead", variant="table") or self.tree.elementInScope("tfoot", variant="table")): self.clearStackToTableBodyContext() self.endTagTableRowGroup( impliedTagToken(self.tree.openElements[-1].name)) self.parser.phase.processStartTag(token) else: # innerHTML case self.parser.parseError() def startTagOther(self, token): self.parser.phases["inTable"].processStartTag(token) def endTagTableRowGroup(self, token): if self.tree.elementInScope(token["name"], variant="table"): self.clearStackToTableBodyContext() self.tree.openElements.pop() self.parser.phase = self.parser.phases["inTable"] else: self.parser.parseError("unexpected-end-tag-in-table-body", {"name": token["name"]}) def endTagTable(self, token): if (self.tree.elementInScope("tbody", variant="table") or self.tree.elementInScope("thead", variant="table") or self.tree.elementInScope("tfoot", variant="table")): self.clearStackToTableBodyContext() self.endTagTableRowGroup( impliedTagToken(self.tree.openElements[-1].name)) self.parser.phase.processEndTag(token) else: # innerHTML case self.parser.parseError() def endTagIgnore(self, token): self.parser.parseError("unexpected-end-tag-in-table-body", {"name": token["name"]}) def endTagOther(self, token): self.parser.phases["inTable"].processEndTag(token) class InRowPhase(Phase): # http://www.whatwg.org/specs/web-apps/current-work/#in-row def __init__(self, parser, tree): Phase.__init__(self, parser, tree) self.startTagHandler = utils.MethodDispatcher([ ("html", self.startTagHtml), (("td", "th"), self.startTagTableCell), (("caption", "col", "colgroup", "tbody", "tfoot", "thead", "tr"), self.startTagTableOther) ]) self.startTagHandler.default = self.startTagOther self.endTagHandler = utils.MethodDispatcher([ ("tr", self.endTagTr), ("table", self.endTagTable), (("tbody", "tfoot", "thead"), self.endTagTableRowGroup), (("body", "caption", "col", "colgroup", "html", "td", "th"), self.endTagIgnore) ]) self.endTagHandler.default = self.endTagOther # helper methods (XXX unify this with other table helper methods) def clearStackToTableRowContext(self): while self.tree.openElements[-1].name not in ("tr", "html"): self.parser.parseError("unexpected-implied-end-tag-in-table-row", {"name": self.tree.openElements[-1].name}) self.tree.openElements.pop() def ignoreEndTagTr(self): return not self.tree.elementInScope("tr", variant="table") # the rest def processEOF(self): self.parser.phases["inTable"].processEOF() def processSpaceCharacters(self, token): self.parser.phases["inTable"].processSpaceCharacters(token) def processCharacters(self, token): self.parser.phases["inTable"].processCharacters(token) def startTagTableCell(self, token): self.clearStackToTableRowContext() self.tree.insertElement(token) self.parser.phase = self.parser.phases["inCell"] self.tree.activeFormattingElements.append(Marker) def startTagTableOther(self, token): ignoreEndTag = self.ignoreEndTagTr() self.endTagTr("tr") # XXX how are we sure it's always ignored in the innerHTML case? if not ignoreEndTag: self.parser.phase.processStartTag(token) def startTagOther(self, token): self.parser.phases["inTable"].processStartTag(token) def endTagTr(self, token): if not self.ignoreEndTagTr(): self.clearStackToTableRowContext() self.tree.openElements.pop() self.parser.phase = self.parser.phases["inTableBody"] else: # innerHTML case assert self.parser.innerHTML self.parser.parseError() def endTagTable(self, token): ignoreEndTag = self.ignoreEndTagTr() self.endTagTr("tr") # Reprocess the current tag if the tr end tag was not ignored # XXX how are we sure it's always ignored in the innerHTML case? if not ignoreEndTag: self.parser.phase.processEndTag(token) def endTagTableRowGroup(self, token): if self.tree.elementInScope(token["name"], variant="table"): self.endTagTr("tr") self.parser.phase.processEndTag(token) else: # innerHTML case self.parser.parseError() def endTagIgnore(self, token): self.parser.parseError("unexpected-end-tag-in-table-row", {"name": token["name"]}) def endTagOther(self, token): self.parser.phases["inTable"].processEndTag(token) class InCellPhase(Phase): # http://www.whatwg.org/specs/web-apps/current-work/#in-cell def __init__(self, parser, tree): Phase.__init__(self, parser, tree) self.startTagHandler = utils.MethodDispatcher([ ("html", self.startTagHtml), (("caption", "col", "colgroup", "tbody", "td", "tfoot", "th", "thead", "tr"), self.startTagTableOther) ]) self.startTagHandler.default = self.startTagOther self.endTagHandler = utils.MethodDispatcher([ (("td", "th"), self.endTagTableCell), (("body", "caption", "col", "colgroup", "html"), self.endTagIgnore), (("table", "tbody", "tfoot", "thead", "tr"), self.endTagImply) ]) self.endTagHandler.default = self.endTagOther # helper def closeCell(self): if self.tree.elementInScope("td", variant="table"): self.endTagTableCell(impliedTagToken("td")) elif self.tree.elementInScope("th", variant="table"): self.endTagTableCell(impliedTagToken("th")) # the rest def processEOF(self): self.parser.phases["inBody"].processEOF() def processCharacters(self, token): self.parser.phases["inBody"].processCharacters(token) def startTagTableOther(self, token): if (self.tree.elementInScope("td", variant="table") or self.tree.elementInScope("th", variant="table")): self.closeCell() self.parser.phase.processStartTag(token) else: # innerHTML case self.parser.parseError() def startTagOther(self, token): self.parser.phases["inBody"].processStartTag(token) # Optimize this for subsequent invocations. Can't do this initially # because self.phases doesn't really exist at that point. self.startTagHandler.default =\ self.parser.phases["inBody"].processStartTag def endTagTableCell(self, token): if self.tree.elementInScope(token["name"], variant="table"): self.tree.generateImpliedEndTags(token["name"]) if self.tree.openElements[-1].name != token["name"]: self.parser.parseError("unexpected-cell-end-tag", {"name": token["name"]}) while True: node = self.tree.openElements.pop() if node.name == token["name"]: break else: self.tree.openElements.pop() self.tree.clearActiveFormattingElements() self.parser.phase = self.parser.phases["inRow"] else: self.parser.parseError("unexpected-end-tag", {"name": token["name"]}) def endTagIgnore(self, token): self.parser.parseError("unexpected-end-tag", {"name": token["name"]}) def endTagImply(self, token): if self.tree.elementInScope(token["name"], variant="table"): self.closeCell() self.parser.phase.processEndTag(token) else: # sometimes innerHTML case self.parser.parseError() def endTagOther(self, token): self.parser.phases["inBody"].processEndTag(token) # Optimize this for subsequent invocations. Can't do this initially # because self.phases doesn't really exist at that point. self.endTagHandler.default = self.parser.phases["inBody"].processEndTag class InSelectPhase(Phase): def __init__(self, parser, tree): Phase.__init__(self, parser, tree) self.startTagHandler = utils.MethodDispatcher([ ("html", self.startTagHtml), ("option", self.startTagOption), ("optgroup", self.startTagOptgroup), ("select", self.startTagSelect), (("input", "keygen", "textarea"), self.startTagInput) ]) self.startTagHandler.default = self.startTagOther self.endTagHandler = utils.MethodDispatcher([ ("option", self.endTagOption), ("optgroup", self.endTagOptgroup), ("select", self.endTagSelect), (("caption", "table", "tbody", "tfoot", "thead", "tr", "td", "th"), self.endTagTableElements) ]) self.endTagHandler.default = self.endTagOther # http://www.whatwg.org/specs/web-apps/current-work/#in-select def processEOF(self): if self.tree.openElements[-1].name != "html": self.parser.parseError("eof-in-select") else: assert self.parser.innerHTML def processCharacters(self, token): self.tree.insertText(token["data"]) def startTagOption(self, token): # We need to imply </option> if <option> is the current node. if self.tree.openElements[-1].name == "option": self.tree.openElements.pop() self.tree.insertElement(token) def startTagOptgroup(self, token): if self.tree.openElements[-1].name == "option": self.tree.openElements.pop() if self.tree.openElements[-1].name == "optgroup": self.tree.openElements.pop() self.tree.insertElement(token) def startTagSelect(self, token): self.parser.parseError("unexpected-select-in-select") self.endTagSelect("select") def startTagInput(self, token): self.parser.parseError("unexpected-input-in-select") if self.tree.elementInScope("select", variant="table"): self.endTagSelect("select") self.parser.phase.processStartTag(token) def startTagOther(self, token): self.parser.parseError("unexpected-start-tag-in-select", {"name": token["name"]}) def endTagOption(self, token): if self.tree.openElements[-1].name == "option": self.tree.openElements.pop() else: self.parser.parseError("unexpected-end-tag-in-select", {"name": "option"}) def endTagOptgroup(self, token): # </optgroup> implicitly closes <option> if (self.tree.openElements[-1].name == "option" and self.tree.openElements[-2].name == "optgroup"): self.tree.openElements.pop() # It also closes </optgroup> if self.tree.openElements[-1].name == "optgroup": self.tree.openElements.pop() # But nothing else else: self.parser.parseError("unexpected-end-tag-in-select", {"name": "optgroup"}) def endTagSelect(self, token): if self.tree.elementInScope("select", variant="table"): node = self.tree.openElements.pop() while node.name != "select": node = self.tree.openElements.pop() self.parser.resetInsertionMode() else: # innerHTML case self.parser.parseError() def endTagTableElements(self, token): self.parser.parseError("unexpected-end-tag-in-select", {"name": token["name"]}) if self.tree.elementInScope(token["name"], variant="table"): self.endTagSelect("select") self.parser.phase.processEndTag(token) def endTagOther(self, token): self.parser.parseError("unexpected-end-tag-in-select", {"name": token["name"]}) class InSelectInTablePhase(Phase): def __init__(self, parser, tree): Phase.__init__(self, parser, tree) self.startTagHandler = utils.MethodDispatcher([ (("caption", "table", "tbody", "tfoot", "thead", "tr", "td", "th"), self.startTagTable) ]) self.startTagHandler.default = self.startTagOther self.endTagHandler = utils.MethodDispatcher([ (("caption", "table", "tbody", "tfoot", "thead", "tr", "td", "th"), self.endTagTable) ]) self.endTagHandler.default = self.endTagOther def processEOF(self): self.parser.phases["inSelect"].processEOF() def processCharacters(self, token): self.parser.phases["inSelect"].processCharacters(token) def startTagTable(self, token): self.parser.parseError("unexpected-table-element-start-tag-in-select-in-table", {"name": token["name"]}) self.endTagOther(impliedTagToken("select")) self.parser.phase.processStartTag(token) def startTagOther(self, token): self.parser.phases["inSelect"].processStartTag(token) def endTagTable(self, token): self.parser.parseError("unexpected-table-element-end-tag-in-select-in-table", {"name": token["name"]}) if self.tree.elementInScope(token["name"], variant="table"): self.endTagOther(impliedTagToken("select")) self.parser.phase.processEndTag(token) def endTagOther(self, token): self.parser.phases["inSelect"].processEndTag(token) class InForeignContentPhase(Phase): breakoutElements = frozenset(["b", "big", "blockquote", "body", "br", "center", "code", "dd", "div", "dl", "dt", "em", "embed", "font", "h1", "h2", "h3", "h4", "h5", "h6", "head", "hr", "i", "img", "li", "listing", "menu", "meta", "nobr", "ol", "p", "pre", "ruby", "s", "small", "span", "strong", "strike", "sub", "sup", "table", "tt", "u", "ul", "var"]) def __init__(self, parser, tree): Phase.__init__(self, parser, tree) def nonHTMLElementInScope(self): for element in self.tree.openElements[::-1]: if element.namespace == self.tree.defaultNamespace: return self.tree.elementInScope(element) assert False for item in self.tree.openElements[::-1]: if item.namespace == self.tree.defaultNamespace: return True elif item.nameTuple in scopingElements: return False return False def adjustSVGTagNames(self, token): replacements = {"altglyph":"altGlyph", "altglyphdef":"altGlyphDef", "altglyphitem":"altGlyphItem", "animatecolor":"animateColor", "animatemotion":"animateMotion", "animatetransform":"animateTransform", "clippath":"clipPath", "feblend":"feBlend", "fecolormatrix":"feColorMatrix", "fecomponenttransfer":"feComponentTransfer", "fecomposite":"feComposite", "feconvolvematrix":"feConvolveMatrix", "fediffuselighting":"feDiffuseLighting", "fedisplacementmap":"feDisplacementMap", "fedistantlight":"feDistantLight", "feflood":"feFlood", "fefunca":"feFuncA", "fefuncb":"feFuncB", "fefuncg":"feFuncG", "fefuncr":"feFuncR", "fegaussianblur":"feGaussianBlur", "feimage":"feImage", "femerge":"feMerge", "femergenode":"feMergeNode", "femorphology":"feMorphology", "feoffset":"feOffset", "fepointlight":"fePointLight", "fespecularlighting":"feSpecularLighting", "fespotlight":"feSpotLight", "fetile":"feTile", "feturbulence":"feTurbulence", "foreignobject":"foreignObject", "glyphref":"glyphRef", "lineargradient":"linearGradient", "radialgradient":"radialGradient", "textpath":"textPath"} if token["name"] in replacements: token["name"] = replacements[token["name"]] def processCharacters(self, token): self.parser.framesetOK = False Phase.processCharacters(self, token) def processEOF(self): pass def processStartTag(self, token): currentNode = self.tree.openElements[-1] if (currentNode.namespace == self.tree.defaultNamespace or (currentNode.namespace == namespaces["mathml"] and token["name"] not in frozenset(["mglyph", "malignmark"]) and currentNode.name in frozenset(["mi", "mo", "mn", "ms", "mtext"])) or (currentNode.namespace == namespaces["mathml"] and currentNode.name == "annotation-xml" and token["name"] == "svg") or (currentNode.namespace == namespaces["svg"] and currentNode.name in frozenset(["foreignObject", "desc", "title"]) )): assert self.parser.secondaryPhase != self self.parser.secondaryPhase.processStartTag(token) if self.parser.phase == self and self.nonHTMLElementInScope(): self.parser.phase = self.parser.secondaryPhase elif token["name"] in self.breakoutElements: self.parser.parseError("unexpected-html-element-in-foreign-content", token["name"]) while (self.tree.openElements[-1].namespace != self.tree.defaultNamespace): self.tree.openElements.pop() self.parser.phase = self.parser.secondaryPhase self.parser.phase.processStartTag(token) else: if currentNode.namespace == namespaces["mathml"]: self.parser.adjustMathMLAttributes(token) elif currentNode.namespace == namespaces["svg"]: self.adjustSVGTagNames(token) self.parser.adjustSVGAttributes(token) self.parser.adjustForeignAttributes(token) token["namespace"] = currentNode.namespace self.tree.insertElement(token) if token["selfClosing"]: self.tree.openElements.pop() token["selfClosingAcknowledged"] = True def processEndTag(self, token): self.adjustSVGTagNames(token) self.parser.secondaryPhase.processEndTag(token) if self.parser.phase == self and self.nonHTMLElementInScope(): self.parser.phase = self.parser.secondaryPhase class AfterBodyPhase(Phase): def __init__(self, parser, tree): Phase.__init__(self, parser, tree) self.startTagHandler = utils.MethodDispatcher([ ("html", self.startTagHtml) ]) self.startTagHandler.default = self.startTagOther self.endTagHandler = utils.MethodDispatcher([("html", self.endTagHtml)]) self.endTagHandler.default = self.endTagOther def processEOF(self): #Stop parsing pass def processComment(self, token): # This is needed because data is to be appended to the <html> element # here and not to whatever is currently open. self.tree.insertComment(token, self.tree.openElements[0]) def processCharacters(self, token): self.parser.parseError("unexpected-char-after-body") self.parser.phase = self.parser.phases["inBody"] self.parser.phase.processCharacters(token) def startTagHtml(self, token): self.parser.phases["inBody"].processStartTag(token) def startTagOther(self, token): self.parser.parseError("unexpected-start-tag-after-body", {"name": token["name"]}) self.parser.phase = self.parser.phases["inBody"] self.parser.phase.processStartTag(token) def endTagHtml(self,name): if self.parser.innerHTML: self.parser.parseError("unexpected-end-tag-after-body-innerhtml") else: self.parser.phase = self.parser.phases["afterAfterBody"] def endTagOther(self, token): self.parser.parseError("unexpected-end-tag-after-body", {"name": token["name"]}) self.parser.phase = self.parser.phases["inBody"] self.parser.phase.processEndTag(token) class InFramesetPhase(Phase): # http://www.whatwg.org/specs/web-apps/current-work/#in-frameset def __init__(self, parser, tree): Phase.__init__(self, parser, tree) self.startTagHandler = utils.MethodDispatcher([ ("html", self.startTagHtml), ("frameset", self.startTagFrameset), ("frame", self.startTagFrame), ("noframes", self.startTagNoframes) ]) self.startTagHandler.default = self.startTagOther self.endTagHandler = utils.MethodDispatcher([ ("frameset", self.endTagFrameset), ("noframes", self.endTagNoframes) ]) self.endTagHandler.default = self.endTagOther def processEOF(self): if self.tree.openElements[-1].name != "html": self.parser.parseError("eof-in-frameset") else: assert self.parser.innerHTML def processCharacters(self, token): self.parser.parseError("unexpected-char-in-frameset") def startTagFrameset(self, token): self.tree.insertElement(token) def startTagFrame(self, token): self.tree.insertElement(token) self.tree.openElements.pop() def startTagNoframes(self, token): self.parser.phases["inBody"].processStartTag(token) def startTagOther(self, token): self.parser.parseError("unexpected-start-tag-in-frameset", {"name": token["name"]}) def endTagFrameset(self, token): if self.tree.openElements[-1].name == "html": # innerHTML case self.parser.parseError("unexpected-frameset-in-frameset-innerhtml") else: self.tree.openElements.pop() if (not self.parser.innerHTML and self.tree.openElements[-1].name != "frameset"): # If we're not in innerHTML mode and the the current node is not a # "frameset" element (anymore) then switch. self.parser.phase = self.parser.phases["afterFrameset"] def endTagNoframes(self, token): self.parser.phases["inBody"].processEndTag(token) def endTagOther(self, token): self.parser.parseError("unexpected-end-tag-in-frameset", {"name": token["name"]}) class AfterFramesetPhase(Phase): # http://www.whatwg.org/specs/web-apps/current-work/#after3 def __init__(self, parser, tree): Phase.__init__(self, parser, tree) self.startTagHandler = utils.MethodDispatcher([ ("html", self.startTagHtml), ("noframes", self.startTagNoframes) ]) self.startTagHandler.default = self.startTagOther self.endTagHandler = utils.MethodDispatcher([ ("html", self.endTagHtml) ]) self.endTagHandler.default = self.endTagOther def processEOF(self): #Stop parsing pass def processCharacters(self, token): self.parser.parseError("unexpected-char-after-frameset") def startTagNoframes(self, token): self.parser.phases["inHead"].processStartTag(token) def startTagOther(self, token): self.parser.parseError("unexpected-start-tag-after-frameset", {"name": token["name"]}) def endTagHtml(self, token): self.parser.phase = self.parser.phases["afterAfterFrameset"] def endTagOther(self, token): self.parser.parseError("unexpected-end-tag-after-frameset", {"name": token["name"]}) class AfterAfterBodyPhase(Phase): def __init__(self, parser, tree): Phase.__init__(self, parser, tree) self.startTagHandler = utils.MethodDispatcher([ ("html", self.startTagHtml) ]) self.startTagHandler.default = self.startTagOther def processEOF(self): pass def processComment(self, token): self.tree.insertComment(token, self.tree.document) def processSpaceCharacters(self, token): self.parser.phases["inBody"].processSpaceCharacters(token) def processCharacters(self, token): self.parser.parseError("expected-eof-but-got-char") self.parser.phase = self.parser.phases["inBody"] self.parser.phase.processCharacters(token) def startTagHtml(self, token): self.parser.phases["inBody"].processStartTag(token) def startTagOther(self, token): self.parser.parseError("expected-eof-but-got-start-tag", {"name": token["name"]}) self.parser.phase = self.parser.phases["inBody"] self.parser.phase.processStartTag(token) def processEndTag(self, token): self.parser.parseError("expected-eof-but-got-end-tag", {"name": token["name"]}) self.parser.phase = self.parser.phases["inBody"] self.parser.phase.processEndTag(token) class AfterAfterFramesetPhase(Phase): def __init__(self, parser, tree): Phase.__init__(self, parser, tree) self.startTagHandler = utils.MethodDispatcher([ ("html", self.startTagHtml), ("noframes", self.startTagNoFrames) ]) self.startTagHandler.default = self.startTagOther def processEOF(self): pass def processComment(self, token): self.tree.insertComment(token, self.tree.document) def processSpaceCharacters(self, token): self.parser.phases["inBody"].processSpaceCharacters(token) def processCharacters(self, token): self.parser.parseError("expected-eof-but-got-char") self.parser.phase = self.parser.phases["inBody"] self.parser.phase.processCharacters(token) def startTagHtml(self, token): self.parser.phases["inBody"].processStartTag(token) def startTagNoFrames(self, token): self.parser.phases["inHead"].processStartTag(token) def startTagOther(self, token): self.parser.parseError("expected-eof-but-got-start-tag", {"name": token["name"]}) self.parser.phase = self.parser.phases["inBody"] self.parser.phase.processStartTag(token) def processEndTag(self, token): self.parser.parseError("expected-eof-but-got-end-tag", {"name": token["name"]}) self.parser.phase = self.parser.phases["inBody"] self.parser.phase.processEndTag(token) def impliedTagToken(name, type="EndTag", attributes = None, selfClosing = False): if attributes is None: attributes = {} return {"type":tokenTypes[type], "name":name, "data":attributes, "selfClosing":selfClosing} class ParseError(Exception): """Error in parsed document""" pass
mit
andrzej151/PSW
lab1/ASP.NET/Lista1/WebApplication8/WebApplication8/Site.Mobile.Master.designer.cs
1771
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ namespace WebApplication8 { public partial class Site_Mobile { /// <summary> /// HeadContent control. /// </summary> /// <remarks> /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// </remarks> protected global::System.Web.UI.WebControls.ContentPlaceHolder HeadContent; /// <summary> /// form1 control. /// </summary> /// <remarks> /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// </remarks> protected global::System.Web.UI.HtmlControls.HtmlForm form1; /// <summary> /// FeaturedContent control. /// </summary> /// <remarks> /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// </remarks> protected global::System.Web.UI.WebControls.ContentPlaceHolder FeaturedContent; /// <summary> /// MainContent control. /// </summary> /// <remarks> /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// </remarks> protected global::System.Web.UI.WebControls.ContentPlaceHolder MainContent; } }
mit
Tape-Worm/Gorgon
Gorgon/Gorgon.Renderers/Gorgon2D/Services/_Interfaces/IGorgonTextureAtlasService.cs
9802
#region MIT // // Gorgon. // Copyright (C) 2019 Michael Winsor // // 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 // 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. // // Created: May 2, 2019 9:11:18 AM // #endregion using System.Collections.Generic; using Gorgon.Graphics; using Gorgon.Graphics.Core; using DX = SharpDX; namespace Gorgon.Renderers.Services { /// <summary> /// A service used to generate a 2D texture atlas from a series of separate sprites. /// </summary> /// <remarks> /// <para> /// To get the best performance when rendering sprites, batching is essential. In order to achieve this, rendering sprites that use the same texture is necessary. This is where building a texture atlas /// comes in. A texture atlas is a combination of multiple sprite images into a single texture, each sprite that is embedded into the atlas uses a different set of texture coordinates. When rendering /// these sprites with the atlas, only a single texture change is required. /// </para> /// <para> /// When generating an atlas, a series of existing sprites, that reference different textures is fed to the service and each sprite's dimensions is fit into a texture region, with the image from the /// original sprite texture transferred and packed into the new atlas texture. Should the texture not have enough empty space for the sprites, array indices will be used to store the extra sprites. /// In the worst case, multiple textures will be generated. /// </para> /// </remarks> public interface IGorgonTextureAtlasService { #region Properties. /// <summary> /// Property to set or return the amount of padding, in pixels, to place around each sprite. /// </summary> int Padding { get; set; } /// <summary> /// Property to set or return the size of the texture to generate. /// </summary> /// <remarks> /// The maximum texture size is limited to the <see cref="IGorgonVideoAdapterInfo.MaxTextureWidth"/>, and <see cref="IGorgonVideoAdapterInfo.MaxTextureHeight"/> supported by the video adapter, and /// the minimum is 256x256. /// </remarks> DX.Size2 TextureSize { get; set; } /// <summary>Property to set or return the number of array indices available in the generated texture.</summary> /// <remarks> /// The maximum array indices is limited to the <see cref="IGorgonVideoAdapterInfo.MaxTextureArrayCount"/>, and the minimum is 1. /// </remarks> int ArrayCount { get; set; } /// <summary> /// Property to set or return the base name for the texture. /// </summary> string BaseTextureName { get; set; } #endregion #region Methods. /// <summary> /// Function to generate the textures and sprites for the texture atlas. /// </summary> /// <param name="regions">The texture(s), array index and region for each sprite.</param> /// <param name="textureFormat">The format for the resulting texture(s).</param> /// <returns>A <see cref="GorgonTextureAtlas"/> object containing the new texture(s) and sprites.</returns> /// <remarks> /// <para> /// Use this method to generate the final textures and sprites that comprise the texture atlas. All sprites returned are mapped to the new texture(s) and array indices. /// </para> /// <para> /// The <see cref="GorgonTextureAtlas"/> returned will return 1 or more textures that will comprise the atlas. The method will generate multiple textures if the sprites do not all fit within /// the <see cref="TextureSize"/> and <see cref="ArrayCount"/>. /// </para> /// <para> /// The <paramref name="regions"/> parameter is a list of non-atlased sprites and the associated texture index, texture region (in pixels), and the index on the texture array that the sprite will /// reside. This value can be retrieved by calling the <see cref="GetSpriteRegions(IEnumerable{GorgonSprite})"/> method. /// </para> /// <para> /// When passing the <paramref name="textureFormat"/>, the format should be compatible with render target formats. This can be determined by checking the /// <see cref="FormatSupportInfo.IsRenderTargetFormat"/> on the <see cref="GorgonGraphics"/>.<see cref="GorgonGraphics.FormatSupport"/> property. If the texture format is not supported as a /// render target texture, an exception will be thrown. /// </para> /// </remarks> /// <seealso cref="GetSpriteRegions(IEnumerable{GorgonSprite})"/> /// <seealso cref="GorgonTextureAtlas"/> GorgonTextureAtlas GenerateAtlas(IReadOnlyDictionary<GorgonSprite, (int textureIndex, DX.Rectangle region, int arrayIndex)> regions, BufferFormat textureFormat); /// <summary> /// Function to retrieve a list of all the regions occupied by the provided sprites on the texture. /// </summary> /// <param name="sprites">The list of sprites to evaluate.</param> /// <returns>A dictionary of sprites passed in, containing the region on the texture, and the array index for the sprite.</returns> /// <remarks> /// <para> /// This will return the new pixel coordinates and array index for each sprite on the texture atlas. The key values for the dictionary are the same sprite references passed in to the method. /// </para> /// <para> /// If all <paramref name="sprites"/> already share the same texture, then this method will return <b>false</b>, and method will return with the original sprite locations since they're already /// on an atlas. /// </para> /// <para> /// If a sprite in the <paramref name="sprites"/> list does not have an attached texture, then it will be ignored. /// </para> /// <para> /// If any of the <paramref name="sprites"/> cannot fit into the defined <see cref="TextureSize"/>, and <see cref="ArrayCount"/>, or there are no sprites in the <paramref name="sprites"/> /// parameter, then this method will return an empty dictionary. To determine the best sizing, use the <see cref="GetBestFit"/> method. /// </para> /// <para> /// The values of the dictionary contain the index of the texture (this could be greater than 0 if more than one texture is required), the pixel coordinates of the sprite on the atlas, and the /// texture array index where the sprite will be placed. /// </para> /// </remarks> /// <seealso cref="GetBestFit"/> IReadOnlyDictionary<GorgonSprite, (int textureIndex, DX.Rectangle region, int arrayIndex)> GetSpriteRegions(IEnumerable<GorgonSprite> sprites); /// <summary> /// Function to determine the best texture size and array count for the texture atlas based on the sprites passed in. /// </summary> /// <param name="sprites">The sprites to evaluate.</param> /// <param name="minTextureSize">The minimum size for the texture.</param> /// <param name="minArrayCount">The minimum array count for the texture.</param> /// <returns>A tuple containing the texture size, and array count.</returns> /// <remarks> /// <para> /// This will calculate how large the resulting atlas will be, and how many texture indices it will contain for the given <paramref name="sprites"/>. /// </para> /// <para> /// The <paramref name="minTextureSize"/>, and <paramref name="minArrayCount"/> are used to limit the size of the texture and array count to a value that is no smaller than these parameters. /// </para> /// <para> /// If a sprite in the <paramref name="sprites"/> list does not have an attached texture, it will be ignored when calculating the size and will have no impact on the final result. /// </para> /// <para> /// If the <paramref name="sprites"/> cannot all fit into the texture atlas because it would exceed the maximum width and height of a texture for the video adapter, then this /// value return 0x0 for the width and height, and 0 for the array count. If the array count maximum for the video card is exceeded, then the maximum width and height will be returned, but /// the array count will be 0. /// </para> /// </remarks> (DX.Size2 textureSize, int arrayCount) GetBestFit(IEnumerable<GorgonSprite> sprites, DX.Size2 minTextureSize, int minArrayCount); #endregion } }
mit
Kynarth/pyqtcli
pyqtcli/test/qrc.py
2809
import os from lxml import etree from functools import wraps from pyqtcli.qrc import QRCFile class GenerativeBase: def _generate(self): s = self.__class__.__new__(self.__class__) s.__dict__ = self.__dict__.copy() return s def chain(func): @wraps(func) def decorator(self, *args, **kw): self = self._generate() func(self, *args, **kw) return self return decorator class QRCTestFile(QRCFile, GenerativeBase): """Generate a qrc file for tests with false resource directories and files. Attributes: name (str): File name of the new qrc file. Qrc extension is automatically added. path (Optional[str]): Absolute ath to new qrc file. _last_qresource (:class:`etree.Element`): Last qresource created. Example: >>>( ... QRCTestFile("test") ... .add_qresource("/") ... .add_file("test.txt") ... .add_file("test1.txt") ... .add_qresource("/images") ... .add_file("img.png") ... .build() ...) """ def __init__(self, name, path="."): super(QRCTestFile, self).__init__(name, path) self._last_qresource = None @chain def add_qresource(self, prefix="/", folder=None): """Create to the qresource subelement. Args: prefix (str[optional]): Prefix attribute like => "/" for qresource element. """ super().add_qresource(prefix) self._last_qresource = self._qresources[-1] @chain def add_file(self, resource, prefix=None): """ Add a file to the last added qresource and create its file in a dir corresponding to the qresource's prefix attribute. Args: resource (str): Path to the resource. prefix (Optional[str]: Prefix attribute like => "/" for qresource. """ # Add the resource to qresource element corresponding to prefix or # the last prefix used if prefix: qresource = self.get_qresource(prefix) etree.SubElement(qresource, "file",).text = resource else: etree.SubElement(self._last_qresource, "file",).text = resource # Create directories of the resource if not exists dir_name = os.path.join( os.path.split(self.path)[0], os.path.split(resource)[0] ) if not os.path.isdir(dir_name): os.makedirs(dir_name) resource = os.path.join(os.path.split(self.path)[0], resource) if not os.path.isfile(resource): open(resource, 'a').close() @chain def build(self): """Generate qrc file in function with path and name attributes.""" super().build()
mit
uppsaladatavetare/foobar-api
src/wallet/migrations/0011_auto_20170308_2258.py
1410
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-03-08 22:58 from __future__ import unicode_literals from decimal import Decimal from django.db import migrations, models import djmoney.models.fields import enumfields.fields import wallet.enums import enum class TrxType(enum.Enum): FINALIZED = 0 PENDING = 1 CANCELLATION = 2 class Migration(migrations.Migration): dependencies = [ ('wallet', '0010_auto_20170218_2322'), ] operations = [ migrations.AlterModelOptions( name='wallettransaction', options={'verbose_name': 'transaction', 'verbose_name_plural': 'transactions'}, ), migrations.AlterField( model_name='wallettransaction', name='amount', field=djmoney.models.fields.MoneyField(decimal_places=2, default=Decimal('0.0'), help_text='Positive amount to deposit money. Negative amount to withdraw money.', max_digits=10), ), migrations.AlterField( model_name='wallettransaction', name='date_created', field=models.DateTimeField(auto_now_add=True, null=True, verbose_name='date created'), ), migrations.AlterField( model_name='wallettransaction', name='trx_type', field=enumfields.fields.EnumIntegerField(default=0, enum=TrxType, verbose_name='type'), ), ]
mit
kennethlombardi/moai-graphics
engine/resources/userData/userData.lua
462
deserialize ({ {--Entry Number: {1} ["SHOW_TEMPLE"]="TRUE", ["BVAlgorithm"]="SphereCentroid", ["SHOW_BUNNY"]="FALSE", ["SHOW_LINE_GRID"]="TRUE", ["BVHAlgorithm"]="TopDown", ["SHOW_BSP_TREE"]="TRUE", ["MIN_FACES"]=300, ["SHOW_SPLIT_FACES"]="FALSE", ["highScore"]=145234.50653438, ["SHOW_DRAGON"]="FALSE", ["SHOW_LUCY"]="FALSE", ["SHOW_HAPPY"]="FALSE", ["SHOW_DEBUG_LINES"]="FALSE", ["SHOW_OCTREE"]="FALSE", }, })
mit
signumsoftware/framework
Signum.React/JsonModelValidators/DefaultCollectionValidationStrategy.cs
4540
using Microsoft.AspNetCore.Mvc.ModelBinding; using Microsoft.AspNetCore.Mvc.ModelBinding.Validation; using System.Collections; using System.Collections.Concurrent; namespace Signum.React.JsonModelValidators; /// <summary> /// The default implementation of <see cref="IValidationStrategy"/> for a collection. /// </summary> /// <remarks> /// This implementation handles cases like: /// <example> /// Model: IList&lt;Student&gt; /// Query String: ?students[0].Age=8&amp;students[1].Age=9 /// /// In this case the elements of the collection are identified in the input data set by an incrementing /// integer index. /// </example> /// /// or: /// /// <example> /// Model: IDictionary&lt;string, int&gt; /// Query String: ?students[0].Key=Joey&amp;students[0].Value=8 /// /// In this case the dictionary is treated as a collection of key-value pairs, and the elements of the /// collection are identified in the input data set by an incrementing integer index. /// </example> /// /// Using this key format, the enumerator enumerates model objects of type matching /// <see cref="ModelMetadata.ElementMetadata"/>. The indices of the elements in the collection are used to /// compute the model prefix keys. /// </remarks> internal class DefaultCollectionValidationStrategy : IValidationStrategy { private static readonly MethodInfo _getEnumerator = typeof(DefaultCollectionValidationStrategy) .GetMethod(nameof(GetEnumerator), BindingFlags.Static | BindingFlags.NonPublic)!; /// <summary> /// Gets an instance of <see cref="DefaultCollectionValidationStrategy"/>. /// </summary> public static readonly DefaultCollectionValidationStrategy Instance = new DefaultCollectionValidationStrategy(); private readonly ConcurrentDictionary<Type, Func<object, IEnumerator>> _genericGetEnumeratorCache = new ConcurrentDictionary<Type, Func<object, IEnumerator>>(); private DefaultCollectionValidationStrategy() { } /// <inheritdoc /> public IEnumerator<ValidationEntry> GetChildren( ModelMetadata metadata, string key, object model) { var enumerator = GetEnumeratorForElementType(metadata, model); return new Enumerator(metadata.ElementMetadata!, key, enumerator); } public IEnumerator GetEnumeratorForElementType(ModelMetadata metadata, object model) { Func<object, IEnumerator> getEnumerator = _genericGetEnumeratorCache.GetOrAdd( key: metadata.ElementType!, valueFactory: (type) => { var getEnumeratorMethod = _getEnumerator.MakeGenericMethod(type); var parameter = Expression.Parameter(typeof(object), "model"); var expression = Expression.Lambda<Func<object, IEnumerator>>( Expression.Call(null, getEnumeratorMethod, parameter), parameter); return expression.Compile(); }); return getEnumerator(model); } // Called via reflection. private static IEnumerator GetEnumerator<T>(object model) { return (model as IEnumerable<T>)?.GetEnumerator() ?? ((IEnumerable)model).GetEnumerator(); } private class Enumerator : IEnumerator<ValidationEntry> { private readonly string _key; private readonly ModelMetadata _metadata; private readonly IEnumerator _enumerator; private ValidationEntry _entry; private int _index; public Enumerator( ModelMetadata metadata, string key, IEnumerator enumerator) { _metadata = metadata; _key = key; _enumerator = enumerator; _index = -1; } public ValidationEntry Current => _entry; object IEnumerator.Current => Current; public bool MoveNext() { _index++; if (!_enumerator.MoveNext()) { return false; } var key = ModelNames.CreateIndexModelName(_key, _index); var model = _enumerator.Current; _entry = new ValidationEntry(_metadata, key, model); return true; } public void Dispose() { } public void Reset() { _enumerator.Reset(); } } }
mit
rmosolgo/react-rails-hot-loader
lib/react-rails-hot-loader.rb
199
require 'react-rails' require 'hot_loader' require 'hot_loader/asset_change_set' require 'hot_loader/asset_path' require 'hot_loader/server' require 'hot_loader/railtie' require 'hot_loader/version'
mit
hansacoin/hansacoin
src/qt/locale - Copy/bitcoin_bg.ts
116940
<?xml version="1.0" ?><!DOCTYPE TS><TS language="bg" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About ShadowCoin</source> <translation type="unfinished"/> </message> <message> <location line="+39"/> <source>&lt;b&gt;ShadowCoin&lt;/b&gt; version</source> <translation type="unfinished"/> </message> <message> <location line="+41"/> <source>Copyright © 2009-2014 The Bitcoin developers Copyright © 2012-2014 The NovaCoin developers Copyright © 2014 The BlackCoin developers Copyright © 2014 The ShadowCoin 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> Това е експериментален софтуер. Разпространява се под MIT/X11 софтуерен лиценз, виж COPYING или http://www.opensource.org/licenses/mit-license.php. Използван е софтуер, разработен от OpenSSL Project за употреба в OpenSSL Toolkit (http://www.openssl.org/), криптографски софтуер разработен от Eric Young (eay@cryptsoft.com) и UPnP софтуер разработен от Thomas Bernard.</translation> </message> </context> <context> <name>AddressBookPage</name> <message> <location filename="../forms/addressbookpage.ui" line="+14"/> <source>Address Book</source> <translation type="unfinished"/> </message> <message> <location line="+22"/> <source>Double-click to edit address or label</source> <translation>Двоен клик за редакция на адрес или име</translation> </message> <message> <location line="+27"/> <source>Create a new address</source> <translation>Създаване на нов адрес</translation> </message> <message> <location line="+14"/> <source>Copy the currently selected address to the system clipboard</source> <translation>Копирай избрания адрес</translation> </message> <message> <location line="-11"/> <source>&amp;New Address</source> <translation type="unfinished"/> </message> <message> <location line="-46"/> <source>These are your ShadowCoin addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you.</source> <translation type="unfinished"/> </message> <message> <location line="+60"/> <source>&amp;Copy Address</source> <translation>&amp;Копирай</translation> </message> <message> <location line="+11"/> <source>Show &amp;QR Code</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Sign a message to prove you own a ShadowCoin address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Sign &amp;Message</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>Delete the currently selected address from the list</source> <translation>Изтрий избрания адрес от списъка</translation> </message> <message> <location line="-14"/> <source>Verify a message to ensure it was signed with a specified ShadowCoin address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Verify Message</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>&amp;Delete</source> <translation>&amp;Изтрий</translation> </message> <message> <location filename="../addressbookpage.cpp" line="+65"/> <source>Copy &amp;Label</source> <translation>Копирай &amp;име</translation> </message> <message> <location line="+2"/> <source>&amp;Edit</source> <translation>&amp;Редактирай</translation> </message> <message> <location line="+250"/> <source>Export Address Book Data</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation>CSV файл (*.csv)</translation> </message> <message> <location line="+13"/> <source>Error exporting</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation type="unfinished"/> </message> </context> <context> <name>AddressTableModel</name> <message> <location filename="../addresstablemodel.cpp" line="+144"/> <source>Label</source> <translation>Име</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>Адрес</translation> </message> <message> <location line="+36"/> <source>(no label)</source> <translation>(без име)</translation> </message> </context> <context> <name>AskPassphraseDialog</name> <message> <location filename="../forms/askpassphrasedialog.ui" line="+26"/> <source>Passphrase Dialog</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>Enter passphrase</source> <translation>Въведи парола</translation> </message> <message> <location line="+14"/> <source>New passphrase</source> <translation>Нова парола</translation> </message> <message> <location line="+14"/> <source>Repeat new passphrase</source> <translation>Още веднъж</translation> </message> <message> <location line="+33"/> <source>Serves to disable the trivial sendmoney when OS account compromised. Provides no real security.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>For staking only</source> <translation type="unfinished"/> </message> <message> <location filename="../askpassphrasedialog.cpp" line="+35"/> <source>Enter the new passphrase to the wallet.&lt;br/&gt;Please use a passphrase of &lt;b&gt;10 or more random characters&lt;/b&gt;, or &lt;b&gt;eight or more words&lt;/b&gt;.</source> <translation>Въведете нова парола за портфейла.&lt;br/&gt;Моля използвайте &lt;b&gt;поне 10 случайни символа&lt;/b&gt; или &lt;b&gt;8 или повече думи&lt;/b&gt;.</translation> </message> <message> <location line="+1"/> <source>Encrypt wallet</source> <translation>Криптиране на портфейла</translation> </message> <message> <location line="+7"/> <source>This operation needs your wallet passphrase to unlock the wallet.</source> <translation>Тази операция изисква Вашата парола за отключване на портфейла.</translation> </message> <message> <location line="+5"/> <source>Unlock wallet</source> <translation>Отключване на портфейла</translation> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to decrypt the wallet.</source> <translation>Тази операция изисква Вашата парола за декриптиране на портфейла.</translation> </message> <message> <location line="+5"/> <source>Decrypt wallet</source> <translation>Декриптиране на портфейла</translation> </message> <message> <location line="+3"/> <source>Change passphrase</source> <translation>Смяна на паролата</translation> </message> <message> <location line="+1"/> <source>Enter the old and new passphrase to the wallet.</source> <translation>Въведете текущата и новата парола за портфейла.</translation> </message> <message> <location line="+46"/> <source>Confirm wallet encryption</source> <translation>Потвърждаване на криптирането</translation> </message> <message> <location line="+1"/> <source>Warning: If you encrypt your wallet and lose your passphrase, you will &lt;b&gt;LOSE ALL OF YOUR COINS&lt;/b&gt;!</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Are you sure you wish to encrypt your wallet?</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source> <translation type="unfinished"/> </message> <message> <location line="+103"/> <location line="+24"/> <source>Warning: The Caps Lock key is on!</source> <translation type="unfinished"/> </message> <message> <location line="-133"/> <location line="+60"/> <source>Wallet encrypted</source> <translation>Портфейлът е криптиран</translation> </message> <message> <location line="-58"/> <source>ShadowCoin will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your coins from being stolen by malware infecting your computer.</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <location line="+7"/> <location line="+44"/> <location line="+6"/> <source>Wallet encryption failed</source> <translation>Криптирането беше неуспешно</translation> </message> <message> <location line="-56"/> <source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source> <translation>Криптирането на портфейла беше неуспешно поради неизвестен проблем. Портфейлът не е криптиран.</translation> </message> <message> <location line="+7"/> <location line="+50"/> <source>The supplied passphrases do not match.</source> <translation>Паролите не съвпадат</translation> </message> <message> <location line="-38"/> <source>Wallet unlock failed</source> <translation>Отключването беше неуспешно</translation> </message> <message> <location line="+1"/> <location line="+12"/> <location line="+19"/> <source>The passphrase entered for the wallet decryption was incorrect.</source> <translation>Паролата въведена за декриптиране на портфейла е грешна.</translation> </message> <message> <location line="-20"/> <source>Wallet decryption failed</source> <translation>Декриптирането беше неуспешно</translation> </message> <message> <location line="+14"/> <source>Wallet passphrase was successfully changed.</source> <translation>Паролата на портфейла беше променена успешно.</translation> </message> </context> <context> <name>BitcoinGUI</name> <message> <location filename="../bitcoingui.cpp" line="+280"/> <source>Sign &amp;message...</source> <translation>Подписване на &amp;съобщение...</translation> </message> <message> <location line="+242"/> <source>Synchronizing with network...</source> <translation>Синхронизиране с мрежата...</translation> </message> <message> <location line="-308"/> <source>&amp;Overview</source> <translation>&amp;Баланс</translation> </message> <message> <location line="+1"/> <source>Show general overview of wallet</source> <translation>Обобщена информация за портфейла</translation> </message> <message> <location line="+17"/> <source>&amp;Transactions</source> <translation>&amp;Транзакции</translation> </message> <message> <location line="+1"/> <source>Browse transaction history</source> <translation>История на транзакциите</translation> </message> <message> <location line="+5"/> <source>&amp;Address Book</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Edit the list of stored addresses and labels</source> <translation type="unfinished"/> </message> <message> <location line="-13"/> <source>&amp;Receive coins</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show the list of addresses for receiving payments</source> <translation type="unfinished"/> </message> <message> <location line="-7"/> <source>&amp;Send coins</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>E&amp;xit</source> <translation>Из&amp;ход</translation> </message> <message> <location line="+1"/> <source>Quit application</source> <translation>Изход от приложението</translation> </message> <message> <location line="+4"/> <source>Show information about ShadowCoin</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>About &amp;Qt</source> <translation>За &amp;Qt</translation> </message> <message> <location line="+1"/> <source>Show information about Qt</source> <translation>Покажи информация за Qt</translation> </message> <message> <location line="+2"/> <source>&amp;Options...</source> <translation>&amp;Опции...</translation> </message> <message> <location line="+4"/> <source>&amp;Encrypt Wallet...</source> <translation>&amp;Криптиране на портфейла...</translation> </message> <message> <location line="+3"/> <source>&amp;Backup Wallet...</source> <translation>&amp;Запазване на портфейла...</translation> </message> <message> <location line="+2"/> <source>&amp;Change Passphrase...</source> <translation>&amp;Смяна на паролата...</translation> </message> <message numerus="yes"> <location line="+250"/> <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="-247"/> <source>&amp;Export...</source> <translation type="unfinished"/> </message> <message> <location line="-62"/> <source>Send coins to a ShadowCoin address</source> <translation type="unfinished"/> </message> <message> <location line="+45"/> <source>Modify configuration options for ShadowCoin</source> <translation type="unfinished"/> </message> <message> <location line="+18"/> <source>Export the data in the current tab to a file</source> <translation type="unfinished"/> </message> <message> <location line="-14"/> <source>Encrypt or decrypt wallet</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Backup wallet to another location</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Change the passphrase used for wallet encryption</source> <translation>Променя паролата за портфейла</translation> </message> <message> <location line="+10"/> <source>&amp;Debug window</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Open debugging and diagnostic console</source> <translation type="unfinished"/> </message> <message> <location line="-5"/> <source>&amp;Verify message...</source> <translation>&amp;Проверка на съобщение...</translation> </message> <message> <location line="-200"/> <source>ShadowCoin</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Wallet</source> <translation>Портфейл</translation> </message> <message> <location line="+178"/> <source>&amp;About ShadowCoin</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>&amp;Show / Hide</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>Unlock wallet</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>&amp;Lock Wallet</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Lock wallet</source> <translation type="unfinished"/> </message> <message> <location line="+34"/> <source>&amp;File</source> <translation>&amp;Файл</translation> </message> <message> <location line="+8"/> <source>&amp;Settings</source> <translation>&amp;Настройки</translation> </message> <message> <location line="+8"/> <source>&amp;Help</source> <translation>&amp;Помощ</translation> </message> <message> <location line="+9"/> <source>Tabs toolbar</source> <translation>Раздели</translation> </message> <message> <location line="+8"/> <source>Actions toolbar</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <location line="+9"/> <source>[testnet]</source> <translation>[testnet]</translation> </message> <message> <location line="+0"/> <location line="+60"/> <source>ShadowCoin client</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+70"/> <source>%n active connection(s) to ShadowCoin network</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+40"/> <source>Downloaded %1 blocks of transaction history.</source> <translation type="unfinished"/> </message> <message> <location line="+413"/> <source>Staking.&lt;br&gt;Your weight is %1&lt;br&gt;Network weight is %2&lt;br&gt;Expected time to earn reward is %3</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Not staking because wallet is locked</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Not staking because wallet is offline</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Not staking because wallet is syncing</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Not staking because you don&apos;t have mature coins</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="-403"/> <source>%n second(s) ago</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="-284"/> <source>&amp;Unlock Wallet...</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+288"/> <source>%n minute(s) ago</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n hour(s) ago</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n day(s) ago</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+6"/> <source>Up to date</source> <translation>Синхронизиран</translation> </message> <message> <location line="+7"/> <source>Catching up...</source> <translation>Зарежда блокове...</translation> </message> <message> <location line="+10"/> <source>Last received block was generated %1.</source> <translation type="unfinished"/> </message> <message> <location line="+59"/> <source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Confirm transaction fee</source> <translation type="unfinished"/> </message> <message> <location line="+27"/> <source>Sent transaction</source> <translation>Изходяща транзакция</translation> </message> <message> <location line="+1"/> <source>Incoming transaction</source> <translation>Входяща транзакция</translation> </message> <message> <location line="+1"/> <source>Date: %1 Amount: %2 Type: %3 Address: %4 </source> <translation type="unfinished"/> </message> <message> <location line="+100"/> <location line="+15"/> <source>URI handling</source> <translation type="unfinished"/> </message> <message> <location line="-15"/> <location line="+15"/> <source>URI can not be parsed! This can be caused by an invalid ShadowCoin address or malformed URI parameters.</source> <translation type="unfinished"/> </message> <message> <location line="+18"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;unlocked&lt;/b&gt;</source> <translation>Портфейлът е &lt;b&gt;криптиран&lt;/b&gt; и &lt;b&gt;отключен&lt;/b&gt;</translation> </message> <message> <location line="+10"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;locked&lt;/b&gt;</source> <translation>Портфейлът е &lt;b&gt;криптиран&lt;/b&gt; и &lt;b&gt;заключен&lt;/b&gt;</translation> </message> <message> <location line="+25"/> <source>Backup Wallet</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Wallet Data (*.dat)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Backup Failed</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>There was an error trying to save the wallet data to the new location.</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+76"/> <source>%n second(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n minute(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n hour(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n day(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+18"/> <source>Not staking</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoin.cpp" line="+109"/> <source>A fatal error occurred. ShadowCoin can no longer continue safely and will quit.</source> <translation type="unfinished"/> </message> </context> <context> <name>ClientModel</name> <message> <location filename="../clientmodel.cpp" line="+90"/> <source>Network Alert</source> <translation type="unfinished"/> </message> </context> <context> <name>CoinControlDialog</name> <message> <location filename="../forms/coincontroldialog.ui" line="+14"/> <source>Coin Control</source> <translation type="unfinished"/> </message> <message> <location line="+31"/> <source>Quantity:</source> <translation type="unfinished"/> </message> <message> <location line="+32"/> <source>Bytes:</source> <translation type="unfinished"/> </message> <message> <location line="+48"/> <source>Amount:</source> <translation>Сума:</translation> </message> <message> <location line="+32"/> <source>Priority:</source> <translation type="unfinished"/> </message> <message> <location line="+48"/> <source>Fee:</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>Low Output:</source> <translation type="unfinished"/> </message> <message> <location filename="../coincontroldialog.cpp" line="+551"/> <source>no</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/coincontroldialog.ui" line="+51"/> <source>After Fee:</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>Change:</source> <translation type="unfinished"/> </message> <message> <location line="+69"/> <source>(un)select all</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Tree mode</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>List mode</source> <translation type="unfinished"/> </message> <message> <location line="+45"/> <source>Amount</source> <translation>Сума</translation> </message> <message> <location line="+5"/> <source>Label</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Address</source> <translation>Адрес</translation> </message> <message> <location line="+5"/> <source>Date</source> <translation>Дата</translation> </message> <message> <location line="+5"/> <source>Confirmations</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Confirmed</source> <translation>Потвърдени</translation> </message> <message> <location line="+5"/> <source>Priority</source> <translation type="unfinished"/> </message> <message> <location filename="../coincontroldialog.cpp" line="-515"/> <source>Copy address</source> <translation>Копирай адрес</translation> </message> <message> <location line="+1"/> <source>Copy label</source> <translation>Копирай име</translation> </message> <message> <location line="+1"/> <location line="+26"/> <source>Copy amount</source> <translation>Копирай сума</translation> </message> <message> <location line="-25"/> <source>Copy transaction ID</source> <translation type="unfinished"/> </message> <message> <location line="+24"/> <source>Copy quantity</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Copy fee</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy after fee</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy bytes</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy priority</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy low output</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy change</source> <translation type="unfinished"/> </message> <message> <location line="+317"/> <source>highest</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>high</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>medium-high</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>medium</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>low-medium</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>low</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>lowest</source> <translation type="unfinished"/> </message> <message> <location line="+155"/> <source>DUST</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>yes</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>This label turns red, if the transaction size is bigger than 10000 bytes. This means a fee of at least %1 per kb is required. Can vary +/- 1 Byte per input.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Transactions with higher priority get more likely into a block. This label turns red, if the priority is smaller than &quot;medium&quot;. This means a fee of at least %1 per kb is required.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>This label turns red, if any recipient receives an amount smaller than %1. This means a fee of at least %2 is required. Amounts below 0.546 times the minimum relay fee are shown as DUST.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>This label turns red, if the change is smaller than %1. This means a fee of at least %2 is required.</source> <translation type="unfinished"/> </message> <message> <location line="+37"/> <location line="+66"/> <source>(no label)</source> <translation>(без име)</translation> </message> <message> <location line="-9"/> <source>change from %1 (%2)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>(change)</source> <translation type="unfinished"/> </message> </context> <context> <name>EditAddressDialog</name> <message> <location filename="../forms/editaddressdialog.ui" line="+14"/> <source>Edit Address</source> <translation>Редактиране на адрес</translation> </message> <message> <location line="+11"/> <source>&amp;Label</source> <translation>&amp;Име</translation> </message> <message> <location line="+10"/> <source>The label associated with this address book entry</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>&amp;Address</source> <translation>&amp;Адрес</translation> </message> <message> <location line="+10"/> <source>The address associated with this address book entry. This can only be modified for sending addresses.</source> <translation type="unfinished"/> </message> <message> <location filename="../editaddressdialog.cpp" line="+20"/> <source>New receiving address</source> <translation>Нов адрес за получаване</translation> </message> <message> <location line="+4"/> <source>New sending address</source> <translation>Нов адрес за изпращане</translation> </message> <message> <location line="+3"/> <source>Edit receiving address</source> <translation>Редактиране на входящ адрес</translation> </message> <message> <location line="+4"/> <source>Edit sending address</source> <translation>Редактиране на изходящ адрес</translation> </message> <message> <location line="+76"/> <source>The entered address &quot;%1&quot; is already in the address book.</source> <translation>Вече има адрес &quot;%1&quot; в списъка с адреси.</translation> </message> <message> <location line="-5"/> <source>The entered address &quot;%1&quot; is not a valid ShadowCoin address.</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Could not unlock wallet.</source> <translation>Отключването на портфейла беше неуспешно.</translation> </message> <message> <location line="+5"/> <source>New key generation failed.</source> <translation>Създаването на ключ беше неуспешно.</translation> </message> </context> <context> <name>GUIUtil::HelpMessageBox</name> <message> <location filename="../guiutil.cpp" line="+420"/> <location line="+12"/> <source>ShadowCoin-Qt</source> <translation type="unfinished"/> </message> <message> <location line="-12"/> <source>version</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Usage:</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>command-line options</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>UI options</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Set language, for example &quot;de_DE&quot; (default: system locale)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Start minimized</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show splash screen on startup (default: 1)</source> <translation type="unfinished"/> </message> </context> <context> <name>OptionsDialog</name> <message> <location filename="../forms/optionsdialog.ui" line="+14"/> <source>Options</source> <translation>Опции</translation> </message> <message> <location line="+16"/> <source>&amp;Main</source> <translation>&amp;Основни</translation> </message> <message> <location line="+6"/> <source>Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB. Fee 0.01 recommended.</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>Pay transaction &amp;fee</source> <translation>&amp;Такса за изходяща транзакция</translation> </message> <message> <location line="+31"/> <source>Reserved amount does not participate in staking and is therefore spendable at any time.</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>Reserve</source> <translation type="unfinished"/> </message> <message> <location line="+31"/> <source>Automatically start ShadowCoin after logging in to the system.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Start ShadowCoin on system login</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Detach block and address databases at shutdown. This means they can be moved to another data directory, but it slows down shutdown. The wallet is always detached.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Detach databases at shutdown</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>&amp;Network</source> <translation>&amp;Мрежа</translation> </message> <message> <location line="+6"/> <source>Automatically open the ShadowCoin client port on the router. This only works when your router supports UPnP and it is enabled.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Map port using &amp;UPnP</source> <translation>Отваряне на входящия порт чрез &amp;UPnP</translation> </message> <message> <location line="+7"/> <source>Connect to the ShadowCoin network through a SOCKS proxy (e.g. when connecting through Tor).</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Connect through SOCKS proxy:</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>Proxy &amp;IP:</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>IP address of the proxy (e.g. 127.0.0.1)</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>&amp;Port:</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>Port of the proxy (e.g. 9050)</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>SOCKS &amp;Version:</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>SOCKS version of the proxy (e.g. 5)</source> <translation type="unfinished"/> </message> <message> <location line="+36"/> <source>&amp;Window</source> <translation>&amp;Прозорец</translation> </message> <message> <location line="+6"/> <source>Show only a tray icon after minimizing the window.</source> <translation>След минимизиране ще е видима само иконата в системния трей.</translation> </message> <message> <location line="+3"/> <source>&amp;Minimize to the tray instead of the taskbar</source> <translation>&amp;Минимизиране в системния трей</translation> </message> <message> <location line="+7"/> <source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source> <translation>При затваряне на прозореца приложението остава минимизирано. Ако изберете тази опция, приложението може да се затвори само чрез Изход в менюто.</translation> </message> <message> <location line="+3"/> <source>M&amp;inimize on close</source> <translation>М&amp;инимизиране при затваряне</translation> </message> <message> <location line="+21"/> <source>&amp;Display</source> <translation>&amp;Интерфейс</translation> </message> <message> <location line="+8"/> <source>User Interface &amp;language:</source> <translation>Език:</translation> </message> <message> <location line="+13"/> <source>The user interface language can be set here. This setting will take effect after restarting ShadowCoin.</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>&amp;Unit to show amounts in:</source> <translation>Мерни единици:</translation> </message> <message> <location line="+13"/> <source>Choose the default subdivision unit to show in the interface and when sending coins.</source> <translation>Изберете единиците, показвани по подразбиране в интерфейса.</translation> </message> <message> <location line="+9"/> <source>Whether to show ShadowCoin addresses in the transaction list or not.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Display addresses in transaction list</source> <translation>Показвай и адресите в списъка с транзакции</translation> </message> <message> <location line="+7"/> <source>Whether to show coin control features or not.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Display coin &amp;control features (experts only!)</source> <translation type="unfinished"/> </message> <message> <location line="+71"/> <source>&amp;OK</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>&amp;Cancel</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>&amp;Apply</source> <translation type="unfinished"/> </message> <message> <location filename="../optionsdialog.cpp" line="+55"/> <source>default</source> <translation type="unfinished"/> </message> <message> <location line="+149"/> <location line="+9"/> <source>Warning</source> <translation type="unfinished"/> </message> <message> <location line="-9"/> <location line="+9"/> <source>This setting will take effect after restarting ShadowCoin.</source> <translation type="unfinished"/> </message> <message> <location line="+29"/> <source>The supplied proxy address is invalid.</source> <translation>Прокси адресът е невалиден.</translation> </message> </context> <context> <name>OverviewPage</name> <message> <location filename="../forms/overviewpage.ui" line="+14"/> <source>Form</source> <translation>Форма</translation> </message> <message> <location line="+33"/> <location line="+231"/> <source>The displayed information may be out of date. Your wallet automatically synchronizes with the ShadowCoin network after a connection is established, but this process has not completed yet.</source> <translation type="unfinished"/> </message> <message> <location line="-160"/> <source>Stake:</source> <translation type="unfinished"/> </message> <message> <location line="+29"/> <source>Unconfirmed:</source> <translation type="unfinished"/> </message> <message> <location line="-107"/> <source>Wallet</source> <translation>Портфейл</translation> </message> <message> <location line="+49"/> <source>Spendable:</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Your current spendable balance</source> <translation type="unfinished"/> </message> <message> <location line="+71"/> <source>Immature:</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Mined balance that has not yet matured</source> <translation type="unfinished"/> </message> <message> <location line="+20"/> <source>Total:</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Your current total balance</source> <translation type="unfinished"/> </message> <message> <location line="+46"/> <source>&lt;b&gt;Recent transactions&lt;/b&gt;</source> <translation>&lt;b&gt;Последни транзакции&lt;/b&gt;</translation> </message> <message> <location line="-108"/> <source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source> <translation type="unfinished"/> </message> <message> <location line="-29"/> <source>Total of coins that was staked, and do not yet count toward the current balance</source> <translation type="unfinished"/> </message> <message> <location filename="../overviewpage.cpp" line="+113"/> <location line="+1"/> <source>out of sync</source> <translation>несинхронизиран</translation> </message> </context> <context> <name>QRCodeDialog</name> <message> <location filename="../forms/qrcodedialog.ui" line="+14"/> <source>QR Code Dialog</source> <translation type="unfinished"/> </message> <message> <location line="+59"/> <source>Request Payment</source> <translation type="unfinished"/> </message> <message> <location line="+56"/> <source>Amount:</source> <translation type="unfinished"/> </message> <message> <location line="-44"/> <source>Label:</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>Message:</source> <translation type="unfinished"/> </message> <message> <location line="+71"/> <source>&amp;Save As...</source> <translation type="unfinished"/> </message> <message> <location filename="../qrcodedialog.cpp" line="+62"/> <source>Error encoding URI into QR Code.</source> <translation type="unfinished"/> </message> <message> <location line="+40"/> <source>The entered amount is invalid, please check.</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Resulting URI too long, try to reduce the text for label / message.</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>Save QR Code</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>PNG Images (*.png)</source> <translation type="unfinished"/> </message> </context> <context> <name>RPCConsole</name> <message> <location filename="../forms/rpcconsole.ui" line="+46"/> <source>Client name</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <location line="+23"/> <location line="+26"/> <location line="+23"/> <location line="+23"/> <location line="+36"/> <location line="+53"/> <location line="+23"/> <location line="+23"/> <location filename="../rpcconsole.cpp" line="+348"/> <source>N/A</source> <translation>N/A</translation> </message> <message> <location line="-217"/> <source>Client version</source> <translation type="unfinished"/> </message> <message> <location line="-45"/> <source>&amp;Information</source> <translation type="unfinished"/> </message> <message> <location line="+68"/> <source>Using OpenSSL version</source> <translation type="unfinished"/> </message> <message> <location line="+49"/> <source>Startup time</source> <translation type="unfinished"/> </message> <message> <location line="+29"/> <source>Network</source> <translation>Мрежа</translation> </message> <message> <location line="+7"/> <source>Number of connections</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>On testnet</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Block chain</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Current number of blocks</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Estimated total blocks</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Last block time</source> <translation type="unfinished"/> </message> <message> <location line="+52"/> <source>&amp;Open</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Command-line options</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Show the ShadowCoin-Qt help message to get a list with possible ShadowCoin command-line options.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Show</source> <translation type="unfinished"/> </message> <message> <location line="+24"/> <source>&amp;Console</source> <translation type="unfinished"/> </message> <message> <location line="-260"/> <source>Build date</source> <translation type="unfinished"/> </message> <message> <location line="-104"/> <source>ShadowCoin - Debug window</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>ShadowCoin Core</source> <translation type="unfinished"/> </message> <message> <location line="+279"/> <source>Debug log file</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Open the ShadowCoin debug log file from the current data directory. This can take a few seconds for large log files.</source> <translation type="unfinished"/> </message> <message> <location line="+102"/> <source>Clear console</source> <translation>Изчисти конзолата</translation> </message> <message> <location filename="../rpcconsole.cpp" line="-33"/> <source>Welcome to the ShadowCoin RPC console.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Use up and down arrows to navigate history, and &lt;b&gt;Ctrl-L&lt;/b&gt; to clear screen.</source> <translation>Използвайте стрелки надолу и нагореза разглеждане на историятаот команди и &lt;b&gt;Ctrl-L&lt;/b&gt; за изчистване на конзолата.</translation> </message> <message> <location line="+1"/> <source>Type &lt;b&gt;help&lt;/b&gt; for an overview of available commands.</source> <translation type="unfinished"/> </message> </context> <context> <name>SendCoinsDialog</name> <message> <location filename="../forms/sendcoinsdialog.ui" line="+14"/> <location filename="../sendcoinsdialog.cpp" line="+182"/> <location line="+5"/> <location line="+5"/> <location line="+5"/> <location line="+6"/> <location line="+5"/> <location line="+5"/> <source>Send Coins</source> <translation>Изпращане</translation> </message> <message> <location line="+76"/> <source>Coin Control Features</source> <translation type="unfinished"/> </message> <message> <location line="+20"/> <source>Inputs...</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>automatically selected</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>Insufficient funds!</source> <translation type="unfinished"/> </message> <message> <location line="+77"/> <source>Quantity:</source> <translation type="unfinished"/> </message> <message> <location line="+22"/> <location line="+35"/> <source>0</source> <translation type="unfinished"/> </message> <message> <location line="-19"/> <source>Bytes:</source> <translation type="unfinished"/> </message> <message> <location line="+51"/> <source>Amount:</source> <translation>Сума:</translation> </message> <message> <location line="+22"/> <location line="+86"/> <location line="+86"/> <location line="+32"/> <source>0.00 SDC</source> <translation type="unfinished"/> </message> <message> <location line="-191"/> <source>Priority:</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>medium</source> <translation type="unfinished"/> </message> <message> <location line="+32"/> <source>Fee:</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>Low Output:</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>no</source> <translation type="unfinished"/> </message> <message> <location line="+32"/> <source>After Fee:</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>Change</source> <translation type="unfinished"/> </message> <message> <location line="+50"/> <source>custom change address</source> <translation type="unfinished"/> </message> <message> <location line="+106"/> <source>Send to multiple recipients at once</source> <translation>Изпращане към повече от един получател</translation> </message> <message> <location line="+3"/> <source>Add &amp;Recipient</source> <translation>Добави &amp;получател</translation> </message> <message> <location line="+20"/> <source>Remove all transaction fields</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Clear &amp;All</source> <translation>&amp;Изчисти</translation> </message> <message> <location line="+28"/> <source>Balance:</source> <translation>Баланс:</translation> </message> <message> <location line="+16"/> <source>123.456 SDC</source> <translation type="unfinished"/> </message> <message> <location line="+31"/> <source>Confirm the send action</source> <translation>Потвърдете изпращането</translation> </message> <message> <location line="+3"/> <source>S&amp;end</source> <translation>И&amp;зпрати</translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="-173"/> <source>Enter a ShadowCoin address (e.g. SXywGBZBowrppUwwNUo1GCRDTibzJi7g2M)</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>Copy quantity</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy amount</source> <translation>Копирай сума</translation> </message> <message> <location line="+1"/> <source>Copy fee</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy after fee</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy bytes</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy priority</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy low output</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy change</source> <translation type="unfinished"/> </message> <message> <location line="+86"/> <source>&lt;b&gt;%1&lt;/b&gt; to %2 (%3)</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Confirm send coins</source> <translation>Потвърждаване</translation> </message> <message> <location line="+1"/> <source>Are you sure you want to send %1?</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source> and </source> <translation type="unfinished"/> </message> <message> <location line="+29"/> <source>The recipient address is not valid, please recheck.</source> <translation>Невалиден адрес на получателя.</translation> </message> <message> <location line="+5"/> <source>The amount to pay must be larger than 0.</source> <translation>Сумата трябва да е по-голяма от 0.</translation> </message> <message> <location line="+5"/> <source>The amount exceeds your balance.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>The total exceeds your balance when the %1 transaction fee is included.</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Duplicate address found, can only send to each address once per send operation.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Error: Transaction creation failed.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation type="unfinished"/> </message> <message> <location line="+251"/> <source>WARNING: Invalid ShadowCoin address</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>(no label)</source> <translation>(без име)</translation> </message> <message> <location line="+4"/> <source>WARNING: unknown change address</source> <translation type="unfinished"/> </message> </context> <context> <name>SendCoinsEntry</name> <message> <location filename="../forms/sendcoinsentry.ui" line="+14"/> <source>Form</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>A&amp;mount:</source> <translation>С&amp;ума:</translation> </message> <message> <location line="+13"/> <source>Pay &amp;To:</source> <translation>Плати &amp;На:</translation> </message> <message> <location line="+24"/> <location filename="../sendcoinsentry.cpp" line="+25"/> <source>Enter a label for this address to add it to your address book</source> <translation>Въведете име за този адрес, за да го добавите в списъка с адреси</translation> </message> <message> <location line="+9"/> <source>&amp;Label:</source> <translation>&amp;Име:</translation> </message> <message> <location line="+18"/> <source>The address to send the payment to (e.g. SXywGBZBowrppUwwNUo1GCRDTibzJi7g2M)</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Choose address from address book</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Alt+A</source> <translation>Alt+A</translation> </message> <message> <location line="+7"/> <source>Paste address from clipboard</source> <translation>Вмъкни от клипборда</translation> </message> <message> <location line="+10"/> <source>Alt+P</source> <translation>Alt+P</translation> </message> <message> <location line="+7"/> <source>Remove this recipient</source> <translation type="unfinished"/> </message> <message> <location filename="../sendcoinsentry.cpp" line="+1"/> <source>Enter a ShadowCoin address (e.g. SXywGBZBowrppUwwNUo1GCRDTibzJi7g2M)</source> <translation type="unfinished"/> </message> </context> <context> <name>SignVerifyMessageDialog</name> <message> <location filename="../forms/signverifymessagedialog.ui" line="+14"/> <source>Signatures - Sign / Verify a Message</source> <translation>Подпиши / Провери съобщение</translation> </message> <message> <location line="+13"/> <location line="+124"/> <source>&amp;Sign Message</source> <translation>&amp;Подпиши</translation> </message> <message> <location line="-118"/> <source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source> <translation>Можете да подпишете съобщение като доказателство, че притежавате определен адрес. Бъдете внимателни и не подписвайте съобщения, които биха разкрили лична информация без вашето съгласие.</translation> </message> <message> <location line="+18"/> <source>The address to sign the message with (e.g. SXywGBZBowrppUwwNUo1GCRDTibzJi7g2M)</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <location line="+203"/> <source>Choose an address from the address book</source> <translation type="unfinished"/> </message> <message> <location line="-193"/> <location line="+203"/> <source>Alt+A</source> <translation>Alt+A</translation> </message> <message> <location line="-193"/> <source>Paste address from clipboard</source> <translation>Вмъкни от клипборда</translation> </message> <message> <location line="+10"/> <source>Alt+P</source> <translation>Alt+P</translation> </message> <message> <location line="+12"/> <source>Enter the message you want to sign here</source> <translation>Въведете съобщението тук</translation> </message> <message> <location line="+24"/> <source>Copy the current signature to the system clipboard</source> <translation>Копиране на текущия подпис</translation> </message> <message> <location line="+21"/> <source>Sign the message to prove you own this ShadowCoin address</source> <translation type="unfinished"/> </message> <message> <location line="+17"/> <source>Reset all sign message fields</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <location line="+146"/> <source>Clear &amp;All</source> <translation>&amp;Изчисти</translation> </message> <message> <location line="-87"/> <location line="+70"/> <source>&amp;Verify Message</source> <translation>&amp;Провери</translation> </message> <message> <location line="-64"/> <source>Enter the signing address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack.</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>The address the message was signed with (e.g. SXywGBZBowrppUwwNUo1GCRDTibzJi7g2M)</source> <translation type="unfinished"/> </message> <message> <location line="+40"/> <source>Verify the message to ensure it was signed with the specified ShadowCoin address</source> <translation type="unfinished"/> </message> <message> <location line="+17"/> <source>Reset all verify message fields</source> <translation type="unfinished"/> </message> <message> <location filename="../signverifymessagedialog.cpp" line="+27"/> <location line="+3"/> <source>Enter a ShadowCoin address (e.g. SXywGBZBowrppUwwNUo1GCRDTibzJi7g2M)</source> <translation type="unfinished"/> </message> <message> <location line="-2"/> <source>Click &quot;Sign Message&quot; to generate signature</source> <translation>Натиснете &quot;Подписване на съобщение&quot; за да създадете подпис</translation> </message> <message> <location line="+3"/> <source>Enter ShadowCoin signature</source> <translation type="unfinished"/> </message> <message> <location line="+82"/> <location line="+81"/> <source>The entered address is invalid.</source> <translation>Въведеният адрес е невалиден.</translation> </message> <message> <location line="-81"/> <location line="+8"/> <location line="+73"/> <location line="+8"/> <source>Please check the address and try again.</source> <translation>Моля проверете адреса и опитайте отново.</translation> </message> <message> <location line="-81"/> <location line="+81"/> <source>The entered address does not refer to a key.</source> <translation type="unfinished"/> </message> <message> <location line="-73"/> <source>Wallet unlock was cancelled.</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Private key for the entered address is not available.</source> <translation>Не е наличен частният ключ за въведеният адрес.</translation> </message> <message> <location line="+12"/> <source>Message signing failed.</source> <translation>Подписването на съобщение бе неуспешно.</translation> </message> <message> <location line="+5"/> <source>Message signed.</source> <translation>Съобщението е подписано.</translation> </message> <message> <location line="+59"/> <source>The signature could not be decoded.</source> <translation>Подписът не може да бъде декодиран.</translation> </message> <message> <location line="+0"/> <location line="+13"/> <source>Please check the signature and try again.</source> <translation>Проверете подписа и опитайте отново.</translation> </message> <message> <location line="+0"/> <source>The signature did not match the message digest.</source> <translation>Подписът не отговаря на комбинацията от съобщение и адрес.</translation> </message> <message> <location line="+7"/> <source>Message verification failed.</source> <translation>Проверката на съобщението беше неуспешна.</translation> </message> <message> <location line="+5"/> <source>Message verified.</source> <translation>Съобщението е потвърдено.</translation> </message> </context> <context> <name>TransactionDesc</name> <message> <location filename="../transactiondesc.cpp" line="+19"/> <source>Open until %1</source> <translation>Подлежи на промяна до %1</translation> </message> <message numerus="yes"> <location line="-2"/> <source>Open for %n block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+8"/> <source>conflicted</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>%1/offline</source> <translation>%1/офлайн</translation> </message> <message> <location line="+2"/> <source>%1/unconfirmed</source> <translation>%1/непотвърдени</translation> </message> <message> <location line="+2"/> <source>%1 confirmations</source> <translation>включена в %1 блока</translation> </message> <message> <location line="+18"/> <source>Status</source> <translation>Статус</translation> </message> <message numerus="yes"> <location line="+7"/> <source>, broadcast through %n node(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+4"/> <source>Date</source> <translation>Дата</translation> </message> <message> <location line="+7"/> <source>Source</source> <translation>Източник</translation> </message> <message> <location line="+0"/> <source>Generated</source> <translation>Издадени</translation> </message> <message> <location line="+5"/> <location line="+17"/> <source>From</source> <translation>От</translation> </message> <message> <location line="+1"/> <location line="+22"/> <location line="+58"/> <source>To</source> <translation>За</translation> </message> <message> <location line="-77"/> <location line="+2"/> <source>own address</source> <translation>собствен адрес</translation> </message> <message> <location line="-2"/> <source>label</source> <translation>име</translation> </message> <message> <location line="+37"/> <location line="+12"/> <location line="+45"/> <location line="+17"/> <location line="+30"/> <source>Credit</source> <translation>Кредит</translation> </message> <message numerus="yes"> <location line="-102"/> <source>matures in %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+2"/> <source>not accepted</source> <translation type="unfinished"/> </message> <message> <location line="+44"/> <location line="+8"/> <location line="+15"/> <location line="+30"/> <source>Debit</source> <translation>Дебит</translation> </message> <message> <location line="-39"/> <source>Transaction fee</source> <translation>Такса</translation> </message> <message> <location line="+16"/> <source>Net amount</source> <translation>Сума нето</translation> </message> <message> <location line="+6"/> <source>Message</source> <translation>Съобщение</translation> </message> <message> <location line="+2"/> <source>Comment</source> <translation>Коментар</translation> </message> <message> <location line="+2"/> <source>Transaction ID</source> <translation>ID</translation> </message> <message> <location line="+3"/> <source>Generated coins must mature 510 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to &quot;not accepted&quot; and it won&apos;t be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Debug information</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Transaction</source> <translation>Транзакция</translation> </message> <message> <location line="+5"/> <source>Inputs</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Amount</source> <translation>Сума</translation> </message> <message> <location line="+1"/> <source>true</source> <translation>true</translation> </message> <message> <location line="+0"/> <source>false</source> <translation>false</translation> </message> <message> <location line="-211"/> <source>, has not been successfully broadcast yet</source> <translation>, все още не е изпратено</translation> </message> <message> <location line="+35"/> <source>unknown</source> <translation>неизвестен</translation> </message> </context> <context> <name>TransactionDescDialog</name> <message> <location filename="../forms/transactiondescdialog.ui" line="+14"/> <source>Transaction details</source> <translation>Транзакция</translation> </message> <message> <location line="+6"/> <source>This pane shows a detailed description of the transaction</source> <translation>Описание на транзакцията</translation> </message> </context> <context> <name>TransactionTableModel</name> <message> <location filename="../transactiontablemodel.cpp" line="+226"/> <source>Date</source> <translation>Дата</translation> </message> <message> <location line="+0"/> <source>Type</source> <translation>Тип</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>Адрес</translation> </message> <message> <location line="+0"/> <source>Amount</source> <translation>Сума</translation> </message> <message> <location line="+60"/> <source>Open until %1</source> <translation>Подлежи на промяна до %1</translation> </message> <message> <location line="+12"/> <source>Confirmed (%1 confirmations)</source> <translation>Потвърдени (%1 потвърждения)</translation> </message> <message numerus="yes"> <location line="-15"/> <source>Open for %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+6"/> <source>Offline</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Unconfirmed</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Confirming (%1 of %2 recommended confirmations)</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Conflicted</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Immature (%1 confirmations, will be available after %2)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>This block was not received by any other nodes and will probably not be accepted!</source> <translation>Блокът не е получен от останалите участници и най-вероятно няма да бъде одобрен.</translation> </message> <message> <location line="+3"/> <source>Generated but not accepted</source> <translation>Генерирана, но отхвърлена от мрежата</translation> </message> <message> <location line="+42"/> <source>Received with</source> <translation>Получени с</translation> </message> <message> <location line="+2"/> <source>Received from</source> <translation>Получен от</translation> </message> <message> <location line="+3"/> <source>Sent to</source> <translation>Изпратени на</translation> </message> <message> <location line="+2"/> <source>Payment to yourself</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Mined</source> <translation>Емитирани</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>Състояние на транзакцията. Задръжте върху това поле за брой потвърждения.</translation> </message> <message> <location line="+2"/> <source>Date and time that the transaction was received.</source> <translation>Дата и час на получаване.</translation> </message> <message> <location line="+2"/> <source>Type of transaction.</source> <translation>Тип на транзакцията.</translation> </message> <message> <location line="+2"/> <source>Destination address of transaction.</source> <translation>Получател на транзакцията.</translation> </message> <message> <location line="+2"/> <source>Amount removed from or added to balance.</source> <translation>Сума извадена или добавена към баланса.</translation> </message> </context> <context> <name>TransactionView</name> <message> <location filename="../transactionview.cpp" line="+55"/> <location line="+16"/> <source>All</source> <translation>Всички</translation> </message> <message> <location line="-15"/> <source>Today</source> <translation>Днес</translation> </message> <message> <location line="+1"/> <source>This week</source> <translation>Тази седмица</translation> </message> <message> <location line="+1"/> <source>This month</source> <translation>Този месец</translation> </message> <message> <location line="+1"/> <source>Last month</source> <translation>Предния месец</translation> </message> <message> <location line="+1"/> <source>This year</source> <translation>Тази година</translation> </message> <message> <location line="+1"/> <source>Range...</source> <translation>От - до...</translation> </message> <message> <location line="+11"/> <source>Received with</source> <translation>Получени</translation> </message> <message> <location line="+2"/> <source>Sent to</source> <translation>Изпратени на</translation> </message> <message> <location line="+2"/> <source>To yourself</source> <translation>Собствени</translation> </message> <message> <location line="+1"/> <source>Mined</source> <translation>Емитирани</translation> </message> <message> <location line="+1"/> <source>Other</source> <translation>Други</translation> </message> <message> <location line="+7"/> <source>Enter address or label to search</source> <translation>Търсене по адрес или име</translation> </message> <message> <location line="+7"/> <source>Min amount</source> <translation>Минимална сума</translation> </message> <message> <location line="+34"/> <source>Copy address</source> <translation>Копирай адрес</translation> </message> <message> <location line="+1"/> <source>Copy label</source> <translation>Копирай име</translation> </message> <message> <location line="+1"/> <source>Copy amount</source> <translation>Копирай сума</translation> </message> <message> <location line="+1"/> <source>Copy transaction ID</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Edit label</source> <translation>Редактирай име</translation> </message> <message> <location line="+1"/> <source>Show transaction details</source> <translation type="unfinished"/> </message> <message> <location line="+144"/> <source>Export Transaction Data</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation>CSV файл (*.csv)</translation> </message> <message> <location line="+8"/> <source>Confirmed</source> <translation>Потвърдени</translation> </message> <message> <location line="+1"/> <source>Date</source> <translation>Дата</translation> </message> <message> <location line="+1"/> <source>Type</source> <translation>Тип</translation> </message> <message> <location line="+1"/> <source>Label</source> <translation>Име</translation> </message> <message> <location line="+1"/> <source>Address</source> <translation>Адрес</translation> </message> <message> <location line="+1"/> <source>Amount</source> <translation>Сума</translation> </message> <message> <location line="+1"/> <source>ID</source> <translation>ИД</translation> </message> <message> <location line="+4"/> <source>Error exporting</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation type="unfinished"/> </message> <message> <location line="+100"/> <source>Range:</source> <translation>От:</translation> </message> <message> <location line="+8"/> <source>to</source> <translation>до</translation> </message> </context> <context> <name>WalletModel</name> <message> <location filename="../walletmodel.cpp" line="+206"/> <source>Sending...</source> <translation type="unfinished"/> </message> </context> <context> <name>bitcoin-core</name> <message> <location filename="../bitcoinstrings.cpp" line="+33"/> <source>ShadowCoin version</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Usage:</source> <translation>Използване:</translation> </message> <message> <location line="+1"/> <source>Send command to -server or shadowcoind</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>List commands</source> <translation>Вписване на команди</translation> </message> <message> <location line="+1"/> <source>Get help for a command</source> <translation>Получете помощ за команда</translation> </message> <message> <location line="+2"/> <source>Options:</source> <translation>Опции:</translation> </message> <message> <location line="+2"/> <source>Specify configuration file (default: shadowcoin.conf)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Specify pid file (default: shadowcoind.pid)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Specify wallet file (within data directory)</source> <translation type="unfinished"/> </message> <message> <location line="-1"/> <source>Specify data directory</source> <translation>Определете директория за данните</translation> </message> <message> <location line="+2"/> <source>Set database cache size in megabytes (default: 25)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Set database disk log size in megabytes (default: 100)</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Listen for connections on &lt;port&gt; (default: 32112 or testnet: 22112)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Maintain at most &lt;n&gt; connections to peers (default: 125)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Connect to a node to retrieve peer addresses, and disconnect</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Specify your own public address</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Bind to given address. Use [host]:port notation for IPv6</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Stake your coins to support network and gain reward (default: 1)</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Threshold for disconnecting misbehaving peers (default: 100)</source> <translation>Праг на прекъсване на връзката при непорядъчно държащи се пиъри (по подразбиране:100)</translation> </message> <message> <location line="+1"/> <source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source> <translation>Брой секунди до възтановяване на връзката за зле държащите се пиъри (по подразбиране: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 type="unfinished"/> </message> <message> <location line="+51"/> <source>Detach block and address databases. Increases shutdown time (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+109"/> <source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation type="unfinished"/> </message> <message> <location line="-5"/> <source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds </source> <translation type="unfinished"/> </message> <message> <location line="-87"/> <source>Listen for JSON-RPC connections on &lt;port&gt; (default: 51736 or testnet: 51996)</source> <translation type="unfinished"/> </message> <message> <location line="-11"/> <source>Accept command line and JSON-RPC commands</source> <translation type="unfinished"/> </message> <message> <location line="+101"/> <source>Error: Transaction creation failed </source> <translation type="unfinished"/> </message> <message> <location line="-5"/> <source>Error: Wallet locked, unable to create transaction </source> <translation type="unfinished"/> </message> <message> <location line="-8"/> <source>Importing blockchain data file.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Importing bootstrap blockchain data file.</source> <translation type="unfinished"/> </message> <message> <location line="-88"/> <source>Run in the background as a daemon and accept commands</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Use the test network</source> <translation>Използвайте тестовата мрежа</translation> </message> <message> <location line="-24"/> <source>Accept connections from outside (default: 1 if no -proxy or -connect)</source> <translation type="unfinished"/> </message> <message> <location line="-38"/> <source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source> <translation type="unfinished"/> </message> <message> <location line="+117"/> <source>Error initializing database environment %s! To recover, BACKUP THAT DIRECTORY, then remove everything from it except for wallet.dat.</source> <translation type="unfinished"/> </message> <message> <location line="-20"/> <source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source> <translation type="unfinished"/> </message> <message> <location line="+61"/> <source>Warning: Please check that your computer&apos;s date and time are correct! If your clock is wrong ShadowCoin will not work properly.</source> <translation type="unfinished"/> </message> <message> <location line="-31"/> <source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source> <translation type="unfinished"/> </message> <message> <location line="-18"/> <source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source> <translation type="unfinished"/> </message> <message> <location line="-30"/> <source>Attempt to recover private keys from a corrupt wallet.dat</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Block creation options:</source> <translation type="unfinished"/> </message> <message> <location line="-62"/> <source>Connect only to the specified node(s)</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Discover own IP address (default: 1 when listening and no -externalip)</source> <translation type="unfinished"/> </message> <message> <location line="+94"/> <source>Failed to listen on any port. Use -listen=0 if you want this.</source> <translation type="unfinished"/> </message> <message> <location line="-90"/> <source>Find peers using DNS lookup (default: 1)</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Sync checkpoints policy (default: strict)</source> <translation type="unfinished"/> </message> <message> <location line="+83"/> <source>Invalid -tor address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Invalid amount for -reservebalance=&lt;amount&gt;</source> <translation type="unfinished"/> </message> <message> <location line="-82"/> <source>Maximum per-connection receive buffer, &lt;n&gt;*1000 bytes (default: 5000)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Maximum per-connection send buffer, &lt;n&gt;*1000 bytes (default: 1000)</source> <translation type="unfinished"/> </message> <message> <location line="-16"/> <source>Only connect to nodes in network &lt;net&gt; (IPv4, IPv6 or Tor)</source> <translation type="unfinished"/> </message> <message> <location line="+28"/> <source>Output extra debugging information. Implies all other -debug* options</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Output extra network debugging information</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Prepend debug output with timestamp</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>SSL options: (see the Bitcoin Wiki for SSL setup instructions)</source> <translation type="unfinished"/> </message> <message> <location line="-74"/> <source>Select the version of socks proxy to use (4-5, default: 5)</source> <translation type="unfinished"/> </message> <message> <location line="+41"/> <source>Send trace/debug info to console instead of debug.log file</source> <translation>Изпрати локализиращата или дебъг информацията към конзолата, вместо файлът debug.log</translation> </message> <message> <location line="+1"/> <source>Send trace/debug info to debugger</source> <translation type="unfinished"/> </message> <message> <location line="+28"/> <source>Set maximum block size in bytes (default: 250000)</source> <translation type="unfinished"/> </message> <message> <location line="-1"/> <source>Set minimum block size in bytes (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="-29"/> <source>Shrink debug.log file on client startup (default: 1 when no -debug)</source> <translation type="unfinished"/> </message> <message> <location line="-42"/> <source>Specify connection timeout in milliseconds (default: 5000)</source> <translation type="unfinished"/> </message> <message> <location line="+109"/> <source>Unable to sign checkpoint, wrong checkpointkey? </source> <translation type="unfinished"/> </message> <message> <location line="-80"/> <source>Use UPnP to map the listening port (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="-1"/> <source>Use UPnP to map the listening port (default: 1 when listening)</source> <translation type="unfinished"/> </message> <message> <location line="-25"/> <source>Use proxy to reach tor hidden services (default: same as -proxy)</source> <translation type="unfinished"/> </message> <message> <location line="+42"/> <source>Username for JSON-RPC connections</source> <translation>Потребителско име за JSON-RPC връзките</translation> </message> <message> <location line="+47"/> <source>Verifying database integrity...</source> <translation type="unfinished"/> </message> <message> <location line="+57"/> <source>WARNING: syncronized checkpoint violation detected, but skipped!</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Warning: Disk space is low!</source> <translation type="unfinished"/> </message> <message> <location line="-2"/> <source>Warning: This version is obsolete, upgrade required!</source> <translation type="unfinished"/> </message> <message> <location line="-48"/> <source>wallet.dat corrupt, salvage failed</source> <translation type="unfinished"/> </message> <message> <location line="-54"/> <source>Password for JSON-RPC connections</source> <translation>Парола за JSON-RPC връзките</translation> </message> <message> <location line="-84"/> <source>%s, you must set a rpcpassword in the configuration file: %s It is recommended you use the following random password: rpcuser=shadowcoinrpc rpcpassword=%s (you do not need to remember this password) The username and password MUST NOT be the same. If the file does not exist, create it with owner-readable-only file permissions. It is also recommended to set alertnotify so you are notified of problems; for example: alertnotify=echo %%s | mail -s &quot;ShadowCoin Alert&quot; admin@foo.com </source> <translation type="unfinished"/> </message> <message> <location line="+51"/> <source>Find peers using internet relay chat (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Sync time with other nodes. Disable if time on your system is precise e.g. syncing with NTP (default: 1)</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>When creating transactions, ignore inputs with value less than this (default: 0.01)</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Allow JSON-RPC connections from specified IP address</source> <translation>Разреши JSON-RPC връзките от отучнен IP адрес</translation> </message> <message> <location line="+1"/> <source>Send commands to node running on &lt;ip&gt; (default: 127.0.0.1)</source> <translation>Изпрати команди до възел функциониращ на &lt;ip&gt; (По подразбиране: 127.0.0.1)</translation> </message> <message> <location line="+1"/> <source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Require a confirmations for change (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Enforce transaction scripts to use canonical PUSH operators (default: 1)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Upgrade wallet to latest format</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Set key pool size to &lt;n&gt; (default: 100)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Rescan the block chain for missing wallet transactions</source> <translation>Повторно сканиране на блок-връзка за липсващи портефейлни транзакции</translation> </message> <message> <location line="+2"/> <source>How many blocks to check at startup (default: 2500, 0 = all)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>How thorough the block verification is (0-6, default: 1)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Imports blocks from external blk000?.dat file</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Use OpenSSL (https) for JSON-RPC connections</source> <translation>Използвайте OpenSSL (https) за JSON-RPC връзките</translation> </message> <message> <location line="+1"/> <source>Server certificate file (default: server.cert)</source> <translation>Сертификатен файл на сървъра (По подразбиране:server.cert)</translation> </message> <message> <location line="+1"/> <source>Server private key (default: server.pem)</source> <translation>Поверителен ключ за сървъра (default: server.pem)</translation> </message> <message> <location line="+1"/> <source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source> <translation type="unfinished"/> </message> <message> <location line="+53"/> <source>Error: Wallet unlocked for staking only, unable to create transaction.</source> <translation type="unfinished"/> </message> <message> <location line="+18"/> <source>WARNING: Invalid checkpoint found! Displayed transactions may not be correct! You may need to upgrade, or notify developers.</source> <translation type="unfinished"/> </message> <message> <location line="-158"/> <source>This help message</source> <translation>Това помощно съобщение</translation> </message> <message> <location line="+95"/> <source>Wallet %s resides outside data directory %s.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Cannot obtain a lock on data directory %s. ShadowCoin is probably already running.</source> <translation type="unfinished"/> </message> <message> <location line="-98"/> <source>ShadowCoin</source> <translation type="unfinished"/> </message> <message> <location line="+140"/> <source>Unable to bind to %s on this computer (bind returned error %d, %s)</source> <translation type="unfinished"/> </message> <message> <location line="-130"/> <source>Connect through socks proxy</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Allow DNS lookups for -addnode, -seednode and -connect</source> <translation type="unfinished"/> </message> <message> <location line="+122"/> <source>Loading addresses...</source> <translation>Зареждане на адресите...</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 type="unfinished"/> </message> <message> <location line="+4"/> <source>Error loading wallet.dat: Wallet requires newer version of ShadowCoin</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Wallet needed to be rewritten: restart ShadowCoin to complete</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error loading wallet.dat</source> <translation type="unfinished"/> </message> <message> <location line="-16"/> <source>Invalid -proxy address: &apos;%s&apos;</source> <translation>Невалиден -proxy address: &apos;%s&apos;</translation> </message> <message> <location line="-1"/> <source>Unknown network specified in -onlynet: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="-1"/> <source>Unknown -socks proxy version requested: %i</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Cannot resolve -bind address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Cannot resolve -externalip address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="-24"/> <source>Invalid amount for -paytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+44"/> <source>Error: could not start node</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Sending...</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Invalid amount</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Insufficient funds</source> <translation type="unfinished"/> </message> <message> <location line="-34"/> <source>Loading block index...</source> <translation>Зареждане на блок индекса...</translation> </message> <message> <location line="-103"/> <source>Add a node to connect to and attempt to keep the connection open</source> <translation type="unfinished"/> </message> <message> <location line="+122"/> <source>Unable to bind to %s on this computer. ShadowCoin is probably already running.</source> <translation type="unfinished"/> </message> <message> <location line="-97"/> <source>Fee per KB to add to transactions you send</source> <translation type="unfinished"/> </message> <message> <location line="+55"/> <source>Invalid amount for -mininput=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>Loading wallet...</source> <translation>Зареждане на портфейла...</translation> </message> <message> <location line="+8"/> <source>Cannot downgrade wallet</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Cannot initialize keypool</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Cannot write default address</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Rescanning...</source> <translation>Преразглеждане на последовтелността от блокове...</translation> </message> <message> <location line="+5"/> <source>Done loading</source> <translation>Зареждането е завършено</translation> </message> <message> <location line="-167"/> <source>To use the %s option</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Error</source> <translation>Грешка</translation> </message> <message> <location line="+6"/> <source>You must set rpcpassword=&lt;password&gt; in the configuration file: %s If the file does not exist, create it with owner-readable-only file permissions.</source> <translation type="unfinished"/> </message> </context> </TS>
mit
MichaelGrafnetter/DSInternals
Src/Microsoft.Isam.Esent.Interop/BytesColumnValue.cs
4757
//----------------------------------------------------------------------- // <copyright file="BytesColumnValue.cs" company="Microsoft Corporation"> // Copyright (c) Microsoft Corporation. // </copyright> //----------------------------------------------------------------------- namespace Microsoft.Isam.Esent.Interop { using System; using System.Diagnostics; /// <summary> /// A byte array column value. /// </summary> public class BytesColumnValue : ColumnValue { /// <summary> /// Internal value. /// </summary> private byte[] internalValue; /// <summary> /// Gets the last set or retrieved value of the column. The /// value is returned as a generic object. /// </summary> public override object ValueAsObject { [DebuggerStepThrough] get { return this.Value; } } /// <summary> /// Gets or sets the value of the column. Use <see cref="Api.SetColumns"/> to update a /// record with the column value. /// </summary> public byte[] Value { get { return this.internalValue; } set { this.internalValue = value; this.Error = value == null ? JET_wrn.ColumnNull : JET_wrn.Success; } } /// <summary> /// Gets the byte length of a column value, which is zero if column is null, otherwise /// matches the actual length of the byte array. /// </summary> public override int Length { get { return this.Value != null ? this.Value.Length : 0; } } /// <summary> /// Gets the size of the value in the column. This returns 0 for /// variable sized columns (i.e. binary and string). /// </summary> protected override int Size { [DebuggerStepThrough] get { return 0; } } /// <summary> /// Returns a <see cref="T:System.String"/> that represents the current <see cref="BytesColumnValue"/>. /// </summary> /// <returns> /// A <see cref="T:System.String"/> that represents the current <see cref="BytesColumnValue"/>. /// </returns> public override string ToString() { if (null == this.Value) { return string.Empty; } return BitConverter.ToString(this.Value, 0, Math.Min(this.Value.Length, 16)); } /// <summary> /// Recursive SetColumns method for data pinning. This populates the buffer and /// calls the inherited SetColumns method. /// </summary> /// <param name="sesid">The session to use.</param> /// <param name="tableid"> /// The table to set the columns in. An update should be prepared. /// </param> /// <param name="columnValues"> /// Column values to set. /// </param> /// <param name="nativeColumns"> /// Structures to put the pinned data in. /// </param> /// <param name="i">Offset of this object in the array.</param> /// <returns>An error code.</returns> internal override unsafe int SetColumns(JET_SESID sesid, JET_TABLEID tableid, ColumnValue[] columnValues, NATIVE_SETCOLUMN* nativeColumns, int i) { if (null != this.Value) { fixed (void* buffer = this.Value) { return this.SetColumns( sesid, tableid, columnValues, nativeColumns, i, buffer, this.Value.Length, true); } } return this.SetColumns(sesid, tableid, columnValues, nativeColumns, i, null, 0, false); } /// <summary> /// Given data retrieved from ESENT, decode the data and set the value in the ColumnValue object. /// </summary> /// <param name="value">An array of bytes.</param> /// <param name="startIndex">The starting position within the bytes.</param> /// <param name="count">The number of bytes to decode.</param> /// <param name="err">The error returned from ESENT.</param> protected override void GetValueFromBytes(byte[] value, int startIndex, int count, int err) { if (JET_wrn.ColumnNull == (JET_wrn)err) { this.Value = null; } else { var copiedValue = new byte[count]; Buffer.BlockCopy(value, startIndex, copiedValue, 0, count); this.Value = copiedValue; } } } }
mit
active9/ooahh
ooahh/ooahhbuild.js
1665
var fs = require('fs'), path = require('path'), os = require('os'); module.exports = function(app,build,init,generate) { app = path.resolve(app); build = path.resolve(build); console.log('Changing Into Directory:',app); process.cwd(app); console.log('Building In Directory:',build); // Init if (init) { generate = false; console.log('Ooahh Generator Starting...'); var generator = require('../lib/generator.js'); generator(app); // Generate } else if (generate) { console.log('Ooahh Build Starting On ', app); if (!fs.existsSync(path.resolve(app +'/package.json'))) { console.log ('Error: Invalid Directory Specified.'); process.exit(1); } var NwBuilder = require('nw-builder'); var options = { version: '0.12.3', buildDir: build, cacheDir: os.tmpdir(), files: app +'/**', // use the glob format platforms: ['linux32', 'linux64', 'osx32', 'osx64', 'win32', 'win64'] }; var nw = new NwBuilder(options); var streamCopyFile = require('stream-copy-file'); function callback (err) { if (err) { throw err; } console.log('files already exist.'); } var copyFileSync = function(srcFile, destFile, encoding) { var content = fs.readFileSync(srcFile, encoding); fs.writeFileSync(destFile, content, encoding); } // Log output nw.on('log', console.log); // Build returns a promise nw.build().then(function () { console.log('Build Success.'); }).catch(function (error) { console.error(error); }); } else { console.log('Invalid Options Passed. Exiting..'); } }
mit
Chrutil/rtsequencer
rtsequencer/MidiSpy.cpp
3180
// Copyright (c) 2016 Christer Janson // // 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. // // Chrutil RT Sequencer // Misc Utilities #include <Arduino.h> #include <spi4teensy3.h> #include <CUU_Interface.h> #include <Noritake_VFD_CUU.h> #include <Encoder.h> #include <Wire.h> #include <MIDI.h> #include "Config.h" #include "SeqUtil.h" #include "DisplayUtil.h" #include "MidiSpy.h" extern Noritake_VFD_CUU vfd; extern midi::MidiInterface<HardwareSerial> midiIO; extern Display display; extern Encoder encoder; extern Buzzer buzzer; extern PushButton playButton; extern PushButton recButton; extern PushButton backButton; extern PushButton selectButton; extern Configuration cfg; void MidiSpy::MIDINoteOnHandler(byte channel, byte note, byte velocity) { char txt[21]; sprintf(txt, "On :%03d V:%3d Ch:%02d", note, velocity, channel); print(txt); } void MidiSpy::MIDINoteOffHandler(byte channel, byte note, byte velocity) { char txt[21]; sprintf(txt, "Off:%03d V:%3d Ch:%02d", note, velocity, channel); print(txt); } void MidiSpy::MIDIControlChangeHandler(byte channel, byte number, byte value) { char txt[21]; sprintf(txt, "CC:%03d V:%3d Ch:%02d", number, value, channel); print(txt); } void MidiSpy::MIDIAfterTouchChannelHandler(byte channel, byte pressure) { char txt[21]; sprintf(txt, "Pressure:%03d Ch:%02d", pressure, channel); print(txt); } void MidiSpy::MIDIPitchBendHandler(byte channel, int bend) { char txt[21]; sprintf(txt, "Bend:%03d Ch:%02d", bend, channel); print(txt); } void MidiSpy::print(char* msg) { strncpy(pMsg[3], pMsg[2], 20); strncpy(pMsg[2], pMsg[1], 20); strncpy(pMsg[1], pMsg[0], 20); strncpy(pMsg[0], msg, 20); display.printAt(0, 0, 20, pMsg[3]); display.printAt(0, 1, 20, pMsg[2]); display.printAt(0, 2, 20, pMsg[1]); display.printAt(0, 3, 20, pMsg[0]); } void MidiSpy::run() { strcpy(pMsg[2], ""); strcpy(pMsg[1], ""); strcpy(pMsg[0], ""); print("Waiting for MIDI...."); do { midiIO.read(); } while (!backButton.pressed()); }
mit
kriss98/Softuni-Tech-Module-September-2017-Programming-Fundamentals
Programming-Fundamentals/09.Methods.-Debugging-And-Troubleshooting-Code/05.Temperature-Conversion/StartUp.cs
454
using System; namespace _05.Temperature_Conversion { public class StartUp { public static void Main() { double fahrenheit = double.Parse(Console.ReadLine()); Console.WriteLine($"{ConvertToCelsius(fahrenheit):f2}"); } public static double ConvertToCelsius(double fahrenheit) { double celsius = (fahrenheit - 32) * 5 / 9; return celsius; } } }
mit
mzikherman/metaphysics-1
src/schema/v2/sale/__tests__/index.test.js
16419
/* eslint-disable promise/always-return */ import moment from "moment" import _ from "lodash" import { fill } from "lodash" import { runQuery, runAuthenticatedQuery } from "schema/v2/test/utils" import gql from "lib/gql" describe("Sale type", () => { const sale = { id: "foo-foo", _id: "123", currency: "$", is_auction: true, increment_strategy: "default", } const execute = async (query, gravityResponse = sale, context = {}) => { return await runQuery(query, { saleLoader: () => Promise.resolve(gravityResponse), ...context, }) } describe("auction state", () => { const query = ` { sale(id: "foo-foo") { internalID isPreview isOpen isLiveOpen isClosed isRegistrationClosed status } } ` it("returns the correct values when the sale is closed", async () => { sale.auction_state = "closed" expect(await execute(query)).toEqual({ sale: { internalID: "123", isPreview: false, isOpen: false, isLiveOpen: false, isClosed: true, isRegistrationClosed: false, status: "closed", }, }) }) it("returns the correct values when the sale is in preview mode", async () => { sale.auction_state = "preview" expect(await execute(query)).toEqual({ sale: { internalID: "123", isPreview: true, isOpen: false, isLiveOpen: false, isClosed: false, isRegistrationClosed: false, status: "preview", }, }) }) it("returns the correct values when the sale is open", async () => { sale.auction_state = "open" sale.live_start_at = moment().add(2, "days") expect(await execute(query)).toEqual({ sale: { internalID: "123", isPreview: false, isOpen: true, isLiveOpen: false, isClosed: false, isRegistrationClosed: false, status: "open", }, }) }) it("returns the correct values when the sale is in live mode", async () => { sale.auction_state = "open" sale.live_start_at = moment().subtract(2, "days") expect(await execute(query)).toEqual({ sale: { internalID: "123", isPreview: false, isOpen: true, isLiveOpen: true, isClosed: false, isRegistrationClosed: false, status: "open", }, }) }) it("returns the correct values when sale registration is closed", async () => { sale.auction_state = "open" sale.registration_ends_at = moment().subtract(2, "days") expect(await execute(query)).toEqual({ sale: { internalID: "123", isPreview: false, isOpen: true, isLiveOpen: true, isClosed: false, isRegistrationClosed: true, status: "open", }, }) }) }) describe("liveURLIfOpen", () => { it("returns liveURLIfOpen if isLiveOpen", async () => { sale.auction_state = "open" sale.is_live_open = true sale.live_start_at = moment().subtract(2, "days") const query = ` { sale(id: "foo-foo") { liveURLIfOpen } } ` expect(await execute(query)).toEqual({ sale: { liveURLIfOpen: "https://live.artsy.net/foo-foo", }, }) }) it("returns liveURLIfOpen if live_start_at < now", async () => { sale.auction_state = "open" sale.live_start_at = moment().subtract(2, "days") const query = ` { sale(id: "foo-foo") { liveURLIfOpen } } ` expect(await execute(query)).toEqual({ sale: { liveURLIfOpen: "https://live.artsy.net/foo-foo", }, }) }) it("returns null if not isLiveOpen", async () => { sale.auction_state = "open" sale.live_start_at = moment().add(2, "days") const query = ` { sale(id: "foo-foo") { liveURLIfOpen } } ` expect(await execute(query)).toEqual({ sale: { liveURLIfOpen: null, }, }) }) }) describe("saleArtworksConnection", () => { it("returns data from gravity", () => { const query = ` { sale(id: "foo-foo") { saleArtworksConnection(first: 10) { pageInfo { hasNextPage } edges { node { slug } } } } } ` sale.eligible_sale_artworks_count = 20 const context = { saleLoader: () => Promise.resolve(sale), saleArtworksLoader: sinon.stub().returns( Promise.resolve({ body: fill(Array(sale.eligible_sale_artworks_count), { id: "some-id", }), }) ), } return runAuthenticatedQuery(query, context).then(data => { expect(data).toMatchSnapshot() }) }) }) describe("saleArtworks", () => { const saleArtworks = [ { id: "foo", minimum_next_bid_cents: 400000, sale_id: "foo-foo", }, { id: "bar", minimum_next_bid_cents: 20000, sale_id: "foo-foo", }, ] // FIXME: Cannot read property 'increments' of undefined it.skip("returns data from gravity", async () => { const query = ` { sale(id: "foo-foo") { saleArtworksConnection { edges { node { increments { cents } } } } } } ` const context = { saleLoader: () => Promise.resolve(sale), saleArtworksLoader: sinon .stub() .returns(Promise.resolve({ body: saleArtworks })), incrementsLoader: () => { return Promise.resolve([ { key: "default", increments: [ { from: 0, to: 399999, amount: 5000, }, { from: 400000, to: 1000000, amount: 10000, }, ], }, ]) }, } return runAuthenticatedQuery(query, context).then(data => { expect( data.sale.saleArtworksConnection[0].increments.cents.slice(0, 5) ).toEqual([400000, 410000, 420000, 430000, 440000]) expect( data.sale.saleArtworksConnection[1].increments.cents.slice(0, 5) ).toEqual([20000, 25000, 30000, 35000, 40000]) }) }) }) describe("buyers premium", () => { it("returns a valid object even if the sale has no buyers premium", async () => { const query = ` { sale(id: "foo-foo") { internalID buyersPremium { amount cents } } } ` expect(await execute(query)).toEqual({ sale: { internalID: "123", buyersPremium: null, }, }) }) it("returns a valid object if there is a complete buyers premium", async () => { sale.buyers_premium = { schedule: [ { min_amount_cents: 10000, currency: "USD", }, ], } const query = ` { sale(id: "foo-foo") { internalID buyersPremium { amount cents } } } ` expect(await execute(query)).toEqual({ sale: { internalID: "123", buyersPremium: [ { amount: "$100", cents: 10000, }, ], }, }) }) }) describe("associated sale", () => { const query = ` { sale(id: "foo-foo") { internalID associatedSale { slug } } } ` it("does not error, but returns null for associated sale", async () => { expect(await execute(query)).toEqual({ sale: { internalID: "123", associatedSale: null, }, }) }) it("returns the associated sale", async () => { sale.associated_sale = { id: "foo-foo", } expect(await execute(query)).toEqual({ sale: { internalID: "123", associatedSale: { slug: "foo-foo", }, }, }) }) }) describe("promoted sale", () => { const query = ` { sale(id: "foo-foo") { internalID promotedSale { slug } } } ` it("does not error, but returns null for promoted sale", async () => { expect(await execute(query)).toEqual({ sale: { internalID: "123", promotedSale: null, }, }) }) it("returns the promoted sale", async () => { sale.promoted_sale = { id: "foo-foo", } expect(await execute(query)).toEqual({ sale: { internalID: "123", promotedSale: { slug: "foo-foo", }, }, }) }) }) describe("isGalleryAuction, isBenefit", () => { const query = ` { sale(id: "foo-foo") { isBenefit isGalleryAuction } } ` it("returns whether the gallery is a gallery auction", async () => { sale.is_benefit = false sale.is_gallery_auction = true expect(await execute(query)).toEqual({ sale: { isBenefit: false, isGalleryAuction: true, }, }) }) it("returns whether the gallery is a benefit auction", async () => { sale.is_benefit = true sale.is_gallery_auction = false expect(await execute(query)).toEqual({ sale: { isBenefit: true, isGalleryAuction: false, }, }) }) }) describe("display_timely_at", () => { const testData = [ [ { auction_state: "open", live_start_at: moment().subtract(1, "days"), registration_ends_at: moment().subtract(2, "days"), }, "in progress", ], [{ end_at: moment().subtract(1, "days") }, null], [ { auction_state: "open", live_start_at: moment().subtract(2, "days"), registration_ends_at: moment().subtract(3, "days"), }, "in progress", ], [ { live_start_at: moment().add(2, "minutes"), registration_ends_at: moment().subtract(2, "days"), }, "live in 2m", ], [ { live_start_at: moment().add(10, "minutes"), registration_ends_at: moment().subtract(2, "days"), }, "live in 10m", ], [ { live_start_at: moment().add(20, "minutes"), registration_ends_at: moment().subtract(2, "days"), }, "live in 20m", ], [ { live_start_at: moment().add(20, "days"), registration_ends_at: moment().add(10, "minutes"), }, `register by\n${moment(moment().add(10, "minutes")).format("ha")}`, ], [ { live_start_at: moment().add(30, "days"), registration_ends_at: moment().add(10, "days"), }, `register by\n${moment(moment().add(10, "days")).format("MMM D, ha")}`, ], [ { live_start_at: moment().add(20, "days"), registration_ends_at: moment().add(10, "days"), }, "live in 20d", true, // used to fake registered bidder for this scenario ], [ { start_at: moment().add(1, "minutes"), end_at: moment().add(10, "minutes"), }, "ends in 10m", ], [ { start_at: moment().add(10, "minutes"), end_at: moment().add(20, "minutes"), }, "ends in 20m", ], [ { start_at: moment().add(1, "hours"), end_at: moment().add(10, "hours"), }, "ends in 10h", ], [ { start_at: moment().add(2, "hours"), end_at: moment().add(20, "hours"), }, "ends in 20h", ], [ { start_at: moment().add(1, "days"), end_at: moment().add(2, "days") }, "ends in 2d", ], [ { start_at: moment().add(1, "days"), end_at: moment().add(5, "days") }, "ends in 5d", ], [ { start_at: moment().add(20, "days"), end_at: moment().add(30, "days"), }, `ends ${moment(moment().add(30, "days")).format("MMM D")}`, ], [ { start_at: moment().add(30, "days"), end_at: moment().add(40, "days"), }, `ends ${moment(moment().add(40, "days")).format("MMM D")}`, ], ] const query = ` { sale(id: "foo-foo") { displayTimelyAt } } ` it("returns proper labels", async () => { const results = await Promise.all( testData.map(async ([input, _label, is_registered]) => { let bidders = [] if (is_registered) { bidders = [{}] } return await execute( query, { currency: "$", is_auction: true, ...input, }, { meBiddersLoader: () => Promise.resolve(bidders) } ) }) ) const labels = testData.map(test => test[1]) results.forEach(({ sale: { displayTimelyAt } }, index) => { expect(displayTimelyAt).toEqual(labels[index]) }) }) }) describe("registration status", () => { it("returns null if not registered for this sale", async () => { const query = gql` { sale(id: "foo-foo") { registrationStatus { qualifiedForBidding } } } ` const context = { saleLoader: () => Promise.resolve(sale), meBiddersLoader: () => Promise.resolve([]), } const data = await runAuthenticatedQuery(query, context) expect(data.sale.registrationStatus).toEqual(null) }) // FIXME: meBiddersLoader is not a function? it.skip("returns the registration status for the sale", async () => { const query = gql` { sale(id: "foo-foo") { registrationStatus { qualifiedForBidding } } } ` const context = { saleLoader: () => Promise.resolve(sale), meBiddersLoader: params => _.isEqual(params, { saleID: "foo-foo" }) && Promise.resolve([{ qualifiedForBidding: true }]), } const data = await runAuthenticatedQuery(query, context) expect(data.sale.registrationStatus.qualifiedForBidding).toEqual(true) }) }) describe("artworksConnection", () => { it("returns data from gravity", () => { const query = ` { sale(id: "foo-foo") { artworksConnection(first: 10) { pageInfo { hasNextPage } edges { node { slug } } } } } ` sale.eligible_sale_artworks_count = 20 const context = { saleLoader: () => Promise.resolve(sale), saleArtworksLoader: () => Promise.resolve({ body: fill(Array(sale.eligible_sale_artworks_count), { artwork: { id: "some-id", }, }), }), } return runAuthenticatedQuery(query, context).then(data => { expect(data.sale.artworksConnection.pageInfo.hasNextPage).toBe(true) expect(data).toMatchSnapshot() }) }) }) })
mit
genuinelucifer/CppSharp
tests/Common/Common.cpp
9626
#include "Common.h" #include <string.h> Foo::Foo() { auto p = new int[4]; for (int i = 0; i < 4; i++) p[i] = i; SomePointer = p; SomePointerPointer = &SomePointer; } Foo::Foo(Private p) { } const char* Foo::GetANSI() { return "ANSI"; } void Foo::TakesTypedefedPtr(FooPtr date) { } int Foo::TakesRef(const Foo &other) { return other.A; } bool Foo::operator ==(const Foo& other) const { return A == other.A && B == other.B; } Foo2::Foo2() {} Foo2 Foo2::operator<<(signed int i) { Foo2 foo; foo.C = C << i; foo.valueTypeField = valueTypeField; foo.valueTypeField.A <<= i; return foo; } Foo2 Foo2::operator<<(signed long l) { return *this << (signed int) l; } char Foo2::testCharMarshalling(char c) { return c; } void Foo2::testKeywordParam(void* where, Bar::Item event, int ref) { } Bar::Bar() { } Bar::Bar(Foo foo) { } Bar::Bar(const Foo* foo) { } Bar::Item Bar::RetItem1() const { return Bar::Item1; } Bar* Bar::returnPointerToValueType() { return this; } bool Bar::operator ==(const Bar& arg1) const { return A == arg1.A && B == arg1.B; } bool operator ==(Bar::Item item, const Bar& bar) { return item == bar.RetItem1(); } Bar2::Nested::operator int() const { return 300; } Bar2::operator int() const { return 500; } Bar2::operator Foo2() { Foo2 f; f.A = A; f.B = B; f.C = C; return f; } Foo2 Bar2::needFixedInstance() const { Foo2 f; f.A = A; f.B = B; f.C = C; return f; } Hello::Hello () { //cout << "Ctor!" << "\n"; } Hello::Hello(const Hello& hello) { } void Hello::PrintHello(const char* s) { //cout << "PrintHello: " << s << "\n"; } bool Hello::test1(int i, float f) { return i == f; } int Hello::add(int a, int b) { return a + b; } int Hello::AddFoo(Foo foo) { return (int)(foo.A + foo.B); } int Hello::AddFooRef(Foo& foo) { return AddFoo(foo); } int Hello::AddFooPtr(Foo* foo) { return AddFoo(*foo); } int Hello::AddFooPtrRef(Foo*& foo) { return AddFoo(*foo); } int Hello::AddFoo2(Foo2 foo) { return (int)(foo.A + foo.B + foo.C); } int Hello::AddBar(Bar bar) { return (int)(bar.A + bar.B); } int Hello::AddBar2(Bar2 bar) { return (int)(bar.A + bar.B + bar.C); } Foo Hello::RetFoo(int a, float b) { Foo foo; foo.A = a; foo.B = b; return foo; } int Hello::RetEnum(Enum e) { return (int)e; } Hello* Hello::RetNull() { return 0; } bool Hello::TestPrimitiveOut(CS_OUT float* f) { *f = 10; return true; } bool Hello::TestPrimitiveOutRef(CS_OUT float& f) { f = 10; return true; } bool Hello::TestPrimitiveInOut(CS_IN_OUT int* i) { *i += 10; return true; } bool Hello::TestPrimitiveInOutRef(CS_IN_OUT int& i) { i += 10; return true; } void Hello::EnumOut(int value, CS_OUT Enum* e) { *e = (Enum)value; } void Hello::EnumOutRef(int value, CS_OUT Enum& e) { e = (Enum)value; } void Hello::EnumInOut(CS_IN_OUT Enum* e) { if (*e == Enum::E) *e = Enum::F; } void Hello::EnumInOutRef(CS_IN_OUT Enum& e) { if (e == Enum::E) e = Enum::F; } void Hello::StringOut(CS_OUT const char** str) { *str = "HelloStringOut"; } void Hello::StringOutRef(CS_OUT const char*& str) { str = "HelloStringOutRef"; } void Hello::StringInOut(CS_IN_OUT const char** str) { if (strcmp(*str, "Hello") == 0) *str = "StringInOut"; else *str = "Failed"; } void Hello::StringInOutRef(CS_IN_OUT const char*& str) { if (strcmp(str, "Hello") == 0) str = "StringInOutRef"; else str = "Failed"; } void Hello::StringTypedef(const TypedefChar* str) { } int unsafeFunction(const Bar& ret, char* testForString, void (*foo)(int)) { return ret.A; } const wchar_t* wcharFunction(const wchar_t* constWideChar) { return constWideChar; } Bar indirectReturn() { return Bar(); } int TestDelegates::Double(int N) { return N * 2; } int TestDelegates::Triple(int N) { return N * 3; } int TestDelegates::StdCall(DelegateStdCall del) { return del(1); } int TestDelegates::CDecl(DelegateCDecl del) { return del(1); } int ImplementsAbstractFoo::pureFunction(typedefInOverride i) { return 5; } int ImplementsAbstractFoo::pureFunction1() { return 10; } int ImplementsAbstractFoo::pureFunction2(bool* ok) { return 15; } ReturnsAbstractFoo::ReturnsAbstractFoo() {} const AbstractFoo& ReturnsAbstractFoo::getFoo() { return i; } Ex2* DerivedException::clone() { return 0; } void DefaultParameters::Foo(int a, int b) { } void DefaultParameters::Foo(int a) { } void DefaultParameters::Bar() const { } void DefaultParameters::Bar() { } int test(common& s) { return 5; } Bar::Item operator |(Bar::Item left, Bar::Item right) { return left | right; } void va_listFunction(va_list v) { } void TestDelegates::MarshalUnattributedDelegate(DelegateInGlobalNamespace del) { } int TestDelegates::MarshalAnonymousDelegate(int (*del)(int n)) { return del(1); } void TestDelegates::MarshalAnonymousDelegate2(int (*del)(int n)) { } void TestDelegates::MarshalAnonymousDelegate3(float (*del)(float n)) { } int f(int n) { return n * 2; } int (*TestDelegates::MarshalAnonymousDelegate4())(int n) { return f; } ClassA::ClassA(int value) { Value = value; } ClassB::ClassB(const ClassA &x) { Value = x.Value; } ClassC::ClassC(const ClassA *x) { Value = x->Value; } ClassC::ClassC(const ClassB &x) { Value = x.Value; } void DelegateNamespace::Nested::f1(void (*)()) { } void TestDelegates::MarshalDelegateInAnotherUnit(DelegateInAnotherUnit del) { } void DelegateNamespace::f2(void (*)()) { } std::string HasStdString::testStdString(std::string s) { return s + "_test"; } std::string& HasStdString::getStdString() { return s; } TypeMappedIndex::TypeMappedIndex() { } InternalCtorAmbiguity::InternalCtorAmbiguity(void* param) { // cause a crash to indicate this is the incorrect ctor to invoke throw; } InvokesInternalCtorAmbiguity::InvokesInternalCtorAmbiguity() : ptr(0) { } InternalCtorAmbiguity* InvokesInternalCtorAmbiguity::InvokeInternalCtor() { return ptr; } HasFriend::HasFriend(int m) { this->m = m; } int HasFriend::getM() { return m; } DLL_API const HasFriend operator+(const HasFriend& f1, const HasFriend& f2) { return HasFriend(f1.m + f2.m); } DLL_API const HasFriend operator-(const HasFriend& f1, const HasFriend& f2) { return HasFriend(f1.m - f2.m); } DifferentConstOverloads::DifferentConstOverloads() : i(5) { } bool DifferentConstOverloads::operator ==(const DifferentConstOverloads& other) { return i == other.i; } bool DifferentConstOverloads::operator !=(const DifferentConstOverloads& other) { return i != other.i; } bool DifferentConstOverloads::operator ==(int number) const { return false; } int HasVirtualProperty::getProperty() { return 1; } void HasVirtualProperty::setProperty(int target) { } ChangedAccessOfInheritedProperty::ChangedAccessOfInheritedProperty() { } int ChangedAccessOfInheritedProperty::getProperty() { return 2; } void ChangedAccessOfInheritedProperty::setProperty(int value) { } Empty ReturnsEmpty::getEmpty() { return Empty(); } void funcTryRefTypePtrOut(CS_OUT RefTypeClassPassTry* classTry) { } void funcTryRefTypeOut(CS_OUT RefTypeClassPassTry classTry) { } void funcTryValTypePtrOut(CS_OUT ValueTypeClassPassTry* classTry) { } void funcTryValTypeOut(CS_OUT ValueTypeClassPassTry classTry) { } HasProblematicFields::HasProblematicFields() : b(false), c(0) { } HasVirtualReturningHasProblematicFields::HasVirtualReturningHasProblematicFields() { } HasProblematicFields HasVirtualReturningHasProblematicFields::returnsProblematicFields() { return HasProblematicFields(); } int BaseClassVirtual::retInt(const Foo1& foo) { return 1; } BaseClassVirtual BaseClassVirtual::getBase() { return DerivedClassVirtual(); } int DerivedClassVirtual::retInt(const Foo2& foo) { return 2; } DerivedClassOverrideAbstractVirtual::DerivedClassOverrideAbstractVirtual() { } int DerivedClassOverrideAbstractVirtual::retInt(const Foo& foo) { return 1; } BufferForVirtualFunction::BufferForVirtualFunction() { } OverridesNonDirectVirtual::OverridesNonDirectVirtual() { } int OverridesNonDirectVirtual::retInt(const Foo& foo) { return 3; } AbstractWithVirtualDtor::AbstractWithVirtualDtor() { } AbstractWithVirtualDtor::~AbstractWithVirtualDtor() { } NonTrivialDtorBase::NonTrivialDtorBase() { } NonTrivialDtorBase::~NonTrivialDtorBase() { } NonTrivialDtor::NonTrivialDtor() { dtorCalled = false; } NonTrivialDtor::~NonTrivialDtor() { dtorCalled = true; } DerivedFromTemplateInstantiationWithVirtual::DerivedFromTemplateInstantiationWithVirtual() { } HasProtectedEnum::HasProtectedEnum() { } void HasProtectedEnum::function(ProtectedEnum param) { } void FuncWithTypeAlias(custom_int_t i) { } void FuncWithTemplateTypeAlias(TypeAliasTemplate<int> i) { } HasOverloadsWithDifferentPointerKindsToSameType::HasOverloadsWithDifferentPointerKindsToSameType() { } HasOverloadsWithDifferentPointerKindsToSameType::~HasOverloadsWithDifferentPointerKindsToSameType() { } void HasOverloadsWithDifferentPointerKindsToSameType::overload(int& i) { } void HasOverloadsWithDifferentPointerKindsToSameType::overload(int&& i) { } void HasOverloadsWithDifferentPointerKindsToSameType::overload(const int& i) { } void hasPointerParam(Foo* foo, int i) { } void hasPointerParam(const Foo& foo) { }
mit