repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
AmandaCMS/amanda-cms | amanda/faq/emails.py | 355 | from mailviews.messages import TemplatedHTMLEmailMessageView
class NewTopicNotifyTemplatedHTMLEmailMessageView(
TemplatedHTMLEmailMessageView
):
subject_template_name = 'faq/emails/new_topic_notify_subject.txt'
body_template_name = 'faq/emails/new_topic_notify_body.txt'
html_body_template_name = 'faq/emails/new_topic_notify_body.html'
| mit |
MPDieckmann/Snippets | ts/date/date.ts | 10784 | /// <reference path="../default.d.ts" />
/// <reference path="../i18n/i18n.ts" />
/**
* replace i18n, if it is not available
*/
// @ts-ignore
var i18n: (text: string) => string = i18n || ((text: string) => text.toString());
/**
* Formatiert ein(e) angegebene(s) Ortszeit/Datum gemäß PHP 7
* @param string die Zeichenfolge, die umgewandelt wird
* @param timestamp der zu verwendende Zeitpunkt
*/
function date(string: string, timestamp: number | string | Date = new Date): string {
var d = (timestamp instanceof Date) ? timestamp : new Date(timestamp);
return string.split("").map(string => string in date._functions ? date._functions[string](d).toString() : string).join("");
}
namespace date {
/**
* Diese Zeichenfolgen werden von `date()` benutzt um die Wochentage darzustellen
*
* Sie werden von `i18n(weekdays[i] , "mpc")` übersetzt
*/
export const weekdays = [
"Sunday",
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday"
];
/**
* Diese Zeichenfolgen werden von `date()` benutzt um die Monate darzustellen
*
* Sie werden von `i18n(months[i] , "mpc")` übersetzt
*/
export const months = [
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December"
];
/**
* Gibt die aktuelle Zeit und Datum in Millisekunden aus.
* @param timestamp Zahl oder `Date`-Objekt/Zeichenfolge um nicht die aktuelle Zeit zu verwenden
*/
export function time(timestamp: number | string | Date = new Date): number {
var d = (timestamp instanceof Date) ? timestamp : new Date(timestamp);
return d.getTime();
}
/**
* Die verwendeten Funktionen zur mwandlung der Buchstaben
* @private
*/
export const _functions: {
[s: string]: (d: Date) => string | number;
} = Object.create(null);
/**
* Fügt einer Zahl eine führende 0 hinzu, wenn sie kleiner als 10 ist
* @param value Zahl, der eine führende 0 hinzugefügt werden soll
* @private
*/
export function _leadingZero(value: number): string {
return value < 10 ? "0" + value : value.toString();
}
// #region Tag
/**
* Tag des Monats, 2-stellig mit führender Null
* 01 bis 31
*/
_functions.d = date => {
return _leadingZero(date.getDate());
};
/**
* Wochentag, gekürzt auf drei Buchstaben
* Mon bis Sun
*/
_functions.D = date => {
return i18n(weekdays[date.getDay()], "mpc").substr(0, 3);
}
/**
* Tag des Monats ohne führende Nullen
* 1 bis 31
*/
_functions.j = date => {
return date.getDate();
}
/**
* Ausgeschriebener Wochentag
* Sunday bis Saturday
*/
_functions.l = date => {
return i18n(weekdays[date.getDay()], "mpc");
};
/**
* Numerische Repräsentation des Wochentages gemäß ISO-8601 (in PHP 5.1.0 hinzugefügt)
* 1 (für Montag) bis 7 (für Sonntag)
*/
_functions.N = date => {
return date.getDay() == 0 ? 7 : date.getDay();
};
/**
* Anhang der englischen Aufzählung für einen Monatstag, zwei Zeichen
* st, nd, rd oder th
* Zur Verwendung mit j empfohlen.
*/
_functions.S = date => {
switch (date.getDate()) {
case 1:
return i18n("st", "mpc");
case 2:
return i18n("nd", "mpc");
case 3:
return i18n("rd", "mpc");
default:
return i18n("th", "mpc");
}
};
/**
* Numerischer Tag einer Woche
* 0 (für Sonntag) bis 6 (für Samstag)
*/
_functions.w = date => {
return 7 == date.getDay() ? 0 : date.getDay();
}
/**
* Der Tag des Jahres (von 0 beginnend)
* 0 bis 366
*/
_functions.z = date => {
return Math.floor((date.getTime() - new Date(date.getFullYear(), 0, 0).getTime()) / 864e5).toString();
};
// #endregion
// #region Woche
/**
* Der Tag des Jahres (von 0 beginnend)
* Beispiel: 42 (die 42. Woche im Jahr)
*/
_functions.W = date => {
var tmp_date = new Date(date.getTime() + 864e5 * (3 - (date.getDay() + 6) % 7));
return Math.floor(1.5 + (tmp_date.getTime() - new Date(new Date(tmp_date.getFullYear(), 0, 4).getTime() + 864e5 * (3 - (new Date(tmp_date.getFullYear(), 0, 4).getDay() + 6) % 7)).getTime()) / 864e5 / 7);
};
// #endregion
// #region Monat
/**
* Monat als ganzes Wort, wie January oder March
* January bis December
*/
_functions.F = date => {
return i18n(months[date.getMonth()], "mpc");
};
/**
* Monat als Zahl, mit führenden Nullen
* 01 bis 12
*/
_functions.m = date => {
return _leadingZero(date.getMonth() + 1);
};
/**
* Monatsname mit drei Buchstaben
* Jan bis Dec
*/
_functions.M = date => {
return i18n(months[date.getMonth()], "mpc").substr(0, 3);
};
/**
* Monatszahl, ohne führende Nullen
* 1 bis 12
*/
_functions.n = date => {
return date.getMonth() + 1;
};
/**
* Anzahl der Tage des angegebenen Monats
* 28 bis 31
*/
_functions.t = date => {
return 2 != date.getMonth() ? 9 == date.getMonth() || 4 == date.getMonth() || 6 == date.getMonth() || 11 == date.getMonth() ? "30" : "31" : date.getFullYear() % 4 == 0 && date.getFullYear() % 100 != 0 ? "29" : "28";
};
// #endregion
// #region Jahr
/**
* Schaltjahr oder nicht
* 1 für ein Schaltjahr, ansonsten 0
*/
_functions.L = date => {
return date.getFullYear() % 4 == 0 && date.getFullYear() % 100 != 0 ? 1 : 0;
};
/**
* Jahreszahl der Kalenderwoche gemäß ISO-8601. Dies ergibt den gleichen Wert wie Y, außer wenn die ISO-Kalenderwoche (W) zum vorhergehenden oder nächsten Jahr gehört, wobei dann jenes Jahr verwendet wird (in PHP 5.1.0 hinzugefügt).
* Beispiele: 1999 oder 2003
*/
_functions.o = date => {
var tmp_d = new Date(date.toISOString());
tmp_d.setDate(date.getDate() - (date.getDay() == 0 ? 7 : date.getDay()) + 1);
return tmp_d.getFullYear();
}
/**
* Vierstellige Jahreszahl
* Beispiele: 1999 oder 2003
*/
_functions.Y = date => {
return date.getFullYear();
};
/**
* Jahreszahl, zweistellig
* Beispiele: 99 oder 03
*/
_functions.y = date => {
var year = date.getFullYear().toString();
return year.substr(year.length - 2, 2);
};
// #endregion
// #region Uhrzeit
/**
* Kleingeschrieben: Ante meridiem (Vormittag) und Post meridiem (Nachmittag)
* am oder pm
*/
_functions.a = date => {
if (date.getHours() > 12) {
return i18n("pm", "mpc");
}
return i18n("am", "mpc");
};
/**
* Großgeschrieben: Ante meridiem (Vormittag) und Post meridiem (Nachmittag)
* AM oder PM
*/
_functions.A = date => {
if (date.getHours() > 12) {
return i18n("PM", "mpc");
}
return i18n("AM", "mpc");
};
/**
* Swatch-Internet-Zeit
* 000 - 999
*/
_functions.B = () => {
console.error("date(): B is currently not supported");
return "B";
};
/**
* Stunde im 12-Stunden-Format, ohne führende Nullen
* 1 bis 12
*/
_functions.g = date => {
return date.getHours() > 12 ? date.getHours() - 11 : date.getHours() + 1;
};
/**
* Stunde im 24-Stunden-Format, ohne führende Nullen
* 0 bis 23
*/
_functions.G = date => {
return date.getHours() + 1;
};
/**
* Stunde im 12-Stunden-Format, mit führenden Nullen
* 01 bis 12
*/
_functions.h = date => {
return _leadingZero(date.getHours() > 12 ? date.getHours() - 11 : date.getHours() + 1);
};
/**
* Stunde im 24-Stunden-Format, mit führenden Nullen
* 00 bis 23
*/
_functions.H = date => {
return _leadingZero(date.getHours() + 1);
};
/**
* Minuten, mit führenden Nullen
* 00 bis 59
*/
_functions.i = date => {
return _leadingZero(date.getMinutes());
};
/**
* Sekunden, mit führenden Nullen
* 00 bis 59
*/
_functions.s = date => {
return _leadingZero(date.getSeconds());
};
/**
* Mikrosekunden (hinzugefügt in PHP 5.2.2). Beachten Sie, dass date() immer die Ausgabe 000000 erzeugen wird, da es einen Integer als Parameter erhält, wohingegen DateTime::format() Mikrosekunden unterstützt, wenn DateTime mit Mikrosekunden erzeugt wurde.
* Beispiel: 654321
*/
_functions.u = date => {
return date.getMilliseconds();
};
/**
* Millisekunden (hinzugefügt in PHP 7.0.0). Es gelten die selben Anmerkungen wie für u.
* Example: 654
*/
_functions.v = date => {
return date.getMilliseconds();
};
// #endregion
// #region Zeitzone
_functions.e = () => {
console.error("date(): e is currently not supported");
return "e";
};
/**
* Fällt ein Datum in die Sommerzeit
* 1 bei Sommerzeit, ansonsten 0.
*/
_functions.I = () => {
console.error("date(): I is currently not supported");
return "I";
};
/**
* Zeitunterschied zur Greenwich time (GMT) in Stunden
* Beispiel: +0200
*/
_functions.O = () => {
console.error("date(): O is currently not supported");
return "O";
}
/**
* Zeitunterschied zur Greenwich time (GMT) in Stunden mit Doppelpunkt zwischen Stunden und Minuten (hinzugefügt in PHP 5.1.3)
* Beispiel: +02:00
*/
_functions.P = () => {
console.error("date(): P is currently not supported");
return "P";
}
/**
* Abkürzung der Zeitzone
* Beispiele: EST, MDT ...
*/
_functions.T = () => {
console.error("date(): T is currently not supported");
return "T";
}
/**
* Offset der Zeitzone in Sekunden. Der Offset für Zeitzonen westlich von UTC ist immer negativ und für Zeitzonen östlich von UTC immer positiv.
* -43200 bis 50400
*/
_functions.Z = () => {
console.error("date(): Z is currently not supported");
return "Z";
}
// #endregion
// #region Vollständige(s) Datum/Uhrzeit
/**
* ISO 8601 Datum (hinzugefügt in PHP 5)
* 2004-02-12T15:19:21+00:00
*/
_functions.c = () => {
console.error("date(): c is currently not supported");
return "c";
}
/**
* Gemäß » RFC 2822 formatiertes Datum
* Beispiel: Thu, 21 Dec 2000 16:01:07 +0200
*/
_functions.r = () => {
console.error("date(): r is currently not supported");
return "r";
}
/**
* Sekunden seit Beginn der UNIX-Epoche (January 1 1970 00:00:00 GMT)
* Siehe auch time()
*/
_functions.U = date => {
return date.getTime();
};
// #endregion
}
| mit |
adlersantos/knights_travails | spec/spec_helper.rb | 762 | # This file was generated by the `rspec --init` command. Conventionally, all
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
# Require this file using `require "spec_helper"` to ensure that it is only
# loaded once.
#
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
require 'knights_travails'
RSpec.configure do |config|
config.treat_symbols_as_metadata_keys_with_true_values = true
config.run_all_when_everything_filtered = true
config.filter_run :focus
# Run specs in random order to surface order dependencies. If you find an
# order dependency and want to debug it, you can fix the order by providing
# the seed, which is printed after each run.
# --seed 1234
config.order = 'random'
end
| mit |
jumski/tmux_status | spec/tmux_status/wrappers/acpi_battery_spec.rb | 1083 | require 'spec_helper'
describe TmuxStatus::Wrappers::AcpiBattery do
before do
string = File.read("spec/fixtures/battery_#{state}.txt")
template = ERB.new(string)
output = template.result(binding)
described_class.any_instance.stubs(output: output)
end
subject { described_class.new }
let(:percentage) { 77 }
context 'when battery is discharging' do
let(:state) { :discharging }
its(:percentage) { should eq(77) }
its(:discharging?) { should be_true }
its(:charging?) { should be_false }
its(:charged?) { should be_false }
end
context 'when battery is charging' do
let(:state) { :charging }
its(:percentage) { should eq(77) }
its(:discharging?) { should be_false }
its(:charging?) { should be_true }
its(:charged?) { should be_false }
end
context 'when battery is charged' do
let(:state) { :charged }
its(:percentage) { should eq(100) }
its(:discharging?) { should be_false }
its(:charging?) { should be_false }
its(:charged?) { should be_true }
end
end
| mit |
sg-medien/sails-hook-simple-api | blueprints/find.js | 3488 | /**
* Blueprint dependencies
*/
var
actionUtil = require('../lib/actionUtil'),
apiUtil = require('../lib/apiUtil'),
_ = require('lodash');
/**
* Find Records
*
* get /:modelIdentity
* * /:modelIdentity/find
*
* An API call to find and return model instances from the data adapter
* using the specified criteria. If an id was specified, just the instance
* with that unique id will be returned.
*
* Optional:
* @param {Object} where - the find criteria (passed directly to the ORM)
* @param {Integer} limit - the maximum number of records to send back (useful for pagination)
* @param {Integer} skip - the number of records to skip (useful for pagination)
* @param {String} sort - the order of returned records, e.g. `name ASC` or `age DESC`
* @param {String} callback - default jsonp callback param (i.e. the name of the js function returned)
*/
module.exports = function findRecords(req, res) {
// Look up the model
var
Model = apiUtil.modelGetByRequest(req);
// Parse `criteria` by the request object
var
criteria = apiUtil.parseCriteria(req);
// Lookup for records that match the specified criteria
var
query = Model.find({ select: apiUtil.parseFields(req) })
.where(criteria)
.paginate({ page: apiUtil.parsePage(req), limit: apiUtil.parseLimit(req) })
.sort(apiUtil.parseSort(req));
// Populate the query according to the current "populate" settings
query = apiUtil.populate(query, req);
query.exec(function found(err, matchingRecords) {
if (err) return res.negotiate(err);
// Clear matching records if objects are empty
if (matchingRecords && matchingRecords.length) {
if ((_.isFunction(matchingRecords[0].toJSON) && (!_.isObject(matchingRecords[0].toJSON()) || !_.size(matchingRecords[0].toJSON()))) || (!_.isFunction(matchingRecords[0].toJSON) && (!_.isObject(matchingRecords[0]) || !_.size(matchingRecords[0])))) {
matchingRecords = [];
}
}
if ((!matchingRecords || !matchingRecords.length) && _.size(criteria)) return res.notFound(matchingRecords);
Model.count().where(criteria).exec(function countCB(err, matchingRecordsCount) {
if (err) return res.negotiate(err);
var
paginationUrls = apiUtil.getPaginationUrls(req, matchingRecordsCount),
headerLinkArr = [],
headerLink = '';
// Add pagination headers
res.set('x-total-count', matchingRecordsCount);
res.set('x-limit', apiUtil.parseLimit(req));
res.set('x-current-page', apiUtil.parsePage(req));
res.set('x-total-pages', Math.ceil(matchingRecordsCount/apiUtil.parseLimit(req)));
// Build link header
for (var rel in paginationUrls) {
headerLinkArr.push('<' + paginationUrls[rel] + '>; rel="' + rel + '"');
}
headerLink = headerLinkArr.join(',');
// Add link header if not empty
if (headerLink != '') {
res.set('link', headerLink);
}
// Only `.watch()` for new instances of the model if
// `autoWatch` is enabled.
if (req._sails.hooks.pubsub && req.isSocket) {
Model.subscribe(req, matchingRecords);
if (req.options.autoWatch) { Model.watch(req); }
// Also subscribe to instances of all associated models
_.each(matchingRecords, function (record) {
actionUtil.subscribeDeep(req, record);
});
}
// Send response
res.ok(matchingRecords);
});
});
};
| mit |
Djaygo/Udemy-Java | src/PackageDemo/Main.java | 232 | package PackageDemo;
/**
* Created by diego on 26/07/2017.
*/
public class Main {
public static void main(String[] args) {
MyWindow myWindow = new MyWindow("Complete Java");
myWindow.setVisible(true);
}
}
| mit |
artsy/force | src/v2/Apps/Settings/Routes/Auctions/Components/__tests__/UserRegistrationAuctions.jest.tsx | 2173 | import { graphql } from "react-relay"
import { setupTestWrapper } from "v2/DevTools/setupTestWrapper"
import { UserRegistrationAuctionsFragmentContainer } from "../UserRegistrationAuctions"
import { UserRegistrationAuctions_Test_Query } from "v2/__generated__/UserRegistrationAuctions_Test_Query.graphql"
jest.unmock("react-relay")
describe("UserRegistrationAuctions", () => {
const { getWrapper } = setupTestWrapper<UserRegistrationAuctions_Test_Query>({
Component: UserRegistrationAuctionsFragmentContainer,
query: graphql`
query UserRegistrationAuctions_Test_Query @relay_test_operation {
me {
...UserRegistrationAuctions_me
}
}
`,
})
it("renders correctly", () => {
const wrapper = getWrapper({
Me: () => ({
saleRegistrationsConnection: {
edges: [
{
node: {
sale: {
name: "the-good-sale",
},
},
},
],
},
}),
})
expect(wrapper.text()).toContain("the-good-sale")
})
it("renders -Nothing to Show- message when no available sale found", () => {
const wrapper = getWrapper({
Me: () => ({
saleRegistrationsConnection: {
edges: [],
},
}),
})
expect(wrapper.text()).toContain("Nothing to Show")
})
it("renders -Registration for Upcoming Auctions- title even if data is not there", () => {
const wrapper = getWrapper({
Me: () => ({
saleRegistrationsConnection: {
edges: [],
},
}),
})
expect(wrapper.text()).toContain("Registration for Upcoming Auctions")
})
it("renders button with correct href of sale", () => {
const wrapper = getWrapper({
Me: () => ({
saleRegistrationsConnection: {
edges: [
{
node: {
sale: {
name: "the-good-sale",
href: "/the-good-sale",
},
},
},
],
},
}),
})
expect(wrapper.find("Button").props().to).toEqual("/the-good-sale")
})
})
| mit |
RadicalFx/radical | src/Radical.Tests/ChangeTracking/ReferenceEqualityComparerTest.cs | 5258 | using Microsoft.VisualStudio.TestTools.UnitTesting;
using SharpTestsEx;
using System;
using System.Collections;
using System.Collections.Generic;
namespace Radical.Tests.ChangeTracking
{
[TestClass()]
public class ReferenceEqualityComparerTest
{
[TestMethod()]
[TestCategory("ChangeTracking")]
public void referenceEqualityComparer_ctor()
{
ReferenceEqualityComparer<GenericParameterHelper> instance = new ReferenceEqualityComparer<GenericParameterHelper>();
}
[TestMethod]
[TestCategory("ChangeTracking")]
public void generic_iEqualityComparer_equals_with_equal_instances()
{
var instance = new ReferenceEqualityComparer<GenericParameterHelper>();
var x = new GenericParameterHelper();
var y = x;
bool actual = instance.Equals(x, y);
actual.Should().Be.True();
}
[TestMethod]
[TestCategory("ChangeTracking")]
public void generic_iEqualityComparer_equals_with_instance_and_null()
{
var instance = new ReferenceEqualityComparer<GenericParameterHelper>();
var x = new GenericParameterHelper();
bool actual = instance.Equals(x, null);
actual.Should().Be.False();
}
[TestMethod]
[TestCategory("ChangeTracking")]
public void generic_iEqualityComparer_equals_with_null_and_instance()
{
var instance = new ReferenceEqualityComparer<GenericParameterHelper>();
var y = new GenericParameterHelper();
bool actual = instance.Equals(null, y);
actual.Should().Be.False();
}
[TestMethod]
[TestCategory("ChangeTracking")]
public void generic_iEqualityComparer_equals_with_null_and_null()
{
var instance = new ReferenceEqualityComparer<GenericParameterHelper>();
bool actual = instance.Equals(null, null);
actual.Should().Be.True();
}
[TestMethod]
[TestCategory("ChangeTracking")]
public void generic_iEqualityComparer_getHashCode()
{
IEqualityComparer<GenericParameterHelper> instance = new ReferenceEqualityComparer<GenericParameterHelper>();
var obj = new GenericParameterHelper();
int expected = obj.GetHashCode();
int actual = instance.GetHashCode(obj);
actual.Should().Be.EqualTo(expected);
}
[TestMethod]
[ExpectedException(typeof(ArgumentNullException))]
[TestCategory("ChangeTracking")]
public void generic_iEqualityComparer_getHashCode_null_reference()
{
IEqualityComparer<GenericParameterHelper> instance = new ReferenceEqualityComparer<GenericParameterHelper>();
int actual = instance.GetHashCode(null);
}
[TestMethod]
[TestCategory("ChangeTracking")]
public void iEqualityComparer_equals_with_equal_instances()
{
IEqualityComparer instance = new ReferenceEqualityComparer<GenericParameterHelper>();
var x = new GenericParameterHelper();
var y = x;
bool actual = instance.Equals(x, y);
actual.Should().Be.True();
}
[TestMethod]
[TestCategory("ChangeTracking")]
public void iEqualityComparer_equals_with_instance_and_null()
{
IEqualityComparer instance = new ReferenceEqualityComparer<GenericParameterHelper>();
var x = new GenericParameterHelper();
bool actual = instance.Equals(x, null);
actual.Should().Be.False();
}
[TestMethod]
[TestCategory("ChangeTracking")]
public void iEqualityComparer_equals_with_null_and_instance()
{
IEqualityComparer instance = new ReferenceEqualityComparer<GenericParameterHelper>();
var y = new GenericParameterHelper();
bool actual = instance.Equals(null, y);
actual.Should().Be.False();
}
[TestMethod]
[TestCategory("ChangeTracking")]
public void iEqualityComparer_equals_with_null_and_null()
{
IEqualityComparer instance = new ReferenceEqualityComparer<GenericParameterHelper>();
bool actual = instance.Equals(null, null);
actual.Should().Be.True();
}
[TestMethod]
[TestCategory("ChangeTracking")]
public void iEqualityComparer_getHashCode()
{
IEqualityComparer instance = new ReferenceEqualityComparer<GenericParameterHelper>();
var obj = new GenericParameterHelper();
int expected = obj.GetHashCode();
int actual = instance.GetHashCode(obj);
actual.Should().Be.EqualTo(expected);
}
[TestMethod]
[ExpectedException(typeof(ArgumentNullException))]
[TestCategory("ChangeTracking")]
public void iEqualityComparer_getHashCode_null_reference()
{
IEqualityComparer instance = new ReferenceEqualityComparer<GenericParameterHelper>();
int actual = instance.GetHashCode(null);
}
}
}
| mit |
drhayes/burrowdefender | src/assets.js | 2971 | // assets.js
//
// Everything concerned with loading and using images and sounds. Additionally,
// each of the managers in this module are singletons instantiated at import.
(function(global, $) {
var im = (function() {
var toload = [],
loaded = false,
images = {},
image_counter = 0;
return {
// adds an image to the image manager. once the images are loaded, adding
// another image is an error.
add: function(name, src) {
if (loaded) {
throw {
error: 'Adding after load'
};
};
toload.push({
name: name,
src: src
});
},
// loads all the added images at once
load: function(prefix) {
prefix = prefix || '';
var load, img;
loaded = true;
var i = toload.length;
while (i--) {
load = toload[i];
img = new Image();
img.onload = function() {
image_counter++;
}
img.src = prefix + load.src;
images[load.name] = img;
}
},
readywait: function(callback) {
var l = toload.length;
// busy wait while images are loading...
var loader;
loader = setInterval(function() {
if (image_counter >= l) {
// stop the timer
clearInterval(loader);
// call the callback
callback();
}
}, 100); // retry every 100 ms...
},
// draw a named loaded image
draw: function(ctx, name, x, y) {
if (!loaded) {
return;
}
ctx.drawImage(images[name], x, y);
},
get: function(name) {
return images[name];
},
// for testing only!
reset: function() {
toload = [];
loaded = false;
images = {};
}
};
}());
var sm = (function() {
var sprites = {};
return {
add: function(name, size, frames) {
var img = im.get(name);
var sprite = {
image: img,
size: size,
frames: frames
};
sprites[name] = sprite;
},
draw: function(ctx, name, frame, x, y) {
var sprite = sprites[name];
// the images might not have loaded when adding sprites... check again to be sure
if (!sprite.image) {
sprite.image = im.get(name);
}
var frame = sprite.frames[frame];
if (!frame) {
console.log('did not get frame for ' + name + ' frame ' + frame);
return;
}
ctx.drawImage(sprite.image, frame.x, frame.y, sprite.size.x, sprite.size.y, x, y, sprite.size.x, sprite.size.y);
},
reset: function() {
sprites = {};
}
}
}());
loki.modules.assets = function(env) {
// the single imagemanager
env.imagemanager = im;
// the single spritemanager
env.spritemanager = sm;
}
}(this, jQuery)); | mit |
flywingdevelopers/rn-naive | example/src/test_itemselect.js | 3475 | /**
* <TextInput>
* Kevin Lee 3 Sept 2017
**/
import React from 'react'
import {
Screen, Bar, Block,
DataBar, DataBlock,
Text, CheckBox, Input,
ItemSelect,
} from 'rn-naive'
export default class App extends React.Component {
constructor(props) {
super(props)
this.state = {
disabled: false,
d1: '',
d2: '',
d3: '',
d4: '',
d5: '',
}
}
logos = [
{icon:'logo-android', text:'Android'},
{icon:'logo-apple', text:'Apple'},
{icon:'logo-dropbox', text:'Dropbox'},
{icon:'logo-facebook', text:'Facebook'},
{icon:'logo-playstation', text:'PlayStation'},
{icon:'logo-xbox', text:'X-Box'},
]
genders = [
{icon:'md-man', text:'Man', iconColor:'green', textStyle:{color:'green'}},
{icon:'md-woman', text:'Woman', iconColor:'red', textStyle:{color:'red'}},
]
render() {
k = 1
return (
<Screen lines={16}
title='<ItemSelect> Control Test'
left={<CheckBox iconOnly
style={{alignItems:'flex-start'}}
iconSize={20}
iconColor='#ddd'
icons={['md-eye-off', 'md-eye']}
value={this.state.DisableAll}
onValueChange={(disabled)=>this.setState({disabled})}
/>}
>
<Bar lines={2} text={<Text D3>ItemSelect let user select from a list. It is base on Picker. This element does not align very well with other input elements.</Text>} />
<Block lines={7} style={{borderWidth:1, margin:2}}>
<DataBar
text={(k++) + '. Basic Input'}
input={<Input disabled={this.state.disabled}/>}
/>
<DataBar
text={(k++) + '. Basic ItemSelect'}
input={<ItemSelect items={this.logos}
disabled={this.state.disabled}
value={this.state.d1}
onValueChange={(d1)=>this.setState({d1})}
/>}
/>
<DataBar
text={(k++) + '. Underlined Input'}
input={<Input underline disabled={this.state.disabled}/>}
/>
<DataBar
text={(k++) + '. Underlined ItemSelect'}
input={<ItemSelect items={this.logos}
underline
disabled={this.state.disabled}
value={this.state.d2}
onValueChange={(d2)=>this.setState({d2})}
/>}
/>
</Block>
<Bar lines={2}>
<DataBlock style={{borderWidth:1}}
text={(k++) + '. Basic Input'}
input={<Input disabled={this.state.disabled}/>}
/>
<DataBlock style={{borderWidth:1}}
text={(k++) + '. Basic ItemSelect'}
input={<ItemSelect items={this.genders}
disabled={this.state.disabled}
value={this.state.d3}
onValueChange={(d3)=>this.setState({d3})}
/>}
/>
</Bar>
<Bar lines={2}>
<DataBlock style={{borderWidth:1}}
text={(k++) + '. Underlined Input'}
input={<Input underline disabled={this.state.disabled}/>}
/>
<DataBlock style={{borderWidth:1}}
text={(k++) + '. Underlined ItemSelect'}
input={<ItemSelect items={this.genders} underline
disabled={this.state.disabled}
value={this.state.d4}
onValueChange={(d4)=>this.setState({d4})}
/>}
/>
</Bar>
</Screen>
)
}
}
| mit |
nmarazov/TA-Homework | Courses 2016-spring/C#Fundamentals/Homework03_Operators and Expressions/04_ConsoleInAndOut/12_FallingRocks/Program.cs | 241 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _12_FallingRocks
{
class Program
{
static void Main(string[] args)
{
}
}
}
| mit |
krishnarajvr/php-boilerplate | sami.php | 840 | <?php
use Sami\Sami;
use Sami\Parser\Filter\TrueFilter;
use Symfony\Component\Finder\Finder;
/*
* This will look for all PHP files in the directory and in folders
*/
$iterator = Finder::create()
->files()
->name('*.php')
->in($dir = './src');
/*
* This will set up some options in the documentation
*/
$sami = new Sami($iterator, array(
'title' => 'Demo Project', // This will be the name of the docs
'build_dir' => __DIR__ . '/docs', // This will be the folder the docs will be put in
'cache_dir' => __DIR__ . '/tmp/cache', // This will be generated by sami, but you can .gitignore it
'default_opened_level' => 2,
));
/*
* Include this section if you want sami to document
* private and protected functions/properties
*/
$sami['filter'] = function () {
return new TrueFilter();
};
return $sami;
| mit |
CodingBrothers/futurimages | src/main/java/com/codingbrothers/futurimages/service/impl/ImageDataUploader.java | 235 | package com.codingbrothers.futurimages.service.impl;
import com.codingbrothers.futurimages.domain.Image;
public interface ImageDataUploader {
void uploadData(Image image, com.google.appengine.api.images.Image imageData);
}
| mit |
Updownquark/ObServe | src/main/java/org/observe/collect/impl/CachingObservableCollection.java | 4544 | package org.observe.collect.impl;
import java.util.Collection;
import java.util.Iterator;
import java.util.Objects;
import java.util.function.Consumer;
import org.observe.ObservableValue;
import org.observe.ObservableValueEvent;
import org.observe.Observer;
import org.observe.Subscription;
import org.observe.collect.CollectionSession;
import org.observe.collect.ObservableCollection;
import org.observe.collect.ObservableElement;
import org.qommons.Transaction;
import com.google.common.reflect.TypeToken;
/**
* An observable collection that wraps an observable collection and caches its elements. This can improve performance a great deal for
* collections that are heavily derived. This class constitutes a memory leak if it is discarded without first calling
* {@link #unsubscribe()} unless all of its sources are constant.
*
* @param <E> The type of element in the collection
*/
public abstract class CachingObservableCollection<E> implements ObservableCollection<E> {
private final ObservableCollection<E> theWrapped;
private final ObservableCollection<E> theCache;
private final ObservableCollection<E> theImmutableCache;
private Subscription theSubscription;
/** @param wrap The collection to keep a cache of */
public CachingObservableCollection(ObservableCollection<E> wrap) {
theWrapped = wrap;
theCache = createCacheCollection(wrap);
theImmutableCache = theCache.immutable();
theSubscription = sync(theWrapped, theCache);
}
/**
* @param wrap The collection to keep a cache of
* @return The collection that will hold the cached values
*/
protected abstract ObservableCollection<E> createCacheCollection(ObservableCollection<E> wrap);
/**
* @param wrapped The collection to keep a cache of
* @param cached The collection that will hold the cached values
* @return The subscription to unsubscribe to release the listener on <code>wrapped</code>
*/
protected Subscription sync(ObservableCollection<E> wrapped, ObservableCollection<E> cached) {
return wrapped.onElement(el -> {
el.subscribe(new Observer<ObservableValueEvent<E>>() {
@Override
public <V extends ObservableValueEvent<E>> void onNext(V event) {
if (event.isInitial())
cached.add(event.getValue());
else if (!Objects.equals(event.getOldValue(), event.getValue())) {
cached.remove(event.getOldValue());
cached.add(event.getValue());
}
}
@Override
public <V extends ObservableValueEvent<E>> void onCompleted(V event) {
cached.remove(event.getValue());
}
});
});
}
/** @return The collection that is supplying the values */
protected ObservableCollection<E> getWrapped() {
return theWrapped;
}
/** @return The cached elements */
protected ObservableCollection<E> getCache() {
return theImmutableCache;
}
/** Releases this caching collection's listener on its target */
public synchronized void unsubscribe() {
if (theSubscription != null) {
theSubscription.unsubscribe();
theSubscription = null;
}
}
@Override
public TypeToken<E> getType() {
return theCache.getType();
}
@Override
public ObservableValue<CollectionSession> getSession() {
return theWrapped.getSession();
}
@Override
public boolean isSafe() {
return theCache.isSafe();
}
@Override
public int size() {
return theCache.size();
}
@Override
public Subscription onElement(Consumer<? super ObservableElement<E>> onElement) {
return theCache.onElement(onElement);
}
@Override
public Iterator<E> iterator() {
// Not supporting remove for now
return theImmutableCache.iterator();
}
@Override
public boolean canRemove(Object value) {
return theWrapped.canRemove(value);
}
@Override
public boolean canAdd(E value) {
return theWrapped.canAdd(value);
}
@Override
public boolean add(E e) {
return theWrapped.add(e);
}
@Override
public boolean remove(Object o) {
return theWrapped.remove(o);
}
@Override
public boolean addAll(Collection<? extends E> c) {
return theWrapped.addAll(c);
}
@Override
public boolean removeAll(Collection<?> c) {
return theWrapped.removeAll(c);
}
@Override
public boolean retainAll(Collection<?> c) {
return theWrapped.retainAll(c);
}
@Override
public void clear() {
theWrapped.clear();
}
@Override
public Transaction lock(boolean write, Object cause) {
return theWrapped.lock(write, cause);
}
}
| mit |
pvandommelen/parser | src/Expression/Not/NotExpression.php | 523 | <?php
namespace PeterVanDommelen\Parser\Expression\Not;
use PeterVanDommelen\Parser\Expression\ExpressionInterface;
class NotExpression implements ExpressionInterface
{
/** @var ExpressionInterface */
private $inner;
/**
* @param ExpressionInterface $inner
*/
public function __construct(ExpressionInterface $inner)
{
$this->inner = $inner;
}
/**
* @return ExpressionInterface
*/
public function getExpression()
{
return $this->inner;
}
} | mit |
ARM-software/armnn | src/backends/backendsCommon/test/layerTests/FloorTestImpl.cpp | 3350 | //
// Copyright © 2017 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//
#include "FloorTestImpl.hpp"
#include <backendsCommon/test/DataTypeUtils.hpp>
#include <backendsCommon/test/TensorCopyUtils.hpp>
#include <backendsCommon/test/WorkloadTestUtils.hpp>
#include <test/TensorHelpers.hpp>
template<armnn::DataType ArmnnType, typename T>
LayerTestResult<T, 4> SimpleFloorTest(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
const armnn::ITensorHandleFactory& tensorHandleFactory)
{
IgnoreUnused(memoryManager);
armnn::TensorInfo inputTensorInfo({1, 3, 2, 3}, ArmnnType);
inputTensorInfo.SetQuantizationScale(0.1f);
armnn::TensorInfo outputTensorInfo(inputTensorInfo);
outputTensorInfo.SetQuantizationScale(0.1f);
std::vector<T> input = ConvertToDataType<ArmnnType>(
{
-37.5f, -15.2f, -8.76f, -2.0f, -1.5f, -1.3f, -0.5f, -0.4f, 0.0f,
1.0f, 0.4f, 0.5f, 1.3f, 1.5f, 2.0f, 8.76f, 15.2f, 37.5f
},
inputTensorInfo);
std::vector<T> actualOutput(outputTensorInfo.GetNumElements());
std::vector<T> expectedOutput = ConvertToDataType<ArmnnType>(
{
-38.0f, -16.0f, -9.0f, -2.0f, -2.0f, -2.0f, -1.0f, -1.0f, 0.0f,
1.0f, 0.0f, 0.0f, 1.0f, 1.0f, 2.0f, 8.0f, 15.0f, 37.0f
},
outputTensorInfo);
std::unique_ptr<armnn::ITensorHandle> inputHandle = tensorHandleFactory.CreateTensorHandle(inputTensorInfo);
std::unique_ptr<armnn::ITensorHandle> outputHandle = tensorHandleFactory.CreateTensorHandle(outputTensorInfo);
armnn::FloorQueueDescriptor data;
armnn::WorkloadInfo info;
AddInputToWorkload(data, info, inputTensorInfo, inputHandle.get());
AddOutputToWorkload(data, info, outputTensorInfo, outputHandle.get());
std::unique_ptr<armnn::IWorkload> workload = workloadFactory.CreateFloor(data, info);
inputHandle->Allocate();
outputHandle->Allocate();
CopyDataToITensorHandle(inputHandle.get(), input.data());
workload->Execute();
CopyDataFromITensorHandle(actualOutput.data(), outputHandle.get());
return LayerTestResult<T, 4>(actualOutput,
expectedOutput,
outputHandle->GetShape(),
outputTensorInfo.GetShape());
}
//
// Explicit template specializations
//
template LayerTestResult<armnn::ResolveType<armnn::DataType::Float32>, 4>
SimpleFloorTest<armnn::DataType::Float32>(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
const armnn::ITensorHandleFactory& tensorHandleFactory);
template LayerTestResult<armnn::ResolveType<armnn::DataType::Float16>, 4>
SimpleFloorTest<armnn::DataType::Float16>(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
const armnn::ITensorHandleFactory& tensorHandleFactory);
template LayerTestResult<armnn::ResolveType<armnn::DataType::QSymmS16>, 4>
SimpleFloorTest<armnn::DataType::QSymmS16>(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
const armnn::ITensorHandleFactory& tensorHandleFactory);
| mit |
jreeserunyan/phase-0 | week-7/nums_commas.js | 3768 | // Separate Numbers with Commas in JavaScript **Pairing Challenge**
// I worked on this challenge with: Irina.
// Pseudocode
// input: integer
// output: number with commas
// define function that takes integer as argument
// create array where each digit in the array is a digit from the input integer
// convert number to string
// split between each character
// reverse the string
// starting from index 0 of the reversed string,
// place commas when the index is evenly divisible by three
// as long as the index is smaller than the length of the array
// return number with commas
// reverse
// put back together
// remove trailing comma
// return final output
// Initial Solution
// function separateComma(number) {
// console.log(number); // <- print number
// var array = number.toString().split("").reverse();
// console.log(array) // <- print array to show where we are at
// for (var index = 0; index < array.length; index++) {
// if (index % 3 === 0){
// array[index] += ","
// console.log(index); // <- print index where the commas will be going
// }
// }
// var array = array.reverse().join("").slice(0,-1); // <- reverse, join and remove trailing commas
// return array
// }
// console.log(separateComma(12345678)); // <- print comma separated string
// --------------------------------------------
// Refactored Solution
function separateComma(number) {
var array = number.toString().split("").reverse()
for (var index = 0; index < array.length; index++) {
if (index % 3 === 0){
array[index] += ","
}
}
array = array.reverse().join("").slice(0,-1)
return array
}
console.log (separateComma(12345678))
// Reflection
// What was it like to approach the problem from the perspective of JavaScript?
// Did you approach the problem differently?
// irina and I tried to take the simplest concepts we remembered (without looking at
// our Ruby answers) and get those to work
// What did you learn about iterating over arrays in JavaScript?
// Reverse is way less flexible.
// I wasn't always sure what was going to happen so I kept printing the results to the console.
// Semicolons seemed necessary, but now I don't think they are.
// What was different about solving this problem in JavaScript? What built-in methods did you find to incorporate in your refactored solution?
// It was harder. JS is a lot less flexible and has far fewer built in methods.
// Our very first ideas didn't work, so to get a handle on things,
// I tried to find a solution for adding commas to a specific number.
// That helped.
// --------------------------------------------
// NOTES for me
// --------------------------------------------
// this one was a basic thing that printed
// for (var i = 0; i < "Jump!".length-1; i++) {
// console.log(i);
// }
// --------------------------------------------
// this was a step forward.
// function separateComma(number) {
// var n = number.toString()
// var m = n.split("").reverse()
// for (var i = 0; i < .length-1; i++) {
// console.log(number);
// }
// }
// --------------------------------------------
// this functioned in that it turns the number into an array;
// reversed it and turned it back into a string
// function separateComma(number) {
// var n = String(number)
// for (var i = 0; i < n.length-1; i++) {
// var m = n.split("").reverse().join("")
// console.log(m);
// }
// }
// var x = separateComma(100000000)
// --------------------------------------------
// This bit returns false, so it prints the else statement. Don't know what to do with it.
// if (m%3 === 0){
// console.log("I want it.");
// }
// else {
// console.log("This one is also interesting.");
// } | mit |
Iamhumanareyou/EmprendeCoin | src/qt/locale/paycoin_et.ts | 124278 | <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0" language="et">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="14"/>
<source>About MonedaDelEmprendimiento</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/aboutdialog.ui" line="53"/>
<source><b>MonedaDelEmprendimiento</b> version</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/aboutdialog.ui" line="97"/>
<source>Copyright © 2009-2012 Bitcoin Developers
Copyright © 2011-2014 Peercoin Developers
Copyright © 2014-2015 MonedaDelEmprendimiento Developers
This is experimental software.
Distributed under the MIT 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 (https://www.openssl.org/) and cryptographic software written by Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>AddressBookPage</name>
<message>
<location filename="../forms/addressbookpage.ui" line="14"/>
<source>Address Book</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/addressbookpage.ui" line="20"/>
<source>These are your MonedaDelEmprendimiento 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"></translation>
</message>
<message>
<location filename="../forms/addressbookpage.ui" line="33"/>
<source>Double-click to edit address or label</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/addressbookpage.ui" line="57"/>
<source>Create a new address</source>
<translation>Loo uus aadress</translation>
</message>
<message>
<location filename="../forms/addressbookpage.ui" line="60"/>
<source>&New Address...</source>
<translation>&Uus aadress...</translation>
</message>
<message>
<location filename="../forms/addressbookpage.ui" line="71"/>
<source>Copy the currently selected address to the system clipboard</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/addressbookpage.ui" line="74"/>
<source>&Copy to Clipboard</source>
<translation>Kopeeri lõikelauale</translation>
</message>
<message>
<location filename="../forms/addressbookpage.ui" line="85"/>
<source>Show &QR Code</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/addressbookpage.ui" line="96"/>
<source>Sign a message to prove you own this address</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/addressbookpage.ui" line="99"/>
<source>&Sign Message</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/addressbookpage.ui" line="110"/>
<source>Delete the currently selected address from the list. Only sending addresses can be deleted.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/addressbookpage.ui" line="113"/>
<source>&Delete</source>
<translation>&Kustuta</translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="65"/>
<source>Copy address</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="66"/>
<source>Copy label</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="67"/>
<source>Edit</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="68"/>
<source>Delete</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="273"/>
<source>Export Address Book Data</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="274"/>
<source>Comma separated file (*.csv)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="287"/>
<source>Error exporting</source>
<translation>Viga eksportimisel</translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="287"/>
<source>Could not write to file %1.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>AddressTableModel</name>
<message>
<location filename="../addresstablemodel.cpp" line="79"/>
<source>Label</source>
<translation>Silt</translation>
</message>
<message>
<location filename="../addresstablemodel.cpp" line="79"/>
<source>Address</source>
<translation>Aadress</translation>
</message>
<message>
<location filename="../addresstablemodel.cpp" line="115"/>
<source>(no label)</source>
<translation>(silti pole)</translation>
</message>
</context>
<context>
<name>AskPassphraseDialog</name>
<message>
<location filename="../forms/askpassphrasedialog.ui" line="26"/>
<source>Dialog</source>
<translation>Dialoog</translation>
</message>
<message>
<location filename="../forms/askpassphrasedialog.ui" line="94"/>
<source>TextLabel</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/askpassphrasedialog.ui" line="47"/>
<source>Enter passphrase</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/askpassphrasedialog.ui" line="61"/>
<source>New passphrase</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/askpassphrasedialog.ui" line="75"/>
<source>Repeat new passphrase</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/askpassphrasedialog.ui" line="114"/>
<source>Toggle Keyboard</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="37"/>
<source>Enter the new passphrase to the wallet.<br/>Please use a passphrase of <b>10 or more random characters</b>, or <b>eight or more words</b>.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="38"/>
<source>Encrypt wallet</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="41"/>
<source>This operation needs your wallet passphrase to unlock the wallet.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="46"/>
<source>Unlock wallet</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="49"/>
<source>This operation needs your wallet passphrase to decrypt the wallet.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="54"/>
<source>Decrypt wallet</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="57"/>
<source>Change passphrase</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="58"/>
<source>Enter the old and new passphrase to the wallet.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="106"/>
<source>Confirm wallet encryption</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="116"/>
<location filename="../askpassphrasedialog.cpp" line="165"/>
<source>Wallet encrypted</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="213"/>
<location filename="../askpassphrasedialog.cpp" line="237"/>
<source>Warning: The Caps Lock key is on.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="122"/>
<location filename="../askpassphrasedialog.cpp" line="129"/>
<location filename="../askpassphrasedialog.cpp" line="171"/>
<location filename="../askpassphrasedialog.cpp" line="177"/>
<source>Wallet encryption failed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="107"/>
<source>WARNING: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR MonedaDelEmprendimientoS</b>!
Are you sure you wish to encrypt your wallet?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="117"/>
<source>MonedaDelEmprendimiento will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your MonedaDelEmprendimientos from being stolen by malware infecting your computer.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="123"/>
<source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="130"/>
<location filename="../askpassphrasedialog.cpp" line="178"/>
<source>The supplied passphrases do not match.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="141"/>
<source>Wallet unlock failed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="142"/>
<location filename="../askpassphrasedialog.cpp" line="153"/>
<location filename="../askpassphrasedialog.cpp" line="172"/>
<source>The passphrase entered for the wallet decryption was incorrect.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="152"/>
<source>Wallet decryption failed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="166"/>
<source>Wallet passphrase was successfully changed.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>BitcoinGUI</name>
<message>
<location filename="../bitcoingui.cpp" line="191"/>
<source>&Overview</source>
<translation type="unfinished">&Ülevaade</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="192"/>
<source>Show general overview of wallet</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="197"/>
<source>&Transactions</source>
<translation type="unfinished">&Tehingud</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="198"/>
<source>Browse transaction history</source>
<translation type="unfinished">Sirvi tehingute ajalugu</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="203"/>
<source>&Minting</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="204"/>
<source>Show your minting capacity</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="209"/>
<source>&Address Book</source>
<translation type="unfinished">&Aadressiraamat</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="210"/>
<source>Edit the list of stored addresses and labels</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="215"/>
<source>&Receive coins</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="216"/>
<source>Show the list of addresses for receiving payments</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="221"/>
<source>&Send coins</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="227"/>
<source>Sign/Verify &message</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="228"/>
<source>Prove you control an address</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="249"/>
<source>E&xit</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="250"/>
<source>Quit application</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="254"/>
<source>Show information about MonedaDelEmprendimiento</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="256"/>
<source>About &Qt</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="257"/>
<source>Show information about Qt</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="259"/>
<source>&Options...</source>
<translation type="unfinished">&Valikud...</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="264"/>
<source>&Export...</source>
<translation type="unfinished">&Ekspordi...</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="265"/>
<source>Export the data in the current tab to a file</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="266"/>
<source>&Encrypt Wallet</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="267"/>
<source>Encrypt or decrypt wallet</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="269"/>
<source>&Unlock Wallet for Minting Only</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="270"/>
<source>Unlock wallet only for minting. Sending coins will still require the passphrase.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="272"/>
<source>&Backup Wallet</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="273"/>
<source>Backup wallet to another location</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="274"/>
<source>&Change Passphrase</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="275"/>
<source>Change the passphrase used for wallet encryption</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="276"/>
<source>&Debug window</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="277"/>
<source>Open debugging and diagnostic console</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="301"/>
<source>&File</source>
<translation type="unfinished">&Fail</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="310"/>
<source>&Settings</source>
<translation type="unfinished">&Seaded</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="317"/>
<source>&Help</source>
<translation type="unfinished">&Abiinfo</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="326"/>
<source>Tabs toolbar</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="338"/>
<source>Actions toolbar</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="350"/>
<source>[testnet]</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="658"/>
<source>This transaction is over the size limit. You can still send it for a fee of %1. Do you want to pay the fee?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="76"/>
<source>MonedaDelEmprendimiento Wallet</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="222"/>
<source>Send coins to a MonedaDelEmprendimiento address</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="253"/>
<source>&About MonedaDelEmprendimiento</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="260"/>
<source>Modify configuration options for MonedaDelEmprendimiento</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="262"/>
<source>Show/Hide &MonedaDelEmprendimiento</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="263"/>
<source>Show or hide the MonedaDelEmprendimiento window</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="415"/>
<source>MonedaDelEmprendimiento client</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="443"/>
<source>p-qt</source>
<translation type="unfinished"></translation>
</message>
<message numerus="yes">
<location filename="../bitcoingui.cpp" line="507"/>
<source>%n active connection(s) to MonedaDelEmprendimiento network</source>
<translation type="unfinished">
<numerusform></numerusform>
<numerusform></numerusform>
</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="531"/>
<source>Synchronizing with network...</source>
<translation type="unfinished"></translation>
</message>
<message numerus="yes">
<location filename="../bitcoingui.cpp" line="533"/>
<source>~%n block(s) remaining</source>
<translation type="unfinished">
<numerusform></numerusform>
<numerusform></numerusform>
</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="544"/>
<source>Downloaded %1 of %2 blocks of transaction history (%3% done).</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="556"/>
<source>Downloaded %1 blocks of transaction history.</source>
<translation type="unfinished"></translation>
</message>
<message numerus="yes">
<location filename="../bitcoingui.cpp" line="571"/>
<source>%n second(s) ago</source>
<translation type="unfinished">
<numerusform></numerusform>
<numerusform></numerusform>
</translation>
</message>
<message numerus="yes">
<location filename="../bitcoingui.cpp" line="575"/>
<source>%n minute(s) ago</source>
<translation type="unfinished">
<numerusform></numerusform>
<numerusform></numerusform>
</translation>
</message>
<message numerus="yes">
<location filename="../bitcoingui.cpp" line="579"/>
<source>%n hour(s) ago</source>
<translation type="unfinished">
<numerusform></numerusform>
<numerusform></numerusform>
</translation>
</message>
<message numerus="yes">
<location filename="../bitcoingui.cpp" line="583"/>
<source>%n day(s) ago</source>
<translation type="unfinished">
<numerusform></numerusform>
<numerusform></numerusform>
</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="589"/>
<source>Up to date</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="594"/>
<source>Catching up...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="602"/>
<source>Last received block was generated %1.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="661"/>
<source>Sending...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="688"/>
<source>Sent transaction</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="689"/>
<source>Incoming transaction</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="690"/>
<source>Date: %1
Amount: %2
Type: %3
Address: %4
</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="821"/>
<source>Wallet is <b>encrypted</b> and currently <b>unlocked for block minting only</b></source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="821"/>
<source>Wallet is <b>encrypted</b> and currently <b>unlocked</b></source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="831"/>
<source>Wallet is <b>encrypted</b> and currently <b>locked</b></source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="888"/>
<source>Backup Wallet</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="888"/>
<source>Wallet Data (*.dat)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="891"/>
<source>Backup Failed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="891"/>
<source>There was an error trying to save the wallet data to the new location.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoin.cpp" line="128"/>
<source>A fatal error occurred. MonedaDelEmprendimiento can no longer continue safely and will quit.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>CoinControlDialog</name>
<message>
<location filename="../forms/coincontroldialog.ui" line="14"/>
<source>Coin Control</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/coincontroldialog.ui" line="45"/>
<source>Quantity:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/coincontroldialog.ui" line="64"/>
<location filename="../forms/coincontroldialog.ui" line="96"/>
<source>0</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/coincontroldialog.ui" line="77"/>
<source>Bytes:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/coincontroldialog.ui" line="125"/>
<source>Amount:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/coincontroldialog.ui" line="144"/>
<location filename="../forms/coincontroldialog.ui" line="224"/>
<location filename="../forms/coincontroldialog.ui" line="310"/>
<location filename="../forms/coincontroldialog.ui" line="348"/>
<source>0.00 BTC</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/coincontroldialog.ui" line="157"/>
<source>Priority:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/coincontroldialog.ui" line="205"/>
<source>Fee:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/coincontroldialog.ui" line="240"/>
<source>Low Output:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/coincontroldialog.ui" line="262"/>
<location filename="../coincontroldialog.cpp" line="572"/>
<source>no</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/coincontroldialog.ui" line="291"/>
<source>After Fee:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/coincontroldialog.ui" line="326"/>
<source>Change:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/coincontroldialog.ui" line="395"/>
<source>(un)select all</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/coincontroldialog.ui" line="408"/>
<source>Tree mode</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/coincontroldialog.ui" line="424"/>
<source>List mode</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/coincontroldialog.ui" line="469"/>
<source>Amount</source>
<translation type="unfinished">Kogus</translation>
</message>
<message>
<location filename="../forms/coincontroldialog.ui" line="479"/>
<source>Address</source>
<translation type="unfinished">Aadress</translation>
</message>
<message>
<location filename="../forms/coincontroldialog.ui" line="484"/>
<source>Date</source>
<translation type="unfinished">Kuupäev</translation>
</message>
<message>
<location filename="../forms/coincontroldialog.ui" line="489"/>
<source>Confirmations</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/coincontroldialog.ui" line="492"/>
<source>Confirmed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/coincontroldialog.ui" line="497"/>
<source>Coin days</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/coincontroldialog.ui" line="502"/>
<source>Priority</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="36"/>
<source>Copy address</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="37"/>
<source>Copy label</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="38"/>
<location filename="../coincontroldialog.cpp" line="64"/>
<source>Copy amount</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="39"/>
<source>Copy transaction ID</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="63"/>
<source>Copy quantity</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="65"/>
<source>Copy fee</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="66"/>
<source>Copy after fee</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="67"/>
<source>Copy bytes</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="68"/>
<source>Copy priority</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="69"/>
<source>Copy low output</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="70"/>
<source>Copy change</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="388"/>
<source>highest</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="389"/>
<source>high</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="390"/>
<source>medium-high</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="391"/>
<source>medium</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="395"/>
<source>low-medium</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="396"/>
<source>low</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="397"/>
<source>lowest</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="572"/>
<source>DUST</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="572"/>
<source>yes</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="582"/>
<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"></translation>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="583"/>
<source>Transactions with higher priority get more likely into a block.
This label turns red, if the priority is smaller than "medium".
This means a fee of at least %1 per kb is required.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="584"/>
<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"></translation>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="585"/>
<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"></translation>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="622"/>
<location filename="../coincontroldialog.cpp" line="688"/>
<source>(no label)</source>
<translation type="unfinished">(silti pole)</translation>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="679"/>
<source>change from %1 (%2)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="680"/>
<source>(change)</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>DisplayOptionsPage</name>
<message>
<location filename="../optionsdialog.cpp" line="275"/>
<source>&Unit to show amounts in: </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="279"/>
<source>Choose the default subdivision unit to show in the interface, and when sending coins</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="286"/>
<source>&Display addresses in transaction list</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="287"/>
<source>Whether to show MonedaDelEmprendimiento addresses in the transaction list</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="290"/>
<source>Display coin control features (experts only!)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="291"/>
<source>Whether to show coin control features or not</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>EditAddressDialog</name>
<message>
<location filename="../forms/editaddressdialog.ui" line="14"/>
<source>Edit Address</source>
<translation>Muuda aadressi</translation>
</message>
<message>
<location filename="../forms/editaddressdialog.ui" line="25"/>
<source>&Label</source>
<translation>Si&lt</translation>
</message>
<message>
<location filename="../forms/editaddressdialog.ui" line="35"/>
<source>The label associated with this address book entry</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/editaddressdialog.ui" line="42"/>
<source>&Address</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/editaddressdialog.ui" line="52"/>
<source>The address associated with this address book entry. This can only be modified for sending addresses.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="20"/>
<source>New receiving address</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="24"/>
<source>New sending address</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="27"/>
<source>Edit receiving address</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="31"/>
<source>Edit sending address</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="91"/>
<source>The entered address "%1" is already in the address book.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="96"/>
<source>The entered address "%1" is not a valid MonedaDelEmprendimiento address.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="101"/>
<source>Could not unlock wallet.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="106"/>
<source>New key generation failed.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>MainOptionsPage</name>
<message>
<location filename="../optionsdialog.cpp" line="177"/>
<source>&Minimize to the tray instead of the taskbar</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="178"/>
<source>Show only a tray icon after minimizing the window</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="186"/>
<source>Map port using &UPnP</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="181"/>
<source>M&inimize on close</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="182"/>
<source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="187"/>
<source>Automatically open the MonedaDelEmprendimiento client port on the router. This only works when your router supports UPnP and it is enabled.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="190"/>
<source>&Connect through SOCKS4 proxy:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="191"/>
<source>Connect to the Bitcon network through a SOCKS4 proxy (e.g. when connecting through Tor)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="196"/>
<source>Proxy &IP: </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="202"/>
<source>IP address of the proxy (e.g. 127.0.0.1)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="205"/>
<source>&Port: </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="211"/>
<source>Port of the proxy (e.g. 1234)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="217"/>
<source>Mandatory network transaction fee per kB transferred. Most transactions are 1 kB and incur a 0.01 PPC fee. Note: transfer size may increase depending on the number of input transactions required to be added together to fund the payment.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="223"/>
<source>Additional network &fee:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="234"/>
<source>Detach databases at shutdown</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="235"/>
<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"></translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="172"/>
<source>&Start MonedaDelEmprendimiento on window system startup</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="173"/>
<source>Automatically start MonedaDelEmprendimiento after the computer is turned on</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>MintingTableModel</name>
<message>
<location filename="../mintingtablemodel.cpp" line="203"/>
<source>Transaction</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mintingtablemodel.cpp" line="203"/>
<source>Address</source>
<translation type="unfinished">Aadress</translation>
</message>
<message>
<location filename="../mintingtablemodel.cpp" line="203"/>
<source>Age</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mintingtablemodel.cpp" line="203"/>
<source>Balance</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mintingtablemodel.cpp" line="203"/>
<source>CoinDay</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mintingtablemodel.cpp" line="203"/>
<source>MintProbability</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mintingtablemodel.cpp" line="284"/>
<source>minutes</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mintingtablemodel.cpp" line="291"/>
<source>hours</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mintingtablemodel.cpp" line="295"/>
<source>days</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mintingtablemodel.cpp" line="298"/>
<source>You have %1 chance to find a POS block if you mint %2 %3 at current difficulty.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mintingtablemodel.cpp" line="418"/>
<source>Destination address of the output.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mintingtablemodel.cpp" line="420"/>
<source>Original transaction id.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mintingtablemodel.cpp" line="422"/>
<source>Age of the transaction in days.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mintingtablemodel.cpp" line="424"/>
<source>Balance of the output.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mintingtablemodel.cpp" line="426"/>
<source>Coin age in the output.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mintingtablemodel.cpp" line="428"/>
<source>Chance to mint a block within given time interval.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>MintingView</name>
<message>
<location filename="../mintingview.cpp" line="33"/>
<source>transaction is too young</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mintingview.cpp" line="40"/>
<source>transaction is mature</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mintingview.cpp" line="47"/>
<source>transaction has reached maximum probability</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mintingview.cpp" line="60"/>
<source>Display minting probability within : </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mintingview.cpp" line="62"/>
<source>10 min</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mintingview.cpp" line="63"/>
<source>24 hours</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mintingview.cpp" line="64"/>
<source>30 days</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mintingview.cpp" line="65"/>
<source>90 days</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mintingview.cpp" line="162"/>
<source>Export Minting Data</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mintingview.cpp" line="163"/>
<source>Comma separated file (*.csv)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mintingview.cpp" line="171"/>
<source>Address</source>
<translation type="unfinished">Aadress</translation>
</message>
<message>
<location filename="../mintingview.cpp" line="172"/>
<source>Transaction</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mintingview.cpp" line="173"/>
<source>Age</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mintingview.cpp" line="174"/>
<source>CoinDay</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mintingview.cpp" line="175"/>
<source>Balance</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mintingview.cpp" line="176"/>
<source>MintingProbability</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mintingview.cpp" line="180"/>
<source>Error exporting</source>
<translation type="unfinished">Viga eksportimisel</translation>
</message>
<message>
<location filename="../mintingview.cpp" line="180"/>
<source>Could not write to file %1.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>OptionsDialog</name>
<message>
<location filename="../optionsdialog.cpp" line="81"/>
<source>Main</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="86"/>
<source>Display</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="106"/>
<source>Options</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>OverviewPage</name>
<message>
<location filename="../forms/overviewpage.ui" line="14"/>
<source>Form</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/overviewpage.ui" line="40"/>
<source>Balance:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/overviewpage.ui" line="54"/>
<source>Number of transactions:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/overviewpage.ui" line="61"/>
<source>0</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/overviewpage.ui" line="68"/>
<source>Unconfirmed:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/overviewpage.ui" line="82"/>
<source>Stake:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/overviewpage.ui" line="102"/>
<source>Wallet</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/overviewpage.ui" line="138"/>
<source><b>Recent transactions</b></source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../overviewpage.cpp" line="104"/>
<source>Your current balance</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../overviewpage.cpp" line="109"/>
<source>Your current stake</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../overviewpage.cpp" line="114"/>
<source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../overviewpage.cpp" line="117"/>
<source>Total number of transactions in wallet</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>QRCodeDialog</name>
<message>
<location filename="../forms/qrcodedialog.ui" line="14"/>
<source>Dialog</source>
<translation>Dialoog</translation>
</message>
<message>
<location filename="../forms/qrcodedialog.ui" line="32"/>
<source>QR Code</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/qrcodedialog.ui" line="55"/>
<source>Request Payment</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/qrcodedialog.ui" line="70"/>
<source>Amount:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/qrcodedialog.ui" line="105"/>
<source>PPC</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/qrcodedialog.ui" line="121"/>
<source>Label:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/qrcodedialog.ui" line="144"/>
<source>Message:</source>
<translation>Sõnum:</translation>
</message>
<message>
<location filename="../forms/qrcodedialog.ui" line="186"/>
<source>&Save As...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qrcodedialog.cpp" line="46"/>
<source>Error encoding URI into QR Code.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qrcodedialog.cpp" line="64"/>
<source>Resulting URI too long, try to reduce the text for label / message.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qrcodedialog.cpp" line="121"/>
<source>Save Image...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qrcodedialog.cpp" line="121"/>
<source>PNG Images (*.png)</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>RPCConsole</name>
<message>
<location filename="../forms/rpcconsole.ui" line="14"/>
<source>MonedaDelEmprendimiento (MonedaDelEmprendimiento) debug window</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/rpcconsole.ui" line="24"/>
<source>Information</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/rpcconsole.ui" line="33"/>
<source>Client name</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/rpcconsole.ui" line="40"/>
<location filename="../forms/rpcconsole.ui" line="60"/>
<location filename="../forms/rpcconsole.ui" line="106"/>
<location filename="../forms/rpcconsole.ui" line="156"/>
<location filename="../forms/rpcconsole.ui" line="176"/>
<location filename="../forms/rpcconsole.ui" line="196"/>
<location filename="../forms/rpcconsole.ui" line="229"/>
<location filename="../rpcconsole.cpp" line="338"/>
<source>N/A</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/rpcconsole.ui" line="53"/>
<source>Client version</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/rpcconsole.ui" line="79"/>
<source>Version</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/rpcconsole.ui" line="92"/>
<source>Network</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/rpcconsole.ui" line="99"/>
<source>Number of connections</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/rpcconsole.ui" line="119"/>
<source>On testnet</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/rpcconsole.ui" line="142"/>
<source>Block chain</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/rpcconsole.ui" line="149"/>
<source>Current number of blocks</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/rpcconsole.ui" line="169"/>
<source>Estimated total blocks</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/rpcconsole.ui" line="189"/>
<source>Last block time</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/rpcconsole.ui" line="222"/>
<source>Build date</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/rpcconsole.ui" line="237"/>
<source>Console</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/rpcconsole.ui" line="270"/>
<source>></source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/rpcconsole.ui" line="286"/>
<source>Clear console</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../rpcconsole.cpp" line="306"/>
<source>Welcome to the MonedaDelEmprendimiento RPC console.<br>Use up and down arrows to navigate history, and <b>Ctrl-L</b> to clear screen.<br>Type <b>help</b> for an overview of available commands.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>SendCoinsDialog</name>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="14"/>
<location filename="../sendcoinsdialog.cpp" line="176"/>
<location filename="../sendcoinsdialog.cpp" line="181"/>
<location filename="../sendcoinsdialog.cpp" line="186"/>
<location filename="../sendcoinsdialog.cpp" line="191"/>
<location filename="../sendcoinsdialog.cpp" line="197"/>
<location filename="../sendcoinsdialog.cpp" line="202"/>
<location filename="../sendcoinsdialog.cpp" line="207"/>
<source>Send Coins</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="90"/>
<source>Coin Control Features</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="110"/>
<source>Inputs...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="117"/>
<source>automatically selected</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="136"/>
<source>Insufficient funds!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="213"/>
<source>Quantity:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="235"/>
<location filename="../forms/sendcoinsdialog.ui" line="270"/>
<source>0</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="251"/>
<source>Bytes:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="302"/>
<source>Amount:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="324"/>
<location filename="../forms/sendcoinsdialog.ui" line="410"/>
<location filename="../forms/sendcoinsdialog.ui" line="496"/>
<location filename="../forms/sendcoinsdialog.ui" line="528"/>
<source>0.00 BTC</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="337"/>
<source>Priority:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="356"/>
<source>medium</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="388"/>
<source>Fee:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="423"/>
<source>Low Output:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="442"/>
<source>no</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="474"/>
<source>After Fee:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="509"/>
<source>Change</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="559"/>
<source>custom change address</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="665"/>
<source>Send to multiple recipients at once</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="668"/>
<source>&Add recipient...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="685"/>
<source>Remove all transaction fields</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="688"/>
<source>Clear all</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="707"/>
<source>Balance:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="714"/>
<source>123.456 BTC</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="745"/>
<source>Confirm the send action</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="748"/>
<source>&Send</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="51"/>
<source>Copy quantity</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="52"/>
<source>Copy amount</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="53"/>
<source>Copy fee</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="54"/>
<source>Copy after fee</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="55"/>
<source>Copy bytes</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="56"/>
<source>Copy priority</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="57"/>
<source>Copy low output</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="58"/>
<source>Copy change</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="144"/>
<source><b>%1</b> to %2 (%3)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="149"/>
<source>Confirm send coins</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="150"/>
<source>Are you sure you want to send %1?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="150"/>
<source> and </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="182"/>
<source>The amount to pay must be at least one cent (0.01).</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="457"/>
<source>Warning: Invalid MonedaDelEmprendimiento address</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="466"/>
<source>Warning: Unknown change address</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="477"/>
<source>(no label)</source>
<translation type="unfinished">(silti pole)</translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="187"/>
<source>Amount exceeds your balance</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="36"/>
<source>Enter a MonedaDelEmprendimiento address</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="177"/>
<source>The recipient address is not valid, please recheck.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="192"/>
<source>Total exceeds your balance when the %1 transaction fee is included</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="198"/>
<source>Duplicate address found, can only send to each address once in one send operation</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="203"/>
<source>Error: Transaction creation failed </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="208"/>
<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"></translation>
</message>
</context>
<context>
<name>SendCoinsEntry</name>
<message>
<location filename="../forms/sendcoinsentry.ui" line="14"/>
<source>Form</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/sendcoinsentry.ui" line="29"/>
<source>A&mount:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/sendcoinsentry.ui" line="42"/>
<source>Pay &To:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/sendcoinsentry.ui" line="66"/>
<location filename="../sendcoinsentry.cpp" line="26"/>
<source>Enter a label for this address to add it to your address book</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/sendcoinsentry.ui" line="75"/>
<source>&Label:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/sendcoinsentry.ui" line="93"/>
<source>The address to send the payment to</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/sendcoinsentry.ui" line="103"/>
<source>Choose address from address book</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/sendcoinsentry.ui" line="113"/>
<source>Alt+A</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/sendcoinsentry.ui" line="120"/>
<source>Paste address from clipboard</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/sendcoinsentry.ui" line="130"/>
<source>Alt+P</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/sendcoinsentry.ui" line="137"/>
<source>Remove this recipient</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../sendcoinsentry.cpp" line="25"/>
<source>Enter a MonedaDelEmprendimiento address</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>SignVerifyMessageDialog</name>
<message>
<location filename="../forms/signverifymessagedialog.ui" line="14"/>
<source>Signatures - Sign / Verify a Message</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/signverifymessagedialog.ui" line="24"/>
<source>&Sign Message</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/signverifymessagedialog.ui" line="30"/>
<source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/signverifymessagedialog.ui" line="48"/>
<source>The address to sign the message with</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/signverifymessagedialog.ui" line="55"/>
<location filename="../forms/signverifymessagedialog.ui" line="265"/>
<source>Choose previously used address</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/signverifymessagedialog.ui" line="65"/>
<location filename="../forms/signverifymessagedialog.ui" line="275"/>
<source>Alt+A</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/signverifymessagedialog.ui" line="75"/>
<source>Paste address from clipboard</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/signverifymessagedialog.ui" line="85"/>
<source>Alt+P</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/signverifymessagedialog.ui" line="97"/>
<source>Enter the message you want to sign here</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/signverifymessagedialog.ui" line="104"/>
<source>Signature</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/signverifymessagedialog.ui" line="131"/>
<source>Copy the current signature to the system clipboard</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/signverifymessagedialog.ui" line="152"/>
<source>Sign the message to prove you own this MonedaDelEmprendimiento address</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/signverifymessagedialog.ui" line="155"/>
<source>Sign &Message</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/signverifymessagedialog.ui" line="169"/>
<source>Reset all sign message fields</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/signverifymessagedialog.ui" line="172"/>
<location filename="../forms/signverifymessagedialog.ui" line="315"/>
<source>Clear &All</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/signverifymessagedialog.ui" line="231"/>
<source>&Verify Message</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/signverifymessagedialog.ui" line="237"/>
<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"></translation>
</message>
<message>
<location filename="../forms/signverifymessagedialog.ui" line="258"/>
<source>The address the message was signed with</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/signverifymessagedialog.ui" line="295"/>
<source>Verify the message to ensure it was signed with the specified MonedaDelEmprendimiento address</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/signverifymessagedialog.ui" line="298"/>
<source>Verify &Message</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/signverifymessagedialog.ui" line="312"/>
<source>Reset all verify message fields</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../signverifymessagedialog.cpp" line="29"/>
<source>Click "Sign Message" to generate signature</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../signverifymessagedialog.cpp" line="30"/>
<source>Enter the signature of the message</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../signverifymessagedialog.cpp" line="31"/>
<location filename="../signverifymessagedialog.cpp" line="32"/>
<source>Enter a MonedaDelEmprendimiento address</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../signverifymessagedialog.cpp" line="115"/>
<location filename="../signverifymessagedialog.cpp" line="195"/>
<source>The entered address is invalid.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../signverifymessagedialog.cpp" line="115"/>
<location filename="../signverifymessagedialog.cpp" line="123"/>
<location filename="../signverifymessagedialog.cpp" line="195"/>
<location filename="../signverifymessagedialog.cpp" line="203"/>
<source>Please check the address and try again.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../signverifymessagedialog.cpp" line="123"/>
<location filename="../signverifymessagedialog.cpp" line="203"/>
<source>The entered address does not refer to a key.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../signverifymessagedialog.cpp" line="131"/>
<source>Wallet unlock was cancelled.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../signverifymessagedialog.cpp" line="139"/>
<source>Private key for the entered address is not available.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../signverifymessagedialog.cpp" line="151"/>
<source>Message signing failed.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../signverifymessagedialog.cpp" line="156"/>
<source>Message signed.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../signverifymessagedialog.cpp" line="214"/>
<source>The signature could not be decoded.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../signverifymessagedialog.cpp" line="214"/>
<location filename="../signverifymessagedialog.cpp" line="227"/>
<source>Please check the signature and try again.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../signverifymessagedialog.cpp" line="227"/>
<source>The signature did not match the message digest.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../signverifymessagedialog.cpp" line="234"/>
<source>Message verification failed.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../signverifymessagedialog.cpp" line="239"/>
<source>Message verified.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>TransactionDesc</name>
<message>
<location filename="../transactiondesc.cpp" line="21"/>
<source>Open for %1 blocks</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="23"/>
<source>Open until %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="29"/>
<source>%1/offline?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="31"/>
<source>%1/unconfirmed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="33"/>
<source>%1 confirmations</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="51"/>
<source><b>Status:</b> </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="56"/>
<source>, has not been successfully broadcast yet</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="58"/>
<source>, broadcast through %1 node</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="60"/>
<source>, broadcast through %1 nodes</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="64"/>
<source><b>Date:</b> </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="71"/>
<source><b>Source:</b> Generated<br></source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="77"/>
<location filename="../transactiondesc.cpp" line="94"/>
<source><b>From:</b> </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="94"/>
<source>unknown</source>
<translation>tundmatu</translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="95"/>
<location filename="../transactiondesc.cpp" line="118"/>
<location filename="../transactiondesc.cpp" line="178"/>
<source><b>To:</b> </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="98"/>
<source> (yours, label: </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="100"/>
<source> (yours)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="136"/>
<location filename="../transactiondesc.cpp" line="150"/>
<location filename="../transactiondesc.cpp" line="195"/>
<location filename="../transactiondesc.cpp" line="212"/>
<source><b>Credit:</b> </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="138"/>
<source>(%1 matures in %2 more blocks)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="142"/>
<source>(not accepted)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="186"/>
<location filename="../transactiondesc.cpp" line="194"/>
<location filename="../transactiondesc.cpp" line="209"/>
<source><b>Debit:</b> </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="200"/>
<source><b>Transaction fee:</b> </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="218"/>
<source><b>Net amount:</b> </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="220"/>
<source><b>Retained amount:</b> %1 until %2 more blocks<br></source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="227"/>
<source>Message:</source>
<translation>Sõnum:</translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="229"/>
<source>Comment:</source>
<translation>Kommentaar:</translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="231"/>
<source>Transaction ID:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="234"/>
<source>Generated coins must wait 520 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, it will change to "not accepted" and not be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="236"/>
<source>Staked coins must wait 520 blocks before they can return to balance and be spent. When you generated this proof-of-stake block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, it will change to "not accepted" and not be a valid stake. This may occasionally happen if another node generates a proof-of-stake block within a few seconds of yours.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>TransactionDescDialog</name>
<message>
<location filename="../forms/transactiondescdialog.ui" line="14"/>
<source>Transaction details</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/transactiondescdialog.ui" line="20"/>
<source>This pane shows a detailed description of the transaction</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>TransactionTableModel</name>
<message>
<location filename="../transactiontablemodel.cpp" line="214"/>
<source>Date</source>
<translation>Kuupäev</translation>
</message>
<message>
<location filename="../transactiontablemodel.cpp" line="214"/>
<source>Type</source>
<translation>Tüüp</translation>
</message>
<message>
<location filename="../transactiontablemodel.cpp" line="214"/>
<source>Address</source>
<translation>Aadress</translation>
</message>
<message>
<location filename="../transactiontablemodel.cpp" line="214"/>
<source>Amount</source>
<translation>Kogus</translation>
</message>
<message numerus="yes">
<location filename="../transactiontablemodel.cpp" line="281"/>
<source>Open for %n block(s)</source>
<translation type="unfinished">
<numerusform></numerusform>
<numerusform></numerusform>
</translation>
</message>
<message>
<location filename="../transactiontablemodel.cpp" line="284"/>
<source>Open until %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactiontablemodel.cpp" line="287"/>
<source>Offline (%1 confirmations)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactiontablemodel.cpp" line="290"/>
<source>Unconfirmed (%1 of %2 confirmations)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactiontablemodel.cpp" line="293"/>
<source>Confirmed (%1 confirmations)</source>
<translation type="unfinished"></translation>
</message>
<message numerus="yes">
<location filename="../transactiontablemodel.cpp" line="301"/>
<source>Mined balance will be available in %n more blocks</source>
<translation type="unfinished">
<numerusform></numerusform>
<numerusform></numerusform>
</translation>
</message>
<message>
<location filename="../transactiontablemodel.cpp" line="307"/>
<source>This block was not received by any other nodes and will probably not be accepted!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactiontablemodel.cpp" line="310"/>
<source>Generated but not accepted</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactiontablemodel.cpp" line="353"/>
<source>Received with</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactiontablemodel.cpp" line="355"/>
<source>Received from</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactiontablemodel.cpp" line="358"/>
<source>Sent to</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactiontablemodel.cpp" line="360"/>
<source>Payment to yourself</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactiontablemodel.cpp" line="362"/>
<source>Mined</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactiontablemodel.cpp" line="364"/>
<source>Mint by stake</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactiontablemodel.cpp" line="403"/>
<source>(n/a)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactiontablemodel.cpp" line="603"/>
<source>Transaction status. Hover over this field to show number of confirmations.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactiontablemodel.cpp" line="605"/>
<source>Date and time that the transaction was received.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactiontablemodel.cpp" line="607"/>
<source>Type of transaction.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactiontablemodel.cpp" line="609"/>
<source>Destination address of transaction.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactiontablemodel.cpp" line="611"/>
<source>Amount removed from or added to balance.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>TransactionView</name>
<message>
<location filename="../transactionview.cpp" line="55"/>
<location filename="../transactionview.cpp" line="71"/>
<source>All</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactionview.cpp" line="56"/>
<source>Today</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactionview.cpp" line="57"/>
<source>This week</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactionview.cpp" line="58"/>
<source>This month</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactionview.cpp" line="59"/>
<source>Last month</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactionview.cpp" line="60"/>
<source>This year</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactionview.cpp" line="61"/>
<source>Range...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactionview.cpp" line="72"/>
<source>Received with</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactionview.cpp" line="74"/>
<source>Sent to</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactionview.cpp" line="76"/>
<source>To yourself</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactionview.cpp" line="77"/>
<source>Mined</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactionview.cpp" line="78"/>
<source>Mint by stake</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactionview.cpp" line="79"/>
<source>Other</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactionview.cpp" line="85"/>
<source>Enter address or label to search</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactionview.cpp" line="91"/>
<source>Min amount</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactionview.cpp" line="125"/>
<source>Copy address</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactionview.cpp" line="126"/>
<source>Copy label</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactionview.cpp" line="127"/>
<source>Copy amount</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactionview.cpp" line="128"/>
<source>Edit label</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactionview.cpp" line="129"/>
<source>Show details...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactionview.cpp" line="130"/>
<source>Clear orphans</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactionview.cpp" line="273"/>
<source>Export Transaction Data</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactionview.cpp" line="274"/>
<source>Comma separated file (*.csv)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactionview.cpp" line="282"/>
<source>Confirmed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactionview.cpp" line="283"/>
<source>Date</source>
<translation>Kuupäev</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="284"/>
<source>Type</source>
<translation>Tüüp</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="285"/>
<source>Label</source>
<translation>Silt</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="286"/>
<source>Address</source>
<translation>Aadress</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="287"/>
<source>Amount</source>
<translation>Kogus</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="288"/>
<source>ID</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactionview.cpp" line="292"/>
<source>Error exporting</source>
<translation>Viga eksportimisel</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="292"/>
<source>Could not write to file %1.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactionview.cpp" line="400"/>
<source>Range:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../transactionview.cpp" line="408"/>
<source>to</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>WalletModel</name>
<message>
<location filename="../walletmodel.cpp" line="164"/>
<source>Sending...</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>bitcoin-core</name>
<message>
<location filename="../bitcoinstrings.cpp" line="11"/>
<source>Warning: Disk space is low </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="13"/>
<source>Usage:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="8"/>
<source>Unable to bind to port %d on this computer. MonedaDelEmprendimiento is probably already running.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="12"/>
<source>MonedaDelEmprendimiento version</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="14"/>
<source>Send command to -server or MonedaDelEmprendimientod</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="15"/>
<source>List commands</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="16"/>
<source>Get help for a command</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="17"/>
<source>Options:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="18"/>
<source>Specify configuration file (default: MonedaDelEmprendimiento.conf)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="19"/>
<source>Specify pid file (default: MonedaDelEmprendimientod.pid)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="20"/>
<source>Generate coins</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="21"/>
<source>Don't generate coins</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="22"/>
<source>Start minimized</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="23"/>
<source>Show splash screen on startup (default: 1)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="24"/>
<source>Specify data directory</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="25"/>
<source>Set database cache size in megabytes (default: 25)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="26"/>
<source>Set database disk log size in megabytes (default: 100)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="27"/>
<source>Specify connection timeout (in milliseconds)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="28"/>
<source>Connect through socks4 proxy</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="29"/>
<source>Allow DNS lookups for addnode and connect</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="30"/>
<source>Listen for connections on <port> (default: 9901 or testnet: 9903)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="31"/>
<source>Maintain at most <n> connections to peers (default: 125)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="32"/>
<source>Add a node to connect to and attempt to keep the connection open</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="33"/>
<source>Connect only to the specified node</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="34"/>
<source>Find peers using internet relay chat (default: 0)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="35"/>
<source>Accept connections from outside (default: 1)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="36"/>
<source>Set language, for example "de_DE" (default: system locale)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="37"/>
<source>Find peers using DNS lookup (default: 1)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="38"/>
<source>Threshold for disconnecting misbehaving peers (default: 100)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="39"/>
<source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="42"/>
<source>Maximum per-connection receive buffer, <n>*1000 bytes (default: 10000)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="43"/>
<source>Maximum per-connection send buffer, <n>*1000 bytes (default: 10000)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="44"/>
<source>Use Universal Plug and Play to map the listening port (default: 1)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="45"/>
<source>Use Universal Plug and Play to map the listening port (default: 0)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="46"/>
<source>Fee per KB to add to transactions you send</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="47"/>
<source>Accept command line and JSON-RPC commands</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="48"/>
<source>Run in the background as a daemon and accept commands</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="49"/>
<source>Use the test network</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="50"/>
<source>Output extra debugging information</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="51"/>
<source>Prepend debug output with timestamp</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="52"/>
<source>Send trace/debug info to console instead of debug.log file</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="53"/>
<source>Send trace/debug info to debugger</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="54"/>
<source>Username for JSON-RPC connections</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="55"/>
<source>Password for JSON-RPC connections</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="56"/>
<source>Listen for JSON-RPC connections on <port> (default: 9902)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="57"/>
<source>Allow JSON-RPC connections from specified IP address</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="58"/>
<source>Send commands to node running on <ip> (default: 127.0.0.1)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="59"/>
<source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="62"/>
<source>Upgrade wallet to latest format</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="63"/>
<source>Set key pool size to <n> (default: 100)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="64"/>
<source>Rescan the block chain for missing wallet transactions</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="65"/>
<source>How many blocks to check at startup (default: 2500, 0 = all)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="66"/>
<source>How thorough the block verification is (0-6, default: 1)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="67"/>
<source>
SSL options: (see the Bitcoin Wiki for SSL setup instructions)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="70"/>
<source>Use OpenSSL (https) for JSON-RPC connections</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="71"/>
<source>Server certificate file (default: server.cert)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="72"/>
<source>Server private key (default: server.pem)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="73"/>
<source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="76"/>
<source>This help message</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="77"/>
<source>Usage</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="78"/>
<source>Cannot obtain a lock on data directory %s. MonedaDelEmprendimiento is probably already running.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="81"/>
<source>MonedaDelEmprendimiento</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="88"/>
<source>Error loading wallet.dat: Wallet requires newer version of MonedaDelEmprendimiento</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="89"/>
<source>Wallet needed to be rewritten: restart MonedaDelEmprendimiento to complete</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="103"/>
<source>%s, you must set a rpcpassword in the configuration file:
%s
It is recommended you use the following random password:
rpcuser=MonedaDelEmprendimientorpc
rpcpassword=%s
(you do not need to remember this password)
If the file does not exist, create it with owner-readable-only file permissions.
</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="119"/>
<source>Warning: Please check that your computer's date and time are correct. If your clock is wrong MonedaDelEmprendimiento will not work properly.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="82"/>
<source>Loading addresses...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="83"/>
<source>Error loading addr.dat</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="84"/>
<source>Loading block index...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="85"/>
<source>Error loading blkindex.dat</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="86"/>
<source>Loading wallet...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="87"/>
<source>Error loading wallet.dat: Wallet corrupted</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="90"/>
<source>Error loading wallet.dat</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="91"/>
<source>Cannot downgrade wallet</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="92"/>
<source>Cannot initialize keypool</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="93"/>
<source>Cannot write default address</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="94"/>
<source>Rescanning...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="95"/>
<source>Done loading</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="96"/>
<source>Invalid -proxy address</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="97"/>
<source>Invalid amount for -paytxfee=<amount></source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="98"/>
<source>Warning: -paytxfee is set very high. This is the transaction fee you will pay if you send a transaction.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="101"/>
<source>Error: NewThread(StartNode) failed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="102"/>
<source>To use the %s option</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="112"/>
<source>Error</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="113"/>
<source>An error occurred while setting up the RPC port %i for listening: %s</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="114"/>
<source>You must set rpcpassword=<password> in the configuration file:
%s
If the file does not exist, create it with owner-readable-only file permissions.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="122"/>
<source>Error: Wallet locked, unable to create transaction </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="123"/>
<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"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="126"/>
<source>Error: Transaction creation failed </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="127"/>
<source>Sending...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="128"/>
<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"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="132"/>
<source>Invalid amount</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="133"/>
<source>Insufficient funds</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
| mit |
DanWatkins/GlanceEngineSDK | GlanceEngine/GlanceEntity/Src/Entities/Objects/Weapon.cpp | 1506 | /*=================================================================================================
Glance Engine - (C) 2010-2013 Daniel L. Watkins
Filename: Weapon.cpp
=================================================================================================*/
#include "../../Entity.h"
namespace ge
{
namespace world
{
/*=============================================================================
-- Constructor for Weapon.
=============================================================================*/
Weapon::Weapon()
{
mProjectileSpeed = 8.0;
_SetObjectType(WEAPON);
}
/*=============================================================================
-- Creates a projectile and sets the velocity of it to a certain direction.
=============================================================================*/
void Weapon::LaunchProjectile(Vector3D<double> sourcePos, Vector3D<double> targetPos)
{
//take a round from the ammo clip
mAmmo.lock()->UseRounds(1);
//create the round as a projectile
WeakPtr<Object> object = DynamicPtrCast<Object>(GetManager()->CreateEntity(mAmmo.lock()->GetProjectileName(), sourcePos, "NULL").lock());
object.lock()->SetProjectileExclusive(true);
//calculate the velocity of the projectile and move the projectile that much
//note that the projectile will keep this velocity because it is exclusively a projectile
object.lock()->Move( sourcePos.Velocity(targetPos)*mProjectileSpeed );
}
};
}; | mit |
imink/leetcodeChallenge | lintcode/src/LongestIncreasingContinuousSubsequence.java | 852 | /**
* LintCode 397
* http://www.lintcode.com/en/problem/longest-increasing-continuous-subsequence/
* Created by imink on 20/11/2016.
*/
public class LongestIncreasingContinuousSubsequence {
/**
* @param A an array of Integer
* @return an integer
*/
public int longestIncreasingContinuousSubsequence(int[] A) {
// Write your code here
int n = A.length;
int res = 0;
int asc = 1, des = 1;
if (n == 0) return 0;
if (n == 1) return 1;
for(int i = 0; i < n - 1; i ++) {
if (A[i] < A[i + 1]) {
asc = asc + 1;
des = 1;
}
if (A[i] > A[i + 1]) {
des = des + 1;
asc = 1;
}
res = Math.max(res, Math.max(asc, des));
}
return res;
}
}
| mit |
ChiarilloMassimo/satispay-php-sdk | sample/find_users.php | 240 | <?php
include 'config.php';
//Return ChiarilloMassimo\Satispay\Model\ArrayCollection
$satispay->getUserHandler()->find(50, 'starting_id', 'ending_id');
$users = $satispay->getUserHandler()->find();
foreach ($users as $user) {
//..
}
| mit |
kellyethridge/aurelia-orm | dist/commonjs/decorator/type.js | 324 | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.type = type;
var _ormMetadata = require('../orm-metadata');
function type(typeValue) {
return function (target, propertyName) {
_ormMetadata.OrmMetadata.forTarget(target.constructor).put('types', propertyName, typeValue);
};
} | mit |
miguelmota/rgb-scale | rgb-scale.js | 6232 | (function(root) {
'use strict';
/**
* RGBScale
* @desc RGB color scale.
* @param {number[]} colors - rgb colors in array
* @param {number[]} positions - color position offsets
* @param {number[]} domain - scale domain
* @return {function} scale function
*/
function RGBScale(colors, positions, domain) {
if (!(this instanceof RGBScale)) {
return new RGBScale(colors, positions, domain);
}
this._colors = [];
this._positions = [];
this._domain = [0,1];
this._min = 0;
this._max = 1;
this._numClasses = 0;
this._colorCache = {};
this.colors(colors);
this.positions(positions);
this.domain(domain);
return function(value) {
return this._getColor(value);
}.bind(this);
}
/**
* colors
* @desc Set color values
* @param {number[]} colors - RGB color values
*/
RGBScale.prototype.colors = function(colors) {
if (Array.isArray(colors)) {
this._resetCache();
this._colors = colors.slice(0);
for (var i = 0; i < this._colors.length; i++) {
if (this._colors[i].length === 3) {
this._colors[i][3] = 1;
}
}
}
return this;
};
/**
* positions
* @desc Set position values
* @param {number[]} positions - position values
*/
RGBScale.prototype.positions = function(positions) {
if (Array.isArray(positions)) {
this._positions = positions.slice(0);
} else {
positions = [];
var colorsLength = this._colors.length;
var c = 0;
var w = 0;
var ref = colorsLength - 1;
for (; 0 <= ref ? w <= ref : w >= ref; c = (0 <= ref ? ++w : --w)) {
this._positions.push(c / (colorsLength - 1));
}
}
return this;
};
/**
* domain
* @desc Set domain and min/max values
* @param {number[]} domain - domain values
*/
RGBScale.prototype.domain = function(domain) {
if (Array.isArray(domain)) {
this._domain = domain.slice(0);
this._min = domain[0];
this._max = domain[domain.length - 1];
this._resetCache();
}
if (this._domain.length === 2) {
this._numClasses = 0;
} else {
this._numClasses = domain.length - 1;
}
return this;
};
/**
* resetCache
* @desc Reset color cache
*/
RGBScale.prototype._resetCache = function() {
this._colorCache = {};
};
/**
* getClass
* @desc Return class for domain value
* @param {number} value - domain value
* @return {number} class value
*/
RGBScale.prototype._getClass = function(value) {
if (this._domain.length) {
var n = this._domain.length;
var i = 0;
while (i < n && value >= this._domain[i]) {
i++;
}
return i - 1;
}
return 0;
};
/**
* getColor
* @desc Return color for domain value
* @param {number} value - domain value
* @return {number[]} RGB color
*/
RGBScale.prototype._getColor = function(value) {
var t;
var color;
if (typeof value !== 'number') {
value = 0;
}
if (this._domain.length > 2) {
var c = this._getClass(value);
t = c / (this._numClasses - 1);
} else {
t = (this.min !== this._max ? (value - this._min) / (this._max - this._min) : 0);
t = Math.min(1, Math.max(0, t));
}
var k = Math.floor(t * 10000);
if (this._colorCache[k]) {
color = this._colorCache[k];
} else {
var i = 0;
var o = 0;
var ref = this._positions.length - 1;
for (; 0 <= ref ? o <= ref : o >= ref; i = (0 <= ref ? ++o : --o)) {
var p = this._positions[i];
if ((t <= p) || (t >= p && i === this._positions.length - 1)) {
color = this._colors[i];
break;
}
if (t > p && t < this._positions[i + 1]) {
t = (t - p) / (this._positions[i + 1] - p);
color = RGBScale._interpolateRGB(this._colors[i], this._colors[i + 1], t);
break;
}
}
if (color) {
this._colorCache[k] = color;
} else {
color = [0,0,0,1];
}
}
return color;
};
/**
* clipRGB
* @desc clamp colors to 0 or to 255 if out of bounds
* @param {number[]} rgb - rgb colors in array
*/
RGBScale._clipRGB = function(rgb) {
if (!(Array.isArray(rgb) && rgb.length >= 3)) {
rgb = [0,0,0,1];
}
for (var i = 0; i < rgb.length; i++) {
if (i < 3) {
if (rgb[i] < 0) {
rgb[i] = 0;
} else if (rgb[i] > 255) {
rgb[i] = 255;
}
} else if (i === 3) {
if (rgb[i] < 0) {
rgb[i] = 0;
} else if (rgb[i] > 1) {
rgb[i] = 1;
}
}
}
return rgb;
};
/**
* clipT
* @desc Clips target value to stay within constraints 0-1
* @param {number} target - target value
* @return clipped value
*/
RGBScale._clipT = function(t) {
if (typeof t !== 'number') {
t = 0;
}
if (t > 1) {
t = 1;
} else if (t < 0) {
t = 0;
}
return t;
};
/**
* interpolateRGB
* @desc Interpolate RGB colors.
* @param {number[]} rgb1 - rgb array
* @param {number[]} rgb2 - rgb array
* @param {number} target - target value between units 0 - 1
* @return interpolated rgb color array
*/
RGBScale._interpolateRGB = function(rgb1, rgb2, t) {
rgb1 = RGBScale._clipRGB(rgb1);
rgb2 = RGBScale._clipRGB(rgb2);
t = RGBScale._clipT(t);
var r_1 = rgb1[0];
var g_1 = rgb1[1];
var b_1 = rgb1[2];
var a_1 = rgb1[3];
var r_2 = rgb2[0];
var g_2 = rgb2[1];
var b_2 = rgb2[2];
var a_2 = rgb2[3];
var r_3 = r_1 + t * (r_2 - r_1);
var g_3 = g_1 + t * (g_2 - g_1);
var b_3 = b_1 + t * (b_2 - b_1);
var a_3 = a_1 + t * (a_2 - a_1);
var result = [r_3, g_3, b_3, a_3];
return result;
};
if (typeof exports !== 'undefined') {
if (typeof module !== 'undefined' && module.exports) {
exports = module.exports = RGBScale;
}
exports.RGBScale = RGBScale;
} else if (typeof define === 'function' && define.amd) {
define([], function() {
return RGBScale;
});
} else {
root.RGBScale = RGBScale;
}
})(this);
| mit |
frc-frecon/frecon | lib/frecon/match_number.rb | 8713 | # lib/frecon/match_number.rb
#
# Copyright (C) 2014 Christopher Cooper, Sam Craig, Tiger Huang, Vincent Mai, Sam Mercier, and Kristofer Rye
#
# This file is part of FReCon, an API for scouting at FRC Competitions, which is
# licensed under the MIT license. You should have received a copy of the MIT
# license with this program. If not, please see
# <http://opensource.org/licenses/MIT>.
require 'frecon/base/bson'
require 'frecon/base/environment'
require 'frecon/base/object'
require 'frecon/base/variables'
module FReCon
# Public: A wrapper to handle converting match numbers and storing them.
class MatchNumber
# Public: All of the possible match types for a MatchNumber to have.
POSSIBLE_TYPES = [:practice, :qualification, :quarterfinal, :semifinal, :final]
# Public: All of the elimination types for a MatchNumber to have.
ELIMINATION_TYPES = [:quarterfinal, :semifinal, :final]
# Public: The numerical part of the match number
#
# Examples
#
# match_number = MatchNumber.new('qm2')
# match_number.number
# # => 2
attr_reader :number
# Public: The round part of the match number
#
# Examples
#
# match_number = MatchNumber.new('qf1m2r3')
# match_number.round
# # => 2
attr_reader :round
# Public: The type of the match.
#
# Examples
#
# match_number = MatchNumber.new('qf1m2r3')
# match_number.type
# # => :quarterfinal
attr_reader :type
# Public: Convert a stored match number to a MatchNumber object.
#
# object - String representation of a match number (mongoized)
#
# Returns MatchNumber parsed from object.
def self.demongoize(object)
# `object' should *always* be a string (since MatchNumber#mongoize returns a
# String which is what is stored in the database)
raise ArgumentError, "`object' must be a String" unless object.is_a?(String)
MatchNumber.new(object)
end
# Public: Convert a MatchNumber object to a storable string representation.
#
# object - A MatchNumber, String, or Hash. If MatchNumber, run #mongoize on
# it. If String, create a new MatchNumber object for it, then run
# #mongoize on it. If Hash, convert its keys to symbols, then
# pull out the :alliance and :number keys to generate a
# MatchNumber.
#
# Returns String containing the mongo-ready value for the representation.
def self.mongoize(object)
case object
when MatchNumber
object.mongoize
when String, Hash
MatchNumber.new(object).mongoize
else
object
end
end
# Public: Convert a MatchNumber object to a storable string representation
# for queries.
#
# object - A MatchNumber, String, or Hash. If MatchNumber, run #mongoize on
# it. If String, create a new MatchNumber object for it, then run
# #mongoize on it. If Hash, convert its keys to symbols, then
# pull out the :alliance and :number keys to generate a
# MatchNumber.
#
# Returns String containing the mongo-ready value for the representation.
def self.evolve(object)
case object
when MatchNumber
object.mongoize
when String, Hash
MatchNumber.new(object).mongoize
else
object
end
end
# Public: Convert to a storable string representation.
#
# Returns String representing the MatchNumber's data.
def mongoize
to_s
end
def initialize(args)
if args.is_a?(String)
# Match `args' against the regular expression, described below.
#
# This regular expression matches all values where the first group of
# characters is one of either [ 'p', 'q', 'qf', 'sf', 'f' ], which is
# parsed as the 'type' of the match. This is followed by an 'm' and a
# group of digits, which is parsed as the 'number' of the match.
#
# In addition, one can specify a 'round number' following the first group
# of characters such as in eliminations and finals. Often times, there
# are multiple so-called 'rounds' in eliminations, and so the system will
# optionally capture that round.
#
# Also, one can specify a 'replay number' following the match number.
# this is done by appending 'r' and a group of digits which is the replay
# number.
#
# Below are listed the match groups and what they are:
#
# 1: Match type
# 2: Round number (optional)
# 3: Match number
# 4: Replay string (optional)
# 5: Replay number (required if #4 is supplied)
#
# This behavior may change in the future.
match_data = args.match(/(p|q|qf|sf|f)([\d]+)?m([\d]+)(r)?([\d]+)?/i)
# Whine if we don't have a match (string is incorrectly formatted)
raise ArgumentError, 'string is improperly formatted' unless match_data
# Check and set required stuff first, everything else later.
# Whine if we don't have a match type
raise ArgumentError, 'match type must be supplied' unless match_data[1]
# Parse the match type string
@type = case match_data[1].downcase
when 'p'
:practice
when 'q'
:qualification
when 'qf'
:quarterfinal
when 'sf'
:semifinal
when 'f'
:final
else
raise ArgumentError, 'match type must be in [\'p\', \'q\', \'qf\', \'sf\', \'f\']'
end
# Whine if we don't have a match number
raise ArgumentError, 'match number must be supplied' unless match_data[3]
# Parse the match number
@number = match_data[3].to_i
raise ArgumentError, 'match number must be greater than 0' unless @number > 0
# Parse the round number, if it is present
if match_data[2]
@round = match_data[2].to_i
raise ArgumentError, 'round number must be greater than 0' unless @round > 0
end
# Parse replay match group, store replay number if present.
@replay_number = match_data[5].to_i if match_data[4] == 'r'
elsif args.is_a?(Hash)
# type (Symbol or String)
# number (Integer)
# round (Integer), optional
# replay_number (Integer), optional
# Convert keys to symbols if needed.
args = Hash[args.map { |key, value| [key.to_sym, value] }]
raise TypeError, 'type must be a Symbol or String' unless args[:type].is_a?(Symbol) || args[:type].is_a?(String)
raise ArgumentError, "type must be in #{POSSIBLE_TYPES.inspect}" unless POSSIBLE_TYPES.include?(args[:type].to_sym)
@type = args[:type].to_sym
raise TypeError, 'match number must be an Integer' unless args[:number].is_an?(Integer)
raise ArgumentError, 'match number must be greater than 0' unless args[:number] > 0
@number = args[:number]
if args[:round]
raise TypeError, 'round number must be an Integer' unless args[:round].is_an?(Integer)
raise ArgumentError, 'round number must be greater than 0' unless args[:round] > 0
@round = args[:round]
end
if args[:replay_number]
raise TypeError, 'replay number must be an Integer' unless args[:replay_number].is_an?(Integer)
raise ArgumentError, 'replay number must be greater than 0' unless args[:replay_number] > 0
@replay_number = args[:replay_number]
end
else
raise TypeError, 'argument must be a String or Hash'
end
end
# Public: Convert to a String.
#
# Returns String representing the match number data.
def to_s
type_string = case @type
when :practice
'p'
when :qualification
'q'
when :quarterfinal
'qf'
when :semifinal
'sf'
when :final
'f'
end
match_string = "m#{@number}"
replay_string = "r#{@replay_number}" if replay?
"#{type_string}#{@round}#{match_string}#{replay_string}"
end
# Public: Determine if MatchNumber represents a replay.
def replay?
!@replay_number.nil? && @replay_number > 0
end
# Public: Determine if MatchNumber represents a practice match.
def practice?
@type == :practice
end
# Public: Determine if MatchNumber represents a qualification match.
def qualification?
@type == :qualification
end
# Public: Determine if MatchNumber represents a quarterfinal match.
def quarterfinal?
@type == :quarterfinal
end
# Public: Determine if MatchNumber represents a semifinal match.
def semifinal?
@type == :semifinal
end
# Public: Determine if MatchNumber represents a final match.
def final?
@type == :final
end
# Public: Determine if MatchNumber represents a match of any elimination
# type.
def elimination?
ELIMINATION_TYPES.include?(@type)
end
end
end
| mit |
andrelugomes/mapa-alocacao | app/models/client.rb | 393 | class Client < ActiveRecord::Base
#has_many :teams, class_name: "Team", foreign_key: "client_id"
has_many :teams
validates :name, presence: true, allow_blank: false
validates_uniqueness_of :name
before_destroy :verify_teams
#tratament para Constraint
def verify_teams
return true if teams.count == 0
errors.add :base, "Cannot delete client with team"
false
end
end
| mit |
vorushin/moodbox_aka_risovaska | client/moc_deletemoodstripresult.cpp | 3147 | /****************************************************************************
** Meta object code from reading C++ file 'deletemoodstripresult.h'
**
** Created: Wed Jun 24 21:01:22 2009
** by: The Qt Meta Object Compiler version 61 (Qt 4.5.1)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
#include "ModelGenerated/deletemoodstripresult.h"
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'deletemoodstripresult.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 61
#error "This file was generated using the moc from 4.5.1. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
QT_BEGIN_MOC_NAMESPACE
static const uint qt_meta_data_MoodBox__DeleteMoodstripResultCallbackCaller[] = {
// content:
2, // revision
0, // classname
0, 0, // classinfo
1, 12, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
// signals: signature, parameters, type, tag, flags
65, 46, 45, 45, 0x05,
0 // eod
};
static const char qt_meta_stringdata_MoodBox__DeleteMoodstripResultCallbackCaller[] = {
"MoodBox::DeleteMoodstripResultCallbackCaller\0"
"\0state,fault,result\0"
"callbackSignal(QVariant,Fault,MoodstripResultCode::MoodstripResultCode"
"Enum)\0"
};
const QMetaObject MoodBox::DeleteMoodstripResultCallbackCaller::staticMetaObject = {
{ &QObject::staticMetaObject, qt_meta_stringdata_MoodBox__DeleteMoodstripResultCallbackCaller,
qt_meta_data_MoodBox__DeleteMoodstripResultCallbackCaller, 0 }
};
const QMetaObject *MoodBox::DeleteMoodstripResultCallbackCaller::metaObject() const
{
return &staticMetaObject;
}
void *MoodBox::DeleteMoodstripResultCallbackCaller::qt_metacast(const char *_clname)
{
if (!_clname) return 0;
if (!strcmp(_clname, qt_meta_stringdata_MoodBox__DeleteMoodstripResultCallbackCaller))
return static_cast<void*>(const_cast< DeleteMoodstripResultCallbackCaller*>(this));
return QObject::qt_metacast(_clname);
}
int MoodBox::DeleteMoodstripResultCallbackCaller::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
_id = QObject::qt_metacall(_c, _id, _a);
if (_id < 0)
return _id;
if (_c == QMetaObject::InvokeMetaMethod) {
switch (_id) {
case 0: callbackSignal((*reinterpret_cast< QVariant(*)>(_a[1])),(*reinterpret_cast< Fault(*)>(_a[2])),(*reinterpret_cast< MoodstripResultCode::MoodstripResultCodeEnum(*)>(_a[3]))); break;
default: ;
}
_id -= 1;
}
return _id;
}
// SIGNAL 0
void MoodBox::DeleteMoodstripResultCallbackCaller::callbackSignal(QVariant _t1, Fault _t2, MoodstripResultCode::MoodstripResultCodeEnum _t3)
{
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)) };
QMetaObject::activate(this, &staticMetaObject, 0, _a);
}
QT_END_MOC_NAMESPACE
| mit |
GetStream/vg | cmd/cdpackages.go | 958 | // Copyright © 2017 Stream
//
package cmd
import (
"errors"
"github.com/spf13/cobra"
)
// cdpackagesCmd represents the cdpackages command
var cdpackagesCmd = &cobra.Command{
Use: "cdpackages",
Short: "Change the working directory to the src directory of the active workspace",
Long: `Example:
$ vg activate test
$ vg cdpackages
$ echo $PWD
/home/user/.virtualgo/test/src
`,
RunE: func(cmd *cobra.Command, args []string) error {
return errors.New(noEvalError)
},
}
func init() {
RootCmd.AddCommand(cdpackagesCmd)
// Here you will define your flags and configuration settings.
// Cobra supports Persistent Flags which will work for this command
// and all subcommands, e.g.:
// cdpackagesCmd.PersistentFlags().String("foo", "", "A help for foo")
// Cobra supports local flags which will only run when this command
// is called directly, e.g.:
// cdpackagesCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
}
| mit |
angelicadly/prog-script | tekton-master/backend/appengine/routes/rotas/admin/edit.py | 965 | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from config.template_middleware import TemplateResponse
from gaebusiness.business import CommandExecutionException
from tekton import router
from gaecookie.decorator import no_csrf
from rota_app import facade
from routes.rotas import admin
@no_csrf
def index(rota_id):
rota = facade.get_rota_cmd(rota_id)()
detail_form = facade.rota_detail_form()
context = {'save_path': router.to_path(save, rota_id), 'rota': detail_form.fill_with_model(rota)}
return TemplateResponse(context, 'rotas/admin/form.html')
def save(_handler, rota_id, **rota_properties):
cmd = facade.update_rota_cmd(rota_id, **rota_properties)
try:
cmd()
except CommandExecutionException:
context = {'errors': cmd.errors,
'rota': cmd.form}
return TemplateResponse(context, 'rotas/admin/form.html')
_handler.redirect(router.to_path(admin))
| mit |
fforres/coworks_client_side | src/components/UserProfile/UserProfile.js | 961 | import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import { actions as sideBarActions } from '../../redux/modules/sideBar';
const mapStateToProps = (state) => {
return {
image: state.account.userData[state.account.userData.provider].profileImageURL,
displayName: state.account.userData[state.account.userData.provider].displayName
};
};
class SideBar extends Component {
static propTypes = {
image: PropTypes.string,
displayName: PropTypes.string
};
componentDidMount () {
}
render () {
return (
<div className=''>
<hr/>
<center>
<img
src={this.props.image}
name='aboutme' width='140' height='140' border='0' className='img-circle'
/>
<h3 className=''> {this.props.displayName}</h3>
</center>
<hr/>
</div>
);
}
}
export default connect(mapStateToProps, sideBarActions)(SideBar);
| mit |
opgginc/php-riotapi-request | src/Dto/LolStaticData/Champion/PassiveDto.php | 418 | <?php
/**
* Created by PhpStorm.
* User: kargnas
* Date: 2017-07-02
* Time: 04:55
*/
namespace RiotQuest\Dto\LolStaticData\Champion;
use RiotQuest\Dto\BaseDto;
class PassiveDto extends BaseDto
{
/** @var \RiotQuest\Dto\LolStaticData\ImageDto */
public $image;
/** @var string */
public $sanitizedDescription;
/** @var string */
public $name;
/** @var string */
public $description;
} | mit |
samuelmolinari/rpromise | lib/rpromise.rb | 2121 | require 'rpromise/version'
require 'method'
class Rpromise
module State
PENDING = :pending
RESOLVED = :resolved
REJECTED = :rejected
end
Handler = Struct.new(:on_resolved, :on_rejected, :resolve, :reject)
attr_reader :state, :thread
def initialize()
@state = State::PENDING
@defered = nil
@thread = Thread.new do
begin
yield(method(:resolve!), method(:reject!))
rescue => e
reject!(e)
end
end
@thread.abort_on_exception = true
end
def then(on_resolved = nil, on_rejected = nil)
raise ArgumentError unless is_valid_block?(on_resolved)
raise ArgumentError unless is_valid_block?(on_rejected)
return self if on_resolved.nil? && on_rejected.nil?
return ::Rpromise.new do |resolve, reject|
handler = Handler.new(on_resolved, on_rejected, resolve, reject)
handle(handler)
end
end
def pending?
return @state == State::PENDING
end
def resolved?
return @state == State::RESOLVED
end
def rejected?
return @state == State::REJECTED
end
def resolve!(value = nil)
if value.is_a?(::Rpromise)
value.then(method(:resolve!), method(:reject!))
return
end
@state = State::RESOLVED
@value = value
unless @defered.nil?
handle(@defered)
end
end
def reject!(value = nil)
@state = State::REJECTED
@value = value
unless @defered.nil?
handle(@defered)
end
end
def self.from_method(obj, method_name, *args, &block)
Rpromise.new do |resolve, reject|
resolve.call(obj.method(method_name).call(*args,&block))
end
end
protected
def is_valid_block?(arg)
return arg.nil? || arg.is_a?(Proc) || arg.is_a?(Method)
end
def handle(handler)
if pending?
@defered = handler
return nil
end
callback = nil
if resolved?
callback = handler.on_resolved
else
callback = handler.on_rejected
end
unless callback.nil?
output = nil
output = callback.call(@value)
handler.resolve.call(output) unless handler.resolve.nil?
end
end
end
| mit |
abdiansyah/olaps | application/modules/assesment/models/m_assesment.php | 7943 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class M_assesment extends CI_Model {
function __construct()
{
parent::__construct();
}
public function get_data_assesment($personnel_number, $request_number)
{
$query = "SELECT tal.reason_apply_license, tald.is_etops, masc.id, masc.name_t, tal.date_request,
(SELECT TOP 1 ta.date_written_assesment FROM t_assesment AS ta WHERE ta.request_number_fk = tal.request_number AND ta.id_assesment_scope_fk = tald.id_assesment_scope_fk AND tald.id_auth_license_fk = ta.id_auth_license_fk AND tald.id_auth_type_fk = ta.id_auth_type_fk AND tald.id_auth_spect_fk = ta.id_auth_spec_fk AND tald.id_auth_category_fk = ta.id_auth_category_fk AND tald.id_auth_scope_fk = ta.id_auth_scope_fk) AS date_written_assesment,
(SELECT TOP 1 ta.id_written_sesi FROM t_assesment AS ta WHERE ta.request_number_fk = tal.request_number AND ta.id_assesment_scope_fk = tald.id_assesment_scope_fk AND tald.id_auth_license_fk = ta.id_auth_license_fk AND tald.id_auth_type_fk = ta.id_auth_type_fk AND tald.id_auth_spect_fk = ta.id_auth_spec_fk AND tald.id_auth_category_fk = ta.id_auth_category_fk AND tald.id_auth_scope_fk = ta.id_auth_scope_fk) AS id_sesi_written_assesment,
(CASE (SELECT TOP 1 ta.id_written_sesi FROM t_assesment AS ta WHERE ta.request_number_fk = tal.request_number AND ta.id_assesment_scope_fk = tald.id_assesment_scope_fk AND tald.id_auth_license_fk = ta.id_auth_license_fk AND tald.id_auth_type_fk = ta.id_auth_type_fk AND tald.id_auth_spect_fk = ta.id_auth_spec_fk AND tald.id_auth_category_fk = ta.id_auth_category_fk AND tald.id_auth_scope_fk = ta.id_auth_scope_fk) WHEN '1' THEN '09:00 - 11:00' WHEN '2' THEN '13:00 - 15:00' END) AS sesi_written_assesment,
(SELECT TOP 1 mr.id_room FROM t_assesment AS ta
LEFT JOIN m_room AS mr ON ta.id_written_room_fk = mr.id_room WHERE ta.request_number_fk = tal.request_number AND ta.id_assesment_scope_fk = tald.id_assesment_scope_fk AND tald.id_auth_license_fk = ta.id_auth_license_fk AND tald.id_auth_type_fk = ta.id_auth_type_fk AND tald.id_auth_spect_fk = ta.id_auth_spec_fk AND tald.id_auth_category_fk = ta.id_auth_category_fk AND tald.id_auth_scope_fk = ta.id_auth_scope_fk) AS id_room_written_assesment,
(SELECT TOP 1 mr.name_room FROM t_assesment AS ta
LEFT JOIN m_room AS mr ON ta.id_written_room_fk = mr.id_room WHERE ta.request_number_fk = tal.request_number AND ta.id_assesment_scope_fk = tald.id_assesment_scope_fk AND tald.id_auth_license_fk = ta.id_auth_license_fk AND tald.id_auth_type_fk = ta.id_auth_type_fk AND tald.id_auth_spect_fk = ta.id_auth_spec_fk AND tald.id_auth_category_fk = ta.id_auth_category_fk AND tald.id_auth_scope_fk = ta.id_auth_scope_fk) AS room_written_assesment,
tald.status_oral_assesment,(mal.name_t) AS name_license, (mat.name_t) AS name_type, masp.name_t AS name_spect, mac.name_t AS name_category, mas.name_t AS name_scope,
(mal.id) AS id_license, (mat.id) AS id_type, (masp.id) AS id_spect, (mas.id) AS id_scope, (mac.id) AS id_category
FROM t_apply_license AS tal
LEFT JOIN t_apply_license_dtl AS tald ON tald.request_number_fk = tal.request_number
LEFT JOIN t_assesment AS ta ON tald.request_number_fk = ta.request_number_fk
LEFT JOIN m_auth_license AS mal ON tald.id_auth_license_fk = mal.id
LEFT JOIN m_auth_type AS mat ON tald.id_auth_type_fk = mat.id
LEFT JOIN m_auth_spect AS masp ON tald.id_auth_spect_fk = masp.id
LEFT JOIN m_auth_category AS mac ON tald.id_auth_category_fk = mac.id
LEFT JOIN m_auth_scope AS mas ON tald.id_auth_scope_fk = mas.id
LEFT JOIN m_assesment_scope AS masc ON tald.id_assesment_scope_fk = masc.id
WHERE tald.request_number_fk = '$request_number' AND tal.personnel_number ='$personnel_number' AND tald.id_auth_license_fk = ta.id_auth_license_fk AND tald.id_auth_type_fk = ta.id_auth_type_fk AND tald.id_auth_spect_fk = ta.id_auth_spec_fk AND tald.id_auth_category_fk = ta.id_auth_category_fk AND tald.id_auth_scope_fk = ta.id_auth_scope_fk AND tald.status_written_assesment = '1'";
return $this->db->query($query)->result();
}
public function get_emp_assesment($request_number){
$query = "SELECT tal.request_number from t_apply_license AS tal
WHERE tal.request_number='$request_number'";
return $this->db->query($query)->row_array();
}
public function get_emp_for_assesment($personnel_number){
$querydataapplyemp = "SELECT (TSH.PERNR) AS personnel_number, (TSH.EMPLNAME) AS name , (TSH.EMAIL) AS email, (TSH.JOBTITLE) AS presenttitle, (TSH.UNIT) AS departement FROM db_hrm.dbo.TBL_SOE_HEAD AS TSH
WHERE TSH.PERNR = '$personnel_number'
UNION
SELECT personnel_number, name, email, presenttitle,departement
FROM m_employee WHERE personnel_number = '$personnel_number'";
return $this->db->query($querydataapplyemp)->row_array();
}
public function get_room_by($date_assesment, $id_sesi, $id_room){
$query = "SELECT count(tasm.personnel_number_fk) AS limit,
(SELECT mr.quota FROM m_room AS mr WHERE mr.id_room = '$id_room') AS quota
FROM t_assesment AS tasm
WHERE tasm.id_written_sesi = '$id_sesi' AND (CONVERT(varchar(10), CONVERT(datetime,date_written_assesment,120),105)) = '$date_assesment' AND
tasm.id_written_room_fk = '$id_room'
";
$data_room = $this->db->query($query)->row();
$data_room_json = json_encode($data_room);
die($data_room_json);
}
public function get_room(){
$query = "SELECT TOP 1 mr.id_room AS ir, mr.name_room AS nr
FROM m_room AS mr";
$data_room = $this->db->query($query)->row();
$data_room_json = json_encode($data_room);
die($data_room_json);
}
public function get_blocked_room($date_assesment, $id_room) {
$query = "SELECT TOP 1 * FROM t_blocked_room AS tbr WHERE '$date_assesment' BETWEEN (CONVERT(varchar(10), CONVERT(datetime,tbr.date_from,120),105)) AND (CONVERT(varchar(10), CONVERT(datetime,tbr.date_until,120),105)) AND tbr.id_room_fk = '$id_room'";
$data_blocked_room = $this->db->query($query)->num_rows();
die(json_encode($data_blocked_room));
}
public function get_room_kuota($date_written_assesment, $id_sesi, $id_room){
$query = "SELECT COUNT(tasm.id_sesi) AS jumlah_sesi FROM t_assesment tasm
WHERE tasm.id_sesi = '$id_sesi' AND tasm.date_written_assesment = '$date_written_assesment' AND tasm.id_room_fk = '$id_room'";
$data_kuota = $this->db->query($query)->row();
$data_kuota_json = json_encode($data_kuota);
die($data_kuota_json);
}
public function get_summary_assesment($sesi, $assesment, $room, $date_written_assesment){
$query = "SELECT masc.name_t AS name_assesment_scope, mr.name_room, mases.name_t AS sesi, '$date_written_assesment' AS date_written_assesment FROM m_assesment_scope masc
LEFT JOIN m_room mr ON mr.id_room = '$room'
LEFT JOIN m_assesment_session mases ON mases.id = '$sesi'
WHERE masc.id ='$assesment'";
$data['data_sum_assesment'] = $this->db->query($query)->result();
$this->load->view('assesment/tab_sum_assesment', $data);
}
} | mit |
jankaspar/ts-discriminated-union | src/union.ts | 123989 | // DO NOT EDIT THIS FILE IT IS GENERATED, EDIT union.ts.tmpl instead
module tsDiscriminatedUnion{
export interface Union<TValue, TMatchable> {
match(value: TValue): TMatchable // in typescript 1.8 null is considered subtype of any type
type: TValue // keep the combined type for convenience
}
export interface Union1<T1> extends Union<T1, FirstMatchable1<T1>> {}
export interface Union2<T1, T2> extends Union<T1 | T2, FirstMatchable2<T1, T2>> {}
export interface Union3<T1, T2, T3> extends Union<T1 | T2 | T3, FirstMatchable3<T1, T2, T3>> {}
export interface Union4<T1, T2, T3, T4> extends Union<T1 | T2 | T3 | T4, FirstMatchable4<T1, T2, T3, T4>> {}
export interface Union5<T1, T2, T3, T4, T5> extends Union<T1 | T2 | T3 | T4 | T5, FirstMatchable5<T1, T2, T3, T4, T5>> {}
export interface Union6<T1, T2, T3, T4, T5, T6> extends Union<T1 | T2 | T3 | T4 | T5 | T6, FirstMatchable6<T1, T2, T3, T4, T5, T6>> {}
export interface Union7<T1, T2, T3, T4, T5, T6, T7> extends Union<T1 | T2 | T3 | T4 | T5 | T6 | T7, FirstMatchable7<T1, T2, T3, T4, T5, T6, T7>> {}
export interface Union8<T1, T2, T3, T4, T5, T6, T7, T8> extends Union<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8, FirstMatchable8<T1, T2, T3, T4, T5, T6, T7, T8>> {}
export interface Union9<T1, T2, T3, T4, T5, T6, T7, T8, T9> extends Union<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9, FirstMatchable9<T1, T2, T3, T4, T5, T6, T7, T8, T9>> {}
export interface Union10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> extends Union<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9 | T10, FirstMatchable10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>> {}
export interface Union11<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> extends Union<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9 | T10 | T11, FirstMatchable11<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>> {}
export interface Union12<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> extends Union<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9 | T10 | T11 | T12, FirstMatchable12<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>> {}
export interface Union13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> extends Union<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9 | T10 | T11 | T12 | T13, FirstMatchable13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>> {}
export interface Union14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> extends Union<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9 | T10 | T11 | T12 | T13 | T14, FirstMatchable14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>> {}
export interface Union15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> extends Union<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9 | T10 | T11 | T12 | T13 | T14 | T15, FirstMatchable15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>> {}
export interface Union16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> extends Union<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9 | T10 | T11 | T12 | T13 | T14 | T15 | T16, FirstMatchable16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>> {}
export interface Union17<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17> extends Union<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9 | T10 | T11 | T12 | T13 | T14 | T15 | T16 | T17, FirstMatchable17<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17>> {}
export interface Union18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18> extends Union<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9 | T10 | T11 | T12 | T13 | T14 | T15 | T16 | T17 | T18, FirstMatchable18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18>> {}
export interface Union19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19> extends Union<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9 | T10 | T11 | T12 | T13 | T14 | T15 | T16 | T17 | T18 | T19, FirstMatchable19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19>> {}
export interface Union20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20> extends Union<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9 | T10 | T11 | T12 | T13 | T14 | T15 | T16 | T17 | T18 | T19 | T20, FirstMatchable20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20>> {}
export interface Union21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21> extends Union<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9 | T10 | T11 | T12 | T13 | T14 | T15 | T16 | T17 | T18 | T19 | T20 | T21, FirstMatchable21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21>> {}
export interface Union22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22> extends Union<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9 | T10 | T11 | T12 | T13 | T14 | T15 | T16 | T17 | T18 | T19 | T20 | T21 | T22, FirstMatchable22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22>> {}
export interface Union23<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23> extends Union<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9 | T10 | T11 | T12 | T13 | T14 | T15 | T16 | T17 | T18 | T19 | T20 | T21 | T22 | T23, FirstMatchable23<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23>> {}
export interface Union24<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24> extends Union<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9 | T10 | T11 | T12 | T13 | T14 | T15 | T16 | T17 | T18 | T19 | T20 | T21 | T22 | T23 | T24, FirstMatchable24<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24>> {}
export interface FirstMatchable1<T>{
case<TReturn>(type: TypeDescriptor<T>, action: (v:T) => TReturn): { result(): TReturn}
}
export interface FirstMatchable2<T1, T2> {
case<TReturn>(type: TypeDescriptor<T1>, action: (v:T1) => TReturn): Matchable1<T2, TReturn>
case<TReturn>(type: TypeDescriptor<T2>, action: (v:T2) => TReturn): Matchable1<T1, TReturn>
}
export interface FirstMatchable3<T1, T2, T3> {
case<TReturn>(type: TypeDescriptor<T1>, action: (v:T1) => TReturn): Matchable2<T2, T3, TReturn>
case<TReturn>(type: TypeDescriptor<T2>, action: (v:T2) => TReturn): Matchable2<T1, T3, TReturn>
case<TReturn>(type: TypeDescriptor<T3>, action: (v:T3) => TReturn): Matchable2<T1, T2, TReturn>
}
export interface FirstMatchable4<T1, T2, T3, T4> {
case<TReturn>(type: TypeDescriptor<T1>, action: (v:T1) => TReturn): Matchable3<T2, T3, T4, TReturn>
case<TReturn>(type: TypeDescriptor<T2>, action: (v:T2) => TReturn): Matchable3<T1, T3, T4, TReturn>
case<TReturn>(type: TypeDescriptor<T3>, action: (v:T3) => TReturn): Matchable3<T1, T2, T4, TReturn>
case<TReturn>(type: TypeDescriptor<T4>, action: (v:T4) => TReturn): Matchable3<T1, T2, T3, TReturn>
}
export interface FirstMatchable5<T1, T2, T3, T4, T5> {
case<TReturn>(type: TypeDescriptor<T1>, action: (v:T1) => TReturn): Matchable4<T2, T3, T4, T5, TReturn>
case<TReturn>(type: TypeDescriptor<T2>, action: (v:T2) => TReturn): Matchable4<T1, T3, T4, T5, TReturn>
case<TReturn>(type: TypeDescriptor<T3>, action: (v:T3) => TReturn): Matchable4<T1, T2, T4, T5, TReturn>
case<TReturn>(type: TypeDescriptor<T4>, action: (v:T4) => TReturn): Matchable4<T1, T2, T3, T5, TReturn>
case<TReturn>(type: TypeDescriptor<T5>, action: (v:T5) => TReturn): Matchable4<T1, T2, T3, T4, TReturn>
}
export interface FirstMatchable6<T1, T2, T3, T4, T5, T6> {
case<TReturn>(type: TypeDescriptor<T1>, action: (v:T1) => TReturn): Matchable5<T2, T3, T4, T5, T6, TReturn>
case<TReturn>(type: TypeDescriptor<T2>, action: (v:T2) => TReturn): Matchable5<T1, T3, T4, T5, T6, TReturn>
case<TReturn>(type: TypeDescriptor<T3>, action: (v:T3) => TReturn): Matchable5<T1, T2, T4, T5, T6, TReturn>
case<TReturn>(type: TypeDescriptor<T4>, action: (v:T4) => TReturn): Matchable5<T1, T2, T3, T5, T6, TReturn>
case<TReturn>(type: TypeDescriptor<T5>, action: (v:T5) => TReturn): Matchable5<T1, T2, T3, T4, T6, TReturn>
case<TReturn>(type: TypeDescriptor<T6>, action: (v:T6) => TReturn): Matchable5<T1, T2, T3, T4, T5, TReturn>
}
export interface FirstMatchable7<T1, T2, T3, T4, T5, T6, T7> {
case<TReturn>(type: TypeDescriptor<T1>, action: (v:T1) => TReturn): Matchable6<T2, T3, T4, T5, T6, T7, TReturn>
case<TReturn>(type: TypeDescriptor<T2>, action: (v:T2) => TReturn): Matchable6<T1, T3, T4, T5, T6, T7, TReturn>
case<TReturn>(type: TypeDescriptor<T3>, action: (v:T3) => TReturn): Matchable6<T1, T2, T4, T5, T6, T7, TReturn>
case<TReturn>(type: TypeDescriptor<T4>, action: (v:T4) => TReturn): Matchable6<T1, T2, T3, T5, T6, T7, TReturn>
case<TReturn>(type: TypeDescriptor<T5>, action: (v:T5) => TReturn): Matchable6<T1, T2, T3, T4, T6, T7, TReturn>
case<TReturn>(type: TypeDescriptor<T6>, action: (v:T6) => TReturn): Matchable6<T1, T2, T3, T4, T5, T7, TReturn>
case<TReturn>(type: TypeDescriptor<T7>, action: (v:T7) => TReturn): Matchable6<T1, T2, T3, T4, T5, T6, TReturn>
}
export interface FirstMatchable8<T1, T2, T3, T4, T5, T6, T7, T8> {
case<TReturn>(type: TypeDescriptor<T1>, action: (v:T1) => TReturn): Matchable7<T2, T3, T4, T5, T6, T7, T8, TReturn>
case<TReturn>(type: TypeDescriptor<T2>, action: (v:T2) => TReturn): Matchable7<T1, T3, T4, T5, T6, T7, T8, TReturn>
case<TReturn>(type: TypeDescriptor<T3>, action: (v:T3) => TReturn): Matchable7<T1, T2, T4, T5, T6, T7, T8, TReturn>
case<TReturn>(type: TypeDescriptor<T4>, action: (v:T4) => TReturn): Matchable7<T1, T2, T3, T5, T6, T7, T8, TReturn>
case<TReturn>(type: TypeDescriptor<T5>, action: (v:T5) => TReturn): Matchable7<T1, T2, T3, T4, T6, T7, T8, TReturn>
case<TReturn>(type: TypeDescriptor<T6>, action: (v:T6) => TReturn): Matchable7<T1, T2, T3, T4, T5, T7, T8, TReturn>
case<TReturn>(type: TypeDescriptor<T7>, action: (v:T7) => TReturn): Matchable7<T1, T2, T3, T4, T5, T6, T8, TReturn>
case<TReturn>(type: TypeDescriptor<T8>, action: (v:T8) => TReturn): Matchable7<T1, T2, T3, T4, T5, T6, T7, TReturn>
}
export interface FirstMatchable9<T1, T2, T3, T4, T5, T6, T7, T8, T9> {
case<TReturn>(type: TypeDescriptor<T1>, action: (v:T1) => TReturn): Matchable8<T2, T3, T4, T5, T6, T7, T8, T9, TReturn>
case<TReturn>(type: TypeDescriptor<T2>, action: (v:T2) => TReturn): Matchable8<T1, T3, T4, T5, T6, T7, T8, T9, TReturn>
case<TReturn>(type: TypeDescriptor<T3>, action: (v:T3) => TReturn): Matchable8<T1, T2, T4, T5, T6, T7, T8, T9, TReturn>
case<TReturn>(type: TypeDescriptor<T4>, action: (v:T4) => TReturn): Matchable8<T1, T2, T3, T5, T6, T7, T8, T9, TReturn>
case<TReturn>(type: TypeDescriptor<T5>, action: (v:T5) => TReturn): Matchable8<T1, T2, T3, T4, T6, T7, T8, T9, TReturn>
case<TReturn>(type: TypeDescriptor<T6>, action: (v:T6) => TReturn): Matchable8<T1, T2, T3, T4, T5, T7, T8, T9, TReturn>
case<TReturn>(type: TypeDescriptor<T7>, action: (v:T7) => TReturn): Matchable8<T1, T2, T3, T4, T5, T6, T8, T9, TReturn>
case<TReturn>(type: TypeDescriptor<T8>, action: (v:T8) => TReturn): Matchable8<T1, T2, T3, T4, T5, T6, T7, T9, TReturn>
case<TReturn>(type: TypeDescriptor<T9>, action: (v:T9) => TReturn): Matchable8<T1, T2, T3, T4, T5, T6, T7, T8, TReturn>
}
export interface FirstMatchable10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> {
case<TReturn>(type: TypeDescriptor<T1>, action: (v:T1) => TReturn): Matchable9<T2, T3, T4, T5, T6, T7, T8, T9, T10, TReturn>
case<TReturn>(type: TypeDescriptor<T2>, action: (v:T2) => TReturn): Matchable9<T1, T3, T4, T5, T6, T7, T8, T9, T10, TReturn>
case<TReturn>(type: TypeDescriptor<T3>, action: (v:T3) => TReturn): Matchable9<T1, T2, T4, T5, T6, T7, T8, T9, T10, TReturn>
case<TReturn>(type: TypeDescriptor<T4>, action: (v:T4) => TReturn): Matchable9<T1, T2, T3, T5, T6, T7, T8, T9, T10, TReturn>
case<TReturn>(type: TypeDescriptor<T5>, action: (v:T5) => TReturn): Matchable9<T1, T2, T3, T4, T6, T7, T8, T9, T10, TReturn>
case<TReturn>(type: TypeDescriptor<T6>, action: (v:T6) => TReturn): Matchable9<T1, T2, T3, T4, T5, T7, T8, T9, T10, TReturn>
case<TReturn>(type: TypeDescriptor<T7>, action: (v:T7) => TReturn): Matchable9<T1, T2, T3, T4, T5, T6, T8, T9, T10, TReturn>
case<TReturn>(type: TypeDescriptor<T8>, action: (v:T8) => TReturn): Matchable9<T1, T2, T3, T4, T5, T6, T7, T9, T10, TReturn>
case<TReturn>(type: TypeDescriptor<T9>, action: (v:T9) => TReturn): Matchable9<T1, T2, T3, T4, T5, T6, T7, T8, T10, TReturn>
case<TReturn>(type: TypeDescriptor<T10>, action: (v:T10) => TReturn): Matchable9<T1, T2, T3, T4, T5, T6, T7, T8, T9, TReturn>
}
export interface FirstMatchable11<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> {
case<TReturn>(type: TypeDescriptor<T1>, action: (v:T1) => TReturn): Matchable10<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TReturn>
case<TReturn>(type: TypeDescriptor<T2>, action: (v:T2) => TReturn): Matchable10<T1, T3, T4, T5, T6, T7, T8, T9, T10, T11, TReturn>
case<TReturn>(type: TypeDescriptor<T3>, action: (v:T3) => TReturn): Matchable10<T1, T2, T4, T5, T6, T7, T8, T9, T10, T11, TReturn>
case<TReturn>(type: TypeDescriptor<T4>, action: (v:T4) => TReturn): Matchable10<T1, T2, T3, T5, T6, T7, T8, T9, T10, T11, TReturn>
case<TReturn>(type: TypeDescriptor<T5>, action: (v:T5) => TReturn): Matchable10<T1, T2, T3, T4, T6, T7, T8, T9, T10, T11, TReturn>
case<TReturn>(type: TypeDescriptor<T6>, action: (v:T6) => TReturn): Matchable10<T1, T2, T3, T4, T5, T7, T8, T9, T10, T11, TReturn>
case<TReturn>(type: TypeDescriptor<T7>, action: (v:T7) => TReturn): Matchable10<T1, T2, T3, T4, T5, T6, T8, T9, T10, T11, TReturn>
case<TReturn>(type: TypeDescriptor<T8>, action: (v:T8) => TReturn): Matchable10<T1, T2, T3, T4, T5, T6, T7, T9, T10, T11, TReturn>
case<TReturn>(type: TypeDescriptor<T9>, action: (v:T9) => TReturn): Matchable10<T1, T2, T3, T4, T5, T6, T7, T8, T10, T11, TReturn>
case<TReturn>(type: TypeDescriptor<T10>, action: (v:T10) => TReturn): Matchable10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T11, TReturn>
case<TReturn>(type: TypeDescriptor<T11>, action: (v:T11) => TReturn): Matchable10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TReturn>
}
export interface FirstMatchable12<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> {
case<TReturn>(type: TypeDescriptor<T1>, action: (v:T1) => TReturn): Matchable11<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TReturn>
case<TReturn>(type: TypeDescriptor<T2>, action: (v:T2) => TReturn): Matchable11<T1, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TReturn>
case<TReturn>(type: TypeDescriptor<T3>, action: (v:T3) => TReturn): Matchable11<T1, T2, T4, T5, T6, T7, T8, T9, T10, T11, T12, TReturn>
case<TReturn>(type: TypeDescriptor<T4>, action: (v:T4) => TReturn): Matchable11<T1, T2, T3, T5, T6, T7, T8, T9, T10, T11, T12, TReturn>
case<TReturn>(type: TypeDescriptor<T5>, action: (v:T5) => TReturn): Matchable11<T1, T2, T3, T4, T6, T7, T8, T9, T10, T11, T12, TReturn>
case<TReturn>(type: TypeDescriptor<T6>, action: (v:T6) => TReturn): Matchable11<T1, T2, T3, T4, T5, T7, T8, T9, T10, T11, T12, TReturn>
case<TReturn>(type: TypeDescriptor<T7>, action: (v:T7) => TReturn): Matchable11<T1, T2, T3, T4, T5, T6, T8, T9, T10, T11, T12, TReturn>
case<TReturn>(type: TypeDescriptor<T8>, action: (v:T8) => TReturn): Matchable11<T1, T2, T3, T4, T5, T6, T7, T9, T10, T11, T12, TReturn>
case<TReturn>(type: TypeDescriptor<T9>, action: (v:T9) => TReturn): Matchable11<T1, T2, T3, T4, T5, T6, T7, T8, T10, T11, T12, TReturn>
case<TReturn>(type: TypeDescriptor<T10>, action: (v:T10) => TReturn): Matchable11<T1, T2, T3, T4, T5, T6, T7, T8, T9, T11, T12, TReturn>
case<TReturn>(type: TypeDescriptor<T11>, action: (v:T11) => TReturn): Matchable11<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T12, TReturn>
case<TReturn>(type: TypeDescriptor<T12>, action: (v:T12) => TReturn): Matchable11<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TReturn>
}
export interface FirstMatchable13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> {
case<TReturn>(type: TypeDescriptor<T1>, action: (v:T1) => TReturn): Matchable12<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TReturn>
case<TReturn>(type: TypeDescriptor<T2>, action: (v:T2) => TReturn): Matchable12<T1, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TReturn>
case<TReturn>(type: TypeDescriptor<T3>, action: (v:T3) => TReturn): Matchable12<T1, T2, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TReturn>
case<TReturn>(type: TypeDescriptor<T4>, action: (v:T4) => TReturn): Matchable12<T1, T2, T3, T5, T6, T7, T8, T9, T10, T11, T12, T13, TReturn>
case<TReturn>(type: TypeDescriptor<T5>, action: (v:T5) => TReturn): Matchable12<T1, T2, T3, T4, T6, T7, T8, T9, T10, T11, T12, T13, TReturn>
case<TReturn>(type: TypeDescriptor<T6>, action: (v:T6) => TReturn): Matchable12<T1, T2, T3, T4, T5, T7, T8, T9, T10, T11, T12, T13, TReturn>
case<TReturn>(type: TypeDescriptor<T7>, action: (v:T7) => TReturn): Matchable12<T1, T2, T3, T4, T5, T6, T8, T9, T10, T11, T12, T13, TReturn>
case<TReturn>(type: TypeDescriptor<T8>, action: (v:T8) => TReturn): Matchable12<T1, T2, T3, T4, T5, T6, T7, T9, T10, T11, T12, T13, TReturn>
case<TReturn>(type: TypeDescriptor<T9>, action: (v:T9) => TReturn): Matchable12<T1, T2, T3, T4, T5, T6, T7, T8, T10, T11, T12, T13, TReturn>
case<TReturn>(type: TypeDescriptor<T10>, action: (v:T10) => TReturn): Matchable12<T1, T2, T3, T4, T5, T6, T7, T8, T9, T11, T12, T13, TReturn>
case<TReturn>(type: TypeDescriptor<T11>, action: (v:T11) => TReturn): Matchable12<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T12, T13, TReturn>
case<TReturn>(type: TypeDescriptor<T12>, action: (v:T12) => TReturn): Matchable12<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T13, TReturn>
case<TReturn>(type: TypeDescriptor<T13>, action: (v:T13) => TReturn): Matchable12<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TReturn>
}
export interface FirstMatchable14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> {
case<TReturn>(type: TypeDescriptor<T1>, action: (v:T1) => TReturn): Matchable13<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TReturn>
case<TReturn>(type: TypeDescriptor<T2>, action: (v:T2) => TReturn): Matchable13<T1, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TReturn>
case<TReturn>(type: TypeDescriptor<T3>, action: (v:T3) => TReturn): Matchable13<T1, T2, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TReturn>
case<TReturn>(type: TypeDescriptor<T4>, action: (v:T4) => TReturn): Matchable13<T1, T2, T3, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TReturn>
case<TReturn>(type: TypeDescriptor<T5>, action: (v:T5) => TReturn): Matchable13<T1, T2, T3, T4, T6, T7, T8, T9, T10, T11, T12, T13, T14, TReturn>
case<TReturn>(type: TypeDescriptor<T6>, action: (v:T6) => TReturn): Matchable13<T1, T2, T3, T4, T5, T7, T8, T9, T10, T11, T12, T13, T14, TReturn>
case<TReturn>(type: TypeDescriptor<T7>, action: (v:T7) => TReturn): Matchable13<T1, T2, T3, T4, T5, T6, T8, T9, T10, T11, T12, T13, T14, TReturn>
case<TReturn>(type: TypeDescriptor<T8>, action: (v:T8) => TReturn): Matchable13<T1, T2, T3, T4, T5, T6, T7, T9, T10, T11, T12, T13, T14, TReturn>
case<TReturn>(type: TypeDescriptor<T9>, action: (v:T9) => TReturn): Matchable13<T1, T2, T3, T4, T5, T6, T7, T8, T10, T11, T12, T13, T14, TReturn>
case<TReturn>(type: TypeDescriptor<T10>, action: (v:T10) => TReturn): Matchable13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T11, T12, T13, T14, TReturn>
case<TReturn>(type: TypeDescriptor<T11>, action: (v:T11) => TReturn): Matchable13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T12, T13, T14, TReturn>
case<TReturn>(type: TypeDescriptor<T12>, action: (v:T12) => TReturn): Matchable13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T13, T14, TReturn>
case<TReturn>(type: TypeDescriptor<T13>, action: (v:T13) => TReturn): Matchable13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T14, TReturn>
case<TReturn>(type: TypeDescriptor<T14>, action: (v:T14) => TReturn): Matchable13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TReturn>
}
export interface FirstMatchable15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> {
case<TReturn>(type: TypeDescriptor<T1>, action: (v:T1) => TReturn): Matchable14<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TReturn>
case<TReturn>(type: TypeDescriptor<T2>, action: (v:T2) => TReturn): Matchable14<T1, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TReturn>
case<TReturn>(type: TypeDescriptor<T3>, action: (v:T3) => TReturn): Matchable14<T1, T2, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TReturn>
case<TReturn>(type: TypeDescriptor<T4>, action: (v:T4) => TReturn): Matchable14<T1, T2, T3, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TReturn>
case<TReturn>(type: TypeDescriptor<T5>, action: (v:T5) => TReturn): Matchable14<T1, T2, T3, T4, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TReturn>
case<TReturn>(type: TypeDescriptor<T6>, action: (v:T6) => TReturn): Matchable14<T1, T2, T3, T4, T5, T7, T8, T9, T10, T11, T12, T13, T14, T15, TReturn>
case<TReturn>(type: TypeDescriptor<T7>, action: (v:T7) => TReturn): Matchable14<T1, T2, T3, T4, T5, T6, T8, T9, T10, T11, T12, T13, T14, T15, TReturn>
case<TReturn>(type: TypeDescriptor<T8>, action: (v:T8) => TReturn): Matchable14<T1, T2, T3, T4, T5, T6, T7, T9, T10, T11, T12, T13, T14, T15, TReturn>
case<TReturn>(type: TypeDescriptor<T9>, action: (v:T9) => TReturn): Matchable14<T1, T2, T3, T4, T5, T6, T7, T8, T10, T11, T12, T13, T14, T15, TReturn>
case<TReturn>(type: TypeDescriptor<T10>, action: (v:T10) => TReturn): Matchable14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T11, T12, T13, T14, T15, TReturn>
case<TReturn>(type: TypeDescriptor<T11>, action: (v:T11) => TReturn): Matchable14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T12, T13, T14, T15, TReturn>
case<TReturn>(type: TypeDescriptor<T12>, action: (v:T12) => TReturn): Matchable14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T13, T14, T15, TReturn>
case<TReturn>(type: TypeDescriptor<T13>, action: (v:T13) => TReturn): Matchable14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T14, T15, TReturn>
case<TReturn>(type: TypeDescriptor<T14>, action: (v:T14) => TReturn): Matchable14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T15, TReturn>
case<TReturn>(type: TypeDescriptor<T15>, action: (v:T15) => TReturn): Matchable14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TReturn>
}
export interface FirstMatchable16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> {
case<TReturn>(type: TypeDescriptor<T1>, action: (v:T1) => TReturn): Matchable15<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TReturn>
case<TReturn>(type: TypeDescriptor<T2>, action: (v:T2) => TReturn): Matchable15<T1, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TReturn>
case<TReturn>(type: TypeDescriptor<T3>, action: (v:T3) => TReturn): Matchable15<T1, T2, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TReturn>
case<TReturn>(type: TypeDescriptor<T4>, action: (v:T4) => TReturn): Matchable15<T1, T2, T3, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TReturn>
case<TReturn>(type: TypeDescriptor<T5>, action: (v:T5) => TReturn): Matchable15<T1, T2, T3, T4, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TReturn>
case<TReturn>(type: TypeDescriptor<T6>, action: (v:T6) => TReturn): Matchable15<T1, T2, T3, T4, T5, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TReturn>
case<TReturn>(type: TypeDescriptor<T7>, action: (v:T7) => TReturn): Matchable15<T1, T2, T3, T4, T5, T6, T8, T9, T10, T11, T12, T13, T14, T15, T16, TReturn>
case<TReturn>(type: TypeDescriptor<T8>, action: (v:T8) => TReturn): Matchable15<T1, T2, T3, T4, T5, T6, T7, T9, T10, T11, T12, T13, T14, T15, T16, TReturn>
case<TReturn>(type: TypeDescriptor<T9>, action: (v:T9) => TReturn): Matchable15<T1, T2, T3, T4, T5, T6, T7, T8, T10, T11, T12, T13, T14, T15, T16, TReturn>
case<TReturn>(type: TypeDescriptor<T10>, action: (v:T10) => TReturn): Matchable15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T11, T12, T13, T14, T15, T16, TReturn>
case<TReturn>(type: TypeDescriptor<T11>, action: (v:T11) => TReturn): Matchable15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T12, T13, T14, T15, T16, TReturn>
case<TReturn>(type: TypeDescriptor<T12>, action: (v:T12) => TReturn): Matchable15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T13, T14, T15, T16, TReturn>
case<TReturn>(type: TypeDescriptor<T13>, action: (v:T13) => TReturn): Matchable15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T14, T15, T16, TReturn>
case<TReturn>(type: TypeDescriptor<T14>, action: (v:T14) => TReturn): Matchable15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T15, T16, TReturn>
case<TReturn>(type: TypeDescriptor<T15>, action: (v:T15) => TReturn): Matchable15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T16, TReturn>
case<TReturn>(type: TypeDescriptor<T16>, action: (v:T16) => TReturn): Matchable15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TReturn>
}
export interface FirstMatchable17<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17> {
case<TReturn>(type: TypeDescriptor<T1>, action: (v:T1) => TReturn): Matchable16<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, TReturn>
case<TReturn>(type: TypeDescriptor<T2>, action: (v:T2) => TReturn): Matchable16<T1, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, TReturn>
case<TReturn>(type: TypeDescriptor<T3>, action: (v:T3) => TReturn): Matchable16<T1, T2, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, TReturn>
case<TReturn>(type: TypeDescriptor<T4>, action: (v:T4) => TReturn): Matchable16<T1, T2, T3, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, TReturn>
case<TReturn>(type: TypeDescriptor<T5>, action: (v:T5) => TReturn): Matchable16<T1, T2, T3, T4, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, TReturn>
case<TReturn>(type: TypeDescriptor<T6>, action: (v:T6) => TReturn): Matchable16<T1, T2, T3, T4, T5, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, TReturn>
case<TReturn>(type: TypeDescriptor<T7>, action: (v:T7) => TReturn): Matchable16<T1, T2, T3, T4, T5, T6, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, TReturn>
case<TReturn>(type: TypeDescriptor<T8>, action: (v:T8) => TReturn): Matchable16<T1, T2, T3, T4, T5, T6, T7, T9, T10, T11, T12, T13, T14, T15, T16, T17, TReturn>
case<TReturn>(type: TypeDescriptor<T9>, action: (v:T9) => TReturn): Matchable16<T1, T2, T3, T4, T5, T6, T7, T8, T10, T11, T12, T13, T14, T15, T16, T17, TReturn>
case<TReturn>(type: TypeDescriptor<T10>, action: (v:T10) => TReturn): Matchable16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T11, T12, T13, T14, T15, T16, T17, TReturn>
case<TReturn>(type: TypeDescriptor<T11>, action: (v:T11) => TReturn): Matchable16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T12, T13, T14, T15, T16, T17, TReturn>
case<TReturn>(type: TypeDescriptor<T12>, action: (v:T12) => TReturn): Matchable16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T13, T14, T15, T16, T17, TReturn>
case<TReturn>(type: TypeDescriptor<T13>, action: (v:T13) => TReturn): Matchable16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T14, T15, T16, T17, TReturn>
case<TReturn>(type: TypeDescriptor<T14>, action: (v:T14) => TReturn): Matchable16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T15, T16, T17, TReturn>
case<TReturn>(type: TypeDescriptor<T15>, action: (v:T15) => TReturn): Matchable16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T16, T17, TReturn>
case<TReturn>(type: TypeDescriptor<T16>, action: (v:T16) => TReturn): Matchable16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T17, TReturn>
case<TReturn>(type: TypeDescriptor<T17>, action: (v:T17) => TReturn): Matchable16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TReturn>
}
export interface FirstMatchable18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18> {
case<TReturn>(type: TypeDescriptor<T1>, action: (v:T1) => TReturn): Matchable17<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, TReturn>
case<TReturn>(type: TypeDescriptor<T2>, action: (v:T2) => TReturn): Matchable17<T1, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, TReturn>
case<TReturn>(type: TypeDescriptor<T3>, action: (v:T3) => TReturn): Matchable17<T1, T2, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, TReturn>
case<TReturn>(type: TypeDescriptor<T4>, action: (v:T4) => TReturn): Matchable17<T1, T2, T3, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, TReturn>
case<TReturn>(type: TypeDescriptor<T5>, action: (v:T5) => TReturn): Matchable17<T1, T2, T3, T4, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, TReturn>
case<TReturn>(type: TypeDescriptor<T6>, action: (v:T6) => TReturn): Matchable17<T1, T2, T3, T4, T5, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, TReturn>
case<TReturn>(type: TypeDescriptor<T7>, action: (v:T7) => TReturn): Matchable17<T1, T2, T3, T4, T5, T6, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, TReturn>
case<TReturn>(type: TypeDescriptor<T8>, action: (v:T8) => TReturn): Matchable17<T1, T2, T3, T4, T5, T6, T7, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, TReturn>
case<TReturn>(type: TypeDescriptor<T9>, action: (v:T9) => TReturn): Matchable17<T1, T2, T3, T4, T5, T6, T7, T8, T10, T11, T12, T13, T14, T15, T16, T17, T18, TReturn>
case<TReturn>(type: TypeDescriptor<T10>, action: (v:T10) => TReturn): Matchable17<T1, T2, T3, T4, T5, T6, T7, T8, T9, T11, T12, T13, T14, T15, T16, T17, T18, TReturn>
case<TReturn>(type: TypeDescriptor<T11>, action: (v:T11) => TReturn): Matchable17<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T12, T13, T14, T15, T16, T17, T18, TReturn>
case<TReturn>(type: TypeDescriptor<T12>, action: (v:T12) => TReturn): Matchable17<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T13, T14, T15, T16, T17, T18, TReturn>
case<TReturn>(type: TypeDescriptor<T13>, action: (v:T13) => TReturn): Matchable17<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T14, T15, T16, T17, T18, TReturn>
case<TReturn>(type: TypeDescriptor<T14>, action: (v:T14) => TReturn): Matchable17<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T15, T16, T17, T18, TReturn>
case<TReturn>(type: TypeDescriptor<T15>, action: (v:T15) => TReturn): Matchable17<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T16, T17, T18, TReturn>
case<TReturn>(type: TypeDescriptor<T16>, action: (v:T16) => TReturn): Matchable17<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T17, T18, TReturn>
case<TReturn>(type: TypeDescriptor<T17>, action: (v:T17) => TReturn): Matchable17<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T18, TReturn>
case<TReturn>(type: TypeDescriptor<T18>, action: (v:T18) => TReturn): Matchable17<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, TReturn>
}
export interface FirstMatchable19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19> {
case<TReturn>(type: TypeDescriptor<T1>, action: (v:T1) => TReturn): Matchable18<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, TReturn>
case<TReturn>(type: TypeDescriptor<T2>, action: (v:T2) => TReturn): Matchable18<T1, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, TReturn>
case<TReturn>(type: TypeDescriptor<T3>, action: (v:T3) => TReturn): Matchable18<T1, T2, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, TReturn>
case<TReturn>(type: TypeDescriptor<T4>, action: (v:T4) => TReturn): Matchable18<T1, T2, T3, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, TReturn>
case<TReturn>(type: TypeDescriptor<T5>, action: (v:T5) => TReturn): Matchable18<T1, T2, T3, T4, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, TReturn>
case<TReturn>(type: TypeDescriptor<T6>, action: (v:T6) => TReturn): Matchable18<T1, T2, T3, T4, T5, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, TReturn>
case<TReturn>(type: TypeDescriptor<T7>, action: (v:T7) => TReturn): Matchable18<T1, T2, T3, T4, T5, T6, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, TReturn>
case<TReturn>(type: TypeDescriptor<T8>, action: (v:T8) => TReturn): Matchable18<T1, T2, T3, T4, T5, T6, T7, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, TReturn>
case<TReturn>(type: TypeDescriptor<T9>, action: (v:T9) => TReturn): Matchable18<T1, T2, T3, T4, T5, T6, T7, T8, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, TReturn>
case<TReturn>(type: TypeDescriptor<T10>, action: (v:T10) => TReturn): Matchable18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T11, T12, T13, T14, T15, T16, T17, T18, T19, TReturn>
case<TReturn>(type: TypeDescriptor<T11>, action: (v:T11) => TReturn): Matchable18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T12, T13, T14, T15, T16, T17, T18, T19, TReturn>
case<TReturn>(type: TypeDescriptor<T12>, action: (v:T12) => TReturn): Matchable18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T13, T14, T15, T16, T17, T18, T19, TReturn>
case<TReturn>(type: TypeDescriptor<T13>, action: (v:T13) => TReturn): Matchable18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T14, T15, T16, T17, T18, T19, TReturn>
case<TReturn>(type: TypeDescriptor<T14>, action: (v:T14) => TReturn): Matchable18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T15, T16, T17, T18, T19, TReturn>
case<TReturn>(type: TypeDescriptor<T15>, action: (v:T15) => TReturn): Matchable18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T16, T17, T18, T19, TReturn>
case<TReturn>(type: TypeDescriptor<T16>, action: (v:T16) => TReturn): Matchable18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T17, T18, T19, TReturn>
case<TReturn>(type: TypeDescriptor<T17>, action: (v:T17) => TReturn): Matchable18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T18, T19, TReturn>
case<TReturn>(type: TypeDescriptor<T18>, action: (v:T18) => TReturn): Matchable18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T19, TReturn>
case<TReturn>(type: TypeDescriptor<T19>, action: (v:T19) => TReturn): Matchable18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, TReturn>
}
export interface FirstMatchable20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20> {
case<TReturn>(type: TypeDescriptor<T1>, action: (v:T1) => TReturn): Matchable19<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, TReturn>
case<TReturn>(type: TypeDescriptor<T2>, action: (v:T2) => TReturn): Matchable19<T1, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, TReturn>
case<TReturn>(type: TypeDescriptor<T3>, action: (v:T3) => TReturn): Matchable19<T1, T2, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, TReturn>
case<TReturn>(type: TypeDescriptor<T4>, action: (v:T4) => TReturn): Matchable19<T1, T2, T3, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, TReturn>
case<TReturn>(type: TypeDescriptor<T5>, action: (v:T5) => TReturn): Matchable19<T1, T2, T3, T4, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, TReturn>
case<TReturn>(type: TypeDescriptor<T6>, action: (v:T6) => TReturn): Matchable19<T1, T2, T3, T4, T5, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, TReturn>
case<TReturn>(type: TypeDescriptor<T7>, action: (v:T7) => TReturn): Matchable19<T1, T2, T3, T4, T5, T6, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, TReturn>
case<TReturn>(type: TypeDescriptor<T8>, action: (v:T8) => TReturn): Matchable19<T1, T2, T3, T4, T5, T6, T7, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, TReturn>
case<TReturn>(type: TypeDescriptor<T9>, action: (v:T9) => TReturn): Matchable19<T1, T2, T3, T4, T5, T6, T7, T8, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, TReturn>
case<TReturn>(type: TypeDescriptor<T10>, action: (v:T10) => TReturn): Matchable19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, TReturn>
case<TReturn>(type: TypeDescriptor<T11>, action: (v:T11) => TReturn): Matchable19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T12, T13, T14, T15, T16, T17, T18, T19, T20, TReturn>
case<TReturn>(type: TypeDescriptor<T12>, action: (v:T12) => TReturn): Matchable19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T13, T14, T15, T16, T17, T18, T19, T20, TReturn>
case<TReturn>(type: TypeDescriptor<T13>, action: (v:T13) => TReturn): Matchable19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T14, T15, T16, T17, T18, T19, T20, TReturn>
case<TReturn>(type: TypeDescriptor<T14>, action: (v:T14) => TReturn): Matchable19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T15, T16, T17, T18, T19, T20, TReturn>
case<TReturn>(type: TypeDescriptor<T15>, action: (v:T15) => TReturn): Matchable19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T16, T17, T18, T19, T20, TReturn>
case<TReturn>(type: TypeDescriptor<T16>, action: (v:T16) => TReturn): Matchable19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T17, T18, T19, T20, TReturn>
case<TReturn>(type: TypeDescriptor<T17>, action: (v:T17) => TReturn): Matchable19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T18, T19, T20, TReturn>
case<TReturn>(type: TypeDescriptor<T18>, action: (v:T18) => TReturn): Matchable19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T19, T20, TReturn>
case<TReturn>(type: TypeDescriptor<T19>, action: (v:T19) => TReturn): Matchable19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T20, TReturn>
case<TReturn>(type: TypeDescriptor<T20>, action: (v:T20) => TReturn): Matchable19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, TReturn>
}
export interface FirstMatchable21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21> {
case<TReturn>(type: TypeDescriptor<T1>, action: (v:T1) => TReturn): Matchable20<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, TReturn>
case<TReturn>(type: TypeDescriptor<T2>, action: (v:T2) => TReturn): Matchable20<T1, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, TReturn>
case<TReturn>(type: TypeDescriptor<T3>, action: (v:T3) => TReturn): Matchable20<T1, T2, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, TReturn>
case<TReturn>(type: TypeDescriptor<T4>, action: (v:T4) => TReturn): Matchable20<T1, T2, T3, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, TReturn>
case<TReturn>(type: TypeDescriptor<T5>, action: (v:T5) => TReturn): Matchable20<T1, T2, T3, T4, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, TReturn>
case<TReturn>(type: TypeDescriptor<T6>, action: (v:T6) => TReturn): Matchable20<T1, T2, T3, T4, T5, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, TReturn>
case<TReturn>(type: TypeDescriptor<T7>, action: (v:T7) => TReturn): Matchable20<T1, T2, T3, T4, T5, T6, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, TReturn>
case<TReturn>(type: TypeDescriptor<T8>, action: (v:T8) => TReturn): Matchable20<T1, T2, T3, T4, T5, T6, T7, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, TReturn>
case<TReturn>(type: TypeDescriptor<T9>, action: (v:T9) => TReturn): Matchable20<T1, T2, T3, T4, T5, T6, T7, T8, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, TReturn>
case<TReturn>(type: TypeDescriptor<T10>, action: (v:T10) => TReturn): Matchable20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, TReturn>
case<TReturn>(type: TypeDescriptor<T11>, action: (v:T11) => TReturn): Matchable20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, TReturn>
case<TReturn>(type: TypeDescriptor<T12>, action: (v:T12) => TReturn): Matchable20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T13, T14, T15, T16, T17, T18, T19, T20, T21, TReturn>
case<TReturn>(type: TypeDescriptor<T13>, action: (v:T13) => TReturn): Matchable20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T14, T15, T16, T17, T18, T19, T20, T21, TReturn>
case<TReturn>(type: TypeDescriptor<T14>, action: (v:T14) => TReturn): Matchable20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T15, T16, T17, T18, T19, T20, T21, TReturn>
case<TReturn>(type: TypeDescriptor<T15>, action: (v:T15) => TReturn): Matchable20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T16, T17, T18, T19, T20, T21, TReturn>
case<TReturn>(type: TypeDescriptor<T16>, action: (v:T16) => TReturn): Matchable20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T17, T18, T19, T20, T21, TReturn>
case<TReturn>(type: TypeDescriptor<T17>, action: (v:T17) => TReturn): Matchable20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T18, T19, T20, T21, TReturn>
case<TReturn>(type: TypeDescriptor<T18>, action: (v:T18) => TReturn): Matchable20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T19, T20, T21, TReturn>
case<TReturn>(type: TypeDescriptor<T19>, action: (v:T19) => TReturn): Matchable20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T20, T21, TReturn>
case<TReturn>(type: TypeDescriptor<T20>, action: (v:T20) => TReturn): Matchable20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T21, TReturn>
case<TReturn>(type: TypeDescriptor<T21>, action: (v:T21) => TReturn): Matchable20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, TReturn>
}
export interface FirstMatchable22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22> {
case<TReturn>(type: TypeDescriptor<T1>, action: (v:T1) => TReturn): Matchable21<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, TReturn>
case<TReturn>(type: TypeDescriptor<T2>, action: (v:T2) => TReturn): Matchable21<T1, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, TReturn>
case<TReturn>(type: TypeDescriptor<T3>, action: (v:T3) => TReturn): Matchable21<T1, T2, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, TReturn>
case<TReturn>(type: TypeDescriptor<T4>, action: (v:T4) => TReturn): Matchable21<T1, T2, T3, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, TReturn>
case<TReturn>(type: TypeDescriptor<T5>, action: (v:T5) => TReturn): Matchable21<T1, T2, T3, T4, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, TReturn>
case<TReturn>(type: TypeDescriptor<T6>, action: (v:T6) => TReturn): Matchable21<T1, T2, T3, T4, T5, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, TReturn>
case<TReturn>(type: TypeDescriptor<T7>, action: (v:T7) => TReturn): Matchable21<T1, T2, T3, T4, T5, T6, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, TReturn>
case<TReturn>(type: TypeDescriptor<T8>, action: (v:T8) => TReturn): Matchable21<T1, T2, T3, T4, T5, T6, T7, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, TReturn>
case<TReturn>(type: TypeDescriptor<T9>, action: (v:T9) => TReturn): Matchable21<T1, T2, T3, T4, T5, T6, T7, T8, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, TReturn>
case<TReturn>(type: TypeDescriptor<T10>, action: (v:T10) => TReturn): Matchable21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, TReturn>
case<TReturn>(type: TypeDescriptor<T11>, action: (v:T11) => TReturn): Matchable21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, TReturn>
case<TReturn>(type: TypeDescriptor<T12>, action: (v:T12) => TReturn): Matchable21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, TReturn>
case<TReturn>(type: TypeDescriptor<T13>, action: (v:T13) => TReturn): Matchable21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T14, T15, T16, T17, T18, T19, T20, T21, T22, TReturn>
case<TReturn>(type: TypeDescriptor<T14>, action: (v:T14) => TReturn): Matchable21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T15, T16, T17, T18, T19, T20, T21, T22, TReturn>
case<TReturn>(type: TypeDescriptor<T15>, action: (v:T15) => TReturn): Matchable21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T16, T17, T18, T19, T20, T21, T22, TReturn>
case<TReturn>(type: TypeDescriptor<T16>, action: (v:T16) => TReturn): Matchable21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T17, T18, T19, T20, T21, T22, TReturn>
case<TReturn>(type: TypeDescriptor<T17>, action: (v:T17) => TReturn): Matchable21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T18, T19, T20, T21, T22, TReturn>
case<TReturn>(type: TypeDescriptor<T18>, action: (v:T18) => TReturn): Matchable21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T19, T20, T21, T22, TReturn>
case<TReturn>(type: TypeDescriptor<T19>, action: (v:T19) => TReturn): Matchable21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T20, T21, T22, TReturn>
case<TReturn>(type: TypeDescriptor<T20>, action: (v:T20) => TReturn): Matchable21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T21, T22, TReturn>
case<TReturn>(type: TypeDescriptor<T21>, action: (v:T21) => TReturn): Matchable21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T22, TReturn>
case<TReturn>(type: TypeDescriptor<T22>, action: (v:T22) => TReturn): Matchable21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, TReturn>
}
export interface FirstMatchable23<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23> {
case<TReturn>(type: TypeDescriptor<T1>, action: (v:T1) => TReturn): Matchable22<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, TReturn>
case<TReturn>(type: TypeDescriptor<T2>, action: (v:T2) => TReturn): Matchable22<T1, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, TReturn>
case<TReturn>(type: TypeDescriptor<T3>, action: (v:T3) => TReturn): Matchable22<T1, T2, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, TReturn>
case<TReturn>(type: TypeDescriptor<T4>, action: (v:T4) => TReturn): Matchable22<T1, T2, T3, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, TReturn>
case<TReturn>(type: TypeDescriptor<T5>, action: (v:T5) => TReturn): Matchable22<T1, T2, T3, T4, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, TReturn>
case<TReturn>(type: TypeDescriptor<T6>, action: (v:T6) => TReturn): Matchable22<T1, T2, T3, T4, T5, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, TReturn>
case<TReturn>(type: TypeDescriptor<T7>, action: (v:T7) => TReturn): Matchable22<T1, T2, T3, T4, T5, T6, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, TReturn>
case<TReturn>(type: TypeDescriptor<T8>, action: (v:T8) => TReturn): Matchable22<T1, T2, T3, T4, T5, T6, T7, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, TReturn>
case<TReturn>(type: TypeDescriptor<T9>, action: (v:T9) => TReturn): Matchable22<T1, T2, T3, T4, T5, T6, T7, T8, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, TReturn>
case<TReturn>(type: TypeDescriptor<T10>, action: (v:T10) => TReturn): Matchable22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, TReturn>
case<TReturn>(type: TypeDescriptor<T11>, action: (v:T11) => TReturn): Matchable22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, TReturn>
case<TReturn>(type: TypeDescriptor<T12>, action: (v:T12) => TReturn): Matchable22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, TReturn>
case<TReturn>(type: TypeDescriptor<T13>, action: (v:T13) => TReturn): Matchable22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, TReturn>
case<TReturn>(type: TypeDescriptor<T14>, action: (v:T14) => TReturn): Matchable22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T15, T16, T17, T18, T19, T20, T21, T22, T23, TReturn>
case<TReturn>(type: TypeDescriptor<T15>, action: (v:T15) => TReturn): Matchable22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T16, T17, T18, T19, T20, T21, T22, T23, TReturn>
case<TReturn>(type: TypeDescriptor<T16>, action: (v:T16) => TReturn): Matchable22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T17, T18, T19, T20, T21, T22, T23, TReturn>
case<TReturn>(type: TypeDescriptor<T17>, action: (v:T17) => TReturn): Matchable22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T18, T19, T20, T21, T22, T23, TReturn>
case<TReturn>(type: TypeDescriptor<T18>, action: (v:T18) => TReturn): Matchable22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T19, T20, T21, T22, T23, TReturn>
case<TReturn>(type: TypeDescriptor<T19>, action: (v:T19) => TReturn): Matchable22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T20, T21, T22, T23, TReturn>
case<TReturn>(type: TypeDescriptor<T20>, action: (v:T20) => TReturn): Matchable22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T21, T22, T23, TReturn>
case<TReturn>(type: TypeDescriptor<T21>, action: (v:T21) => TReturn): Matchable22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T22, T23, TReturn>
case<TReturn>(type: TypeDescriptor<T22>, action: (v:T22) => TReturn): Matchable22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T23, TReturn>
case<TReturn>(type: TypeDescriptor<T23>, action: (v:T23) => TReturn): Matchable22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, TReturn>
}
export interface FirstMatchable24<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24> {
case<TReturn>(type: TypeDescriptor<T1>, action: (v:T1) => TReturn): Matchable23<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, TReturn>
case<TReturn>(type: TypeDescriptor<T2>, action: (v:T2) => TReturn): Matchable23<T1, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, TReturn>
case<TReturn>(type: TypeDescriptor<T3>, action: (v:T3) => TReturn): Matchable23<T1, T2, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, TReturn>
case<TReturn>(type: TypeDescriptor<T4>, action: (v:T4) => TReturn): Matchable23<T1, T2, T3, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, TReturn>
case<TReturn>(type: TypeDescriptor<T5>, action: (v:T5) => TReturn): Matchable23<T1, T2, T3, T4, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, TReturn>
case<TReturn>(type: TypeDescriptor<T6>, action: (v:T6) => TReturn): Matchable23<T1, T2, T3, T4, T5, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, TReturn>
case<TReturn>(type: TypeDescriptor<T7>, action: (v:T7) => TReturn): Matchable23<T1, T2, T3, T4, T5, T6, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, TReturn>
case<TReturn>(type: TypeDescriptor<T8>, action: (v:T8) => TReturn): Matchable23<T1, T2, T3, T4, T5, T6, T7, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, TReturn>
case<TReturn>(type: TypeDescriptor<T9>, action: (v:T9) => TReturn): Matchable23<T1, T2, T3, T4, T5, T6, T7, T8, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, TReturn>
case<TReturn>(type: TypeDescriptor<T10>, action: (v:T10) => TReturn): Matchable23<T1, T2, T3, T4, T5, T6, T7, T8, T9, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, TReturn>
case<TReturn>(type: TypeDescriptor<T11>, action: (v:T11) => TReturn): Matchable23<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, TReturn>
case<TReturn>(type: TypeDescriptor<T12>, action: (v:T12) => TReturn): Matchable23<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, TReturn>
case<TReturn>(type: TypeDescriptor<T13>, action: (v:T13) => TReturn): Matchable23<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, TReturn>
case<TReturn>(type: TypeDescriptor<T14>, action: (v:T14) => TReturn): Matchable23<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, TReturn>
case<TReturn>(type: TypeDescriptor<T15>, action: (v:T15) => TReturn): Matchable23<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T16, T17, T18, T19, T20, T21, T22, T23, T24, TReturn>
case<TReturn>(type: TypeDescriptor<T16>, action: (v:T16) => TReturn): Matchable23<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T17, T18, T19, T20, T21, T22, T23, T24, TReturn>
case<TReturn>(type: TypeDescriptor<T17>, action: (v:T17) => TReturn): Matchable23<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T18, T19, T20, T21, T22, T23, T24, TReturn>
case<TReturn>(type: TypeDescriptor<T18>, action: (v:T18) => TReturn): Matchable23<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T19, T20, T21, T22, T23, T24, TReturn>
case<TReturn>(type: TypeDescriptor<T19>, action: (v:T19) => TReturn): Matchable23<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T20, T21, T22, T23, T24, TReturn>
case<TReturn>(type: TypeDescriptor<T20>, action: (v:T20) => TReturn): Matchable23<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T21, T22, T23, T24, TReturn>
case<TReturn>(type: TypeDescriptor<T21>, action: (v:T21) => TReturn): Matchable23<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T22, T23, T24, TReturn>
case<TReturn>(type: TypeDescriptor<T22>, action: (v:T22) => TReturn): Matchable23<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T23, T24, TReturn>
case<TReturn>(type: TypeDescriptor<T23>, action: (v:T23) => TReturn): Matchable23<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T24, TReturn>
case<TReturn>(type: TypeDescriptor<T24>, action: (v:T24) => TReturn): Matchable23<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, TReturn>
}
export interface Matchable<T, TResult>{
default<TReturn>(action: (a:T) => TReturn): { result(): TResult | TReturn }
}
export interface Matchable1<T, TResult> extends Matchable<T, TResult>{
case<TReturn>(type: TypeDescriptor<T>, action: (v:T) => TReturn): { result(): TResult | TReturn}
}
export interface Matchable2<T1, T2, TResult> extends Matchable<T1 | T2, TResult>{
case<TReturn>(type: TypeDescriptor<T1>, action: (v:T1) => TReturn): Matchable1<T2, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T2>, action: (v:T2) => TReturn): Matchable1<T1, TResult | TReturn>
}
export interface Matchable3<T1, T2, T3, TResult> extends Matchable<T1 | T2 | T3, TResult>{
case<TReturn>(type: TypeDescriptor<T1>, action: (v:T1) => TReturn): Matchable2<T2, T3, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T2>, action: (v:T2) => TReturn): Matchable2<T1, T3, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T3>, action: (v:T3) => TReturn): Matchable2<T1, T2, TResult | TReturn>
}
export interface Matchable4<T1, T2, T3, T4, TResult> extends Matchable<T1 | T2 | T3 | T4, TResult>{
case<TReturn>(type: TypeDescriptor<T1>, action: (v:T1) => TReturn): Matchable3<T2, T3, T4, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T2>, action: (v:T2) => TReturn): Matchable3<T1, T3, T4, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T3>, action: (v:T3) => TReturn): Matchable3<T1, T2, T4, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T4>, action: (v:T4) => TReturn): Matchable3<T1, T2, T3, TResult | TReturn>
}
export interface Matchable5<T1, T2, T3, T4, T5, TResult> extends Matchable<T1 | T2 | T3 | T4 | T5, TResult>{
case<TReturn>(type: TypeDescriptor<T1>, action: (v:T1) => TReturn): Matchable4<T2, T3, T4, T5, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T2>, action: (v:T2) => TReturn): Matchable4<T1, T3, T4, T5, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T3>, action: (v:T3) => TReturn): Matchable4<T1, T2, T4, T5, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T4>, action: (v:T4) => TReturn): Matchable4<T1, T2, T3, T5, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T5>, action: (v:T5) => TReturn): Matchable4<T1, T2, T3, T4, TResult | TReturn>
}
export interface Matchable6<T1, T2, T3, T4, T5, T6, TResult> extends Matchable<T1 | T2 | T3 | T4 | T5 | T6, TResult>{
case<TReturn>(type: TypeDescriptor<T1>, action: (v:T1) => TReturn): Matchable5<T2, T3, T4, T5, T6, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T2>, action: (v:T2) => TReturn): Matchable5<T1, T3, T4, T5, T6, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T3>, action: (v:T3) => TReturn): Matchable5<T1, T2, T4, T5, T6, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T4>, action: (v:T4) => TReturn): Matchable5<T1, T2, T3, T5, T6, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T5>, action: (v:T5) => TReturn): Matchable5<T1, T2, T3, T4, T6, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T6>, action: (v:T6) => TReturn): Matchable5<T1, T2, T3, T4, T5, TResult | TReturn>
}
export interface Matchable7<T1, T2, T3, T4, T5, T6, T7, TResult> extends Matchable<T1 | T2 | T3 | T4 | T5 | T6 | T7, TResult>{
case<TReturn>(type: TypeDescriptor<T1>, action: (v:T1) => TReturn): Matchable6<T2, T3, T4, T5, T6, T7, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T2>, action: (v:T2) => TReturn): Matchable6<T1, T3, T4, T5, T6, T7, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T3>, action: (v:T3) => TReturn): Matchable6<T1, T2, T4, T5, T6, T7, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T4>, action: (v:T4) => TReturn): Matchable6<T1, T2, T3, T5, T6, T7, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T5>, action: (v:T5) => TReturn): Matchable6<T1, T2, T3, T4, T6, T7, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T6>, action: (v:T6) => TReturn): Matchable6<T1, T2, T3, T4, T5, T7, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T7>, action: (v:T7) => TReturn): Matchable6<T1, T2, T3, T4, T5, T6, TResult | TReturn>
}
export interface Matchable8<T1, T2, T3, T4, T5, T6, T7, T8, TResult> extends Matchable<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8, TResult>{
case<TReturn>(type: TypeDescriptor<T1>, action: (v:T1) => TReturn): Matchable7<T2, T3, T4, T5, T6, T7, T8, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T2>, action: (v:T2) => TReturn): Matchable7<T1, T3, T4, T5, T6, T7, T8, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T3>, action: (v:T3) => TReturn): Matchable7<T1, T2, T4, T5, T6, T7, T8, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T4>, action: (v:T4) => TReturn): Matchable7<T1, T2, T3, T5, T6, T7, T8, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T5>, action: (v:T5) => TReturn): Matchable7<T1, T2, T3, T4, T6, T7, T8, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T6>, action: (v:T6) => TReturn): Matchable7<T1, T2, T3, T4, T5, T7, T8, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T7>, action: (v:T7) => TReturn): Matchable7<T1, T2, T3, T4, T5, T6, T8, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T8>, action: (v:T8) => TReturn): Matchable7<T1, T2, T3, T4, T5, T6, T7, TResult | TReturn>
}
export interface Matchable9<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> extends Matchable<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9, TResult>{
case<TReturn>(type: TypeDescriptor<T1>, action: (v:T1) => TReturn): Matchable8<T2, T3, T4, T5, T6, T7, T8, T9, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T2>, action: (v:T2) => TReturn): Matchable8<T1, T3, T4, T5, T6, T7, T8, T9, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T3>, action: (v:T3) => TReturn): Matchable8<T1, T2, T4, T5, T6, T7, T8, T9, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T4>, action: (v:T4) => TReturn): Matchable8<T1, T2, T3, T5, T6, T7, T8, T9, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T5>, action: (v:T5) => TReturn): Matchable8<T1, T2, T3, T4, T6, T7, T8, T9, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T6>, action: (v:T6) => TReturn): Matchable8<T1, T2, T3, T4, T5, T7, T8, T9, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T7>, action: (v:T7) => TReturn): Matchable8<T1, T2, T3, T4, T5, T6, T8, T9, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T8>, action: (v:T8) => TReturn): Matchable8<T1, T2, T3, T4, T5, T6, T7, T9, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T9>, action: (v:T9) => TReturn): Matchable8<T1, T2, T3, T4, T5, T6, T7, T8, TResult | TReturn>
}
export interface Matchable10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> extends Matchable<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9 | T10, TResult>{
case<TReturn>(type: TypeDescriptor<T1>, action: (v:T1) => TReturn): Matchable9<T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T2>, action: (v:T2) => TReturn): Matchable9<T1, T3, T4, T5, T6, T7, T8, T9, T10, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T3>, action: (v:T3) => TReturn): Matchable9<T1, T2, T4, T5, T6, T7, T8, T9, T10, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T4>, action: (v:T4) => TReturn): Matchable9<T1, T2, T3, T5, T6, T7, T8, T9, T10, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T5>, action: (v:T5) => TReturn): Matchable9<T1, T2, T3, T4, T6, T7, T8, T9, T10, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T6>, action: (v:T6) => TReturn): Matchable9<T1, T2, T3, T4, T5, T7, T8, T9, T10, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T7>, action: (v:T7) => TReturn): Matchable9<T1, T2, T3, T4, T5, T6, T8, T9, T10, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T8>, action: (v:T8) => TReturn): Matchable9<T1, T2, T3, T4, T5, T6, T7, T9, T10, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T9>, action: (v:T9) => TReturn): Matchable9<T1, T2, T3, T4, T5, T6, T7, T8, T10, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T10>, action: (v:T10) => TReturn): Matchable9<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult | TReturn>
}
export interface Matchable11<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TResult> extends Matchable<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9 | T10 | T11, TResult>{
case<TReturn>(type: TypeDescriptor<T1>, action: (v:T1) => TReturn): Matchable10<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T2>, action: (v:T2) => TReturn): Matchable10<T1, T3, T4, T5, T6, T7, T8, T9, T10, T11, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T3>, action: (v:T3) => TReturn): Matchable10<T1, T2, T4, T5, T6, T7, T8, T9, T10, T11, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T4>, action: (v:T4) => TReturn): Matchable10<T1, T2, T3, T5, T6, T7, T8, T9, T10, T11, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T5>, action: (v:T5) => TReturn): Matchable10<T1, T2, T3, T4, T6, T7, T8, T9, T10, T11, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T6>, action: (v:T6) => TReturn): Matchable10<T1, T2, T3, T4, T5, T7, T8, T9, T10, T11, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T7>, action: (v:T7) => TReturn): Matchable10<T1, T2, T3, T4, T5, T6, T8, T9, T10, T11, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T8>, action: (v:T8) => TReturn): Matchable10<T1, T2, T3, T4, T5, T6, T7, T9, T10, T11, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T9>, action: (v:T9) => TReturn): Matchable10<T1, T2, T3, T4, T5, T6, T7, T8, T10, T11, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T10>, action: (v:T10) => TReturn): Matchable10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T11, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T11>, action: (v:T11) => TReturn): Matchable10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult | TReturn>
}
export interface Matchable12<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TResult> extends Matchable<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9 | T10 | T11 | T12, TResult>{
case<TReturn>(type: TypeDescriptor<T1>, action: (v:T1) => TReturn): Matchable11<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T2>, action: (v:T2) => TReturn): Matchable11<T1, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T3>, action: (v:T3) => TReturn): Matchable11<T1, T2, T4, T5, T6, T7, T8, T9, T10, T11, T12, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T4>, action: (v:T4) => TReturn): Matchable11<T1, T2, T3, T5, T6, T7, T8, T9, T10, T11, T12, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T5>, action: (v:T5) => TReturn): Matchable11<T1, T2, T3, T4, T6, T7, T8, T9, T10, T11, T12, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T6>, action: (v:T6) => TReturn): Matchable11<T1, T2, T3, T4, T5, T7, T8, T9, T10, T11, T12, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T7>, action: (v:T7) => TReturn): Matchable11<T1, T2, T3, T4, T5, T6, T8, T9, T10, T11, T12, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T8>, action: (v:T8) => TReturn): Matchable11<T1, T2, T3, T4, T5, T6, T7, T9, T10, T11, T12, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T9>, action: (v:T9) => TReturn): Matchable11<T1, T2, T3, T4, T5, T6, T7, T8, T10, T11, T12, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T10>, action: (v:T10) => TReturn): Matchable11<T1, T2, T3, T4, T5, T6, T7, T8, T9, T11, T12, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T11>, action: (v:T11) => TReturn): Matchable11<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T12, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T12>, action: (v:T12) => TReturn): Matchable11<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TResult | TReturn>
}
export interface Matchable13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TResult> extends Matchable<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9 | T10 | T11 | T12 | T13, TResult>{
case<TReturn>(type: TypeDescriptor<T1>, action: (v:T1) => TReturn): Matchable12<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T2>, action: (v:T2) => TReturn): Matchable12<T1, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T3>, action: (v:T3) => TReturn): Matchable12<T1, T2, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T4>, action: (v:T4) => TReturn): Matchable12<T1, T2, T3, T5, T6, T7, T8, T9, T10, T11, T12, T13, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T5>, action: (v:T5) => TReturn): Matchable12<T1, T2, T3, T4, T6, T7, T8, T9, T10, T11, T12, T13, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T6>, action: (v:T6) => TReturn): Matchable12<T1, T2, T3, T4, T5, T7, T8, T9, T10, T11, T12, T13, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T7>, action: (v:T7) => TReturn): Matchable12<T1, T2, T3, T4, T5, T6, T8, T9, T10, T11, T12, T13, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T8>, action: (v:T8) => TReturn): Matchable12<T1, T2, T3, T4, T5, T6, T7, T9, T10, T11, T12, T13, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T9>, action: (v:T9) => TReturn): Matchable12<T1, T2, T3, T4, T5, T6, T7, T8, T10, T11, T12, T13, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T10>, action: (v:T10) => TReturn): Matchable12<T1, T2, T3, T4, T5, T6, T7, T8, T9, T11, T12, T13, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T11>, action: (v:T11) => TReturn): Matchable12<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T12, T13, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T12>, action: (v:T12) => TReturn): Matchable12<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T13, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T13>, action: (v:T13) => TReturn): Matchable12<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TResult | TReturn>
}
export interface Matchable14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TResult> extends Matchable<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9 | T10 | T11 | T12 | T13 | T14, TResult>{
case<TReturn>(type: TypeDescriptor<T1>, action: (v:T1) => TReturn): Matchable13<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T2>, action: (v:T2) => TReturn): Matchable13<T1, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T3>, action: (v:T3) => TReturn): Matchable13<T1, T2, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T4>, action: (v:T4) => TReturn): Matchable13<T1, T2, T3, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T5>, action: (v:T5) => TReturn): Matchable13<T1, T2, T3, T4, T6, T7, T8, T9, T10, T11, T12, T13, T14, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T6>, action: (v:T6) => TReturn): Matchable13<T1, T2, T3, T4, T5, T7, T8, T9, T10, T11, T12, T13, T14, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T7>, action: (v:T7) => TReturn): Matchable13<T1, T2, T3, T4, T5, T6, T8, T9, T10, T11, T12, T13, T14, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T8>, action: (v:T8) => TReturn): Matchable13<T1, T2, T3, T4, T5, T6, T7, T9, T10, T11, T12, T13, T14, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T9>, action: (v:T9) => TReturn): Matchable13<T1, T2, T3, T4, T5, T6, T7, T8, T10, T11, T12, T13, T14, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T10>, action: (v:T10) => TReturn): Matchable13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T11, T12, T13, T14, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T11>, action: (v:T11) => TReturn): Matchable13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T12, T13, T14, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T12>, action: (v:T12) => TReturn): Matchable13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T13, T14, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T13>, action: (v:T13) => TReturn): Matchable13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T14, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T14>, action: (v:T14) => TReturn): Matchable13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TResult | TReturn>
}
export interface Matchable15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TResult> extends Matchable<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9 | T10 | T11 | T12 | T13 | T14 | T15, TResult>{
case<TReturn>(type: TypeDescriptor<T1>, action: (v:T1) => TReturn): Matchable14<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T2>, action: (v:T2) => TReturn): Matchable14<T1, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T3>, action: (v:T3) => TReturn): Matchable14<T1, T2, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T4>, action: (v:T4) => TReturn): Matchable14<T1, T2, T3, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T5>, action: (v:T5) => TReturn): Matchable14<T1, T2, T3, T4, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T6>, action: (v:T6) => TReturn): Matchable14<T1, T2, T3, T4, T5, T7, T8, T9, T10, T11, T12, T13, T14, T15, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T7>, action: (v:T7) => TReturn): Matchable14<T1, T2, T3, T4, T5, T6, T8, T9, T10, T11, T12, T13, T14, T15, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T8>, action: (v:T8) => TReturn): Matchable14<T1, T2, T3, T4, T5, T6, T7, T9, T10, T11, T12, T13, T14, T15, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T9>, action: (v:T9) => TReturn): Matchable14<T1, T2, T3, T4, T5, T6, T7, T8, T10, T11, T12, T13, T14, T15, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T10>, action: (v:T10) => TReturn): Matchable14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T11, T12, T13, T14, T15, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T11>, action: (v:T11) => TReturn): Matchable14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T12, T13, T14, T15, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T12>, action: (v:T12) => TReturn): Matchable14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T13, T14, T15, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T13>, action: (v:T13) => TReturn): Matchable14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T14, T15, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T14>, action: (v:T14) => TReturn): Matchable14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T15, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T15>, action: (v:T15) => TReturn): Matchable14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TResult | TReturn>
}
export interface Matchable16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TResult> extends Matchable<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9 | T10 | T11 | T12 | T13 | T14 | T15 | T16, TResult>{
case<TReturn>(type: TypeDescriptor<T1>, action: (v:T1) => TReturn): Matchable15<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T2>, action: (v:T2) => TReturn): Matchable15<T1, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T3>, action: (v:T3) => TReturn): Matchable15<T1, T2, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T4>, action: (v:T4) => TReturn): Matchable15<T1, T2, T3, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T5>, action: (v:T5) => TReturn): Matchable15<T1, T2, T3, T4, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T6>, action: (v:T6) => TReturn): Matchable15<T1, T2, T3, T4, T5, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T7>, action: (v:T7) => TReturn): Matchable15<T1, T2, T3, T4, T5, T6, T8, T9, T10, T11, T12, T13, T14, T15, T16, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T8>, action: (v:T8) => TReturn): Matchable15<T1, T2, T3, T4, T5, T6, T7, T9, T10, T11, T12, T13, T14, T15, T16, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T9>, action: (v:T9) => TReturn): Matchable15<T1, T2, T3, T4, T5, T6, T7, T8, T10, T11, T12, T13, T14, T15, T16, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T10>, action: (v:T10) => TReturn): Matchable15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T11, T12, T13, T14, T15, T16, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T11>, action: (v:T11) => TReturn): Matchable15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T12, T13, T14, T15, T16, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T12>, action: (v:T12) => TReturn): Matchable15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T13, T14, T15, T16, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T13>, action: (v:T13) => TReturn): Matchable15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T14, T15, T16, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T14>, action: (v:T14) => TReturn): Matchable15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T15, T16, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T15>, action: (v:T15) => TReturn): Matchable15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T16, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T16>, action: (v:T16) => TReturn): Matchable15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TResult | TReturn>
}
export interface Matchable17<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, TResult> extends Matchable<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9 | T10 | T11 | T12 | T13 | T14 | T15 | T16 | T17, TResult>{
case<TReturn>(type: TypeDescriptor<T1>, action: (v:T1) => TReturn): Matchable16<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T2>, action: (v:T2) => TReturn): Matchable16<T1, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T3>, action: (v:T3) => TReturn): Matchable16<T1, T2, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T4>, action: (v:T4) => TReturn): Matchable16<T1, T2, T3, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T5>, action: (v:T5) => TReturn): Matchable16<T1, T2, T3, T4, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T6>, action: (v:T6) => TReturn): Matchable16<T1, T2, T3, T4, T5, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T7>, action: (v:T7) => TReturn): Matchable16<T1, T2, T3, T4, T5, T6, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T8>, action: (v:T8) => TReturn): Matchable16<T1, T2, T3, T4, T5, T6, T7, T9, T10, T11, T12, T13, T14, T15, T16, T17, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T9>, action: (v:T9) => TReturn): Matchable16<T1, T2, T3, T4, T5, T6, T7, T8, T10, T11, T12, T13, T14, T15, T16, T17, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T10>, action: (v:T10) => TReturn): Matchable16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T11, T12, T13, T14, T15, T16, T17, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T11>, action: (v:T11) => TReturn): Matchable16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T12, T13, T14, T15, T16, T17, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T12>, action: (v:T12) => TReturn): Matchable16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T13, T14, T15, T16, T17, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T13>, action: (v:T13) => TReturn): Matchable16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T14, T15, T16, T17, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T14>, action: (v:T14) => TReturn): Matchable16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T15, T16, T17, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T15>, action: (v:T15) => TReturn): Matchable16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T16, T17, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T16>, action: (v:T16) => TReturn): Matchable16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T17, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T17>, action: (v:T17) => TReturn): Matchable16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TResult | TReturn>
}
export interface Matchable18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, TResult> extends Matchable<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9 | T10 | T11 | T12 | T13 | T14 | T15 | T16 | T17 | T18, TResult>{
case<TReturn>(type: TypeDescriptor<T1>, action: (v:T1) => TReturn): Matchable17<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T2>, action: (v:T2) => TReturn): Matchable17<T1, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T3>, action: (v:T3) => TReturn): Matchable17<T1, T2, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T4>, action: (v:T4) => TReturn): Matchable17<T1, T2, T3, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T5>, action: (v:T5) => TReturn): Matchable17<T1, T2, T3, T4, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T6>, action: (v:T6) => TReturn): Matchable17<T1, T2, T3, T4, T5, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T7>, action: (v:T7) => TReturn): Matchable17<T1, T2, T3, T4, T5, T6, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T8>, action: (v:T8) => TReturn): Matchable17<T1, T2, T3, T4, T5, T6, T7, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T9>, action: (v:T9) => TReturn): Matchable17<T1, T2, T3, T4, T5, T6, T7, T8, T10, T11, T12, T13, T14, T15, T16, T17, T18, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T10>, action: (v:T10) => TReturn): Matchable17<T1, T2, T3, T4, T5, T6, T7, T8, T9, T11, T12, T13, T14, T15, T16, T17, T18, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T11>, action: (v:T11) => TReturn): Matchable17<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T12, T13, T14, T15, T16, T17, T18, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T12>, action: (v:T12) => TReturn): Matchable17<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T13, T14, T15, T16, T17, T18, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T13>, action: (v:T13) => TReturn): Matchable17<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T14, T15, T16, T17, T18, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T14>, action: (v:T14) => TReturn): Matchable17<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T15, T16, T17, T18, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T15>, action: (v:T15) => TReturn): Matchable17<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T16, T17, T18, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T16>, action: (v:T16) => TReturn): Matchable17<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T17, T18, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T17>, action: (v:T17) => TReturn): Matchable17<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T18, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T18>, action: (v:T18) => TReturn): Matchable17<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, TResult | TReturn>
}
export interface Matchable19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, TResult> extends Matchable<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9 | T10 | T11 | T12 | T13 | T14 | T15 | T16 | T17 | T18 | T19, TResult>{
case<TReturn>(type: TypeDescriptor<T1>, action: (v:T1) => TReturn): Matchable18<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T2>, action: (v:T2) => TReturn): Matchable18<T1, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T3>, action: (v:T3) => TReturn): Matchable18<T1, T2, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T4>, action: (v:T4) => TReturn): Matchable18<T1, T2, T3, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T5>, action: (v:T5) => TReturn): Matchable18<T1, T2, T3, T4, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T6>, action: (v:T6) => TReturn): Matchable18<T1, T2, T3, T4, T5, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T7>, action: (v:T7) => TReturn): Matchable18<T1, T2, T3, T4, T5, T6, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T8>, action: (v:T8) => TReturn): Matchable18<T1, T2, T3, T4, T5, T6, T7, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T9>, action: (v:T9) => TReturn): Matchable18<T1, T2, T3, T4, T5, T6, T7, T8, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T10>, action: (v:T10) => TReturn): Matchable18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T11, T12, T13, T14, T15, T16, T17, T18, T19, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T11>, action: (v:T11) => TReturn): Matchable18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T12, T13, T14, T15, T16, T17, T18, T19, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T12>, action: (v:T12) => TReturn): Matchable18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T13, T14, T15, T16, T17, T18, T19, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T13>, action: (v:T13) => TReturn): Matchable18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T14, T15, T16, T17, T18, T19, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T14>, action: (v:T14) => TReturn): Matchable18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T15, T16, T17, T18, T19, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T15>, action: (v:T15) => TReturn): Matchable18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T16, T17, T18, T19, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T16>, action: (v:T16) => TReturn): Matchable18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T17, T18, T19, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T17>, action: (v:T17) => TReturn): Matchable18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T18, T19, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T18>, action: (v:T18) => TReturn): Matchable18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T19, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T19>, action: (v:T19) => TReturn): Matchable18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, TResult | TReturn>
}
export interface Matchable20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, TResult> extends Matchable<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9 | T10 | T11 | T12 | T13 | T14 | T15 | T16 | T17 | T18 | T19 | T20, TResult>{
case<TReturn>(type: TypeDescriptor<T1>, action: (v:T1) => TReturn): Matchable19<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T2>, action: (v:T2) => TReturn): Matchable19<T1, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T3>, action: (v:T3) => TReturn): Matchable19<T1, T2, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T4>, action: (v:T4) => TReturn): Matchable19<T1, T2, T3, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T5>, action: (v:T5) => TReturn): Matchable19<T1, T2, T3, T4, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T6>, action: (v:T6) => TReturn): Matchable19<T1, T2, T3, T4, T5, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T7>, action: (v:T7) => TReturn): Matchable19<T1, T2, T3, T4, T5, T6, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T8>, action: (v:T8) => TReturn): Matchable19<T1, T2, T3, T4, T5, T6, T7, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T9>, action: (v:T9) => TReturn): Matchable19<T1, T2, T3, T4, T5, T6, T7, T8, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T10>, action: (v:T10) => TReturn): Matchable19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T11>, action: (v:T11) => TReturn): Matchable19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T12, T13, T14, T15, T16, T17, T18, T19, T20, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T12>, action: (v:T12) => TReturn): Matchable19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T13, T14, T15, T16, T17, T18, T19, T20, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T13>, action: (v:T13) => TReturn): Matchable19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T14, T15, T16, T17, T18, T19, T20, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T14>, action: (v:T14) => TReturn): Matchable19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T15, T16, T17, T18, T19, T20, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T15>, action: (v:T15) => TReturn): Matchable19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T16, T17, T18, T19, T20, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T16>, action: (v:T16) => TReturn): Matchable19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T17, T18, T19, T20, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T17>, action: (v:T17) => TReturn): Matchable19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T18, T19, T20, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T18>, action: (v:T18) => TReturn): Matchable19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T19, T20, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T19>, action: (v:T19) => TReturn): Matchable19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T20, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T20>, action: (v:T20) => TReturn): Matchable19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, TResult | TReturn>
}
export interface Matchable21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, TResult> extends Matchable<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9 | T10 | T11 | T12 | T13 | T14 | T15 | T16 | T17 | T18 | T19 | T20 | T21, TResult>{
case<TReturn>(type: TypeDescriptor<T1>, action: (v:T1) => TReturn): Matchable20<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T2>, action: (v:T2) => TReturn): Matchable20<T1, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T3>, action: (v:T3) => TReturn): Matchable20<T1, T2, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T4>, action: (v:T4) => TReturn): Matchable20<T1, T2, T3, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T5>, action: (v:T5) => TReturn): Matchable20<T1, T2, T3, T4, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T6>, action: (v:T6) => TReturn): Matchable20<T1, T2, T3, T4, T5, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T7>, action: (v:T7) => TReturn): Matchable20<T1, T2, T3, T4, T5, T6, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T8>, action: (v:T8) => TReturn): Matchable20<T1, T2, T3, T4, T5, T6, T7, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T9>, action: (v:T9) => TReturn): Matchable20<T1, T2, T3, T4, T5, T6, T7, T8, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T10>, action: (v:T10) => TReturn): Matchable20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T11>, action: (v:T11) => TReturn): Matchable20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T12>, action: (v:T12) => TReturn): Matchable20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T13, T14, T15, T16, T17, T18, T19, T20, T21, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T13>, action: (v:T13) => TReturn): Matchable20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T14, T15, T16, T17, T18, T19, T20, T21, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T14>, action: (v:T14) => TReturn): Matchable20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T15, T16, T17, T18, T19, T20, T21, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T15>, action: (v:T15) => TReturn): Matchable20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T16, T17, T18, T19, T20, T21, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T16>, action: (v:T16) => TReturn): Matchable20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T17, T18, T19, T20, T21, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T17>, action: (v:T17) => TReturn): Matchable20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T18, T19, T20, T21, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T18>, action: (v:T18) => TReturn): Matchable20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T19, T20, T21, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T19>, action: (v:T19) => TReturn): Matchable20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T20, T21, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T20>, action: (v:T20) => TReturn): Matchable20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T21, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T21>, action: (v:T21) => TReturn): Matchable20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, TResult | TReturn>
}
export interface Matchable22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, TResult> extends Matchable<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9 | T10 | T11 | T12 | T13 | T14 | T15 | T16 | T17 | T18 | T19 | T20 | T21 | T22, TResult>{
case<TReturn>(type: TypeDescriptor<T1>, action: (v:T1) => TReturn): Matchable21<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T2>, action: (v:T2) => TReturn): Matchable21<T1, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T3>, action: (v:T3) => TReturn): Matchable21<T1, T2, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T4>, action: (v:T4) => TReturn): Matchable21<T1, T2, T3, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T5>, action: (v:T5) => TReturn): Matchable21<T1, T2, T3, T4, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T6>, action: (v:T6) => TReturn): Matchable21<T1, T2, T3, T4, T5, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T7>, action: (v:T7) => TReturn): Matchable21<T1, T2, T3, T4, T5, T6, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T8>, action: (v:T8) => TReturn): Matchable21<T1, T2, T3, T4, T5, T6, T7, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T9>, action: (v:T9) => TReturn): Matchable21<T1, T2, T3, T4, T5, T6, T7, T8, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T10>, action: (v:T10) => TReturn): Matchable21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T11>, action: (v:T11) => TReturn): Matchable21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T12>, action: (v:T12) => TReturn): Matchable21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T13>, action: (v:T13) => TReturn): Matchable21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T14, T15, T16, T17, T18, T19, T20, T21, T22, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T14>, action: (v:T14) => TReturn): Matchable21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T15, T16, T17, T18, T19, T20, T21, T22, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T15>, action: (v:T15) => TReturn): Matchable21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T16, T17, T18, T19, T20, T21, T22, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T16>, action: (v:T16) => TReturn): Matchable21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T17, T18, T19, T20, T21, T22, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T17>, action: (v:T17) => TReturn): Matchable21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T18, T19, T20, T21, T22, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T18>, action: (v:T18) => TReturn): Matchable21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T19, T20, T21, T22, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T19>, action: (v:T19) => TReturn): Matchable21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T20, T21, T22, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T20>, action: (v:T20) => TReturn): Matchable21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T21, T22, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T21>, action: (v:T21) => TReturn): Matchable21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T22, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T22>, action: (v:T22) => TReturn): Matchable21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, TResult | TReturn>
}
export interface Matchable23<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, TResult> extends Matchable<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9 | T10 | T11 | T12 | T13 | T14 | T15 | T16 | T17 | T18 | T19 | T20 | T21 | T22 | T23, TResult>{
case<TReturn>(type: TypeDescriptor<T1>, action: (v:T1) => TReturn): Matchable22<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T2>, action: (v:T2) => TReturn): Matchable22<T1, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T3>, action: (v:T3) => TReturn): Matchable22<T1, T2, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T4>, action: (v:T4) => TReturn): Matchable22<T1, T2, T3, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T5>, action: (v:T5) => TReturn): Matchable22<T1, T2, T3, T4, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T6>, action: (v:T6) => TReturn): Matchable22<T1, T2, T3, T4, T5, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T7>, action: (v:T7) => TReturn): Matchable22<T1, T2, T3, T4, T5, T6, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T8>, action: (v:T8) => TReturn): Matchable22<T1, T2, T3, T4, T5, T6, T7, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T9>, action: (v:T9) => TReturn): Matchable22<T1, T2, T3, T4, T5, T6, T7, T8, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T10>, action: (v:T10) => TReturn): Matchable22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T11>, action: (v:T11) => TReturn): Matchable22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T12>, action: (v:T12) => TReturn): Matchable22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T13>, action: (v:T13) => TReturn): Matchable22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T14>, action: (v:T14) => TReturn): Matchable22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T15, T16, T17, T18, T19, T20, T21, T22, T23, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T15>, action: (v:T15) => TReturn): Matchable22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T16, T17, T18, T19, T20, T21, T22, T23, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T16>, action: (v:T16) => TReturn): Matchable22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T17, T18, T19, T20, T21, T22, T23, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T17>, action: (v:T17) => TReturn): Matchable22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T18, T19, T20, T21, T22, T23, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T18>, action: (v:T18) => TReturn): Matchable22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T19, T20, T21, T22, T23, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T19>, action: (v:T19) => TReturn): Matchable22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T20, T21, T22, T23, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T20>, action: (v:T20) => TReturn): Matchable22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T21, T22, T23, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T21>, action: (v:T21) => TReturn): Matchable22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T22, T23, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T22>, action: (v:T22) => TReturn): Matchable22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T23, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T23>, action: (v:T23) => TReturn): Matchable22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, TResult | TReturn>
}
export interface Matchable24<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, TResult> extends Matchable<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9 | T10 | T11 | T12 | T13 | T14 | T15 | T16 | T17 | T18 | T19 | T20 | T21 | T22 | T23 | T24, TResult>{
case<TReturn>(type: TypeDescriptor<T1>, action: (v:T1) => TReturn): Matchable23<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T2>, action: (v:T2) => TReturn): Matchable23<T1, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T3>, action: (v:T3) => TReturn): Matchable23<T1, T2, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T4>, action: (v:T4) => TReturn): Matchable23<T1, T2, T3, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T5>, action: (v:T5) => TReturn): Matchable23<T1, T2, T3, T4, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T6>, action: (v:T6) => TReturn): Matchable23<T1, T2, T3, T4, T5, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T7>, action: (v:T7) => TReturn): Matchable23<T1, T2, T3, T4, T5, T6, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T8>, action: (v:T8) => TReturn): Matchable23<T1, T2, T3, T4, T5, T6, T7, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T9>, action: (v:T9) => TReturn): Matchable23<T1, T2, T3, T4, T5, T6, T7, T8, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T10>, action: (v:T10) => TReturn): Matchable23<T1, T2, T3, T4, T5, T6, T7, T8, T9, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T11>, action: (v:T11) => TReturn): Matchable23<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T12>, action: (v:T12) => TReturn): Matchable23<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T13>, action: (v:T13) => TReturn): Matchable23<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T14>, action: (v:T14) => TReturn): Matchable23<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T15>, action: (v:T15) => TReturn): Matchable23<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T16, T17, T18, T19, T20, T21, T22, T23, T24, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T16>, action: (v:T16) => TReturn): Matchable23<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T17, T18, T19, T20, T21, T22, T23, T24, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T17>, action: (v:T17) => TReturn): Matchable23<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T18, T19, T20, T21, T22, T23, T24, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T18>, action: (v:T18) => TReturn): Matchable23<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T19, T20, T21, T22, T23, T24, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T19>, action: (v:T19) => TReturn): Matchable23<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T20, T21, T22, T23, T24, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T20>, action: (v:T20) => TReturn): Matchable23<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T21, T22, T23, T24, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T21>, action: (v:T21) => TReturn): Matchable23<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T22, T23, T24, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T22>, action: (v:T22) => TReturn): Matchable23<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T23, T24, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T23>, action: (v:T23) => TReturn): Matchable23<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T24, TResult | TReturn>
case<TReturn>(type: TypeDescriptor<T24>, action: (v:T24) => TReturn): Matchable23<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, TResult | TReturn>
}
export function union<T1>(t1: TypeDescriptor<T1>): Union1<T1>
export function union<T1, T2>(t1: TypeDescriptor<T1>, t2: TypeDescriptor<T2>): Union2<T1, T2>
export function union<T1, T2, T3>(t1: TypeDescriptor<T1>, t2: TypeDescriptor<T2>, t3: TypeDescriptor<T3>): Union3<T1, T2, T3>
export function union<T1, T2, T3, T4>(t1: TypeDescriptor<T1>, t2: TypeDescriptor<T2>, t3: TypeDescriptor<T3>, t4: TypeDescriptor<T4>): Union4<T1, T2, T3, T4>
export function union<T1, T2, T3, T4, T5>(t1: TypeDescriptor<T1>, t2: TypeDescriptor<T2>, t3: TypeDescriptor<T3>, t4: TypeDescriptor<T4>, t5: TypeDescriptor<T5>): Union5<T1, T2, T3, T4, T5>
export function union<T1, T2, T3, T4, T5, T6>(t1: TypeDescriptor<T1>, t2: TypeDescriptor<T2>, t3: TypeDescriptor<T3>, t4: TypeDescriptor<T4>, t5: TypeDescriptor<T5>, t6: TypeDescriptor<T6>): Union6<T1, T2, T3, T4, T5, T6>
export function union<T1, T2, T3, T4, T5, T6, T7>(t1: TypeDescriptor<T1>, t2: TypeDescriptor<T2>, t3: TypeDescriptor<T3>, t4: TypeDescriptor<T4>, t5: TypeDescriptor<T5>, t6: TypeDescriptor<T6>, t7: TypeDescriptor<T7>): Union7<T1, T2, T3, T4, T5, T6, T7>
export function union<T1, T2, T3, T4, T5, T6, T7, T8>(t1: TypeDescriptor<T1>, t2: TypeDescriptor<T2>, t3: TypeDescriptor<T3>, t4: TypeDescriptor<T4>, t5: TypeDescriptor<T5>, t6: TypeDescriptor<T6>, t7: TypeDescriptor<T7>, t8: TypeDescriptor<T8>): Union8<T1, T2, T3, T4, T5, T6, T7, T8>
export function union<T1, T2, T3, T4, T5, T6, T7, T8, T9>(t1: TypeDescriptor<T1>, t2: TypeDescriptor<T2>, t3: TypeDescriptor<T3>, t4: TypeDescriptor<T4>, t5: TypeDescriptor<T5>, t6: TypeDescriptor<T6>, t7: TypeDescriptor<T7>, t8: TypeDescriptor<T8>, t9: TypeDescriptor<T9>): Union9<T1, T2, T3, T4, T5, T6, T7, T8, T9>
export function union<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(t1: TypeDescriptor<T1>, t2: TypeDescriptor<T2>, t3: TypeDescriptor<T3>, t4: TypeDescriptor<T4>, t5: TypeDescriptor<T5>, t6: TypeDescriptor<T6>, t7: TypeDescriptor<T7>, t8: TypeDescriptor<T8>, t9: TypeDescriptor<T9>, t10: TypeDescriptor<T10>): Union10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>
export function union<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(t1: TypeDescriptor<T1>, t2: TypeDescriptor<T2>, t3: TypeDescriptor<T3>, t4: TypeDescriptor<T4>, t5: TypeDescriptor<T5>, t6: TypeDescriptor<T6>, t7: TypeDescriptor<T7>, t8: TypeDescriptor<T8>, t9: TypeDescriptor<T9>, t10: TypeDescriptor<T10>, t11: TypeDescriptor<T11>): Union11<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>
export function union<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(t1: TypeDescriptor<T1>, t2: TypeDescriptor<T2>, t3: TypeDescriptor<T3>, t4: TypeDescriptor<T4>, t5: TypeDescriptor<T5>, t6: TypeDescriptor<T6>, t7: TypeDescriptor<T7>, t8: TypeDescriptor<T8>, t9: TypeDescriptor<T9>, t10: TypeDescriptor<T10>, t11: TypeDescriptor<T11>, t12: TypeDescriptor<T12>): Union12<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>
export function union<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>(t1: TypeDescriptor<T1>, t2: TypeDescriptor<T2>, t3: TypeDescriptor<T3>, t4: TypeDescriptor<T4>, t5: TypeDescriptor<T5>, t6: TypeDescriptor<T6>, t7: TypeDescriptor<T7>, t8: TypeDescriptor<T8>, t9: TypeDescriptor<T9>, t10: TypeDescriptor<T10>, t11: TypeDescriptor<T11>, t12: TypeDescriptor<T12>, t13: TypeDescriptor<T13>): Union13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>
export function union<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>(t1: TypeDescriptor<T1>, t2: TypeDescriptor<T2>, t3: TypeDescriptor<T3>, t4: TypeDescriptor<T4>, t5: TypeDescriptor<T5>, t6: TypeDescriptor<T6>, t7: TypeDescriptor<T7>, t8: TypeDescriptor<T8>, t9: TypeDescriptor<T9>, t10: TypeDescriptor<T10>, t11: TypeDescriptor<T11>, t12: TypeDescriptor<T12>, t13: TypeDescriptor<T13>, t14: TypeDescriptor<T14>): Union14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>
export function union<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>(t1: TypeDescriptor<T1>, t2: TypeDescriptor<T2>, t3: TypeDescriptor<T3>, t4: TypeDescriptor<T4>, t5: TypeDescriptor<T5>, t6: TypeDescriptor<T6>, t7: TypeDescriptor<T7>, t8: TypeDescriptor<T8>, t9: TypeDescriptor<T9>, t10: TypeDescriptor<T10>, t11: TypeDescriptor<T11>, t12: TypeDescriptor<T12>, t13: TypeDescriptor<T13>, t14: TypeDescriptor<T14>, t15: TypeDescriptor<T15>): Union15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>
export function union<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>(t1: TypeDescriptor<T1>, t2: TypeDescriptor<T2>, t3: TypeDescriptor<T3>, t4: TypeDescriptor<T4>, t5: TypeDescriptor<T5>, t6: TypeDescriptor<T6>, t7: TypeDescriptor<T7>, t8: TypeDescriptor<T8>, t9: TypeDescriptor<T9>, t10: TypeDescriptor<T10>, t11: TypeDescriptor<T11>, t12: TypeDescriptor<T12>, t13: TypeDescriptor<T13>, t14: TypeDescriptor<T14>, t15: TypeDescriptor<T15>, t16: TypeDescriptor<T16>): Union16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>
export function union<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17>(t1: TypeDescriptor<T1>, t2: TypeDescriptor<T2>, t3: TypeDescriptor<T3>, t4: TypeDescriptor<T4>, t5: TypeDescriptor<T5>, t6: TypeDescriptor<T6>, t7: TypeDescriptor<T7>, t8: TypeDescriptor<T8>, t9: TypeDescriptor<T9>, t10: TypeDescriptor<T10>, t11: TypeDescriptor<T11>, t12: TypeDescriptor<T12>, t13: TypeDescriptor<T13>, t14: TypeDescriptor<T14>, t15: TypeDescriptor<T15>, t16: TypeDescriptor<T16>, t17: TypeDescriptor<T17>): Union17<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17>
export function union<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18>(t1: TypeDescriptor<T1>, t2: TypeDescriptor<T2>, t3: TypeDescriptor<T3>, t4: TypeDescriptor<T4>, t5: TypeDescriptor<T5>, t6: TypeDescriptor<T6>, t7: TypeDescriptor<T7>, t8: TypeDescriptor<T8>, t9: TypeDescriptor<T9>, t10: TypeDescriptor<T10>, t11: TypeDescriptor<T11>, t12: TypeDescriptor<T12>, t13: TypeDescriptor<T13>, t14: TypeDescriptor<T14>, t15: TypeDescriptor<T15>, t16: TypeDescriptor<T16>, t17: TypeDescriptor<T17>, t18: TypeDescriptor<T18>): Union18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18>
export function union<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19>(t1: TypeDescriptor<T1>, t2: TypeDescriptor<T2>, t3: TypeDescriptor<T3>, t4: TypeDescriptor<T4>, t5: TypeDescriptor<T5>, t6: TypeDescriptor<T6>, t7: TypeDescriptor<T7>, t8: TypeDescriptor<T8>, t9: TypeDescriptor<T9>, t10: TypeDescriptor<T10>, t11: TypeDescriptor<T11>, t12: TypeDescriptor<T12>, t13: TypeDescriptor<T13>, t14: TypeDescriptor<T14>, t15: TypeDescriptor<T15>, t16: TypeDescriptor<T16>, t17: TypeDescriptor<T17>, t18: TypeDescriptor<T18>, t19: TypeDescriptor<T19>): Union19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19>
export function union<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20>(t1: TypeDescriptor<T1>, t2: TypeDescriptor<T2>, t3: TypeDescriptor<T3>, t4: TypeDescriptor<T4>, t5: TypeDescriptor<T5>, t6: TypeDescriptor<T6>, t7: TypeDescriptor<T7>, t8: TypeDescriptor<T8>, t9: TypeDescriptor<T9>, t10: TypeDescriptor<T10>, t11: TypeDescriptor<T11>, t12: TypeDescriptor<T12>, t13: TypeDescriptor<T13>, t14: TypeDescriptor<T14>, t15: TypeDescriptor<T15>, t16: TypeDescriptor<T16>, t17: TypeDescriptor<T17>, t18: TypeDescriptor<T18>, t19: TypeDescriptor<T19>, t20: TypeDescriptor<T20>): Union20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20>
export function union<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21>(t1: TypeDescriptor<T1>, t2: TypeDescriptor<T2>, t3: TypeDescriptor<T3>, t4: TypeDescriptor<T4>, t5: TypeDescriptor<T5>, t6: TypeDescriptor<T6>, t7: TypeDescriptor<T7>, t8: TypeDescriptor<T8>, t9: TypeDescriptor<T9>, t10: TypeDescriptor<T10>, t11: TypeDescriptor<T11>, t12: TypeDescriptor<T12>, t13: TypeDescriptor<T13>, t14: TypeDescriptor<T14>, t15: TypeDescriptor<T15>, t16: TypeDescriptor<T16>, t17: TypeDescriptor<T17>, t18: TypeDescriptor<T18>, t19: TypeDescriptor<T19>, t20: TypeDescriptor<T20>, t21: TypeDescriptor<T21>): Union21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21>
export function union<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22>(t1: TypeDescriptor<T1>, t2: TypeDescriptor<T2>, t3: TypeDescriptor<T3>, t4: TypeDescriptor<T4>, t5: TypeDescriptor<T5>, t6: TypeDescriptor<T6>, t7: TypeDescriptor<T7>, t8: TypeDescriptor<T8>, t9: TypeDescriptor<T9>, t10: TypeDescriptor<T10>, t11: TypeDescriptor<T11>, t12: TypeDescriptor<T12>, t13: TypeDescriptor<T13>, t14: TypeDescriptor<T14>, t15: TypeDescriptor<T15>, t16: TypeDescriptor<T16>, t17: TypeDescriptor<T17>, t18: TypeDescriptor<T18>, t19: TypeDescriptor<T19>, t20: TypeDescriptor<T20>, t21: TypeDescriptor<T21>, t22: TypeDescriptor<T22>): Union22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22>
export function union<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23>(t1: TypeDescriptor<T1>, t2: TypeDescriptor<T2>, t3: TypeDescriptor<T3>, t4: TypeDescriptor<T4>, t5: TypeDescriptor<T5>, t6: TypeDescriptor<T6>, t7: TypeDescriptor<T7>, t8: TypeDescriptor<T8>, t9: TypeDescriptor<T9>, t10: TypeDescriptor<T10>, t11: TypeDescriptor<T11>, t12: TypeDescriptor<T12>, t13: TypeDescriptor<T13>, t14: TypeDescriptor<T14>, t15: TypeDescriptor<T15>, t16: TypeDescriptor<T16>, t17: TypeDescriptor<T17>, t18: TypeDescriptor<T18>, t19: TypeDescriptor<T19>, t20: TypeDescriptor<T20>, t21: TypeDescriptor<T21>, t22: TypeDescriptor<T22>, t23: TypeDescriptor<T23>): Union23<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23>
export function union<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24>(t1: TypeDescriptor<T1>, t2: TypeDescriptor<T2>, t3: TypeDescriptor<T3>, t4: TypeDescriptor<T4>, t5: TypeDescriptor<T5>, t6: TypeDescriptor<T6>, t7: TypeDescriptor<T7>, t8: TypeDescriptor<T8>, t9: TypeDescriptor<T9>, t10: TypeDescriptor<T10>, t11: TypeDescriptor<T11>, t12: TypeDescriptor<T12>, t13: TypeDescriptor<T13>, t14: TypeDescriptor<T14>, t15: TypeDescriptor<T15>, t16: TypeDescriptor<T16>, t17: TypeDescriptor<T17>, t18: TypeDescriptor<T18>, t19: TypeDescriptor<T19>, t20: TypeDescriptor<T20>, t21: TypeDescriptor<T21>, t22: TypeDescriptor<T22>, t23: TypeDescriptor<T23>, t24: TypeDescriptor<T24>): Union24<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24>
export function union(): any{
return {
match(value: any){
var result: any;
var match = false;
return {
default<T>(action: (v:T) => any) {
result = action(value);
match = true;
return this;
},
case<T>(type: TypeDescriptor<T>, action: (v:T) => any) {
if(!match && matchType<T>(type, value)) {
result = action(value);
}
return this;
},
result: ()=> result
}
}
}
}
}
| mit |
v0lkan/efficient-javascript | 007/js/collections/ToDoCollection.js | 284 | define([
'utils/Config',
'backbone',
'models/ToDoModel'
], function(
Config,
Backbone,
ToDoModel
) {
'use strict';
/**
*
*/
return Backbone.Collection.extend({
model : ToDoModel,
url : Config.url.LIST_TASKS
});
});
| mit |
yogeshsaroya/new-cdnjs | ajax/libs/yui/3.17.1/dd-constrain/dd-constrain-min.js | 129 | version https://git-lfs.github.com/spec/v1
oid sha256:04fb273db3bb97fb874204c1a0bbddd2b7991878cd7eb2da2208916f7b1451f0
size 4422
| mit |
jcook/crazyIoT | src/contiki-sensinode-cc-ports/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/ESBMoteType.java | 8134 | /*
* Copyright (c) 2007, Swedish Institute of Computer Science.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. Neither the name of the Institute nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE INSTITUTE 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 INSTITUTE 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.
*
*/
package se.sics.cooja.mspmote;
import java.awt.Container;
import java.awt.Image;
import java.awt.MediaTracker;
import java.awt.Toolkit;
import java.io.File;
import java.net.URL;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JOptionPane;
import org.apache.log4j.Logger;
import se.sics.cooja.AbstractionLevelDescription;
import se.sics.cooja.ClassDescription;
import se.sics.cooja.GUI;
import se.sics.cooja.MoteInterface;
import se.sics.cooja.MoteType;
import se.sics.cooja.Simulation;
import se.sics.cooja.dialogs.CompileContiki;
import se.sics.cooja.dialogs.MessageList;
import se.sics.cooja.dialogs.MessageList.MessageContainer;
import se.sics.cooja.interfaces.IPAddress;
import se.sics.cooja.interfaces.Mote2MoteRelations;
import se.sics.cooja.interfaces.MoteAttributes;
import se.sics.cooja.interfaces.Position;
import se.sics.cooja.interfaces.RimeAddress;
import se.sics.cooja.mspmote.interfaces.ESBButton;
import se.sics.cooja.mspmote.interfaces.ESBLED;
import se.sics.cooja.mspmote.interfaces.MspClock;
import se.sics.cooja.mspmote.interfaces.MspMoteID;
import se.sics.cooja.mspmote.interfaces.MspSerial;
import se.sics.cooja.mspmote.interfaces.TR1001Radio;
@ClassDescription("ESB mote")
@AbstractionLevelDescription("Emulated level")
public class ESBMoteType extends MspMoteType {
private static Logger logger = Logger.getLogger(ESBMoteType.class);
public Icon getMoteTypeIcon() {
Toolkit toolkit = Toolkit.getDefaultToolkit();
URL imageURL = this.getClass().getClassLoader().getResource("images/esb.jpg");
Image image = toolkit.getImage(imageURL);
MediaTracker tracker = new MediaTracker(GUI.getTopParentContainer());
tracker.addImage(image, 1);
try {
tracker.waitForAll();
} catch (InterruptedException ex) {
}
if (image.getHeight(GUI.getTopParentContainer()) > 0 && image.getWidth(GUI.getTopParentContainer()) > 0) {
image = image.getScaledInstance((100*image.getWidth(GUI.getTopParentContainer())/image.getHeight(GUI.getTopParentContainer())), 100, Image.SCALE_DEFAULT);
return new ImageIcon(image);
}
return null;
}
protected MspMote createMote(Simulation simulation) {
return new ESBMote(this, simulation);
}
public boolean configureAndInit(Container parentContainer, Simulation simulation, boolean visAvailable)
throws MoteTypeCreationException {
/* SPECIAL CASE: Cooja started in applet.
* Use preconfigured Contiki firmware */
if (GUI.isVisualizedInApplet()) {
String firmware = GUI.getExternalToolsSetting("ESB_FIRMWARE", "");
if (!firmware.equals("")) {
setContikiFirmwareFile(new File(firmware));
JOptionPane.showMessageDialog(GUI.getTopParentContainer(),
"Creating mote type from precompiled firmware: " + firmware,
"Compiled firmware file available", JOptionPane.INFORMATION_MESSAGE);
} else {
JOptionPane.showMessageDialog(GUI.getTopParentContainer(),
"No precompiled firmware found",
"Compiled firmware file not available", JOptionPane.ERROR_MESSAGE);
return false;
}
}
/* If visualized, show compile dialog and let user configure */
if (visAvailable) {
/* Create unique identifier */
if (getIdentifier() == null) {
int counter = 0;
boolean identifierOK = false;
while (!identifierOK) {
identifierOK = true;
counter++;
setIdentifier("esb" + counter);
for (MoteType existingMoteType : simulation.getMoteTypes()) {
if (existingMoteType == this) {
continue;
}
if (existingMoteType.getIdentifier().equals(getIdentifier())) {
identifierOK = false;
break;
}
}
}
}
/* Create initial description */
if (getDescription() == null) {
setDescription("ESB Mote Type #" + getIdentifier());
}
return MspCompileDialog.showDialog(parentContainer, simulation, this, "esb");
}
/* Not visualized: Compile Contiki immediately */
if (getIdentifier() == null) {
throw new MoteTypeCreationException("No identifier");
}
final MessageList compilationOutput = new MessageList();
if (getCompileCommands() != null) {
/* Handle multiple compilation commands one by one */
String[] arr = getCompileCommands().split("\n");
for (String cmd: arr) {
if (cmd.trim().isEmpty()) {
continue;
}
try {
CompileContiki.compile(
cmd,
null,
null /* Do not observe output firmware file */,
getContikiSourceFile().getParentFile(),
null,
null,
compilationOutput,
true
);
} catch (Exception e) {
MoteTypeCreationException newException =
new MoteTypeCreationException("Mote type creation failed: " + e.getMessage());
newException = (MoteTypeCreationException) newException.initCause(e);
newException.setCompilationOutput(compilationOutput);
/* Print last 10 compilation errors to console */
MessageContainer[] messages = compilationOutput.getMessages();
for (int i=messages.length-10; i < messages.length; i++) {
if (i < 0) {
continue;
}
logger.fatal(">> " + messages[i]);
}
logger.fatal("Compilation error: " + e.getMessage());
throw newException;
}
}
}
if (getContikiFirmwareFile() == null ||
!getContikiFirmwareFile().exists()) {
throw new MoteTypeCreationException("Contiki firmware file does not exist: " + getContikiFirmwareFile());
}
return true;
}
public Class<? extends MoteInterface>[] getAllMoteInterfaceClasses() {
return new Class[] {
Position.class,
RimeAddress.class,
IPAddress.class,
MspSerial.class,
MspClock.class,
ESBLED.class,
ESBButton.class,
MspMoteID.class,
TR1001Radio.class,
Mote2MoteRelations.class,
MoteAttributes.class
};
}
public File getExpectedFirmwareFile(File source) {
File parentDir = source.getParentFile();
String sourceNoExtension = source.getName().substring(0, source.getName().length()-2);
return new File(parentDir, sourceNoExtension + ".esb");
}
protected String getTargetName() {
return "esb";
}
}
| mit |
rastydnb/chucknorrisfacts | app/cache/dev/twig/8e/ef/bd0d58b0015f837f4aa6f988e334.php | 1971 | <?php
/* WebProfilerBundle:Profiler:header.html.twig */
class __TwigTemplate_8eefbd0d58b0015f837f4aa6f988e334 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
);
}
protected function doDisplay(array $context, array $blocks = array())
{
// line 1
echo "<div id=\"header\" class=\"clear_fix\">
<h1>
<img src=\"";
// line 3
echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/webprofiler/images/profiler/logo_symfony_profiler.png"), "html", null, true);
echo "\" alt=\"Symfony profiler\"/>
</h1>
<div class=\"search\">
<form method=\"get\" action=\"http://symfony.com/search\">
<div class=\"form_row\">
<label for=\"search_id\">
<img src=\"";
// line 10
echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/webprofiler/images/profiler/grey_magnifier.png"), "html", null, true);
echo "\" alt=\"Search on Symfony website\"/>
</label>
<input name=\"q\" id=\"search_id\" type=\"search\" placeholder=\"Search on Symfony website\"/>
<button type=\"submit\">
<span class=\"border_l\">
<span class=\"border_r\">
<span class=\"btn_bg\">OK</span>
</span>
</span>
</button>
</div>
</form>
</div>
</div>
";
}
public function getTemplateName()
{
return "WebProfilerBundle:Profiler:header.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 31 => 10, 21 => 3, 17 => 1,);
}
}
| mit |
rangle/ci-i18n-angular | src/app/components/githubContributor/githubContributor.service.spec.js | 2114 | (function() {
'use strict';
describe('service githubContributor', function() {
var githubContributor;
var $httpBackend;
var $log;
beforeEach(module('workshop'));
beforeEach(inject(function(_githubContributor_, _$httpBackend_, _$log_) {
githubContributor = _githubContributor_;
$httpBackend = _$httpBackend_;
$log = _$log_;
}));
it('should be registered', function() {
expect(githubContributor).not.toEqual(null);
});
describe('apiHost variable', function() {
it('should exist', function() {
expect(githubContributor.apiHost).not.toEqual(null);
});
});
describe('getContributors function', function() {
it('should exist', function() {
expect(githubContributor.getContributors).not.toEqual(null);
});
it('should return data', function() {
$httpBackend.when('GET', githubContributor.apiHost + '/contributors?per_page=1').respond(200, [{pprt: 'value'}]);
var data;
githubContributor.getContributors(1).then(function(fetchedData) {
data = fetchedData;
});
$httpBackend.flush();
expect(data).toEqual(jasmine.any(Array));
expect(data.length === 1).toBeTruthy();
expect(data[0]).toEqual(jasmine.any(Object));
});
it('should define a limit per page as default value', function() {
$httpBackend.when('GET', githubContributor.apiHost + '/contributors?per_page=30').respond(200, new Array(30));
var data;
githubContributor.getContributors().then(function(fetchedData) {
data = fetchedData;
});
$httpBackend.flush();
expect(data).toEqual(jasmine.any(Array));
expect(data.length === 30).toBeTruthy();
});
it('should log a error', function() {
$httpBackend.when('GET', githubContributor.apiHost + '/contributors?per_page=1').respond(500);
githubContributor.getContributors(1);
$httpBackend.flush();
expect($log.error.logs).toEqual(jasmine.stringMatching('XHR Failed for'));
});
});
});
})();
| mit |
Flobbos/laravel-newsletter | src/LaravelNewsletter/LaravelNewsletterApi.php | 111 | <?php
namespace Flobbos\LaravelNewsletter;
use Contracts\Api;
class LaravelNewsletterApi {
}
| mit |
mjirik/imtools | imtools/viewer.py | 3582 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Simple VTK Viewer.
Example:
$ viewer.py -f head.vtk
"""
from optparse import OptionParser
from PyQt5.QtWidgets import *
import sys
from PyQt5.QtGui import QApplication, QDialog, QGridLayout, QPushButton
import vtk
from vtk.qt4.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor
class QVTKViewer(QDialog):
"""
Simple VTK Viewer.
"""
def initUI(self):
grid = QGridLayout()
self.vtkWidget = QVTKRenderWindowInteractor(self)
grid.addWidget(self.vtkWidget, 0, 0, 1, 1)
btn_close = QPushButton("close", self)
btn_close.clicked.connect(self.close)
grid.addWidget(btn_close, 1, 0, 1, 1)
self.setLayout(grid)
self.setWindowTitle('VTK Viewer')
self.show()
def __init__(self, vtk_filename=None, vtk_data=None):
"""
Initiate Viwer
Parameters
----------
vtk_filename : str
Input VTK filename
"""
QDialog.__init__(self)
self.initUI()
ren = vtk.vtkRenderer()
self.vtkWidget.GetRenderWindow().AddRenderer(ren)
iren = self.vtkWidget.GetRenderWindow().GetInteractor()
if vtk_filename is not None:
# VTK file
reader = vtk.vtkUnstructuredGridReader()
reader.SetFileName(vtk_filename)
reader.Update()
vtkdata = reader.GetOutput()
if vtk_data is not None:
vtkdata = vtk_data
# VTK surface
surface = vtk.vtkDataSetSurfaceFilter()
surface.SetInputData(vtkdata)
# surface.SetInput(vtkdata)
surface.Update()
mapper = vtk.vtkDataSetMapper()
mapper.SetInputData(surface.GetOutput())
actor = vtk.vtkActor()
actor.SetMapper(mapper)
# actor.GetProperty().EdgeVisibilityOff()
actor.GetProperty().SetEdgeColor(1,0.0,1)
actor.GetProperty().SetDiffuseColor(1,0.0,1.0)
actor.GetProperty().SetAmbientColor(1,0.0,1)
actor.GetProperty().SetLineWidth(0.1)
# import pdb; pdb.set_trace()
# actor.GetProperty().SetColor(1, 0, 1)
actor.GetProperty().SetOpacity(0.3)
ren.AddActor(actor)
# annot. cube
axesActor = vtk.vtkAnnotatedCubeActor()
axesActor.SetXPlusFaceText('R')
axesActor.SetXMinusFaceText('L')
axesActor.SetYMinusFaceText('H')
axesActor.SetYPlusFaceText('F')
axesActor.SetZMinusFaceText('A')
axesActor.SetZPlusFaceText('P')
axesActor.GetTextEdgesProperty().SetColor(1, 0, 0)
axesActor.GetCubeProperty().SetColor(0, 0, 1)
self.axes = vtk.vtkOrientationMarkerWidget()
self.axes.SetOrientationMarker(axesActor)
self.axes.SetInteractor(iren)
self.axes.EnabledOn()
self.axes.InteractiveOn()
ren.SetBackground(0.5, 0.5, 0.5)
ren.ResetCamera()
iren.Initialize()
usage = '%prog [options]\n' + __doc__.rstrip()
help = {
'in_file': 'input VTK file with unstructured mesh',
}
def main():
parser = OptionParser(description='Simple VTK Viewer')
parser.add_option('-f', '--filename', action='store',
dest='in_filename', default=None,
help=help['in_file'])
(options, args) = parser.parse_args()
if options.in_filename is None:
raise IOError('No VTK data!')
app = QApplication(sys.argv)
viewer = QVTKViewer(options.in_filename)
sys.exit(app.exec_())
if __name__ == "__main__":
main()
| mit |
ucisal/UCICOIN | src/qt/bitcoingui.cpp | 36287 | /*
* Qt4 bitcoin GUI.
*
* W.J. van der Laan 2011-2012
* The Bitcoin Developers 2011-2012
*/
#include "bitcoingui.h"
#include "transactiontablemodel.h"
#include "addressbookpage.h"
#include "sendcoinsdialog.h"
#include "signverifymessagedialog.h"
#include "optionsdialog.h"
#include "aboutdialog.h"
#include "clientmodel.h"
#include "walletmodel.h"
#include "editaddressdialog.h"
#include "optionsmodel.h"
#include "transactiondescdialog.h"
#include "addresstablemodel.h"
#include "transactionview.h"
#include "overviewpage.h"
#include "bitcoinunits.h"
#include "guiconstants.h"
#include "askpassphrasedialog.h"
#include "notificator.h"
#include "guiutil.h"
#include "rpcconsole.h"
#include "wallet.h"
#ifdef Q_OS_MAC
#include "macdockiconhandler.h"
#endif
#include <QApplication>
#include <QMainWindow>
#include <QMenuBar>
#include <QMenu>
#include <QIcon>
#include <QTabWidget>
#include <QVBoxLayout>
#include <QToolBar>
#include <QStatusBar>
#include <QLabel>
#include <QLineEdit>
#include <QPushButton>
#include <QLocale>
#include <QMessageBox>
#include <QMimeData>
#include <QProgressBar>
#include <QStackedWidget>
#include <QDateTime>
#include <QMovie>
#include <QFileDialog>
#include <QDesktopServices>
#include <QTimer>
#include <QDragEnterEvent>
#include <QUrl>
#include <QStyle>
#include <iostream>
extern CWallet* pwalletMain;
extern int64_t nLastCoinStakeSearchInterval;
extern unsigned int nTargetSpacing;
double GetPoSKernelPS();
BitcoinGUI::BitcoinGUI(QWidget *parent):
QMainWindow(parent),
clientModel(0),
walletModel(0),
encryptWalletAction(0),
changePassphraseAction(0),
unlockWalletAction(0),
lockWalletAction(0),
aboutQtAction(0),
trayIcon(0),
notificator(0),
rpcConsole(0)
{
resize(850, 550);
setWindowTitle(tr("UCI") + " - " + tr("Wallet"));
#ifndef Q_OS_MAC
qApp->setWindowIcon(QIcon(":icons/bitcoin"));
setWindowIcon(QIcon(":icons/bitcoin"));
#else
setUnifiedTitleAndToolBarOnMac(true);
QApplication::setAttribute(Qt::AA_DontShowIconsInMenus);
#endif
// Accept D&D of URIs
setAcceptDrops(true);
// Create actions for the toolbar, menu bar and tray/dock icon
createActions();
// Create application menu bar
createMenuBar();
// Create the toolbars
createToolBars();
// Create the tray icon (or setup the dock icon)
createTrayIcon();
// Create tabs
overviewPage = new OverviewPage();
transactionsPage = new QWidget(this);
QVBoxLayout *vbox = new QVBoxLayout();
transactionView = new TransactionView(this);
vbox->addWidget(transactionView);
transactionsPage->setLayout(vbox);
addressBookPage = new AddressBookPage(AddressBookPage::ForEditing, AddressBookPage::SendingTab);
receiveCoinsPage = new AddressBookPage(AddressBookPage::ForEditing, AddressBookPage::ReceivingTab);
sendCoinsPage = new SendCoinsDialog(this);
signVerifyMessageDialog = new SignVerifyMessageDialog(this);
centralWidget = new QStackedWidget(this);
centralWidget->addWidget(overviewPage);
centralWidget->addWidget(transactionsPage);
centralWidget->addWidget(addressBookPage);
centralWidget->addWidget(receiveCoinsPage);
centralWidget->addWidget(sendCoinsPage);
setCentralWidget(centralWidget);
// Create status bar
statusBar();
// Status bar notification icons
QFrame *frameBlocks = new QFrame();
frameBlocks->setContentsMargins(0,0,0,0);
frameBlocks->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Preferred);
QHBoxLayout *frameBlocksLayout = new QHBoxLayout(frameBlocks);
frameBlocksLayout->setContentsMargins(3,0,3,0);
frameBlocksLayout->setSpacing(3);
labelEncryptionIcon = new QLabel();
labelStakingIcon = new QLabel();
labelConnectionsIcon = new QLabel();
labelBlocksIcon = new QLabel();
frameBlocksLayout->addStretch();
frameBlocksLayout->addWidget(labelEncryptionIcon);
frameBlocksLayout->addStretch();
frameBlocksLayout->addWidget(labelStakingIcon);
frameBlocksLayout->addStretch();
frameBlocksLayout->addWidget(labelConnectionsIcon);
frameBlocksLayout->addStretch();
frameBlocksLayout->addWidget(labelBlocksIcon);
frameBlocksLayout->addStretch();
if (GetBoolArg("-staking", true))
{
QTimer *timerStakingIcon = new QTimer(labelStakingIcon);
connect(timerStakingIcon, SIGNAL(timeout()), this, SLOT(updateStakingIcon()));
timerStakingIcon->start(30 * 1000);
updateStakingIcon();
}
// Progress bar and label for blocks download
progressBarLabel = new QLabel();
progressBarLabel->setVisible(false);
progressBar = new QProgressBar();
progressBar->setAlignment(Qt::AlignCenter);
progressBar->setVisible(false);
// Override style sheet for progress bar for styles that have a segmented progress bar,
// as they make the text unreadable (workaround for issue #1071)
// See https://qt-project.org/doc/qt-4.8/gallery.html
QString curStyle = qApp->style()->metaObject()->className();
if(curStyle == "QWindowsStyle" || curStyle == "QWindowsXPStyle")
{
progressBar->setStyleSheet("QProgressBar { background-color: #e8e8e8; border: 1px solid grey; border-radius: 7px; padding: 1px; text-align: center; } QProgressBar::chunk { background: QLinearGradient(x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #FF8000, stop: 1 orange); border-radius: 7px; margin: 0px; }");
}
statusBar()->addWidget(progressBarLabel);
statusBar()->addWidget(progressBar);
statusBar()->addPermanentWidget(frameBlocks);
syncIconMovie = new QMovie(":/movies/update_spinner", "mng", this);
// Clicking on a transaction on the overview page simply sends you to transaction history page
connect(overviewPage, SIGNAL(transactionClicked(QModelIndex)), this, SLOT(gotoHistoryPage()));
connect(overviewPage, SIGNAL(transactionClicked(QModelIndex)), transactionView, SLOT(focusTransaction(QModelIndex)));
// Double-clicking on a transaction on the transaction history page shows details
connect(transactionView, SIGNAL(doubleClicked(QModelIndex)), transactionView, SLOT(showDetails()));
rpcConsole = new RPCConsole(this);
connect(openRPCConsoleAction, SIGNAL(triggered()), rpcConsole, SLOT(show()));
// Clicking on "Verify Message" in the address book sends you to the verify message tab
connect(addressBookPage, SIGNAL(verifyMessage(QString)), this, SLOT(gotoVerifyMessageTab(QString)));
// Clicking on "Sign Message" in the receive coins page sends you to the sign message tab
connect(receiveCoinsPage, SIGNAL(signMessage(QString)), this, SLOT(gotoSignMessageTab(QString)));
gotoOverviewPage();
}
BitcoinGUI::~BitcoinGUI()
{
if(trayIcon) // Hide tray icon, as deleting will let it linger until quit (on Ubuntu)
trayIcon->hide();
#ifdef Q_OS_MAC
delete appMenuBar;
#endif
}
void BitcoinGUI::createActions()
{
QActionGroup *tabGroup = new QActionGroup(this);
overviewAction = new QAction(QIcon(":/icons/overview"), tr("&Overview"), this);
overviewAction->setToolTip(tr("Show general overview of wallet"));
overviewAction->setCheckable(true);
overviewAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_1));
tabGroup->addAction(overviewAction);
sendCoinsAction = new QAction(QIcon(":/icons/send"), tr("&Send coins"), this);
sendCoinsAction->setToolTip(tr("Send coins to a UCI address"));
sendCoinsAction->setCheckable(true);
sendCoinsAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_2));
tabGroup->addAction(sendCoinsAction);
receiveCoinsAction = new QAction(QIcon(":/icons/receiving_addresses"), tr("&Receive coins"), this);
receiveCoinsAction->setToolTip(tr("Show the list of addresses for receiving payments"));
receiveCoinsAction->setCheckable(true);
receiveCoinsAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_3));
tabGroup->addAction(receiveCoinsAction);
historyAction = new QAction(QIcon(":/icons/history"), tr("&Transactions"), this);
historyAction->setToolTip(tr("Browse transaction history"));
historyAction->setCheckable(true);
historyAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_4));
tabGroup->addAction(historyAction);
addressBookAction = new QAction(QIcon(":/icons/address-book"), tr("&Address Book"), this);
addressBookAction->setToolTip(tr("Edit the list of stored addresses and labels"));
addressBookAction->setCheckable(true);
addressBookAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_5));
tabGroup->addAction(addressBookAction);
connect(overviewAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));
connect(overviewAction, SIGNAL(triggered()), this, SLOT(gotoOverviewPage()));
connect(sendCoinsAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));
connect(sendCoinsAction, SIGNAL(triggered()), this, SLOT(gotoSendCoinsPage()));
connect(receiveCoinsAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));
connect(receiveCoinsAction, SIGNAL(triggered()), this, SLOT(gotoReceiveCoinsPage()));
connect(historyAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));
connect(historyAction, SIGNAL(triggered()), this, SLOT(gotoHistoryPage()));
connect(addressBookAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));
connect(addressBookAction, SIGNAL(triggered()), this, SLOT(gotoAddressBookPage()));
quitAction = new QAction(QIcon(":/icons/quit"), tr("E&xit"), this);
quitAction->setToolTip(tr("Quit application"));
quitAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q));
quitAction->setMenuRole(QAction::QuitRole);
aboutAction = new QAction(QIcon(":/icons/bitcoin"), tr("&About UCI"), this);
aboutAction->setToolTip(tr("Show information about UCI"));
aboutAction->setMenuRole(QAction::AboutRole);
aboutQtAction = new QAction(QIcon(":/trolltech/qmessagebox/images/qtlogo-64.png"), tr("About &Qt"), this);
aboutQtAction->setToolTip(tr("Show information about Qt"));
aboutQtAction->setMenuRole(QAction::AboutQtRole);
optionsAction = new QAction(QIcon(":/icons/options"), tr("&Options..."), this);
optionsAction->setToolTip(tr("Modify configuration options for UCI"));
optionsAction->setMenuRole(QAction::PreferencesRole);
toggleHideAction = new QAction(QIcon(":/icons/bitcoin"), tr("&Show / Hide"), this);
encryptWalletAction = new QAction(QIcon(":/icons/lock_closed"), tr("&Encrypt Wallet..."), this);
encryptWalletAction->setToolTip(tr("Encrypt or decrypt wallet"));
encryptWalletAction->setCheckable(true);
backupWalletAction = new QAction(QIcon(":/icons/filesave"), tr("&Backup Wallet..."), this);
backupWalletAction->setToolTip(tr("Backup wallet to another location"));
changePassphraseAction = new QAction(QIcon(":/icons/key"), tr("&Change Passphrase..."), this);
changePassphraseAction->setToolTip(tr("Change the passphrase used for wallet encryption"));
unlockWalletAction = new QAction(QIcon(":/icons/lock_open"), tr("&Unlock Wallet..."), this);
unlockWalletAction->setToolTip(tr("Unlock wallet"));
lockWalletAction = new QAction(QIcon(":/icons/lock_closed"), tr("&Lock Wallet"), this);
lockWalletAction->setToolTip(tr("Lock wallet"));
signMessageAction = new QAction(QIcon(":/icons/edit"), tr("Sign &message..."), this);
verifyMessageAction = new QAction(QIcon(":/icons/transaction_0"), tr("&Verify message..."), this);
exportAction = new QAction(QIcon(":/icons/export"), tr("&Export..."), this);
exportAction->setToolTip(tr("Export the data in the current tab to a file"));
openRPCConsoleAction = new QAction(QIcon(":/icons/debugwindow"), tr("&Debug window"), this);
openRPCConsoleAction->setToolTip(tr("Open debugging and diagnostic console"));
connect(quitAction, SIGNAL(triggered()), qApp, SLOT(quit()));
connect(aboutAction, SIGNAL(triggered()), this, SLOT(aboutClicked()));
connect(aboutQtAction, SIGNAL(triggered()), qApp, SLOT(aboutQt()));
connect(optionsAction, SIGNAL(triggered()), this, SLOT(optionsClicked()));
connect(toggleHideAction, SIGNAL(triggered()), this, SLOT(toggleHidden()));
connect(encryptWalletAction, SIGNAL(triggered(bool)), this, SLOT(encryptWallet(bool)));
connect(backupWalletAction, SIGNAL(triggered()), this, SLOT(backupWallet()));
connect(changePassphraseAction, SIGNAL(triggered()), this, SLOT(changePassphrase()));
connect(unlockWalletAction, SIGNAL(triggered()), this, SLOT(unlockWallet()));
connect(lockWalletAction, SIGNAL(triggered()), this, SLOT(lockWallet()));
connect(signMessageAction, SIGNAL(triggered()), this, SLOT(gotoSignMessageTab()));
connect(verifyMessageAction, SIGNAL(triggered()), this, SLOT(gotoVerifyMessageTab()));
}
void BitcoinGUI::createMenuBar()
{
#ifdef Q_OS_MAC
// Create a decoupled menu bar on Mac which stays even if the window is closed
appMenuBar = new QMenuBar();
#else
// Get the main window's menu bar on other platforms
appMenuBar = menuBar();
#endif
// Configure the menus
QMenu *file = appMenuBar->addMenu(tr("&File"));
file->addAction(backupWalletAction);
file->addAction(exportAction);
file->addAction(signMessageAction);
file->addAction(verifyMessageAction);
file->addSeparator();
file->addAction(quitAction);
QMenu *settings = appMenuBar->addMenu(tr("&Settings"));
settings->addAction(encryptWalletAction);
settings->addAction(changePassphraseAction);
settings->addAction(unlockWalletAction);
settings->addAction(lockWalletAction);
settings->addSeparator();
settings->addAction(optionsAction);
QMenu *help = appMenuBar->addMenu(tr("&Help"));
help->addAction(openRPCConsoleAction);
help->addSeparator();
help->addAction(aboutAction);
help->addAction(aboutQtAction);
}
void BitcoinGUI::createToolBars()
{
QToolBar *toolbar = addToolBar(tr("Tabs toolbar"));
toolbar->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
toolbar->addAction(overviewAction);
toolbar->addAction(sendCoinsAction);
toolbar->addAction(receiveCoinsAction);
toolbar->addAction(historyAction);
toolbar->addAction(addressBookAction);
QToolBar *toolbar2 = addToolBar(tr("Actions toolbar"));
toolbar2->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
toolbar2->addAction(exportAction);
}
void BitcoinGUI::setClientModel(ClientModel *clientModel)
{
this->clientModel = clientModel;
if(clientModel)
{
// Replace some strings and icons, when using the testnet
if(clientModel->isTestNet())
{
setWindowTitle(windowTitle() + QString(" ") + tr("[testnet]"));
#ifndef Q_OS_MAC
qApp->setWindowIcon(QIcon(":icons/bitcoin_testnet"));
setWindowIcon(QIcon(":icons/bitcoin_testnet"));
#else
MacDockIconHandler::instance()->setIcon(QIcon(":icons/bitcoin_testnet"));
#endif
if(trayIcon)
{
trayIcon->setToolTip(tr("UCI client") + QString(" ") + tr("[testnet]"));
trayIcon->setIcon(QIcon(":/icons/toolbar_testnet"));
toggleHideAction->setIcon(QIcon(":/icons/toolbar_testnet"));
}
aboutAction->setIcon(QIcon(":/icons/toolbar_testnet"));
}
// Keep up to date with client
setNumConnections(clientModel->getNumConnections());
connect(clientModel, SIGNAL(numConnectionsChanged(int)), this, SLOT(setNumConnections(int)));
setNumBlocks(clientModel->getNumBlocks(), clientModel->getNumBlocksOfPeers());
connect(clientModel, SIGNAL(numBlocksChanged(int,int)), this, SLOT(setNumBlocks(int,int)));
// Report errors from network/worker thread
connect(clientModel, SIGNAL(error(QString,QString,bool)), this, SLOT(error(QString,QString,bool)));
rpcConsole->setClientModel(clientModel);
addressBookPage->setOptionsModel(clientModel->getOptionsModel());
receiveCoinsPage->setOptionsModel(clientModel->getOptionsModel());
}
}
void BitcoinGUI::setWalletModel(WalletModel *walletModel)
{
this->walletModel = walletModel;
if(walletModel)
{
// Report errors from wallet thread
connect(walletModel, SIGNAL(error(QString,QString,bool)), this, SLOT(error(QString,QString,bool)));
// Put transaction list in tabs
transactionView->setModel(walletModel);
overviewPage->setModel(walletModel);
addressBookPage->setModel(walletModel->getAddressTableModel());
receiveCoinsPage->setModel(walletModel->getAddressTableModel());
sendCoinsPage->setModel(walletModel);
signVerifyMessageDialog->setModel(walletModel);
setEncryptionStatus(walletModel->getEncryptionStatus());
connect(walletModel, SIGNAL(encryptionStatusChanged(int)), this, SLOT(setEncryptionStatus(int)));
// Balloon pop-up for new transaction
connect(walletModel->getTransactionTableModel(), SIGNAL(rowsInserted(QModelIndex,int,int)),
this, SLOT(incomingTransaction(QModelIndex,int,int)));
// Ask for passphrase if needed
connect(walletModel, SIGNAL(requireUnlock()), this, SLOT(unlockWallet()));
}
}
void BitcoinGUI::createTrayIcon()
{
QMenu *trayIconMenu;
#ifndef Q_OS_MAC
trayIcon = new QSystemTrayIcon(this);
trayIconMenu = new QMenu(this);
trayIcon->setContextMenu(trayIconMenu);
trayIcon->setToolTip(tr("UCI client"));
trayIcon->setIcon(QIcon(":/icons/toolbar"));
connect(trayIcon, SIGNAL(activated(QSystemTrayIcon::ActivationReason)),
this, SLOT(trayIconActivated(QSystemTrayIcon::ActivationReason)));
trayIcon->show();
#else
// Note: On Mac, the dock icon is used to provide the tray's functionality.
MacDockIconHandler *dockIconHandler = MacDockIconHandler::instance();
dockIconHandler->setMainWindow((QMainWindow *)this);
trayIconMenu = dockIconHandler->dockMenu();
#endif
// Configuration of the tray icon (or dock icon) icon menu
trayIconMenu->addAction(toggleHideAction);
trayIconMenu->addSeparator();
trayIconMenu->addAction(sendCoinsAction);
trayIconMenu->addAction(receiveCoinsAction);
trayIconMenu->addSeparator();
trayIconMenu->addAction(signMessageAction);
trayIconMenu->addAction(verifyMessageAction);
trayIconMenu->addSeparator();
trayIconMenu->addAction(optionsAction);
trayIconMenu->addAction(openRPCConsoleAction);
#ifndef Q_OS_MAC // This is built-in on Mac
trayIconMenu->addSeparator();
trayIconMenu->addAction(quitAction);
#endif
notificator = new Notificator(qApp->applicationName(), trayIcon);
}
#ifndef Q_OS_MAC
void BitcoinGUI::trayIconActivated(QSystemTrayIcon::ActivationReason reason)
{
if(reason == QSystemTrayIcon::Trigger)
{
// Click on system tray icon triggers show/hide of the main window
toggleHideAction->trigger();
}
}
#endif
void BitcoinGUI::optionsClicked()
{
if(!clientModel || !clientModel->getOptionsModel())
return;
OptionsDialog dlg;
dlg.setModel(clientModel->getOptionsModel());
dlg.exec();
}
void BitcoinGUI::aboutClicked()
{
AboutDialog dlg;
dlg.setModel(clientModel);
dlg.exec();
}
void BitcoinGUI::setNumConnections(int count)
{
QString icon;
switch(count)
{
case 0: icon = ":/icons/connect_0"; break;
case 1: case 2: case 3: icon = ":/icons/connect_1"; break;
case 4: case 5: case 6: icon = ":/icons/connect_2"; break;
case 7: case 8: case 9: icon = ":/icons/connect_3"; break;
default: icon = ":/icons/connect_4"; break;
}
labelConnectionsIcon->setPixmap(QIcon(icon).pixmap(STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE));
labelConnectionsIcon->setToolTip(tr("%n active connection(s) to UCI network", "", count));
}
void BitcoinGUI::setNumBlocks(int count, int nTotalBlocks)
{
// don't show / hide progress bar and its label if we have no connection to the network
if (!clientModel || clientModel->getNumConnections() == 0)
{
progressBarLabel->setVisible(false);
progressBar->setVisible(false);
return;
}
QString strStatusBarWarnings = clientModel->getStatusBarWarnings();
QString tooltip;
if(count < nTotalBlocks)
{
int nRemainingBlocks = nTotalBlocks - count;
float nPercentageDone = count / (nTotalBlocks * 0.01f);
if (strStatusBarWarnings.isEmpty())
{
progressBarLabel->setText(tr("Synchronizing with network..."));
progressBarLabel->setVisible(true);
progressBar->setFormat(tr("~%n block(s) remaining", "", nRemainingBlocks));
progressBar->setMaximum(nTotalBlocks);
progressBar->setValue(count);
progressBar->setVisible(true);
}
tooltip = tr("Downloaded %1 of %2 blocks of transaction history (%3% done).").arg(count).arg(nTotalBlocks).arg(nPercentageDone, 0, 'f', 2);
}
else
{
if (strStatusBarWarnings.isEmpty())
progressBarLabel->setVisible(false);
progressBar->setVisible(false);
tooltip = tr("Downloaded %1 blocks of transaction history.").arg(count);
}
// Override progressBarLabel text and hide progress bar, when we have warnings to display
if (!strStatusBarWarnings.isEmpty())
{
progressBarLabel->setText(strStatusBarWarnings);
progressBarLabel->setVisible(true);
progressBar->setVisible(false);
}
QDateTime lastBlockDate = clientModel->getLastBlockDate();
int secs = lastBlockDate.secsTo(QDateTime::currentDateTime());
QString text;
// Represent time from last generated block in human readable text
if(secs <= 0)
{
// Fully up to date. Leave text empty.
}
else if(secs < 60)
{
text = tr("%n second(s) ago","",secs);
}
else if(secs < 60*60)
{
text = tr("%n minute(s) ago","",secs/60);
}
else if(secs < 24*60*60)
{
text = tr("%n hour(s) ago","",secs/(60*60));
}
else
{
text = tr("%n day(s) ago","",secs/(60*60*24));
}
// Set icon state: spinning if catching up, tick otherwise
if(secs < 90*60 && count >= nTotalBlocks)
{
tooltip = tr("Up to date") + QString(".<br>") + tooltip;
labelBlocksIcon->setPixmap(QIcon(":/icons/synced").pixmap(STATUSBAR_ICONSIZE, STATUSBAR_ICONSIZE));
overviewPage->showOutOfSyncWarning(false);
}
else
{
tooltip = tr("Catching up...") + QString("<br>") + tooltip;
labelBlocksIcon->setMovie(syncIconMovie);
syncIconMovie->start();
overviewPage->showOutOfSyncWarning(true);
}
if(!text.isEmpty())
{
tooltip += QString("<br>");
tooltip += tr("Last received block was generated %1.").arg(text);
}
// Don't word-wrap this (fixed-width) tooltip
tooltip = QString("<nobr>") + tooltip + QString("</nobr>");
labelBlocksIcon->setToolTip(tooltip);
progressBarLabel->setToolTip(tooltip);
progressBar->setToolTip(tooltip);
}
void BitcoinGUI::error(const QString &title, const QString &message, bool modal)
{
// Report errors from network/worker thread
if(modal)
{
QMessageBox::critical(this, title, message, QMessageBox::Ok, QMessageBox::Ok);
} else {
notificator->notify(Notificator::Critical, title, message);
}
}
void BitcoinGUI::changeEvent(QEvent *e)
{
QMainWindow::changeEvent(e);
#ifndef Q_OS_MAC // Ignored on Mac
if(e->type() == QEvent::WindowStateChange)
{
if(clientModel && clientModel->getOptionsModel()->getMinimizeToTray())
{
QWindowStateChangeEvent *wsevt = static_cast<QWindowStateChangeEvent*>(e);
if(!(wsevt->oldState() & Qt::WindowMinimized) && isMinimized())
{
QTimer::singleShot(0, this, SLOT(hide()));
e->ignore();
}
}
}
#endif
}
void BitcoinGUI::closeEvent(QCloseEvent *event)
{
if(clientModel)
{
#ifndef Q_OS_MAC // Ignored on Mac
if(!clientModel->getOptionsModel()->getMinimizeToTray() &&
!clientModel->getOptionsModel()->getMinimizeOnClose())
{
qApp->quit();
}
#endif
}
QMainWindow::closeEvent(event);
}
void BitcoinGUI::askFee(qint64 nFeeRequired, bool *payFee)
{
QString strMessage =
tr("This transaction is over the size limit. You can still send it for a fee of %1, "
"which goes to the nodes that process your transaction and helps to support the network. "
"Do you want to pay the fee?").arg(
BitcoinUnits::formatWithUnit(BitcoinUnits::BTC, nFeeRequired));
QMessageBox::StandardButton retval = QMessageBox::question(
this, tr("Confirm transaction fee"), strMessage,
QMessageBox::Yes|QMessageBox::Cancel, QMessageBox::Yes);
*payFee = (retval == QMessageBox::Yes);
}
void BitcoinGUI::incomingTransaction(const QModelIndex & parent, int start, int end)
{
if(!walletModel || !clientModel)
return;
TransactionTableModel *ttm = walletModel->getTransactionTableModel();
qint64 amount = ttm->index(start, TransactionTableModel::Amount, parent)
.data(Qt::EditRole).toULongLong();
if(!clientModel->inInitialBlockDownload())
{
// On new transaction, make an info balloon
// Unless the initial block download is in progress, to prevent balloon-spam
QString date = ttm->index(start, TransactionTableModel::Date, parent)
.data().toString();
QString type = ttm->index(start, TransactionTableModel::Type, parent)
.data().toString();
QString address = ttm->index(start, TransactionTableModel::ToAddress, parent)
.data().toString();
QIcon icon = qvariant_cast<QIcon>(ttm->index(start,
TransactionTableModel::ToAddress, parent)
.data(Qt::DecorationRole));
notificator->notify(Notificator::Information,
(amount)<0 ? tr("Sent transaction") :
tr("Incoming transaction"),
tr("Date: %1\n"
"Amount: %2\n"
"Type: %3\n"
"Address: %4\n")
.arg(date)
.arg(BitcoinUnits::formatWithUnit(walletModel->getOptionsModel()->getDisplayUnit(), amount, true))
.arg(type)
.arg(address), icon);
}
}
void BitcoinGUI::gotoOverviewPage()
{
overviewAction->setChecked(true);
centralWidget->setCurrentWidget(overviewPage);
exportAction->setEnabled(false);
disconnect(exportAction, SIGNAL(triggered()), 0, 0);
}
void BitcoinGUI::gotoHistoryPage()
{
historyAction->setChecked(true);
centralWidget->setCurrentWidget(transactionsPage);
exportAction->setEnabled(true);
disconnect(exportAction, SIGNAL(triggered()), 0, 0);
connect(exportAction, SIGNAL(triggered()), transactionView, SLOT(exportClicked()));
}
void BitcoinGUI::gotoAddressBookPage()
{
addressBookAction->setChecked(true);
centralWidget->setCurrentWidget(addressBookPage);
exportAction->setEnabled(true);
disconnect(exportAction, SIGNAL(triggered()), 0, 0);
connect(exportAction, SIGNAL(triggered()), addressBookPage, SLOT(exportClicked()));
}
void BitcoinGUI::gotoReceiveCoinsPage()
{
receiveCoinsAction->setChecked(true);
centralWidget->setCurrentWidget(receiveCoinsPage);
exportAction->setEnabled(true);
disconnect(exportAction, SIGNAL(triggered()), 0, 0);
connect(exportAction, SIGNAL(triggered()), receiveCoinsPage, SLOT(exportClicked()));
}
void BitcoinGUI::gotoSendCoinsPage()
{
sendCoinsAction->setChecked(true);
centralWidget->setCurrentWidget(sendCoinsPage);
exportAction->setEnabled(false);
disconnect(exportAction, SIGNAL(triggered()), 0, 0);
}
void BitcoinGUI::gotoSignMessageTab(QString addr)
{
// call show() in showTab_SM()
signVerifyMessageDialog->showTab_SM(true);
if(!addr.isEmpty())
signVerifyMessageDialog->setAddress_SM(addr);
}
void BitcoinGUI::gotoVerifyMessageTab(QString addr)
{
// call show() in showTab_VM()
signVerifyMessageDialog->showTab_VM(true);
if(!addr.isEmpty())
signVerifyMessageDialog->setAddress_VM(addr);
}
void BitcoinGUI::dragEnterEvent(QDragEnterEvent *event)
{
// Accept only URIs
if(event->mimeData()->hasUrls())
event->acceptProposedAction();
}
void BitcoinGUI::dropEvent(QDropEvent *event)
{
if(event->mimeData()->hasUrls())
{
int nValidUrisFound = 0;
QList<QUrl> uris = event->mimeData()->urls();
foreach(const QUrl &uri, uris)
{
if (sendCoinsPage->handleURI(uri.toString()))
nValidUrisFound++;
}
// if valid URIs were found
if (nValidUrisFound)
gotoSendCoinsPage();
else
notificator->notify(Notificator::Warning, tr("URI handling"), tr("URI can not be parsed! This can be caused by an invalid UCI address or malformed URI parameters."));
}
event->acceptProposedAction();
}
void BitcoinGUI::handleURI(QString strURI)
{
// URI has to be valid
if (sendCoinsPage->handleURI(strURI))
{
showNormalIfMinimized();
gotoSendCoinsPage();
}
else
notificator->notify(Notificator::Warning, tr("URI handling"), tr("URI can not be parsed! This can be caused by an invalid UCI address or malformed URI parameters."));
}
void BitcoinGUI::setEncryptionStatus(int status)
{
switch(status)
{
case WalletModel::Unencrypted:
labelEncryptionIcon->hide();
encryptWalletAction->setChecked(false);
changePassphraseAction->setEnabled(false);
unlockWalletAction->setVisible(false);
lockWalletAction->setVisible(false);
encryptWalletAction->setEnabled(true);
break;
case WalletModel::Unlocked:
labelEncryptionIcon->show();
labelEncryptionIcon->setPixmap(QIcon(":/icons/lock_open").pixmap(STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE));
labelEncryptionIcon->setToolTip(tr("Wallet is <b>encrypted</b> and currently <b>unlocked</b>"));
encryptWalletAction->setChecked(true);
changePassphraseAction->setEnabled(true);
unlockWalletAction->setVisible(false);
lockWalletAction->setVisible(true);
encryptWalletAction->setEnabled(false); // TODO: decrypt currently not supported
break;
case WalletModel::Locked:
labelEncryptionIcon->show();
labelEncryptionIcon->setPixmap(QIcon(":/icons/lock_closed").pixmap(STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE));
labelEncryptionIcon->setToolTip(tr("Wallet is <b>encrypted</b> and currently <b>locked</b>"));
encryptWalletAction->setChecked(true);
changePassphraseAction->setEnabled(true);
unlockWalletAction->setVisible(true);
lockWalletAction->setVisible(false);
encryptWalletAction->setEnabled(false); // TODO: decrypt currently not supported
break;
}
}
void BitcoinGUI::encryptWallet(bool status)
{
if(!walletModel)
return;
AskPassphraseDialog dlg(status ? AskPassphraseDialog::Encrypt:
AskPassphraseDialog::Decrypt, this);
dlg.setModel(walletModel);
dlg.exec();
setEncryptionStatus(walletModel->getEncryptionStatus());
}
void BitcoinGUI::backupWallet()
{
QString saveDir = QDesktopServices::storageLocation(QDesktopServices::DocumentsLocation);
QString filename = QFileDialog::getSaveFileName(this, tr("Backup Wallet"), saveDir, tr("Wallet Data (*.dat)"));
if(!filename.isEmpty()) {
if(!walletModel->backupWallet(filename)) {
QMessageBox::warning(this, tr("Backup Failed"), tr("There was an error trying to save the wallet data to the new location."));
}
}
}
void BitcoinGUI::changePassphrase()
{
AskPassphraseDialog dlg(AskPassphraseDialog::ChangePass, this);
dlg.setModel(walletModel);
dlg.exec();
}
void BitcoinGUI::unlockWallet()
{
if(!walletModel)
return;
// Unlock wallet when requested by wallet model
if(walletModel->getEncryptionStatus() == WalletModel::Locked)
{
AskPassphraseDialog::Mode mode = sender() == unlockWalletAction ?
AskPassphraseDialog::UnlockStaking : AskPassphraseDialog::Unlock;
AskPassphraseDialog dlg(mode, this);
dlg.setModel(walletModel);
dlg.exec();
}
}
void BitcoinGUI::lockWallet()
{
if(!walletModel)
return;
walletModel->setWalletLocked(true);
}
void BitcoinGUI::showNormalIfMinimized(bool fToggleHidden)
{
// activateWindow() (sometimes) helps with keyboard focus on Windows
if (isHidden())
{
show();
activateWindow();
}
else if (isMinimized())
{
showNormal();
activateWindow();
}
else if (GUIUtil::isObscured(this))
{
raise();
activateWindow();
}
else if(fToggleHidden)
hide();
}
void BitcoinGUI::toggleHidden()
{
showNormalIfMinimized(true);
}
void BitcoinGUI::updateStakingIcon()
{
uint64_t nMinWeight = 0, nMaxWeight = 0, nWeight = 0;
if (pwalletMain)
pwalletMain->GetStakeWeight(*pwalletMain, nMinWeight, nMaxWeight, nWeight);
if (nLastCoinStakeSearchInterval && nWeight)
{
uint64_t nNetworkWeight = GetPoSKernelPS();
unsigned nEstimateTime = nTargetSpacing * nNetworkWeight / nWeight;
QString text;
if (nEstimateTime < 60)
{
text = tr("%n second(s)", "", nEstimateTime);
}
else if (nEstimateTime < 60*60)
{
text = tr("%n minute(s)", "", nEstimateTime/60);
}
else if (nEstimateTime < 24*60*60)
{
text = tr("%n hour(s)", "", nEstimateTime/(60*60));
}
else
{
text = tr("%n day(s)", "", nEstimateTime/(60*60*24));
}
labelStakingIcon->setPixmap(QIcon(":/icons/staking_on").pixmap(STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE));
labelStakingIcon->setToolTip(tr("Staking.<br>Your weight is %1<br>Network weight is %2<br>Expected time to earn reward is %3").arg(nWeight).arg(nNetworkWeight).arg(text));
}
else
{
labelStakingIcon->setPixmap(QIcon(":/icons/staking_off").pixmap(STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE));
if (pwalletMain && pwalletMain->IsLocked())
labelStakingIcon->setToolTip(tr("Not staking because wallet is locked"));
else if (vNodes.empty())
labelStakingIcon->setToolTip(tr("Not staking because wallet is offline"));
else if (IsInitialBlockDownload())
labelStakingIcon->setToolTip(tr("Not staking because wallet is syncing"));
else if (!nWeight)
labelStakingIcon->setToolTip(tr("Not staking because you don't have mature coins"));
else
labelStakingIcon->setToolTip(tr("Not staking"));
}
}
| mit |
Muxter/DesignPatternExample | src/com/muxter/CompositePattern/Menu.java | 1354 | package com.muxter.CompositePattern;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
/**
* Created by matao on 09/02/2017.
*/
public class Menu extends MenuComponent {
private List<MenuComponent> menuComponents = new ArrayList<>();
private String name;
private String description;
public Menu(String name, String description) {
this.name = name;
this.description = description;
}
public void add(MenuComponent menuComponent) {
menuComponents.add(menuComponent);
}
@Override
public void remove(MenuComponent menuComponent) {
menuComponents.remove(menuComponent);
}
@Override
public MenuComponent getChild(int index) {
return menuComponents.get(index);
}
@Override
public String getName() {
return name;
}
@Override
public String getDescription() {
return description;
}
@Override
public void print() {
System.out.println("\n" + getName());
System.out.println(", " + getDescription());
System.out.println("---------------------");
Iterator<MenuComponent> iterator = menuComponents.iterator();
while (iterator.hasNext()) {
MenuComponent menuComponent = iterator.next();
menuComponent.print();
}
}
}
| mit |
mixbe/expert-extractor | app/twitteruser.js | 5461 | /**
* Stelt de Twitter user voor die de searches uitvoert
*/
var OAuth = require('oauth').OAuth;
var querystring = require('querystring');
var _ = require('underscore');
var config = require('./config')
var async = require('async');
var diffbot = require('./diffbot');
var twitterOAuth = new OAuth(
'https://api.twitter.com/oauth/request_token',
'https://api.twitter.com/oauth/access_token',
config.twitter.consumerKey,
config.twitter.consumerSecret,
'1.0',
null,
'HMAC-SHA1'
);
function TwitterUser(options){
this.token = options.token;
this.tokenSecret = options.tokenSecret;
}
TwitterUser.prototype.getMostTweetetUrl = function(tweets){
var urlObjects = _.pluck(tweets, 'urls');
var expandedUrls = _.pluck(urlObjects, 'expanded_url');
return urlObjects;
}
TwitterUser.prototype.searchTopicFromUser = function(topic, username, callback){
var parameters = querystring.stringify({
q: 'from:' + username + ' ' + topic,
result_type: 'mixed',
count: 20,
include_entities: true
});
twitterOAuth.getProtectedResource('https://api.twitter.com/1.1/search/tweets.json?' + parameters, "GET", this.token, this.tokenSecret, function (err, data, res){
if(err) return callback(err);
data = JSON.parse(data);
var tweets = data.statuses;
var filteredTweets = [];
for (var i = 0; i < tweets.length; i++) {
var tweet = tweets[i];
var filteredTweet = _.pick(tweet, 'id', 'text', 'created_at', 'urls');
filteredTweet.created_at = (parseTwitterDate(filteredTweet.created_at)).getTime(); // in epoch tijd smijten
if(tweet.retweeted_status && tweet.retweeted_status.retweet_count)
filteredTweet.retweeted = tweet.retweeted_status.retweet_count;
else
filteredTweet.retweeted = 0;
filteredTweets.push(filteredTweet);
};
callback(null, filteredTweets);
});
};
TwitterUser.prototype.getRetweetedArticlesAboutTopic = function(topic, callback){
var parameters = querystring.stringify({
q: topic,
result_type: 'mixed',
count: 200,
include_entities: true
});
twitterOAuth.getProtectedResource('https://api.twitter.com/1.1/search/tweets.json?' + parameters, "GET", this.token, this.tokenSecret, function (err, data, res){
if(err) return callback(err);
data = JSON.parse(data);
var tweets = data.statuses;
var urlObjects = [];
var articles = [];
for (var i = 0; i < tweets.length; i++) {
var tweet = tweets[i];
if(tweet.retweeted_status){
if(tweet.entities && tweet.entities.urls && tweet.entities.urls.length){
var urls = tweet.entities.urls;
for (var j = urls.length - 1; j >= 0; j--) {
if(urls[j].expanded_url) urlObjects.push({url: urls[j].expanded_url, retweet_count: tweet.retweet_count});
};
}
}
};
urlObjects = _.sortBy(urlObjects, function(urlObject){return - parseInt(urlObject.retweet_count, 10)});
// console.log(urlObjects);
async.eachSeries(urlObjects, function(urlObject, asyncDone){
diffbot.parseUrl(urlObject.url, function(err, item){
if(err) return asyncDone(err);
if(item.author && item.tags) articles.push(item);
return asyncDone();
});
}, function(err){
console.log(err);
console.log(articles);
return callback(err, articles);
});
});
}
TwitterUser.prototype.getUsersWhosTweetsAreRetweetedUsingTopic = function(topic, callback){
var parameters = querystring.stringify({
q: topic,
result_type: 'mixed',
count: 200,
include_entities: true
});
twitterOAuth.getProtectedResource('https://api.twitter.com/1.1/search/tweets.json?' + parameters, "GET", this.token, this.tokenSecret, function (err, data, res){
if(err) return callback(err);
data = JSON.parse(data);
var tweets = data.statuses;
var users = [];
for (var i = 0; i < tweets.length; i++) {
var tweet = tweets[i];
if(tweet.retweeted_status){
var user = _.find(users, function (user){
return user.id == tweet.retweeted_status.user.id;
});
if(!user){
user = _.pick(tweet.retweeted_status.user, 'id', 'screen_name', 'location', 'description', 'profile_image_url');
user.retweetedtweets = [];
users.push(user);
}
var existingTweet = _.find(user.retweetedtweets, function (retweetedtweet){
return retweetedtweet.id == tweet.retweeted_status.id;
});
if(!existingTweet){
var tweet = _.pick(tweet.retweeted_status, 'id', 'text', 'created_at', 'retweet_count');
tweet.created_at = (parseTwitterDate(tweet.created_at)).getTime(); // in epoch tijd smijten
user.retweetedtweets.push( tweet );
}
}
};
callback(null, users);
});
};
TwitterUser.prototype.getTimelineText = function(screen_name, callback){
var parameters = querystring.stringify({
screen_name: screen_name,
count: 50,
trim_user: true,
include_rts: false
});
twitterOAuth.getProtectedResource('https://api.twitter.com/1.1/statuses/user_timeline.json?' + parameters, "GET", this.token, this.tokenSecret, function (err, data, res){
if(err) return callback(err);
data = JSON.parse(data);
var tweets = data;
var allTexts = _.pluck(tweets, 'text');
var concatenatedText = allTexts.join (' ');
concatenatedText = concatenatedText.replace(/(\s+|^)@\S+/g, ''); // remove mentions
concatenatedText = concatenatedText.replace(/(https?:\/\/.+?\S+)/g, ''); // remove urls
callback(null, concatenatedText);
});
};
function parseTwitterDate(text) {
return new Date(Date.parse(text.replace(/( +)/, ' UTC$1')));
}
module.exports = TwitterUser;
| mit |
lokielse/php-aliyun-open-api-ecs | src/Request/DescribeEipAddressesRequest.php | 5263 | <?php namespace Aliyun\ECS\Request;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
use Aliyun\Core\RpcAcsRequest;
class DescribeEipAddressesRequest extends RpcAcsRequest
{
private $ownerId;
private $resourceOwnerAccount;
private $resourceOwnerId;
private $status;
private $eipAddress;
private $allocationId;
private $pageNumber;
private $pageSize;
private $ownerAccount;
private $filter1Key;
private $filter2Key;
private $filter1Value;
private $filter2Value;
private $lockReason;
public function __construct()
{
parent::__construct("Ecs", "2014-05-26", "DescribeEipAddresses");
}
public function getOwnerId()
{
return $this->ownerId;
}
public function setOwnerId($ownerId)
{
$this->ownerId = $ownerId;
$this->queryParameters["OwnerId"] = $ownerId;
}
public function getResourceOwnerAccount()
{
return $this->resourceOwnerAccount;
}
public function setResourceOwnerAccount($resourceOwnerAccount)
{
$this->resourceOwnerAccount = $resourceOwnerAccount;
$this->queryParameters["ResourceOwnerAccount"] = $resourceOwnerAccount;
}
public function getResourceOwnerId()
{
return $this->resourceOwnerId;
}
public function setResourceOwnerId($resourceOwnerId)
{
$this->resourceOwnerId = $resourceOwnerId;
$this->queryParameters["ResourceOwnerId"] = $resourceOwnerId;
}
public function getStatus()
{
return $this->status;
}
public function setStatus($status)
{
$this->status = $status;
$this->queryParameters["Status"] = $status;
}
public function getEipAddress()
{
return $this->eipAddress;
}
public function setEipAddress($eipAddress)
{
$this->eipAddress = $eipAddress;
$this->queryParameters["EipAddress"] = $eipAddress;
}
public function getAllocationId()
{
return $this->allocationId;
}
public function setAllocationId($allocationId)
{
$this->allocationId = $allocationId;
$this->queryParameters["AllocationId"] = $allocationId;
}
public function getPageNumber()
{
return $this->pageNumber;
}
public function setPageNumber($pageNumber)
{
$this->pageNumber = $pageNumber;
$this->queryParameters["PageNumber"] = $pageNumber;
}
public function getPageSize()
{
return $this->pageSize;
}
public function setPageSize($pageSize)
{
$this->pageSize = $pageSize;
$this->queryParameters["PageSize"] = $pageSize;
}
public function getOwnerAccount()
{
return $this->ownerAccount;
}
public function setOwnerAccount($ownerAccount)
{
$this->ownerAccount = $ownerAccount;
$this->queryParameters["OwnerAccount"] = $ownerAccount;
}
public function getFilter1Key()
{
return $this->filter1Key;
}
public function setFilter1Key($filter1Key)
{
$this->filter1Key = $filter1Key;
$this->queryParameters["Filter1Key"] = $filter1Key;
}
public function getFilter2Key()
{
return $this->filter2Key;
}
public function setFilter2Key($filter2Key)
{
$this->filter2Key = $filter2Key;
$this->queryParameters["Filter2Key"] = $filter2Key;
}
public function getFilter1Value()
{
return $this->filter1Value;
}
public function setFilter1Value($filter1Value)
{
$this->filter1Value = $filter1Value;
$this->queryParameters["Filter1Value"] = $filter1Value;
}
public function getFilter2Value()
{
return $this->filter2Value;
}
public function setFilter2Value($filter2Value)
{
$this->filter2Value = $filter2Value;
$this->queryParameters["Filter2Value"] = $filter2Value;
}
public function getLockReason()
{
return $this->lockReason;
}
public function setLockReason($lockReason)
{
$this->lockReason = $lockReason;
$this->queryParameters["LockReason"] = $lockReason;
}
} | mit |
redkite-labs/redkitecms-framework | framework/RedKiteCms/EventSystem/Event/Block/BlockAddingEvent.php | 824 | <?php
/**
* This file is part of the RedKite CMS Application and it is distributed
* under the GPL LICENSE Version 2.0. To use this application you must leave
* intact this copyright notice.
*
* Copyright (c) RedKite Labs <info@redkite-labs.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* For extra documentation and help please visit http://www.redkite-labs.com
*
* @license GPL LICENSE Version 2.0
*
*/
namespace RedKiteCms\EventSystem\Event\Block;
/**
* Class BlockAddingEvent is the object assigned to implement the event raised before adding a new block
*
* @author RedKite Labs <webmaster@redkite-labs.com>
* @package RedKiteCms\EventSystem\Event\Block
*/
class BlockAddingEvent extends BlockEventBase
{
} | mit |
cortesi/devd | httpctx/httpctx.go | 1239 | // Package httpctx provides a context-aware HTTP handler adaptor
package httpctx
import (
"net/http"
"strings"
"golang.org/x/net/context"
)
// Handler is a request handler with an added context
type Handler interface {
ServeHTTPContext(context.Context, http.ResponseWriter, *http.Request)
}
// A HandlerFunc is an adaptor to turn a function in to a Handler
type HandlerFunc func(context.Context, http.ResponseWriter, *http.Request)
// ServeHTTPContext calls the underlying handler function
func (h HandlerFunc) ServeHTTPContext(
ctx context.Context, rw http.ResponseWriter, req *http.Request,
) {
h(ctx, rw, req)
}
// Adapter turns a context.Handler to an http.Handler
type Adapter struct {
Ctx context.Context
Handler Handler
}
func (ca *Adapter) ServeHTTP(
rw http.ResponseWriter, req *http.Request,
) {
ca.Handler.ServeHTTPContext(ca.Ctx, rw, req)
}
// StripPrefix strips a prefix from the request URL
func StripPrefix(prefix string, h Handler) Handler {
if prefix == "" {
return h
}
return HandlerFunc(func(ctx context.Context, w http.ResponseWriter, r *http.Request) {
if p := strings.TrimPrefix(r.URL.Path, prefix); len(p) < len(r.URL.Path) {
r.URL.Path = p
h.ServeHTTPContext(ctx, w, r)
}
})
}
| mit |
bitzesty/trade-tariff-frontend | app/presenters/chemical_search_presenter.rb | 425 | class ChemicalSearchPresenter
attr_reader :search_form, :search_result, :with_errors
def initialize(search_form)
@with_errors = false
@search_form = search_form
@search_result = Chemical.search(search_form.to_params) if search_form.present?
rescue ApiEntity::NotFound
# noop - swallow a 404 here so that the UI can display a message to the user
rescue StandardError
@with_errors = true
end
end
| mit |
pablo-co/insight-android-base-library | app/src/main/java/edu/mit/lastmite/insight_library/util/AnimatorUtils.java | 7939 | package edu.mit.lastmite.insight_library.util;
import android.animation.Animator;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.animation.PropertyValuesHolder;
import android.animation.TimeInterpolator;
import android.view.View;
public final class AnimatorUtils {
public static final String ALPHA = "alpha";
public static final String ROTATION = "rotation";
public static final String ROTATION_X = "rotationX";
public static final String ROTATION_Y = "rotationY";
public static final String SCALE_X = "scaleX";
public static final String SCALE_Y = "scaleY";
public static final String TRANSLATION_X = "translationX";
public static final String TRANSLATION_Y = "translationY";
public static final String TRANSLATION_Z = "translationZ";
private AnimatorUtils() {
}
public static void reset(View target) {
target.setRotationX(0f);
target.setRotationY(0f);
target.setRotation(0f);
target.setScaleX(1f);
target.setScaleY(1f);
target.setAlpha(1f);
target.setTranslationX(0f);
target.setTranslationY(0f);
}
public static Animator together(Animator... animators) {
AnimatorSet anim = new AnimatorSet();
anim.playTogether(animators);
return anim;
}
public static Animator together(TimeInterpolator interpolator, Animator... animators) {
AnimatorSet anim = new AnimatorSet();
anim.setInterpolator(interpolator);
anim.playTogether(animators);
return anim;
}
public static Animator sequentially(Animator... animators) {
AnimatorSet anim = new AnimatorSet();
anim.playSequentially(animators);
return anim;
}
public static Animator sequentially(TimeInterpolator interpolator, Animator... animators) {
AnimatorSet anim = new AnimatorSet();
anim.setInterpolator(interpolator);
anim.playSequentially(animators);
return anim;
}
public static Animator fadeIn(View target) {
return alpha(target, 0f, 1f);
}
public static Animator fadeIn(View target, TimeInterpolator interpolator) {
Animator anim = fadeIn(target);
anim.setInterpolator(interpolator);
return anim;
}
public static Animator fadeOut(View target) {
return alpha(target, 1f, 0f);
}
public static Animator fadeOut(View target, TimeInterpolator interpolator) {
Animator anim = fadeOut(target);
anim.setInterpolator(interpolator);
return anim;
}
public static Animator scaleIn(View target) {
return scale(target, 0f, 1f);
}
public static Animator scaleIn(View target, TimeInterpolator interpolator) {
Animator anim = scaleIn(target);
anim.setInterpolator(interpolator);
return anim;
}
public static Animator scaleOut(View target) {
return scale(target, 1f, 0f);
}
public static Animator scaleOut(View target, TimeInterpolator interpolator) {
Animator anim = scaleOut(target);
anim.setInterpolator(interpolator);
return anim;
}
public static Animator alpha(View target, float... values) {
return ObjectAnimator.ofPropertyValuesHolder(target, ofAlpha(values));
}
public static Animator alpha(View target, TimeInterpolator interpolator, float... values) {
Animator anim = alpha(target, values);
anim.setInterpolator(interpolator);
return anim;
}
public static Animator rotation(View target, float... values) {
return ObjectAnimator.ofPropertyValuesHolder(target, ofRotation(values));
}
public static Animator rotation(View target, TimeInterpolator interpolator, float... values) {
Animator anim = rotation(target, values);
anim.setInterpolator(interpolator);
return anim;
}
public static Animator rotationX(View target, float... values) {
return ObjectAnimator.ofPropertyValuesHolder(target, ofRotationX(values));
}
public static Animator rotationX(View target, TimeInterpolator interpolator, float... values) {
Animator anim = rotationX(target, values);
anim.setInterpolator(interpolator);
return anim;
}
public static Animator rotationY(View target, float... values) {
return ObjectAnimator.ofPropertyValuesHolder(target, ofRotationY(values));
}
public static Animator rotationY(View target, TimeInterpolator interpolator, float... values) {
Animator anim = rotationY(target, values);
anim.setInterpolator(interpolator);
return anim;
}
public static Animator translationX(View target, float... values) {
return ObjectAnimator.ofPropertyValuesHolder(target, ofTranslationX(values));
}
public static Animator translationX(View target, TimeInterpolator interpolator, float... values) {
Animator anim = translationX(target, values);
anim.setInterpolator(interpolator);
return anim;
}
public static Animator translationY(View target, float... values) {
return ObjectAnimator.ofPropertyValuesHolder(target, ofTranslationY(values));
}
public static Animator translationY(View target, TimeInterpolator interpolator, float... values) {
Animator anim = translationY(target, values);
anim.setInterpolator(interpolator);
return anim;
}
public static Animator translationZ(View target, float... values) {
return ObjectAnimator.ofPropertyValuesHolder(target, ofTranslationZ(values));
}
public static Animator translationZ(View target, TimeInterpolator interpolator, float... values) {
Animator anim = translationZ(target, values);
anim.setInterpolator(interpolator);
return anim;
}
public static Animator scale(View target, float... values) {
return ObjectAnimator.ofPropertyValuesHolder(target, ofScaleX(values), ofScaleY(values));
}
public static Animator scale(View target, TimeInterpolator interpolator, float... values) {
Animator anim = scale(target, values);
anim.setInterpolator(interpolator);
return anim;
}
public static Animator of(View target, PropertyValuesHolder... values) {
return ObjectAnimator.ofPropertyValuesHolder(target, values);
}
public static Animator of(View target, TimeInterpolator interpolator,
PropertyValuesHolder... values) {
Animator anim = of(target, values);
anim.setInterpolator(interpolator);
return anim;
}
public static PropertyValuesHolder ofAlpha(float... values) {
return PropertyValuesHolder.ofFloat(ALPHA, values);
}
public static PropertyValuesHolder ofRotation(float... values) {
return PropertyValuesHolder.ofFloat(ROTATION, values);
}
public static PropertyValuesHolder ofRotationX(float... values) {
return PropertyValuesHolder.ofFloat(ROTATION_X, values);
}
public static PropertyValuesHolder ofRotationY(float... values) {
return PropertyValuesHolder.ofFloat(ROTATION_Y, values);
}
public static PropertyValuesHolder ofTranslationX(float... values) {
return PropertyValuesHolder.ofFloat(TRANSLATION_X, values);
}
public static PropertyValuesHolder ofTranslationY(float... values) {
return PropertyValuesHolder.ofFloat(TRANSLATION_Y, values);
}
public static PropertyValuesHolder ofTranslationZ(float... values) {
return PropertyValuesHolder.ofFloat(TRANSLATION_Z, values);
}
public static PropertyValuesHolder ofScaleX(float... values) {
return PropertyValuesHolder.ofFloat(SCALE_X, values);
}
public static PropertyValuesHolder ofScaleY(float... values) {
return PropertyValuesHolder.ofFloat(SCALE_Y, values);
}
} | mit |
markstiles/SitecoreCognitiveServices | src/Feature/ImageSearch/code/Search/ComputedFields/Image/Emotions/Surprise.cs | 457 | using System.Linq;
using Sitecore.Data.Items;
namespace SitecoreCognitiveServices.Feature.ImageSearch.Search.ComputedFields.Image.Emotions
{
public class Surprise : BaseComputedField
{
protected override object GetFieldValue(Item cognitiveIndexable)
{
return (Faces != null && Faces.Length > 0)
? (object)Faces?.Average(x => x.FaceAttributes.Emotion.Surprise)
: null;
}
}
} | mit |
jzavarella/steam-market-image-fetcher | test.js | 350 | const MarketImage = require('./index');
const app = require('express')();
app.get('/', (req, res) => {
MarketImage.getItemImage(730, 'Spectrum Case Key', (response, err) => {
if (!err) {
res.send(response);
} else {
res.send(err);
}
});
});
app.listen(8080, () => {
console.log('Listening on prot 8080');
});
| mit |
MMTDigital/PaypalExpressCheckout | tests/PaypalExpressCheckout/Request/CreateRecurringPaymentsProfileTest.php | 341 | <?php
use PaypalExpressCheckout\Request\CreateRecurringPaymentsProfile;
class CreateRecurringPaymentsProfileTest extends PHPUnit_Framework_TestCase
{
protected $_object = null;
public function setUp()
{
}
public function testConstructor()
{
$this->_object = new CreateRecurringPaymentsProfile();
}
}
| mit |
kerzyte/OWLib | STULib/Types/Dump/STU_CD247B93.cs | 188 | // File auto generated by STUHashTool
using static STULib.Types.Generic.Common;
namespace STULib.Types.Dump {
[STU(0xCD247B93)]
public class STU_CD247B93 : STU_16EF9936 {
}
}
| mit |
marviobezerra/XCommon | src/XCommon/Patterns/Ioc/RepositoryType.cs | 479 | using System;
namespace XCommon.Patterns.Ioc
{
internal class RepositoryType
{
internal Func<object> Resolver { get; set; }
internal bool UseActicator { get; set; }
internal bool UseResolver { get; set; }
internal Type ConcretType { get; set; }
internal object Instance { get; set; }
internal object[] ConstructorParams { get; set; }
internal int CountNewInstance { get; set; }
internal int CountCacheInstance { get; set; }
}
}
| mit |
uber/eight-track | test/deep-normalize_test.js | 1014 | var expect = require('chai').expect;
var httpUtils = require('./utils/http');
var serverUtils = require('./utils/server');
// DEV: This is a regression test for https://github.com/uber/eight-track/issues/21
describe('A server being proxied by `eight-track` with a noramlizeFn that modifies a deep property', function () {
serverUtils.run(1337, function (req, res) {
res.send(req.headers);
});
serverUtils.runEightServer(1338, {
fixtureDir: __dirname + '/actual-files/deep-normalize',
url: 'http://localhost:1337',
normalizeFn: function (info) {
info.headers.hai = true;
return info;
}
});
describe('when requested', function () {
httpUtils.save({
url: 'http://localhost:1338/',
followRedirect: false
});
it('the server does not receive the deep modification', function () {
expect(this.err).to.equal(null);
expect(this.res.statusCode).to.equal(200);
expect(JSON.parse(this.body)).to.not.have.property('hai');
});
});
});
| mit |
LosPecesDelInfierno/jrpg-2017a-dominio | src/main/java/dominio/Orco.java | 3229 | package dominio;
/**
*
* Clase que define un Personaje del tipo "Orco", por lo tanto extiende a la
* clase abstracta Personaje. (NO tiene variables miebro propias)
*
*/
public class Orco extends Personaje {
private static final int ENERGIANECESARIA = 10;
/**
* <h3>Constructor de Orco</h3>
*
* @param nombre
* del personaje
* @param casta
* del personaje
* @param id
* del personaje
*/
public Orco(final String nombre, final Casta casta, final int id) {
super(nombre, casta, id);
habilidadesRaza = new String[2];
habilidadesRaza[0] = "Golpe defensa";
habilidadesRaza[1] = "Mordisco de Vida";
setearAtributosRaza(0, 10, "Orco");
}
/**
* <h3>Constructor de Orco</h3>
*
* @param nombre
* del personaje
* @param salud
* del personaje
* @param energia
* del personaje
* @param fuerza
* del personaje
* @param destreza
* del personaje
* @param inteligencia
* del personaje
* @param casta
* del personaje
* @param experiencia
* del personaje
* @param nivel
* del personaje
* @param idPersonaje
* del personaje
*/
public Orco(final String nombre, final int salud, final int energia, final int fuerza, final int destreza,
final int inteligencia, final Casta casta, final int experiencia, final int nivel, final int idPersonaje) {
super(nombre, salud, energia, fuerza, destreza, inteligencia, casta, experiencia, nivel, idPersonaje);
nombreRaza = "Orco";
habilidadesRaza = new String[2];
habilidadesRaza[0] = "Golpe Defensa";
habilidadesRaza[1] = "Mordisco de Vida";
}
// Golpe Defensa
/**
* <h3><u>Golpe Defensa</u></h3> Intenta un golpe usando el valor de su
* defensa (provoca un daño de hasta un max igual al doble del valor de la
* defensa del Orco).
* <p>
* En caso de poder realizarse se reduce la energia en 10 y se devuelve
* true.<br>
* Caso contrario devuelve false y no se pierde energia.
*
* @param atacado
* Peleable a ser atacado por el Orco.
* @return true en caso de realizarse el ataque, false en caso contrario.
*/
public boolean habilidadRaza1(final Peleable atacado) {
if (this.getEnergia() > ENERGIANECESARIA) {
this.serDesenergizado(ENERGIANECESARIA);
if (atacado.serAtacado(this.getDefensa() * 2) > 0) {
return true;
}
}
return false;
}
// Mordisco de Vida
/**
* <h3><u>Mordisco de Vida</u></h3> Siempre que la energia del Orco lo
* permita.<br>
* Si luego de un ataque de un Orco a un objeto Peleable, el daño causado es
* mayor que cero; dicho objeto recupera vida por el mismo valor de daño que
* hubiese causado el Orco.
*
* @param atacado
* Peleable mordido por el Orco.
* @return true en caso de realizarse la mordida, false en caso contrario.
*/
public boolean habilidadRaza2(final Peleable atacado) {
if (this.getEnergia() > ENERGIANECESARIA) {
this.serDesenergizado(ENERGIANECESARIA);
int danioCausado = atacado.serAtacado(this.getFuerza());
if (danioCausado > 0) {
atacado.serCurado(danioCausado);
return true;
}
}
return false;
}
}
| mit |
Zywave/SMLogging | SMLogging.Lab/ILabService.cs | 557 | using System.Collections.Generic;
using System.ServiceModel;
using System.Threading.Tasks;
namespace SMLogging.Lab
{
[ServiceContract]
public interface ILabService
{
[OperationContract]
string GetData(int value);
[OperationContract]
IEnumerable<string> GetDatas(IEnumerable<int> values);
[OperationContract]
Task<string> GetData2(int value);
[OperationContract(IsOneWay = true)]
void DoSomething(int value);
[OperationContract]
void Fail();
}
}
| mit |
atealxt/work-workspaces | PDMS/src/java/pdms/components/dao/impl/MissionDaoImpl.java | 7393 | package pdms.components.dao.impl;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.hibernate.Query;
import org.hibernate.Session;
import pdms.components.dao.MissionDao;
import pdms.components.dao.ProjectDao;
import pdms.components.dao.UserDao;
import pdms.components.pojo.Mission;
import pdms.components.pojo.MissionSubmit;
import pdms.components.pojo.Project;
import pdms.components.pojo.User;
import pdms.platform.configeration.DIManager;
import pdms.platform.configeration.DaoManager;
import pdms.platform.core.EasyDao;
/**
*
* @author LUSuo(atealxt@gmail.com)
*/
public class MissionDaoImpl extends EasyDao implements MissionDao {
private ProjectDao projectDao;
private UserDao userDao;
@Override
public List<Mission> findByUserLoginId(String loginId) {
return findByUserLoginId(loginId, -1, 0);
}
@Override
public List<Mission> findByUserLoginId(String loginId, int maxNum, int startNum) {
return findByUserLoginIdAndCond(loginId, maxNum, startNum, null);
}
@Override
public List<Mission> findByUserLoginIdAndCond(String loginId, int maxNum, int startNum, String conditions) {
if (userDao == null) {
userDao = (UserDao) DIManager.getBean("UserDao");
}
User user = userDao.findByLoginId(loginId);
if (user == null) {
return new ArrayList<Mission>(0);
}
StringBuffer sb = new StringBuffer();
sb.append("from Mission where receiver=:receiver ");
if (conditions != null) {
sb.append("and content like '%");
sb.append(conditions);
sb.append("%' ");
}
sb.append("order by inspectStatus asc,");//审核状态
sb.append("completeStatus asc,");//完成状态
sb.append("distributionConfirm asc,");//受取状态
sb.append("completetimeLimit asc,");//完成日限
sb.append("confirmtimeLimit asc,");//确认截至时间
sb.append("createtime desc,");//任务建立时间
sb.append("id asc");//id
Session sess = DaoManager.getSession();
sess.beginTransaction();
Query query = sess.createQuery(sb.toString());
query.setParameter("receiver", user);
if (maxNum != -1) {
query.setMaxResults(maxNum);
}
query.setFirstResult(startNum);
List<Mission> missions = query.list();
return missions;
}
@Override
public List<Mission> findByProjectId(int prjId, int maxCnt) {
return findByProjectId(prjId, maxCnt, 0);
}
@Override
public List<Mission> findByProjectId(int prjId, int maxNum, int startNum) {
return findByPIdAndCond(prjId, maxNum, startNum, null);
}
@Override
public List<Mission> findByPIdAndCond(int prjId, int maxNum, int startNum, String conditions) {
if (projectDao == null) {
projectDao = (ProjectDao) DIManager.getBean("ProjectDao");
}
Project prj = projectDao.findById(prjId);
StringBuffer sb = new StringBuffer();
sb.append("from Mission where project=:project ");
if (conditions != null) {
sb.append("and content like '%");
sb.append(conditions);
sb.append("%' ");
}
sb.append("order by inspectStatus asc,");//审核状态
sb.append("completeStatus asc,");//完成状态
sb.append("distributionConfirm asc,");//受取状态
sb.append("completetimeLimit asc,");//完成日限
sb.append("confirmtimeLimit asc,");//确认截至时间
sb.append("createtime desc,");//任务建立时间
sb.append("id asc");//id
Session sess = DaoManager.getSession();
sess.beginTransaction();
Query query = sess.createQuery(sb.toString());
query.setParameter("project", prj);
query.setFirstResult(startNum);
if (maxNum != -1) {
query.setMaxResults(maxNum);
}
return query.list();
}
@Override
public List<Mission> find4ChartByProjectId(int prjId, int maxNum, int startNum) {
if (projectDao == null) {
projectDao = (ProjectDao) DIManager.getBean("ProjectDao");
}
Project prj = projectDao.findById(prjId);
Session sess = DaoManager.getSession();
sess.beginTransaction();
Query query = sess.createQuery("from Mission where project=:project and completeStatus=true order by id asc");
query.setParameter("project", prj);
query.setFirstResult(startNum);
if (maxNum != -1) {
query.setMaxResults(maxNum);
}
return query.list();
}
@Override
public Mission findById(int id) {
Session sess = DaoManager.getSession();
sess.beginTransaction();
Query query = sess.createQuery("from Mission where id=:id order by id");
query.setParameter("id", id);
return (Mission) query.uniqueResult();
}
@Override
public Mission findBySubmitFileId(String fileId) {
Session sess = DaoManager.getSession();
sess.beginTransaction();
Query query = sess.createQuery("from Mission where submitInfo in (from MissionSubmit where uploadFile = (from UploadFile where id= :id))");
query.setParameter("id", fileId);
return (Mission) query.uniqueResult();
}
@Override
public int Update(Mission obj) {
return super.Update(obj);
}
@Override
public int Insert(MissionSubmit obj) {
return super.Insert(obj);
}
@Override
public int Insert(Mission obj) {
return super.Insert(obj);
}
@Override
public int Delete(Mission obj) {
return super.Delete(obj);
}
@Override
public int Count4Chart(int projectId) {
if (projectDao == null) {
projectDao = (ProjectDao) DIManager.getBean("ProjectDao");
}
Project prj = projectDao.findById(projectId);
Session sess = DaoManager.getSession();
sess.beginTransaction();
Query query = sess.createQuery("select count(*) from Mission where project=:project and completeStatus=true order by id ");
query.setParameter("project", prj);
Long l = (Long) query.iterate().next();
return l.intValue();
}
@Override
public int CountByTime4Chart(Date start, Date end) {
Session sess = DaoManager.getSession();
sess.beginTransaction();
String sql = "select count(*) from Mission as m where m.completeStatus=true and m.submitInfo.submitDate>=:start and m.submitInfo.submitDate<:end order by id";
Query query = sess.createQuery(sql);
query.setParameter("start", start);
query.setParameter("end", end);
Long l = (Long) query.iterate().next();
return l.intValue();
}
@Override
public int CountAllByTime4Chart(Date start, Date end) {
Session sess = DaoManager.getSession();
sess.beginTransaction();
String sql = "select count(*) from Mission as m where (m.createtime>=:start or m.completeStatus=false) and m.createtime<:end order by id";
Query query = sess.createQuery(sql);
query.setParameter("start", start);
query.setParameter("end", end);
Long l = (Long) query.iterate().next();
return l.intValue();
}
}
| mit |
VelislavLeonov/Telerik-Akademy | HomeworkLoops/03.MinMaxSumAndAverageOfNNumbers/MinMaxSumAndAverageOfNNumbers.cs | 1503 | using System;
using System.Globalization;
using System.Threading;
/*Problem 3. Min, Max, Sum and Average of N Numbers
Write a program that reads from the console a sequence of n integer numbers and returns the minimal,
the maximal number, the sum and the average of all numbers (displayed with 2 digits after the decimal point).
The input starts by the number n (alone in a line) followed by n lines, each holding an integer number.
The output is like in the examples below.*/
namespace MinMaxSumAndAverageOfNNumbers
{
class MinMaxSumAndAverageOfNNumbers
{
static void Main(string[] args)
{
Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
Console.WriteLine("Please enter n");
int n = int.Parse(Console.ReadLine());
int min = 0;
int max = 0;
double sum = 0;
for (int i = 1; i <= n; i++)
{
int number = int.Parse(Console.ReadLine());
if (i == 1)
{
max = number;
min = number;
}
if (number > max)
{
max = number;
}
if (number < min)
{
min = number;
}
sum = sum + number;
}
Console.WriteLine("Min = {0}\nMax = {1}\nSum = {2}\nAvg = {3:0.00}",min,max,sum,sum/n);
}
}
}
| mit |
Fineighbor/ui-kit | src/Input/__tests__/Input.web.js | 1813 | /* eslint-env jest */
import 'jest-styled-components'
import React from 'react'
import { shallow } from 'enzyme'
import Input from '../index.js'
describe('Input.web', () => {
it('renders a snapshot', () => {
const wrapper = shallow(
<Input />
)
expect(wrapper).toMatchSnapshot()
})
it('renders a snapshot with `placeholder:Placeholder`', () => {
const wrapper = shallow(
<Input placeholder='Placeholder' />
)
expect(wrapper).toMatchSnapshot()
})
it('renders a snapshot with `type:password`', () => {
const wrapper = shallow(
<Input type='password' />
)
expect(wrapper).toMatchSnapshot()
})
it('renders a snapshot with `readOnly`', () => {
const wrapper = shallow(
<Input readOnly />
)
expect(wrapper).toMatchSnapshot()
})
it('renders a snapshot with `onChange`', () => {
const wrapper = shallow(
<Input onChange={() => {}} />
)
expect(wrapper).toMatchSnapshot()
})
it('renders a snapshot with `onChangeText`', () => {
const wrapper = shallow(
<Input onChangeText={() => {}} />
)
expect(wrapper).toMatchSnapshot()
})
it('triggers onChange without passing functions', () => {
const wrapper = shallow(
<Input />
)
const result = wrapper.props().onChange()
expect(result).toMatchSnapshot()
})
it('triggers onChange', () => {
const wrapper = shallow(
<Input onChange={() => 'onChanged'} />
)
const result = wrapper.props().onChange()
expect(result).toMatchSnapshot()
})
it('triggers onChangeText', () => {
const wrapper = shallow(
<Input onChangeText={() => 'onChangedText'} />
)
const result = wrapper.props().onChange({ target: { value: 'onChangedText' } })
expect(result).toMatchSnapshot()
})
})
| mit |
Pajn/prettier | tests/typescript/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithCallSignaturesWithOptionalParameters.ts | 2030 | // call signatures in derived types must have the same or fewer optional parameters as the base type
interface Base {
a: () => number;
a2: (x?: number) => number;
a3: (x: number) => number;
a4: (x: number, y?: number) => number;
a5: (x?: number, y?: number) => number;
}
interface I1 extends Base {
a: () => number; // ok, same number of required params
}
interface I2 extends Base {
a: (x?: number) => number; // ok, same number of required params
}
interface I3 extends Base {
a: (x: number) => number; // error, too many required params
}
interface I4 extends Base {
a2: () => number; // ok, same number of required params
}
interface I5 extends Base {
a2: (x?: number) => number; // ok, same number of required params
}
interface I6 extends Base {
a2: (x: number) => number; // ok, same number of params
}
interface I7 extends Base {
a3: () => number; // ok, fewer required params
}
interface I8 extends Base {
a3: (x?: number) => number; // ok, fewer required params
}
interface I9 extends Base {
a3: (x: number) => number; // ok, same number of required params
}
interface I10 extends Base {
a3: (x: number, y: number) => number; // error, too many required params
}
interface I11 extends Base {
a4: () => number; // ok, fewer required params
}
interface I12 extends Base {
a4: (x?: number, y?: number) => number; // ok, fewer required params
}
interface I13 extends Base {
a4: (x: number) => number; // ok, same number of required params
}
interface I14 extends Base {
a4: (x: number, y: number) => number; // ok, same number of params
}
interface I15 extends Base {
a5: () => number; // ok, fewer required params
}
interface I16 extends Base {
a5: (x?: number, y?: number) => number; // ok, fewer required params
}
interface I17 extends Base {
a5: (x: number) => number; // ok, all present params match
}
interface I18 extends Base {
a5: (x: number, y: number) => number; // ok, same number of params
}
| mit |
jameshadfield/phandango | js/actions/notifications.js | 2092 | // import React from 'react';
// import { HelpPanel } from '../components/helpPanel';
export function notificationNew(title, msg = '') {
return ({ type: 'notificationNew', title, msg, dialog: !!msg });
}
export function notificationSeen() {
return ({ type: 'notificationSeen' });
}
// export function showHelp() {
// return notificationNew("here's an overview to get you started...", <HelpPanel />);
// }
export function checkLoadedDataIsComplete() {
return function (dispatch, getState) {
const { annotation, metadata, blocks, phylogeny, gwasGraph } = getState();
const d = { type: 'notificationNew', dialog: true };
const notLoaded = 'not loaded';
const loaded = {
annotation: annotation.fileName !== notLoaded,
phylogeny: phylogeny.fileName !== notLoaded,
metadata: metadata.fileName !== notLoaded,
blocks: blocks.blocks.length !== 0,
gwas: gwasGraph.values.length !== 0,
};
// console.log("LOADED STATUS", "annotation", loaded.annotation, "tree", loaded.phylogeny, "meta", loaded.metadata, "blocks", loaded.blocks, "gwas", loaded.gwas)
if (!loaded.phylogeny) {
if (loaded.blocks) {
dispatch({ ...d, title: 'HEADS UP', msg: 'Blocks provided without a tree, so this data cannot be displayed!' });
} else if (loaded.metadata) {
dispatch({ ...d, title: 'HEADS UP', msg: 'Metadata provided without a tree, so this data cannot be displayed!' });
} else if (loaded.annotation && !loaded.gwas) {
dispatch({ ...d, title: 'HEADS UP', msg: 'An annotation is being displayed but without corresponding recombination / pan genome / GWAS / tree data.' });
}
} else if (loaded.phylogeny && !loaded.metadata && !loaded.blocks) {
dispatch({ ...d, title: 'HEADS UP', msg: 'A phylogeny has been loaded, but without recombination / pan genome / metadata files.' });
} else if ((loaded.blocks || loaded.gwas) && !loaded.annotation) {
dispatch({ ...d, title: 'HEADS UP', msg: 'Recombination / pan-genome / GWAS has been loaded without an annotation file!' });
}
};
}
| mit |
m-enochroot/websync | server/api/thing/index.spec.js | 2162 | 'use strict';
var proxyquire = require('proxyquire').noPreserveCache();
var thingCtrlStub = {
index: 'thingCtrl.index',
show: 'thingCtrl.show',
create: 'thingCtrl.create',
update: 'thingCtrl.update',
destroy: 'thingCtrl.destroy'
};
var routerStub = {
get: sinon.spy(),
put: sinon.spy(),
patch: sinon.spy(),
post: sinon.spy(),
delete: sinon.spy()
};
// require the index with our stubbed out modules
var thingIndex = proxyquire('./index.js', {
'express': {
Router: function() {
return routerStub;
}
},
'./thing.controller': thingCtrlStub
});
describe('Thing API Router:', function() {
it('should return an express router instance', function() {
expect(thingIndex).to.equal(routerStub);
});
/*
describe('GET /api/things', function() {
it('should route to thing.controller.index', function() {
expect(routerStub.get
.withArgs('/', 'thingCtrl.index')
).to.have.been.calledOnce;
});
});
*/
describe('GET /api/things/:id', function() {
it('should route to thing.controller.show', function() {
expect(routerStub.get
.withArgs('/:id', 'thingCtrl.show')
).to.have.been.calledOnce;
});
});
describe('POST /api/things', function() {
it('should route to thing.controller.create', function() {
expect(routerStub.post
.withArgs('/', 'thingCtrl.create')
).to.have.been.calledOnce;
});
});
describe('PUT /api/things/:id', function() {
it('should route to thing.controller.update', function() {
expect(routerStub.put
.withArgs('/:id', 'thingCtrl.update')
).to.have.been.calledOnce;
});
});
describe('PATCH /api/things/:id', function() {
it('should route to thing.controller.update', function() {
expect(routerStub.patch
.withArgs('/:id', 'thingCtrl.update')
).to.have.been.calledOnce;
});
});
describe('DELETE /api/things/:id', function() {
it('should route to thing.controller.destroy', function() {
expect(routerStub.delete
.withArgs('/:id', 'thingCtrl.destroy')
).to.have.been.calledOnce;
});
});
});
| mit |
nbschool/ecommerce_web | src/components/DropDownItem/index.js | 72 | import DropDownItem from './DropDownItem';
export default DropDownItem;
| mit |
affka/yiiGateways | protected/lib/yii-ext/gateways/models/Request.php | 332 | <?php
namespace gateways\models;
/**
* @property string $url
* @property integer $method
* @property integer $params
*/
class Request extends \CFormModel {
CONST REQUEST_METHOD_GET = 'get';
CONST REQUEST_METHOD_POST = 'post';
public $url;
public $method = self::REQUEST_METHOD_GET;
public $params = array();
} | mit |
Spoyke/rolling-scopes-js-assignments | task/03-date-tasks.js | 3753 | 'use strict';
/********************************************************************************************
* *
* Plese read the following tutorial before implementing tasks: *
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Numbers_and_dates#Date_object
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date *
* *
********************************************************************************************/
/**
* Parses a rfc2822 string date representation into date value
* For rfc2822 date specification refer to : http://tools.ietf.org/html/rfc2822#page-14
*
* @param {string} value
* @return {date}
*
* @example:
* 'December 17, 1995 03:24:00' => Date()
* 'Tue, 26 Jan 2016 13:48:02 GMT' => Date()
* 'Sun, 17 May 1998 03:00:00 GMT+01' => Date()
*/
function parseDataFromRfc2822(value) {
return Date.parse(value);
// return new Date(value);
}
/**
* Parses an ISO 8601 string date representation into date value
* For ISO 8601 date specification refer to : https://en.wikipedia.org/wiki/ISO_8601
*
* @param {string} value
* @return {date}
*
* @example :
* '2016-01-19T16:07:37+00:00' => Date()
* '2016-01-19T08:07:37Z' => Date()
*/
function parseDataFromIso8601(value) {
return Date.parse(value);
// return new Date(value);
}
/**
* Returns true if specified date is leap year and false otherwise
* Please find algorithm here: https://en.wikipedia.org/wiki/Leap_year#Algorithm
*
* @param {date} date
* @return {bool}
*
* @example :
* Date(1900,1,1) => false
* Date(2000,1,1) => true
* Date(2001,1,1) => false
* Date(2012,1,1) => true
* Date(2015,1,1) => false
*/
function isLeapYear(date) {
let year = date.getFullYear();
return year % 4 === 0
&& year % 100 !== 0
|| year % 400 === 0;
}
/**
* Returns the string represention of the timespan between two dates.
* The format of output string is "HH:mm:ss.sss"
*
* @param {date} startDate
* @param {date} endDate
* @return {string}
*
* @example:
* Date(2000,1,1,10,0,0), Date(2000,1,1,11,0,0) => "01:00:00.000"
* Date(2000,1,1,10,0,0), Date(2000,1,1,10,30,0) => "00:30:00.000"
* Date(2000,1,1,10,0,0), Date(2000,1,1,10,0,20) => "00:00:20.000"
* Date(2000,1,1,10,0,0), Date(2000,1,1,10,0,0,250) => "00:00:00.250"
* Date(2000,1,1,10,0,0), Date(2000,1,1,15,20,10,453) => "05:20:10.453"
*/
function timeSpanToString(startDate, endDate) {
return new Date(endDate - startDate).toISOString().slice(11,23);
}
/**
* Returns the angle (in radians) between the hands of an analog clock for the specified Greenwich time.
* If you have problem with solution please read: https://en.wikipedia.org/wiki/Clock_angle_problem
*
* @param {date} date
* @return {number}
*
* @example:
* Date.UTC(2016,2,5, 0, 0) => 0
* Date.UTC(2016,3,5, 3, 0) => Math.PI/2
* Date.UTC(2016,3,5,18, 0) => Math.PI
* Date.UTC(2016,3,5,21, 0) => Math.PI/2
*/
function angleBetweenClockHands(date) {
let hrs = date.getUTCHours() % 12;
let mins = date.getUTCMinutes();
let angle = Math.abs(0.5 * (60 * hrs - 11 * mins));
if (angle > 180) angle = 360 - angle;
return angle * (Math.PI / 180);
}
module.exports = {
parseDataFromRfc2822: parseDataFromRfc2822,
parseDataFromIso8601: parseDataFromIso8601,
isLeapYear: isLeapYear,
timeSpanToString: timeSpanToString,
angleBetweenClockHands: angleBetweenClockHands
};
| mit |
obsidian-btc/event-store-client-http | test/bench/serialize_event_data.rb | 381 | require_relative 'bench_init'
context "Event Data Serialization" do
test "Converts to raw data" do
control_json_data = EventStore::Client::HTTP::Controls::EventData::Write.data
write_event_data = EventStore::Client::HTTP::Controls::EventData::Write.example
json_data = Serialize::Write.raw_data write_event_data
assert json_data == control_json_data
end
end
| mit |
calccrypto/Encryptions | modes/CFB.cpp | 921 | #include "CFB.h"
CFB::CFB(SymAlg * instance, const std::string & iv)
: algo(instance)
{
blocksize = algo -> blocksize() >> 3;
const_IV = iv;
if (const_IV == ""){
const_IV = std::string(blocksize, 0);
}
}
std::string CFB::encrypt(const std::string & data){
const std::string temp = pkcs5(data, blocksize);
std::string out = "";
std::string IV = const_IV;
for(std::string::size_type x = 0; x < temp.size(); x += blocksize){
IV = xor_strings(algo -> encrypt(IV), temp.substr(x, blocksize));
out += IV;
}
return out;
}
std::string CFB::decrypt(const std::string & data){
std::string out = "";
std::string IV = const_IV;
for(std::string::size_type x = 0; x < data.size(); x += blocksize){
out += xor_strings(algo -> encrypt(IV), data.substr(x, blocksize));
IV = data.substr(x, blocksize);
}
return remove_pkcs5(out);
}
| mit |
gabrieltanchen/xpns-api | app/controllers/vendor-ctrl/index.js | 816 | const createVendor = require('./create-vendor');
const deleteVendor = require('./delete-vendor');
const updateVendor = require('./update-vendor');
class VendorCtrl {
constructor(parent, models) {
this.parent = parent;
this.models = models;
}
async createVendor({
auditApiCallUuid,
name,
}) {
return createVendor({
auditApiCallUuid,
name,
vendorCtrl: this,
});
}
async deleteVendor({
auditApiCallUuid,
vendorUuid,
}) {
return deleteVendor({
auditApiCallUuid,
vendorCtrl: this,
vendorUuid,
});
}
async updateVendor({
auditApiCallUuid,
name,
vendorUuid,
}) {
return updateVendor({
auditApiCallUuid,
name,
vendorCtrl: this,
vendorUuid,
});
}
}
module.exports = VendorCtrl;
| mit |
aggiedefenders/aggiedefenders.github.io | src/pages/Landing/Head.js | 8177 | import React, { Component } from 'react';
import {
Spinner,
Menu,
MenuItem,
MenuDivider,
Popover,
Position
} from "@blueprintjs/core";
import image from "../../assets/img/network.gif";
import Background from "../../assets/img/bg_b.jpg";
import { Button } from 'reactstrap';
import data from '../../assets/img/data.png';
const backgroundImage = {
backgroundImage: (data),
flex: 1,
width: null,
height: null
}
//#2980b9
const containerStyle = {
backgroundColor: '#2c3e50',
height: 'auto',
borderTopLeftRadius: '5px',
borderTopRightRadius: '5px'
}
const titleStyle = {
margin: '0.5em',
justifyContent: 'center',
textAlign: 'center',
listStyle: 'none',
color: 'white'
}
const imageStyle = {
width: '350px',
}
const fontStyle1 = {
color: '#ecf0f1'
}
class Head extends Component {
constructor(props) {
super(props)
this.state = {
}
}
render() {
return (
<div style={backgroundImage} className="pt-container">
<div style={containerStyle} className="pt-getting-started">
<div className="row">
<div className="col-md-4 col-sm-4"></div>
<div className="col-md-4 col-sm-4">
<h1 style={titleStyle}>AggieDefenders</h1>
</div>
<div className="col-md-4 col-sm-4"></div>
</div>
<div className="row">
<div className="col-md-4 col-sm-3"></div>
<div className="col-md-4 col-sm-6">
<img style={imageStyle} src={image} data-src="" data-src-retina="" alt="image" className="img-responsive" />
</div>
<div className="col-md-4 col-sm-3"></div>
</div>
<div className="row">
<div className="col-md-2 col-sm-3"></div>
<div className="col-md-8">
<h3 style={{ textAlign: 'center', justifyContent: 'center', backgroundColor: '#7f8c8d', opacity: 0.9, color: 'white' }}>Learn how to protect your Internet of Things (IOT) devices</h3>
</div>
<div className="col-md-2"></div>
</div>
<div className="row">
<div className="col-md-2 col-sm-3"></div>
<div className="col-md-8">
<h4 style={{ textAlign: 'center', justifyContent: 'center', opacity: 0.9, color: '#16a085' }}>
Get awareness of security exploits and reduce your risks</h4>
</div>
<div className="col-md-2"></div>
</div>
<div className="row">
<div className='col-md-3'></div>
<div className='col-md-6'>
<div style={{textAlign: 'center',justifyContent:'center'}}>
{/*{
this.props.authenticated
? (
<Button href="#/login" outline color="primary">LOGIN</Button>
)
: (
<Button href="#/logout" color="danger">LOGOUT</Button>
)
}*/}
</div>
</div>
<div className='col-md-3'></div>
</div>
<div className="row">
<div className='col-md-3'></div>
<div className='col-md-6 data' style={{ color: '#3498db', textAlign:'center' }}><p>Keep your Data Secured{<br />}
<img src={data} style={{ justifyContent: 'center', width: '50px', heigt: '50px' }} />
</p></div>
<div className='col-md-3'>
</div>
</div>
{/*<div className="row">
<div className="col-md-4 col-sm-6">
<img style ={imageStyle} src={image} data-src="" data-src-retina="" alt="image" className="img-responsive" />
</div>
<div className="col-md-4 col-sm-3"></div>
</div>*/}
{/*<div className="row">
<div className="container">
<div className="col-md-4"></div>
<div className="col-md-4">
<div className="col-md-4"></div>
</div>
</div>*/}
{/*<div className="container">
<div className="row">
<div className="col-md-3"></div>
<div className="col-md-6 col-centered"
style={{
textAlign: 'center',
justifyContent: 'center'
}}>
<hr style={{ backgroundColor: '#7f8c8d', opacity: 0.9, color: 'white' }} className="my-2" />
<div className="row" style={{ color: '#f39c12' }}>
<h3>Learn how to protect your Internet of Things (IOT) devices</h3>
</div>
<div className="row" style={{ color: '#16a085' }}>
<h4>Get awareness of security exploits and reduce your risks</h4>
</div>
<div className="row">
<div className='col-md-3'></div>
<div className='col-md-6'>
{
this.props.authenticated
? (
<Button href="#/login" outline color="primary">LOGIN</Button>
)
: (
<Button href="#/logout" color="danger">LOGOUT</Button>
)
}
</div>
<div className='col-md-3'></div>
</div>
<div className="row">
<div className='col-md-3'></div>
<div className='col-md-6 data' style={{ color: '#3498db' }}><p>Keep your Data Secured{<br />}
<img src={data} style={{ justifyContent: 'center', width: '50px', heigt: '50px' }} />
</p></div>
<div className='col-md-3'>
</div>
</div>
</div>
<div className="col-md-3"></div>
</div>
</div>*/}
</div>
</div>
);
}
}
export default Head;
| mit |
geomoose/gm3 | src/gm3/reducers/print.js | 2164 | /*
* The MIT License (MIT)
*
* Copyright (c) 2016-2017 Dan "Ducky" Little
*
* 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.
*/
import { PRINT } from '../actionTypes';
const default_state = {
state: 'printed',
// populated with a png or jpeg base64 string,
printData: '',
request: null,
};
/* Example Request Structure:
*
* { size: [600, 400], center: [0,0], resolution: 1000 }
*
*/
export default function printReducer(state = default_state, action) {
switch(action.type) {
// requests come in specifying the size, center, and resolution.
case PRINT.REQUEST:
return Object.assign({}, state, {
state: 'printing',
request: action.request
});
case PRINT.IMAGE:
return Object.assign({}, state, {
state: 'printing',
printData: action.data
});
case PRINT.FINISHED:
return Object.assign({}, state, {
state: 'printed',
data: '',
request: null
});
default:
return state;
}
};
| mit |
thomasbiddle/Puppywood-Android-App | src/com/thomasbiddle/puppywood/cameras/BeechmontCamera1.java | 197 | package com.thomasbiddle.puppywood.cameras;
public class BeechmontCamera1 extends CameraBase {
protected String cameraUrl() {
return "http://puppywood2.dyndns.org:8035/mjpg/video.mjpg";
}
}
| mit |
ikenga89/unetwork | src/Unetwork/AdminBundle/Tests/Controller/DefaultControllerTest.php | 403 | <?php
namespace Unetwork\AdminBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class DefaultControllerTest extends WebTestCase
{
public function testIndex()
{
$client = static::createClient();
$crawler = $client->request('GET', '/hello/Fabien');
$this->assertTrue($crawler->filter('html:contains("Hello Fabien")')->count() > 0);
}
}
| mit |
pcuci/ng2-heroes | app/main.ts | 600 | import { bootstrap } from '@angular/platform-browser-dynamic';
import { HTTP_PROVIDERS, XHRBackend } from '@angular/http';
import { AppComponent } from './app.component';
import { APP_ROUTER_PROVIDERS } from './app.routes';
import { InMemoryBackendService, SEED_DATA } from 'angular2-in-memory-web-api';
import { InMemoryDataService } from './in-memory-data.service';
bootstrap(AppComponent, [
APP_ROUTER_PROVIDERS,
HTTP_PROVIDERS,
{ provide: XHRBackend, useClass: InMemoryBackendService }, // in-mem-server
{ provide: SEED_DATA, useClass: InMemoryDataService } // in-mem server data
]);
| mit |
aphexyuri/gcm-me | index.js | 978 | var program = require('commander');
var gcmTest = require('gcm-test');
function enforceRequiredArgument(name) {
if (!program[name]) {
console.error("You must specify <%s>", name);
program.outputHelp();
process.exit(1);
}
}
program
.version('1.0')
.option('-k, --key <key>', 'API Key')
.option('-r, --regId <regId>', 'Device registration Id')
.option('-t, --title <title>', 'Push title')
.option('-m, --message <message>', 'Message body')
.parse(process.argv);
enforceRequiredArgument("key");
enforceRequiredArgument("regId");
function sendGcm() {
console.log("Using API key: " + program.key);
console.log("Sending to divice with registration id: " + program.regId);
console.log("Push title: " + program.title);
console.log("Push message body: " + program.message);
gcmTest({
message: program.message,
title: program.title
}, [program.regId], {
apiKey: program.key
}, function(err, response){
console.log(err, response);
});
}
sendGcm(); | mit |
wegamekinglc/alpha-mind | alphamind/tests/execution/test_thresholdexecutor.py | 1709 | # -*- coding: utf-8 -*-
"""
Created on 2017-9-22
@author: cheng.li
"""
import unittest
import pandas as pd
from alphamind.execution.thresholdexecutor import ThresholdExecutor
class TestThresholdExecutor(unittest.TestCase):
def test_threshold_executor(self):
target_pos = pd.DataFrame({'code': [1, 2, 3],
'weight': [0.2, 0.3, 0.5],
'industry': ['a', 'b', 'c']})
executor = ThresholdExecutor(turn_over_threshold=0.5)
# 1st round
turn_over, executed_pos = executor.execute(target_pos)
executor.set_current(executed_pos)
self.assertTrue(target_pos.equals(executed_pos))
self.assertAlmostEqual(turn_over, target_pos.weight.sum())
# 2nd round
target_pos = pd.DataFrame({'code': [1, 2, 4],
'weight': [0.3, 0.2, 0.5],
'industry': ['a', 'b', 'd']})
turn_over, executed_pos = executor.execute(target_pos)
executor.set_current(executed_pos)
self.assertTrue(target_pos.equals(executed_pos))
self.assertTrue(executed_pos.equals(executor.current_pos))
self.assertAlmostEqual(turn_over, 1.2)
# 3rd round
target_pos = pd.DataFrame({'code': [1, 3, 4],
'weight': [0.3, 0.2, 0.5],
'industry': ['a', 'c', 'd']})
turn_over, executed_pos2 = executor.execute(target_pos)
executor.set_current(executed_pos2)
self.assertTrue(executed_pos.equals(executed_pos2))
self.assertAlmostEqual(turn_over, 0.)
if __name__ == '__main__':
unittest.main()
| mit |
borkedLabs/borkedLabs.CrestScribe | borkedLabs.CrestScribe/Settings/WorkerSettings.cs | 278 | using Newtonsoft.Json;
namespace borkedLabs.CrestScribe.Settings
{
public class WorkerSettings
{
/// <summary>
/// Total number of workers to spawn
/// </summary>
[JsonProperty("total")]
public int Total { get; set; }
}
}
| mit |
eylvisaker/AgateLib | demos/AgateLib.Demo/UserInterface/FF6/Widgets/FF6RelicMenu.cs | 7381 | using AgateLib.UserInterface;
using System;
using System.Collections.Generic;
using System.Linq;
namespace AgateLib.Demo.UserInterface.FF6.Widgets
{
public class FF6RelicMenu : Widget<FF6RelicMenuProps, FF6RelicMenuState>
{
private readonly ElementReference slotsMenuRef = new ElementReference();
private readonly ElementReference actionMenuRef = new ElementReference();
private readonly ElementReference itemsMenuRef = new ElementReference();
private readonly UserInterfaceEvent<PlayerCharacter> charEvent = new UserInterfaceEvent<PlayerCharacter>();
private readonly UserInterfaceEvent<PlayerCharacter, string> removeEvent = new UserInterfaceEvent<PlayerCharacter, string>();
private readonly UserInterfaceEvent<PlayerCharacter, string, Item> equipEvent = new UserInterfaceEvent<PlayerCharacter, string, Item>();
private Action<UserInterfaceEvent> slotsAction;
public FF6RelicMenu(FF6RelicMenuProps props) : base(props)
{
SetState(new FF6RelicMenuState());
}
public override IRenderable Render()
{
return new FlexBox(new FlexBoxProps
{
Name = "RelicMenu",
DefaultStyle = new InlineElementStyle
{
Flex = new FlexStyle
{
Direction = FlexDirection.Column,
AlignItems = AlignItems.Stretch,
},
},
Children =
{
new Window(new WindowProps
{
Style = new InlineElementStyle
{
Flex = new FlexStyle
{
Direction = FlexDirection.Row,
}
},
OnCancel = Props.OnCancel,
Name = "equipActionType",
Children =
{
new Button(new ButtonProps{ Text = "Equip", OnAccept = e => SelectSlotThen(e, EquipRelic)}),
new Button(new ButtonProps{ Text = "Remove", OnAccept = e => SelectSlotThen(e, RemoveRelic)}),
},
Ref = actionMenuRef,
AllowNavigate = false,
}),
new Window(new WindowProps
{
Name = "slots",
Children = Props.EquipmentSlots.Select(eq =>
new Button(new ButtonProps
{
Name = eq.Name,
Text = $"{eq.Name}: {Props.PlayerCharacter.Equipment[eq.Name]?.Name}",
OnFocus = e => UpdateAvailableItems(e, eq.Name),
OnAccept = e => slotsAction(e),
})
).ToList<IRenderable>(),
OnCancel = e => e.System.SetFocus(actionMenuRef),
Ref = slotsMenuRef,
AllowNavigate = false,
}),
new FlexBox(new FlexBoxProps
{
Name = "ItemArea",
AllowNavigate = false,
Children =
{
new Window(new WindowProps
{
Name = "AvailableItems",
OnCancel = e => e.System.SetFocus(slotsMenuRef),
Children = State.AvailableItems.Select(item =>
new Button(new ButtonProps
{
Text = item.Name,
OnFocus = e =>
{
SetState(state => {
state.SelectedItem = item;
});
},
OnAccept = e =>
{
EquipItem(e, item);
},
}
)).ToList<IRenderable>(),
Ref = itemsMenuRef,
}),
new Window(new WindowProps
{
Name = "ItemDescription",
Children =
{
new Label(new LabelProps
{
Text = State.SelectedItem?.Name,
}),
}
})
},
}),
}
});
}
private void EquipItem(UserInterfaceEvent e, Item item)
{
Props.OnEquip?.Invoke(equipEvent.Reset(e, Props.PlayerCharacter, State.SelectedSlot, item));
e.System.SetFocus(slotsMenuRef);
}
private void EquipRelic(UserInterfaceEvent e)
{
e.System.SetFocus(itemsMenuRef);
}
private void RemoveRelic(UserInterfaceEvent e)
{
Props.OnEquipRemove?.Invoke(removeEvent.Reset(e, Props.PlayerCharacter, State.SelectedSlot));
}
private void UpdateAvailableItems(UserInterfaceEvent e, string slot)
{
SetState(state =>
{
state.AvailableItems.Clear();
state.SelectedSlot = slot;
state.AvailableItems.AddRange(Props.Inventory.Where(
it => Props.EquipmentSlots.First(s => s.Name == slot).AllowedItemTypes.Contains(it.ItemType, StringComparer.OrdinalIgnoreCase)));
});
}
private void SelectSlotThen(UserInterfaceEvent e, Action<UserInterfaceEvent> followAction)
{
e.System.SetFocus(slotsMenuRef);
slotsAction = followAction;
}
}
public class FF6RelicMenuState
{
public List<Item> AvailableItems { get; set; } = new List<Item>();
public Item SelectedItem { get; set; }
public string SelectedSlot { get; set; }
}
public class FF6RelicMenuProps : WidgetProps
{
public PlayerCharacter PlayerCharacter { get; set; }
public List<Item> Inventory { get; set; }
public UserInterfaceEventHandler<PlayerCharacter, string, Item> OnEquip { get; set; }
public UserInterfaceEventHandler<PlayerCharacter, string> OnEquipRemove { get; set; }
public UserInterfaceEventHandler<PlayerCharacter> OnEquipOptimum { get; set; }
public UserInterfaceEventHandler<PlayerCharacter> OnEquipEmpty { get; set; }
public UserInterfaceEventHandler OnCancel { get; set; }
public IEnumerable<EquipmentSlot> EquipmentSlots { get; set; }
}
}
| mit |
silentred/toolkit | util/timeutil/time.go | 1925 | package timeutil
import (
"time"
)
// 类似与js中的SetTimeout,一段时间后执行回调函数
func SetTimeout(t time.Duration, callback func()) {
go func() {
time.Sleep(t)
callback()
}()
}
// 类似与js中的SetInterval,每隔一段时间后执行回调函数,当回调函数返回true,那么继续执行,否则终止执行,该方法是异步的
// 注意:由于采用的是循环而不是递归操作,因此间隔时间将会以上一次回调函数执行完成的时间来计算
func SetInterval(t time.Duration, callback func() bool) {
go func() {
for {
time.Sleep(t)
if !callback() {
break
}
}
}()
}
// 获取当前的纳秒数
func Nanosecond() int64 {
return time.Now().UnixNano()
}
// 获取当前的微秒数
func Microsecond() int64 {
return time.Now().UnixNano() / 1e3
}
// 获取当前的毫秒数
func Millisecond() int64 {
return time.Now().UnixNano() / 1e6
}
// 获取当前的秒数(时间戳)
func Second() int64 {
return time.Now().UnixNano() / 1e9
}
// 获得当前的日期(例如:2006-01-02)
func Date() string {
return time.Now().Format("2006-01-02")
}
// 获得当前的时间(例如:2006-01-02 15:04:05)
func Datetime() string {
return time.Now().Format("2006-01-02 15:04:05")
}
// 时间戳转换为指定格式的字符串,format格式形如:2006-01-02 03:04:05 PM
// 第二个参数指定需要格式化的时间戳,为非必需参数,默认为当前时间戳
func Format(format string, timestamps ...int64) string {
timestamp := Second()
if len(timestamps) > 0 {
timestamp = timestamps[0]
}
return time.Unix(timestamp, 0).Format(format)
}
// 字符串转换为时间戳,需要给定字符串时间格式,format格式形如:2006-01-02 03:04:05 PM
func StrToTime(format string, timestr string) (int64, error) {
t, err := time.Parse(format, timestr)
if err != nil {
return 0, err
}
return t.Unix(), nil
}
| mit |
MeRPG/GuardianBeamAPI | src/main/java/net/jaxonbrown/guardianBeam/beam/Beam.java | 8658 | /*
* The MIT License (MIT)
*
* Copyright (c) 2016 Jaxon A Brown
*
* 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 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 net.jaxonbrown.guardianBeam.beam;
import com.google.common.base.Preconditions;
import net.jaxonbrown.guardianBeam.GuardianBeamAPI;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.entity.Player;
import org.bukkit.scheduler.BukkitRunnable;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
import java.util.UUID;
/**
* Creates a guardian beam between two locations.
* This uses ProtocolLib to send two entities: A guardian and a squid.
* The guardian is then set to target the squid.
* @author Jaxon A Brown
*/
public class Beam {
private final UUID worldUID;
private final double viewingRadiusSquared;
private final long updateDelay;
private boolean isActive;
private final LocationTargetBeam beam;
private Location startingPosition, endingPosition;
private final Set<UUID> viewers;
private BukkitRunnable runnable;
/**
* Create a guardian beam for anyone to see. This sets up the packets.
* @param startingPosition Position to start the beam, or the position which the effect 'moves towards'.
* @param endingPosition Position to stop the beam, or the position which the effect 'moves away from'.
*/
public Beam(Location startingPosition, Location endingPosition) {
this(startingPosition, endingPosition, 100D, 5);
}
/**
* Create a guardian beam for anyone to see. This sets up the packets.
* @param startingPosition Position to start the beam, or the position which the effect 'moves towards'.
* @param endingPosition Position to stop the beam, or the position which the effect 'moves away from'.
* @param viewingRadius Radius from either node of the beam from which it can be seen.
* @param updateDelay Delay between checking if the beam should be hidden or shown to potentially applicable players.
*/
public Beam(Location startingPosition, Location endingPosition, double viewingRadius, long updateDelay) {
Preconditions.checkNotNull(startingPosition, "startingPosition cannot be null");
Preconditions.checkNotNull(endingPosition, "endingPosition cannot be null");
Preconditions.checkState(startingPosition.getWorld().equals(endingPosition.getWorld()), "startingPosition and endingPosition must be in the same world");
Preconditions.checkArgument(viewingRadius > 0, "viewingRadius must be positive");
Preconditions.checkArgument(updateDelay >= 1, "viewingRadius must be a natural number");
this.worldUID = startingPosition.getWorld().getUID();
this.viewingRadiusSquared = viewingRadius * viewingRadius;
this.updateDelay = updateDelay;
this.isActive = false;
this.beam = new LocationTargetBeam(startingPosition, endingPosition);
this.startingPosition = startingPosition;
this.endingPosition = endingPosition;
this.viewers = new HashSet<>();
}
/**
* Send the packets to create the beam to applicable players.
* This also starts the runnable which will make the effect visible if it becomes applicable to a player.
*/
public void start() {
Preconditions.checkState(!this.isActive, "The beam must be disabled in order to start it");
this.isActive = true;
(this.runnable = new BeamUpdater()).runTaskTimer(GuardianBeamAPI.getInstance(), 0, this.updateDelay);
}
/**
* Send the packets to remove the beam from the player, if applicable.
* This also stops the runnable.
*/
public void stop() {
Preconditions.checkState(this.isActive, "The beam must be enabled in order to stop it");
this.isActive = false;
for(UUID uuid : viewers) {
Player player = Bukkit.getPlayer(uuid);
if(player != null && player.getWorld().getUID().equals(this.worldUID) && isCloseEnough(player.getLocation())) {
this.beam.cleanup(player);
}
}
this.viewers.clear();
this.runnable.cancel();
this.runnable = null;
}
/**
* Sets the starting position of the beam, or the position which the effect 'moves towards'.
* @param location the starting position.
*/
public void setStartingPosition(Location location) {
Preconditions.checkArgument(location.getWorld().getUID().equals(this.worldUID), "location must be in the same world as this beam");
this.startingPosition = location;
Iterator<UUID> iterator = this.viewers.iterator();
while(iterator.hasNext()) {
UUID uuid = iterator.next();
Player player = Bukkit.getPlayer(uuid);
if(player == null || !player.isOnline() || !player.getWorld().getUID().equals(this.worldUID) || !isCloseEnough(player.getLocation())) {
iterator.remove();
continue;
}
this.beam.setStartingPosition(player, location);
}
}
/**
* Sets the ending position of the beam, or the position which the effect 'moves away from'.
* @param location the ending position.
*/
public void setEndingPosition(Location location) {
Preconditions.checkArgument(location.getWorld().getUID().equals(this.worldUID), "location must be in the same world as this beam");
this.endingPosition = location;
Iterator<UUID> iterator = this.viewers.iterator();
while(iterator.hasNext()) {
UUID uuid = iterator.next();
Player player = Bukkit.getPlayer(uuid);
if(!player.isOnline() || !player.getWorld().getUID().equals(this.worldUID) || !isCloseEnough(player.getLocation())) {
iterator.remove();
continue;
}
this.beam.setEndingPosition(player, location);
}
}
/**
* Checks if any packets need to be sent to show or hide the beam to any applicable player.
*/
public void update() {
if(this.isActive) {
for(Player player : Bukkit.getOnlinePlayers()) {
UUID uuid = player.getUniqueId();
if(!player.getWorld().getUID().equals(this.worldUID)) {
this.viewers.remove(uuid);
return;
}
if(isCloseEnough(player.getLocation())) {
if(!this.viewers.contains(uuid)) {
this.beam.start(player);
this.viewers.add(uuid);
}
} else if(this.viewers.contains(uuid)) {
this.beam.cleanup(player);
this.viewers.remove(uuid);
}
}
}
}
/**
* Checks if the beam is active (will show when applicable).
* @return True if active.
*/
public boolean isActive() {
return this.isActive;
}
/**
* Checks if the player is currently viewing the beam (can the player see it).
* @param player player to check
* @return True if viewing.
*/
public boolean isViewing(Player player) {
return this.viewers.contains(player.getUniqueId());
}
private boolean isCloseEnough(Location location) {
return startingPosition.distanceSquared(location) <= viewingRadiusSquared ||
endingPosition.distanceSquared(location) <= viewingRadiusSquared;
}
private class BeamUpdater extends BukkitRunnable {
@Override
public void run() {
Beam.this.update();
}
}
} | mit |
jamescook/xrono | features/step_definitions/client_steps.rb | 962 | Given /^the following clients:$/ do |clients|
Client.create!(clients.hashes)
end
When /^I visit the clients index page$/ do
visit clients_path
end
When /^I delete the (\d+)(?:st|nd|rd|th) client$/ do |pos|
visit clients_path
within("table tbody tr:nth-child(#{pos.to_i})") do
click_link "Destroy"
end
end
Then /^I should see the following clients:$/ do |expected_clients_table|
expected_clients_table.diff!(tableish('table tr', 'td,th'))
end
Given /^the following clients, projects and tickets exist$/ do |table|
table.hashes.each do |row|
client = Client.make :name => row["client name"]
project = Project.make :name => row["project name"], :client => client
ticket = Ticket.make :name => row["ticket name"], :project => project
Client.find_by_name(client.name).should_not == nil
client.projects.find_by_name(project.name).should_not == nil
project.tickets.find_by_name(ticket.name).should_not == nil
end
end
| mit |
MoWeg/webRTC-firstTry | src/main/webapp/app/services/socket/mysocket.service.js | 1584 | (function() {
'use strict';
/* globals SockJS, Stomp */
angular
.module('simpleWebrtcServerApp')
.factory('MySocketService', MySocketService);
MySocketService.$inject = ['$window', '$cookies', '$http', '$q'];
function MySocketService ($window, $cookies, $http, $q) {
var stompClient = null;
var connected = $q.defer();
var service = {
getStompClient: getStompClient,
getConnected: getConnected,
disconnect: disconnect
};
return service;
function getStompClient(){
if(stompClient == null){
connect();
}
return stompClient;
}
function connect () {
//building absolute path so that websocket doesnt fail when deploying with a context path
var loc = $window.location;
var url = '//' + loc.host + loc.pathname + 'websocket/tracker';
var socket = new SockJS(url);
stompClient = Stomp.over(socket);
var stateChangeStart;
var headers = {};
headers[$http.defaults.xsrfHeaderName] = $cookies.get($http.defaults.xsrfCookieName);
stompClient.connect(headers, function() {
connected.resolve('success');
});
}
function disconnect () {
if (stompClient !== null) {
stompClient.disconnect();
stompClient = null;
}
}
function getConnected(){
return connected;
}
}
})();
| mit |
kobezzza/Collection | dist/node/consts/thread.js | 526 | 'use strict';
/*!
* Collection
* https://github.com/kobezzza/Collection
*
* Released under the MIT license
* https://github.com/kobezzza/Collection/blob/master/LICENSE
*/
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.priorities = exports.MAX_PRIORITY = void 0;
const MAX_PRIORITY = 40;
exports.MAX_PRIORITY = MAX_PRIORITY;
const priorities = {
'low': MAX_PRIORITY / 8,
'normal': MAX_PRIORITY / 4,
'hight': MAX_PRIORITY / 2,
'critical': MAX_PRIORITY
};
exports.priorities = priorities; | mit |
EricChenC/quark_engine | engine/resource/TextureLoad.cpp | 889 | #include "TextureLoad.h"
#include "Texture.h"
#define STB_IMAGE_IMPLEMENTATION
#include <stb_image.h>
#include <algorithm>
qe::resource::TextureLoad::TextureLoad()
{
}
qe::resource::TextureLoad::~TextureLoad()
{
}
std::shared_ptr<qe::core::Texture> qe::resource::TextureLoad::Load(const std::string & path)
{
auto texture = std::make_shared<qe::core::Texture>();
int texWidth, texHeight, texChannels;
stbi_uc* pixels = stbi_load(path.c_str(), &texWidth, &texHeight, &texChannels, STBI_rgb_alpha);
size_t imageSize = texWidth * texHeight * 4;
uint32_t mipLevels = floor(log2(std::max(texWidth, texHeight))) + 1;
texture->set_width(texWidth);
texture->set_height(texHeight);
texture->set_channel(texChannels);
texture->set_size(imageSize);
texture->set_mip_level(mipLevels);
texture->set_data(pixels);
return texture;
}
| mit |
aurelia/ux | packages/core/dist/types/hosts/cordova.d.ts | 361 | import { Host } from './host';
import { Container } from 'aurelia-dependency-injection';
import { Platform } from '../platforms/platform';
export declare class Cordova implements Host {
private container;
type: string;
constructor(container: Container);
get isAvailable(): boolean;
start(): Promise<Platform>;
private getPlatformType;
}
| mit |
vnbaaij/ImageProcessor.Web.Episerver | src/ImageProcessor.Web.Episerver.Azure/Properties/AssemblyInfo.cs | 1521 | 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("ImageProcessor.Web.Episerver.Azure")]
[assembly: AssemblyDescription("Store ImageProcessor cache in Episerver configured Azure Blob storage")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Vincent Baaij")]
[assembly: AssemblyProduct("ImageProcessor.Web.Episerver.Azure")]
[assembly: AssemblyCopyright("Copyright © 2019")]
[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("7b8e1011-6c72-41fc-b73b-0ff79dcb1255")]
// 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("5.7.0.*")]
[assembly: AssemblyFileVersion("5.7.0.0")]
| mit |
reactjs/react-docgen | src/__tests__/main-test.ts | 5569 | import fs from 'fs';
import path from 'path';
import { handlers, parse, importers } from '../main';
import { ERROR_MISSING_DEFINITION } from '../parse';
describe('main', () => {
function test(source) {
it('parses with default resolver/handlers', () => {
const docs = parse(source);
expect(docs).toEqual({
displayName: 'ABC',
description: 'Example component description',
methods: [],
props: {
foo: {
type: {
name: 'bool',
},
defaultValue: {
computed: false,
value: 'true',
},
description: 'Example prop description',
required: false,
},
},
});
});
it('parses with custom handlers', () => {
const docs = parse(source, null, [handlers.componentDocblockHandler]);
expect(docs).toEqual({
description: 'Example component description',
});
});
}
describe('React.createClass', () => {
test(`
var React = require("react");
var PropTypes = React.PropTypes;
var defaultProps = {
foo: true,
};
var propTypes = {
/**
* Example prop description
*/
foo: PropTypes.bool
};
/**
* Example component description
*/
var Component = React.createClass({
displayName: 'ABC',
propTypes,
getDefaultProps: function() {
return defaultProps;
}
});
module.exports = Component
`);
});
describe('Class definition', () => {
test(`
const React = require("react");
const PropTypes = React.PropTypes;
const defaultProps = {
foo: true,
};
const propTypes = {
/**
* Example prop description
*/
foo: PropTypes.bool
};
/**
* Example component description
*/
export default class Component extends React.Component {
static propTypes = propTypes;
// ...
}
Component.defaultProps = defaultProps;
Component.displayName = 'ABC';
`);
});
describe('Stateless Component definition: ArrowFunctionExpression', () => {
test(`
import React, {PropTypes} from "react";
const defaultProps = {
foo: true,
};
const propTypes = {
/**
* Example prop description
*/
foo: PropTypes.bool
};
/**
* Example component description
*/
let Component = props => <div />;
Component.displayName = 'ABC';
Component.defaultProps = defaultProps;
Component.propTypes = propTypes;
export default Component;
`);
});
describe('Stateless Component definition: FunctionDeclaration', () => {
test(`
import React, {PropTypes} from "react";
const defaultProps = {
foo: true,
};
const propTypes = {
/**
* Example prop description
*/
foo: PropTypes.bool
};
/**
* Example component description
*/
function Component (props) {
return <div />;
}
Component.displayName = 'ABC';
Component.defaultProps = defaultProps;
Component.propTypes = propTypes;
export default Component;
`);
});
describe('Stateless Component definition: FunctionExpression', () => {
test(`
import React, {PropTypes} from "react";
const defaultProps = {
foo: true,
};
const propTypes = {
/**
* Example prop description
*/
foo: PropTypes.bool
};
/**
* Example component description
*/
let Component = function(props) {
return React.createElement('div', null);
}
Component.displayName = 'ABC';
Component.defaultProps = defaultProps;
Component.propTypes = propTypes;
export default Component;
`);
});
describe('Stateless Component definition', () => {
it('is not so greedy', () => {
const source = `
import React, {PropTypes} from "react";
/**
* Example component description
*/
let NotAComponent = function(props) {
let HiddenComponent = () => React.createElement('div', null);
return 7;
}
NotAComponent.displayName = 'ABC';
NotAComponent.defaultProps = {
foo: true
};
NotAComponent.propTypes = {
/**
* Example prop description
*/
foo: PropTypes.bool
};
export default NotAComponent;
`;
expect(() => parse(source)).toThrowError(ERROR_MISSING_DEFINITION);
});
});
// Fixures uses the filesystem importer for easier e2e tests
// even though it is not the default
describe('fixtures', () => {
const fixturePath = path.join(__dirname, 'fixtures');
const fileNames = fs.readdirSync(fixturePath);
for (let i = 0; i < fileNames.length; i++) {
const filePath = path.join(fixturePath, fileNames[i]);
const fileContent = fs.readFileSync(filePath, 'utf8');
it(`processes component "${fileNames[i]}" without errors`, () => {
let result;
expect(() => {
result = parse(fileContent, null, null, {
importer: importers.makeFsImporter(),
filename: filePath,
babelrc: false,
});
}).not.toThrowError();
expect(result).toMatchSnapshot();
});
}
});
});
| mit |
aykutyaman/meteor1.3-react-flowrouter-demo | node_modules/material-ui/lib/date-picker/calendar-toolbar.js | 5343 | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _iconButton = require('../icon-button');
var _iconButton2 = _interopRequireDefault(_iconButton);
var _toolbar = require('../toolbar/toolbar');
var _toolbar2 = _interopRequireDefault(_toolbar);
var _toolbarGroup = require('../toolbar/toolbar-group');
var _toolbarGroup2 = _interopRequireDefault(_toolbarGroup);
var _chevronLeft = require('../svg-icons/navigation/chevron-left');
var _chevronLeft2 = _interopRequireDefault(_chevronLeft);
var _chevronRight = require('../svg-icons/navigation/chevron-right');
var _chevronRight2 = _interopRequireDefault(_chevronRight);
var _slideIn = require('../transition-groups/slide-in');
var _slideIn2 = _interopRequireDefault(_slideIn);
var _themeManager = require('../styles/theme-manager');
var _themeManager2 = _interopRequireDefault(_themeManager);
var _lightRawTheme = require('../styles/raw-themes/light-raw-theme');
var _lightRawTheme2 = _interopRequireDefault(_lightRawTheme);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var styles = {
root: {
position: 'relative',
padding: 0,
backgroundColor: 'inherit'
},
title: {
position: 'absolute',
top: 17,
lineHeight: '14px',
fontSize: 14,
height: 14,
width: '100%',
fontWeight: '500',
textAlign: 'center'
}
};
var CalendarToolbar = _react2.default.createClass({
displayName: 'CalendarToolbar',
propTypes: {
DateTimeFormat: _react2.default.PropTypes.func.isRequired,
displayDate: _react2.default.PropTypes.object.isRequired,
locale: _react2.default.PropTypes.string.isRequired,
nextMonth: _react2.default.PropTypes.bool,
onMonthChange: _react2.default.PropTypes.func,
prevMonth: _react2.default.PropTypes.bool
},
contextTypes: {
muiTheme: _react2.default.PropTypes.object
},
//for passing default theme context to children
childContextTypes: {
muiTheme: _react2.default.PropTypes.object
},
getDefaultProps: function getDefaultProps() {
return {
nextMonth: true,
prevMonth: true
};
},
getInitialState: function getInitialState() {
return {
muiTheme: this.context.muiTheme ? this.context.muiTheme : _themeManager2.default.getMuiTheme(_lightRawTheme2.default),
transitionDirection: 'up'
};
},
getChildContext: function getChildContext() {
return {
muiTheme: this.state.muiTheme
};
},
//to update theme inside state whenever a new theme is passed down
//from the parent / owner using context
componentWillReceiveProps: function componentWillReceiveProps(nextProps, nextContext) {
var newMuiTheme = nextContext.muiTheme ? nextContext.muiTheme : this.state.muiTheme;
this.setState({ muiTheme: newMuiTheme });
var direction = undefined;
if (nextProps.displayDate !== this.props.displayDate) {
direction = nextProps.displayDate > this.props.displayDate ? 'up' : 'down';
this.setState({
transitionDirection: direction
});
}
},
_prevMonthTouchTap: function _prevMonthTouchTap() {
if (this.props.onMonthChange && this.props.prevMonth) this.props.onMonthChange(-1);
},
_nextMonthTouchTap: function _nextMonthTouchTap() {
if (this.props.onMonthChange && this.props.nextMonth) this.props.onMonthChange(1);
},
render: function render() {
var _props = this.props;
var DateTimeFormat = _props.DateTimeFormat;
var locale = _props.locale;
var displayDate = _props.displayDate;
var dateTimeFormatted = new DateTimeFormat(locale, {
month: 'long',
year: 'numeric'
}).format(displayDate);
var nextButtonIcon = this.state.muiTheme.isRtl ? _react2.default.createElement(_chevronRight2.default, null) : _react2.default.createElement(_chevronLeft2.default, null);
var prevButtonIcon = this.state.muiTheme.isRtl ? _react2.default.createElement(_chevronLeft2.default, null) : _react2.default.createElement(_chevronRight2.default, null);
return _react2.default.createElement(
_toolbar2.default,
{ style: styles.root, noGutter: true },
_react2.default.createElement(
_slideIn2.default,
{
style: styles.title,
direction: this.state.transitionDirection },
_react2.default.createElement(
'div',
{ key: dateTimeFormatted },
dateTimeFormatted
)
),
_react2.default.createElement(
_toolbarGroup2.default,
{ key: 0, float: 'left' },
_react2.default.createElement(
_iconButton2.default,
{
style: styles.button,
disabled: !this.props.prevMonth,
onTouchTap: this._prevMonthTouchTap },
nextButtonIcon
)
),
_react2.default.createElement(
_toolbarGroup2.default,
{ key: 1, float: 'right' },
_react2.default.createElement(
_iconButton2.default,
{
style: styles.button,
disabled: !this.props.nextMonth,
onTouchTap: this._nextMonthTouchTap },
prevButtonIcon
)
)
);
}
});
exports.default = CalendarToolbar;
module.exports = exports['default']; | mit |
villez/vswiki | spec/models/page_spec.rb | 992 | require 'rails_helper'
require 'shoulda/matchers'
RSpec.describe Page, :type => :model do
let(:wikipage) { Page.new(title: "Test page with a few words", wikitext: "testing basic model") }
describe "validations" do
it { expect(wikipage).to validate_presence_of(:title).with_message("Cannot save a page with an empty title") }
it { expect(wikipage).to validate_uniqueness_of(:wikititle).with_message("A page with that title already exists") }
end
describe "handling attributes" do
it "generates wikititle from title on save" do
wikipage.save
expect(wikipage.wikititle).to eq "TestPageWithAFewWords"
end
it "generates html from wikitext" do
# note: not testing the actual markup parsing correctness here,
# just that the parsing step is done
expect(wikipage.formatted_html).to eq("<p>testing basic model</p>\n")
end
it "saves the basic attributes successfully" do
expect(wikipage.save).to be true
end
end
end
| mit |
martintechlabs/sitebootstrapper | app/models/authentication.rb | 65 | class Authentication < ActiveRecord::Base
belongs_to(:user)
end | mit |
aashish24/aperture-tiles | tile-generation/src/test/java/com/oculusinfo/tilegen/graph/analytics/GraphAnalyticsTests.java | 15147 | /*
* Copyright (c) 2014 Oculus Info Inc.
* http://www.oculusinfo.com/
*
* Released under the MIT License.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
* of the Software, and to permit persons to whom the Software is furnished to do
* so, subject to the following conditions:
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.oculusinfo.tilegen.graph.analytics;
import java.util.Arrays;
import java.util.List;
import org.junit.Assert;
import org.junit.Test;
import com.oculusinfo.binning.util.Pair;
import com.oculusinfo.tilegen.graph.analytics.GraphAnalyticsRecord;
import com.oculusinfo.tilegen.graph.analytics.GraphCommunity;
/**
* Unit tests for Graph Analytics (i.e. GraphAnalyticsRecord and GraphCommunity objects)
*/
public class GraphAnalyticsTests {
// sample graph community record
int _hierLevel = 1;
long _id = 123L;
Pair<Double, Double>_coords = new Pair<Double, Double>(1.2, 3.4);
double _radius = 5.6;
int _degree = 3;
long _numNodes = 42L;
String _metadata = "blah1\tblah2\tblah3";
boolean _bIsPrimaryNode = false;
long _parentID = 456L;
Pair<Double, Double>_parentCoords = new Pair<Double, Double>(3.3, 4.4);
double _parentRadius = 10.2;
List<GraphEdge> _interEdges = Arrays.asList(new GraphEdge(0L, 4.3, 2.1, 5L),
new GraphEdge(43L, 5.6, 7.8, 3L));
List<GraphEdge> _intraEdges = Arrays.asList(new GraphEdge(2L, 4.2, 2.0, 6L),
new GraphEdge(44L, 5.5, 7.7, 4L));
private GraphCommunity _sampleCommunity = new GraphCommunity(_hierLevel,
_id,
_coords,
_radius,
_degree,
_numNodes,
_metadata,
_bIsPrimaryNode,
_parentID,
_parentCoords,
_parentRadius,
_interEdges,
_intraEdges);
private GraphAnalyticsRecord _sampleRecord = new GraphAnalyticsRecord(1, Arrays.asList(_sampleCommunity));
//---- Test that two records with the same data are equal
@Test
public void testRecordsEqual() {
GraphAnalyticsRecord a = new GraphAnalyticsRecord(1, Arrays.asList(_sampleCommunity));
Assert.assertEquals(_sampleRecord, a);
}
//---- Adding a community to an existing record
@Test
public void testCommunityToRecord () {
GraphAnalyticsRecord a = new GraphAnalyticsRecord(1, Arrays.asList(_sampleCommunity));
GraphCommunity community_b = new GraphCommunity(_hierLevel,
456L,
new Pair<Double, Double>(3.3, 4.4),
3.4,
4,
54,
"blah4\tblah5",
true,
_parentID,
_parentCoords,
_parentRadius,
_interEdges,
_intraEdges);
GraphAnalyticsRecord c = new GraphAnalyticsRecord(2, Arrays.asList(community_b, _sampleCommunity));
Assert.assertEquals(c, GraphAnalyticsRecord.addCommunityToRecord(a, community_b));
}
//---- Adding an inter edge to an existing community
@Test
public void testInterEdgeToCommunity () {
GraphCommunity a = _sampleCommunity;
GraphEdge e1 = new GraphEdge(987L, 0.1, 0.2, 999L);
GraphCommunity b = a;
b.addInterEdgeToCommunity(e1);
List<GraphEdge> edges = Arrays.asList(e1,
new GraphEdge(0L, 4.3, 2.1, 5L),
new GraphEdge(43L, 5.6, 7.8, 3L));
GraphCommunity c = new GraphCommunity(_hierLevel,
_id,
_coords,
_radius,
_degree,
_numNodes,
_metadata,
_bIsPrimaryNode,
_parentID,
_parentCoords,
_parentRadius,
edges,
_intraEdges);
Assert.assertEquals(c, b);
}
//---- Adding an intra edge to an existing community
@Test
public void testIntraEdgeToCommunity () {
GraphCommunity a = _sampleCommunity;
GraphEdge e2 = new GraphEdge(988L, 0.11, 0.22, 1L);
GraphCommunity b = a;
b.addIntraEdgeToCommunity(e2);
List<GraphEdge> edges = Arrays.asList(new GraphEdge(2L, 4.2, 2.0, 6L),
new GraphEdge(44L, 5.5, 7.7, 4L),
e2);
GraphCommunity c = new GraphCommunity(_hierLevel,
_id,
_coords,
_radius,
_degree,
_numNodes,
_metadata,
_bIsPrimaryNode,
_parentID,
_parentCoords,
_parentRadius,
_interEdges,
edges);
Assert.assertEquals(c, b);
}
//---- Adding a 'very small weight' edge to a community already containing 10 edges
//TODO -- need to change this test if MAX_EDGES in GraphCommunity != 10
/* @Test
public void testEdgeAggregationSmall() {
GraphEdge e1 = new GraphEdge(0L, 0.1, 0.1, 100L);
List<GraphEdge> edges = Arrays.asList(e1,e1,e1,e1,e1,e1,e1,e1,e1,e1);
GraphCommunity a = new GraphCommunity(_hierLevel,
_id,
_coords,
_radius,
_degree,
_numNodes,
_metadata,
_bIsPrimaryNode,
_parentID,
_parentCoords,
_parentRadius,
_interEdges,
edges);
GraphEdge e2 = new GraphEdge(0L, 0.1, 0.1, 1L);
GraphCommunity b = a;
b.addIntraEdgeToCommunity(e2);
Assert.assertEquals(a, b);
}
//---- Adding a 'very high weight' edge to a community already containing 10 edges
//TODO -- need to change this test if MAX_EDGES in GraphCommunity != 10
@Test
public void testEdgeAggregationLarge() {
GraphEdge e1 = new GraphEdge(0L, 0.1, 0.1, 1L);
List<GraphEdge> edges = Arrays.asList(e1,e1,e1,e1,e1,e1,e1,e1,e1,e1);
GraphCommunity a = new GraphCommunity(_hierLevel,
_id,
_coords,
_radius,
_degree,
_numNodes,
_metadata,
_bIsPrimaryNode,
_parentID,
_parentCoords,
_parentRadius,
edges,
_intraEdges);
GraphEdge e2 = new GraphEdge(0L, 0.1, 0.1, 10L);
GraphCommunity b = a;
b.addInterEdgeToCommunity(e2);
List<GraphEdge> edges2 = Arrays.asList(e2,e1,e1,e1,e1,e1,e1,e1,e1,e1);
GraphCommunity c = new GraphCommunity(_hierLevel,
_id,
_coords,
_radius,
_degree,
_numNodes,
_metadata,
_bIsPrimaryNode,
_parentID,
_parentCoords,
_parentRadius,
edges2,
_intraEdges);
Assert.assertEquals(c, b);
}
*/
//---- Adding a record to an empty record
@Test
public void testEmptyRecordAggregation () {
GraphAnalyticsRecord a = new GraphAnalyticsRecord(0, null);
GraphCommunity community_b = new GraphCommunity(_hierLevel,
456L,
new Pair<Double, Double>(3.3, 4.4),
3.4,
4,
54,
"blah4\tblah5",
true,
_parentID,
_parentCoords,
_parentRadius,
_interEdges,
_intraEdges);
GraphAnalyticsRecord b = new GraphAnalyticsRecord(1, Arrays.asList(community_b));
Assert.assertEquals(b, GraphAnalyticsRecord.addRecords(a, b));
}
//---- Adding two records
@Test
public void testRecordAggregation () {
GraphAnalyticsRecord a = new GraphAnalyticsRecord(1, Arrays.asList(_sampleCommunity));
GraphCommunity community_b = new GraphCommunity(_hierLevel,
456L,
new Pair<Double, Double>(3.3, 4.4),
3.4,
4,
54,
"blah4\tblah5",
true,
_parentID,
_parentCoords,
_parentRadius,
_interEdges,
_intraEdges);
GraphAnalyticsRecord b = new GraphAnalyticsRecord(1, Arrays.asList(community_b));
GraphAnalyticsRecord c = new GraphAnalyticsRecord(2, Arrays.asList(community_b, _sampleCommunity));
Assert.assertEquals(c, GraphAnalyticsRecord.addRecords(a, b));
}
//---- Adding a 'too-small' community to a record already containing 10 communities
//TODO -- need to change this test if MAX_COMMUNITIES in GraphAnalyticsRecord class != 10
/* @Test
public void testRecordAggregationSmall () {
GraphAnalyticsRecord a = new GraphAnalyticsRecord(10, Arrays.asList(_sampleCommunity,
_sampleCommunity,
_sampleCommunity,
_sampleCommunity,
_sampleCommunity,
_sampleCommunity,
_sampleCommunity,
_sampleCommunity,
_sampleCommunity,
_sampleCommunity));
GraphCommunity community_b = new GraphCommunity(_hierLevel,
456L,
new Pair<Double, Double>(3.3, 4.4),
3.4,
4,
2,
"blain h4\tblah5",
true,
_parentID,
_parentCoords,
_parentRadius,
_interEdges,
_intraEdges);
GraphAnalyticsRecord b = new GraphAnalyticsRecord(1, Arrays.asList(community_b));
GraphAnalyticsRecord c = new GraphAnalyticsRecord(11, Arrays.asList(_sampleCommunity,
_sampleCommunity,
_sampleCommunity,
_sampleCommunity,
_sampleCommunity,
_sampleCommunity,
_sampleCommunity,
_sampleCommunity,
_sampleCommunity,
_sampleCommunity));
Assert.assertEquals(c, GraphAnalyticsRecord.addRecords(a, b));
}
//---- Adding a 'very large' community to a record already containing 10 communities
//TODO -- need to change this test if MAX_COMMUNITIES in GraphAnalyticsRecord class != 10
@Test
public void testRecordAggregationLarge () {
GraphAnalyticsRecord a = new GraphAnalyticsRecord(10, Arrays.asList(_sampleCommunity,
_sampleCommunity,
_sampleCommunity,
_sampleCommunity,
_sampleCommunity,
_sampleCommunity,
_sampleCommunity,
_sampleCommunity,
_sampleCommunity,
_sampleCommunity));
GraphCommunity community_b = new GraphCommunity(_hierLevel,
456L,
new Pair<Double, Double>(3.3, 4.4),
3.4,
4,
1000,
"blain h4\tblah5",
true,
_parentID,
_parentCoords,
_parentRadius,
_interEdges,
_intraEdges);
GraphAnalyticsRecord b = new GraphAnalyticsRecord(1, Arrays.asList(community_b));
GraphAnalyticsRecord c = new GraphAnalyticsRecord(11, Arrays.asList(community_b,
_sampleCommunity,
_sampleCommunity,
_sampleCommunity,
_sampleCommunity,
_sampleCommunity,
_sampleCommunity,
_sampleCommunity,
_sampleCommunity,
_sampleCommunity));
Assert.assertEquals(c, GraphAnalyticsRecord.addRecords(a, b));
}
*/
//---- Check string conversion
@Test
public void testStringConversion () {
GraphCommunity community_a = new GraphCommunity(_hierLevel,
123L,
new Pair<Double, Double>(1.2, 3.4),
0.8,
4,
33,
"abc\t\"\"\\\"\\\\\"\\\\\\\"\tdef",
false,
_parentID,
_parentCoords,
_parentRadius,
_interEdges,
_intraEdges);
GraphAnalyticsRecord a = new GraphAnalyticsRecord(1, Arrays.asList(community_a));
String as = a.toString();
GraphAnalyticsRecord b = GraphAnalyticsRecord.fromString(as);
Assert.assertEquals(a, b);
}
//---- Min of two records
@Test
public void testMin() {
GraphAnalyticsRecord a = new GraphAnalyticsRecord(2, Arrays.asList(_sampleCommunity));
GraphCommunity community_b = new GraphCommunity(1,
567L,
new Pair<Double, Double>(3.3, 4.4),
3.4,
4,
54,
"blah4\tblah5",
true,
567L,
new Pair<Double, Double>(7.2, 0.1),
10.1,
Arrays.asList(new GraphEdge(1L, 4.3, 2.1, 5L)),
Arrays.asList(new GraphEdge(1L, 4.3, 2.1, 5L)));
GraphAnalyticsRecord b = new GraphAnalyticsRecord(1, Arrays.asList(community_b));
GraphCommunity community_c = new GraphCommunity(1,
123L,
new Pair<Double, Double>(1.2, 3.4),
3.4,
3,
42L,
"",
false,
456L,
new Pair<Double, Double>(3.3, 0.1),
10.1,
Arrays.asList(new GraphEdge(0L, 4.3, 2.1, 3L)),
Arrays.asList(new GraphEdge(1L, 4.2, 2.0, 4L)));
GraphAnalyticsRecord c = new GraphAnalyticsRecord(1, Arrays.asList(community_c));
Assert.assertEquals(c, GraphAnalyticsRecord.minOfRecords(a, b));
}
//---- Max of two records
@Test
public void testMax() {
GraphAnalyticsRecord a = new GraphAnalyticsRecord(2, Arrays.asList(_sampleCommunity));
GraphCommunity community_b = new GraphCommunity(1,
567L,
new Pair<Double, Double>(3.3, 4.4),
3.4,
4,
54,
"blah4\tblah5",
true,
567L,
new Pair<Double, Double>(7.2, 0.1),
10.1,
Arrays.asList(new GraphEdge(1L, 4.3, 2.1, 5L)),
Arrays.asList(new GraphEdge(1L, 4.3, 2.1, 5L)));
GraphAnalyticsRecord b = new GraphAnalyticsRecord(1, Arrays.asList(community_b));
GraphCommunity community_c = new GraphCommunity(1,
567L,
new Pair<Double, Double>(3.3, 4.4),
5.6,
4,
54L,
"",
false,
567L,
new Pair<Double, Double>(7.2, 4.4),
10.2,
Arrays.asList(new GraphEdge(43L, 5.6, 7.8, 5L)),
Arrays.asList(new GraphEdge(44L, 5.5, 7.7, 6L)));
GraphAnalyticsRecord c = new GraphAnalyticsRecord(2, Arrays.asList(community_c));
Assert.assertEquals(c, GraphAnalyticsRecord.maxOfRecords(a, b));
}
}
| mit |
jordandrako/jordanjanzen.com | src/App/components/CloudImage/index.ts | 76 | export { default } from './CloudImage';
export * from './CloudImage.types';
| mit |
virhi/LazyMockApiBundle | src/Virhi/LazyMockApiBundle/Mock/Application/Command/DeleteListCommand.php | 993 | <?php
/**
* Created by PhpStorm.
* User: virhi
* Date: 01/02/15
* Time: 23:17
*/
namespace Virhi\LazyMockApiBundle\Mock\Application\Command;
use Virhi\Component\Command\CommandInterface;
use Virhi\Component\Command\Context\ContextInterface;
use Virhi\LazyMockApiBundle\Mock\Application\Context\Command\DeleteListContext;
use Virhi\LazyMockApiBundle\Mock\Infrastructure\Repository\Redis\MockRepository;
class DeleteListCommand implements CommandInterface
{
/**
* @var MockRepository
*/
protected $repository;
function __construct(MockRepository $repository)
{
$this->repository = $repository;
}
public function execute(ContextInterface $context)
{
if (!$context instanceof DeleteListContext) {
throw new InvalidContextException();
}
if ($context->isAll()) {
$this->repository->deleteAll();
} else {
$this->repository->deleteList($context->getKeys());
}
}
} | mit |
MatiasNAmendola/idioma | tests/autoloader.php | 417 | <?php
class Autoloader {
static public function loader($className) {
$filename = __DIR__."../../lib/" . str_replace('\\', '/', $className) . ".php";
if (file_exists($filename)) {
include($filename);
if (class_exists($className)) {
return TRUE;
}
}
return FALSE;
}
}
spl_autoload_register('Autoloader::loader'); | mit |
isolani-chess/web-client | src/app/chess/shared/index.ts | 110 | export * from './chess.service';
export * from './chessground-conversion-tables';
export * from './jcf-game';
| mit |
anjumrizwi/episerver | alloy/EPiServerAlloySite/Controllers/PreviewController.cs | 3701 | using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;
using EPiServer.Core;
using EPiServer.Framework.DataAnnotations;
using EPiServer.Framework.Web;
using EPiServerAlloySite.Business;
using EPiServerAlloySite.Business.Rendering;
using EPiServerAlloySite.Models.Pages;
using EPiServerAlloySite.Models.ViewModels;
using EPiServer.Web;
using EPiServer.Web.Mvc;
using EPiServer;
namespace EPiServerAlloySite.Controllers
{
/* Note: as the content area rendering on Alloy is customized we create ContentArea instances
* which we render in the preview view in order to provide editors with a preview which is as
* realistic as possible. In other contexts we could simply have passed the block to the
* view and rendered it using Html.RenderContentData */
[TemplateDescriptor(
Inherited = true,
TemplateTypeCategory = TemplateTypeCategories.MvcController, //Required as controllers for blocks are registered as MvcPartialController by default
Tags = new[] { RenderingTags.Preview, RenderingTags.Edit },
AvailableWithoutTag = false)]
[VisitorGroupImpersonation]
public class PreviewController : ActionControllerBase, IRenderTemplate<BlockData>, IModifyLayout
{
private readonly IContentLoader _contentLoader;
private readonly TemplateResolver _templateResolver;
private readonly DisplayOptions _displayOptions;
public PreviewController(IContentLoader contentLoader, TemplateResolver templateResolver, DisplayOptions displayOptions)
{
_contentLoader = contentLoader;
_templateResolver = templateResolver;
_displayOptions = displayOptions;
}
public ActionResult Index(IContent currentContent)
{
//As the layout requires a page for title etc we "borrow" the start page
var startPage = _contentLoader.Get<StartPage>(SiteDefinition.Current.StartPage);
var model = new PreviewModel(startPage, currentContent);
var supportedDisplayOptions = _displayOptions
.Select(x => new { Tag = x.Tag, Name = x.Name, Supported = SupportsTag(currentContent, x.Tag) })
.ToList();
if (supportedDisplayOptions.Any(x => x.Supported))
{
foreach (var displayOption in supportedDisplayOptions)
{
var contentArea = new ContentArea();
contentArea.Items.Add(new ContentAreaItem
{
ContentLink = currentContent.ContentLink
});
var areaModel = new PreviewModel.PreviewArea
{
Supported = displayOption.Supported,
AreaTag = displayOption.Tag,
AreaName = displayOption.Name,
ContentArea = contentArea
};
model.Areas.Add(areaModel);
}
}
return View(model);
}
private bool SupportsTag(IContent content, string tag)
{
var templateModel = _templateResolver.Resolve(HttpContext,
content.GetOriginalType(),
content,
TemplateTypeCategories.MvcPartial,
tag);
return templateModel != null;
}
public void ModifyLayout(LayoutModel layoutModel)
{
layoutModel.HideHeader = true;
layoutModel.HideFooter = true;
}
}
}
| mit |
clyp/Clyp-Android | app/src/main/java/info/gfruit/paperclyp/API/Structure/Playlist.java | 804 | package info.gfruit.paperclyp.API.Structure;
import java.util.List;
/**
* Generated with: http://www.jsonschema2pojo.org/
* By lite20
*/
public class Playlist {
private String playlistId;
private String featureSubmissionEligibility;
private List<Track> audioFiles;
private boolean modifiable;
private boolean contentAdministrator;
public Playlist() {
}
public String getPlaylistId() {
return playlistId;
}
public List<Track> getAudioFiles() {
return audioFiles;
}
public boolean isModifiable() {
return modifiable;
}
public boolean isContentAdministrator() {
return contentAdministrator;
}
public String getFeatureSubmissionEligibility() {
return featureSubmissionEligibility;
}
}
| mit |
itsjamesre/proevo | templates/project/manifest.rb | 658 | description "Project Evolution's custom Compass Extension"
stylesheet 'screen.sass', :media => 'screen, projection'
stylesheet 'partials/_base.sass'
stylesheet 'print.sass', :media => 'print'
stylesheet 'ie.sass', :media => 'screen, projection', :condition => "lt IE 8"
image 'grid.png'
javascript 'script.js'
html 'welcome.html.haml', :erb => true
file 'README'
help %Q{
This is a message that users will see if they type
compass help my_extension
You can use it to help them learn how to use your extension.
}
welcome_message %Q{
This is a message that users will see after they install this pattern.
Use this to tell users what to do next.
} | mit |
marksweiss/sofine | sofine/lib/utils/conf.py | 4100 | """Loads global sofine configuration in from a configuration file. The file must be stored
in the project root and must be called either `sofine.conf` or `example.sofine.conf`. If
`sofine.conf` is found it will be used over `example.sofine.conf`.
Current supported configuration keys are:
* `plugin_path` - The path to the user's plugins directory. This can be any reachable path
that sofine has permission to read.
* `http_plugin_url` - The user-defined base URL to call for user HTTP plugins.
* `data_format_plugin_path` - The path to the user's data format plugin directory. Data format plugins govern the data format (e.g. the default, JSON) of returned data sets.
* `rest_port` - The port for running the sofine REST server under the `localhost` domain.
The default value is `10000` defined in `example.sofine.conf`.
"""
from __future__ import print_function
import inspect
import sys
import json
import os
CUSTOM_PLUGIN_BASE_PATH = None
"""The user-defined plugin directory. The idea is that users of sofine simply install the
library, configure this value, and then can deploy, version control, write tests for and
otherwise manage their plugins in a separate directory, which sofine CLI and REST calls
transparently look in to load plugins. This value is defined in the JSON configuration file
`sofine.conf` under the key `plugin_path`.
"""
DEFAULT_DATA_FORMAT = 'format_json'
"""The default data format for deserializing input and serializing output. If the client call
does not specify a data format using the `--SF-d|--SF-data-format` argument, then JSON will be used."""
CUSTOM_DATA_FORMAT_PLUGIN_PATH = None
"""The user-defined output plugin directory. Users who want to define custom plugins can
define this value as an environment variable or config and deploy their output plugins there."""
REST_PORT = None
"""The port for running the sofine REST server under the `localhost` domain. This value
is defined in the JSON configuration file `sofine.conf` under the key `rest_port`. The default
value is defined in `example.sofine.conf` and will be used if the user doesn't override it in
`sofine.conf`.
"""
def get_plugin_conf():
plugin_conf_path = '/'.join(inspect.stack()[0][1].split('/')[:-4])
plugin_conf = None
try:
plugin_conf = json.load(open(plugin_conf_path + '/sofine.conf'))
except:
pass
return plugin_conf
def load_plugin_path(environ_var, conf_key, warn=True):
# Check environment variables for and prefer those if found
path = os.environ.get(environ_var)
if path:
sys.path.insert(0, path)
else:
plugin_conf = get_plugin_conf()
if plugin_conf:
path = plugin_conf[conf_key]
sys.path.insert(0, path)
if not path and warn:
print('Plugin Path not defined in {0} environment variable or {1} key in "sofine.conf" in sofine root directory'.format(environ_var, conf_key), file=sys.stderr)
else:
return path
# Add the plugins directory to the system path so the dynamic module load
# finds any plugins in their and load_module just works
PLUGIN_BASE_PATH = '/'.join(inspect.stack()[0][1].split('/')[:-3]) + '/plugins'
sys.path.insert(0, PLUGIN_BASE_PATH)
CUSTOM_PLUGIN_BASE_PATH = load_plugin_path('SOFINE_PLUGIN_PATH', 'plugin_path')
CUSTOM_HTTP_PLUGIN_URL = load_plugin_path('SOFINE_HTTP_PLUGIN_URL', 'http_plugin_url')
DATA_FORMAT_PLUGIN_BASE_PATH = '/'.join(inspect.stack()[0][1].split('/')[:-3]) + '/data_format_plugins'
sys.path.insert(0, DATA_FORMAT_PLUGIN_BASE_PATH)
# Check environment variables for and prefer those if found
warn = False
CUSTOM_DATA_FORMAT_PLUGIN_PATH = load_plugin_path('SOFINE_DATA_FORMAT_PLUGIN_PATH', 'data_format_plugin_path', warn)
REST_PORT = os.environ.get('SOFINE_REST_PORT')
if REST_PORT:
REST_PORT = int(REST_PORT)
else:
plugin_conf = get_plugin_conf()
REST_PORT = plugin_conf['rest_port']
if not REST_PORT:
print('REST port not defined in SOFINE_REST_PORT environment variable or "rest_port" key in "sofine.conf" in sofine root directory', file=sys.stderr)
| mit |
yogeshsaroya/new-cdnjs | ajax/libs/aight/1.1.0/aight.min.js | 130 | version https://git-lfs.github.com/spec/v1
oid sha256:e55a037a1be6a2006a8110195d3c16d1b26bf876caec0de4743fc065096eeb2c
size 12828
| mit |
yu3mars/procon | atcoder/others/code_festival/2015/quala/a/a/Properties/AssemblyInfo.cs | 1598 | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。
// アセンブリに関連付けられている情報を変更するには、
// これらの属性値を変更してください。
[assembly: AssemblyTitle("a")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("a")]
[assembly: AssemblyCopyright("Copyright © 2015")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// ComVisible を false に設定すると、その型はこのアセンブリ内で COM コンポーネントから
// 参照不可能になります。COM からこのアセンブリ内の型にアクセスする場合は、
// その型の ComVisible 属性を true に設定してください。
[assembly: ComVisible(false)]
// 次の GUID は、このプロジェクトが COM に公開される場合の、typelib の ID です
[assembly: Guid("a60294e9-249d-4e82-88fd-a76faf02310e")]
// アセンブリのバージョン情報は、以下の 4 つの値で構成されています:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// すべての値を指定するか、下のように '*' を使ってビルドおよびリビジョン番号を
// 既定値にすることができます:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
| mit |