text stringlengths 2 1.04M | meta dict |
|---|---|
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Project16_4</string>
<string name="action_settings">Settings</string>
<string name="hello_world">Hello world!</string>
</resources>
| {
"content_hash": "ac839a3991529e9cb3109db3d2bba644",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 52,
"avg_line_length": 27.625,
"alnum_prop": 0.6742081447963801,
"repo_name": "00wendi00/MyProject",
"id": "a949c4ec5cfb01d12a2d5c4deaf8fea47a204e6b",
"size": "221",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "W_eclipse1/Project16_4/res/values/strings.xml",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Assembly",
"bytes": "430521"
},
{
"name": "C",
"bytes": "17868156"
},
{
"name": "C++",
"bytes": "5054355"
},
{
"name": "CMake",
"bytes": "7325"
},
{
"name": "CSS",
"bytes": "3874611"
},
{
"name": "Groff",
"bytes": "409306"
},
{
"name": "HTML",
"bytes": "7833410"
},
{
"name": "Java",
"bytes": "13395187"
},
{
"name": "JavaScript",
"bytes": "2319278"
},
{
"name": "Logos",
"bytes": "6864"
},
{
"name": "M",
"bytes": "20108"
},
{
"name": "Makefile",
"bytes": "2540551"
},
{
"name": "Objective-C",
"bytes": "546363"
},
{
"name": "Perl",
"bytes": "11763"
},
{
"name": "Python",
"bytes": "3285"
},
{
"name": "R",
"bytes": "8138"
},
{
"name": "Rebol",
"bytes": "3080"
},
{
"name": "Shell",
"bytes": "1020448"
},
{
"name": "SuperCollider",
"bytes": "8013"
},
{
"name": "XSLT",
"bytes": "220483"
}
],
"symlink_target": ""
} |
import {Component,ElementRef,AfterViewInit,OnDestroy,Input,Output,Renderer,EventEmitter} from '@angular/core';
import {DomHandler} from '../dom/domhandler';
import {MenuItem} from '../common';
import {Location} from '@angular/common';
import {Router} from '@angular/router';
@Component({
selector: 'p-tieredMenuSub',
template: `
<ul [ngClass]="{'ui-helper-reset':root, 'ui-widget-content ui-corner-all ui-helper-clearfix ui-menu-child ui-shadow':!root}" class="ui-menu-list"
(click)="listClick($event)">
<template ngFor let-child [ngForOf]="(root ? item : item.items)">
<li #item [ngClass]="{'ui-menuitem ui-widget ui-corner-all':true,'ui-menu-parent':child.items,'ui-menuitem-active':item==activeItem}"
(mouseenter)="onItemMouseEnter($event, item)" (mouseleave)="onItemMouseLeave($event, item)">
<a #link [href]="child.url||'#'" class="ui-menuitem-link ui-corner-all" [ngClass]="{'ui-state-hover':link==activeLink}" (click)="itemClick($event, child)">
<span class="ui-submenu-icon fa fa-fw fa-caret-right" *ngIf="child.items"></span>
<span class="ui-menuitem-icon fa fa-fw" *ngIf="child.icon" [ngClass]="child.icon"></span>
<span class="ui-menuitem-text">{{child.label}}</span>
</a>
<p-tieredMenuSub class="ui-submenu" [item]="child" *ngIf="child.items"></p-tieredMenuSub>
</li>
</template>
</ul>
`,
directives: [TieredMenuSub],
providers: [DomHandler]
})
export class TieredMenuSub {
@Input() item: MenuItem;
@Input() root: boolean;
constructor(private domHandler: DomHandler, private router: Router, private location: Location) {}
activeItem: any;
activeLink: any;
onItemMouseEnter(event, item) {
this.activeItem = item;
this.activeLink = item.children[0];
let nextElement = item.children[0].nextElementSibling;
if(nextElement) {
let sublist = nextElement.children[0];
sublist.style.zIndex = ++DomHandler.zindex;
sublist.style.top = '0px';
sublist.style.left = this.domHandler.getOuterWidth(item.children[0]) + 'px';
}
}
onItemMouseLeave(event, link) {
this.activeItem = null;
this.activeLink = null;
}
itemClick(event, item: MenuItem) {
if(!item.url||item.routerLink) {
event.preventDefault();
}
if(item.command) {
if(!item.eventEmitter) {
item.eventEmitter = new EventEmitter();
item.eventEmitter.subscribe(item.command);
}
item.eventEmitter.emit(event);
}
if(item.routerLink) {
this.router.navigate(item.routerLink);
}
}
listClick(event) {
this.activeItem = null;
this.activeLink = null;
}
}
@Component({
selector: 'p-tieredMenu',
template: `
<div [ngClass]="{'ui-tieredmenu ui-menu ui-widget ui-widget-content ui-corner-all ui-helper-clearfix':true,'ui-menu-dynamic ui-shadow':popup}"
[class]="styleClass" [ngStyle]="style">
<p-tieredMenuSub [item]="model" root="root"></p-tieredMenuSub>
</div>
`,
providers: [DomHandler],
directives: [TieredMenuSub]
})
export class TieredMenu implements AfterViewInit,OnDestroy {
@Input() model: MenuItem[];
@Input() popup: boolean;
@Input() style: any;
@Input() styleClass: string;
container: any;
documentClickListener: any;
preventDocumentDefault: any;
constructor(private el: ElementRef, private domHandler: DomHandler, private renderer: Renderer) {}
ngAfterViewInit() {
this.container = this.el.nativeElement.children[0];
if(this.popup) {
this.documentClickListener = this.renderer.listenGlobal('body', 'click', () => {
if(!this.preventDocumentDefault) {
this.hide();
}
this.preventDocumentDefault = false;
});
}
}
toggle(event) {
if(this.container.offsetParent)
this.hide();
else
this.show(event);
this.preventDocumentDefault = true;
}
show(event) {
this.container.style.display = 'block';
this.domHandler.absolutePosition(this.container, event.target);
this.domHandler.fadeIn(this.container, 250);
}
hide() {
this.container.style.display = 'none';
}
unsubscribe(item: any) {
if(item.eventEmitter) {
item.eventEmitter.unsubscribe();
}
if(item.items) {
for(let childItem of item.items) {
this.unsubscribe(childItem);
}
}
}
ngOnDestroy() {
if(this.popup) {
this.documentClickListener();
}
if(this.model) {
for(let item of this.model) {
this.unsubscribe(item);
}
}
}
} | {
"content_hash": "db6b1236f35fb919f7761e6cb22ce648",
"timestamp": "",
"source": "github",
"line_count": 168,
"max_line_length": 175,
"avg_line_length": 31.410714285714285,
"alnum_prop": 0.5575137388667804,
"repo_name": "AjaySharm/primeng",
"id": "12ed1dea9a4d90a81f3be7bfad83ff0962a9a402",
"size": "5278",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "components/tieredmenu/tieredmenu.ts",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "1116434"
},
{
"name": "HTML",
"bytes": "867244"
},
{
"name": "JavaScript",
"bytes": "2672232"
},
{
"name": "TypeScript",
"bytes": "512854"
}
],
"symlink_target": ""
} |
package spark
import collection.mutable
import serializer.Serializer
import akka.actor.{Actor, ActorRef, Props, ActorSystemImpl, ActorSystem}
import akka.remote.RemoteActorRefProvider
import spark.broadcast.BroadcastManager
import spark.storage.BlockManager
import spark.storage.BlockManagerMaster
import spark.network.ConnectionManager
import spark.serializer.{Serializer, SerializerManager}
import spark.util.AkkaUtils
import spark.api.python.PythonWorkerFactory
/**
* Holds all the runtime environment objects for a running Spark instance (either master or worker),
* including the serializer, Akka actor system, block manager, map output tracker, etc. Currently
* Spark code finds the SparkEnv through a thread-local variable, so each thread that accesses these
* objects needs to have the right SparkEnv set. You can get the current environment with
* SparkEnv.get (e.g. after creating a SparkContext) and set it with SparkEnv.set.
*/
class SparkEnv (
val executorId: String,
val actorSystem: ActorSystem,
val serializerManager: SerializerManager,
val serializer: Serializer,
val closureSerializer: Serializer,
val cacheManager: CacheManager,
val mapOutputTracker: MapOutputTracker,
val shuffleFetcher: ShuffleFetcher,
val broadcastManager: BroadcastManager,
val blockManager: BlockManager,
val connectionManager: ConnectionManager,
val httpFileServer: HttpFileServer,
val sparkFilesDir: String,
// To be set only as part of initialization of SparkContext.
// (executorId, defaultHostPort) => executorHostPort
// If executorId is NOT found, return defaultHostPort
var executorIdToHostPort: Option[(String, String) => String]) {
private val pythonWorkers = mutable.HashMap[(String, Map[String, String]), PythonWorkerFactory]()
def stop() {
pythonWorkers.foreach { case(key, worker) => worker.stop() }
httpFileServer.stop()
mapOutputTracker.stop()
shuffleFetcher.stop()
broadcastManager.stop()
blockManager.stop()
blockManager.master.stop()
actorSystem.shutdown()
// Unfortunately Akka's awaitTermination doesn't actually wait for the Netty server to shut
// down, but let's call it anyway in case it gets fixed in a later release
actorSystem.awaitTermination()
}
def createPythonWorker(pythonExec: String, envVars: Map[String, String]): java.net.Socket = {
synchronized {
pythonWorkers.getOrElseUpdate((pythonExec, envVars), new PythonWorkerFactory(pythonExec, envVars)).create()
}
}
def resolveExecutorIdToHostPort(executorId: String, defaultHostPort: String): String = {
val env = SparkEnv.get
if (env.executorIdToHostPort.isEmpty) {
// default to using host, not host port. Relevant to non cluster modes.
return defaultHostPort
}
env.executorIdToHostPort.get(executorId, defaultHostPort)
}
}
object SparkEnv extends Logging {
private val env = new ThreadLocal[SparkEnv]
def set(e: SparkEnv) {
env.set(e)
}
def get: SparkEnv = {
env.get()
}
def createFromSystemProperties(
executorId: String,
hostname: String,
port: Int,
isDriver: Boolean,
isLocal: Boolean): SparkEnv = {
val (actorSystem, boundPort) = AkkaUtils.createActorSystem("spark", hostname, port)
// Bit of a hack: If this is the driver and our port was 0 (meaning bind to any free port),
// figure out which port number Akka actually bound to and set spark.driver.port to it.
if (isDriver && port == 0) {
System.setProperty("spark.driver.port", boundPort.toString)
}
// set only if unset until now.
if (System.getProperty("spark.hostPort", null) == null) {
if (!isDriver){
// unexpected
Utils.logErrorWithStack("Unexpected NOT to have spark.hostPort set")
}
Utils.checkHost(hostname)
System.setProperty("spark.hostPort", hostname + ":" + boundPort)
}
val classLoader = Thread.currentThread.getContextClassLoader
// Create an instance of the class named by the given Java system property, or by
// defaultClassName if the property is not set, and return it as a T
def instantiateClass[T](propertyName: String, defaultClassName: String): T = {
val name = System.getProperty(propertyName, defaultClassName)
Class.forName(name, true, classLoader).newInstance().asInstanceOf[T]
}
val serializerManager = new SerializerManager
val serializer = serializerManager.setDefault(
System.getProperty("spark.serializer", "spark.JavaSerializer"))
val closureSerializer = serializerManager.get(
System.getProperty("spark.closure.serializer", "spark.JavaSerializer"))
def registerOrLookup(name: String, newActor: => Actor): ActorRef = {
if (isDriver) {
logInfo("Registering " + name)
actorSystem.actorOf(Props(newActor), name = name)
} else {
val driverHost: String = System.getProperty("spark.driver.host", "localhost")
val driverPort: Int = System.getProperty("spark.driver.port", "7077").toInt
Utils.checkHost(driverHost, "Expected hostname")
val url = "akka://spark@%s:%s/user/%s".format(driverHost, driverPort, name)
logInfo("Connecting to " + name + ": " + url)
actorSystem.actorFor(url)
}
}
val blockManagerMaster = new BlockManagerMaster(registerOrLookup(
"BlockManagerMaster",
new spark.storage.BlockManagerMasterActor(isLocal)))
val blockManager = new BlockManager(executorId, actorSystem, blockManagerMaster, serializer)
val connectionManager = blockManager.connectionManager
val broadcastManager = new BroadcastManager(isDriver)
val cacheManager = new CacheManager(blockManager)
// Have to assign trackerActor after initialization as MapOutputTrackerActor
// requires the MapOutputTracker itself
val mapOutputTracker = new MapOutputTracker()
mapOutputTracker.trackerActor = registerOrLookup(
"MapOutputTracker",
new MapOutputTrackerActor(mapOutputTracker))
val shuffleFetcher = instantiateClass[ShuffleFetcher](
"spark.shuffle.fetcher", "spark.BlockStoreShuffleFetcher")
val httpFileServer = new HttpFileServer()
httpFileServer.initialize()
System.setProperty("spark.fileserver.uri", httpFileServer.serverUri)
// Set the sparkFiles directory, used when downloading dependencies. In local mode,
// this is a temporary directory; in distributed mode, this is the executor's current working
// directory.
val sparkFilesDir: String = if (isDriver) {
Utils.createTempDir().getAbsolutePath
} else {
"."
}
// Warn about deprecated spark.cache.class property
if (System.getProperty("spark.cache.class") != null) {
logWarning("The spark.cache.class property is no longer being used! Specify storage " +
"levels using the RDD.persist() method instead.")
}
new SparkEnv(
executorId,
actorSystem,
serializerManager,
serializer,
closureSerializer,
cacheManager,
mapOutputTracker,
shuffleFetcher,
broadcastManager,
blockManager,
connectionManager,
httpFileServer,
sparkFilesDir,
None)
}
}
| {
"content_hash": "8b3e9800280a4df8d217c819db49a0b9",
"timestamp": "",
"source": "github",
"line_count": 200,
"max_line_length": 113,
"avg_line_length": 36.265,
"alnum_prop": 0.716531090583207,
"repo_name": "baeeq/incubator-spark",
"id": "7ccde2e8182f3a528609ef16f5ef16c666593ec4",
"size": "7253",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "core/src/main/scala/spark/SparkEnv.scala",
"mode": "33188",
"license": "bsd-3-clause",
"language": [],
"symlink_target": ""
} |
package edu.utah.bmi.nlp.rush.core;
import edu.utah.bmi.nlp.core.*;
import edu.utah.bmi.nlp.fastcner.FastCNER;
import java.util.*;
import java.util.logging.Level;
import java.util.logging.Logger;
import static java.lang.Character.isAlphabetic;
import static java.lang.Character.isDigit;
import edu.utah.bmi.nlp.fastcner.FastCRule;
import edu.utah.bmi.nlp.rush.core.Marker.MARKERTYPE;
/**
* Deprecated. RuSH3 has a slight better speed (around 0.5%).
*/
@Deprecated
public class RuSH2 implements RuSHInf {
protected static Logger logger = IOUtil.getLogger(RuSH2.class);
protected static FastCRule fcrp;
protected static final String STBEGIN = "stbegin", STEND = "stend";
protected HashMap<String, ArrayList<Span>> result;
public boolean autofixGap = true;
protected static final String TOKENBEGIN = "tobegin", TOKENEND = "toend";
public boolean tokenRuleEnabled = false;
public boolean fillTextInSpan = false;
@Deprecated
protected boolean debug = false;
protected String mLanguage;
protected boolean includePunctuation = false;
public RuSH2(String rule) {
initiate(rule);
}
public void initiate(String rule) {
Object[] values = RuSHFactory.createFastRuSHRule(rule);
fcrp = (FastCRule) values[0];
tokenRuleEnabled = (boolean) values[1];
mLanguage = (String) values[2];
}
protected void fixGap(String text, int previousEnd, int thisBegin) {
int counter = 0, begin = 0, end = 0;
char[] gapChars = text.substring(previousEnd, thisBegin).toCharArray();
for (int i = 0; i < thisBegin - previousEnd; i++) {
char thisChar = gapChars[i];
if (isAlphabetic(thisChar) || isDigit(thisChar)) {
end = i;
counter++;
if (begin == 0)
begin = i;
} else if (WildCardChecker.isPunctuation(thisChar)) {
end = i;
}
}
// An arbitrary number to decide whether the gap is likely to be a sentence or not
if (counter > 5) {
begin += previousEnd;
end = end + previousEnd + 1;
Span sentence = new Span(begin, end);
}
}
public ArrayList<Span> segToSentenceSpans(String text) {
ArrayList<Span> sentences = new ArrayList<>();
result = fcrp.processString(text);
if (logger.isLoggable(Level.FINE)) {
text = text.replaceAll("\n", " ");
for (Map.Entry<String, ArrayList<Span>> ent : result.entrySet()) {
logger.finer(ent.getKey());
for (Span span : ent.getValue()) {
Rule rule = fcrp.getRule(span.ruleId);
logger.finer("\t" + span.begin + "-" + span.end + ":" + span.score + "\t" +
text.substring(0, span.begin) + "<" + text.substring(span.begin, span.begin + 1)
+ ">\t[Rule " + rule.id + ":\t" + rule.rule + "\t" + rule.ruleName + "\t" + rule.score + "\t" + rule.type + "]");
}
}
}
// align begins and ends
ArrayList<Span> stbegins = result.get(STBEGIN);
ArrayList<Span> stends = result.get(STEND);
ArrayList<Marker> markers = createMarkers(stbegins, stends, text);
Collections.sort(markers);
boolean sentenceStarted = false;
int stBegin = 0;
for (int i = 0; i < markers.size(); i++) {
Marker thisMarker = markers.get(i);
if (sentenceStarted) {
if (autofixGap && sentences.size() > 0) {
fixGap(text, sentences.get(sentences.size() - 1).end, stBegin);
}
if (thisMarker.type == MARKERTYPE.END) {
sentences.add(new Span(stBegin, thisMarker.getPosition()));
sentenceStarted = false;
}
} else {
if (thisMarker.type == MARKERTYPE.BEGIN) {
stBegin = thisMarker.getPosition();
sentenceStarted = true;
} else if (sentences.size() > 0) {
int stEnd = thisMarker.getPosition();
// right trim
while (stEnd >= 1 && (Character.isWhitespace(text.charAt(stEnd - 1)) || (int) text.charAt(stEnd - 1) == 160)) {
stEnd--;
}
sentences.get(sentences.size() - 1).setEnd(thisMarker.getPosition());
}
}
}
if (logger.isLoggable(Level.FINE)) {
for (Span sentence : sentences) {
logger.fine("Sentence(" + sentence.begin + "-" + sentence.end + "):\t" + ">" + text.substring(sentence.begin, sentence.end) + "<");
}
}
return sentences;
}
private ArrayList<Marker> createMarkers(ArrayList<Span> begins, ArrayList<Span> ends, String text) {
ArrayList<Marker> markers = new ArrayList<>();
if (begins == null) {
markers.add(new Marker(0, MARKERTYPE.BEGIN));
if (ends != null)
addEndMarkers(ends, markers);
else
markers.add(new Marker(text.length() - 0.4f, MARKERTYPE.END));
} else {
if (ends == null) {
addBeginMarkers(begins, markers);
markers.add(new Marker(text.length() - 0.4f, MARKERTYPE.END));
} else {
Iterator<Span> bIter = begins.iterator();
Iterator<Span> eIter = ends.iterator();
// create a relatively sorted list to reduce the sorting time.
while (bIter.hasNext() || eIter.hasNext()) {
if (bIter.hasNext()) {
Span beginSpan = bIter.next();
markers.add(new Marker(beginSpan.getBegin(), MARKERTYPE.BEGIN));
} else {
while (eIter.hasNext()) {
Span endSpan = eIter.next();
markers.add(new Marker(endSpan.getBegin() + 0.6f, MARKERTYPE.END));
}
}
if (eIter.hasNext()) {
Span endSpan = eIter.next();
markers.add(new Marker(endSpan.getBegin() + 0.6f, MARKERTYPE.END));
} else {
while (bIter.hasNext()) {
Span beginSpan = bIter.next();
markers.add(new Marker(beginSpan.getBegin(), MARKERTYPE.BEGIN));
}
}
}
}
}
return markers;
}
private void addBeginMarkers(ArrayList<Span> spans, ArrayList<Marker> markers) {
for (Span stend : spans) {
if (fcrp.getRule(stend.ruleId).type == DeterminantValueSet.Determinants.ACTUAL)
markers.add(new Marker(stend.begin, MARKERTYPE.BEGIN));
}
}
private void addEndMarkers(ArrayList<Span> spans, ArrayList<Marker> markers) {
for (Span stend : spans) {
if (fcrp.getRule(stend.ruleId).type == DeterminantValueSet.Determinants.ACTUAL)
markers.add(new Marker(stend.end - 0.4f, MARKERTYPE.END));
}
}
public ArrayList<ArrayList<Span>> tokenize(ArrayList<Span> sentences, ArrayList<Span> tobegins, ArrayList<Span> toends, String text) {
ArrayList<ArrayList<Span>> tokenss = new ArrayList<>();
Collections.sort(tobegins);
Collections.sort(toends);
tokenss.add(new ArrayList<>());
ArrayList<Span> tokens = tokenss.get(tokenss.size() - 1);
int toBegin = 0;
boolean tokenStarted = false;
int toEnd = 0, toBeginId, toEndId = 0;
int sentenceId = 0;
Span currentSentence = sentences.get(sentenceId);
for (toBeginId = 0; toBeginId < tobegins.size(); toBeginId++) {
if (sentenceId == sentences.size())
break;
if (!tokenStarted) {
toBegin = tobegins.get(toBeginId).begin;
if (fcrp.getRule(tobegins.get(toBeginId).ruleId).type == DeterminantValueSet.Determinants.PSEUDO
|| toBegin < toEnd)
continue;
tokenStarted = true;
} else if (tobegins.get(toBeginId).begin < toEnd) {
continue;
}
for (int k = toEndId; k < toends.size(); k++) {
if (fcrp.getRule(toends.get(k).ruleId).type == DeterminantValueSet.Determinants.PSEUDO)
continue;
if (toBeginId < tobegins.size() - 1 && k < toends.size() - 1
&& tobegins.get(toBeginId + 1).getBegin() < toends.get(k).begin + 1) {
break;
}
toEndId = k;
toEnd = toends.get(k).end;
if (toEnd < toBegin)
// if this TOKENEND is for previous token, move the pointer to the next
continue;
else if (toEnd == toBegin) {
if (tokens.size() > 0) {
Span lastToken = tokens.get(tokens.size() - 1);
lastToken.setEnd(toEnd);
lastToken.setText(text.substring(lastToken.begin, lastToken.end));
tokens.set(tokens.size() - 1, lastToken);
} else {
ArrayList<Span> previousSentence = tokenss.get(tokenss.size() - 2);
Span lastToken = previousSentence.get(previousSentence.size() - 1);
lastToken.setEnd(toEnd);
tokens.set(tokens.size() - 1, lastToken);
lastToken.setText(text.substring(lastToken.begin, lastToken.end));
previousSentence.set(previousSentence.size() - 1, lastToken);
}
continue;
} else if (tokenStarted) {
// if current status is after a token TOKENBEGIN marker
if (toBegin > currentSentence.end) {
sentenceId++;
currentSentence = sentences.get(sentenceId);
tokenss.add(new ArrayList<>());
tokens = tokenss.get(tokenss.size() - 1);
} else if (toEnd > currentSentence.end) {
// if the token is not appropriately tokenized.
if (fillTextInSpan)
tokens.add(new Span(toBegin, currentSentence.end, text.substring(toBegin, currentSentence.end)));
else
tokens.add(new Span(toBegin, currentSentence.end));
sentenceId++;
currentSentence = sentences.get(sentenceId);
tokenss.add(new ArrayList<>());
tokens = tokenss.get(tokenss.size() - 1);
toBegin = currentSentence.begin;
}
if (fillTextInSpan) {
tokens.add(new Span(toBegin, toEnd, text.substring(toBegin, toEnd)));
} else
tokens.add(new Span(toBegin, toEnd));
tokenStarted = false;
if (toBeginId == tobegins.size() - 1 ||
(k < toends.size() - 1
&& tobegins.get(toBeginId + 1).getBegin() > toends.get(k + 1).getEnd()))
continue;
toEndId++;
break;
} else {
// if current status is after a token TOKENEND marker, then replace the last output
Span tmp;
if (fillTextInSpan)
tmp = new Span(toBegin, toEnd, text.substring(toBegin, toEnd));
else
tmp = new Span(toBegin, toEnd);
if (tokens.size() > 0) {
tokens.set(tokens.size() - 1, tmp);
} else {
ArrayList<Span> previousSentence = tokenss.get(tokenss.size() - 2);
previousSentence.set(previousSentence.size() - 1, tmp);
}
tokenStarted = false;
}
}
}
int lastSentence = tokenss.size() - 1;
if (tokenss.get(lastSentence).size() == 0) {
tokenss.remove(lastSentence);
}
return tokenss;
}
public ArrayList<ArrayList<Span>> simpleTokenize(ArrayList<Span> sentences, String text) {
ArrayList<ArrayList<Span>> tokenss = new ArrayList<>();
for (Span sentence : sentences) {
ArrayList<Span> tokens;
int stBegin = sentence.begin;
if (mLanguage.equals("cn")) {
tokens = SimpleParser.tokenizeDecimalSmart(text.substring(sentence.begin, sentence.end), includePunctuation, stBegin);
} else {
tokens = SmartChineseCharacterSplitter.tokenizeDecimalSmart(text.substring(sentence.begin, sentence.end), includePunctuation, stBegin);
}
tokenss.add(tokens);
}
return tokenss;
}
public ArrayList<ArrayList<Span>> tokenize(ArrayList<Span> sentences, String text) {
ArrayList<Span> tobegins = result.get(TOKENBEGIN);
ArrayList<Span> toends = result.get(TOKENEND);
if (tokenRuleEnabled) {
return tokenize(sentences, tobegins, toends, text);
} else {
return simpleTokenize(sentences, text);
}
}
public void setIncludePunctuation(boolean includePunctuation){
this.includePunctuation=includePunctuation;
}
@Deprecated
public void setDebug(boolean debug) {
this.debug = debug;
}
}
| {
"content_hash": "db90fe4ed7143d6c457531acbd71e393",
"timestamp": "",
"source": "github",
"line_count": 331,
"max_line_length": 151,
"avg_line_length": 42.398791540785496,
"alnum_prop": 0.5184551802764714,
"repo_name": "jianlins/RuSH",
"id": "8ade0b9d3b4a82539ce45e845a41235ba434daef",
"size": "14034",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/main/java/edu/utah/bmi/nlp/rush/core/RuSH2.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "118725"
}
],
"symlink_target": ""
} |
/****** Object: Table [dbo].[OffchainChannel] Script Date: 12/17/2016 1:46:25 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[OffchainChannel](
[ChannelId] [bigint] IDENTITY(1,1) NOT NULL,
[ReplacedBy] [bigint] NULL,
[unsignedTransactionHash] [varchar](64) NOT NULL,
[Version] [timestamp] NOT NULL,
CONSTRAINT [PK_OffchainChannel] PRIMARY KEY CLUSTERED
(
[ChannelId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OffchainChannel] WITH CHECK ADD CONSTRAINT [FK_OffchainChannel_OffchainChannel] FOREIGN KEY([ReplacedBy])
REFERENCES [dbo].[OffchainChannel] ([ChannelId])
GO
ALTER TABLE [dbo].[OffchainChannel] CHECK CONSTRAINT [FK_OffchainChannel_OffchainChannel]
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'This table specifies the chaannel properties, at the start it just specifies which channel replaced the previous one, later it may be extended.' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OffchainChannel'
GO
/****** Object: Table [dbo].[MultisigChannel] Script Date: 12/17/2016 1:47:21 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[MultisigChannel](
[MultisigAddress] [varchar](35) NOT NULL,
[ChannelId] [bigint] NOT NULL,
[Version] [timestamp] NOT NULL,
CONSTRAINT [PK_MultisigChannel] PRIMARY KEY CLUSTERED
(
[MultisigAddress] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MultisigChannel] WITH CHECK ADD CONSTRAINT [FK_MultisigChannel_OffchainChannel] FOREIGN KEY([ChannelId])
REFERENCES [dbo].[OffchainChannel] ([ChannelId])
GO
ALTER TABLE [dbo].[MultisigChannel] CHECK CONSTRAINT [FK_MultisigChannel_OffchainChannel]
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Since each multisig may have uncompleted channel setups and could be closed and extended, a reference update would be a proper solution' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MultisigChannel'
GO
/****** Object: Table [dbo].[ChannelCoin] Script Date: 12/17/2016 1:45:45 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[ChannelCoin](
[Id] [bigint] IDENTITY(1,1) NOT NULL,
[TransactionId] [varchar](64) NOT NULL,
[OutputNumber] [int] NOT NULL,
[ReservedForChannel] [bigint] NOT NULL,
[ReservationFinalized] [bit] NULL,
[ReservationTimedout] [bit] NULL,
[ReservationCreationDate] [datetime] NOT NULL,
[ReservedForMultisig] [nchar](35) NOT NULL,
[ReservationEndDate] [datetime] NOT NULL,
[Version] [timestamp] NOT NULL,
CONSTRAINT [PK_ChannelCoin] PRIMARY KEY CLUSTERED
(
[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ChannelCoin] WITH CHECK ADD CONSTRAINT [FK_ChannelCoin_OffchainChannel] FOREIGN KEY([ReservedForChannel])
REFERENCES [dbo].[OffchainChannel] ([ChannelId])
GO
ALTER TABLE [dbo].[ChannelCoin] CHECK CONSTRAINT [FK_ChannelCoin_OffchainChannel]
GO
| {
"content_hash": "a2a55ee50c27dedbbd53833ccd10fc91",
"timestamp": "",
"source": "github",
"line_count": 92,
"max_line_length": 306,
"avg_line_length": 35.94565217391305,
"alnum_prop": 0.7405503477472029,
"repo_name": "LykkeCity/WalletBackEnd",
"id": "074fc86d488ec3af8acee9465490127ea5c21148",
"size": "3307",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "DB/20161217Migration.sql",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "86"
},
{
"name": "C#",
"bytes": "1154148"
},
{
"name": "JavaScript",
"bytes": "213"
},
{
"name": "PowerShell",
"bytes": "183"
}
],
"symlink_target": ""
} |
package net.reini.rmi;
import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;
public class EchoServiceClient {
public static void main(String[] args) {
try {
RemoteEchoService echo = (RemoteEchoService)Naming.lookup("rmi://localhost:" + args[0] + "/echoService");
System.out.println(echo.echo(args[1]));
} catch (MalformedURLException | RemoteException | NotBoundException e) {
e.printStackTrace();
}
}
}
| {
"content_hash": "f2b6a0cefaa3e417cc09bbe20c564256",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 111,
"avg_line_length": 24.80952380952381,
"alnum_prop": 0.7140115163147792,
"repo_name": "reinhapa/Sandbox",
"id": "ca950773e2556492542831c3881d795d96975935",
"size": "1674",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/main/java/net/reini/rmi/EchoServiceClient.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Dockerfile",
"bytes": "53"
},
{
"name": "Gherkin",
"bytes": "104"
},
{
"name": "Java",
"bytes": "192968"
}
],
"symlink_target": ""
} |
package net.webservicex;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;
/**
* This class was generated by Apache CXF 3.1.6
* 2016-06-07T21:25:35.276+03:00
* Generated source version: 3.1.6
*
*/
@WebService(targetNamespace = "http://www.webservicex.net/", name = "GeoIPServiceSoap")
@XmlSeeAlso({ObjectFactory.class})
public interface GeoIPServiceSoap {
/**
* GeoIPService - GetGeoIP enables you to easily look up countries by IP addresses
*/
@WebMethod(operationName = "GetGeoIP", action = "http://www.webservicex.net/GetGeoIP")
@RequestWrapper(localName = "GetGeoIP", targetNamespace = "http://www.webservicex.net/", className = "net.webservicex.GetGeoIP")
@ResponseWrapper(localName = "GetGeoIPResponse", targetNamespace = "http://www.webservicex.net/", className = "net.webservicex.GetGeoIPResponse")
@WebResult(name = "GetGeoIPResult", targetNamespace = "http://www.webservicex.net/")
public net.webservicex.GeoIP getGeoIP(
@WebParam(name = "IPAddress", targetNamespace = "http://www.webservicex.net/")
java.lang.String ipAddress
);
/**
* GeoIPService - GetGeoIPContext enables you to easily look up countries by Context
*/
@WebMethod(operationName = "GetGeoIPContext", action = "http://www.webservicex.net/GetGeoIPContext")
@RequestWrapper(localName = "GetGeoIPContext", targetNamespace = "http://www.webservicex.net/", className = "net.webservicex.GetGeoIPContext")
@ResponseWrapper(localName = "GetGeoIPContextResponse", targetNamespace = "http://www.webservicex.net/", className = "net.webservicex.GetGeoIPContextResponse")
@WebResult(name = "GetGeoIPContextResult", targetNamespace = "http://www.webservicex.net/")
public net.webservicex.GeoIP getGeoIPContext();
}
| {
"content_hash": "093ecc8a86b79be70ccbff0fb8c2fb1a",
"timestamp": "",
"source": "github",
"line_count": 41,
"max_line_length": 163,
"avg_line_length": 47.68292682926829,
"alnum_prop": 0.7355498721227621,
"repo_name": "dfoka/java_course",
"id": "574b5dcbd612423ddc165b345df5365589164dc7",
"size": "1955",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "soap-sample/src/main/java/net/webservicex/GeoIPServiceSoap.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "11165"
}
],
"symlink_target": ""
} |
package v1alpha1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
//+kubebuilder:object:root=true
//+kubebuilder:subresource:status
//+kubebuilder:printcolumn:name="Ready",type=string,JSONPath=`.status.conditions[?(@.type=='Ready')].reason`
// WorkloadIdentityBinding
type WorkloadIdentityBinding struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec WorkloadIdentityBindingSpec `json:"spec,omitempty"`
Status WorkloadIdentityBindingStatus `json:"status,omitempty"`
}
// WorkloadIdentityBindingSpec defines the desired state of WorkloadIdentityBinding
type WorkloadIdentityBindingSpec struct {
KubernetesServiceAccountRef KubernetesServiceAccountRef `json:"kubernetesServiceAccountRef,omitempty"`
GcpServiceAccountRef GcpServiceAccountRef `json:"gcpServiceAccountRef,omitempty"`
}
type KubernetesServiceAccountRef struct {
Name string `json:"name,omitempty"`
Namespace string `json:"namespace,omitempty"`
}
type GcpServiceAccountRef struct {
Name string `json:"name,omitempty"`
Namespace string `json:"namespace,omitempty"`
External string `json:"external,omitempty"`
}
// WorkloadIdentityBindingStatus defines the observed state of WorkloadIdentityBinding
type WorkloadIdentityBindingStatus struct {
// Conditions describes the reconciliation state of the object.
Conditions []metav1.Condition `json:"conditions,omitempty"`
}
//+kubebuilder:object:root=true
// WorkloadIdentityBindingList contains a list of WorkloadIdentityBinding
type WorkloadIdentityBindingList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []WorkloadIdentityBinding `json:"items"`
}
func init() {
SchemeBuilder.Register(&WorkloadIdentityBinding{}, &WorkloadIdentityBindingList{})
}
| {
"content_hash": "e0d131087299bdffae59616ec70b9c0e",
"timestamp": "",
"source": "github",
"line_count": 54,
"max_line_length": 108,
"avg_line_length": 33.648148148148145,
"alnum_prop": 0.7897633461750138,
"repo_name": "GoogleContainerTools/kpt",
"id": "b18a3ce2050054233f76400d9f239ef2f59ea875",
"size": "2406",
"binary": false,
"copies": "1",
"ref": "refs/heads/main",
"path": "porch/controllers/workloadidentitybindings/api/v1alpha1/workloadidentitybinding_types.go",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "2879"
},
{
"name": "Dockerfile",
"bytes": "8582"
},
{
"name": "Go",
"bytes": "2388058"
},
{
"name": "HTML",
"bytes": "2763"
},
{
"name": "JavaScript",
"bytes": "17968"
},
{
"name": "Makefile",
"bytes": "21245"
},
{
"name": "Ruby",
"bytes": "1168"
},
{
"name": "Shell",
"bytes": "176644"
}
],
"symlink_target": ""
} |
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2014 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.android.bluetoothchat"
android:versionCode="1"
android:versionName="1.0" >
<!-- Min/target SDK versions (<uses-sdk>) managed by build.gradle -->
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_INTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.CAMERA" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".MainActivity"
android:configChanges="orientation|keyboardHidden"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".DeviceListActivity"
android:label="@string/app_name" />
<activity
android:name=".DummyActivity"
android:label="@string/title_activity_dummy" />
<activity
android:name=".HelpActivity"
android:label="@string/title_activity_help"
android:launchMode="singleTask"
android:parentActivityName=".MainActivity" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.example.android.bluetoothchat.MainActivity" />
</activity>
<activity
android:name=".FeedbackActivity"
android:label="@string/title_activity_feedback"
android:parentActivityName=".HelpActivity" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.example.android.bluetoothchat.HelpActivity" />
</activity>
<activity
android:name=".SettingsActivity"
android:label="@string/title_activity_settings_page"
android:parentActivityName=".MainActivity" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.example.android.bluetoothchat.MainActivity" />
</activity>
<activity
android:name=".ThemeActivity"
android:label="@string/title_activity_customize_appearance_page"
android:parentActivityName=".SettingsActivity" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".SettingsActivity" />
</activity>
<activity
android:name=".ContactsActivity"
android:label="@string/title_activity_contacts"
android:parentActivityName=".SettingsActivity" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.example.android.bluetoothchat.SettingsActivity" />
</activity>
<activity
android:name=".UpdateContactsActivity"
android:label="@string/title_activity_update_contacts"
android:parentActivityName=".ContactsActivity" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.example.android.bluetoothchat.ContactsActivity" />
</activity>
</application>
</manifest>
| {
"content_hash": "dea1e64bfb62254d12486f08e6a179a7",
"timestamp": "",
"source": "github",
"line_count": 104,
"max_line_length": 85,
"avg_line_length": 43.28846153846154,
"alnum_prop": 0.6412705464238116,
"repo_name": "NYIT-CSCI455-2015-Spring/BluetoothChat",
"id": "3b2489058d564c74a61b55ca63438bcd1461c800",
"size": "4502",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Application/src/main/AndroidManifest.xml",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "180711"
}
],
"symlink_target": ""
} |
from __future__ import unicode_literals
from django.db.models import signals
from django.dispatch import receiver
from django.test import TestCase
from django.utils import six
from .models import Person, Car
# #8285: signals can be any callable
class PostDeleteHandler(object):
def __init__(self, data):
self.data = data
def __call__(self, signal, sender, instance, **kwargs):
self.data.append(
(instance, instance.id is None)
)
class MyReceiver(object):
def __init__(self, param):
self.param = param
self._run = False
def __call__(self, signal, sender, **kwargs):
self._run = True
signal.disconnect(receiver=self, sender=sender)
class SignalTests(TestCase):
def test_basic(self):
# Save up the number of connected signals so that we can check at the
# end that all the signals we register get properly unregistered (#9989)
pre_signals = (
len(signals.pre_save.receivers),
len(signals.post_save.receivers),
len(signals.pre_delete.receivers),
len(signals.post_delete.receivers),
)
data = []
def pre_save_test(signal, sender, instance, **kwargs):
data.append(
(instance, kwargs.get("raw", False))
)
signals.pre_save.connect(pre_save_test)
def post_save_test(signal, sender, instance, **kwargs):
data.append(
(instance, kwargs.get("created"), kwargs.get("raw", False))
)
signals.post_save.connect(post_save_test)
def pre_delete_test(signal, sender, instance, **kwargs):
data.append(
(instance, instance.id is None)
)
signals.pre_delete.connect(pre_delete_test)
post_delete_test = PostDeleteHandler(data)
signals.post_delete.connect(post_delete_test)
# throw a decorator syntax receiver into the mix
@receiver(signals.pre_save)
def pre_save_decorator_test(signal, sender, instance, **kwargs):
data.append(instance)
@receiver(signals.pre_save, sender=Car)
def pre_save_decorator_sender_test(signal, sender, instance, **kwargs):
data.append(instance)
p1 = Person(first_name="John", last_name="Smith")
self.assertEqual(data, [])
p1.save()
self.assertEqual(data, [
(p1, False),
p1,
(p1, True, False),
])
data[:] = []
p1.first_name = "Tom"
p1.save()
self.assertEqual(data, [
(p1, False),
p1,
(p1, False, False),
])
data[:] = []
# Car signal (sender defined)
c1 = Car(make="Volkswagon", model="Passat")
c1.save()
self.assertEqual(data, [
(c1, False),
c1,
c1,
(c1, True, False),
])
data[:] = []
# Calling an internal method purely so that we can trigger a "raw" save.
p1.save_base(raw=True)
self.assertEqual(data, [
(p1, True),
p1,
(p1, False, True),
])
data[:] = []
p1.delete()
self.assertEqual(data, [
(p1, False),
(p1, False),
])
data[:] = []
p2 = Person(first_name="James", last_name="Jones")
p2.id = 99999
p2.save()
self.assertEqual(data, [
(p2, False),
p2,
(p2, True, False),
])
data[:] = []
p2.id = 99998
p2.save()
self.assertEqual(data, [
(p2, False),
p2,
(p2, True, False),
])
data[:] = []
p2.delete()
self.assertEqual(data, [
(p2, False),
(p2, False)
])
self.assertQuerysetEqual(
Person.objects.all(), [
"James Jones",
],
six.text_type
)
signals.post_delete.disconnect(post_delete_test)
signals.pre_delete.disconnect(pre_delete_test)
signals.post_save.disconnect(post_save_test)
signals.pre_save.disconnect(pre_save_test)
signals.pre_save.disconnect(pre_save_decorator_test)
signals.pre_save.disconnect(pre_save_decorator_sender_test, sender=Car)
# Check that all our signals got disconnected properly.
post_signals = (
len(signals.pre_save.receivers),
len(signals.post_save.receivers),
len(signals.pre_delete.receivers),
len(signals.post_delete.receivers),
)
self.assertEqual(pre_signals, post_signals)
def test_disconnect_in_dispatch(self):
"""
Test that signals that disconnect when being called don't mess future
dispatching.
"""
a, b = MyReceiver(1), MyReceiver(2)
signals.post_save.connect(sender=Person, receiver=a)
signals.post_save.connect(sender=Person, receiver=b)
Person.objects.create(first_name='John', last_name='Smith')
self.assertTrue(a._run)
self.assertTrue(b._run)
self.assertEqual(signals.post_save.receivers, [])
| {
"content_hash": "82e8868a80152738f1364602641a3d5b",
"timestamp": "",
"source": "github",
"line_count": 179,
"max_line_length": 80,
"avg_line_length": 29.435754189944134,
"alnum_prop": 0.5433668627823116,
"repo_name": "ericholscher/django",
"id": "b7ee222c94c9978bb5bc57f577f707e246d3515d",
"size": "5269",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "tests/signals/tests.py",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "CSS",
"bytes": "51177"
},
{
"name": "JavaScript",
"bytes": "102377"
},
{
"name": "Python",
"bytes": "9011891"
},
{
"name": "Shell",
"bytes": "12137"
}
],
"symlink_target": ""
} |
describe("Deployer", function () {
var envSelector;
var planSelector;
var buildSelector;
var deployButton;
var deploySpinner;
var getMockProvider = function (obj) {
var mockProvider = {
deploy : function (data, callback) {
callback(obj);
}
};
return mockProvider;
};
beforeEach(function () {
envSelector = $("<select></select>");
planSelector = $("<select></select>");
buildSelector = $("<select></select>");
deployButton = $('<input type="button" />');
deploySpinner = $('<div id="deploy-spinner" />');
var page = $('<div class="page" />');
envSelector.appendTo(page);
planSelector.appendTo(page);
buildSelector.appendTo(page);
deployButton.appendTo(page);
deploySpinner.appendTo(page);
setFixtures(page);
});
it("sends a deploy instruction with the selected options", function () {
var mockProvider = getMockProvider();
spyOn(mockProvider, "deploy");
jQuery("<option>vagrant</option>").appendTo(envSelector);
jQuery("<option>PROJECT-PLAN</option>").appendTo(planSelector);
jQuery("<option>PROJECT-PLAN-6</option>").appendTo(buildSelector);
var deployer = new Deployer(deployButton, envSelector,
planSelector, buildSelector);
deployer.provider = mockProvider;
deployer.bindEvents();
deployButton.click();
expect(mockProvider.deploy).toHaveBeenCalled();
var data = mockProvider.deploy.mostRecentCall.args[0];
expect(data).toEqual({
env : "vagrant",
plan : "PROJECT-PLAN",
build : "PROJECT-PLAN-6"
});
});
it("makes a spinner", function () {
var mockProvider = getMockProvider();
spyOn(mockProvider, "deploy");
var deployer = new Deployer(deployButton, envSelector,
planSelector, buildSelector);
deployer.provider = mockProvider;
deployer.bindEvents();
deployButton.click();
var img = deploySpinner.children()[0];
expect(img.src).toContain("spinner.gif");
});
it("makes a green checkbox", function () {
var mockProvider = getMockProvider({ success: true });
var deployer = new Deployer(deployButton, envSelector,
planSelector, buildSelector);
deployer.provider = mockProvider;
deployer.bindEvents();
deployButton.click();
var img = deploySpinner.find("img")[0];
expect(img.src).toContain("greenCheck.png");
});
it("makes a red cross", function () {
var mockProvider = getMockProvider({ success: false });
var deployer = new Deployer(deployButton, envSelector,
planSelector, buildSelector);
deployer.provider = mockProvider;
deployer.bindEvents();
deployButton.click();
var img = deploySpinner.find("img")[0];
expect(img.src).toContain("failure.png");
});
}); | {
"content_hash": "770a4944679a15e19a633e495a15ff54",
"timestamp": "",
"source": "github",
"line_count": 102,
"max_line_length": 74,
"avg_line_length": 28.57843137254902,
"alnum_prop": 0.6240137221269296,
"repo_name": "tildedave/deploybot",
"id": "e7ab8e1fc09c301a7c4b7b6fd2433697726d89cb",
"size": "2915",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "spec/javascripts/DeploySpec.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "18527"
},
{
"name": "Python",
"bytes": "15121"
},
{
"name": "Ruby",
"bytes": "1480"
}
],
"symlink_target": ""
} |
package org.globus.net.protocol.httpg;
import java.net.URL;
import java.net.URLConnection;
import java.net.URLStreamHandler;
import java.lang.reflect.Constructor;
public class Handler extends URLStreamHandler {
private static final String CLASS =
"org.globus.net.GSIHttpURLConnection";
private static final Class[] PARAMS =
new Class[] { URL.class };
private static Constructor constructor = null;
private static synchronized Constructor initConstructor() {
if (constructor == null) {
ClassLoader loader =
Thread.currentThread().getContextClassLoader();
try {
Class clazz = Class.forName(CLASS, true, loader);
constructor = clazz.getConstructor(PARAMS);
} catch (Exception e) {
throw new RuntimeException("Unable to load url handler: " +
e.getMessage());
}
}
return constructor;
}
protected URLConnection openConnection(URL u) {
if (constructor == null) {
initConstructor();
}
try {
return (URLConnection)constructor.newInstance(new Object[] {u});
} catch (Exception e) {
throw new RuntimeException("Unable to instantiate url handler: " +
e.getMessage());
}
}
protected int getDefaultPort() {
return 8443;
}
protected void setURL(URL u, String protocol, String host, int port,
String authority, String userInfo, String path,
String query, String ref) {
if (port == -1) {
port = getDefaultPort();
}
super.setURL(u, protocol, host, port, authority, userInfo,
path, query, ref);
}
}
| {
"content_hash": "f6d98190d1eceb60cac2e98bed4a8406",
"timestamp": "",
"source": "github",
"line_count": 60,
"max_line_length": 78,
"avg_line_length": 29.516666666666666,
"alnum_prop": 0.5911914172783738,
"repo_name": "gridftp/Gridftp",
"id": "1dd7023f3084a04c17413a9b34962ac61ebdd1bd",
"size": "2373",
"binary": false,
"copies": "6",
"ref": "refs/heads/master",
"path": "gss/src/main/java/org/globus/net/protocol/httpg/Handler.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Gherkin",
"bytes": "781"
},
{
"name": "HTML",
"bytes": "24070"
},
{
"name": "Java",
"bytes": "2762278"
},
{
"name": "Shell",
"bytes": "98"
},
{
"name": "Standard ML",
"bytes": "467"
}
],
"symlink_target": ""
} |
package gov.hhs.fha.nhinc.properties;
import gov.hhs.fha.nhinc.nhinclib.NullChecker;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Hashtable;
import org.apache.log4j.Logger;
/**
* @author akong
*
*/
public class PropertyFileRefreshHandler {
private static final Logger LOG = Logger.getLogger(PropertyFileRefreshHandler.class);
private Hashtable<String, RefreshInfo> refreshInfoHashtable = new Hashtable<String, RefreshInfo>();
PropertyFileRefreshHandler() {
}
public void addRefreshInfo(String propertyFile, String cacheRefreshDuration) {
if (NullChecker.isNotNullish(cacheRefreshDuration)) {
int refreshDurationMillisec = parseCacheRefreshDuration(cacheRefreshDuration);
RefreshInfo newRefreshInfo = createRefreshInfo(refreshDurationMillisec);
refreshInfoHashtable.put(propertyFile, newRefreshInfo);
} else {
resetRefreshTime(propertyFile);
}
}
public void resetRefreshTime(String propertyFile) {
RefreshInfo refreshInfo = refreshInfoHashtable.get(propertyFile);
if (refreshInfo != null) {
if (refreshInfo.m_oRefreshMode == RefreshInfo.Mode.PERIODIC) {
Calendar oRefreshDate = Calendar.getInstance();
oRefreshDate.add(Calendar.MILLISECOND, refreshInfo.m_iRefreshMilliseconds);
refreshInfo.m_dtRefreshDate = oRefreshDate.getTime();
} else if (refreshInfo.m_oRefreshMode == RefreshInfo.Mode.ALWAYS) {
refreshInfo.m_dtRefreshDate = Calendar.getInstance().getTime();
}
}
}
public boolean hasRefreshInfo(String propertyFile) {
if (refreshInfoHashtable.get(propertyFile) == null) {
return false;
}
return true;
}
public boolean needsRefresh(String propertyFile) {
boolean needsRefresh = false;
Date dtNow = new Date();
RefreshInfo refreshInfo = refreshInfoHashtable.get(propertyFile);
if (refreshInfo != null) {
if ((refreshInfo.m_oRefreshMode == RefreshInfo.Mode.ALWAYS)
|| ((refreshInfo.m_oRefreshMode == RefreshInfo.Mode.PERIODIC))
&& (refreshInfo.m_dtRefreshDate.before(dtNow))) {
needsRefresh = true;
}
} else {
needsRefresh = true;
}
return needsRefresh;
}
/**
* This will return the in milliseconds the refresh duration on the property file. A setting of -1 means it never
* refreshes.
*
* @param propertyFile The name of the property file.
* @throws PropertyAccessException This is thrown if an error occurs accessing the property.
*/
public int getRefreshDuration(String propertyFile) {
int refreshDuration = -1;
RefreshInfo refreshInfo = refreshInfoHashtable.get(propertyFile);
if (refreshInfo != null) {
refreshDuration = refreshInfo.m_iRefreshMilliseconds;
}
return refreshDuration;
}
/**
* This will return the duration in milliseconds before the next refresh of the properties file. A value of -1
* indicates that no refresh will occur.
*
* @param propertyFile The name of the property file.
* @throws PropertyAccessException This is thrown if an error occurs accessing the property.
*/
public int getDurationBeforeNextRefresh(String propertyFile) {
int nextRefreshDuration = -1;
RefreshInfo refreshInfo = refreshInfoHashtable.get(propertyFile);
if (refreshInfo != null) {
if (refreshInfo.m_oRefreshMode == RefreshInfo.Mode.ALWAYS) {
nextRefreshDuration = 0;
} else if (refreshInfo.m_oRefreshMode == RefreshInfo.Mode.NEVER) {
nextRefreshDuration = -1;
} else {
long nowMilli = new Date().getTime();
long refreshMilli = refreshInfo.m_dtRefreshDate.getTime();
nextRefreshDuration = (int) (refreshMilli - nowMilli);
}
}
return nextRefreshDuration;
}
public void printToLog(String propertyFile) {
RefreshInfo refreshInfo = refreshInfoHashtable.get(propertyFile);
LOG.info("Dumping refresh information for property file: " + propertyFile);
if (refreshInfo != null) {
LOG.info("RefreshMode=" + refreshInfo.m_oRefreshMode);
LOG.info("RefreshMilliseconds=" + refreshInfo.m_iRefreshMilliseconds);
if (refreshInfo.m_dtRefreshDate != null) {
SimpleDateFormat oFormat = new SimpleDateFormat("MM/dd/yyyy.HH:mm:ss");
LOG.info("RefreshDate=" + oFormat.format(refreshInfo.m_dtRefreshDate));
} else {
LOG.info("RefreshDate=null");
}
} else {
LOG.info("No refresh information found.");
}
}
private int parseCacheRefreshDuration(String cacheRefreshDuration) {
int refreshDurationMillisec = -1;
try {
refreshDurationMillisec = Integer.parseInt(cacheRefreshDuration.trim());
} catch (Exception e1) {
LOG.warn("Invalid CacheRefreshValue found in the property file. Treating this property file as 'refresh never'.");
}
return refreshDurationMillisec;
}
private RefreshInfo createRefreshInfo(int refreshDurationMillisec) {
RefreshInfo newRefreshInfo = new RefreshInfo();
if (refreshDurationMillisec <= -1) {
newRefreshInfo.m_oRefreshMode = RefreshInfo.Mode.NEVER;
newRefreshInfo.m_iRefreshMilliseconds = -1;
newRefreshInfo.m_dtRefreshDate = null;
} else if (refreshDurationMillisec == 0) {
newRefreshInfo.m_oRefreshMode = RefreshInfo.Mode.ALWAYS;
newRefreshInfo.m_iRefreshMilliseconds = 0;
newRefreshInfo.m_dtRefreshDate = new Date();
} else {
newRefreshInfo.m_oRefreshMode = RefreshInfo.Mode.PERIODIC;
newRefreshInfo.m_iRefreshMilliseconds = refreshDurationMillisec;
Calendar oRefreshDate = Calendar.getInstance();
oRefreshDate.add(Calendar.MILLISECOND, refreshDurationMillisec);
newRefreshInfo.m_dtRefreshDate = oRefreshDate.getTime();
}
return newRefreshInfo;
}
/**
* This class is used to hold refresh information for a properties file.
*/
private static class RefreshInfo {
public static enum Mode {
NEVER, ALWAYS, PERIODIC
};
Mode m_oRefreshMode;
Date m_dtRefreshDate;
int m_iRefreshMilliseconds;
}
}
| {
"content_hash": "52a3fa31488c3330e154451104c88d08",
"timestamp": "",
"source": "github",
"line_count": 183,
"max_line_length": 126,
"avg_line_length": 36.78142076502732,
"alnum_prop": 0.6415094339622641,
"repo_name": "AurionProject/Aurion",
"id": "40ee5da347ad519a5856e65b9a738b0b9710997f",
"size": "8380",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "Product/Production/Common/CONNECTCoreLib/src/main/java/gov/hhs/fha/nhinc/properties/PropertyFileRefreshHandler.java",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "Batchfile",
"bytes": "2465"
},
{
"name": "CSS",
"bytes": "62138"
},
{
"name": "Groovy",
"bytes": "1641"
},
{
"name": "HTML",
"bytes": "170838"
},
{
"name": "Java",
"bytes": "15665942"
},
{
"name": "JavaScript",
"bytes": "6991"
},
{
"name": "PLSQL",
"bytes": "110879"
},
{
"name": "Python",
"bytes": "773"
},
{
"name": "SQLPL",
"bytes": "1363363"
},
{
"name": "Shell",
"bytes": "30106"
},
{
"name": "XSLT",
"bytes": "35057"
}
],
"symlink_target": ""
} |
source ./env.sh
#Show Service Status
service neutron-plugin-openvswitch-agent status
exit 0
| {
"content_hash": "16593efe1c816414267366038b7a3ca1",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 47,
"avg_line_length": 15.666666666666666,
"alnum_prop": 0.7978723404255319,
"repo_name": "wingon-niu/OpenStackDeploy",
"id": "d00fc1ee27456f56282e8cc010a27f31cf5f9e73",
"size": "107",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "DeployScripts/OpenStack-Install-HA/show-service-status-compute-node-neutron.sh",
"mode": "33261",
"license": "apache-2.0",
"language": [
{
"name": "ApacheConf",
"bytes": "1782"
},
{
"name": "Python",
"bytes": "2906"
},
{
"name": "Shell",
"bytes": "404592"
}
],
"symlink_target": ""
} |
<?xml version="1.0" encoding="UTF-8"?><?mso-infoPathSolution PIVersion="1.0.0.0" href="http://devinfo/sites/sdk/netengdt/NetEngDtSample/Forms/template.xsn" language="en-us" name="urn:schemas-microsoft-com:office:infopath:NETEngDtSample:" solutionVersion="9.4.0.923" productVersion="12.0.0" ?><?mso-application progid="InfoPath.Document"?><esri_sdk_sample xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2006-02-10T23:25:53" xmlns:xd="http://schemas.microsoft.com/office/infopath/2003">
<title>Automate ArcGIS Desktop applications</title>
<purpose><div xmlns="http://www.w3.org/1999/xhtml" xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2006-02-10T23:25:53">This sample shows how to automate ArcGIS Desktop applications (ArcMap, ArcScene, and ArcGlobe) from stand-alone .NET applications. To programmatically start a new application session, you can use the new operator to create a new Document object (MxDocument, SxDocument, or GMxDocument). Once you successfully create the new Document object, a new application session is started. </div>
<div xmlns="http://www.w3.org/1999/xhtml" xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2006-02-10T23:25:53"> </div>
<div xmlns="http://www.w3.org/1999/xhtml" xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2006-02-10T23:25:53">The stand-alone application also allows you to add layers to the new session of the application. IObjectFactory is used to create the new layers inside the application's process space. In addition, it shows how to programmatically clean up and shut down the application properly, including how to handle the case when the application has been closed by the user manually (with AppROT event). </div></purpose>
<development_license>
<license>
<name>ArcGIS Desktop Basic</name>
<extension>
</extension>
</license>
<license>
<name>ArcGIS Desktop Standard</name>
<extension>
</extension>
</license>
<license>
<name>ArcGIS Desktop Advanced</name>
<extension>
</extension>
</license>
</development_license>
<deployment_license>
<license>
<name>ArcGIS Desktop Basic</name>
<extension>
</extension>
</license>
<license>
<name>ArcGIS Desktop Standard</name>
<extension>
</extension>
</license>
<license>
<name>ArcGIS Desktop Advanced</name>
<extension>
</extension>
</license>
</deployment_license>
<min_version>9.2</min_version>
<min_sp/>
<max_version>
</max_version>
<max_sp/>
<data_paths>
<data_path/>
</data_paths>
<file_section>
<files lang="CSharp">
<file>
<filename>Form1.cs</filename>
<description>Form for automation demonstration showing how to start an ArcGIS Desktop application.</description>
<viewable_code>true</viewable_code>
</file>
</files>
<files lang="VBNet">
<file>
<filename>Form1.vb</filename>
<description>Form for automation demonstration showing how to start an ArcGIS Desktop application.</description>
<viewable_code>true</viewable_code>
</file>
</files>
</file_section>
<how_to_use_section>
<how_to_use>
<title>Automating an ArcGIS Desktop application</title>
<how_to_use_steps>
<step>Open the solution file in Visual Studio and compile the sample.</step>
<step>Run DesktopAutomationCS.exe or DesktopAutomationVB.exe depending on the language version.</step>
<step>Select ArcMap, ArcScene, or ArcGlobe from the application drop-down list and click Start to start a new application session. Notice the change in the state of the Start (becomes unavailable) and the Exit (becomes available) buttons.</step>
<step>Type the path of a valid shapefile in the text box, and click Add Layer to add it to the new application session.</step>
<step>Click Exit to shut down the application session. Notice the change in the state of the Start (becomes available) and the Exit (becomes unavailable) buttons.</step>
</how_to_use_steps>
</how_to_use>
<how_to_use>
<title>Handling modal dialog boxes when exiting the application</title>
<how_to_use_steps>
<step>Start a new application session.</step>
<step>Open a modal dialog box of the application; for example, click the Add Data button.</step>
<step>With the Add Data dialog box displayed, click Exit to shut down the application session.</step>
</how_to_use_steps>
</how_to_use>
<how_to_use>
<title>Handling the manual application shutdown in an automation session</title>
<how_to_use_steps>
<step>Start a new application session.</step>
<step>Close the application manually by clicking File, then clicking Exit or click the Close (X) button on the title bar. Notice the change in the state of the Start (becomes available) and the Exit (becomes unavailable) buttons.</step>
</how_to_use_steps>
</how_to_use>
</how_to_use_section>
<related_topics>
<topic>
<topic_display>Automating ArcGIS Desktop applications</topic_display>
<topic_link>56eba175-54c1-46b4-801a-fc968e582581</topic_link>
</topic>
</related_topics>
<content_area_tags>
<tag>Application Framework</tag>
<tag>Cartography, Mapping, & 2D Display</tag>
</content_area_tags>
<indexing_tags>
<existing_tag></existing_tag>
</indexing_tags>
<guid>5FA97F03-D985-44B9-B40B-5091E50933D3</guid>
<content_management>
<owner>Steve Van Esch</owner>
<tech_reviewer>Xiaoling Yang</tech_reviewer>
<status>SDK inclusion completed</status>
<sdk_inclusion_complete>
<NET>true</NET>
<JAVA>false</JAVA>
<CPP>false</CPP>
<XO>false</XO>
</sdk_inclusion_complete>
<requested_tocs>
<desktop>true</desktop>
<engine>false</engine>
<server>false</server>
<net_ide_integration>false</net_ide_integration>
<xo>false</xo>
</requested_tocs>
<applied_tocs>
<desktop>true</desktop>
<engine>false</engine>
<server>false</server>
<net_ide_integration>false</net_ide_integration>
<xo>false</xo>
</applied_tocs>
<last_updated_date>2012-03-19</last_updated_date>
<last_updated_time>16:13:14</last_updated_time>
<copyediting>
<last_copyedit_date>2012-03-19</last_copyedit_date>
<last_copyedit_time>16:14:17</last_copyedit_time>
<copyeditor>linn</copyeditor>
</copyediting>
<edits>
<editing_section>
<editor_name>kyli4140</editor_name>
<edit_date>2008-11-17</edit_date>
<edit_time>15:38:41</edit_time>
<edit_notes>Form brought into StarTeam. For previous notes and history see the SharePoint site at <a href="" xmlns="http://www.w3.org/1999/xhtml">http://devinfo/sites/ArcGISNetSDK/default.aspx</a>Â as well as the files in the ArcObjects VSS in Samples NET.</edit_notes>
</editing_section>
<editing_section>
<editor_name>linn</editor_name>
<edit_date>2009-09-25</edit_date>
<edit_time>15:59:04</edit_time>
<edit_notes>
<div xmlns="http://www.w3.org/1999/xhtml">Edit.</div>
<div xmlns="http://www.w3.org/1999/xhtml">SDK inclusion requested.</div>
</edit_notes>
</editing_section>
<editing_section>
<editor_name>linn</editor_name>
<edit_date>2012-03-19</edit_date>
<edit_time>16:14:05</edit_time>
<edit_notes>10.2 product name changes update.</edit_notes>
</editing_section></edits>
</content_management>
<current_user>linn</current_user>
<sdk>NETEngDt</sdk>
<doc_type>Sample</doc_type>
</esri_sdk_sample> | {
"content_hash": "bae44cb7babfcedf91a1735f7583b678",
"timestamp": "",
"source": "github",
"line_count": 162,
"max_line_length": 557,
"avg_line_length": 48.19135802469136,
"alnum_prop": 0.681439733572435,
"repo_name": "Esri/arcobjects-sdk-community-samples",
"id": "b37673abf3a9262ad37568b1d1e4e390b824e890",
"size": "7810",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Net/Framework/DesktopAutomation/ReadMe.xml",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C",
"bytes": "17067"
},
{
"name": "C#",
"bytes": "7769223"
},
{
"name": "C++",
"bytes": "454756"
},
{
"name": "HTML",
"bytes": "6209"
},
{
"name": "JavaScript",
"bytes": "3064"
},
{
"name": "Makefile",
"bytes": "570"
},
{
"name": "Objective-C",
"bytes": "2417"
},
{
"name": "Visual Basic .NET",
"bytes": "5250403"
},
{
"name": "XSLT",
"bytes": "73678"
}
],
"symlink_target": ""
} |
/*
* CtlRunException.java
*
* User: Greg Schueler <a href="mailto:greg@dtosolutions.com">greg@dtosolutions.com</a>
* Created: Mar 30, 2010 3:37:21 PM
* $Id$
*/
package com.dtolabs.rundeck.core.cli.run;
import com.dtolabs.rundeck.core.cli.CLIToolException;
/**
* CtlRunException is ...
*
* @author Greg Schueler <a href="mailto:greg@dtosolutions.com">greg@dtosolutions.com</a>
* @version $Revision$
*/
public class RunToolException extends CLIToolException {
public RunToolException() {
super();
}
public RunToolException(String msg) {
super(msg);
}
public RunToolException(Exception cause) {
super(cause);
}
public RunToolException(String msg, Exception cause) {
super(msg, cause);
}
}
| {
"content_hash": "8747f56b0bab172ff9b2359ccc240757",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 89,
"avg_line_length": 21.194444444444443,
"alnum_prop": 0.6684141546526867,
"repo_name": "tjordanchat/rundeck",
"id": "b506bc148599607f0b3d541d539677ac7ce92bd3",
"size": "1390",
"binary": false,
"copies": "3",
"ref": "refs/heads/development",
"path": "core/src/main/java/com/dtolabs/rundeck/core/cli/run/RunToolException.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "10512"
},
{
"name": "CSS",
"bytes": "111671"
},
{
"name": "Groovy",
"bytes": "4640146"
},
{
"name": "Java",
"bytes": "4339191"
},
{
"name": "JavaScript",
"bytes": "567915"
},
{
"name": "Makefile",
"bytes": "6756"
},
{
"name": "Ruby",
"bytes": "6461"
},
{
"name": "Shell",
"bytes": "376379"
}
],
"symlink_target": ""
} |
namespace ash {
TestAssistantSetup::TestAssistantSetup() = default;
TestAssistantSetup::~TestAssistantSetup() = default;
void TestAssistantSetup::StartAssistantOptInFlow(
FlowType type,
StartAssistantOptInFlowCallback callback) {
if (callback_) {
// If opt-in flow is already in progress, immediately return |false|. This
// behavior is consistent w/ the actual browser-side implementation.
std::move(callback).Run(false);
return;
}
// Otherwise we cache the callback until FinishAssistantOptInFlow() is called.
callback_ = std::move(callback);
}
bool TestAssistantSetup::BounceOptInWindowIfActive() {
// If |callback_| exists, opt-in flow is in progress and the browser-side
// implementation would return |true| after bouncing the dialog window.
return !!callback_;
}
void TestAssistantSetup::FinishAssistantOptInFlow(bool completed) {
DCHECK(callback_);
std::move(callback_).Run(completed);
}
} // namespace ash
| {
"content_hash": "a7bba5ade3a5f1769306fa880c541e4e",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 80,
"avg_line_length": 31.096774193548388,
"alnum_prop": 0.741701244813278,
"repo_name": "scheib/chromium",
"id": "db674af161edfa2f79e5f19cf7ce155b78612470",
"size": "1184",
"binary": false,
"copies": "3",
"ref": "refs/heads/main",
"path": "ash/assistant/test/test_assistant_setup.cc",
"mode": "33188",
"license": "bsd-3-clause",
"language": [],
"symlink_target": ""
} |
package model
import (
"encoding/json"
"io"
"regexp"
"strings"
"unicode/utf8"
)
const (
PREFERENCE_CATEGORY_DIRECT_CHANNEL_SHOW = "direct_channel_show"
PREFERENCE_CATEGORY_TUTORIAL_STEPS = "tutorial_step"
PREFERENCE_CATEGORY_ADVANCED_SETTINGS = "advanced_settings"
PREFERENCE_CATEGORY_FLAGGED_POST = "flagged_post"
PREFERENCE_CATEGORY_DISPLAY_SETTINGS = "display_settings"
PREFERENCE_NAME_COLLAPSE_SETTING = "collapse_previews"
PREFERENCE_CATEGORY_THEME = "theme"
// the name for theme props is the team id
PREFERENCE_CATEGORY_AUTHORIZED_OAUTH_APP = "oauth_app"
// the name for oauth_app is the client_id and value is the current scope
PREFERENCE_CATEGORY_LAST = "last"
PREFERENCE_NAME_LAST_CHANNEL = "channel"
PREFERENCE_NAME_LAST_TEAM = "team"
PREFERENCE_CATEGORY_NOTIFICATIONS = "notifications"
PREFERENCE_NAME_EMAIL_INTERVAL = "email_interval"
PREFERENCE_DEFAULT_EMAIL_INTERVAL = "30" // default to match the interval of the "immediate" setting (ie 30 seconds)
)
type Preference struct {
UserId string `json:"user_id"`
Category string `json:"category"`
Name string `json:"name"`
Value string `json:"value"`
}
func (o *Preference) ToJson() string {
b, err := json.Marshal(o)
if err != nil {
return ""
} else {
return string(b)
}
}
func PreferenceFromJson(data io.Reader) *Preference {
decoder := json.NewDecoder(data)
var o Preference
err := decoder.Decode(&o)
if err == nil {
return &o
} else {
return nil
}
}
func (o *Preference) IsValid() *AppError {
if len(o.UserId) != 26 {
return NewLocAppError("Preference.IsValid", "model.preference.is_valid.id.app_error", nil, "user_id="+o.UserId)
}
if len(o.Category) == 0 || len(o.Category) > 32 {
return NewLocAppError("Preference.IsValid", "model.preference.is_valid.category.app_error", nil, "category="+o.Category)
}
if len(o.Name) > 32 {
return NewLocAppError("Preference.IsValid", "model.preference.is_valid.name.app_error", nil, "name="+o.Name)
}
if utf8.RuneCountInString(o.Value) > 2000 {
return NewLocAppError("Preference.IsValid", "model.preference.is_valid.value.app_error", nil, "value="+o.Value)
}
if o.Category == PREFERENCE_CATEGORY_THEME {
var unused map[string]string
if err := json.NewDecoder(strings.NewReader(o.Value)).Decode(&unused); err != nil {
return NewLocAppError("Preference.IsValid", "model.preference.is_valid.theme.app_error", nil, "value="+o.Value)
}
}
return nil
}
func (o *Preference) PreUpdate() {
if o.Category == PREFERENCE_CATEGORY_THEME {
// decode the value of theme (a map of strings to string) and eliminate any invalid values
var props map[string]string
if err := json.NewDecoder(strings.NewReader(o.Value)).Decode(&props); err != nil {
// just continue, the invalid preference value should get caught by IsValid before saving
return
}
colorPattern := regexp.MustCompile(`^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$`)
// blank out any invalid theme values
for name, value := range props {
if name == "image" || name == "type" || name == "codeTheme" {
continue
}
if !colorPattern.MatchString(value) {
props[name] = "#ffffff"
}
}
if b, err := json.Marshal(props); err == nil {
o.Value = string(b)
}
}
}
| {
"content_hash": "10383050d342d3b3ed9c940f4c5c635c",
"timestamp": "",
"source": "github",
"line_count": 115,
"max_line_length": 122,
"avg_line_length": 28.382608695652173,
"alnum_prop": 0.6893382352941176,
"repo_name": "rodcorsi/mattermail",
"id": "589f8b5a9a5dc1080598251d33cbb890dc804374",
"size": "3377",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "vendor/github.com/mattermost/mattermost-server/model/preference.go",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "Go",
"bytes": "83471"
},
{
"name": "Makefile",
"bytes": "2653"
}
],
"symlink_target": ""
} |
/*
* This file was generated by orbit-idl - DO NOT EDIT!
*/
#include <string.h>
#include "CosNaming.h"
void
_ORBIT_CosNaming_NamingContext_NotFound_marshal(GIOPSendBuffer *
_ORBIT_send_buffer,
CORBA_Environment * ev)
{
register CORBA_unsigned_long _ORBIT_tmpvar_0;
register CORBA_unsigned_long _ORBIT_tmpvar_1;
CORBA_unsigned_long _ORBIT_tmpvar_2;
register CORBA_unsigned_long _ORBIT_tmpvar_3;
CORBA_unsigned_long _ORBIT_tmpvar_4;
CosNaming_NamingContext_NotFound *_ORBIT_exdata = ev->_params;
giop_message_buffer_do_alignment(GIOP_MESSAGE_BUFFER(_ORBIT_send_buffer),
4);
giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER(_ORBIT_send_buffer),
&((*_ORBIT_exdata).why),
sizeof((*_ORBIT_exdata).why));
giop_send_buffer_append_mem_indirect(GIOP_SEND_BUFFER(_ORBIT_send_buffer),
&((*_ORBIT_exdata).rest_of_name.
_length),
sizeof((*_ORBIT_exdata).rest_of_name.
_length));
for (_ORBIT_tmpvar_0 = 0;
_ORBIT_tmpvar_0 < (*_ORBIT_exdata).rest_of_name._length;
_ORBIT_tmpvar_0++) {
_ORBIT_tmpvar_2 =
strlen((*_ORBIT_exdata).rest_of_name._buffer[_ORBIT_tmpvar_0].id) +
1;
giop_message_buffer_do_alignment(GIOP_MESSAGE_BUFFER
(_ORBIT_send_buffer), 4);
giop_send_buffer_append_mem_indirect(GIOP_SEND_BUFFER
(_ORBIT_send_buffer),
&(_ORBIT_tmpvar_2),
sizeof(_ORBIT_tmpvar_2));
giop_send_buffer_append_mem_indirect(GIOP_SEND_BUFFER
(_ORBIT_send_buffer),
((*_ORBIT_exdata).rest_of_name.
_buffer[_ORBIT_tmpvar_0].id),
sizeof((*_ORBIT_exdata).
rest_of_name.
_buffer[_ORBIT_tmpvar_0].
id[_ORBIT_tmpvar_1]) *
_ORBIT_tmpvar_2);
_ORBIT_tmpvar_4 =
strlen((*_ORBIT_exdata).rest_of_name._buffer[_ORBIT_tmpvar_0].kind) +
1;
giop_message_buffer_do_alignment(GIOP_MESSAGE_BUFFER
(_ORBIT_send_buffer), 4);
giop_send_buffer_append_mem_indirect(GIOP_SEND_BUFFER
(_ORBIT_send_buffer),
&(_ORBIT_tmpvar_4),
sizeof(_ORBIT_tmpvar_4));
giop_send_buffer_append_mem_indirect(GIOP_SEND_BUFFER
(_ORBIT_send_buffer),
((*_ORBIT_exdata).rest_of_name.
_buffer[_ORBIT_tmpvar_0].kind),
sizeof((*_ORBIT_exdata).
rest_of_name.
_buffer[_ORBIT_tmpvar_0].
kind[_ORBIT_tmpvar_3]) *
_ORBIT_tmpvar_4);
}
}
void
_ORBIT_CosNaming_NamingContext_CannotProceed_marshal(GIOPSendBuffer *
_ORBIT_send_buffer,
CORBA_Environment * ev)
{
register CORBA_unsigned_long _ORBIT_tmpvar_0;
register CORBA_unsigned_long _ORBIT_tmpvar_1;
CORBA_unsigned_long _ORBIT_tmpvar_2;
register CORBA_unsigned_long _ORBIT_tmpvar_3;
CORBA_unsigned_long _ORBIT_tmpvar_4;
CosNaming_NamingContext_CannotProceed *_ORBIT_exdata = ev->_params;
ORBit_marshal_object(_ORBIT_send_buffer, (*_ORBIT_exdata).ctx);
giop_message_buffer_do_alignment(GIOP_MESSAGE_BUFFER(_ORBIT_send_buffer),
4);
giop_send_buffer_append_mem_indirect(GIOP_SEND_BUFFER(_ORBIT_send_buffer),
&((*_ORBIT_exdata).rest_of_name.
_length),
sizeof((*_ORBIT_exdata).rest_of_name.
_length));
for (_ORBIT_tmpvar_0 = 0;
_ORBIT_tmpvar_0 < (*_ORBIT_exdata).rest_of_name._length;
_ORBIT_tmpvar_0++) {
_ORBIT_tmpvar_2 =
strlen((*_ORBIT_exdata).rest_of_name._buffer[_ORBIT_tmpvar_0].id) +
1;
giop_message_buffer_do_alignment(GIOP_MESSAGE_BUFFER
(_ORBIT_send_buffer), 4);
giop_send_buffer_append_mem_indirect(GIOP_SEND_BUFFER
(_ORBIT_send_buffer),
&(_ORBIT_tmpvar_2),
sizeof(_ORBIT_tmpvar_2));
giop_send_buffer_append_mem_indirect(GIOP_SEND_BUFFER
(_ORBIT_send_buffer),
((*_ORBIT_exdata).rest_of_name.
_buffer[_ORBIT_tmpvar_0].id),
sizeof((*_ORBIT_exdata).
rest_of_name.
_buffer[_ORBIT_tmpvar_0].
id[_ORBIT_tmpvar_1]) *
_ORBIT_tmpvar_2);
_ORBIT_tmpvar_4 =
strlen((*_ORBIT_exdata).rest_of_name._buffer[_ORBIT_tmpvar_0].kind) +
1;
giop_message_buffer_do_alignment(GIOP_MESSAGE_BUFFER
(_ORBIT_send_buffer), 4);
giop_send_buffer_append_mem_indirect(GIOP_SEND_BUFFER
(_ORBIT_send_buffer),
&(_ORBIT_tmpvar_4),
sizeof(_ORBIT_tmpvar_4));
giop_send_buffer_append_mem_indirect(GIOP_SEND_BUFFER
(_ORBIT_send_buffer),
((*_ORBIT_exdata).rest_of_name.
_buffer[_ORBIT_tmpvar_0].kind),
sizeof((*_ORBIT_exdata).
rest_of_name.
_buffer[_ORBIT_tmpvar_0].
kind[_ORBIT_tmpvar_3]) *
_ORBIT_tmpvar_4);
}
}
void
_ORBIT_CosNaming_NamingContext_InvalidName_marshal(GIOPSendBuffer *
_ORBIT_send_buffer,
CORBA_Environment * ev)
{
}
void
_ORBIT_CosNaming_NamingContext_AlreadyBound_marshal(GIOPSendBuffer *
_ORBIT_send_buffer,
CORBA_Environment * ev)
{
}
void
_ORBIT_CosNaming_NamingContext_NotEmpty_marshal(GIOPSendBuffer *
_ORBIT_send_buffer,
CORBA_Environment * ev)
{
}
void
_ORBIT_skel_CosNaming_NamingContext_bind(POA_CosNaming_NamingContext *
_ORBIT_servant,
GIOPRecvBuffer * _ORBIT_recv_buffer,
CORBA_Environment * ev,
void (*_impl_bind)
(PortableServer_Servant _servant,
const CosNaming_Name * n,
const CORBA_Object obj,
CORBA_Environment * ev))
{
CosNaming_Name n = { 0, 0, NULL, CORBA_FALSE };
CORBA_Object obj;
{ /* demarshalling */
guchar *_ORBIT_curptr;
register CORBA_unsigned_long _ORBIT_tmpvar_5;
register CORBA_unsigned_long _ORBIT_tmpvar_6;
CORBA_unsigned_long _ORBIT_tmpvar_7;
register CORBA_unsigned_long _ORBIT_tmpvar_8;
CORBA_unsigned_long _ORBIT_tmpvar_9;
_ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
if (giop_msg_conversion_needed(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer))) {
_ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
(*((guint32 *) & (n._length))) =
GUINT32_SWAP_LE_BE(*((guint32 *) _ORBIT_curptr));
_ORBIT_curptr += 4;
n._buffer = alloca(sizeof(n._buffer[_ORBIT_tmpvar_5]) * n._length);
n._release = CORBA_FALSE;
for (_ORBIT_tmpvar_5 = 0; _ORBIT_tmpvar_5 < n._length;
_ORBIT_tmpvar_5++) {
_ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
(*((guint32 *) & (_ORBIT_tmpvar_7))) =
GUINT32_SWAP_LE_BE(*((guint32 *) _ORBIT_curptr));
_ORBIT_curptr += 4;
n._buffer[_ORBIT_tmpvar_5].id = (void *) _ORBIT_curptr;
_ORBIT_curptr +=
sizeof(n._buffer[_ORBIT_tmpvar_5].id[_ORBIT_tmpvar_6]) *
_ORBIT_tmpvar_7;
_ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
(*((guint32 *) & (_ORBIT_tmpvar_9))) =
GUINT32_SWAP_LE_BE(*((guint32 *) _ORBIT_curptr));
_ORBIT_curptr += 4;
n._buffer[_ORBIT_tmpvar_5].kind = (void *) _ORBIT_curptr;
_ORBIT_curptr +=
sizeof(n._buffer[_ORBIT_tmpvar_5].kind[_ORBIT_tmpvar_8]) *
_ORBIT_tmpvar_9;
}
GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur = _ORBIT_curptr;
obj =
ORBit_demarshal_object(_ORBIT_recv_buffer,
(((ORBit_ObjectKey
*) _ORBIT_servant->_private)->object->
orb));
_ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
} else {
_ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
n._length = *((CORBA_unsigned_long *) _ORBIT_curptr);
_ORBIT_curptr += 4;
n._buffer = alloca(sizeof(n._buffer[_ORBIT_tmpvar_5]) * n._length);
n._release = CORBA_FALSE;
for (_ORBIT_tmpvar_5 = 0; _ORBIT_tmpvar_5 < n._length;
_ORBIT_tmpvar_5++) {
_ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
_ORBIT_tmpvar_7 = *((CORBA_unsigned_long *) _ORBIT_curptr);
_ORBIT_curptr += 4;
n._buffer[_ORBIT_tmpvar_5].id = (void *) _ORBIT_curptr;
_ORBIT_curptr +=
sizeof(n._buffer[_ORBIT_tmpvar_5].id[_ORBIT_tmpvar_6]) *
_ORBIT_tmpvar_7;
_ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
_ORBIT_tmpvar_9 = *((CORBA_unsigned_long *) _ORBIT_curptr);
_ORBIT_curptr += 4;
n._buffer[_ORBIT_tmpvar_5].kind = (void *) _ORBIT_curptr;
_ORBIT_curptr +=
sizeof(n._buffer[_ORBIT_tmpvar_5].kind[_ORBIT_tmpvar_8]) *
_ORBIT_tmpvar_9;
}
GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur = _ORBIT_curptr;
obj =
ORBit_demarshal_object(_ORBIT_recv_buffer,
(((ORBit_ObjectKey
*) _ORBIT_servant->_private)->object->
orb));
_ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
}
}
_impl_bind(_ORBIT_servant, &(n), obj, ev);
{ /* marshalling */
register GIOPSendBuffer *_ORBIT_send_buffer;
_ORBIT_send_buffer =
giop_send_reply_buffer_use(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer)->
connection, NULL,
_ORBIT_recv_buffer->message.u.request.
request_id, ev->_major);
if (_ORBIT_send_buffer) {
if (ev->_major == CORBA_NO_EXCEPTION) {
} else if (ev->_major == CORBA_USER_EXCEPTION) {
static const ORBit_exception_marshal_info _ORBIT_user_exceptions[]
= { {(const CORBA_TypeCode)
&TC_CosNaming_NamingContext_NotFound_struct,
(gpointer)
_ORBIT_CosNaming_NamingContext_NotFound_marshal},
{(const CORBA_TypeCode)
&TC_CosNaming_NamingContext_CannotProceed_struct,
(gpointer)
_ORBIT_CosNaming_NamingContext_CannotProceed_marshal},
{(const CORBA_TypeCode)
&TC_CosNaming_NamingContext_InvalidName_struct,
(gpointer)
_ORBIT_CosNaming_NamingContext_InvalidName_marshal},
{(const CORBA_TypeCode)
&TC_CosNaming_NamingContext_AlreadyBound_struct,
(gpointer)
_ORBIT_CosNaming_NamingContext_AlreadyBound_marshal},
{CORBA_OBJECT_NIL, NULL} };
ORBit_send_user_exception(_ORBIT_send_buffer, ev,
_ORBIT_user_exceptions);
} else
ORBit_send_system_exception(_ORBIT_send_buffer, ev);
giop_send_buffer_write(_ORBIT_send_buffer);
giop_send_buffer_unuse(_ORBIT_send_buffer);
}
CORBA_Object_release(obj, ev);
}
}
void
_ORBIT_skel_CosNaming_NamingContext_rebind(POA_CosNaming_NamingContext *
_ORBIT_servant,
GIOPRecvBuffer *
_ORBIT_recv_buffer,
CORBA_Environment * ev,
void (*_impl_rebind)
(PortableServer_Servant _servant,
const CosNaming_Name * n,
const CORBA_Object obj,
CORBA_Environment * ev))
{
CosNaming_Name n = { 0, 0, NULL, CORBA_FALSE };
CORBA_Object obj;
{ /* demarshalling */
guchar *_ORBIT_curptr;
register CORBA_unsigned_long _ORBIT_tmpvar_5;
register CORBA_unsigned_long _ORBIT_tmpvar_6;
CORBA_unsigned_long _ORBIT_tmpvar_7;
register CORBA_unsigned_long _ORBIT_tmpvar_8;
CORBA_unsigned_long _ORBIT_tmpvar_9;
_ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
if (giop_msg_conversion_needed(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer))) {
_ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
(*((guint32 *) & (n._length))) =
GUINT32_SWAP_LE_BE(*((guint32 *) _ORBIT_curptr));
_ORBIT_curptr += 4;
n._buffer = alloca(sizeof(n._buffer[_ORBIT_tmpvar_5]) * n._length);
n._release = CORBA_FALSE;
for (_ORBIT_tmpvar_5 = 0; _ORBIT_tmpvar_5 < n._length;
_ORBIT_tmpvar_5++) {
_ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
(*((guint32 *) & (_ORBIT_tmpvar_7))) =
GUINT32_SWAP_LE_BE(*((guint32 *) _ORBIT_curptr));
_ORBIT_curptr += 4;
n._buffer[_ORBIT_tmpvar_5].id = (void *) _ORBIT_curptr;
_ORBIT_curptr +=
sizeof(n._buffer[_ORBIT_tmpvar_5].id[_ORBIT_tmpvar_6]) *
_ORBIT_tmpvar_7;
_ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
(*((guint32 *) & (_ORBIT_tmpvar_9))) =
GUINT32_SWAP_LE_BE(*((guint32 *) _ORBIT_curptr));
_ORBIT_curptr += 4;
n._buffer[_ORBIT_tmpvar_5].kind = (void *) _ORBIT_curptr;
_ORBIT_curptr +=
sizeof(n._buffer[_ORBIT_tmpvar_5].kind[_ORBIT_tmpvar_8]) *
_ORBIT_tmpvar_9;
}
GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur = _ORBIT_curptr;
obj =
ORBit_demarshal_object(_ORBIT_recv_buffer,
(((ORBit_ObjectKey
*) _ORBIT_servant->_private)->object->
orb));
_ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
} else {
_ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
n._length = *((CORBA_unsigned_long *) _ORBIT_curptr);
_ORBIT_curptr += 4;
n._buffer = alloca(sizeof(n._buffer[_ORBIT_tmpvar_5]) * n._length);
n._release = CORBA_FALSE;
for (_ORBIT_tmpvar_5 = 0; _ORBIT_tmpvar_5 < n._length;
_ORBIT_tmpvar_5++) {
_ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
_ORBIT_tmpvar_7 = *((CORBA_unsigned_long *) _ORBIT_curptr);
_ORBIT_curptr += 4;
n._buffer[_ORBIT_tmpvar_5].id = (void *) _ORBIT_curptr;
_ORBIT_curptr +=
sizeof(n._buffer[_ORBIT_tmpvar_5].id[_ORBIT_tmpvar_6]) *
_ORBIT_tmpvar_7;
_ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
_ORBIT_tmpvar_9 = *((CORBA_unsigned_long *) _ORBIT_curptr);
_ORBIT_curptr += 4;
n._buffer[_ORBIT_tmpvar_5].kind = (void *) _ORBIT_curptr;
_ORBIT_curptr +=
sizeof(n._buffer[_ORBIT_tmpvar_5].kind[_ORBIT_tmpvar_8]) *
_ORBIT_tmpvar_9;
}
GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur = _ORBIT_curptr;
obj =
ORBit_demarshal_object(_ORBIT_recv_buffer,
(((ORBit_ObjectKey
*) _ORBIT_servant->_private)->object->
orb));
_ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
}
}
_impl_rebind(_ORBIT_servant, &(n), obj, ev);
{ /* marshalling */
register GIOPSendBuffer *_ORBIT_send_buffer;
_ORBIT_send_buffer =
giop_send_reply_buffer_use(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer)->
connection, NULL,
_ORBIT_recv_buffer->message.u.request.
request_id, ev->_major);
if (_ORBIT_send_buffer) {
if (ev->_major == CORBA_NO_EXCEPTION) {
} else if (ev->_major == CORBA_USER_EXCEPTION) {
static const ORBit_exception_marshal_info _ORBIT_user_exceptions[]
= { {(const CORBA_TypeCode)
&TC_CosNaming_NamingContext_NotFound_struct,
(gpointer)
_ORBIT_CosNaming_NamingContext_NotFound_marshal},
{(const CORBA_TypeCode)
&TC_CosNaming_NamingContext_CannotProceed_struct,
(gpointer)
_ORBIT_CosNaming_NamingContext_CannotProceed_marshal},
{(const CORBA_TypeCode)
&TC_CosNaming_NamingContext_InvalidName_struct,
(gpointer)
_ORBIT_CosNaming_NamingContext_InvalidName_marshal},
{CORBA_OBJECT_NIL, NULL} };
ORBit_send_user_exception(_ORBIT_send_buffer, ev,
_ORBIT_user_exceptions);
} else
ORBit_send_system_exception(_ORBIT_send_buffer, ev);
giop_send_buffer_write(_ORBIT_send_buffer);
giop_send_buffer_unuse(_ORBIT_send_buffer);
}
CORBA_Object_release(obj, ev);
}
}
void
_ORBIT_skel_CosNaming_NamingContext_bind_context(POA_CosNaming_NamingContext *
_ORBIT_servant,
GIOPRecvBuffer *
_ORBIT_recv_buffer,
CORBA_Environment * ev,
void (*_impl_bind_context)
(PortableServer_Servant
_servant,
const CosNaming_Name * n,
const
CosNaming_NamingContext nc,
CORBA_Environment * ev))
{
CosNaming_Name n = { 0, 0, NULL, CORBA_FALSE };
CosNaming_NamingContext nc;
{ /* demarshalling */
guchar *_ORBIT_curptr;
register CORBA_unsigned_long _ORBIT_tmpvar_5;
register CORBA_unsigned_long _ORBIT_tmpvar_6;
CORBA_unsigned_long _ORBIT_tmpvar_7;
register CORBA_unsigned_long _ORBIT_tmpvar_8;
CORBA_unsigned_long _ORBIT_tmpvar_9;
_ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
if (giop_msg_conversion_needed(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer))) {
_ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
(*((guint32 *) & (n._length))) =
GUINT32_SWAP_LE_BE(*((guint32 *) _ORBIT_curptr));
_ORBIT_curptr += 4;
n._buffer = alloca(sizeof(n._buffer[_ORBIT_tmpvar_5]) * n._length);
n._release = CORBA_FALSE;
for (_ORBIT_tmpvar_5 = 0; _ORBIT_tmpvar_5 < n._length;
_ORBIT_tmpvar_5++) {
_ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
(*((guint32 *) & (_ORBIT_tmpvar_7))) =
GUINT32_SWAP_LE_BE(*((guint32 *) _ORBIT_curptr));
_ORBIT_curptr += 4;
n._buffer[_ORBIT_tmpvar_5].id = (void *) _ORBIT_curptr;
_ORBIT_curptr +=
sizeof(n._buffer[_ORBIT_tmpvar_5].id[_ORBIT_tmpvar_6]) *
_ORBIT_tmpvar_7;
_ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
(*((guint32 *) & (_ORBIT_tmpvar_9))) =
GUINT32_SWAP_LE_BE(*((guint32 *) _ORBIT_curptr));
_ORBIT_curptr += 4;
n._buffer[_ORBIT_tmpvar_5].kind = (void *) _ORBIT_curptr;
_ORBIT_curptr +=
sizeof(n._buffer[_ORBIT_tmpvar_5].kind[_ORBIT_tmpvar_8]) *
_ORBIT_tmpvar_9;
}
GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur = _ORBIT_curptr;
nc =
ORBit_demarshal_object(_ORBIT_recv_buffer,
(((ORBit_ObjectKey
*) _ORBIT_servant->_private)->object->
orb));
_ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
} else {
_ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
n._length = *((CORBA_unsigned_long *) _ORBIT_curptr);
_ORBIT_curptr += 4;
n._buffer = alloca(sizeof(n._buffer[_ORBIT_tmpvar_5]) * n._length);
n._release = CORBA_FALSE;
for (_ORBIT_tmpvar_5 = 0; _ORBIT_tmpvar_5 < n._length;
_ORBIT_tmpvar_5++) {
_ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
_ORBIT_tmpvar_7 = *((CORBA_unsigned_long *) _ORBIT_curptr);
_ORBIT_curptr += 4;
n._buffer[_ORBIT_tmpvar_5].id = (void *) _ORBIT_curptr;
_ORBIT_curptr +=
sizeof(n._buffer[_ORBIT_tmpvar_5].id[_ORBIT_tmpvar_6]) *
_ORBIT_tmpvar_7;
_ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
_ORBIT_tmpvar_9 = *((CORBA_unsigned_long *) _ORBIT_curptr);
_ORBIT_curptr += 4;
n._buffer[_ORBIT_tmpvar_5].kind = (void *) _ORBIT_curptr;
_ORBIT_curptr +=
sizeof(n._buffer[_ORBIT_tmpvar_5].kind[_ORBIT_tmpvar_8]) *
_ORBIT_tmpvar_9;
}
GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur = _ORBIT_curptr;
nc =
ORBit_demarshal_object(_ORBIT_recv_buffer,
(((ORBit_ObjectKey
*) _ORBIT_servant->_private)->object->
orb));
_ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
}
}
_impl_bind_context(_ORBIT_servant, &(n), nc, ev);
{ /* marshalling */
register GIOPSendBuffer *_ORBIT_send_buffer;
_ORBIT_send_buffer =
giop_send_reply_buffer_use(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer)->
connection, NULL,
_ORBIT_recv_buffer->message.u.request.
request_id, ev->_major);
if (_ORBIT_send_buffer) {
if (ev->_major == CORBA_NO_EXCEPTION) {
} else if (ev->_major == CORBA_USER_EXCEPTION) {
static const ORBit_exception_marshal_info _ORBIT_user_exceptions[]
= { {(const CORBA_TypeCode)
&TC_CosNaming_NamingContext_NotFound_struct,
(gpointer)
_ORBIT_CosNaming_NamingContext_NotFound_marshal},
{(const CORBA_TypeCode)
&TC_CosNaming_NamingContext_CannotProceed_struct,
(gpointer)
_ORBIT_CosNaming_NamingContext_CannotProceed_marshal},
{(const CORBA_TypeCode)
&TC_CosNaming_NamingContext_InvalidName_struct,
(gpointer)
_ORBIT_CosNaming_NamingContext_InvalidName_marshal},
{(const CORBA_TypeCode)
&TC_CosNaming_NamingContext_AlreadyBound_struct,
(gpointer)
_ORBIT_CosNaming_NamingContext_AlreadyBound_marshal},
{CORBA_OBJECT_NIL, NULL} };
ORBit_send_user_exception(_ORBIT_send_buffer, ev,
_ORBIT_user_exceptions);
} else
ORBit_send_system_exception(_ORBIT_send_buffer, ev);
giop_send_buffer_write(_ORBIT_send_buffer);
giop_send_buffer_unuse(_ORBIT_send_buffer);
}
CORBA_Object_release(nc, ev);
}
}
void
_ORBIT_skel_CosNaming_NamingContext_rebind_context(POA_CosNaming_NamingContext
* _ORBIT_servant,
GIOPRecvBuffer *
_ORBIT_recv_buffer,
CORBA_Environment * ev,
void
(*_impl_rebind_context)
(PortableServer_Servant
_servant,
const CosNaming_Name * n,
const
CosNaming_NamingContext
nc,
CORBA_Environment * ev))
{
CosNaming_Name n = { 0, 0, NULL, CORBA_FALSE };
CosNaming_NamingContext nc;
{ /* demarshalling */
guchar *_ORBIT_curptr;
register CORBA_unsigned_long _ORBIT_tmpvar_5;
register CORBA_unsigned_long _ORBIT_tmpvar_6;
CORBA_unsigned_long _ORBIT_tmpvar_7;
register CORBA_unsigned_long _ORBIT_tmpvar_8;
CORBA_unsigned_long _ORBIT_tmpvar_9;
_ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
if (giop_msg_conversion_needed(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer))) {
_ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
(*((guint32 *) & (n._length))) =
GUINT32_SWAP_LE_BE(*((guint32 *) _ORBIT_curptr));
_ORBIT_curptr += 4;
n._buffer = alloca(sizeof(n._buffer[_ORBIT_tmpvar_5]) * n._length);
n._release = CORBA_FALSE;
for (_ORBIT_tmpvar_5 = 0; _ORBIT_tmpvar_5 < n._length;
_ORBIT_tmpvar_5++) {
_ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
(*((guint32 *) & (_ORBIT_tmpvar_7))) =
GUINT32_SWAP_LE_BE(*((guint32 *) _ORBIT_curptr));
_ORBIT_curptr += 4;
n._buffer[_ORBIT_tmpvar_5].id = (void *) _ORBIT_curptr;
_ORBIT_curptr +=
sizeof(n._buffer[_ORBIT_tmpvar_5].id[_ORBIT_tmpvar_6]) *
_ORBIT_tmpvar_7;
_ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
(*((guint32 *) & (_ORBIT_tmpvar_9))) =
GUINT32_SWAP_LE_BE(*((guint32 *) _ORBIT_curptr));
_ORBIT_curptr += 4;
n._buffer[_ORBIT_tmpvar_5].kind = (void *) _ORBIT_curptr;
_ORBIT_curptr +=
sizeof(n._buffer[_ORBIT_tmpvar_5].kind[_ORBIT_tmpvar_8]) *
_ORBIT_tmpvar_9;
}
GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur = _ORBIT_curptr;
nc =
ORBit_demarshal_object(_ORBIT_recv_buffer,
(((ORBit_ObjectKey
*) _ORBIT_servant->_private)->object->
orb));
_ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
} else {
_ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
n._length = *((CORBA_unsigned_long *) _ORBIT_curptr);
_ORBIT_curptr += 4;
n._buffer = alloca(sizeof(n._buffer[_ORBIT_tmpvar_5]) * n._length);
n._release = CORBA_FALSE;
for (_ORBIT_tmpvar_5 = 0; _ORBIT_tmpvar_5 < n._length;
_ORBIT_tmpvar_5++) {
_ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
_ORBIT_tmpvar_7 = *((CORBA_unsigned_long *) _ORBIT_curptr);
_ORBIT_curptr += 4;
n._buffer[_ORBIT_tmpvar_5].id = (void *) _ORBIT_curptr;
_ORBIT_curptr +=
sizeof(n._buffer[_ORBIT_tmpvar_5].id[_ORBIT_tmpvar_6]) *
_ORBIT_tmpvar_7;
_ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
_ORBIT_tmpvar_9 = *((CORBA_unsigned_long *) _ORBIT_curptr);
_ORBIT_curptr += 4;
n._buffer[_ORBIT_tmpvar_5].kind = (void *) _ORBIT_curptr;
_ORBIT_curptr +=
sizeof(n._buffer[_ORBIT_tmpvar_5].kind[_ORBIT_tmpvar_8]) *
_ORBIT_tmpvar_9;
}
GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur = _ORBIT_curptr;
nc =
ORBit_demarshal_object(_ORBIT_recv_buffer,
(((ORBit_ObjectKey
*) _ORBIT_servant->_private)->object->
orb));
_ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
}
}
_impl_rebind_context(_ORBIT_servant, &(n), nc, ev);
{ /* marshalling */
register GIOPSendBuffer *_ORBIT_send_buffer;
_ORBIT_send_buffer =
giop_send_reply_buffer_use(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer)->
connection, NULL,
_ORBIT_recv_buffer->message.u.request.
request_id, ev->_major);
if (_ORBIT_send_buffer) {
if (ev->_major == CORBA_NO_EXCEPTION) {
} else if (ev->_major == CORBA_USER_EXCEPTION) {
static const ORBit_exception_marshal_info _ORBIT_user_exceptions[]
= { {(const CORBA_TypeCode)
&TC_CosNaming_NamingContext_NotFound_struct,
(gpointer)
_ORBIT_CosNaming_NamingContext_NotFound_marshal},
{(const CORBA_TypeCode)
&TC_CosNaming_NamingContext_CannotProceed_struct,
(gpointer)
_ORBIT_CosNaming_NamingContext_CannotProceed_marshal},
{(const CORBA_TypeCode)
&TC_CosNaming_NamingContext_InvalidName_struct,
(gpointer)
_ORBIT_CosNaming_NamingContext_InvalidName_marshal},
{CORBA_OBJECT_NIL, NULL} };
ORBit_send_user_exception(_ORBIT_send_buffer, ev,
_ORBIT_user_exceptions);
} else
ORBit_send_system_exception(_ORBIT_send_buffer, ev);
giop_send_buffer_write(_ORBIT_send_buffer);
giop_send_buffer_unuse(_ORBIT_send_buffer);
}
CORBA_Object_release(nc, ev);
}
}
void
_ORBIT_skel_CosNaming_NamingContext_resolve(POA_CosNaming_NamingContext *
_ORBIT_servant,
GIOPRecvBuffer *
_ORBIT_recv_buffer,
CORBA_Environment * ev,
CORBA_Object(*_impl_resolve)
(PortableServer_Servant _servant,
const CosNaming_Name * n,
CORBA_Environment * ev))
{
CORBA_Object _ORBIT_retval;
CosNaming_Name n = { 0, 0, NULL, CORBA_FALSE };
{ /* demarshalling */
guchar *_ORBIT_curptr;
register CORBA_unsigned_long _ORBIT_tmpvar_5;
register CORBA_unsigned_long _ORBIT_tmpvar_6;
CORBA_unsigned_long _ORBIT_tmpvar_7;
register CORBA_unsigned_long _ORBIT_tmpvar_8;
CORBA_unsigned_long _ORBIT_tmpvar_9;
_ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
if (giop_msg_conversion_needed(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer))) {
_ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
(*((guint32 *) & (n._length))) =
GUINT32_SWAP_LE_BE(*((guint32 *) _ORBIT_curptr));
_ORBIT_curptr += 4;
n._buffer = alloca(sizeof(n._buffer[_ORBIT_tmpvar_5]) * n._length);
n._release = CORBA_FALSE;
for (_ORBIT_tmpvar_5 = 0; _ORBIT_tmpvar_5 < n._length;
_ORBIT_tmpvar_5++) {
_ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
(*((guint32 *) & (_ORBIT_tmpvar_7))) =
GUINT32_SWAP_LE_BE(*((guint32 *) _ORBIT_curptr));
_ORBIT_curptr += 4;
n._buffer[_ORBIT_tmpvar_5].id = (void *) _ORBIT_curptr;
_ORBIT_curptr +=
sizeof(n._buffer[_ORBIT_tmpvar_5].id[_ORBIT_tmpvar_6]) *
_ORBIT_tmpvar_7;
_ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
(*((guint32 *) & (_ORBIT_tmpvar_9))) =
GUINT32_SWAP_LE_BE(*((guint32 *) _ORBIT_curptr));
_ORBIT_curptr += 4;
n._buffer[_ORBIT_tmpvar_5].kind = (void *) _ORBIT_curptr;
_ORBIT_curptr +=
sizeof(n._buffer[_ORBIT_tmpvar_5].kind[_ORBIT_tmpvar_8]) *
_ORBIT_tmpvar_9;
}
} else {
_ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
n._length = *((CORBA_unsigned_long *) _ORBIT_curptr);
_ORBIT_curptr += 4;
n._buffer = alloca(sizeof(n._buffer[_ORBIT_tmpvar_5]) * n._length);
n._release = CORBA_FALSE;
for (_ORBIT_tmpvar_5 = 0; _ORBIT_tmpvar_5 < n._length;
_ORBIT_tmpvar_5++) {
_ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
_ORBIT_tmpvar_7 = *((CORBA_unsigned_long *) _ORBIT_curptr);
_ORBIT_curptr += 4;
n._buffer[_ORBIT_tmpvar_5].id = (void *) _ORBIT_curptr;
_ORBIT_curptr +=
sizeof(n._buffer[_ORBIT_tmpvar_5].id[_ORBIT_tmpvar_6]) *
_ORBIT_tmpvar_7;
_ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
_ORBIT_tmpvar_9 = *((CORBA_unsigned_long *) _ORBIT_curptr);
_ORBIT_curptr += 4;
n._buffer[_ORBIT_tmpvar_5].kind = (void *) _ORBIT_curptr;
_ORBIT_curptr +=
sizeof(n._buffer[_ORBIT_tmpvar_5].kind[_ORBIT_tmpvar_8]) *
_ORBIT_tmpvar_9;
}
}
}
_ORBIT_retval = _impl_resolve(_ORBIT_servant, &(n), ev);
{ /* marshalling */
register GIOPSendBuffer *_ORBIT_send_buffer;
_ORBIT_send_buffer =
giop_send_reply_buffer_use(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer)->
connection, NULL,
_ORBIT_recv_buffer->message.u.request.
request_id, ev->_major);
if (_ORBIT_send_buffer) {
if (ev->_major == CORBA_NO_EXCEPTION) {
ORBit_marshal_object(_ORBIT_send_buffer, _ORBIT_retval);
} else if (ev->_major == CORBA_USER_EXCEPTION) {
static const ORBit_exception_marshal_info _ORBIT_user_exceptions[]
= { {(const CORBA_TypeCode)
&TC_CosNaming_NamingContext_NotFound_struct,
(gpointer)
_ORBIT_CosNaming_NamingContext_NotFound_marshal},
{(const CORBA_TypeCode)
&TC_CosNaming_NamingContext_CannotProceed_struct,
(gpointer)
_ORBIT_CosNaming_NamingContext_CannotProceed_marshal},
{(const CORBA_TypeCode)
&TC_CosNaming_NamingContext_InvalidName_struct,
(gpointer)
_ORBIT_CosNaming_NamingContext_InvalidName_marshal},
{CORBA_OBJECT_NIL, NULL} };
ORBit_send_user_exception(_ORBIT_send_buffer, ev,
_ORBIT_user_exceptions);
} else
ORBit_send_system_exception(_ORBIT_send_buffer, ev);
giop_send_buffer_write(_ORBIT_send_buffer);
giop_send_buffer_unuse(_ORBIT_send_buffer);
}
if (ev->_major == CORBA_NO_EXCEPTION)
CORBA_Object_release(_ORBIT_retval, ev);
}
}
void
_ORBIT_skel_CosNaming_NamingContext_unbind(POA_CosNaming_NamingContext *
_ORBIT_servant,
GIOPRecvBuffer *
_ORBIT_recv_buffer,
CORBA_Environment * ev,
void (*_impl_unbind)
(PortableServer_Servant _servant,
const CosNaming_Name * n,
CORBA_Environment * ev))
{
CosNaming_Name n = { 0, 0, NULL, CORBA_FALSE };
{ /* demarshalling */
guchar *_ORBIT_curptr;
register CORBA_unsigned_long _ORBIT_tmpvar_5;
register CORBA_unsigned_long _ORBIT_tmpvar_6;
CORBA_unsigned_long _ORBIT_tmpvar_7;
register CORBA_unsigned_long _ORBIT_tmpvar_8;
CORBA_unsigned_long _ORBIT_tmpvar_9;
_ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
if (giop_msg_conversion_needed(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer))) {
_ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
(*((guint32 *) & (n._length))) =
GUINT32_SWAP_LE_BE(*((guint32 *) _ORBIT_curptr));
_ORBIT_curptr += 4;
n._buffer = alloca(sizeof(n._buffer[_ORBIT_tmpvar_5]) * n._length);
n._release = CORBA_FALSE;
for (_ORBIT_tmpvar_5 = 0; _ORBIT_tmpvar_5 < n._length;
_ORBIT_tmpvar_5++) {
_ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
(*((guint32 *) & (_ORBIT_tmpvar_7))) =
GUINT32_SWAP_LE_BE(*((guint32 *) _ORBIT_curptr));
_ORBIT_curptr += 4;
n._buffer[_ORBIT_tmpvar_5].id = (void *) _ORBIT_curptr;
_ORBIT_curptr +=
sizeof(n._buffer[_ORBIT_tmpvar_5].id[_ORBIT_tmpvar_6]) *
_ORBIT_tmpvar_7;
_ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
(*((guint32 *) & (_ORBIT_tmpvar_9))) =
GUINT32_SWAP_LE_BE(*((guint32 *) _ORBIT_curptr));
_ORBIT_curptr += 4;
n._buffer[_ORBIT_tmpvar_5].kind = (void *) _ORBIT_curptr;
_ORBIT_curptr +=
sizeof(n._buffer[_ORBIT_tmpvar_5].kind[_ORBIT_tmpvar_8]) *
_ORBIT_tmpvar_9;
}
} else {
_ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
n._length = *((CORBA_unsigned_long *) _ORBIT_curptr);
_ORBIT_curptr += 4;
n._buffer = alloca(sizeof(n._buffer[_ORBIT_tmpvar_5]) * n._length);
n._release = CORBA_FALSE;
for (_ORBIT_tmpvar_5 = 0; _ORBIT_tmpvar_5 < n._length;
_ORBIT_tmpvar_5++) {
_ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
_ORBIT_tmpvar_7 = *((CORBA_unsigned_long *) _ORBIT_curptr);
_ORBIT_curptr += 4;
n._buffer[_ORBIT_tmpvar_5].id = (void *) _ORBIT_curptr;
_ORBIT_curptr +=
sizeof(n._buffer[_ORBIT_tmpvar_5].id[_ORBIT_tmpvar_6]) *
_ORBIT_tmpvar_7;
_ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
_ORBIT_tmpvar_9 = *((CORBA_unsigned_long *) _ORBIT_curptr);
_ORBIT_curptr += 4;
n._buffer[_ORBIT_tmpvar_5].kind = (void *) _ORBIT_curptr;
_ORBIT_curptr +=
sizeof(n._buffer[_ORBIT_tmpvar_5].kind[_ORBIT_tmpvar_8]) *
_ORBIT_tmpvar_9;
}
}
}
_impl_unbind(_ORBIT_servant, &(n), ev);
{ /* marshalling */
register GIOPSendBuffer *_ORBIT_send_buffer;
_ORBIT_send_buffer =
giop_send_reply_buffer_use(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer)->
connection, NULL,
_ORBIT_recv_buffer->message.u.request.
request_id, ev->_major);
if (_ORBIT_send_buffer) {
if (ev->_major == CORBA_NO_EXCEPTION) {
} else if (ev->_major == CORBA_USER_EXCEPTION) {
static const ORBit_exception_marshal_info _ORBIT_user_exceptions[]
= { {(const CORBA_TypeCode)
&TC_CosNaming_NamingContext_NotFound_struct,
(gpointer)
_ORBIT_CosNaming_NamingContext_NotFound_marshal},
{(const CORBA_TypeCode)
&TC_CosNaming_NamingContext_CannotProceed_struct,
(gpointer)
_ORBIT_CosNaming_NamingContext_CannotProceed_marshal},
{(const CORBA_TypeCode)
&TC_CosNaming_NamingContext_InvalidName_struct,
(gpointer)
_ORBIT_CosNaming_NamingContext_InvalidName_marshal},
{CORBA_OBJECT_NIL, NULL} };
ORBit_send_user_exception(_ORBIT_send_buffer, ev,
_ORBIT_user_exceptions);
} else
ORBit_send_system_exception(_ORBIT_send_buffer, ev);
giop_send_buffer_write(_ORBIT_send_buffer);
giop_send_buffer_unuse(_ORBIT_send_buffer);
}
}
}
void
_ORBIT_skel_CosNaming_NamingContext_new_context(POA_CosNaming_NamingContext *
_ORBIT_servant,
GIOPRecvBuffer *
_ORBIT_recv_buffer,
CORBA_Environment * ev,
CosNaming_NamingContext
(*_impl_new_context)
(PortableServer_Servant
_servant,
CORBA_Environment * ev))
{
CosNaming_NamingContext _ORBIT_retval;
_ORBIT_retval = _impl_new_context(_ORBIT_servant, ev);
{ /* marshalling */
register GIOPSendBuffer *_ORBIT_send_buffer;
_ORBIT_send_buffer =
giop_send_reply_buffer_use(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer)->
connection, NULL,
_ORBIT_recv_buffer->message.u.request.
request_id, ev->_major);
if (_ORBIT_send_buffer) {
if (ev->_major == CORBA_NO_EXCEPTION) {
ORBit_marshal_object(_ORBIT_send_buffer, _ORBIT_retval);
} else
ORBit_send_system_exception(_ORBIT_send_buffer, ev);
giop_send_buffer_write(_ORBIT_send_buffer);
giop_send_buffer_unuse(_ORBIT_send_buffer);
}
if (ev->_major == CORBA_NO_EXCEPTION)
CORBA_Object_release(_ORBIT_retval, ev);
}
}
void
_ORBIT_skel_CosNaming_NamingContext_bind_new_context
(POA_CosNaming_NamingContext * _ORBIT_servant,
GIOPRecvBuffer * _ORBIT_recv_buffer, CORBA_Environment * ev,
CosNaming_NamingContext(*_impl_bind_new_context) (PortableServer_Servant
_servant,
const CosNaming_Name *
n,
CORBA_Environment * ev))
{
CosNaming_NamingContext _ORBIT_retval;
CosNaming_Name n = { 0, 0, NULL, CORBA_FALSE };
{ /* demarshalling */
guchar *_ORBIT_curptr;
register CORBA_unsigned_long _ORBIT_tmpvar_5;
register CORBA_unsigned_long _ORBIT_tmpvar_6;
CORBA_unsigned_long _ORBIT_tmpvar_7;
register CORBA_unsigned_long _ORBIT_tmpvar_8;
CORBA_unsigned_long _ORBIT_tmpvar_9;
_ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
if (giop_msg_conversion_needed(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer))) {
_ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
(*((guint32 *) & (n._length))) =
GUINT32_SWAP_LE_BE(*((guint32 *) _ORBIT_curptr));
_ORBIT_curptr += 4;
n._buffer = alloca(sizeof(n._buffer[_ORBIT_tmpvar_5]) * n._length);
n._release = CORBA_FALSE;
for (_ORBIT_tmpvar_5 = 0; _ORBIT_tmpvar_5 < n._length;
_ORBIT_tmpvar_5++) {
_ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
(*((guint32 *) & (_ORBIT_tmpvar_7))) =
GUINT32_SWAP_LE_BE(*((guint32 *) _ORBIT_curptr));
_ORBIT_curptr += 4;
n._buffer[_ORBIT_tmpvar_5].id = (void *) _ORBIT_curptr;
_ORBIT_curptr +=
sizeof(n._buffer[_ORBIT_tmpvar_5].id[_ORBIT_tmpvar_6]) *
_ORBIT_tmpvar_7;
_ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
(*((guint32 *) & (_ORBIT_tmpvar_9))) =
GUINT32_SWAP_LE_BE(*((guint32 *) _ORBIT_curptr));
_ORBIT_curptr += 4;
n._buffer[_ORBIT_tmpvar_5].kind = (void *) _ORBIT_curptr;
_ORBIT_curptr +=
sizeof(n._buffer[_ORBIT_tmpvar_5].kind[_ORBIT_tmpvar_8]) *
_ORBIT_tmpvar_9;
}
} else {
_ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
n._length = *((CORBA_unsigned_long *) _ORBIT_curptr);
_ORBIT_curptr += 4;
n._buffer = alloca(sizeof(n._buffer[_ORBIT_tmpvar_5]) * n._length);
n._release = CORBA_FALSE;
for (_ORBIT_tmpvar_5 = 0; _ORBIT_tmpvar_5 < n._length;
_ORBIT_tmpvar_5++) {
_ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
_ORBIT_tmpvar_7 = *((CORBA_unsigned_long *) _ORBIT_curptr);
_ORBIT_curptr += 4;
n._buffer[_ORBIT_tmpvar_5].id = (void *) _ORBIT_curptr;
_ORBIT_curptr +=
sizeof(n._buffer[_ORBIT_tmpvar_5].id[_ORBIT_tmpvar_6]) *
_ORBIT_tmpvar_7;
_ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
_ORBIT_tmpvar_9 = *((CORBA_unsigned_long *) _ORBIT_curptr);
_ORBIT_curptr += 4;
n._buffer[_ORBIT_tmpvar_5].kind = (void *) _ORBIT_curptr;
_ORBIT_curptr +=
sizeof(n._buffer[_ORBIT_tmpvar_5].kind[_ORBIT_tmpvar_8]) *
_ORBIT_tmpvar_9;
}
}
}
_ORBIT_retval = _impl_bind_new_context(_ORBIT_servant, &(n), ev);
{ /* marshalling */
register GIOPSendBuffer *_ORBIT_send_buffer;
_ORBIT_send_buffer =
giop_send_reply_buffer_use(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer)->
connection, NULL,
_ORBIT_recv_buffer->message.u.request.
request_id, ev->_major);
if (_ORBIT_send_buffer) {
if (ev->_major == CORBA_NO_EXCEPTION) {
ORBit_marshal_object(_ORBIT_send_buffer, _ORBIT_retval);
} else if (ev->_major == CORBA_USER_EXCEPTION) {
static const ORBit_exception_marshal_info _ORBIT_user_exceptions[]
= { {(const CORBA_TypeCode)
&TC_CosNaming_NamingContext_NotFound_struct,
(gpointer)
_ORBIT_CosNaming_NamingContext_NotFound_marshal},
{(const CORBA_TypeCode)
&TC_CosNaming_NamingContext_AlreadyBound_struct,
(gpointer)
_ORBIT_CosNaming_NamingContext_AlreadyBound_marshal},
{(const CORBA_TypeCode)
&TC_CosNaming_NamingContext_CannotProceed_struct,
(gpointer)
_ORBIT_CosNaming_NamingContext_CannotProceed_marshal},
{(const CORBA_TypeCode)
&TC_CosNaming_NamingContext_InvalidName_struct,
(gpointer)
_ORBIT_CosNaming_NamingContext_InvalidName_marshal},
{CORBA_OBJECT_NIL, NULL} };
ORBit_send_user_exception(_ORBIT_send_buffer, ev,
_ORBIT_user_exceptions);
} else
ORBit_send_system_exception(_ORBIT_send_buffer, ev);
giop_send_buffer_write(_ORBIT_send_buffer);
giop_send_buffer_unuse(_ORBIT_send_buffer);
}
if (ev->_major == CORBA_NO_EXCEPTION)
CORBA_Object_release(_ORBIT_retval, ev);
}
}
void
_ORBIT_skel_CosNaming_NamingContext_destroy(POA_CosNaming_NamingContext *
_ORBIT_servant,
GIOPRecvBuffer *
_ORBIT_recv_buffer,
CORBA_Environment * ev,
void (*_impl_destroy)
(PortableServer_Servant _servant,
CORBA_Environment * ev))
{
_impl_destroy(_ORBIT_servant, ev);
{ /* marshalling */
register GIOPSendBuffer *_ORBIT_send_buffer;
_ORBIT_send_buffer =
giop_send_reply_buffer_use(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer)->
connection, NULL,
_ORBIT_recv_buffer->message.u.request.
request_id, ev->_major);
if (_ORBIT_send_buffer) {
if (ev->_major == CORBA_NO_EXCEPTION) {
} else if (ev->_major == CORBA_USER_EXCEPTION) {
static const ORBit_exception_marshal_info _ORBIT_user_exceptions[]
= { {(const CORBA_TypeCode)
&TC_CosNaming_NamingContext_NotEmpty_struct,
(gpointer)
_ORBIT_CosNaming_NamingContext_NotEmpty_marshal},
{CORBA_OBJECT_NIL, NULL} };
ORBit_send_user_exception(_ORBIT_send_buffer, ev,
_ORBIT_user_exceptions);
} else
ORBit_send_system_exception(_ORBIT_send_buffer, ev);
giop_send_buffer_write(_ORBIT_send_buffer);
giop_send_buffer_unuse(_ORBIT_send_buffer);
}
}
}
void
_ORBIT_skel_CosNaming_NamingContext_list(POA_CosNaming_NamingContext *
_ORBIT_servant,
GIOPRecvBuffer * _ORBIT_recv_buffer,
CORBA_Environment * ev,
void (*_impl_list)
(PortableServer_Servant _servant,
const CORBA_unsigned_long how_many,
CosNaming_BindingList ** bl,
CosNaming_BindingIterator * bi,
CORBA_Environment * ev))
{
CORBA_unsigned_long how_many;
CosNaming_BindingList *bl;
CosNaming_BindingIterator bi;
{ /* demarshalling */
guchar *_ORBIT_curptr;
_ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
if (giop_msg_conversion_needed(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer))) {
_ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
(*((guint32 *) & (how_many))) =
GUINT32_SWAP_LE_BE(*((guint32 *) _ORBIT_curptr));} else {
_ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
how_many = *((CORBA_unsigned_long *) _ORBIT_curptr);
}
}
_impl_list(_ORBIT_servant, how_many, &(bl), &(bi), ev);
{ /* marshalling */
register GIOPSendBuffer *_ORBIT_send_buffer;
_ORBIT_send_buffer =
giop_send_reply_buffer_use(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer)->
connection, NULL,
_ORBIT_recv_buffer->message.u.request.
request_id, ev->_major);
if (_ORBIT_send_buffer) {
if (ev->_major == CORBA_NO_EXCEPTION) {
register CORBA_unsigned_long _ORBIT_tmpvar_0;
register CORBA_unsigned_long _ORBIT_tmpvar_1;
register CORBA_unsigned_long _ORBIT_tmpvar_2;
CORBA_unsigned_long _ORBIT_tmpvar_3;
register CORBA_unsigned_long _ORBIT_tmpvar_4;
CORBA_unsigned_long _ORBIT_tmpvar_5;
giop_message_buffer_do_alignment(GIOP_MESSAGE_BUFFER
(_ORBIT_send_buffer), 4);
{
guchar *_ORBIT_t;
_ORBIT_t = alloca(sizeof((*bl)._length));
memcpy(_ORBIT_t, &((*bl)._length), sizeof((*bl)._length));
giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER
(_ORBIT_send_buffer),
(_ORBIT_t),
sizeof((*bl)._length));
}
for (_ORBIT_tmpvar_0 = 0; _ORBIT_tmpvar_0 < (*bl)._length;
_ORBIT_tmpvar_0++) {
{
guchar *_ORBIT_t;
_ORBIT_t =
alloca(sizeof
((*bl)._buffer[_ORBIT_tmpvar_0].binding_name.
_length));
memcpy(_ORBIT_t,
&((*bl)._buffer[_ORBIT_tmpvar_0].binding_name.
_length),
sizeof((*bl)._buffer[_ORBIT_tmpvar_0].
binding_name._length));
giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER
(_ORBIT_send_buffer),
(_ORBIT_t),
sizeof((*bl).
_buffer
[_ORBIT_tmpvar_0].
binding_name.
_length));
}
for (_ORBIT_tmpvar_1 = 0;
_ORBIT_tmpvar_1 <
(*bl)._buffer[_ORBIT_tmpvar_0].binding_name._length;
_ORBIT_tmpvar_1++) {
_ORBIT_tmpvar_3 =
strlen((*bl)._buffer[_ORBIT_tmpvar_0].binding_name.
_buffer[_ORBIT_tmpvar_1].id) + 1;
giop_message_buffer_do_alignment(GIOP_MESSAGE_BUFFER
(_ORBIT_send_buffer), 4);
{
guchar *_ORBIT_t;
_ORBIT_t = alloca(sizeof(_ORBIT_tmpvar_3));
memcpy(_ORBIT_t, &(_ORBIT_tmpvar_3),
sizeof(_ORBIT_tmpvar_3));
giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER
(_ORBIT_send_buffer),
(_ORBIT_t),
sizeof(_ORBIT_tmpvar_3));
}
{
guchar *_ORBIT_t;
_ORBIT_t =
alloca(sizeof
((*bl)._buffer[_ORBIT_tmpvar_0].binding_name.
_buffer[_ORBIT_tmpvar_1].
id[_ORBIT_tmpvar_2]) * _ORBIT_tmpvar_3);
memcpy(_ORBIT_t,
((*bl)._buffer[_ORBIT_tmpvar_0].binding_name.
_buffer[_ORBIT_tmpvar_1].id),
sizeof((*bl)._buffer[_ORBIT_tmpvar_0].
binding_name._buffer[_ORBIT_tmpvar_1].
id[_ORBIT_tmpvar_2]) * _ORBIT_tmpvar_3);
giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER
(_ORBIT_send_buffer),
(_ORBIT_t),
sizeof((*bl).
_buffer
[_ORBIT_tmpvar_0].
binding_name.
_buffer
[_ORBIT_tmpvar_1].
id
[_ORBIT_tmpvar_2])
* _ORBIT_tmpvar_3);
}
_ORBIT_tmpvar_5 =
strlen((*bl)._buffer[_ORBIT_tmpvar_0].binding_name.
_buffer[_ORBIT_tmpvar_1].kind) + 1;
giop_message_buffer_do_alignment(GIOP_MESSAGE_BUFFER
(_ORBIT_send_buffer), 4);
{
guchar *_ORBIT_t;
_ORBIT_t = alloca(sizeof(_ORBIT_tmpvar_5));
memcpy(_ORBIT_t, &(_ORBIT_tmpvar_5),
sizeof(_ORBIT_tmpvar_5));
giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER
(_ORBIT_send_buffer),
(_ORBIT_t),
sizeof(_ORBIT_tmpvar_5));
}
{
guchar *_ORBIT_t;
_ORBIT_t =
alloca(sizeof
((*bl)._buffer[_ORBIT_tmpvar_0].binding_name.
_buffer[_ORBIT_tmpvar_1].
kind[_ORBIT_tmpvar_4]) * _ORBIT_tmpvar_5);
memcpy(_ORBIT_t,
((*bl)._buffer[_ORBIT_tmpvar_0].binding_name.
_buffer[_ORBIT_tmpvar_1].kind),
sizeof((*bl)._buffer[_ORBIT_tmpvar_0].
binding_name._buffer[_ORBIT_tmpvar_1].
kind[_ORBIT_tmpvar_4]) * _ORBIT_tmpvar_5);
giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER
(_ORBIT_send_buffer),
(_ORBIT_t),
sizeof((*bl).
_buffer
[_ORBIT_tmpvar_0].
binding_name.
_buffer
[_ORBIT_tmpvar_1].
kind
[_ORBIT_tmpvar_4])
* _ORBIT_tmpvar_5);
}
}
giop_message_buffer_do_alignment(GIOP_MESSAGE_BUFFER
(_ORBIT_send_buffer), 4);
{
guchar *_ORBIT_t;
_ORBIT_t =
alloca(sizeof
((*bl)._buffer[_ORBIT_tmpvar_0].binding_type));
memcpy(_ORBIT_t,
&((*bl)._buffer[_ORBIT_tmpvar_0].binding_type),
sizeof((*bl)._buffer[_ORBIT_tmpvar_0].
binding_type));
giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER
(_ORBIT_send_buffer),
(_ORBIT_t),
sizeof((*bl).
_buffer
[_ORBIT_tmpvar_0].
binding_type));
}
}
ORBit_marshal_object(_ORBIT_send_buffer, bi);
} else
ORBit_send_system_exception(_ORBIT_send_buffer, ev);
giop_send_buffer_write(_ORBIT_send_buffer);
giop_send_buffer_unuse(_ORBIT_send_buffer);
}
if (ev->_major == CORBA_NO_EXCEPTION)
CORBA_free(bl);
if (ev->_major == CORBA_NO_EXCEPTION)
CORBA_Object_release(bi, ev);
}
}
void
_ORBIT_skel_CosNaming_BindingIterator_next_one(POA_CosNaming_BindingIterator *
_ORBIT_servant,
GIOPRecvBuffer *
_ORBIT_recv_buffer,
CORBA_Environment * ev,
CORBA_boolean(*_impl_next_one)
(PortableServer_Servant
_servant,
CosNaming_Binding ** b,
CORBA_Environment * ev))
{
CORBA_boolean _ORBIT_retval;
CosNaming_Binding *b;
{ /* demarshalling */
guchar *_ORBIT_curptr;
_ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
if (giop_msg_conversion_needed(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer))) {
} else {
}
}
_ORBIT_retval = _impl_next_one(_ORBIT_servant, &(b), ev);
{ /* marshalling */
register GIOPSendBuffer *_ORBIT_send_buffer;
_ORBIT_send_buffer =
giop_send_reply_buffer_use(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer)->
connection, NULL,
_ORBIT_recv_buffer->message.u.request.
request_id, ev->_major);
if (_ORBIT_send_buffer) {
if (ev->_major == CORBA_NO_EXCEPTION) {
register CORBA_unsigned_long _ORBIT_tmpvar_0;
register CORBA_unsigned_long _ORBIT_tmpvar_1;
CORBA_unsigned_long _ORBIT_tmpvar_2;
register CORBA_unsigned_long _ORBIT_tmpvar_3;
CORBA_unsigned_long _ORBIT_tmpvar_4;
{
guchar *_ORBIT_t;
_ORBIT_t = alloca(sizeof(_ORBIT_retval));
memcpy(_ORBIT_t, &(_ORBIT_retval), sizeof(_ORBIT_retval));
giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER
(_ORBIT_send_buffer),
(_ORBIT_t),
sizeof(_ORBIT_retval));
}
giop_message_buffer_do_alignment(GIOP_MESSAGE_BUFFER
(_ORBIT_send_buffer), 4);
{
guchar *_ORBIT_t;
_ORBIT_t = alloca(sizeof((*b).binding_name._length));
memcpy(_ORBIT_t, &((*b).binding_name._length),
sizeof((*b).binding_name._length));
giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER
(_ORBIT_send_buffer),
(_ORBIT_t),
sizeof((*b).binding_name.
_length));
}
for (_ORBIT_tmpvar_0 = 0;
_ORBIT_tmpvar_0 < (*b).binding_name._length;
_ORBIT_tmpvar_0++) {
_ORBIT_tmpvar_2 =
strlen((*b).binding_name._buffer[_ORBIT_tmpvar_0].id) + 1;
giop_message_buffer_do_alignment(GIOP_MESSAGE_BUFFER
(_ORBIT_send_buffer), 4);
{
guchar *_ORBIT_t;
_ORBIT_t = alloca(sizeof(_ORBIT_tmpvar_2));
memcpy(_ORBIT_t, &(_ORBIT_tmpvar_2),
sizeof(_ORBIT_tmpvar_2));
giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER
(_ORBIT_send_buffer),
(_ORBIT_t),
sizeof(_ORBIT_tmpvar_2));
}
{
guchar *_ORBIT_t;
_ORBIT_t =
alloca(sizeof
((*b).binding_name._buffer[_ORBIT_tmpvar_0].
id[_ORBIT_tmpvar_1]) * _ORBIT_tmpvar_2);
memcpy(_ORBIT_t,
((*b).binding_name._buffer[_ORBIT_tmpvar_0].id),
sizeof((*b).binding_name._buffer[_ORBIT_tmpvar_0].
id[_ORBIT_tmpvar_1]) * _ORBIT_tmpvar_2);
giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER
(_ORBIT_send_buffer),
(_ORBIT_t),
sizeof((*b).binding_name.
_buffer
[_ORBIT_tmpvar_0].
id[_ORBIT_tmpvar_1]) *
_ORBIT_tmpvar_2);
}
_ORBIT_tmpvar_4 =
strlen((*b).binding_name._buffer[_ORBIT_tmpvar_0].kind) + 1;
giop_message_buffer_do_alignment(GIOP_MESSAGE_BUFFER
(_ORBIT_send_buffer), 4);
{
guchar *_ORBIT_t;
_ORBIT_t = alloca(sizeof(_ORBIT_tmpvar_4));
memcpy(_ORBIT_t, &(_ORBIT_tmpvar_4),
sizeof(_ORBIT_tmpvar_4));
giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER
(_ORBIT_send_buffer),
(_ORBIT_t),
sizeof(_ORBIT_tmpvar_4));
}
{
guchar *_ORBIT_t;
_ORBIT_t =
alloca(sizeof
((*b).binding_name._buffer[_ORBIT_tmpvar_0].
kind[_ORBIT_tmpvar_3]) * _ORBIT_tmpvar_4);
memcpy(_ORBIT_t,
((*b).binding_name._buffer[_ORBIT_tmpvar_0].kind),
sizeof((*b).binding_name._buffer[_ORBIT_tmpvar_0].
kind[_ORBIT_tmpvar_3]) * _ORBIT_tmpvar_4);
giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER
(_ORBIT_send_buffer),
(_ORBIT_t),
sizeof((*b).binding_name.
_buffer
[_ORBIT_tmpvar_0].
kind[_ORBIT_tmpvar_3])
* _ORBIT_tmpvar_4);
}
}
giop_message_buffer_do_alignment(GIOP_MESSAGE_BUFFER
(_ORBIT_send_buffer), 4);
giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER
(_ORBIT_send_buffer),
&((*b).binding_type),
sizeof((*b).binding_type));
} else
ORBit_send_system_exception(_ORBIT_send_buffer, ev);
giop_send_buffer_write(_ORBIT_send_buffer);
giop_send_buffer_unuse(_ORBIT_send_buffer);
}
if (ev->_major == CORBA_NO_EXCEPTION)
CORBA_free(b);
}
}
void
_ORBIT_skel_CosNaming_BindingIterator_next_n(POA_CosNaming_BindingIterator *
_ORBIT_servant,
GIOPRecvBuffer *
_ORBIT_recv_buffer,
CORBA_Environment * ev,
CORBA_boolean(*_impl_next_n)
(PortableServer_Servant _servant,
const CORBA_unsigned_long
how_many,
CosNaming_BindingList ** bl,
CORBA_Environment * ev))
{
CORBA_boolean _ORBIT_retval;
CORBA_unsigned_long how_many;
CosNaming_BindingList *bl;
{ /* demarshalling */
guchar *_ORBIT_curptr;
_ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
if (giop_msg_conversion_needed(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer))) {
_ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
(*((guint32 *) & (how_many))) =
GUINT32_SWAP_LE_BE(*((guint32 *) _ORBIT_curptr));} else {
_ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
how_many = *((CORBA_unsigned_long *) _ORBIT_curptr);
}
}
_ORBIT_retval = _impl_next_n(_ORBIT_servant, how_many, &(bl), ev);
{ /* marshalling */
register GIOPSendBuffer *_ORBIT_send_buffer;
_ORBIT_send_buffer =
giop_send_reply_buffer_use(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer)->
connection, NULL,
_ORBIT_recv_buffer->message.u.request.
request_id, ev->_major);
if (_ORBIT_send_buffer) {
if (ev->_major == CORBA_NO_EXCEPTION) {
register CORBA_unsigned_long _ORBIT_tmpvar_0;
register CORBA_unsigned_long _ORBIT_tmpvar_1;
register CORBA_unsigned_long _ORBIT_tmpvar_2;
CORBA_unsigned_long _ORBIT_tmpvar_3;
register CORBA_unsigned_long _ORBIT_tmpvar_4;
CORBA_unsigned_long _ORBIT_tmpvar_5;
{
guchar *_ORBIT_t;
_ORBIT_t = alloca(sizeof(_ORBIT_retval));
memcpy(_ORBIT_t, &(_ORBIT_retval), sizeof(_ORBIT_retval));
giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER
(_ORBIT_send_buffer),
(_ORBIT_t),
sizeof(_ORBIT_retval));
}
giop_message_buffer_do_alignment(GIOP_MESSAGE_BUFFER
(_ORBIT_send_buffer), 4);
{
guchar *_ORBIT_t;
_ORBIT_t = alloca(sizeof((*bl)._length));
memcpy(_ORBIT_t, &((*bl)._length), sizeof((*bl)._length));
giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER
(_ORBIT_send_buffer),
(_ORBIT_t),
sizeof((*bl)._length));
}
for (_ORBIT_tmpvar_0 = 0; _ORBIT_tmpvar_0 < (*bl)._length;
_ORBIT_tmpvar_0++) {
{
guchar *_ORBIT_t;
_ORBIT_t =
alloca(sizeof
((*bl)._buffer[_ORBIT_tmpvar_0].binding_name.
_length));
memcpy(_ORBIT_t,
&((*bl)._buffer[_ORBIT_tmpvar_0].binding_name.
_length),
sizeof((*bl)._buffer[_ORBIT_tmpvar_0].
binding_name._length));
giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER
(_ORBIT_send_buffer),
(_ORBIT_t),
sizeof((*bl).
_buffer
[_ORBIT_tmpvar_0].
binding_name.
_length));
}
for (_ORBIT_tmpvar_1 = 0;
_ORBIT_tmpvar_1 <
(*bl)._buffer[_ORBIT_tmpvar_0].binding_name._length;
_ORBIT_tmpvar_1++) {
_ORBIT_tmpvar_3 =
strlen((*bl)._buffer[_ORBIT_tmpvar_0].binding_name.
_buffer[_ORBIT_tmpvar_1].id) + 1;
giop_message_buffer_do_alignment(GIOP_MESSAGE_BUFFER
(_ORBIT_send_buffer), 4);
{
guchar *_ORBIT_t;
_ORBIT_t = alloca(sizeof(_ORBIT_tmpvar_3));
memcpy(_ORBIT_t, &(_ORBIT_tmpvar_3),
sizeof(_ORBIT_tmpvar_3));
giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER
(_ORBIT_send_buffer),
(_ORBIT_t),
sizeof(_ORBIT_tmpvar_3));
}
{
guchar *_ORBIT_t;
_ORBIT_t =
alloca(sizeof
((*bl)._buffer[_ORBIT_tmpvar_0].binding_name.
_buffer[_ORBIT_tmpvar_1].
id[_ORBIT_tmpvar_2]) * _ORBIT_tmpvar_3);
memcpy(_ORBIT_t,
((*bl)._buffer[_ORBIT_tmpvar_0].binding_name.
_buffer[_ORBIT_tmpvar_1].id),
sizeof((*bl)._buffer[_ORBIT_tmpvar_0].
binding_name._buffer[_ORBIT_tmpvar_1].
id[_ORBIT_tmpvar_2]) * _ORBIT_tmpvar_3);
giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER
(_ORBIT_send_buffer),
(_ORBIT_t),
sizeof((*bl).
_buffer
[_ORBIT_tmpvar_0].
binding_name.
_buffer
[_ORBIT_tmpvar_1].
id
[_ORBIT_tmpvar_2])
* _ORBIT_tmpvar_3);
}
_ORBIT_tmpvar_5 =
strlen((*bl)._buffer[_ORBIT_tmpvar_0].binding_name.
_buffer[_ORBIT_tmpvar_1].kind) + 1;
giop_message_buffer_do_alignment(GIOP_MESSAGE_BUFFER
(_ORBIT_send_buffer), 4);
{
guchar *_ORBIT_t;
_ORBIT_t = alloca(sizeof(_ORBIT_tmpvar_5));
memcpy(_ORBIT_t, &(_ORBIT_tmpvar_5),
sizeof(_ORBIT_tmpvar_5));
giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER
(_ORBIT_send_buffer),
(_ORBIT_t),
sizeof(_ORBIT_tmpvar_5));
}
{
guchar *_ORBIT_t;
_ORBIT_t =
alloca(sizeof
((*bl)._buffer[_ORBIT_tmpvar_0].binding_name.
_buffer[_ORBIT_tmpvar_1].
kind[_ORBIT_tmpvar_4]) * _ORBIT_tmpvar_5);
memcpy(_ORBIT_t,
((*bl)._buffer[_ORBIT_tmpvar_0].binding_name.
_buffer[_ORBIT_tmpvar_1].kind),
sizeof((*bl)._buffer[_ORBIT_tmpvar_0].
binding_name._buffer[_ORBIT_tmpvar_1].
kind[_ORBIT_tmpvar_4]) * _ORBIT_tmpvar_5);
giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER
(_ORBIT_send_buffer),
(_ORBIT_t),
sizeof((*bl).
_buffer
[_ORBIT_tmpvar_0].
binding_name.
_buffer
[_ORBIT_tmpvar_1].
kind
[_ORBIT_tmpvar_4])
* _ORBIT_tmpvar_5);
}
}
giop_message_buffer_do_alignment(GIOP_MESSAGE_BUFFER
(_ORBIT_send_buffer), 4);
{
guchar *_ORBIT_t;
_ORBIT_t =
alloca(sizeof
((*bl)._buffer[_ORBIT_tmpvar_0].binding_type));
memcpy(_ORBIT_t,
&((*bl)._buffer[_ORBIT_tmpvar_0].binding_type),
sizeof((*bl)._buffer[_ORBIT_tmpvar_0].
binding_type));
giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER
(_ORBIT_send_buffer),
(_ORBIT_t),
sizeof((*bl).
_buffer
[_ORBIT_tmpvar_0].
binding_type));
}
}
} else
ORBit_send_system_exception(_ORBIT_send_buffer, ev);
giop_send_buffer_write(_ORBIT_send_buffer);
giop_send_buffer_unuse(_ORBIT_send_buffer);
}
if (ev->_major == CORBA_NO_EXCEPTION)
CORBA_free(bl);
}
}
void
_ORBIT_skel_CosNaming_BindingIterator_destroy(POA_CosNaming_BindingIterator *
_ORBIT_servant,
GIOPRecvBuffer *
_ORBIT_recv_buffer,
CORBA_Environment * ev,
void (*_impl_destroy)
(PortableServer_Servant
_servant,
CORBA_Environment * ev))
{
_impl_destroy(_ORBIT_servant, ev);
{ /* marshalling */
register GIOPSendBuffer *_ORBIT_send_buffer;
_ORBIT_send_buffer =
giop_send_reply_buffer_use(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer)->
connection, NULL,
_ORBIT_recv_buffer->message.u.request.
request_id, ev->_major);
if (_ORBIT_send_buffer) {
if (ev->_major == CORBA_NO_EXCEPTION) {
} else
ORBit_send_system_exception(_ORBIT_send_buffer, ev);
giop_send_buffer_write(_ORBIT_send_buffer);
giop_send_buffer_unuse(_ORBIT_send_buffer);
}
}
}
static ORBitSkeleton
get_skel_CosNaming_NamingContext(POA_CosNaming_NamingContext * servant,
GIOPRecvBuffer * _ORBIT_recv_buffer,
gpointer * impl)
{
gchar *opname = _ORBIT_recv_buffer->message.u.request.operation;
switch (opname[0]) {
case 'b':
switch (opname[1]) {
case 'i':
switch (opname[2]) {
case 'n':
switch (opname[3]) {
case 'd':
switch (opname[4]) {
case '\0':
*impl =
(gpointer) servant->vepv->
CosNaming_NamingContext_epv->bind;
return (ORBitSkeleton)
_ORBIT_skel_CosNaming_NamingContext_bind;
break;
case '_':
switch (opname[5]) {
case 'c':
if (strcmp((opname + 6), "ontext"))
break;
*impl =
(gpointer) servant->vepv->
CosNaming_NamingContext_epv->bind_context;
return (ORBitSkeleton)
_ORBIT_skel_CosNaming_NamingContext_bind_context;
break;
case 'n':
if (strcmp((opname + 6), "ew_context"))
break;
*impl =
(gpointer) servant->vepv->
CosNaming_NamingContext_epv->
bind_new_context;
return (ORBitSkeleton)
_ORBIT_skel_CosNaming_NamingContext_bind_new_context;
break;
default:
break;
}
break;
default:
break;
}
break;
default:
break;
}
break;
default:
break;
}
break;
default:
break;
}
break;
case 'd':
if (strcmp((opname + 1), "estroy"))
break;
*impl =
(gpointer) servant->vepv->CosNaming_NamingContext_epv->destroy;
return (ORBitSkeleton) _ORBIT_skel_CosNaming_NamingContext_destroy;
break;
case 'l':
if (strcmp((opname + 1), "ist"))
break;
*impl = (gpointer) servant->vepv->CosNaming_NamingContext_epv->list;
return (ORBitSkeleton) _ORBIT_skel_CosNaming_NamingContext_list;
break;
case 'n':
if (strcmp((opname + 1), "ew_context"))
break;
*impl =
(gpointer) servant->vepv->CosNaming_NamingContext_epv->new_context;
return (ORBitSkeleton)
_ORBIT_skel_CosNaming_NamingContext_new_context;
break;
case 'r':
switch (opname[1]) {
case 'e':
switch (opname[2]) {
case 'b':
switch (opname[3]) {
case 'i':
switch (opname[4]) {
case 'n':
switch (opname[5]) {
case 'd':
switch (opname[6]) {
case '\0':
*impl =
(gpointer) servant->vepv->
CosNaming_NamingContext_epv->rebind;
return (ORBitSkeleton)
_ORBIT_skel_CosNaming_NamingContext_rebind;
break;
case '_':
if (strcmp((opname + 7), "context"))
break;
*impl =
(gpointer) servant->vepv->
CosNaming_NamingContext_epv->
rebind_context;
return (ORBitSkeleton)
_ORBIT_skel_CosNaming_NamingContext_rebind_context;
break;
default:
break;
}
break;
default:
break;
}
break;
default:
break;
}
break;
default:
break;
}
break;
case 's':
if (strcmp((opname + 3), "olve"))
break;
*impl =
(gpointer) servant->vepv->CosNaming_NamingContext_epv->
resolve;
return (ORBitSkeleton)
_ORBIT_skel_CosNaming_NamingContext_resolve;
break;
default:
break;
}
break;
default:
break;
}
break;
case 'u':
if (strcmp((opname + 1), "nbind"))
break;
*impl = (gpointer) servant->vepv->CosNaming_NamingContext_epv->unbind;
return (ORBitSkeleton) _ORBIT_skel_CosNaming_NamingContext_unbind;
break;
default:
break;
}
return NULL;
}
static void
init_local_objref_CosNaming_NamingContext(CORBA_Object obj,
POA_CosNaming_NamingContext *
servant)
{
obj->vepv[CosNaming_NamingContext__classid] =
servant->vepv->CosNaming_NamingContext_epv;
}
void
POA_CosNaming_NamingContext__init(PortableServer_Servant servant,
CORBA_Environment * env)
{
static const PortableServer_ClassInfo class_info =
{ (ORBit_impl_finder) & get_skel_CosNaming_NamingContext,
"IDL:omg.org/CosNaming/NamingContext:1.0",
(ORBit_local_objref_init) & init_local_objref_CosNaming_NamingContext
};
PortableServer_ServantBase__init(((PortableServer_ServantBase *) servant),
env);
ORBIT_OBJECT_KEY(((PortableServer_ServantBase *) servant)->_private)->
class_info = (PortableServer_ClassInfo *) & class_info;
if (!CosNaming_NamingContext__classid)
CosNaming_NamingContext__classid = ORBit_register_class(&class_info);
}
void
POA_CosNaming_NamingContext__fini(PortableServer_Servant servant,
CORBA_Environment * env)
{
PortableServer_ServantBase__fini(servant, env);
}
static ORBitSkeleton
get_skel_CosNaming_BindingIterator(POA_CosNaming_BindingIterator * servant,
GIOPRecvBuffer * _ORBIT_recv_buffer,
gpointer * impl)
{
gchar *opname = _ORBIT_recv_buffer->message.u.request.operation;
switch (opname[0]) {
case 'd':
if (strcmp((opname + 1), "estroy"))
break;
*impl =
(gpointer) servant->vepv->CosNaming_BindingIterator_epv->destroy;
return (ORBitSkeleton) _ORBIT_skel_CosNaming_BindingIterator_destroy;
break;
case 'n':
switch (opname[1]) {
case 'e':
switch (opname[2]) {
case 'x':
switch (opname[3]) {
case 't':
switch (opname[4]) {
case '_':
switch (opname[5]) {
case 'n':
if (strcmp((opname + 6), ""))
break;
*impl =
(gpointer) servant->vepv->
CosNaming_BindingIterator_epv->next_n;
return (ORBitSkeleton)
_ORBIT_skel_CosNaming_BindingIterator_next_n;
break;
case 'o':
if (strcmp((opname + 6), "ne"))
break;
*impl =
(gpointer) servant->vepv->
CosNaming_BindingIterator_epv->next_one;
return (ORBitSkeleton)
_ORBIT_skel_CosNaming_BindingIterator_next_one;
break;
default:
break;
}
break;
default:
break;
}
break;
default:
break;
}
break;
default:
break;
}
break;
default:
break;
}
break;
default:
break;
}
return NULL;
}
static void
init_local_objref_CosNaming_BindingIterator(CORBA_Object obj,
POA_CosNaming_BindingIterator *
servant)
{
obj->vepv[CosNaming_BindingIterator__classid] =
servant->vepv->CosNaming_BindingIterator_epv;
}
void
POA_CosNaming_BindingIterator__init(PortableServer_Servant servant,
CORBA_Environment * env)
{
static const PortableServer_ClassInfo class_info =
{ (ORBit_impl_finder) & get_skel_CosNaming_BindingIterator,
"IDL:omg.org/CosNaming/BindingIterator:1.0",
(ORBit_local_objref_init) &
init_local_objref_CosNaming_BindingIterator };
PortableServer_ServantBase__init(((PortableServer_ServantBase *) servant),
env);
ORBIT_OBJECT_KEY(((PortableServer_ServantBase *) servant)->_private)->
class_info = (PortableServer_ClassInfo *) & class_info;
if (!CosNaming_BindingIterator__classid)
CosNaming_BindingIterator__classid = ORBit_register_class(&class_info);
}
void
POA_CosNaming_BindingIterator__fini(PortableServer_Servant servant,
CORBA_Environment * env)
{
PortableServer_ServantBase__fini(servant, env);
}
| {
"content_hash": "67307cdd05ad792d3c7210ddbf507501",
"timestamp": "",
"source": "github",
"line_count": 2016,
"max_line_length": 80,
"avg_line_length": 32.957837301587304,
"alnum_prop": 0.6015833120117996,
"repo_name": "corbinbs/CORBin",
"id": "ad3535d71215f46bd84bb9e78ec82293310e939f",
"size": "66443",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "CORBin_System/tests/myAccountExample/ORBIT/example_ns/CosNaming-skels.c",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "578323"
},
{
"name": "C++",
"bytes": "35691"
},
{
"name": "D",
"bytes": "2920"
},
{
"name": "Java",
"bytes": "73651"
},
{
"name": "Perl",
"bytes": "31340"
},
{
"name": "R",
"bytes": "6518"
},
{
"name": "Ruby",
"bytes": "73"
},
{
"name": "Shell",
"bytes": "3463"
},
{
"name": "Standard ML",
"bytes": "335610"
},
{
"name": "TeX",
"bytes": "183297"
}
],
"symlink_target": ""
} |
@interface NSObject (VariableCellColumnDelegate)
- (id)tableColumn:(NSTableColumn *)column inTableView:(NSTableView *)tableView dataCellForRow:(int)row;
@end
@interface VariableCellColumn : NSTableColumn
@end
| {
"content_hash": "96515e14cd6d1368d7581110fc5e85ec",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 103,
"avg_line_length": 35,
"alnum_prop": 0.819047619047619,
"repo_name": "Mikefluff/VyattaGUI",
"id": "b1299b26f1a21f0b2e86659dade9e594c7c31aac",
"size": "387",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "VariableCellColumn.h",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "101746"
},
{
"name": "Objective-C",
"bytes": "1064899"
},
{
"name": "Shell",
"bytes": "100"
}
],
"symlink_target": ""
} |
<section>
<h2>Dogs group</h2>
<p>Showing a card with a group of content.</p>
<mat-card class="example-card" role="group">
<mat-card-content>
<p>Herding Group</p>
<p>Hound Group</p>
<p>Non-Sporting Group</p>
<p>Sporting Group</p>
<p>Terrier Group</p>
<p>Toy Group</p>
<p>Working Group</p>
<p>Foundation Stock Service</p>
<p>Miscellaneous Class</p>
</mat-card-content>
</mat-card>
</section>
<section>
<h2>Husky</h2>
<p>Showing a card with title only.</p>
<mat-card class="example-card">
Siberian Husky
</mat-card>
</section>
<section>
<h2>Malamute</h2>
<p>Showing a Card with title and subtitle.</p>
<mat-card class="example-card">
<mat-card-title>Alaskan Malamute</mat-card-title>
<mat-card-subtitle>Dog breed</mat-card-subtitle>
</mat-card>
</section>
<section>
<h2>German Shepherd</h2>
<p>Showing a card with title, subtitle, and a footer.</p>
<mat-card class="example-card">
<mat-card-subtitle>Dog breed</mat-card-subtitle>
<mat-card-title>German Shepherd</mat-card-title>
<mat-card-content>
The German Shepherd is a breed of medium to large-sized working dog that originated in
Germany. The breed's officially recognized name is German Shepherd Dog in the English
language. The breed is also known as the Alsatian in Britain and Ireland.
</mat-card-content>
<mat-card-footer>
People also search for Rottweiler, Siberian Husky, Labrador Retriever, Doberman Pinscher
</mat-card-footer>
</mat-card>
</section>
<section>
<h2>Dachshund</h2>
<p>Showing a card with title, subtitle, and avatar as header and a card image.</p>
<mat-card class="example-card">
<mat-card-header>
<img mat-card-avatar src="a11y/card/assets/dachshund-avatar.jpg" aria-label="Dachshund avatar">
<mat-card-title>Dachshund</mat-card-title>
<mat-card-subtitle>Dog breed</mat-card-subtitle>
</mat-card-header>
<img mat-card-image src="a11y/card/assets/dachshund.jpg"
aria-label="Dachshund">
<mat-card-content>
The dachshund is a short-legged, long-bodied, hound-type dog breed.
</mat-card-content>
</mat-card>
</section>
<section>
<h2>Shiba Inu</h2>
<p>Showing a card with header, content, image, and two action buttons: "share" and "like".</p>
<mat-card class="example-card">
<mat-card-header>
<img mat-card-avatar src="a11y/card/assets/shiba-inu-avatar.jpg" aria-label="Shiba Inu avatar">
<mat-card-title>Shiba Inu</mat-card-title>
<mat-card-subtitle>Dog Breed</mat-card-subtitle>
</mat-card-header>
<img mat-card-image src="a11y/card/assets/shiba-inu.jpg" aria-label="Shiba Inu">
<mat-card-content>
The Shiba Inu is the smallest of the six original and distinct spitz breeds of dog from Japan.
A small, agile dog that copes very well with mountainous terrain, the Shiba Inu was originally
bred for hunting.
</mat-card-content>
<mat-card-actions align="end">
<button mat-button (click)="openSnackbar('Liked Shiba Inu')">like</button>
<button mat-button (click)="openSnackbar('Shared Shiba Inu')">share</button>
</mat-card-actions>
</mat-card>
</section>
| {
"content_hash": "0253087918575b83e1f081b8050b6870",
"timestamp": "",
"source": "github",
"line_count": 91,
"max_line_length": 101,
"avg_line_length": 35.51648351648352,
"alnum_prop": 0.6698638613861386,
"repo_name": "fairfaxmedia/material2",
"id": "d3d53c66b8a62c0805ab168bb3a5e1d924f0b18d",
"size": "3232",
"binary": false,
"copies": "4",
"ref": "refs/heads/master",
"path": "src/demo-app/a11y/card/card-a11y.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "258777"
},
{
"name": "HTML",
"bytes": "314936"
},
{
"name": "JavaScript",
"bytes": "24310"
},
{
"name": "Python",
"bytes": "1200"
},
{
"name": "Shell",
"bytes": "26804"
},
{
"name": "TypeScript",
"bytes": "2898348"
}
],
"symlink_target": ""
} |
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- From: file:/C:/Users/Dennis/AndroidStudioProjects/UTASchedulePlanner/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/22.1.1/res/values-land/values.xml -->
<eat-comment/>
<bool name="abc_action_bar_embed_tabs_pre_jb">true</bool>
<bool name="abc_config_allowActionMenuItemTextWithIcon">true</bool>
<dimen name="abc_action_bar_default_height_material">48dp</dimen>
<dimen name="abc_action_bar_default_padding_material">0dp</dimen>
<dimen name="abc_action_bar_progress_bar_size">32dp</dimen>
<dimen name="abc_text_size_subtitle_material_toolbar">12dp</dimen>
<dimen name="abc_text_size_title_material_toolbar">14dp</dimen>
</resources> | {
"content_hash": "057f33656d61953871556e749b0e8744",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 185,
"avg_line_length": 62.083333333333336,
"alnum_prop": 0.7288590604026846,
"repo_name": "minimucho1/TeamPsi",
"id": "067ca310a35f2f38b40c08a8d77379fddbd85910",
"size": "745",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "UTASchedulePlanner/app/build/intermediates/res/debug/values-land/values.xml",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "810044"
}
],
"symlink_target": ""
} |
var footerOpen = "Click to Open the Footer";
var footerClose = "Click to Close the Footer";
// Fallback title
var titleFallback = "Cards";
var websiteTitle = "Cards by Andrew Ward";
// For inital set up. Do not delete unless you want to go through the setup process again
var setUpCompleted = true;
// Directory for content HTML files, content is default
var contentDir = "content";
// The file endings in the content directory. Should be ".html" for HTML files and ".php" for PHP files, etc.
var fileEndings = ".html";
// **SPECIAL FILE ENDINGS**
// THIS SECTION IS ONLY TO BE USED IF SOME FILES DON'T USE THE ABOVE FILE EXTENSION:
// EX: Most files are .html but there's also one or two files that are .php
// IMPORTANT NOTE: DO NOT REMOVE THE specialFiles ARRAY!
// FILE ASSOCIATIONS SHOULD BE ADDED BELOW IT
var specialFiles = {};
// EXAMPLE:
specialFiles["login-page"] = ["login-page", "php"];
| {
"content_hash": "6ada0b4817753879fae4482f76a55001",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 109,
"avg_line_length": 40.26086956521739,
"alnum_prop": 0.7084233261339092,
"repo_name": "1Achmed1/Cards",
"id": "2d7b389032d287e51a1ba3d107161681545db256",
"size": "961",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "variables.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ApacheConf",
"bytes": "196"
},
{
"name": "CSS",
"bytes": "21141"
},
{
"name": "HTML",
"bytes": "72113"
},
{
"name": "JavaScript",
"bytes": "368973"
},
{
"name": "PHP",
"bytes": "2071"
}
],
"symlink_target": ""
} |
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".studytnewknowledge.ActivityStudyNewKnowledge">
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/studyTablayoutBtn1"
android:text="学习新的tabLayout"
android:textAllCaps="false"
/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/studyTablayoutBtn2"
android:text="学习tablayout和fragment pager联动"
android:textAllCaps="false"
/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/studyViewCard"
android:text="学习viewCard"
android:textAllCaps="false"
/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/studyViewRecycler"
android:text="学习viewRecycler"
android:textAllCaps="false"
/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/studyNewKnowledge5_0"
android:text="学习5.0新特性"
android:textAllCaps="false"
/>
</LinearLayout>
| {
"content_hash": "5963b003a4361182760fd2c9202b6139",
"timestamp": "",
"source": "github",
"line_count": 43,
"max_line_length": 72,
"avg_line_length": 35.25581395348837,
"alnum_prop": 0.6437994722955145,
"repo_name": "UremSept/StudyAPk",
"id": "f49559962e67eafbaabfa1e0448ded373b0fb184",
"size": "1552",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/main/res/layout/activity_study_new_knowledge.xml",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "HTML",
"bytes": "373"
},
{
"name": "Java",
"bytes": "391681"
}
],
"symlink_target": ""
} |
package net.sf.mmm.data;
import net.sf.mmm.util.nls.base.AbstractResourceBundle;
/**
* This class holds the internationalized messages for the content subproject.
*
* @author Joerg Hohwiller (hohwille at users.sourceforge.net)
* @since 1.0.0
*/
public class NlsBundleDataApi extends AbstractResourceBundle {
/**
* The constructor.
*/
public NlsBundleDataApi() {
super();
}
/**
* exception message if a class could NOT be created because the super-class
* is NOT extendable.
*/
public static final String ERR_CLASS_NOT_EXTENDABLE = "The class \"{type}\" is NOT extendable!";
/** exception message if user tried to create a system-class. */
public static final String ERR_CLASS_SYSTEM = "User can NOT create system-class \"{type}\"!";
/** @see net.sf.mmm.data.api.reflection.DataModifiersIllegalTransientMutableException */
public static final String ERR_MODIFIERS_TRANSIENT_MUTABLE = "A transient field has to be read-only!";
/** @see net.sf.mmm.data.api.reflection.DataModifiersIllegalTransientStaticException */
public static final String ERR_MODIFIERS_TRANSIENT_STATIC = "A transient field can NOT be static!";
/** @see net.sf.mmm.data.api.reflection.DataModifiersIllegalAbstractFinalException */
public static final String ERR_MODIFIERS_ABSTRACT_FINAL = "An abstract class can NOT be final!";
/** @see net.sf.mmm.data.api.reflection.DataModifiersIllegalFinalExtendableException */
public static final String ERR_MODIFIERS_FINAL_EXTENDABLE = "A final class can NOT be extendable!";
/** @see net.sf.mmm.data.api.reflection.DataModifiersIllegalException */
public static final String ERR_MODIFIERS_USER_UNEXTENDABLE = "Only system-classes can be un-extendable without being final!";
/** @see net.sf.mmm.data.api.reflection.DataReflectionNotEditableException */
public static final String ERR_MODEL_NOT_EDITABLE = "Failed to modify the data model because it is NOT editable!";
/** exception message if user tried to delete a class or field that is system. */
public static final String ERR_DELETE_SYSTEM = "Can NOT delete \"{type}\" because it is required by the system!";
/** @see net.sf.mmm.data.api.reflection.DataSystemModifyException */
public static final String ERR_MODIFY_SYSTEM = "Can NOT modify \"{type}\" because it is required by the system!";
}
| {
"content_hash": "3a37a81d8279d29a202601faa7f255e5",
"timestamp": "",
"source": "github",
"line_count": 55,
"max_line_length": 127,
"avg_line_length": 42.61818181818182,
"alnum_prop": 0.7427474402730375,
"repo_name": "m-m-m/multimedia",
"id": "7daa14b28384fbd90ab5ee4abc83878c81ac2395",
"size": "2472",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "mmm-data/mmm-data-api/src/main/java/net/sf/mmm/data/NlsBundleDataApi.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "237"
},
{
"name": "Java",
"bytes": "1366298"
}
],
"symlink_target": ""
} |
Open source provably fair website
| {
"content_hash": "ca1095e0677a23884ea494889ae96770",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 33,
"avg_line_length": 34,
"alnum_prop": 0.8529411764705882,
"repo_name": "StefanDorresteijn/provably",
"id": "88fa49e62e71738b3f14a139aa8fd888437f834f",
"size": "45",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "README.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "20578"
},
{
"name": "HTML",
"bytes": "15504"
},
{
"name": "JavaScript",
"bytes": "7812147"
},
{
"name": "PowerShell",
"bytes": "633"
},
{
"name": "Ruby",
"bytes": "1030"
},
{
"name": "TypeScript",
"bytes": "12815"
}
],
"symlink_target": ""
} |
.class final Lcom/android/server/am/ProcessRecord;
.super Ljava/lang/Object;
.source "ProcessRecord.java"
# instance fields
.field final activities:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList",
"<",
"Lcom/android/server/am/ActivityRecord;",
">;"
}
.end annotation
.end field
.field adjSeq:I
.field adjSource:Ljava/lang/Object;
.field adjSourceProcState:I
.field adjTarget:Ljava/lang/Object;
.field adjType:Ljava/lang/String;
.field adjTypeCode:I
.field anrDialog:Landroid/app/Dialog;
.field bad:Z
.field baseProcessTracker:Lcom/android/internal/app/ProcessStats$ProcessState;
.field cached:Z
.field compat:Landroid/content/res/CompatibilityInfo;
.field final conProviders:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList",
"<",
"Lcom/android/server/am/ContentProviderConnection;",
">;"
}
.end annotation
.end field
.field final connections:Landroid/util/ArraySet;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroid/util/ArraySet",
"<",
"Lcom/android/server/am/ConnectionRecord;",
">;"
}
.end annotation
.end field
.field crashDialog:Landroid/app/Dialog;
.field crashHandler:Ljava/lang/Runnable;
.field crashing:Z
.field crashingReport:Landroid/app/ActivityManager$ProcessErrorStateInfo;
.field curAdj:I
.field curCpuTime:J
.field curProcBatteryStats:Lcom/android/internal/os/BatteryStatsImpl$Uid$Proc;
.field curProcState:I
.field curRawAdj:I
.field curReceiver:Lcom/android/server/am/BroadcastRecord;
.field curSchedGroup:I
.field dataId:I
.field deathRecipient:Landroid/os/IBinder$DeathRecipient;
.field debugging:Z
.field empty:Z
.field errorReportReceiver:Landroid/content/ComponentName;
.field execServicesFg:Z
.field final executingServices:Landroid/util/ArraySet;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroid/util/ArraySet",
"<",
"Lcom/android/server/am/ServiceRecord;",
">;"
}
.end annotation
.end field
.field forceCrashReport:Z
.field forcingToForeground:Landroid/os/IBinder;
.field foregroundActivities:Z
.field foregroundServices:Z
.field gids:[I
.field hasAboveClient:Z
.field hasClientActivities:Z
.field hasShownUi:Z
.field hasStartedServices:Z
.field inMaxOrRestore:Z
.field final info:Landroid/content/pm/ApplicationInfo;
.field initialIdlePss:J
.field instructionSet:Ljava/lang/String;
.field instrumentationArguments:Landroid/os/Bundle;
.field instrumentationClass:Landroid/content/ComponentName;
.field instrumentationInfo:Landroid/content/pm/ApplicationInfo;
.field instrumentationProfileFile:Ljava/lang/String;
.field instrumentationResultClass:Landroid/content/ComponentName;
.field instrumentationUiAutomationConnection:Landroid/app/IUiAutomationConnection;
.field instrumentationWatcher:Landroid/app/IInstrumentationWatcher;
.field final isolated:Z
.field killed:Z
.field killedByAm:Z
.field lastActivityTime:J
.field lastCachedPss:J
.field lastCpuTime:J
.field lastLowMemory:J
.field lastPss:J
.field lastPssTime:J
.field lastRequestedGc:J
.field lastStateTime:J
.field lastWakeTime:J
.field lruSeq:I
.field private final mBatteryStats:Lcom/android/internal/os/BatteryStatsImpl;
.field maxAdj:I
.field nextPssTime:J
.field notCachedSinceIdle:Z
.field notResponding:Z
.field notRespondingReport:Landroid/app/ActivityManager$ProcessErrorStateInfo;
.field pendingUiClean:Z
.field persistent:Z
.field pid:I
.field pkgDeps:Landroid/util/ArraySet;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroid/util/ArraySet",
"<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field final pkgList:Landroid/util/ArrayMap;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroid/util/ArrayMap",
"<",
"Ljava/lang/String;",
"Lcom/android/internal/app/ProcessStats$ProcessStateHolder;",
">;"
}
.end annotation
.end field
.field procStateChanged:Z
.field final processName:Ljava/lang/String;
.field pssProcState:I
.field final pubProviders:Landroid/util/ArrayMap;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroid/util/ArrayMap",
"<",
"Ljava/lang/String;",
"Lcom/android/server/am/ContentProviderRecord;",
">;"
}
.end annotation
.end field
.field final receivers:Landroid/util/ArraySet;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroid/util/ArraySet",
"<",
"Lcom/android/server/am/ReceiverList;",
">;"
}
.end annotation
.end field
.field removed:Z
.field repForegroundActivities:Z
.field repProcState:I
.field reportLowMemory:Z
.field requiredAbi:Ljava/lang/String;
.field serviceHighRam:Z
.field serviceb:Z
.field final services:Landroid/util/ArraySet;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroid/util/ArraySet",
"<",
"Lcom/android/server/am/ServiceRecord;",
">;"
}
.end annotation
.end field
.field setAdj:I
.field setIsForeground:Z
.field setProcState:I
.field setRawAdj:I
.field setSchedGroup:I
.field shortStringName:Ljava/lang/String;
.field starting:Z
.field stringName:Ljava/lang/String;
.field systemNoUi:Z
.field thread:Landroid/app/IApplicationThread;
.field treatLikeActivity:Z
.field trimMemoryLevel:I
.field final uid:I
.field final userId:I
.field usingWrapper:Z
.field waitDialog:Landroid/app/Dialog;
.field waitedForDebugger:Z
.field waitingToKill:Ljava/lang/String;
# direct methods
.method constructor <init>(Lcom/android/internal/os/BatteryStatsImpl;Landroid/content/pm/ApplicationInfo;Ljava/lang/String;I)V
.locals 6
.param p1, "_batteryStats" # Lcom/android/internal/os/BatteryStatsImpl;
.param p2, "_info" # Landroid/content/pm/ApplicationInfo;
.param p3, "_processName" # Ljava/lang/String;
.param p4, "_uid" # I
.prologue
const/16 v5, -0x64
const/4 v1, 0x0
const/4 v2, -0x1
.line 392
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 58
new-instance v0, Landroid/util/ArrayMap;
invoke-direct {v0}, Landroid/util/ArrayMap;-><init>()V
iput-object v0, p0, Lcom/android/server/am/ProcessRecord;->pkgList:Landroid/util/ArrayMap;
.line 86
iput v2, p0, Lcom/android/server/am/ProcessRecord;->curProcState:I
.line 87
iput v2, p0, Lcom/android/server/am/ProcessRecord;->repProcState:I
.line 88
iput v2, p0, Lcom/android/server/am/ProcessRecord;->setProcState:I
.line 89
iput v2, p0, Lcom/android/server/am/ProcessRecord;->pssProcState:I
.line 140
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Lcom/android/server/am/ProcessRecord;->activities:Ljava/util/ArrayList;
.line 142
new-instance v0, Landroid/util/ArraySet;
invoke-direct {v0}, Landroid/util/ArraySet;-><init>()V
iput-object v0, p0, Lcom/android/server/am/ProcessRecord;->services:Landroid/util/ArraySet;
.line 144
new-instance v0, Landroid/util/ArraySet;
invoke-direct {v0}, Landroid/util/ArraySet;-><init>()V
iput-object v0, p0, Lcom/android/server/am/ProcessRecord;->executingServices:Landroid/util/ArraySet;
.line 147
new-instance v0, Landroid/util/ArraySet;
invoke-direct {v0}, Landroid/util/ArraySet;-><init>()V
iput-object v0, p0, Lcom/android/server/am/ProcessRecord;->connections:Landroid/util/ArraySet;
.line 150
new-instance v0, Landroid/util/ArraySet;
invoke-direct {v0}, Landroid/util/ArraySet;-><init>()V
iput-object v0, p0, Lcom/android/server/am/ProcessRecord;->receivers:Landroid/util/ArraySet;
.line 152
new-instance v0, Landroid/util/ArrayMap;
invoke-direct {v0}, Landroid/util/ArrayMap;-><init>()V
iput-object v0, p0, Lcom/android/server/am/ProcessRecord;->pubProviders:Landroid/util/ArrayMap;
.line 155
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Lcom/android/server/am/ProcessRecord;->conProviders:Ljava/util/ArrayList;
.line 393
iput-object p1, p0, Lcom/android/server/am/ProcessRecord;->mBatteryStats:Lcom/android/internal/os/BatteryStatsImpl;
.line 394
iput-object p2, p0, Lcom/android/server/am/ProcessRecord;->info:Landroid/content/pm/ApplicationInfo;
.line 395
iget v0, p2, Landroid/content/pm/ApplicationInfo;->uid:I
if-eq v0, p4, :cond_0
const/4 v0, 0x1
:goto_0
iput-boolean v0, p0, Lcom/android/server/am/ProcessRecord;->isolated:Z
.line 396
iput p4, p0, Lcom/android/server/am/ProcessRecord;->uid:I
.line 397
invoke-static {p4}, Landroid/os/UserHandle;->getUserId(I)I
move-result v0
iput v0, p0, Lcom/android/server/am/ProcessRecord;->userId:I
.line 398
iput-object p3, p0, Lcom/android/server/am/ProcessRecord;->processName:Ljava/lang/String;
.line 399
iget-object v0, p0, Lcom/android/server/am/ProcessRecord;->pkgList:Landroid/util/ArrayMap;
iget-object v2, p2, Landroid/content/pm/ApplicationInfo;->packageName:Ljava/lang/String;
new-instance v3, Lcom/android/internal/app/ProcessStats$ProcessStateHolder;
iget v4, p2, Landroid/content/pm/ApplicationInfo;->versionCode:I
invoke-direct {v3, v4}, Lcom/android/internal/app/ProcessStats$ProcessStateHolder;-><init>(I)V
invoke-virtual {v0, v2, v3}, Landroid/util/ArrayMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 400
const/16 v0, 0x10
iput v0, p0, Lcom/android/server/am/ProcessRecord;->maxAdj:I
.line 401
iput v5, p0, Lcom/android/server/am/ProcessRecord;->setRawAdj:I
iput v5, p0, Lcom/android/server/am/ProcessRecord;->curRawAdj:I
.line 402
iput v5, p0, Lcom/android/server/am/ProcessRecord;->setAdj:I
iput v5, p0, Lcom/android/server/am/ProcessRecord;->curAdj:I
.line 403
iput-boolean v1, p0, Lcom/android/server/am/ProcessRecord;->persistent:Z
.line 404
iput-boolean v1, p0, Lcom/android/server/am/ProcessRecord;->removed:Z
.line 405
iput-boolean v1, p0, Lcom/android/server/am/ProcessRecord;->inMaxOrRestore:Z
.line 406
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
move-result-wide v0
iput-wide v0, p0, Lcom/android/server/am/ProcessRecord;->nextPssTime:J
iput-wide v0, p0, Lcom/android/server/am/ProcessRecord;->lastPssTime:J
iput-wide v0, p0, Lcom/android/server/am/ProcessRecord;->lastStateTime:J
.line 407
return-void
:cond_0
move v0, v1
.line 395
goto :goto_0
.end method
# virtual methods
.method public addPackage(Ljava/lang/String;ILcom/android/server/am/ProcessStatsService;)Z
.locals 3
.param p1, "pkg" # Ljava/lang/String;
.param p2, "versionCode" # I
.param p3, "tracker" # Lcom/android/server/am/ProcessStatsService;
.prologue
.line 617
iget-object v1, p0, Lcom/android/server/am/ProcessRecord;->pkgList:Landroid/util/ArrayMap;
invoke-virtual {v1, p1}, Landroid/util/ArrayMap;->containsKey(Ljava/lang/Object;)Z
move-result v1
if-nez v1, :cond_2
.line 618
new-instance v0, Lcom/android/internal/app/ProcessStats$ProcessStateHolder;
invoke-direct {v0, p2}, Lcom/android/internal/app/ProcessStats$ProcessStateHolder;-><init>(I)V
.line 620
.local v0, "holder":Lcom/android/internal/app/ProcessStats$ProcessStateHolder;
iget-object v1, p0, Lcom/android/server/am/ProcessRecord;->baseProcessTracker:Lcom/android/internal/app/ProcessStats$ProcessState;
if-eqz v1, :cond_1
.line 621
iget-object v1, p0, Lcom/android/server/am/ProcessRecord;->info:Landroid/content/pm/ApplicationInfo;
iget v1, v1, Landroid/content/pm/ApplicationInfo;->uid:I
iget-object v2, p0, Lcom/android/server/am/ProcessRecord;->processName:Ljava/lang/String;
invoke-virtual {p3, p1, v1, p2, v2}, Lcom/android/server/am/ProcessStatsService;->getProcessStateLocked(Ljava/lang/String;IILjava/lang/String;)Lcom/android/internal/app/ProcessStats$ProcessState;
move-result-object v1
iput-object v1, v0, Lcom/android/internal/app/ProcessStats$ProcessStateHolder;->state:Lcom/android/internal/app/ProcessStats$ProcessState;
.line 623
iget-object v1, p0, Lcom/android/server/am/ProcessRecord;->pkgList:Landroid/util/ArrayMap;
invoke-virtual {v1, p1, v0}, Landroid/util/ArrayMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 624
iget-object v1, v0, Lcom/android/internal/app/ProcessStats$ProcessStateHolder;->state:Lcom/android/internal/app/ProcessStats$ProcessState;
iget-object v2, p0, Lcom/android/server/am/ProcessRecord;->baseProcessTracker:Lcom/android/internal/app/ProcessStats$ProcessState;
if-eq v1, v2, :cond_0
.line 625
iget-object v1, v0, Lcom/android/internal/app/ProcessStats$ProcessStateHolder;->state:Lcom/android/internal/app/ProcessStats$ProcessState;
invoke-virtual {v1}, Lcom/android/internal/app/ProcessStats$ProcessState;->makeActive()V
.line 630
:cond_0
:goto_0
const/4 v1, 0x1
.line 632
.end local v0 # "holder":Lcom/android/internal/app/ProcessStats$ProcessStateHolder;
:goto_1
return v1
.line 628
.restart local v0 # "holder":Lcom/android/internal/app/ProcessStats$ProcessStateHolder;
:cond_1
iget-object v1, p0, Lcom/android/server/am/ProcessRecord;->pkgList:Landroid/util/ArrayMap;
invoke-virtual {v1, p1, v0}, Landroid/util/ArrayMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
goto :goto_0
.line 632
.end local v0 # "holder":Lcom/android/internal/app/ProcessStats$ProcessStateHolder;
:cond_2
const/4 v1, 0x0
goto :goto_1
.end method
.method dump(Ljava/io/PrintWriter;Ljava/lang/String;)V
.locals 12
.param p1, "pw" # Ljava/io/PrintWriter;
.param p2, "prefix" # Ljava/lang/String;
.prologue
.line 183
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
move-result-wide v2
.line 185
.local v2, "now":J
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, "user #"
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget v6, p0, Lcom/android/server/am/ProcessRecord;->userId:I
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(I)V
.line 186
const-string v6, " uid="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->info:Landroid/content/pm/ApplicationInfo;
iget v6, v6, Landroid/content/pm/ApplicationInfo;->uid:I
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(I)V
.line 187
iget v6, p0, Lcom/android/server/am/ProcessRecord;->uid:I
iget-object v7, p0, Lcom/android/server/am/ProcessRecord;->info:Landroid/content/pm/ApplicationInfo;
iget v7, v7, Landroid/content/pm/ApplicationInfo;->uid:I
if-eq v6, v7, :cond_0
.line 188
const-string v6, " ISOLATED uid="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget v6, p0, Lcom/android/server/am/ProcessRecord;->uid:I
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(I)V
.line 190
:cond_0
const-string v6, " gids={"
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
.line 191
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->gids:[I
if-eqz v6, :cond_2
.line 192
const/4 v0, 0x0
.local v0, "gi":I
:goto_0
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->gids:[I
array-length v6, v6
if-ge v0, v6, :cond_2
.line 193
if-eqz v0, :cond_1
const-string v6, ", "
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
.line 194
:cond_1
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->gids:[I
aget v6, v6, v0
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(I)V
.line 192
add-int/lit8 v0, v0, 0x1
goto :goto_0
.line 198
.end local v0 # "gi":I
:cond_2
const-string v6, "}"
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V
.line 199
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, "requiredAbi="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->requiredAbi:Ljava/lang/String;
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
.line 200
const-string v6, " instructionSet="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->instructionSet:Ljava/lang/String;
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V
.line 201
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->info:Landroid/content/pm/ApplicationInfo;
iget-object v6, v6, Landroid/content/pm/ApplicationInfo;->className:Ljava/lang/String;
if-eqz v6, :cond_3
.line 202
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, "class="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->info:Landroid/content/pm/ApplicationInfo;
iget-object v6, v6, Landroid/content/pm/ApplicationInfo;->className:Ljava/lang/String;
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V
.line 204
:cond_3
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->info:Landroid/content/pm/ApplicationInfo;
iget-object v6, v6, Landroid/content/pm/ApplicationInfo;->manageSpaceActivityName:Ljava/lang/String;
if-eqz v6, :cond_4
.line 205
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, "manageSpaceActivityName="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
.line 206
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->info:Landroid/content/pm/ApplicationInfo;
iget-object v6, v6, Landroid/content/pm/ApplicationInfo;->manageSpaceActivityName:Ljava/lang/String;
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V
.line 208
:cond_4
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, "dir="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->info:Landroid/content/pm/ApplicationInfo;
iget-object v6, v6, Landroid/content/pm/ApplicationInfo;->sourceDir:Ljava/lang/String;
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
.line 209
const-string v6, " publicDir="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->info:Landroid/content/pm/ApplicationInfo;
iget-object v6, v6, Landroid/content/pm/ApplicationInfo;->publicSourceDir:Ljava/lang/String;
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
.line 210
const-string v6, " data="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->info:Landroid/content/pm/ApplicationInfo;
iget-object v6, v6, Landroid/content/pm/ApplicationInfo;->dataDir:Ljava/lang/String;
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V
.line 211
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, "packageList={"
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
.line 212
const/4 v1, 0x0
.local v1, "i":I
:goto_1
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->pkgList:Landroid/util/ArrayMap;
invoke-virtual {v6}, Landroid/util/ArrayMap;->size()I
move-result v6
if-ge v1, v6, :cond_6
.line 213
if-lez v1, :cond_5
const-string v6, ", "
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
.line 214
:cond_5
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->pkgList:Landroid/util/ArrayMap;
invoke-virtual {v6, v1}, Landroid/util/ArrayMap;->keyAt(I)Ljava/lang/Object;
move-result-object v6
check-cast v6, Ljava/lang/String;
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
.line 212
add-int/lit8 v1, v1, 0x1
goto :goto_1
.line 216
:cond_6
const-string v6, "}"
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V
.line 217
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->pkgDeps:Landroid/util/ArraySet;
if-eqz v6, :cond_9
.line 218
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, "packageDependencies={"
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
.line 219
const/4 v1, 0x0
:goto_2
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->pkgDeps:Landroid/util/ArraySet;
invoke-virtual {v6}, Landroid/util/ArraySet;->size()I
move-result v6
if-ge v1, v6, :cond_8
.line 220
if-lez v1, :cond_7
const-string v6, ", "
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
.line 221
:cond_7
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->pkgDeps:Landroid/util/ArraySet;
invoke-virtual {v6, v1}, Landroid/util/ArraySet;->valueAt(I)Ljava/lang/Object;
move-result-object v6
check-cast v6, Ljava/lang/String;
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
.line 219
add-int/lit8 v1, v1, 0x1
goto :goto_2
.line 223
:cond_8
const-string v6, "}"
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V
.line 225
:cond_9
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, "compat="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->compat:Landroid/content/res/CompatibilityInfo;
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->println(Ljava/lang/Object;)V
.line 226
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->instrumentationClass:Landroid/content/ComponentName;
if-nez v6, :cond_a
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->instrumentationProfileFile:Ljava/lang/String;
if-nez v6, :cond_a
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->instrumentationArguments:Landroid/os/Bundle;
if-eqz v6, :cond_b
.line 228
:cond_a
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, "instrumentationClass="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
.line 229
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->instrumentationClass:Landroid/content/ComponentName;
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/Object;)V
.line 230
const-string v6, " instrumentationProfileFile="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
.line 231
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->instrumentationProfileFile:Ljava/lang/String;
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V
.line 232
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, "instrumentationArguments="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
.line 233
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->instrumentationArguments:Landroid/os/Bundle;
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->println(Ljava/lang/Object;)V
.line 234
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, "instrumentationInfo="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
.line 235
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->instrumentationInfo:Landroid/content/pm/ApplicationInfo;
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->println(Ljava/lang/Object;)V
.line 236
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->instrumentationInfo:Landroid/content/pm/ApplicationInfo;
if-eqz v6, :cond_b
.line 237
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->instrumentationInfo:Landroid/content/pm/ApplicationInfo;
new-instance v7, Landroid/util/PrintWriterPrinter;
invoke-direct {v7, p1}, Landroid/util/PrintWriterPrinter;-><init>(Ljava/io/PrintWriter;)V
new-instance v8, Ljava/lang/StringBuilder;
invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v8, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v8
const-string v9, " "
invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v8
invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v8
invoke-virtual {v6, v7, v8}, Landroid/content/pm/ApplicationInfo;->dump(Landroid/util/Printer;Ljava/lang/String;)V
.line 240
:cond_b
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, "thread="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->thread:Landroid/app/IApplicationThread;
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->println(Ljava/lang/Object;)V
.line 241
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, "pid="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget v6, p0, Lcom/android/server/am/ProcessRecord;->pid:I
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(I)V
const-string v6, " starting="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
.line 242
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->starting:Z
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->println(Z)V
.line 243
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, "lastActivityTime="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
.line 244
iget-wide v6, p0, Lcom/android/server/am/ProcessRecord;->lastActivityTime:J
invoke-static {v6, v7, v2, v3, p1}, Landroid/util/TimeUtils;->formatDuration(JJLjava/io/PrintWriter;)V
.line 245
const-string v6, " lastPssTime="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
.line 246
iget-wide v6, p0, Lcom/android/server/am/ProcessRecord;->lastPssTime:J
invoke-static {v6, v7, v2, v3, p1}, Landroid/util/TimeUtils;->formatDuration(JJLjava/io/PrintWriter;)V
.line 247
const-string v6, " nextPssTime="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
.line 248
iget-wide v6, p0, Lcom/android/server/am/ProcessRecord;->nextPssTime:J
invoke-static {v6, v7, v2, v3, p1}, Landroid/util/TimeUtils;->formatDuration(JJLjava/io/PrintWriter;)V
.line 249
invoke-virtual {p1}, Ljava/io/PrintWriter;->println()V
.line 250
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, "adjSeq="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget v6, p0, Lcom/android/server/am/ProcessRecord;->adjSeq:I
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(I)V
.line 251
const-string v6, " lruSeq="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget v6, p0, Lcom/android/server/am/ProcessRecord;->lruSeq:I
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(I)V
.line 252
const-string v6, " lastPss="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-wide v6, p0, Lcom/android/server/am/ProcessRecord;->lastPss:J
invoke-virtual {p1, v6, v7}, Ljava/io/PrintWriter;->print(J)V
.line 253
const-string v6, " lastCachedPss="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-wide v6, p0, Lcom/android/server/am/ProcessRecord;->lastCachedPss:J
invoke-virtual {p1, v6, v7}, Ljava/io/PrintWriter;->println(J)V
.line 254
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, "cached="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->cached:Z
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Z)V
.line 255
const-string v6, " empty="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->empty:Z
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->println(Z)V
.line 256
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->serviceb:Z
if-eqz v6, :cond_c
.line 257
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, "serviceb="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->serviceb:Z
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Z)V
.line 258
const-string v6, " serviceHighRam="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->serviceHighRam:Z
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->println(Z)V
.line 260
:cond_c
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->notCachedSinceIdle:Z
if-eqz v6, :cond_d
.line 261
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, "notCachedSinceIdle="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->notCachedSinceIdle:Z
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Z)V
.line 262
const-string v6, " initialIdlePss="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-wide v6, p0, Lcom/android/server/am/ProcessRecord;->initialIdlePss:J
invoke-virtual {p1, v6, v7}, Ljava/io/PrintWriter;->println(J)V
.line 264
:cond_d
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, "oom: max="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget v6, p0, Lcom/android/server/am/ProcessRecord;->maxAdj:I
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(I)V
.line 265
const-string v6, " curRaw="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget v6, p0, Lcom/android/server/am/ProcessRecord;->curRawAdj:I
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(I)V
.line 266
const-string v6, " setRaw="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget v6, p0, Lcom/android/server/am/ProcessRecord;->setRawAdj:I
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(I)V
.line 267
const-string v6, " cur="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget v6, p0, Lcom/android/server/am/ProcessRecord;->curAdj:I
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(I)V
.line 268
const-string v6, " set="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget v6, p0, Lcom/android/server/am/ProcessRecord;->setAdj:I
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->println(I)V
.line 269
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, "curSchedGroup="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget v6, p0, Lcom/android/server/am/ProcessRecord;->curSchedGroup:I
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(I)V
.line 270
const-string v6, " setSchedGroup="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget v6, p0, Lcom/android/server/am/ProcessRecord;->setSchedGroup:I
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(I)V
.line 271
const-string v6, " systemNoUi="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->systemNoUi:Z
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Z)V
.line 272
const-string v6, " trimMemoryLevel="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget v6, p0, Lcom/android/server/am/ProcessRecord;->trimMemoryLevel:I
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->println(I)V
.line 273
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, "curProcState="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget v6, p0, Lcom/android/server/am/ProcessRecord;->curProcState:I
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(I)V
.line 274
const-string v6, " repProcState="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget v6, p0, Lcom/android/server/am/ProcessRecord;->repProcState:I
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(I)V
.line 275
const-string v6, " pssProcState="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget v6, p0, Lcom/android/server/am/ProcessRecord;->pssProcState:I
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(I)V
.line 276
const-string v6, " setProcState="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget v6, p0, Lcom/android/server/am/ProcessRecord;->setProcState:I
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(I)V
.line 277
const-string v6, " lastStateTime="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
.line 278
iget-wide v6, p0, Lcom/android/server/am/ProcessRecord;->lastStateTime:J
invoke-static {v6, v7, v2, v3, p1}, Landroid/util/TimeUtils;->formatDuration(JJLjava/io/PrintWriter;)V
.line 279
invoke-virtual {p1}, Ljava/io/PrintWriter;->println()V
.line 280
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->hasShownUi:Z
if-nez v6, :cond_e
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->pendingUiClean:Z
if-nez v6, :cond_e
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->hasAboveClient:Z
if-nez v6, :cond_e
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->treatLikeActivity:Z
if-eqz v6, :cond_f
.line 281
:cond_e
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, "hasShownUi="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->hasShownUi:Z
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Z)V
.line 282
const-string v6, " pendingUiClean="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->pendingUiClean:Z
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Z)V
.line 283
const-string v6, " hasAboveClient="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->hasAboveClient:Z
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Z)V
.line 284
const-string v6, " treatLikeActivity="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->treatLikeActivity:Z
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->println(Z)V
.line 286
:cond_f
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->setIsForeground:Z
if-nez v6, :cond_10
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->foregroundServices:Z
if-nez v6, :cond_10
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->forcingToForeground:Landroid/os/IBinder;
if-eqz v6, :cond_11
.line 287
:cond_10
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, "setIsForeground="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->setIsForeground:Z
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Z)V
.line 288
const-string v6, " foregroundServices="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->foregroundServices:Z
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Z)V
.line 289
const-string v6, " forcingToForeground="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->forcingToForeground:Landroid/os/IBinder;
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->println(Ljava/lang/Object;)V
.line 291
:cond_11
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->persistent:Z
if-nez v6, :cond_12
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->removed:Z
if-eqz v6, :cond_13
.line 292
:cond_12
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, "persistent="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->persistent:Z
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Z)V
.line 293
const-string v6, " removed="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->removed:Z
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->println(Z)V
.line 295
:cond_13
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->hasClientActivities:Z
if-nez v6, :cond_14
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->foregroundActivities:Z
if-nez v6, :cond_14
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->repForegroundActivities:Z
if-eqz v6, :cond_15
.line 296
:cond_14
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, "hasClientActivities="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->hasClientActivities:Z
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Z)V
.line 297
const-string v6, " foregroundActivities="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->foregroundActivities:Z
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Z)V
.line 298
const-string v6, " (rep="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->repForegroundActivities:Z
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Z)V
const-string v6, ")"
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V
.line 300
:cond_15
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->hasStartedServices:Z
if-eqz v6, :cond_16
.line 301
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, "hasStartedServices="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->hasStartedServices:Z
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->println(Z)V
.line 303
:cond_16
iget v6, p0, Lcom/android/server/am/ProcessRecord;->setProcState:I
const/4 v7, 0x7
if-lt v6, v7, :cond_17
.line 305
iget-object v7, p0, Lcom/android/server/am/ProcessRecord;->mBatteryStats:Lcom/android/internal/os/BatteryStatsImpl;
monitor-enter v7
.line 306
:try_start_0
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->mBatteryStats:Lcom/android/internal/os/BatteryStatsImpl;
iget-object v8, p0, Lcom/android/server/am/ProcessRecord;->info:Landroid/content/pm/ApplicationInfo;
iget v8, v8, Landroid/content/pm/ApplicationInfo;->uid:I
iget v9, p0, Lcom/android/server/am/ProcessRecord;->pid:I
invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J
move-result-wide v10
invoke-virtual {v6, v8, v9, v10, v11}, Lcom/android/internal/os/BatteryStatsImpl;->getProcessWakeTime(IIJ)J
move-result-wide v4
.line 308
.local v4, "wtime":J
monitor-exit v7
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 309
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, "lastWakeTime="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-wide v6, p0, Lcom/android/server/am/ProcessRecord;->lastWakeTime:J
invoke-virtual {p1, v6, v7}, Ljava/io/PrintWriter;->print(J)V
.line 310
const-string v6, " timeUsed="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
.line 311
iget-wide v6, p0, Lcom/android/server/am/ProcessRecord;->lastWakeTime:J
sub-long v6, v4, v6
invoke-static {v6, v7, p1}, Landroid/util/TimeUtils;->formatDuration(JLjava/io/PrintWriter;)V
const-string v6, ""
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V
.line 312
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, "lastCpuTime="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-wide v6, p0, Lcom/android/server/am/ProcessRecord;->lastCpuTime:J
invoke-virtual {p1, v6, v7}, Ljava/io/PrintWriter;->print(J)V
.line 313
const-string v6, " timeUsed="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
.line 314
iget-wide v6, p0, Lcom/android/server/am/ProcessRecord;->curCpuTime:J
iget-wide v8, p0, Lcom/android/server/am/ProcessRecord;->lastCpuTime:J
sub-long/2addr v6, v8
invoke-static {v6, v7, p1}, Landroid/util/TimeUtils;->formatDuration(JLjava/io/PrintWriter;)V
const-string v6, ""
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V
.line 316
.end local v4 # "wtime":J
:cond_17
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, "lastRequestedGc="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
.line 317
iget-wide v6, p0, Lcom/android/server/am/ProcessRecord;->lastRequestedGc:J
invoke-static {v6, v7, v2, v3, p1}, Landroid/util/TimeUtils;->formatDuration(JJLjava/io/PrintWriter;)V
.line 318
const-string v6, " lastLowMemory="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
.line 319
iget-wide v6, p0, Lcom/android/server/am/ProcessRecord;->lastLowMemory:J
invoke-static {v6, v7, v2, v3, p1}, Landroid/util/TimeUtils;->formatDuration(JJLjava/io/PrintWriter;)V
.line 320
const-string v6, " reportLowMemory="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->reportLowMemory:Z
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->println(Z)V
.line 321
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->killed:Z
if-nez v6, :cond_18
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->killedByAm:Z
if-nez v6, :cond_18
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->waitingToKill:Ljava/lang/String;
if-eqz v6, :cond_19
.line 322
:cond_18
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, "killed="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->killed:Z
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Z)V
.line 323
const-string v6, " killedByAm="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->killedByAm:Z
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Z)V
.line 324
const-string v6, " waitingToKill="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->waitingToKill:Ljava/lang/String;
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V
.line 326
:cond_19
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->debugging:Z
if-nez v6, :cond_1a
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->crashing:Z
if-nez v6, :cond_1a
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->crashDialog:Landroid/app/Dialog;
if-nez v6, :cond_1a
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->notResponding:Z
if-nez v6, :cond_1a
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->anrDialog:Landroid/app/Dialog;
if-nez v6, :cond_1a
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->bad:Z
if-eqz v6, :cond_1c
.line 328
:cond_1a
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, "debugging="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->debugging:Z
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Z)V
.line 329
const-string v6, " crashing="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->crashing:Z
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Z)V
.line 330
const-string v6, " "
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->crashDialog:Landroid/app/Dialog;
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/Object;)V
.line 331
const-string v6, " notResponding="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->notResponding:Z
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Z)V
.line 332
const-string v6, " "
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->anrDialog:Landroid/app/Dialog;
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/Object;)V
.line 333
const-string v6, " bad="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->bad:Z
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Z)V
.line 336
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->errorReportReceiver:Landroid/content/ComponentName;
if-eqz v6, :cond_1b
.line 337
const-string v6, " errorReportReceiver="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
.line 338
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->errorReportReceiver:Landroid/content/ComponentName;
invoke-virtual {v6}, Landroid/content/ComponentName;->flattenToShortString()Ljava/lang/String;
move-result-object v6
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
.line 340
:cond_1b
invoke-virtual {p1}, Ljava/io/PrintWriter;->println()V
.line 342
:cond_1c
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->activities:Ljava/util/ArrayList;
invoke-virtual {v6}, Ljava/util/ArrayList;->size()I
move-result v6
if-lez v6, :cond_1d
.line 343
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, "Activities:"
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V
.line 344
const/4 v1, 0x0
:goto_3
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->activities:Ljava/util/ArrayList;
invoke-virtual {v6}, Ljava/util/ArrayList;->size()I
move-result v6
if-ge v1, v6, :cond_1d
.line 345
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, " - "
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->activities:Ljava/util/ArrayList;
invoke-virtual {v6, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v6
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->println(Ljava/lang/Object;)V
.line 344
add-int/lit8 v1, v1, 0x1
goto :goto_3
.line 308
:catchall_0
move-exception v6
:try_start_1
monitor-exit v7
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw v6
.line 348
:cond_1d
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->services:Landroid/util/ArraySet;
invoke-virtual {v6}, Landroid/util/ArraySet;->size()I
move-result v6
if-lez v6, :cond_1e
.line 349
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, "Services:"
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V
.line 350
const/4 v1, 0x0
:goto_4
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->services:Landroid/util/ArraySet;
invoke-virtual {v6}, Landroid/util/ArraySet;->size()I
move-result v6
if-ge v1, v6, :cond_1e
.line 351
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, " - "
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->services:Landroid/util/ArraySet;
invoke-virtual {v6, v1}, Landroid/util/ArraySet;->valueAt(I)Ljava/lang/Object;
move-result-object v6
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->println(Ljava/lang/Object;)V
.line 350
add-int/lit8 v1, v1, 0x1
goto :goto_4
.line 354
:cond_1e
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->executingServices:Landroid/util/ArraySet;
invoke-virtual {v6}, Landroid/util/ArraySet;->size()I
move-result v6
if-lez v6, :cond_1f
.line 355
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, "Executing Services (fg="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
.line 356
iget-boolean v6, p0, Lcom/android/server/am/ProcessRecord;->execServicesFg:Z
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Z)V
const-string v6, ")"
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V
.line 357
const/4 v1, 0x0
:goto_5
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->executingServices:Landroid/util/ArraySet;
invoke-virtual {v6}, Landroid/util/ArraySet;->size()I
move-result v6
if-ge v1, v6, :cond_1f
.line 358
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, " - "
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->executingServices:Landroid/util/ArraySet;
invoke-virtual {v6, v1}, Landroid/util/ArraySet;->valueAt(I)Ljava/lang/Object;
move-result-object v6
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->println(Ljava/lang/Object;)V
.line 357
add-int/lit8 v1, v1, 0x1
goto :goto_5
.line 361
:cond_1f
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->connections:Landroid/util/ArraySet;
invoke-virtual {v6}, Landroid/util/ArraySet;->size()I
move-result v6
if-lez v6, :cond_20
.line 362
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, "Connections:"
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V
.line 363
const/4 v1, 0x0
:goto_6
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->connections:Landroid/util/ArraySet;
invoke-virtual {v6}, Landroid/util/ArraySet;->size()I
move-result v6
if-ge v1, v6, :cond_20
.line 364
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, " - "
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->connections:Landroid/util/ArraySet;
invoke-virtual {v6, v1}, Landroid/util/ArraySet;->valueAt(I)Ljava/lang/Object;
move-result-object v6
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->println(Ljava/lang/Object;)V
.line 363
add-int/lit8 v1, v1, 0x1
goto :goto_6
.line 367
:cond_20
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->pubProviders:Landroid/util/ArrayMap;
invoke-virtual {v6}, Landroid/util/ArrayMap;->size()I
move-result v6
if-lez v6, :cond_21
.line 368
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, "Published Providers:"
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V
.line 369
const/4 v1, 0x0
:goto_7
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->pubProviders:Landroid/util/ArrayMap;
invoke-virtual {v6}, Landroid/util/ArrayMap;->size()I
move-result v6
if-ge v1, v6, :cond_21
.line 370
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, " - "
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->pubProviders:Landroid/util/ArrayMap;
invoke-virtual {v6, v1}, Landroid/util/ArrayMap;->keyAt(I)Ljava/lang/Object;
move-result-object v6
check-cast v6, Ljava/lang/String;
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V
.line 371
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, " -> "
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->pubProviders:Landroid/util/ArrayMap;
invoke-virtual {v6, v1}, Landroid/util/ArrayMap;->valueAt(I)Ljava/lang/Object;
move-result-object v6
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->println(Ljava/lang/Object;)V
.line 369
add-int/lit8 v1, v1, 0x1
goto :goto_7
.line 374
:cond_21
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->conProviders:Ljava/util/ArrayList;
invoke-virtual {v6}, Ljava/util/ArrayList;->size()I
move-result v6
if-lez v6, :cond_22
.line 375
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, "Connected Providers:"
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V
.line 376
const/4 v1, 0x0
:goto_8
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->conProviders:Ljava/util/ArrayList;
invoke-virtual {v6}, Ljava/util/ArrayList;->size()I
move-result v6
if-ge v1, v6, :cond_22
.line 377
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, " - "
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->conProviders:Ljava/util/ArrayList;
invoke-virtual {v6, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v6
check-cast v6, Lcom/android/server/am/ContentProviderConnection;
invoke-virtual {v6}, Lcom/android/server/am/ContentProviderConnection;->toShortString()Ljava/lang/String;
move-result-object v6
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V
.line 376
add-int/lit8 v1, v1, 0x1
goto :goto_8
.line 380
:cond_22
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->curReceiver:Lcom/android/server/am/BroadcastRecord;
if-eqz v6, :cond_23
.line 381
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, "curReceiver="
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->curReceiver:Lcom/android/server/am/BroadcastRecord;
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->println(Ljava/lang/Object;)V
.line 383
:cond_23
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->receivers:Landroid/util/ArraySet;
invoke-virtual {v6}, Landroid/util/ArraySet;->size()I
move-result v6
if-lez v6, :cond_24
.line 384
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, "Receivers:"
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V
.line 385
const/4 v1, 0x0
:goto_9
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->receivers:Landroid/util/ArraySet;
invoke-virtual {v6}, Landroid/util/ArraySet;->size()I
move-result v6
if-ge v1, v6, :cond_24
.line 386
invoke-virtual {p1, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v6, " - "
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->receivers:Landroid/util/ArraySet;
invoke-virtual {v6, v1}, Landroid/util/ArraySet;->valueAt(I)Ljava/lang/Object;
move-result-object v6
invoke-virtual {p1, v6}, Ljava/io/PrintWriter;->println(Ljava/lang/Object;)V
.line 385
add-int/lit8 v1, v1, 0x1
goto :goto_9
.line 389
:cond_24
return-void
.end method
.method public forceProcessStateUpTo(I)V
.locals 3
.param p1, "newState" # I
.prologue
.line 646
iget v0, p0, Lcom/android/server/am/ProcessRecord;->curProcState:I
const/4 v1, -0x1
if-ne v0, v1, :cond_0
.line 647
const-string v0, "ActivityManager"
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Skip forceProcessStateUpTo() to newState "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-static {v0, v1}, Landroid/util/Slog;->w(Ljava/lang/String;Ljava/lang/String;)I
.line 652
:cond_0
iget v0, p0, Lcom/android/server/am/ProcessRecord;->repProcState:I
if-le v0, p1, :cond_1
.line 653
iput p1, p0, Lcom/android/server/am/ProcessRecord;->repProcState:I
iput p1, p0, Lcom/android/server/am/ProcessRecord;->curProcState:I
.line 655
:cond_1
return-void
.end method
.method public getPackageList()[Ljava/lang/String;
.locals 4
.prologue
.line 692
iget-object v3, p0, Lcom/android/server/am/ProcessRecord;->pkgList:Landroid/util/ArrayMap;
invoke-virtual {v3}, Landroid/util/ArrayMap;->size()I
move-result v2
.line 693
.local v2, "size":I
if-nez v2, :cond_1
.line 694
const/4 v1, 0x0
.line 700
:cond_0
return-object v1
.line 696
:cond_1
new-array v1, v2, [Ljava/lang/String;
.line 697
.local v1, "list":[Ljava/lang/String;
const/4 v0, 0x0
.local v0, "i":I
:goto_0
iget-object v3, p0, Lcom/android/server/am/ProcessRecord;->pkgList:Landroid/util/ArrayMap;
invoke-virtual {v3}, Landroid/util/ArrayMap;->size()I
move-result v3
if-ge v0, v3, :cond_0
.line 698
iget-object v3, p0, Lcom/android/server/am/ProcessRecord;->pkgList:Landroid/util/ArrayMap;
invoke-virtual {v3, v0}, Landroid/util/ArrayMap;->keyAt(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/lang/String;
aput-object v3, v1, v0
.line 697
add-int/lit8 v0, v0, 0x1
goto :goto_0
.end method
.method public getSetAdjWithServices()I
.locals 2
.prologue
.line 636
iget v0, p0, Lcom/android/server/am/ProcessRecord;->setAdj:I
const/16 v1, 0x9
if-lt v0, v1, :cond_0
.line 637
iget-boolean v0, p0, Lcom/android/server/am/ProcessRecord;->hasStartedServices:Z
if-eqz v0, :cond_0
.line 638
const/16 v0, 0x8
.line 641
:goto_0
return v0
:cond_0
iget v0, p0, Lcom/android/server/am/ProcessRecord;->setAdj:I
goto :goto_0
.end method
.method public isInterestingToUserLocked()Z
.locals 4
.prologue
.line 466
iget-object v3, p0, Lcom/android/server/am/ProcessRecord;->activities:Ljava/util/ArrayList;
invoke-virtual {v3}, Ljava/util/ArrayList;->size()I
move-result v2
.line 467
.local v2, "size":I
const/4 v0, 0x0
.local v0, "i":I
:goto_0
if-ge v0, v2, :cond_1
.line 468
iget-object v3, p0, Lcom/android/server/am/ProcessRecord;->activities:Ljava/util/ArrayList;
invoke-virtual {v3, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/android/server/am/ActivityRecord;
.line 469
.local v1, "r":Lcom/android/server/am/ActivityRecord;
invoke-virtual {v1}, Lcom/android/server/am/ActivityRecord;->isInterestingToUserLocked()Z
move-result v3
if-eqz v3, :cond_0
.line 470
const/4 v3, 0x1
.line 473
.end local v1 # "r":Lcom/android/server/am/ActivityRecord;
:goto_1
return v3
.line 467
.restart local v1 # "r":Lcom/android/server/am/ActivityRecord;
:cond_0
add-int/lit8 v0, v0, 0x1
goto :goto_0
.line 473
.end local v1 # "r":Lcom/android/server/am/ActivityRecord;
:cond_1
const/4 v3, 0x0
goto :goto_1
.end method
.method kill(Ljava/lang/String;Z)V
.locals 5
.param p1, "reason" # Ljava/lang/String;
.param p2, "noisy" # Z
.prologue
const/4 v4, 0x1
.line 525
iget-boolean v0, p0, Lcom/android/server/am/ProcessRecord;->killedByAm:Z
if-nez v0, :cond_1
.line 526
if-eqz p2, :cond_0
.line 527
const-string v0, "ActivityManager"
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Killing "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {p0}, Lcom/android/server/am/ProcessRecord;->toShortString()Ljava/lang/String;
move-result-object v2
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
const-string v2, " (adj "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
iget v2, p0, Lcom/android/server/am/ProcessRecord;->setAdj:I
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v1
const-string v2, "): "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-static {v0, v1}, Landroid/util/Slog;->i(Ljava/lang/String;Ljava/lang/String;)I
.line 530
:cond_0
const/16 v0, 0x7547
const/4 v1, 0x5
new-array v1, v1, [Ljava/lang/Object;
const/4 v2, 0x0
iget v3, p0, Lcom/android/server/am/ProcessRecord;->userId:I
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v3
aput-object v3, v1, v2
iget v2, p0, Lcom/android/server/am/ProcessRecord;->pid:I
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
aput-object v2, v1, v4
const/4 v2, 0x2
iget-object v3, p0, Lcom/android/server/am/ProcessRecord;->processName:Ljava/lang/String;
aput-object v3, v1, v2
const/4 v2, 0x3
iget v3, p0, Lcom/android/server/am/ProcessRecord;->setAdj:I
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v3
aput-object v3, v1, v2
const/4 v2, 0x4
aput-object p1, v1, v2
invoke-static {v0, v1}, Landroid/util/EventLog;->writeEvent(I[Ljava/lang/Object;)I
.line 531
iget v0, p0, Lcom/android/server/am/ProcessRecord;->pid:I
invoke-static {v0}, Landroid/os/Process;->killProcessQuiet(I)V
.line 532
iget-object v0, p0, Lcom/android/server/am/ProcessRecord;->info:Landroid/content/pm/ApplicationInfo;
iget v0, v0, Landroid/content/pm/ApplicationInfo;->uid:I
iget v1, p0, Lcom/android/server/am/ProcessRecord;->pid:I
invoke-static {v0, v1}, Landroid/os/Process;->killProcessGroup(II)I
.line 533
iget-boolean v0, p0, Lcom/android/server/am/ProcessRecord;->persistent:Z
if-nez v0, :cond_1
.line 534
iput-boolean v4, p0, Lcom/android/server/am/ProcessRecord;->killed:Z
.line 535
iput-boolean v4, p0, Lcom/android/server/am/ProcessRecord;->killedByAm:Z
.line 538
:cond_1
return-void
.end method
.method public makeActive(Landroid/app/IApplicationThread;Lcom/android/server/am/ProcessStatsService;)V
.locals 8
.param p1, "_thread" # Landroid/app/IApplicationThread;
.param p2, "tracker" # Lcom/android/server/am/ProcessStatsService;
.prologue
.line 416
iget-object v2, p0, Lcom/android/server/am/ProcessRecord;->thread:Landroid/app/IApplicationThread;
if-nez v2, :cond_3
.line 417
iget-object v1, p0, Lcom/android/server/am/ProcessRecord;->baseProcessTracker:Lcom/android/internal/app/ProcessStats$ProcessState;
.line 418
.local v1, "origBase":Lcom/android/internal/app/ProcessStats$ProcessState;
if-eqz v1, :cond_0
.line 419
const/4 v2, -0x1
invoke-virtual {p2}, Lcom/android/server/am/ProcessStatsService;->getMemFactorLocked()I
move-result v3
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
move-result-wide v4
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->pkgList:Landroid/util/ArrayMap;
invoke-virtual/range {v1 .. v6}, Lcom/android/internal/app/ProcessStats$ProcessState;->setState(IIJLandroid/util/ArrayMap;)V
.line 421
invoke-virtual {v1}, Lcom/android/internal/app/ProcessStats$ProcessState;->makeInactive()V
.line 423
:cond_0
iget-object v2, p0, Lcom/android/server/am/ProcessRecord;->info:Landroid/content/pm/ApplicationInfo;
iget-object v2, v2, Landroid/content/pm/ApplicationInfo;->packageName:Ljava/lang/String;
iget-object v3, p0, Lcom/android/server/am/ProcessRecord;->info:Landroid/content/pm/ApplicationInfo;
iget v3, v3, Landroid/content/pm/ApplicationInfo;->uid:I
iget-object v4, p0, Lcom/android/server/am/ProcessRecord;->info:Landroid/content/pm/ApplicationInfo;
iget v4, v4, Landroid/content/pm/ApplicationInfo;->versionCode:I
iget-object v5, p0, Lcom/android/server/am/ProcessRecord;->processName:Ljava/lang/String;
invoke-virtual {p2, v2, v3, v4, v5}, Lcom/android/server/am/ProcessStatsService;->getProcessStateLocked(Ljava/lang/String;IILjava/lang/String;)Lcom/android/internal/app/ProcessStats$ProcessState;
move-result-object v2
iput-object v2, p0, Lcom/android/server/am/ProcessRecord;->baseProcessTracker:Lcom/android/internal/app/ProcessStats$ProcessState;
.line 425
iget-object v2, p0, Lcom/android/server/am/ProcessRecord;->baseProcessTracker:Lcom/android/internal/app/ProcessStats$ProcessState;
invoke-virtual {v2}, Lcom/android/internal/app/ProcessStats$ProcessState;->makeActive()V
.line 426
const/4 v7, 0x0
.local v7, "i":I
:goto_0
iget-object v2, p0, Lcom/android/server/am/ProcessRecord;->pkgList:Landroid/util/ArrayMap;
invoke-virtual {v2}, Landroid/util/ArrayMap;->size()I
move-result v2
if-ge v7, v2, :cond_3
.line 427
iget-object v2, p0, Lcom/android/server/am/ProcessRecord;->pkgList:Landroid/util/ArrayMap;
invoke-virtual {v2, v7}, Landroid/util/ArrayMap;->valueAt(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/android/internal/app/ProcessStats$ProcessStateHolder;
.line 428
.local v0, "holder":Lcom/android/internal/app/ProcessStats$ProcessStateHolder;
iget-object v2, v0, Lcom/android/internal/app/ProcessStats$ProcessStateHolder;->state:Lcom/android/internal/app/ProcessStats$ProcessState;
if-eqz v2, :cond_1
iget-object v2, v0, Lcom/android/internal/app/ProcessStats$ProcessStateHolder;->state:Lcom/android/internal/app/ProcessStats$ProcessState;
if-eq v2, v1, :cond_1
.line 429
iget-object v2, v0, Lcom/android/internal/app/ProcessStats$ProcessStateHolder;->state:Lcom/android/internal/app/ProcessStats$ProcessState;
invoke-virtual {v2}, Lcom/android/internal/app/ProcessStats$ProcessState;->makeInactive()V
.line 431
:cond_1
iget-object v2, p0, Lcom/android/server/am/ProcessRecord;->pkgList:Landroid/util/ArrayMap;
invoke-virtual {v2, v7}, Landroid/util/ArrayMap;->keyAt(I)Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/lang/String;
iget-object v3, p0, Lcom/android/server/am/ProcessRecord;->info:Landroid/content/pm/ApplicationInfo;
iget v3, v3, Landroid/content/pm/ApplicationInfo;->uid:I
iget-object v4, p0, Lcom/android/server/am/ProcessRecord;->info:Landroid/content/pm/ApplicationInfo;
iget v4, v4, Landroid/content/pm/ApplicationInfo;->versionCode:I
iget-object v5, p0, Lcom/android/server/am/ProcessRecord;->processName:Ljava/lang/String;
invoke-virtual {p2, v2, v3, v4, v5}, Lcom/android/server/am/ProcessStatsService;->getProcessStateLocked(Ljava/lang/String;IILjava/lang/String;)Lcom/android/internal/app/ProcessStats$ProcessState;
move-result-object v2
iput-object v2, v0, Lcom/android/internal/app/ProcessStats$ProcessStateHolder;->state:Lcom/android/internal/app/ProcessStats$ProcessState;
.line 433
iget-object v2, v0, Lcom/android/internal/app/ProcessStats$ProcessStateHolder;->state:Lcom/android/internal/app/ProcessStats$ProcessState;
iget-object v3, p0, Lcom/android/server/am/ProcessRecord;->baseProcessTracker:Lcom/android/internal/app/ProcessStats$ProcessState;
if-eq v2, v3, :cond_2
.line 434
iget-object v2, v0, Lcom/android/internal/app/ProcessStats$ProcessStateHolder;->state:Lcom/android/internal/app/ProcessStats$ProcessState;
invoke-virtual {v2}, Lcom/android/internal/app/ProcessStats$ProcessState;->makeActive()V
.line 426
:cond_2
add-int/lit8 v7, v7, 0x1
goto :goto_0
.line 438
.end local v0 # "holder":Lcom/android/internal/app/ProcessStats$ProcessStateHolder;
.end local v1 # "origBase":Lcom/android/internal/app/ProcessStats$ProcessState;
.end local v7 # "i":I
:cond_3
iput-object p1, p0, Lcom/android/server/am/ProcessRecord;->thread:Landroid/app/IApplicationThread;
.line 439
return-void
.end method
.method public makeAdjReason()Ljava/lang/String;
.locals 2
.prologue
.line 588
iget-object v1, p0, Lcom/android/server/am/ProcessRecord;->adjSource:Ljava/lang/Object;
if-nez v1, :cond_0
iget-object v1, p0, Lcom/android/server/am/ProcessRecord;->adjTarget:Ljava/lang/Object;
if-eqz v1, :cond_5
.line 589
:cond_0
new-instance v0, Ljava/lang/StringBuilder;
const/16 v1, 0x80
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(I)V
.line 590
.local v0, "sb":Ljava/lang/StringBuilder;
const/16 v1, 0x20
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
.line 591
iget-object v1, p0, Lcom/android/server/am/ProcessRecord;->adjTarget:Ljava/lang/Object;
instance-of v1, v1, Landroid/content/ComponentName;
if-eqz v1, :cond_1
.line 592
iget-object v1, p0, Lcom/android/server/am/ProcessRecord;->adjTarget:Ljava/lang/Object;
check-cast v1, Landroid/content/ComponentName;
invoke-virtual {v1}, Landroid/content/ComponentName;->flattenToShortString()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 598
:goto_0
const-string v1, "<="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 599
iget-object v1, p0, Lcom/android/server/am/ProcessRecord;->adjSource:Ljava/lang/Object;
instance-of v1, v1, Lcom/android/server/am/ProcessRecord;
if-eqz v1, :cond_3
.line 600
const-string v1, "Proc{"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 601
iget-object v1, p0, Lcom/android/server/am/ProcessRecord;->adjSource:Ljava/lang/Object;
check-cast v1, Lcom/android/server/am/ProcessRecord;
invoke-virtual {v1}, Lcom/android/server/am/ProcessRecord;->toShortString()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 602
const-string v1, "}"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 608
:goto_1
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
.line 610
.end local v0 # "sb":Ljava/lang/StringBuilder;
:goto_2
return-object v1
.line 593
.restart local v0 # "sb":Ljava/lang/StringBuilder;
:cond_1
iget-object v1, p0, Lcom/android/server/am/ProcessRecord;->adjTarget:Ljava/lang/Object;
if-eqz v1, :cond_2
.line 594
iget-object v1, p0, Lcom/android/server/am/ProcessRecord;->adjTarget:Ljava/lang/Object;
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
goto :goto_0
.line 596
:cond_2
const-string v1, "{null}"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
goto :goto_0
.line 603
:cond_3
iget-object v1, p0, Lcom/android/server/am/ProcessRecord;->adjSource:Ljava/lang/Object;
if-eqz v1, :cond_4
.line 604
iget-object v1, p0, Lcom/android/server/am/ProcessRecord;->adjSource:Ljava/lang/Object;
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
goto :goto_1
.line 606
:cond_4
const-string v1, "{null}"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
goto :goto_1
.line 610
.end local v0 # "sb":Ljava/lang/StringBuilder;
:cond_5
const/4 v1, 0x0
goto :goto_2
.end method
.method public makeInactive(Lcom/android/server/am/ProcessStatsService;)V
.locals 9
.param p1, "tracker" # Lcom/android/server/am/ProcessStatsService;
.prologue
const/4 v8, 0x0
.line 442
iput-object v8, p0, Lcom/android/server/am/ProcessRecord;->thread:Landroid/app/IApplicationThread;
.line 443
iget-object v1, p0, Lcom/android/server/am/ProcessRecord;->baseProcessTracker:Lcom/android/internal/app/ProcessStats$ProcessState;
.line 444
.local v1, "origBase":Lcom/android/internal/app/ProcessStats$ProcessState;
if-eqz v1, :cond_2
.line 445
if-eqz v1, :cond_0
.line 446
const/4 v2, -0x1
invoke-virtual {p1}, Lcom/android/server/am/ProcessStatsService;->getMemFactorLocked()I
move-result v3
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
move-result-wide v4
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->pkgList:Landroid/util/ArrayMap;
invoke-virtual/range {v1 .. v6}, Lcom/android/internal/app/ProcessStats$ProcessState;->setState(IIJLandroid/util/ArrayMap;)V
.line 448
invoke-virtual {v1}, Lcom/android/internal/app/ProcessStats$ProcessState;->makeInactive()V
.line 450
:cond_0
iput-object v8, p0, Lcom/android/server/am/ProcessRecord;->baseProcessTracker:Lcom/android/internal/app/ProcessStats$ProcessState;
.line 451
const/4 v7, 0x0
.local v7, "i":I
:goto_0
iget-object v2, p0, Lcom/android/server/am/ProcessRecord;->pkgList:Landroid/util/ArrayMap;
invoke-virtual {v2}, Landroid/util/ArrayMap;->size()I
move-result v2
if-ge v7, v2, :cond_2
.line 452
iget-object v2, p0, Lcom/android/server/am/ProcessRecord;->pkgList:Landroid/util/ArrayMap;
invoke-virtual {v2, v7}, Landroid/util/ArrayMap;->valueAt(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/android/internal/app/ProcessStats$ProcessStateHolder;
.line 453
.local v0, "holder":Lcom/android/internal/app/ProcessStats$ProcessStateHolder;
iget-object v2, v0, Lcom/android/internal/app/ProcessStats$ProcessStateHolder;->state:Lcom/android/internal/app/ProcessStats$ProcessState;
if-eqz v2, :cond_1
iget-object v2, v0, Lcom/android/internal/app/ProcessStats$ProcessStateHolder;->state:Lcom/android/internal/app/ProcessStats$ProcessState;
if-eq v2, v1, :cond_1
.line 454
iget-object v2, v0, Lcom/android/internal/app/ProcessStats$ProcessStateHolder;->state:Lcom/android/internal/app/ProcessStats$ProcessState;
invoke-virtual {v2}, Lcom/android/internal/app/ProcessStats$ProcessState;->makeInactive()V
.line 456
:cond_1
iput-object v8, v0, Lcom/android/internal/app/ProcessStats$ProcessStateHolder;->state:Lcom/android/internal/app/ProcessStats$ProcessState;
.line 451
add-int/lit8 v7, v7, 0x1
goto :goto_0
.line 459
.end local v0 # "holder":Lcom/android/internal/app/ProcessStats$ProcessStateHolder;
.end local v7 # "i":I
:cond_2
return-void
.end method
.method modifyRawOomAdj(I)I
.locals 1
.param p1, "adj" # I
.prologue
.line 503
iget-boolean v0, p0, Lcom/android/server/am/ProcessRecord;->hasAboveClient:Z
if-eqz v0, :cond_0
.line 509
if-gez p1, :cond_1
.line 521
:cond_0
:goto_0
return p1
.line 511
:cond_1
const/4 v0, 0x1
if-ge p1, v0, :cond_2
.line 512
const/4 p1, 0x1
goto :goto_0
.line 513
:cond_2
const/4 v0, 0x2
if-ge p1, v0, :cond_3
.line 514
const/4 p1, 0x2
goto :goto_0
.line 515
:cond_3
const/16 v0, 0x9
if-ge p1, v0, :cond_4
.line 516
const/16 p1, 0x9
goto :goto_0
.line 517
:cond_4
const/16 v0, 0xf
if-ge p1, v0, :cond_0
.line 518
add-int/lit8 p1, p1, 0x1
goto :goto_0
.end method
.method public resetPackageList(Lcom/android/server/am/ProcessStatsService;)V
.locals 11
.param p1, "tracker" # Lcom/android/server/am/ProcessStatsService;
.prologue
const/4 v10, 0x1
.line 661
iget-object v1, p0, Lcom/android/server/am/ProcessRecord;->pkgList:Landroid/util/ArrayMap;
invoke-virtual {v1}, Landroid/util/ArrayMap;->size()I
move-result v0
.line 662
.local v0, "N":I
iget-object v1, p0, Lcom/android/server/am/ProcessRecord;->baseProcessTracker:Lcom/android/internal/app/ProcessStats$ProcessState;
if-eqz v1, :cond_3
.line 663
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
move-result-wide v4
.line 664
.local v4, "now":J
iget-object v1, p0, Lcom/android/server/am/ProcessRecord;->baseProcessTracker:Lcom/android/internal/app/ProcessStats$ProcessState;
const/4 v2, -0x1
invoke-virtual {p1}, Lcom/android/server/am/ProcessStatsService;->getMemFactorLocked()I
move-result v3
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->pkgList:Landroid/util/ArrayMap;
invoke-virtual/range {v1 .. v6}, Lcom/android/internal/app/ProcessStats$ProcessState;->setState(IIJLandroid/util/ArrayMap;)V
.line 666
if-eq v0, v10, :cond_2
.line 667
const/4 v8, 0x0
.local v8, "i":I
:goto_0
if-ge v8, v0, :cond_1
.line 668
iget-object v1, p0, Lcom/android/server/am/ProcessRecord;->pkgList:Landroid/util/ArrayMap;
invoke-virtual {v1, v8}, Landroid/util/ArrayMap;->valueAt(I)Ljava/lang/Object;
move-result-object v7
check-cast v7, Lcom/android/internal/app/ProcessStats$ProcessStateHolder;
.line 669
.local v7, "holder":Lcom/android/internal/app/ProcessStats$ProcessStateHolder;
iget-object v1, v7, Lcom/android/internal/app/ProcessStats$ProcessStateHolder;->state:Lcom/android/internal/app/ProcessStats$ProcessState;
if-eqz v1, :cond_0
iget-object v1, v7, Lcom/android/internal/app/ProcessStats$ProcessStateHolder;->state:Lcom/android/internal/app/ProcessStats$ProcessState;
iget-object v2, p0, Lcom/android/server/am/ProcessRecord;->baseProcessTracker:Lcom/android/internal/app/ProcessStats$ProcessState;
if-eq v1, v2, :cond_0
.line 670
iget-object v1, v7, Lcom/android/internal/app/ProcessStats$ProcessStateHolder;->state:Lcom/android/internal/app/ProcessStats$ProcessState;
invoke-virtual {v1}, Lcom/android/internal/app/ProcessStats$ProcessState;->makeInactive()V
.line 667
:cond_0
add-int/lit8 v8, v8, 0x1
goto :goto_0
.line 674
.end local v7 # "holder":Lcom/android/internal/app/ProcessStats$ProcessStateHolder;
:cond_1
iget-object v1, p0, Lcom/android/server/am/ProcessRecord;->pkgList:Landroid/util/ArrayMap;
invoke-virtual {v1}, Landroid/util/ArrayMap;->clear()V
.line 675
iget-object v1, p0, Lcom/android/server/am/ProcessRecord;->info:Landroid/content/pm/ApplicationInfo;
iget-object v1, v1, Landroid/content/pm/ApplicationInfo;->packageName:Ljava/lang/String;
iget-object v2, p0, Lcom/android/server/am/ProcessRecord;->info:Landroid/content/pm/ApplicationInfo;
iget v2, v2, Landroid/content/pm/ApplicationInfo;->uid:I
iget-object v3, p0, Lcom/android/server/am/ProcessRecord;->info:Landroid/content/pm/ApplicationInfo;
iget v3, v3, Landroid/content/pm/ApplicationInfo;->versionCode:I
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->processName:Ljava/lang/String;
invoke-virtual {p1, v1, v2, v3, v6}, Lcom/android/server/am/ProcessStatsService;->getProcessStateLocked(Ljava/lang/String;IILjava/lang/String;)Lcom/android/internal/app/ProcessStats$ProcessState;
move-result-object v9
.line 677
.local v9, "ps":Lcom/android/internal/app/ProcessStats$ProcessState;
new-instance v7, Lcom/android/internal/app/ProcessStats$ProcessStateHolder;
iget-object v1, p0, Lcom/android/server/am/ProcessRecord;->info:Landroid/content/pm/ApplicationInfo;
iget v1, v1, Landroid/content/pm/ApplicationInfo;->versionCode:I
invoke-direct {v7, v1}, Lcom/android/internal/app/ProcessStats$ProcessStateHolder;-><init>(I)V
.line 679
.restart local v7 # "holder":Lcom/android/internal/app/ProcessStats$ProcessStateHolder;
iput-object v9, v7, Lcom/android/internal/app/ProcessStats$ProcessStateHolder;->state:Lcom/android/internal/app/ProcessStats$ProcessState;
.line 680
iget-object v1, p0, Lcom/android/server/am/ProcessRecord;->pkgList:Landroid/util/ArrayMap;
iget-object v2, p0, Lcom/android/server/am/ProcessRecord;->info:Landroid/content/pm/ApplicationInfo;
iget-object v2, v2, Landroid/content/pm/ApplicationInfo;->packageName:Ljava/lang/String;
invoke-virtual {v1, v2, v7}, Landroid/util/ArrayMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 681
iget-object v1, p0, Lcom/android/server/am/ProcessRecord;->baseProcessTracker:Lcom/android/internal/app/ProcessStats$ProcessState;
if-eq v9, v1, :cond_2
.line 682
invoke-virtual {v9}, Lcom/android/internal/app/ProcessStats$ProcessState;->makeActive()V
.line 689
.end local v4 # "now":J
.end local v7 # "holder":Lcom/android/internal/app/ProcessStats$ProcessStateHolder;
.end local v8 # "i":I
.end local v9 # "ps":Lcom/android/internal/app/ProcessStats$ProcessState;
:cond_2
:goto_1
return-void
.line 685
:cond_3
if-eq v0, v10, :cond_2
.line 686
iget-object v1, p0, Lcom/android/server/am/ProcessRecord;->pkgList:Landroid/util/ArrayMap;
invoke-virtual {v1}, Landroid/util/ArrayMap;->clear()V
.line 687
iget-object v1, p0, Lcom/android/server/am/ProcessRecord;->pkgList:Landroid/util/ArrayMap;
iget-object v2, p0, Lcom/android/server/am/ProcessRecord;->info:Landroid/content/pm/ApplicationInfo;
iget-object v2, v2, Landroid/content/pm/ApplicationInfo;->packageName:Ljava/lang/String;
new-instance v3, Lcom/android/internal/app/ProcessStats$ProcessStateHolder;
iget-object v6, p0, Lcom/android/server/am/ProcessRecord;->info:Landroid/content/pm/ApplicationInfo;
iget v6, v6, Landroid/content/pm/ApplicationInfo;->versionCode:I
invoke-direct {v3, v6}, Lcom/android/internal/app/ProcessStats$ProcessStateHolder;-><init>(I)V
invoke-virtual {v1, v2, v3}, Landroid/util/ArrayMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
goto :goto_1
.end method
.method public setPid(I)V
.locals 1
.param p1, "_pid" # I
.prologue
const/4 v0, 0x0
.line 410
iput p1, p0, Lcom/android/server/am/ProcessRecord;->pid:I
.line 411
iput-object v0, p0, Lcom/android/server/am/ProcessRecord;->shortStringName:Ljava/lang/String;
.line 412
iput-object v0, p0, Lcom/android/server/am/ProcessRecord;->stringName:Ljava/lang/String;
.line 413
return-void
.end method
.method public stopFreezingAllLocked()V
.locals 3
.prologue
.line 477
iget-object v1, p0, Lcom/android/server/am/ProcessRecord;->activities:Ljava/util/ArrayList;
invoke-virtual {v1}, Ljava/util/ArrayList;->size()I
move-result v0
.line 478
.local v0, "i":I
:goto_0
if-lez v0, :cond_0
.line 479
add-int/lit8 v0, v0, -0x1
.line 480
iget-object v1, p0, Lcom/android/server/am/ProcessRecord;->activities:Ljava/util/ArrayList;
invoke-virtual {v1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/android/server/am/ActivityRecord;
const/4 v2, 0x1
invoke-virtual {v1, v2}, Lcom/android/server/am/ActivityRecord;->stopFreezingScreenLocked(Z)V
goto :goto_0
.line 482
:cond_0
return-void
.end method
.method public toShortString()Ljava/lang/String;
.locals 2
.prologue
.line 541
iget-object v1, p0, Lcom/android/server/am/ProcessRecord;->shortStringName:Ljava/lang/String;
if-eqz v1, :cond_0
.line 542
iget-object v1, p0, Lcom/android/server/am/ProcessRecord;->shortStringName:Ljava/lang/String;
.line 546
:goto_0
return-object v1
.line 544
:cond_0
new-instance v0, Ljava/lang/StringBuilder;
const/16 v1, 0x80
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(I)V
.line 545
.local v0, "sb":Ljava/lang/StringBuilder;
invoke-virtual {p0, v0}, Lcom/android/server/am/ProcessRecord;->toShortString(Ljava/lang/StringBuilder;)V
.line 546
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
iput-object v1, p0, Lcom/android/server/am/ProcessRecord;->shortStringName:Ljava/lang/String;
goto :goto_0
.end method
.method toShortString(Ljava/lang/StringBuilder;)V
.locals 3
.param p1, "sb" # Ljava/lang/StringBuilder;
.prologue
const/16 v2, 0x2710
.line 550
iget v1, p0, Lcom/android/server/am/ProcessRecord;->pid:I
invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
.line 551
const/16 v1, 0x3a
invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
.line 552
iget-object v1, p0, Lcom/android/server/am/ProcessRecord;->processName:Ljava/lang/String;
invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 553
const/16 v1, 0x2f
invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
.line 554
iget-object v1, p0, Lcom/android/server/am/ProcessRecord;->info:Landroid/content/pm/ApplicationInfo;
iget v1, v1, Landroid/content/pm/ApplicationInfo;->uid:I
if-ge v1, v2, :cond_1
.line 555
iget v1, p0, Lcom/android/server/am/ProcessRecord;->uid:I
invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
.line 572
:cond_0
:goto_0
return-void
.line 557
:cond_1
const/16 v1, 0x75
invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
.line 558
iget v1, p0, Lcom/android/server/am/ProcessRecord;->userId:I
invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
.line 559
iget-object v1, p0, Lcom/android/server/am/ProcessRecord;->info:Landroid/content/pm/ApplicationInfo;
iget v1, v1, Landroid/content/pm/ApplicationInfo;->uid:I
invoke-static {v1}, Landroid/os/UserHandle;->getAppId(I)I
move-result v0
.line 560
.local v0, "appId":I
if-lt v0, v2, :cond_2
.line 561
const/16 v1, 0x61
invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
.line 562
add-int/lit16 v1, v0, -0x2710
invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
.line 567
:goto_1
iget v1, p0, Lcom/android/server/am/ProcessRecord;->uid:I
iget-object v2, p0, Lcom/android/server/am/ProcessRecord;->info:Landroid/content/pm/ApplicationInfo;
iget v2, v2, Landroid/content/pm/ApplicationInfo;->uid:I
if-eq v1, v2, :cond_0
.line 568
const/16 v1, 0x69
invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
.line 569
iget v1, p0, Lcom/android/server/am/ProcessRecord;->uid:I
invoke-static {v1}, Landroid/os/UserHandle;->getAppId(I)I
move-result v1
const v2, 0x182b8
sub-int/2addr v1, v2
invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
goto :goto_0
.line 564
:cond_2
const/16 v1, 0x73
invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
.line 565
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
goto :goto_1
.end method
.method public toString()Ljava/lang/String;
.locals 2
.prologue
.line 575
iget-object v1, p0, Lcom/android/server/am/ProcessRecord;->stringName:Ljava/lang/String;
if-eqz v1, :cond_0
.line 576
iget-object v1, p0, Lcom/android/server/am/ProcessRecord;->stringName:Ljava/lang/String;
.line 584
:goto_0
return-object v1
.line 578
:cond_0
new-instance v0, Ljava/lang/StringBuilder;
const/16 v1, 0x80
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(I)V
.line 579
.local v0, "sb":Ljava/lang/StringBuilder;
const-string v1, "ProcessRecord{"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 580
invoke-static {p0}, Ljava/lang/System;->identityHashCode(Ljava/lang/Object;)I
move-result v1
invoke-static {v1}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 581
const/16 v1, 0x20
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
.line 582
invoke-virtual {p0, v0}, Lcom/android/server/am/ProcessRecord;->toShortString(Ljava/lang/StringBuilder;)V
.line 583
const/16 v1, 0x7d
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
.line 584
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
iput-object v1, p0, Lcom/android/server/am/ProcessRecord;->stringName:Ljava/lang/String;
goto :goto_0
.end method
.method public unlinkDeathRecipient()V
.locals 3
.prologue
.line 485
iget-object v0, p0, Lcom/android/server/am/ProcessRecord;->deathRecipient:Landroid/os/IBinder$DeathRecipient;
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/android/server/am/ProcessRecord;->thread:Landroid/app/IApplicationThread;
if-eqz v0, :cond_0
.line 486
iget-object v0, p0, Lcom/android/server/am/ProcessRecord;->thread:Landroid/app/IApplicationThread;
invoke-interface {v0}, Landroid/app/IApplicationThread;->asBinder()Landroid/os/IBinder;
move-result-object v0
iget-object v1, p0, Lcom/android/server/am/ProcessRecord;->deathRecipient:Landroid/os/IBinder$DeathRecipient;
const/4 v2, 0x0
invoke-interface {v0, v1, v2}, Landroid/os/IBinder;->unlinkToDeath(Landroid/os/IBinder$DeathRecipient;I)Z
.line 488
:cond_0
const/4 v0, 0x0
iput-object v0, p0, Lcom/android/server/am/ProcessRecord;->deathRecipient:Landroid/os/IBinder$DeathRecipient;
.line 489
return-void
.end method
.method updateHasAboveClientLocked()V
.locals 3
.prologue
.line 492
const/4 v2, 0x0
iput-boolean v2, p0, Lcom/android/server/am/ProcessRecord;->hasAboveClient:Z
.line 493
iget-object v2, p0, Lcom/android/server/am/ProcessRecord;->connections:Landroid/util/ArraySet;
invoke-virtual {v2}, Landroid/util/ArraySet;->size()I
move-result v2
add-int/lit8 v1, v2, -0x1
.local v1, "i":I
:goto_0
if-ltz v1, :cond_0
.line 494
iget-object v2, p0, Lcom/android/server/am/ProcessRecord;->connections:Landroid/util/ArraySet;
invoke-virtual {v2, v1}, Landroid/util/ArraySet;->valueAt(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/android/server/am/ConnectionRecord;
.line 495
.local v0, "cr":Lcom/android/server/am/ConnectionRecord;
iget v2, v0, Lcom/android/server/am/ConnectionRecord;->flags:I
and-int/lit8 v2, v2, 0x8
if-eqz v2, :cond_1
.line 496
const/4 v2, 0x1
iput-boolean v2, p0, Lcom/android/server/am/ProcessRecord;->hasAboveClient:Z
.line 500
.end local v0 # "cr":Lcom/android/server/am/ConnectionRecord;
:cond_0
return-void
.line 493
.restart local v0 # "cr":Lcom/android/server/am/ConnectionRecord;
:cond_1
add-int/lit8 v1, v1, -0x1
goto :goto_0
.end method
| {
"content_hash": "f5c936ad1ca66df26cb9a60e6daf9144",
"timestamp": "",
"source": "github",
"line_count": 3512,
"max_line_length": 199,
"avg_line_length": 27.949031890660592,
"alnum_prop": 0.6928288354371058,
"repo_name": "hexiaoshuai/Flyme_device_ZTE_A1",
"id": "f5b3c2651a7ab592ff2f278cfcd9591db61d7927",
"size": "98157",
"binary": false,
"copies": "1",
"ref": "refs/heads/C880AV1.0.0B06",
"path": "services.jar.out/smali/com/android/server/am/ProcessRecord.smali",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "GLSL",
"bytes": "1500"
},
{
"name": "HTML",
"bytes": "10195"
},
{
"name": "Makefile",
"bytes": "11258"
},
{
"name": "Python",
"bytes": "924"
},
{
"name": "Shell",
"bytes": "2734"
},
{
"name": "Smali",
"bytes": "234274633"
}
],
"symlink_target": ""
} |
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d %5p | %t | %-55logger{55} | %m %n</pattern>
</encoder>
</appender>
<logger name="org.springframework.data" level="debug" />
<logger name="fti.aiml" level="debug" />
<root level="info">
<appender-ref ref="console" />
</root>
</configuration> | {
"content_hash": "a973844496ee660fb43d8d22deb8a794",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 70,
"avg_line_length": 24.41176470588235,
"alnum_prop": 0.636144578313253,
"repo_name": "NguyenAnhDuc/AIML",
"id": "9846169396a617e731636b0dea920569414ef424",
"size": "415",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/test/resources/logback-test.xml",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "137"
},
{
"name": "Java",
"bytes": "117050"
},
{
"name": "JavaScript",
"bytes": "4150"
}
],
"symlink_target": ""
} |
require 'spec_helper'
describe 'Instance Statistics', 'routing' do
include RSpec::Rails::RequestExampleGroup
it "routes '/-/instance_statistics' to conversational development index" do
expect(get('/-/instance_statistics')).to redirect_to('/-/instance_statistics/conversational_development_index')
end
end
| {
"content_hash": "e76fa09253d2f3b0d4b742f3b3321089",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 115,
"avg_line_length": 35.22222222222222,
"alnum_prop": 0.7602523659305994,
"repo_name": "axilleas/gitlabhq",
"id": "b94faabfa1d4c3bfb0b9e1dfb9b680bf30f38d0e",
"size": "348",
"binary": false,
"copies": "5",
"ref": "refs/heads/master",
"path": "spec/routing/instance_statistics_routing_spec.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "683690"
},
{
"name": "Clojure",
"bytes": "79"
},
{
"name": "Dockerfile",
"bytes": "1907"
},
{
"name": "HTML",
"bytes": "1340167"
},
{
"name": "JavaScript",
"bytes": "4309733"
},
{
"name": "Ruby",
"bytes": "19732082"
},
{
"name": "Shell",
"bytes": "44575"
},
{
"name": "Vue",
"bytes": "1040466"
}
],
"symlink_target": ""
} |
/*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a necessity for you then you can refactor it and remove
* the linting exception.
*/
import React from 'react';
import FormContainer from '../FormContainer';
import ProductForm from '../../components/ProductForm';
import ProductsList from '../ProductsList';
import { saveProduct } from '../ProductsList/actions';
import validationRules from '../../components/ProductForm/validation';
export default class HomePage extends React.PureComponent { // eslint-disable-line react/prefer-stateless-function
render() {
return (
<h1>
<div className="container main-form">
<FormContainer
name="colourProductsForm"
validationRules={validationRules}
onSubmit={saveProduct}
>
<ProductForm />
</FormContainer>
<ProductsList listFor="colourProductsForm" />
</div>
</h1>
);
}
}
| {
"content_hash": "be8a4278b04f9e8e9d57b4a056a43ba4",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 114,
"avg_line_length": 31.88888888888889,
"alnum_prop": 0.6663763066202091,
"repo_name": "Voltmod/productSaver",
"id": "6679e5f150c4549977056ad0062e189d72c785c1",
"size": "1148",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/containers/HomePage/index.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ApacheConf",
"bytes": "1787"
},
{
"name": "HTML",
"bytes": "9574"
},
{
"name": "JavaScript",
"bytes": "86184"
}
],
"symlink_target": ""
} |
<!--
~ Copyright 2015 Veaceslav Gaidarji
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<resources>
<string name="app_name">RealmDatabase</string>
</resources>
| {
"content_hash": "8543ada6359e7e94d263127f1a580888",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 79,
"avg_line_length": 38.21052631578947,
"alnum_prop": 0.6887052341597796,
"repo_name": "donvigo/android-db-tricks",
"id": "a9a1630d1a30de0fcabd40957199902f457398aa",
"size": "726",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "RealmDatabase/src/main/res/values/strings.xml",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "61209"
}
],
"symlink_target": ""
} |
package org.apache.jetspeed.portlets.registration;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.MissingResourceException;
import java.util.ResourceBundle;
import javax.portlet.ActionRequest;
import javax.portlet.ActionResponse;
import javax.portlet.PortletConfig;
import javax.portlet.PortletException;
import javax.portlet.PortletMode;
import javax.portlet.PortletPreferences;
import javax.portlet.PortletRequest;
import javax.portlet.PortletResponse;
import javax.portlet.RenderRequest;
import javax.portlet.RenderResponse;
import javax.portlet.WindowState;
import org.apache.jetspeed.CommonPortletServices;
import org.apache.jetspeed.JetspeedActions;
import org.apache.jetspeed.PortalReservedParameters;
import org.apache.jetspeed.administration.AdministrationEmailException;
import org.apache.jetspeed.administration.PortalAdministration;
import org.apache.jetspeed.locator.JetspeedTemplateLocator;
import org.apache.jetspeed.locator.LocatorDescriptor;
import org.apache.jetspeed.locator.TemplateDescriptor;
import org.apache.jetspeed.locator.TemplateLocatorException;
import org.apache.jetspeed.request.RequestContext;
import org.apache.jetspeed.security.SecurityException;
import org.apache.jetspeed.security.User;
import org.apache.jetspeed.security.UserManager;
import org.apache.portals.bridges.util.PreferencesHelper;
import org.apache.portals.bridges.velocity.AbstractVelocityMessagingPortlet;
import org.apache.portals.gems.util.ValidationHelper;
import org.apache.velocity.context.Context;
/**
* This portlet allows a logged on user to change its password.
*
* @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
* @author <a href="mailto:chris@bluesunrise.com">Chris Schaefer</a>
* @version $Id: $
*/
public class UserRegistrationPortlet extends AbstractVelocityMessagingPortlet
{
private PortalAdministration admin;
private UserManager userManager;
// commonly USED attributes
private static final String USER_ATTRIBUTE_EMAIL = "user.business-info.online.email";
// Messages
private static final String MSG_MESSAGE = "MSG";
private static final String MSG_USERINFO = "user";
private static final String MSG_REGED_USER_MSG = "registeredUserMsg";
// Init Parameters
private static final String IP_ROLES = "roles"; // comma separated
private static final String IP_GROUPS = "groups"; // comma separated
private static final String IP_TEMPLATE_LOCATION = "emailTemplateLocation";
private static final String IP_TEMPLATE_NAME = "emailTemplateName";
private static final String IP_RULES_NAMES = "rulesNames";
private static final String IP_RULES_VALUES = "rulesValues";
private static final String IP_REDIRECT_PATH = "redirectPath";
private static final String IP_RETURN_URL = "returnURL";
private static final String IP_OPTION_EMAILS_SYSTEM_UNIQUE = "Option_Emails_System_Unique";
private static final String IP_OPTION_GENERATE_PASSWORDS = "Option_Generate_Passwords";
private static final String IP_OPTION_USE_EMAIL_AS_USERNAME = "Option_Use_Email_As_Username";
// Context Variables
private static final String CTX_RETURN_URL = "returnURL";
private static final String CTX_MESSAGE = "MSG";
private static final String CTX_USERINFO = "user";
private static final String CTX_FIELDS = "fieldsInOrder";
private static final String CTX_OPTIONALS = "optionalMap";
private static final String CTX_REGED_USER_MSG = "registeredUserMsg";
private static final String CTX_OPTION_GENERATE_PASSWORDS = "CTX_Option_Generate_Passwords";
private static final String CTX_OPTION_USE_EMAIL_AS_USERNAME = "CTX_Option_Use_Email_As_Username";
// Resource Bundle
private static final String RB_EMAIL_SUBJECT = "email.subject.registration";
private static final String PATH_SEPARATOR = "/";
/** email template to use for merging */
private String templateLocation;
private String templateName;
private JetspeedTemplateLocator templateLocator;
/** localized emailSubject */
private String emailSubject = null;
/** path where to redirect to after pressing submit on the form */
private String redirectPath;
/** servlet path of the return url to be printed and href'd in email template */
private String returnUrlPath;
/** roles */
private List roles;
/** groups */
private List groups;
/** profile rules */
private Map rules;
/** will force the passwords to be generated instead of picked by the user */
private boolean optionForceGeneratedPasswords = false;
/**
* will use cause the portlet to use a user request username instead
* otherwise forces emailaddress
*/
private boolean optionForceEmailAsUsername = true;
/** will check to make sure the email address is unique to the system */
private boolean optionForceEmailsToBeSystemUnique = true;
public void init(PortletConfig config) throws PortletException
{
super.init(config);
admin = (PortalAdministration) getPortletContext().getAttribute(
CommonPortletServices.CPS_PORTAL_ADMINISTRATION);
if (null == admin) { throw new PortletException(
"Failed to find the Portal Administration on portlet initialization"); }
userManager = (UserManager) getPortletContext().getAttribute(
CommonPortletServices.CPS_USER_MANAGER_COMPONENT);
if (null == userManager) { throw new PortletException(
"Failed to find the User Manager on portlet initialization"); }
// roles
this.roles = getInitParameterList(config, IP_ROLES);
// groups
this.groups = getInitParameterList(config, IP_GROUPS);
// rules (name,value pairs)
List names = getInitParameterList(config, IP_RULES_NAMES);
List values = getInitParameterList(config, IP_RULES_VALUES);
rules = new HashMap();
for (int ix = 0; ix < ((names.size() < values.size()) ? names.size()
: values.size()); ix++)
{
rules.put(names.get(ix), values.get(ix));
}
this.templateLocation = config.getInitParameter(IP_TEMPLATE_LOCATION);
if (templateLocation == null)
{
templateLocation = "/WEB-INF/view/userreg/";
}
templateLocation = getPortletContext().getRealPath(templateLocation);
this.templateName = config.getInitParameter(IP_TEMPLATE_NAME);
if (templateName == null)
{
templateName = "userRegistrationEmail.vm";
}
ArrayList roots = new ArrayList(1);
roots.add(templateLocation);
try
{
templateLocator = new JetspeedTemplateLocator(roots, "email", getPortletContext().getRealPath("/"));
templateLocator.start();
}
catch (FileNotFoundException e)
{
throw new PortletException("Could not start the template locator.", e);
}
// user attributes ?
this.optionForceEmailsToBeSystemUnique = Boolean.valueOf(
config.getInitParameter(IP_OPTION_EMAILS_SYSTEM_UNIQUE))
.booleanValue();
this.optionForceGeneratedPasswords = Boolean.valueOf(
config.getInitParameter(IP_OPTION_GENERATE_PASSWORDS))
.booleanValue();
this.optionForceEmailAsUsername = Boolean.valueOf(
config.getInitParameter(IP_OPTION_USE_EMAIL_AS_USERNAME))
.booleanValue();
if (this.optionForceEmailAsUsername)
{
// just to be sure
this.optionForceEmailsToBeSystemUnique = true;
}
this.returnUrlPath = config.getInitParameter(IP_RETURN_URL);
this.redirectPath = config.getInitParameter(IP_REDIRECT_PATH);
}
public void doEdit(RenderRequest request, RenderResponse response)
throws PortletException, IOException
{
response.setContentType("text/html");
doPreferencesEdit(request, response);
}
protected void doDispatch(RenderRequest request, RenderResponse response) throws PortletException, IOException
{
if ( !request.getWindowState().equals(WindowState.MINIMIZED))
{
PortletMode curMode = request.getPortletMode();
if (JetspeedActions.EDIT_DEFAULTS_MODE.equals(curMode))
{
//request.setAttribute(PARAM_EDIT_PAGE, DEFAULT_EDIT_DEFAULTS_PAGE);
doEdit(request, response);
}
else
{
super.doDispatch(request, response);
}
}
}
public void doView(RenderRequest request, RenderResponse response)
throws PortletException, IOException
{
response.setContentType("text/html");
Context context = getContext(request);
Object userinfoObject = this
.receiveRenderMessage(request, MSG_USERINFO);
context.put(CTX_USERINFO, userinfoObject);
context.put(CTX_FIELDS, getListOfNonSpecialFormKeys());
context.put(CTX_OPTIONALS, getOptionalMap());
context.put(CTX_MESSAGE, consumeRenderMessage(request, MSG_MESSAGE));
String guid = request.getParameter("newUserGUID");
if (guid != null)
{
// we'll ignore the possibility of an invalid guid for now.
// NOTE this would be a good place to put the actual registration if
// that's the process you want to have happen.
ResourceBundle resource = getPortletConfig().getResourceBundle(
request.getLocale());
context.put(CTX_REGED_USER_MSG, resource
.getString("success.login_above"));
} else
{
// not a returning url, but perhaps we just got redirected from the
// form ?
// if this is non-null, then we know that we registered
context.put(CTX_REGED_USER_MSG, consumeRenderMessage(request,
MSG_REGED_USER_MSG));
}
// next two control the existence of some of the fields in the form
if (this.optionForceEmailAsUsername)
{
context.put(CTX_OPTION_USE_EMAIL_AS_USERNAME, "TRUE");
}
if (this.optionForceGeneratedPasswords)
{
context.put(CTX_OPTION_GENERATE_PASSWORDS, "TRUE");
}
super.doView(request, response);
}
private static final Boolean required = new Boolean(true);
private static final Boolean optional = new Boolean(false);
private static final Integer IS_STRING = new Integer(1);
private static final Integer IS_EMAIL = new Integer(2);
private static final Integer IS_PHONE = new Integer(3);
private static final Integer IS_URL = new Integer(4);
private static final Integer IS_BDATE = new Integer(5);
protected List getListOfNonSpecialFormKeys()
{
List l = new ArrayList();
for (int i = 0; i < formKeys.length; i++)
{
String key = (String) formKeys[i][0];
if (key.equals("user.name"))
{
// don't put this in
} else if (key.equals("user.business-info.online.email"))
{
// don't put this in
} else if (key.equals("password"))
{
// don't put this in
} else if (key.equals("verifyPassword"))
{
// don't put this in
} else
{
// but DO add this
l.add(key);
}
}
return l;
}
protected Map getOptionalMap()
{
Map m = new HashMap();
for (int i = 0; i < formKeys.length; i++)
{
boolean isRequired = ((Boolean) formKeys[i][1]).booleanValue();
if (!isRequired)
{
m.put(formKeys[i][0], "");
}
}
return m;
}
// PLT name, required, max length, validation type
protected static Object[][] formKeys =
{
// the next four items are special cases
// this is the offical email used by jetspeed. You can chnage it, but you have to look around in the code
{"user.business-info.online.email", required , new Integer(80), IS_EMAIL},
// username is required here
// chould be commented out if email is used as username...
{"user.name", required , new Integer(80), IS_STRING},
// These last two are special cases you must have them
// comment them out here if you use the generated password option
{"password", required, new Integer(80), IS_STRING},
{"verifyPassword", required, new Integer(80), IS_STRING},
// the following can be placed in any order, and will appear in that order on the page
// All of the following are optional and are stored as user attributes if collected.
/*
{"user.bdate", optional , new Integer(25), IS_BDATE}, // Note: store as a string which is a number, time in milliseconds since 1970... see Portlet Spec.
{"user.gender", optional , new Integer(10), IS_STRING},
{"user.employer", optional , new Integer(80), IS_STRING},
*/
{"user.department", optional , new Integer(80), IS_STRING},
/*
{"user.jobtitle", optional , new Integer(80), IS_STRING},
{"user.name.prefix", optional , new Integer(10), IS_STRING},
*/
{"user.name.given", optional , new Integer(30), IS_STRING},
{"user.name.family", optional , new Integer(30), IS_STRING},
/*
{"user.name.middle", optional , new Integer(30), IS_STRING},
{"user.name.suffix", optional , new Integer(10), IS_STRING},
{"user.name.nickName", optional , new Integer(30), IS_STRING},
{"user.home-info.postal.name", optional , new Integer(80), IS_STRING},
{"user.home-info.postal.street", optional , new Integer(80), IS_STRING},
{"user.home-info.postal.city", optional , new Integer(80), IS_STRING},
{"user.home-info.postal.stateprov", optional , new Integer(80), IS_STRING},
{"user.home-info.postal.postalcode", optional , new Integer(80), IS_STRING},
{"user.home-info.postal.country", optional , new Integer(80), IS_STRING},
{"user.home-info.postal.organization", optional , new Integer(80), IS_STRING},
{"user.home-info.telecom.telephone.intcode", optional , new Integer(80), IS_STRING},
{"user.home-info.telecom.telephone.loccode", optional , new Integer(80), IS_STRING},
{"user.home-info.telecom.telephone.number", optional , new Integer(80), IS_PHONE},
{"user.home-info.telecom.telephone.ext", optional , new Integer(80), IS_STRING},
{"user.home-info.telecom.telephone.comment", optional , new Integer(80), IS_STRING},
{"user.home-info.telecom.fax.intcode", optional , new Integer(80), IS_STRING},
{"user.home-info.telecom.fax.loccode", optional , new Integer(80), IS_STRING},
{"user.home-info.telecom.fax.number", optional , new Integer(80), IS_STRING},
{"user.home-info.telecom.fax.ext", optional , new Integer(80), IS_STRING},
{"user.home-info.telecom.fax.comment", optional , new Integer(80), IS_STRING},
{"user.home-info.telecom.mobile.intcode", optional , new Integer(80), IS_STRING},
{"user.home-info.telecom.mobile.loccode", optional , new Integer(80), IS_STRING},
{"user.home-info.telecom.mobile.number",optional , new Integer(80), IS_PHONE},
{"user.home-info.telecom.mobile.ext", optional , new Integer(80), IS_STRING},
{"user.home-info.telecom.mobile.comment", optional , new Integer(80), IS_STRING},
{"user.home-info.telecom.pager.intcode", optional , new Integer(80), IS_STRING},
{"user.home-info.telecom.pager.loccode", optional , new Integer(80), IS_STRING},
{"user.home-info.telecom.pager.number", optional , new Integer(80), IS_PHONE},
{"user.home-info.telecom.pager.ext", optional , new Integer(80), IS_STRING},
{"user.home-info.telecom.pager.comment", optional , new Integer(80), IS_STRING},
{"user.home-info.online.email", optional , new Integer(80), IS_EMAIL},
{"user.home-info.online.uri", optional , new Integer(80), IS_URL},
*/
{"user.business-info.postal.name", optional , new Integer(80), IS_STRING},
{"user.business-info.postal.street", optional , new Integer(80), IS_STRING},
{"user.business-info.postal.city", optional , new Integer(80), IS_STRING},
{"user.business-info.postal.stateprov", optional , new Integer(80), IS_STRING},
{"user.business-info.postal.postalcode", optional , new Integer(80), IS_STRING},
{"user.business-info.postal.country", optional , new Integer(80), IS_STRING},
/*
{"user.business-info.postal.organization", optional , new Integer(80), IS_STRING},
{"user.business-info.telecom.telephone.intcode", optional , new Integer(80), IS_STRING},
{"user.business-info.telecom.telephone.loccode", optional , new Integer(80), IS_STRING},
{"user.business-info.telecom.telephone.number", optional , new Integer(80), IS_PHONE},
{"user.business-info.telecom.telephone.ext", optional , new Integer(80), IS_STRING},
{"user.business-info.telecom.telephone.comment", optional , new Integer(80), IS_STRING},
{"user.business-info.telecom.fax.intcode", optional , new Integer(80), IS_STRING},
{"user.business-info.telecom.fax.loccode", optional , new Integer(80), IS_STRING},
{"user.business-info.telecom.fax.number", optional , new Integer(80), IS_PHONE},
{"user.business-info.telecom.fax.ext", optional , new Integer(80), IS_STRING},
{"user.business-info.telecom.fax.comment", optional , new Integer(80), IS_STRING},
{"user.business-info.telecom.mobile.intcode", optional , new Integer(80), IS_STRING},
{"user.business-info.telecom.mobile.loccode", optional , new Integer(80), IS_STRING},
{"user.business-info.telecom.mobile.number", optional , new Integer(80), IS_PHONE},
{"user.business-info.telecom.mobile.ext", optional , new Integer(80), IS_STRING},
{"user.business-info.telecom.mobile.comment", optional , new Integer(80), IS_STRING},
{"user.business-info.telecom.pager.intcode", optional , new Integer(80), IS_STRING},
{"user.business-info.telecom.pager.loccode", optional , new Integer(80), IS_STRING},
{"user.business-info.telecom.pager.number", optional , new Integer(80), IS_PHONE},
{"user.business-info.telecom.pager.ext", optional , new Integer(80), IS_STRING},
{"user.business-info.telecom.pager.comment", optional , new Integer(80), IS_STRING},
// --- special case see above user.business-info.online.email
{"user.business-info.online.uri", optional , new Integer(80), IS_URL},
*/
};
protected boolean validateFormValue(String value, Integer length,
Integer validationType)
{
if (validationType.equals(IS_STRING))
{
if (!ValidationHelper.isAny(value, true, length.intValue())) { return false; }
} else if (validationType.equals(IS_EMAIL))
{
if (!ValidationHelper
.isEmailAddress(value, true, length.intValue())) { return false; }
} else if (validationType.equals(IS_PHONE))
{
if (!ValidationHelper.isPhoneNumber(value, true, length.intValue())) { return false; }
} else if (validationType.equals(IS_URL))
{
if (!ValidationHelper.isURL(value, true, length.intValue())) { return false; }
} else if (validationType.equals(IS_BDATE))
{
if (!ValidationHelper.isValidDatetime(value)) { return false; }
} else
{
// unkown type assume string for now
if (!ValidationHelper.isAny(value, true, length.intValue())) { return false; }
}
return true;
}
protected String convertIfNeed(String key, String value)
{
if ("user.bdate".equals(key))
{
// this one needs conversion
Date d = ValidationHelper.parseDate(value);
long timeInmS = d.getTime();
return "" + timeInmS;
}
return value;
}
public void processAction(ActionRequest actionRequest,
ActionResponse actionResponse) throws PortletException, IOException
{
List errors = new LinkedList();
Map userAttributes = new HashMap();
Map userInfo = new HashMap();
ResourceBundle resource = getPortletConfig().getResourceBundle(
actionRequest.getLocale());
PortletMode curMode = actionRequest.getPortletMode();
if (curMode == PortletMode.EDIT ||
curMode.equals(JetspeedActions.EDIT_DEFAULTS_MODE))
{
PortletPreferences prefs = actionRequest.getPreferences();
PreferencesHelper.requestParamsToPreferences(actionRequest);
prefs.store();
actionResponse.setPortletMode(PortletMode.VIEW);
return;
}
try
{
for (int i = 0; i < formKeys.length; i++)
{
try
{
String key = (String) formKeys[i][0];
Boolean isRequired = (Boolean) formKeys[i][1];
String value = actionRequest.getParameter(key);
if ((value != null) && (value.length() > 0))
{
userInfo.put(key, value);
// do some validation
if (!validateFormValue(value, (Integer) formKeys[i][2],
(Integer) formKeys[i][3]))
{
errors.add(resource
.getString("error.invalid-format." + key));
}
if (key.startsWith("user."))
{
value = convertIfNeed(key, value);
// we'll assume that these map back to PLT.D values
userAttributes.put(key, value);
}
} else
{
// don't have that value or it's too short... is it
// required ?
if (isRequired.booleanValue())
{
if (this.optionForceEmailAsUsername && key.equals("user.name"))
{
value = convertIfNeed(key, value);
userAttributes.put(key, value);
continue;
}
errors.add(resource.getString("error.lacking."
+ key));
}
// place an empty version in userInfo anyway
// so that the template will display the correct fields
userInfo.put(key, "");
}
} catch (MissingResourceException mre)
{
errors.add(resource.getString("error.failed_to_add")
+ mre.toString());
}
}
// publish the whole map so we can reload the form values on error.
publishRenderMessage(actionRequest, MSG_USERINFO, userInfo);
// These next checks may duplicate previous checks.
// however this is a double check given the nature of the values and
// how they are used.
if (this.optionForceEmailAsUsername)
{
// email is something special
if (!ValidationHelper.isEmailAddress((String) userInfo
.get(USER_ATTRIBUTE_EMAIL), true, 80))
{
errors.add(resource.getString("error.invalid-format."
+ USER_ATTRIBUTE_EMAIL));
}
} else
{
if (!ValidationHelper.isAny((String) userInfo.get("user.name"),
true, 80))
{
errors.add(resource.getString("error.lacking.user.name"));
}
}
// if we're not generating make sure it's real
if (!this.optionForceGeneratedPasswords)
{
if (!ValidationHelper.isAny((String) userInfo.get("password"),
true, 25))
{
errors.add(resource.getString("error.lacking.password"));
}
}
if (optionForceEmailAsUsername)
{
// force user.name to be same as email
userInfo.put("user.name", userInfo.get(USER_ATTRIBUTE_EMAIL));
}
boolean userIdExistsFlag = true;
try
{
userManager.getUser((String) userInfo.get("user.name"));
} catch (SecurityException e)
{
userIdExistsFlag = false;
}
//
if (userIdExistsFlag)
{
errors.add(resource.getString("error.userid_already_exists"));
publishRenderMessage(actionRequest, MSG_MESSAGE, errors);
return;
}
if (optionForceEmailsToBeSystemUnique)
{
boolean emailExistsFlag = true;
User user = null;
try
{
user = admin.lookupUserFromEmail((String) userInfo
.get(USER_ATTRIBUTE_EMAIL));
} catch (AdministrationEmailException e1)
{
emailExistsFlag = false;
}
if ((emailExistsFlag) || (user != null))
{
errors
.add(resource
.getString("error.email_already_exists"));
publishRenderMessage(actionRequest, MSG_MESSAGE, errors);
return;
}
}
try
{
if (optionForceGeneratedPasswords)
{
String password = admin.generatePassword();
userInfo.put("password", password);
} else
{
if (userInfo.get("password").equals(
userInfo.get("verifyPassword")))
{
} else
{
errors.add(resource
.getString("error.two_passwords_do_not_match"));
publishRenderMessage(actionRequest, MSG_MESSAGE, errors);
return;
}
}
} catch (Exception e)
{
errors.add(resource.getString("error.failed_to_add")
+ e.toString());
publishRenderMessage(actionRequest, MSG_MESSAGE, errors);
}
// make sure no errors have occurred
if (errors.size() > 0)
{
publishRenderMessage(actionRequest, MSG_MESSAGE, errors);
return;
}
// Ok, we think we're good to go, let's create the user!
try
{
PortletPreferences prefs = actionRequest.getPreferences();
String template = prefs.getValue("newUserTemplateDirectory", "");
if (template.trim().length() == 0)
template = null;
String subsiteRootFolder = prefs.getValue("subsiteRootFolder", "");
if (subsiteRootFolder.trim().length() == 0)
subsiteRootFolder = null;
List prefRoles = getPreferencesList(prefs, IP_ROLES);
if (prefRoles.isEmpty())
prefRoles = this.roles;
List prefGroups = getPreferencesList(prefs, IP_GROUPS);
if (prefGroups.isEmpty())
prefGroups = this.groups;
List names = getPreferencesList(prefs, IP_RULES_NAMES);
List values = getPreferencesList(prefs, IP_RULES_VALUES);
Map profileRules = new HashMap();
for (int ix = 0; ix < ((names.size() < values.size()) ? names.size()
: values.size()); ix++)
{
profileRules.put(names.get(ix), values.get(ix));
}
if (profileRules.isEmpty())
profileRules = this.rules;
admin.registerUser((String) userInfo.get("user.name"),
(String) userInfo.get("password"), prefRoles,
prefGroups, userAttributes, // note use of only
// PLT.D values here.
profileRules, template, subsiteRootFolder,
actionRequest.getLocale(), actionRequest.getServerName());
String urlGUID = ForgottenPasswordPortlet.makeGUID(
(String) userInfo.get("user.name"), (String) userInfo
.get("password"));
userInfo.put(CTX_RETURN_URL, generateReturnURL(actionRequest,
actionResponse, urlGUID));
String templ = getTemplatePath(actionRequest, actionResponse);
if (templ == null) { throw new Exception(
"email template not available"); }
boolean sendEmail = prefs.getValue("SendEmail", "true").equals("true");
if (sendEmail)
{
admin.sendEmail(getPortletConfig(), (String) userInfo
.get(USER_ATTRIBUTE_EMAIL),
getEmailSubject(actionRequest), templ, userInfo);
}
if ((this.optionForceEmailAsUsername)
|| (this.optionForceGeneratedPasswords))
{
publishRenderMessage(actionRequest, MSG_REGED_USER_MSG,
resource.getString("success.check_your_email"));
} else
{
publishRenderMessage(actionRequest, MSG_REGED_USER_MSG,
resource.getString("success.login_above"));
}
// put an empty map to "erase" all the user info going forward
publishRenderMessage(actionRequest, MSG_USERINFO, new HashMap());
actionResponse.sendRedirect(this.generateRedirectURL(
actionRequest, actionResponse));
} catch (Exception e)
{
errors.add(resource.getString("error.failed_to_add")
+ e.toString());
publishRenderMessage(actionRequest, MSG_MESSAGE, errors);
}
} catch (MissingResourceException mre)
{
errors.add(resource.getString("error.failed_to_add")
+ mre.toString());
publishRenderMessage(actionRequest, MSG_MESSAGE, errors);
} catch (Exception e)
{
errors
.add(resource.getString("error.failed_to_add")
+ e.toString());
publishRenderMessage(actionRequest, MSG_MESSAGE, errors);
}
}
protected String getEmailSubject(PortletRequest request)
{
ResourceBundle resource = getPortletConfig().getResourceBundle(
request.getLocale());
try
{
this.emailSubject = resource.getString(RB_EMAIL_SUBJECT);
} catch (java.util.MissingResourceException mre)
{
this.emailSubject = null;
}
if (this.emailSubject == null)
this.emailSubject = "Registration Confirmation";
return this.emailSubject;
}
protected List getInitParameterList(PortletConfig config, String ipName)
{
String temp = config.getInitParameter(ipName);
if (temp == null) return new ArrayList();
String[] temps = temp.split("\\,");
for (int ix = 0; ix < temps.length; ix++)
temps[ix] = temps[ix].trim();
return Arrays.asList(temps);
}
protected List getPreferencesList(PortletPreferences prefs, String prefName)
{
String temp = prefs.getValue(prefName, "");
if (temp == null || temp.trim().length() == 0) return new ArrayList();
String[] temps = temp.split("\\,");
for (int ix = 0; ix < temps.length; ix++)
temps[ix] = temps[ix].trim();
return Arrays.asList(temps);
}
protected String generateReturnURL(PortletRequest request,
PortletResponse response, String urlGUID)
{
String fullPath = this.returnUrlPath + "?newUserGUID=" + urlGUID;
// NOTE: getPortalURL will encode the fullPath for us
String url = admin.getPortalURL(request, response, fullPath);
return url;
}
protected String generateRedirectURL(PortletRequest request,
PortletResponse response)
{
return admin.getPortalURL(request, response, this.redirectPath);
}
protected String getTemplatePath(ActionRequest request, ActionResponse response)
{
if (templateLocator == null)
{
return templateLocation + PATH_SEPARATOR + templateName;
}
RequestContext requestContext = (RequestContext) request
.getAttribute(PortalReservedParameters.REQUEST_CONTEXT_ATTRIBUTE);
Locale locale = request.getLocale();
try
{
LocatorDescriptor locator = templateLocator.createLocatorDescriptor("email");
locator.setName(templateName);
locator.setMediaType(requestContext.getMediaType());
locator.setLanguage(locale.getLanguage());
locator.setCountry(locale.getCountry());
TemplateDescriptor template = templateLocator.locateTemplate(locator);
return template.getAppRelativePath();
}
catch (TemplateLocatorException e)
{
return templateLocation + PATH_SEPARATOR + templateName;
}
}
}
| {
"content_hash": "e68c7e6e4e93ce959269eeb464502571",
"timestamp": "",
"source": "github",
"line_count": 858,
"max_line_length": 185,
"avg_line_length": 42.67016317016317,
"alnum_prop": 0.5598044303624594,
"repo_name": "Konque/J2-Admin",
"id": "25f2a6a85823020e801a2b7b1b48536c9feef66b",
"size": "37415",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/main/java/org/apache/jetspeed/portlets/registration/UserRegistrationPortlet.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "22130"
},
{
"name": "HTML",
"bytes": "231600"
},
{
"name": "Java",
"bytes": "1519103"
},
{
"name": "JavaScript",
"bytes": "8186"
}
],
"symlink_target": ""
} |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="lv_LV" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About hackcoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+39"/>
<source><b>hackcoin</b> version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+41"/>
<source>Copyright © 2009-2014 The Bitcoin developers
Copyright © 2012-2014 The NovaCoin developers
Copyright © 2014 The hackcoin developers</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>
This is experimental software.
Distributed under the MIT/X11 software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php.
This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>AddressBookPage</name>
<message>
<location filename="../forms/addressbookpage.ui" line="+14"/>
<source>Address Book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+22"/>
<source>Double-click to edit address or label</source>
<translation>Adresi vai nosaukumu rediģē ar dubultklikšķi</translation>
</message>
<message>
<location line="+27"/>
<source>Create a new address</source>
<translation>Izveidot jaunu adresi</translation>
</message>
<message>
<location line="+14"/>
<source>Copy the currently selected address to the system clipboard</source>
<translation>Kopēt iezīmēto adresi uz starpliktuvi</translation>
</message>
<message>
<location line="-11"/>
<source>&New Address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-46"/>
<source>These are your hackcoin addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+60"/>
<source>&Copy Address</source>
<translation>&Kopēt adresi</translation>
</message>
<message>
<location line="+11"/>
<source>Show &QR Code</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Sign a message to prove you own a hackcoin address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Sign &Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Delete the currently selected address from the list</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-14"/>
<source>Verify a message to ensure it was signed with a specified hackcoin address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Verify Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>&Delete</source>
<translation>&Dzēst</translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="+65"/>
<source>Copy &Label</source>
<translation>Kopēt &Nosaukumu</translation>
</message>
<message>
<location line="+2"/>
<source>&Edit</source>
<translation>&Rediģēt</translation>
</message>
<message>
<location line="+250"/>
<source>Export Address Book Data</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation>Fails ar komatu kā atdalītāju (*.csv)</translation>
</message>
<message>
<location line="+13"/>
<source>Error exporting</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>AddressTableModel</name>
<message>
<location filename="../addresstablemodel.cpp" line="+144"/>
<source>Label</source>
<translation>Nosaukums</translation>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Adrese</translation>
</message>
<message>
<location line="+36"/>
<source>(no label)</source>
<translation>(bez nosaukuma)</translation>
</message>
</context>
<context>
<name>AskPassphraseDialog</name>
<message>
<location filename="../forms/askpassphrasedialog.ui" line="+26"/>
<source>Passphrase Dialog</source>
<translation>Paroles dialogs</translation>
</message>
<message>
<location line="+21"/>
<source>Enter passphrase</source>
<translation>Ierakstiet paroli</translation>
</message>
<message>
<location line="+14"/>
<source>New passphrase</source>
<translation>Jauna parole</translation>
</message>
<message>
<location line="+14"/>
<source>Repeat new passphrase</source>
<translation>Jaunā parole vēlreiz</translation>
</message>
<message>
<location line="+33"/>
<source>Serves to disable the trivial sendmoney when OS account compromised. Provides no real security.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>For staking only</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="+35"/>
<source>Enter the new passphrase to the wallet.<br/>Please use a passphrase of <b>10 or more random characters</b>, or <b>eight or more words</b>.</source>
<translation>Ierakstiet maciņa jauno paroli.<br/>Lūdzu izmantojiet <b>10 vai vairāk nejauši izvēlētas zīmes</b>, vai <b>astoņus un vairāk vārdus</b>.</translation>
</message>
<message>
<location line="+1"/>
<source>Encrypt wallet</source>
<translation>Šifrēt maciņu</translation>
</message>
<message>
<location line="+7"/>
<source>This operation needs your wallet passphrase to unlock the wallet.</source>
<translation>Lai veikto šo darbību, maciņš jāatslēdz ar paroli.</translation>
</message>
<message>
<location line="+5"/>
<source>Unlock wallet</source>
<translation>Atslēgt maciņu</translation>
</message>
<message>
<location line="+3"/>
<source>This operation needs your wallet passphrase to decrypt the wallet.</source>
<translation>Šai darbībai maciņš jāatšifrē ar maciņa paroli.</translation>
</message>
<message>
<location line="+5"/>
<source>Decrypt wallet</source>
<translation>Atšifrēt maciņu</translation>
</message>
<message>
<location line="+3"/>
<source>Change passphrase</source>
<translation>Mainīt paroli</translation>
</message>
<message>
<location line="+1"/>
<source>Enter the old and new passphrase to the wallet.</source>
<translation>Ierakstiet maciņa veco un jauno paroli.</translation>
</message>
<message>
<location line="+46"/>
<source>Confirm wallet encryption</source>
<translation>Apstiprināt maciņa šifrēšanu</translation>
</message>
<message>
<location line="+1"/>
<source>Warning: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR COINS</b>!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Are you sure you wish to encrypt your wallet?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+103"/>
<location line="+24"/>
<source>Warning: The Caps Lock key is on!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-133"/>
<location line="+60"/>
<source>Wallet encrypted</source>
<translation>Maciņš nošifrēts</translation>
</message>
<message>
<location line="-58"/>
<source>hackcoin will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your coins from being stolen by malware infecting your computer.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<location line="+7"/>
<location line="+44"/>
<location line="+6"/>
<source>Wallet encryption failed</source>
<translation>Maciņa šifrēšana neizdevās</translation>
</message>
<message>
<location line="-56"/>
<source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source>
<translation>Maciņa šifrēšana neizdevās programmas kļūdas dēļ. Jūsu maciņš netika šifrēts.</translation>
</message>
<message>
<location line="+7"/>
<location line="+50"/>
<source>The supplied passphrases do not match.</source>
<translation>Ievadītās paroles nav vienādas.</translation>
</message>
<message>
<location line="-38"/>
<source>Wallet unlock failed</source>
<translation>Maciņu atšifrēt neizdevās</translation>
</message>
<message>
<location line="+1"/>
<location line="+12"/>
<location line="+19"/>
<source>The passphrase entered for the wallet decryption was incorrect.</source>
<translation>Maciņa atšifrēšanai ievadītā parole nav pareiza.</translation>
</message>
<message>
<location line="-20"/>
<source>Wallet decryption failed</source>
<translation>Maciņu neizdevās atšifrēt</translation>
</message>
<message>
<location line="+14"/>
<source>Wallet passphrase was successfully changed.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>BitcoinGUI</name>
<message>
<location filename="../bitcoingui.cpp" line="+282"/>
<source>Sign &message...</source>
<translation>Parakstīt &ziņojumu...</translation>
</message>
<message>
<location line="+251"/>
<source>Synchronizing with network...</source>
<translation>Sinhronizācija ar tīklu...</translation>
</message>
<message>
<location line="-319"/>
<source>&Overview</source>
<translation>&Pārskats</translation>
</message>
<message>
<location line="+1"/>
<source>Show general overview of wallet</source>
<translation>Rādīt vispārēju maciņa pārskatu</translation>
</message>
<message>
<location line="+17"/>
<source>&Transactions</source>
<translation>&Transakcijas</translation>
</message>
<message>
<location line="+1"/>
<source>Browse transaction history</source>
<translation>Skatīt transakciju vēsturi</translation>
</message>
<message>
<location line="+5"/>
<source>&Address Book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Edit the list of stored addresses and labels</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-13"/>
<source>&Receive coins</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show the list of addresses for receiving payments</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-7"/>
<source>&Send coins</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>E&xit</source>
<translation>&Iziet</translation>
</message>
<message>
<location line="+1"/>
<source>Quit application</source>
<translation>Aizvērt programmu</translation>
</message>
<message>
<location line="+6"/>
<source>Show information about hackcoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>About &Qt</source>
<translation>Par &Qt</translation>
</message>
<message>
<location line="+1"/>
<source>Show information about Qt</source>
<translation>Parādīt informāciju par Qt</translation>
</message>
<message>
<location line="+2"/>
<source>&Options...</source>
<translation>&Iespējas</translation>
</message>
<message>
<location line="+4"/>
<source>&Encrypt Wallet...</source>
<translation>Š&ifrēt maciņu...</translation>
</message>
<message>
<location line="+3"/>
<source>&Backup Wallet...</source>
<translation>&Izveidot maciņa rezerves kopiju</translation>
</message>
<message>
<location line="+2"/>
<source>&Change Passphrase...</source>
<translation>&Mainīt paroli</translation>
</message>
<message numerus="yes">
<location line="+259"/>
<source>~%n block(s) remaining</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+6"/>
<source>Downloaded %1 of %2 blocks of transaction history (%3% done).</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-256"/>
<source>&Export...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-64"/>
<source>Send coins to a hackcoin address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+47"/>
<source>Modify configuration options for hackcoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>Export the data in the current tab to a file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-14"/>
<source>Encrypt or decrypt wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Backup wallet to another location</source>
<translation>Izveidot maciņa rezerves kopiju citur</translation>
</message>
<message>
<location line="+2"/>
<source>Change the passphrase used for wallet encryption</source>
<translation>Mainīt maciņa šifrēšanas paroli</translation>
</message>
<message>
<location line="+10"/>
<source>&Debug window</source>
<translation>&Debug logs</translation>
</message>
<message>
<location line="+1"/>
<source>Open debugging and diagnostic console</source>
<translation>Atvērt atkļūdošanas un diagnostikas konsoli</translation>
</message>
<message>
<location line="-5"/>
<source>&Verify message...</source>
<translation>&Pārbaudīt ziņojumu...</translation>
</message>
<message>
<location line="-202"/>
<source>hackcoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Wallet</source>
<translation>Maciņš</translation>
</message>
<message>
<location line="+180"/>
<source>&About hackcoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>&Show / Hide</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>Unlock wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>&Lock Wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Lock wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>&File</source>
<translation>&Fails</translation>
</message>
<message>
<location line="+8"/>
<source>&Settings</source>
<translation>&Uzstādījumi</translation>
</message>
<message>
<location line="+8"/>
<source>&Help</source>
<translation>&Palīdzība</translation>
</message>
<message>
<location line="+12"/>
<source>Tabs toolbar</source>
<translation>Ciļņu rīkjosla</translation>
</message>
<message>
<location line="+8"/>
<source>Actions toolbar</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<location line="+9"/>
<source>[testnet]</source>
<translation>[testnet]</translation>
</message>
<message>
<location line="+0"/>
<location line="+60"/>
<source>hackcoin client</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+75"/>
<source>%n active connection(s) to hackcoin network</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+40"/>
<source>Downloaded %1 blocks of transaction history.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+413"/>
<source>Staking.<br>Your weight is %1<br>Network weight is %2<br>Expected time to earn reward is %3</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Not staking because wallet is locked</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Not staking because wallet is offline</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Not staking because wallet is syncing</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Not staking because you don't have mature coins</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="-403"/>
<source>%n second(s) ago</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="-312"/>
<source>About hackcoin card</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show information about hackcoin card</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>&Unlock Wallet...</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+297"/>
<source>%n minute(s) ago</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n hour(s) ago</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n day(s) ago</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+6"/>
<source>Up to date</source>
<translation>Sinhronizēts</translation>
</message>
<message>
<location line="+7"/>
<source>Catching up...</source>
<translation>Sinhronizējos...</translation>
</message>
<message>
<location line="+10"/>
<source>Last received block was generated %1.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+59"/>
<source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Confirm transaction fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+27"/>
<source>Sent transaction</source>
<translation>Transakcija nosūtīta</translation>
</message>
<message>
<location line="+1"/>
<source>Incoming transaction</source>
<translation>Ienākoša transakcija</translation>
</message>
<message>
<location line="+1"/>
<source>Date: %1
Amount: %2
Type: %3
Address: %4
</source>
<translation>Datums: %1
Daudzums: %2
Tips: %3
Adrese: %4
</translation>
</message>
<message>
<location line="+100"/>
<location line="+15"/>
<source>URI handling</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-15"/>
<location line="+15"/>
<source>URI can not be parsed! This can be caused by an invalid hackcoin address or malformed URI parameters.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>Wallet is <b>encrypted</b> and currently <b>unlocked</b></source>
<translation>Maciņš ir <b>šifrēts</b> un pašlaik <b>atslēgts</b></translation>
</message>
<message>
<location line="+10"/>
<source>Wallet is <b>encrypted</b> and currently <b>locked</b></source>
<translation>Maciņš ir <b>šifrēts</b> un pašlaik <b>slēgts</b></translation>
</message>
<message>
<location line="+25"/>
<source>Backup Wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Wallet Data (*.dat)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Backup Failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>There was an error trying to save the wallet data to the new location.</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+76"/>
<source>%n second(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n minute(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n hour(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n day(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+18"/>
<source>Not staking</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../bitcoin.cpp" line="+109"/>
<source>A fatal error occurred. hackcoin can no longer continue safely and will quit.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>ClientModel</name>
<message>
<location filename="../clientmodel.cpp" line="+90"/>
<source>Network Alert</source>
<translation>Tīkla brīdinājums</translation>
</message>
</context>
<context>
<name>CoinControlDialog</name>
<message>
<location filename="../forms/coincontroldialog.ui" line="+14"/>
<source>Coin Control</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Quantity:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+32"/>
<source>Bytes:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+48"/>
<source>Amount:</source>
<translation>Daudzums:</translation>
</message>
<message>
<location line="+32"/>
<source>Priority:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+48"/>
<source>Fee:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>Low Output:</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="+551"/>
<source>no</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../forms/coincontroldialog.ui" line="+51"/>
<source>After Fee:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>Change:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+69"/>
<source>(un)select all</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Tree mode</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>List mode</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+45"/>
<source>Amount</source>
<translation>Daudzums</translation>
</message>
<message>
<location line="+5"/>
<source>Label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Address</source>
<translation>Adrese</translation>
</message>
<message>
<location line="+5"/>
<source>Date</source>
<translation>Datums</translation>
</message>
<message>
<location line="+5"/>
<source>Confirmations</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Confirmed</source>
<translation>Apstiprināts</translation>
</message>
<message>
<location line="+5"/>
<source>Priority</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="-515"/>
<source>Copy address</source>
<translation>Kopēt adresi</translation>
</message>
<message>
<location line="+1"/>
<source>Copy label</source>
<translation>Kopēt nosaukumu</translation>
</message>
<message>
<location line="+1"/>
<location line="+26"/>
<source>Copy amount</source>
<translation>Kopēt daudzumu</translation>
</message>
<message>
<location line="-25"/>
<source>Copy transaction ID</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+24"/>
<source>Copy quantity</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Copy fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy after fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy bytes</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy priority</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy low output</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy change</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+317"/>
<source>highest</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>high</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>medium-high</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>medium</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>low-medium</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>low</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>lowest</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+155"/>
<source>DUST</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>yes</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>This label turns red, if the transaction size is bigger than 10000 bytes.
This means a fee of at least %1 per kb is required.
Can vary +/- 1 Byte per input.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Transactions with higher priority get more likely into a block.
This label turns red, if the priority is smaller than "medium".
This means a fee of at least %1 per kb is required.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>This label turns red, if any recipient receives an amount smaller than %1.
This means a fee of at least %2 is required.
Amounts below 0.546 times the minimum relay fee are shown as DUST.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>This label turns red, if the change is smaller than %1.
This means a fee of at least %2 is required.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+37"/>
<location line="+66"/>
<source>(no label)</source>
<translation>(bez nosaukuma)</translation>
</message>
<message>
<location line="-9"/>
<source>change from %1 (%2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>(change)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>EditAddressDialog</name>
<message>
<location filename="../forms/editaddressdialog.ui" line="+14"/>
<source>Edit Address</source>
<translation>Mainīt adrese</translation>
</message>
<message>
<location line="+11"/>
<source>&Label</source>
<translation>&Nosaukums</translation>
</message>
<message>
<location line="+10"/>
<source>The label associated with this address book entry</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>&Address</source>
<translation>&Adrese</translation>
</message>
<message>
<location line="+10"/>
<source>The address associated with this address book entry. This can only be modified for sending addresses.</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="+20"/>
<source>New receiving address</source>
<translation>Jauna saņemšanas adrese</translation>
</message>
<message>
<location line="+4"/>
<source>New sending address</source>
<translation>Jauna nosūtīšanas adrese</translation>
</message>
<message>
<location line="+3"/>
<source>Edit receiving address</source>
<translation>Mainīt saņemšanas adresi</translation>
</message>
<message>
<location line="+4"/>
<source>Edit sending address</source>
<translation>Mainīt nosūtīšanas adresi</translation>
</message>
<message>
<location line="+76"/>
<source>The entered address "%1" is already in the address book.</source>
<translation>Nupat ierakstītā adrese "%1" jau atrodas adrešu grāmatā.</translation>
</message>
<message>
<location line="-5"/>
<source>The entered address "%1" is not a valid hackcoin address.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Could not unlock wallet.</source>
<translation>Nav iespējams atslēgt maciņu.</translation>
</message>
<message>
<location line="+5"/>
<source>New key generation failed.</source>
<translation>Neizdevās ģenerēt jaunu atslēgu.</translation>
</message>
</context>
<context>
<name>GUIUtil::HelpMessageBox</name>
<message>
<location filename="../guiutil.cpp" line="+420"/>
<location line="+12"/>
<source>hackcoin-Qt</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-12"/>
<source>version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Usage:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>command-line options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>UI options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Set language, for example "de_DE" (default: system locale)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Start minimized</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show splash screen on startup (default: 1)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>OptionsDialog</name>
<message>
<location filename="../forms/optionsdialog.ui" line="+14"/>
<source>Options</source>
<translation>Iespējas</translation>
</message>
<message>
<location line="+16"/>
<source>&Main</source>
<translation>&Galvenais</translation>
</message>
<message>
<location line="+6"/>
<source>Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB. Fee 0.01 recommended.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Pay transaction &fee</source>
<translation>&Maksāt par transakciju</translation>
</message>
<message>
<location line="+31"/>
<source>Reserved amount does not participate in staking and is therefore spendable at any time.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Reserve</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Automatically start hackcoin after logging in to the system.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Start hackcoin on system login</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Detach block and address databases at shutdown. This means they can be moved to another data directory, but it slows down shutdown. The wallet is always detached.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Detach databases at shutdown</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>&Network</source>
<translation>&Tīkls</translation>
</message>
<message>
<location line="+6"/>
<source>Automatically open the hackcoin client port on the router. This only works when your router supports UPnP and it is enabled.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Map port using &UPnP</source>
<translation>Kartēt portu, izmantojot &UPnP</translation>
</message>
<message>
<location line="+7"/>
<source>Connect to the hackcoin network through a SOCKS proxy (e.g. when connecting through Tor).</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Connect through SOCKS proxy:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>Proxy &IP:</source>
<translation>Proxy &IP:</translation>
</message>
<message>
<location line="+19"/>
<source>IP address of the proxy (e.g. 127.0.0.1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>&Port:</source>
<translation>&Ports:</translation>
</message>
<message>
<location line="+19"/>
<source>Port of the proxy (e.g. 9050)</source>
<translation>Proxy ports (piem. 9050)</translation>
</message>
<message>
<location line="+7"/>
<source>SOCKS &Version:</source>
<translation>SOCKS &Versija:</translation>
</message>
<message>
<location line="+13"/>
<source>SOCKS version of the proxy (e.g. 5)</source>
<translation>proxy SOCKS versija (piem. 5)</translation>
</message>
<message>
<location line="+36"/>
<source>&Window</source>
<translation>&Logs</translation>
</message>
<message>
<location line="+6"/>
<source>Show only a tray icon after minimizing the window.</source>
<translation>Pēc loga minimizācijas rādīt tikai ikonu sistēmas teknē.</translation>
</message>
<message>
<location line="+3"/>
<source>&Minimize to the tray instead of the taskbar</source>
<translation>&Minimizēt uz sistēmas tekni, nevis rīkjoslu</translation>
</message>
<message>
<location line="+7"/>
<source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source>
<translation>Logu aizverot, minimizēt, nevis beigt darbu. Kad šī izvēlne iespējota, programma aizvērsies tikai pēc Beigt komandas izvēlnē.</translation>
</message>
<message>
<location line="+3"/>
<source>M&inimize on close</source>
<translation>M&inimizēt aizverot</translation>
</message>
<message>
<location line="+21"/>
<source>&Display</source>
<translation>&Izskats</translation>
</message>
<message>
<location line="+8"/>
<source>User Interface &language:</source>
<translation>Lietotāja interfeiss un &valoda:</translation>
</message>
<message>
<location line="+13"/>
<source>The user interface language can be set here. This setting will take effect after restarting hackcoin.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>&Unit to show amounts in:</source>
<translation>&Vienības, kurās attēlot daudzumus:</translation>
</message>
<message>
<location line="+13"/>
<source>Choose the default subdivision unit to show in the interface and when sending coins.</source>
<translation>Izvēlēties dalījuma vienību pēc noklusēšanas, ko izmantot interfeisā un nosūtot bitkoinus.</translation>
</message>
<message>
<location line="+9"/>
<source>Whether to show hackcoin addresses in the transaction list or not.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Display addresses in transaction list</source>
<translation>&Attēlot adreses transakciju sarakstā</translation>
</message>
<message>
<location line="+7"/>
<source>Whether to show coin control features or not.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Display coin &control features (experts only!)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+71"/>
<source>&OK</source>
<translation>&OK</translation>
</message>
<message>
<location line="+7"/>
<source>&Cancel</source>
<translation>&Atcelt</translation>
</message>
<message>
<location line="+10"/>
<source>&Apply</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../optionsdialog.cpp" line="+55"/>
<source>default</source>
<translation>pēc noklusēšanas</translation>
</message>
<message>
<location line="+149"/>
<location line="+9"/>
<source>Warning</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-9"/>
<location line="+9"/>
<source>This setting will take effect after restarting hackcoin.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>The supplied proxy address is invalid.</source>
<translation>Norādītā proxy adrese nav derīga.</translation>
</message>
</context>
<context>
<name>OverviewPage</name>
<message>
<location filename="../forms/overviewpage.ui" line="+14"/>
<source>Form</source>
<translation>Forma</translation>
</message>
<message>
<location line="+33"/>
<location line="+231"/>
<source>The displayed information may be out of date. Your wallet automatically synchronizes with the hackcoin network after a connection is established, but this process has not completed yet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-160"/>
<source>Stake:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>Unconfirmed:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-107"/>
<source>Wallet</source>
<translation>Maciņš</translation>
</message>
<message>
<location line="+49"/>
<source>Spendable:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Your current spendable balance</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+71"/>
<source>Immature:</source>
<translation>Nenobriedušu:</translation>
</message>
<message>
<location line="+13"/>
<source>Mined balance that has not yet matured</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+20"/>
<source>Total:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Your current total balance</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+46"/>
<source><b>Recent transactions</b></source>
<translation><b>Pēdējās transakcijas</b></translation>
</message>
<message>
<location line="-108"/>
<source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-29"/>
<source>Total of coins that was staked, and do not yet count toward the current balance</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../overviewpage.cpp" line="+113"/>
<location line="+1"/>
<source>out of sync</source>
<translation>nav sinhronizēts</translation>
</message>
</context>
<context>
<name>QRCodeDialog</name>
<message>
<location filename="../forms/qrcodedialog.ui" line="+14"/>
<source>QR Code Dialog</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+59"/>
<source>Request Payment</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+56"/>
<source>Amount:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-44"/>
<source>Label:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Message:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+71"/>
<source>&Save As...</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../qrcodedialog.cpp" line="+62"/>
<source>Error encoding URI into QR Code.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+40"/>
<source>The entered amount is invalid, please check.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Resulting URI too long, try to reduce the text for label / message.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Save QR Code</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>PNG Images (*.png)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>RPCConsole</name>
<message>
<location filename="../forms/rpcconsole.ui" line="+46"/>
<source>Client name</source>
<translation>Klienta vārds</translation>
</message>
<message>
<location line="+10"/>
<location line="+23"/>
<location line="+26"/>
<location line="+23"/>
<location line="+23"/>
<location line="+36"/>
<location line="+53"/>
<location line="+23"/>
<location line="+23"/>
<location filename="../rpcconsole.cpp" line="+348"/>
<source>N/A</source>
<translation>N/A</translation>
</message>
<message>
<location line="-217"/>
<source>Client version</source>
<translation>Klienta versija</translation>
</message>
<message>
<location line="-45"/>
<source>&Information</source>
<translation>&Informācija</translation>
</message>
<message>
<location line="+68"/>
<source>Using OpenSSL version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+49"/>
<source>Startup time</source>
<translation>Sākuma laiks</translation>
</message>
<message>
<location line="+29"/>
<source>Network</source>
<translation>Tīkls</translation>
</message>
<message>
<location line="+7"/>
<source>Number of connections</source>
<translation>Savienojumu skaits</translation>
</message>
<message>
<location line="+23"/>
<source>On testnet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Block chain</source>
<translation>Bloku virkne</translation>
</message>
<message>
<location line="+7"/>
<source>Current number of blocks</source>
<translation>Pašreizējais bloku skaits</translation>
</message>
<message>
<location line="+23"/>
<source>Estimated total blocks</source>
<translation>Bloku skaita novērtējums</translation>
</message>
<message>
<location line="+23"/>
<source>Last block time</source>
<translation>Pēdējā bloka laiks</translation>
</message>
<message>
<location line="+52"/>
<source>&Open</source>
<translation>&Atvērt</translation>
</message>
<message>
<location line="+16"/>
<source>Command-line options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Show the hackcoin-Qt help message to get a list with possible hackcoin command-line options.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Show</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+24"/>
<source>&Console</source>
<translation>&Konsole</translation>
</message>
<message>
<location line="-260"/>
<source>Build date</source>
<translation>Kompilācijas datums</translation>
</message>
<message>
<location line="-104"/>
<source>hackcoin - Debug window</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>hackcoin Core</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+279"/>
<source>Debug log file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Open the hackcoin debug log file from the current data directory. This can take a few seconds for large log files.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+102"/>
<source>Clear console</source>
<translation>Notīrīt konsoli</translation>
</message>
<message>
<location filename="../rpcconsole.cpp" line="-33"/>
<source>Welcome to the hackcoin RPC console.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Use up and down arrows to navigate history, and <b>Ctrl-L</b> to clear screen.</source>
<translation>Izmantojiet bultiņas uz augšu un leju, lai pārvietotos pa vēsturi, un <b>Ctrl-L</b> ekrāna notīrīšanai.</translation>
</message>
<message>
<location line="+1"/>
<source>Type <b>help</b> for an overview of available commands.</source>
<translation>Ierakstiet <b>help</b> lai iegūtu pieejamo komandu sarakstu.</translation>
</message>
</context>
<context>
<name>SendCoinsDialog</name>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="+14"/>
<location filename="../sendcoinsdialog.cpp" line="+182"/>
<location line="+5"/>
<location line="+5"/>
<location line="+5"/>
<location line="+6"/>
<location line="+5"/>
<location line="+5"/>
<source>Send Coins</source>
<translation>Sūtīt bitkoinus</translation>
</message>
<message>
<location line="+76"/>
<source>Coin Control Features</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+20"/>
<source>Inputs...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>automatically selected</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Insufficient funds!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+77"/>
<source>Quantity:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+22"/>
<location line="+35"/>
<source>0</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-19"/>
<source>Bytes:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+51"/>
<source>Amount:</source>
<translation>Daudzums:</translation>
</message>
<message>
<location line="+22"/>
<location line="+86"/>
<location line="+86"/>
<location line="+32"/>
<source>0.00 hack</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-191"/>
<source>Priority:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>medium</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+32"/>
<source>Fee:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>Low Output:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>no</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+32"/>
<source>After Fee:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>Change</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+50"/>
<source>custom change address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+106"/>
<source>Send to multiple recipients at once</source>
<translation>Sūtīt vairākiem saņēmējiem uzreiz</translation>
</message>
<message>
<location line="+3"/>
<source>Add &Recipient</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+20"/>
<source>Remove all transaction fields</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Clear &All</source>
<translation>&Notīrīt visu</translation>
</message>
<message>
<location line="+28"/>
<source>Balance:</source>
<translation>Bilance:</translation>
</message>
<message>
<location line="+16"/>
<source>123.456 hack</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Confirm the send action</source>
<translation>Apstiprināt nosūtīšanu</translation>
</message>
<message>
<location line="+3"/>
<source>S&end</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="-173"/>
<source>Enter a hackcoin address (e.g. hackcoinfwYhBmGXcFP2Po1NpRUEiK8km2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Copy quantity</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy amount</source>
<translation>Kopēt daudzumu</translation>
</message>
<message>
<location line="+1"/>
<source>Copy fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy after fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy bytes</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy priority</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy low output</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy change</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+86"/>
<source><b>%1</b> to %2 (%3)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Confirm send coins</source>
<translation>Apstiprināt bitkoinu sūtīšanu</translation>
</message>
<message>
<location line="+1"/>
<source>Are you sure you want to send %1?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source> and </source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>The recipient address is not valid, please recheck.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>The amount to pay must be larger than 0.</source>
<translation>Nosūtāmajai summai jābūt lielākai par 0.</translation>
</message>
<message>
<location line="+5"/>
<source>The amount exceeds your balance.</source>
<translation>Daudzums pārsniedz pieejamo.</translation>
</message>
<message>
<location line="+5"/>
<source>The total exceeds your balance when the %1 transaction fee is included.</source>
<translation>Kopsumma pārsniedz pieejamo, ja pieskaitīta %1 transakcijas maksa.</translation>
</message>
<message>
<location line="+6"/>
<source>Duplicate address found, can only send to each address once per send operation.</source>
<translation>Atrastas divas vienādas adreses, vienā nosūtīšanas reizē uz katru adresi var sūtīt tikai vienreiz.</translation>
</message>
<message>
<location line="+5"/>
<source>Error: Transaction creation failed.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+251"/>
<source>WARNING: Invalid hackcoin address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>(no label)</source>
<translation>(bez nosaukuma)</translation>
</message>
<message>
<location line="+4"/>
<source>WARNING: unknown change address</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SendCoinsEntry</name>
<message>
<location filename="../forms/sendcoinsentry.ui" line="+14"/>
<source>Form</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>A&mount:</source>
<translation>Apjo&ms</translation>
</message>
<message>
<location line="+13"/>
<source>Pay &To:</source>
<translation>&Saņēmējs:</translation>
</message>
<message>
<location line="+24"/>
<location filename="../sendcoinsentry.cpp" line="+25"/>
<source>Enter a label for this address to add it to your address book</source>
<translation>Lai pievienotu adresi adrešu grāmatai, tai jādod nosaukums</translation>
</message>
<message>
<location line="+9"/>
<source>&Label:</source>
<translation>&Nosaukums:</translation>
</message>
<message>
<location line="+18"/>
<source>The address to send the payment to (e.g. hackcoinfwYhBmGXcFP2Po1NpRUEiK8km2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Choose address from address book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Alt+A</source>
<translation>Alt+A</translation>
</message>
<message>
<location line="+7"/>
<source>Paste address from clipboard</source>
<translation>ielīmēt adresi no starpliktuves</translation>
</message>
<message>
<location line="+10"/>
<source>Alt+P</source>
<translation>Alt+P</translation>
</message>
<message>
<location line="+7"/>
<source>Remove this recipient</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../sendcoinsentry.cpp" line="+1"/>
<source>Enter a hackcoin address (e.g. hackcoinfwYhBmGXcFP2Po1NpRUEiK8km2)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SignVerifyMessageDialog</name>
<message>
<location filename="../forms/signverifymessagedialog.ui" line="+14"/>
<source>Signatures - Sign / Verify a Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<location line="+124"/>
<source>&Sign Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-118"/>
<source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>The address to sign the message with (e.g. hackcoinfwYhBmGXcFP2Po1NpRUEiK8km2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<location line="+203"/>
<source>Choose an address from the address book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-193"/>
<location line="+203"/>
<source>Alt+A</source>
<translation>Alt+A</translation>
</message>
<message>
<location line="-193"/>
<source>Paste address from clipboard</source>
<translation>ielīmēt adresi no starpliktuves</translation>
</message>
<message>
<location line="+10"/>
<source>Alt+P</source>
<translation>Alt+P</translation>
</message>
<message>
<location line="+12"/>
<source>Enter the message you want to sign here</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+24"/>
<source>Copy the current signature to the system clipboard</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>Sign the message to prove you own this hackcoin address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>Reset all sign message fields</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<location line="+146"/>
<source>Clear &All</source>
<translation>&Notīrīt visu</translation>
</message>
<message>
<location line="-87"/>
<location line="+70"/>
<source>&Verify Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-64"/>
<source>Enter the signing address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>The address the message was signed with (e.g. hackcoinfwYhBmGXcFP2Po1NpRUEiK8km2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+40"/>
<source>Verify the message to ensure it was signed with the specified hackcoin address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>Reset all verify message fields</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../signverifymessagedialog.cpp" line="+27"/>
<location line="+3"/>
<source>Enter a hackcoin address (e.g. hackcoinfwYhBmGXcFP2Po1NpRUEiK8km2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-2"/>
<source>Click "Sign Message" to generate signature</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Enter hackcoin signature</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+82"/>
<location line="+81"/>
<source>The entered address is invalid.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-81"/>
<location line="+8"/>
<location line="+73"/>
<location line="+8"/>
<source>Please check the address and try again.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-81"/>
<location line="+81"/>
<source>The entered address does not refer to a key.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-73"/>
<source>Wallet unlock was cancelled.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Private key for the entered address is not available.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+12"/>
<source>Message signing failed.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Message signed.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+59"/>
<source>The signature could not be decoded.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<location line="+13"/>
<source>Please check the signature and try again.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>The signature did not match the message digest.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Message verification failed.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Message verified.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>TransactionDesc</name>
<message>
<location filename="../transactiondesc.cpp" line="+19"/>
<source>Open until %1</source>
<translation>Atvērts līdz %1</translation>
</message>
<message numerus="yes">
<location line="-2"/>
<source>Open for %n block(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+8"/>
<source>conflicted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>%1/offline</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>%1/unconfirmed</source>
<translation>%1/neapstiprinātas</translation>
</message>
<message>
<location line="+2"/>
<source>%1 confirmations</source>
<translation>%1 apstiprinājumu</translation>
</message>
<message>
<location line="+18"/>
<source>Status</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+7"/>
<source>, broadcast through %n node(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+4"/>
<source>Date</source>
<translation>Datums</translation>
</message>
<message>
<location line="+7"/>
<source>Source</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Generated</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<location line="+17"/>
<source>From</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<location line="+22"/>
<location line="+58"/>
<source>To</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-77"/>
<location line="+2"/>
<source>own address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-2"/>
<source>label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+37"/>
<location line="+12"/>
<location line="+45"/>
<location line="+17"/>
<location line="+30"/>
<source>Credit</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="-102"/>
<source>matures in %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+2"/>
<source>not accepted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+44"/>
<location line="+8"/>
<location line="+15"/>
<location line="+30"/>
<source>Debit</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-39"/>
<source>Transaction fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Net amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Comment</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Transaction ID</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Generated coins must mature 510 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to "not accepted" and it won't be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Debug information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Transaction</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Inputs</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Amount</source>
<translation>Daudzums</translation>
</message>
<message>
<location line="+1"/>
<source>true</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>false</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-211"/>
<source>, has not been successfully broadcast yet</source>
<translation>, vēl nav veiksmīgi izziņots</translation>
</message>
<message>
<location line="+35"/>
<source>unknown</source>
<translation>nav zināms</translation>
</message>
</context>
<context>
<name>TransactionDescDialog</name>
<message>
<location filename="../forms/transactiondescdialog.ui" line="+14"/>
<source>Transaction details</source>
<translation>Transakcijas detaļas</translation>
</message>
<message>
<location line="+6"/>
<source>This pane shows a detailed description of the transaction</source>
<translation>Šis panelis parāda transakcijas detaļas</translation>
</message>
</context>
<context>
<name>TransactionTableModel</name>
<message>
<location filename="../transactiontablemodel.cpp" line="+226"/>
<source>Date</source>
<translation>Datums</translation>
</message>
<message>
<location line="+0"/>
<source>Type</source>
<translation>Tips</translation>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Adrese</translation>
</message>
<message>
<location line="+0"/>
<source>Amount</source>
<translation>Daudzums</translation>
</message>
<message>
<location line="+60"/>
<source>Open until %1</source>
<translation>Atvērts līdz %1</translation>
</message>
<message>
<location line="+12"/>
<source>Confirmed (%1 confirmations)</source>
<translation>Apstiprināts (%1 apstiprinājumu)</translation>
</message>
<message numerus="yes">
<location line="-15"/>
<source>Open for %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+6"/>
<source>Offline</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Unconfirmed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Confirming (%1 of %2 recommended confirmations)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Conflicted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Immature (%1 confirmations, will be available after %2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>This block was not received by any other nodes and will probably not be accepted!</source>
<translation>Neviens cits mezgls šo bloku nav saņēmis un droši vien netiks akceptēts!</translation>
</message>
<message>
<location line="+3"/>
<source>Generated but not accepted</source>
<translation>Ģenerēts, taču nav akceptēts</translation>
</message>
<message>
<location line="+42"/>
<source>Received with</source>
<translation>Saņemts ar</translation>
</message>
<message>
<location line="+2"/>
<source>Received from</source>
<translation>Saņemts no</translation>
</message>
<message>
<location line="+3"/>
<source>Sent to</source>
<translation>Nosūtīts</translation>
</message>
<message>
<location line="+2"/>
<source>Payment to yourself</source>
<translation>Maksājums sev</translation>
</message>
<message>
<location line="+2"/>
<source>Mined</source>
<translation>Atrasts</translation>
</message>
<message>
<location line="+38"/>
<source>(n/a)</source>
<translation>(nav pieejams)</translation>
</message>
<message>
<location line="+190"/>
<source>Transaction status. Hover over this field to show number of confirmations.</source>
<translation>Transakcijas statuss. Turiet peli virs šī lauka, lai redzētu apstiprinājumu skaitu.</translation>
</message>
<message>
<location line="+2"/>
<source>Date and time that the transaction was received.</source>
<translation>Transakcijas saņemšanas datums un laiks.</translation>
</message>
<message>
<location line="+2"/>
<source>Type of transaction.</source>
<translation>Transakcijas tips.</translation>
</message>
<message>
<location line="+2"/>
<source>Destination address of transaction.</source>
<translation>Transakcijas mērķa adrese.</translation>
</message>
<message>
<location line="+2"/>
<source>Amount removed from or added to balance.</source>
<translation>Bilancei pievienotais vai atņemtais daudzums.</translation>
</message>
</context>
<context>
<name>TransactionView</name>
<message>
<location filename="../transactionview.cpp" line="+55"/>
<location line="+16"/>
<source>All</source>
<translation>Visi</translation>
</message>
<message>
<location line="-15"/>
<source>Today</source>
<translation>Šodien</translation>
</message>
<message>
<location line="+1"/>
<source>This week</source>
<translation>Šonedēļ</translation>
</message>
<message>
<location line="+1"/>
<source>This month</source>
<translation>Šomēnes</translation>
</message>
<message>
<location line="+1"/>
<source>Last month</source>
<translation>Pēdējais mēnesis</translation>
</message>
<message>
<location line="+1"/>
<source>This year</source>
<translation>Šogad</translation>
</message>
<message>
<location line="+1"/>
<source>Range...</source>
<translation>Diapazons...</translation>
</message>
<message>
<location line="+11"/>
<source>Received with</source>
<translation>Saņemts ar</translation>
</message>
<message>
<location line="+2"/>
<source>Sent to</source>
<translation>Nosūtīts</translation>
</message>
<message>
<location line="+2"/>
<source>To yourself</source>
<translation>Sev</translation>
</message>
<message>
<location line="+1"/>
<source>Mined</source>
<translation>Atrasts</translation>
</message>
<message>
<location line="+1"/>
<source>Other</source>
<translation>Cits</translation>
</message>
<message>
<location line="+7"/>
<source>Enter address or label to search</source>
<translation>Ierakstiet meklējamo nosaukumu vai adresi</translation>
</message>
<message>
<location line="+7"/>
<source>Min amount</source>
<translation>Minimālais daudzums</translation>
</message>
<message>
<location line="+34"/>
<source>Copy address</source>
<translation>Kopēt adresi</translation>
</message>
<message>
<location line="+1"/>
<source>Copy label</source>
<translation>Kopēt nosaukumu</translation>
</message>
<message>
<location line="+1"/>
<source>Copy amount</source>
<translation>Kopēt daudzumu</translation>
</message>
<message>
<location line="+1"/>
<source>Copy transaction ID</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Edit label</source>
<translation>Mainīt nosaukumu</translation>
</message>
<message>
<location line="+1"/>
<source>Show transaction details</source>
<translation>Rādīt transakcijas detaļas</translation>
</message>
<message>
<location line="+144"/>
<source>Export Transaction Data</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation>Fails ar komatu kā atdalītāju (*.csv)</translation>
</message>
<message>
<location line="+8"/>
<source>Confirmed</source>
<translation>Apstiprināts</translation>
</message>
<message>
<location line="+1"/>
<source>Date</source>
<translation>Datums</translation>
</message>
<message>
<location line="+1"/>
<source>Type</source>
<translation>Tips</translation>
</message>
<message>
<location line="+1"/>
<source>Label</source>
<translation>Nosaukums</translation>
</message>
<message>
<location line="+1"/>
<source>Address</source>
<translation>Adrese</translation>
</message>
<message>
<location line="+1"/>
<source>Amount</source>
<translation>Daudzums</translation>
</message>
<message>
<location line="+1"/>
<source>ID</source>
<translation>ID</translation>
</message>
<message>
<location line="+4"/>
<source>Error exporting</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+100"/>
<source>Range:</source>
<translation>Diapazons:</translation>
</message>
<message>
<location line="+8"/>
<source>to</source>
<translation>uz</translation>
</message>
</context>
<context>
<name>WalletModel</name>
<message>
<location filename="../walletmodel.cpp" line="+206"/>
<source>Sending...</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>bitcoin-core</name>
<message>
<location filename="../bitcoinstrings.cpp" line="+33"/>
<source>hackcoin version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Usage:</source>
<translation>Lietojums:</translation>
</message>
<message>
<location line="+1"/>
<source>Send command to -server or hackcoind</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>List commands</source>
<translation>Komandu saraksts</translation>
</message>
<message>
<location line="+1"/>
<source>Get help for a command</source>
<translation>Palīdzība par komandu</translation>
</message>
<message>
<location line="+2"/>
<source>Options:</source>
<translation>Iespējas:</translation>
</message>
<message>
<location line="+2"/>
<source>Specify configuration file (default: hackcoin.conf)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Specify pid file (default: hackcoind.pid)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Specify wallet file (within data directory)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Specify data directory</source>
<translation>Norādiet datu direktoriju</translation>
</message>
<message>
<location line="+2"/>
<source>Set database cache size in megabytes (default: 25)</source>
<translation>Uzstādiet datu bāzes bufera izmēru megabaitos (pēc noklusēšanas: 25)</translation>
</message>
<message>
<location line="+1"/>
<source>Set database disk log size in megabytes (default: 100)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Listen for connections on <port> (default: 15714 or testnet: 25714)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Maintain at most <n> connections to peers (default: 125)</source>
<translation>Uzturēt līdz <n> savienojumiem ar citiem mezgliem(pēc noklusēšanas: 125)</translation>
</message>
<message>
<location line="+3"/>
<source>Connect to a node to retrieve peer addresses, and disconnect</source>
<translation>Pievienoties mezglam, lai iegūtu citu mezglu adreses, un atvienoties</translation>
</message>
<message>
<location line="+1"/>
<source>Specify your own public address</source>
<translation>Norādiet savu publisko adresi</translation>
</message>
<message>
<location line="+5"/>
<source>Bind to given address. Use [host]:port notation for IPv6</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Stake your coins to support network and gain reward (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Threshold for disconnecting misbehaving peers (default: 100)</source>
<translation>Slieksnis pārkāpējmezglu atvienošanai (pēc noklusēšanas: 100)</translation>
</message>
<message>
<location line="+1"/>
<source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source>
<translation>Sekundes, cik ilgi atturēt pārkāpējmezglus no atkārtotas pievienošanās (pēc noklusēšanas: 86400)</translation>
</message>
<message>
<location line="-44"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+51"/>
<source>Detach block and address databases. Increases shutdown time (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+109"/>
<source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-5"/>
<source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds </source>
<translation type="unfinished"/>
</message>
<message>
<location line="-87"/>
<source>Listen for JSON-RPC connections on <port> (default: 15715 or testnet: 25715)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-11"/>
<source>Accept command line and JSON-RPC commands</source>
<translation>Pieņemt komandrindas un JSON-RPC komandas</translation>
</message>
<message>
<location line="+101"/>
<source>Error: Transaction creation failed </source>
<translation type="unfinished"/>
</message>
<message>
<location line="-5"/>
<source>Error: Wallet locked, unable to create transaction </source>
<translation type="unfinished"/>
</message>
<message>
<location line="-8"/>
<source>Importing blockchain data file.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Importing bootstrap blockchain data file.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-88"/>
<source>Run in the background as a daemon and accept commands</source>
<translation>Darbināt fonā kā servisu un pieņemt komandas</translation>
</message>
<message>
<location line="+1"/>
<source>Use the test network</source>
<translation>Izmantot testa tīklu</translation>
</message>
<message>
<location line="-24"/>
<source>Accept connections from outside (default: 1 if no -proxy or -connect)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-38"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+117"/>
<source>Error initializing database environment %s! To recover, BACKUP THAT DIRECTORY, then remove everything from it except for wallet.dat.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-20"/>
<source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+61"/>
<source>Warning: Please check that your computer's date and time are correct! If your clock is wrong hackcoin will not work properly.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-31"/>
<source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-18"/>
<source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-30"/>
<source>Attempt to recover private keys from a corrupt wallet.dat</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Block creation options:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-62"/>
<source>Connect only to the specified node(s)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Discover own IP address (default: 1 when listening and no -externalip)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+94"/>
<source>Failed to listen on any port. Use -listen=0 if you want this.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-90"/>
<source>Find peers using DNS lookup (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Sync checkpoints policy (default: strict)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+83"/>
<source>Invalid -tor address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Invalid amount for -reservebalance=<amount></source>
<translation type="unfinished"/>
</message>
<message>
<location line="-82"/>
<source>Maximum per-connection receive buffer, <n>*1000 bytes (default: 5000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Maximum per-connection send buffer, <n>*1000 bytes (default: 1000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-16"/>
<source>Only connect to nodes in network <net> (IPv4, IPv6 or Tor)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+28"/>
<source>Output extra debugging information. Implies all other -debug* options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Output extra network debugging information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Prepend debug output with timestamp</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>SSL options: (see the Bitcoin Wiki for SSL setup instructions)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-74"/>
<source>Select the version of socks proxy to use (4-5, default: 5)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+41"/>
<source>Send trace/debug info to console instead of debug.log file</source>
<translation>Debug/trace informāciju izvadīt konsolē, nevis debug.log failā</translation>
</message>
<message>
<location line="+1"/>
<source>Send trace/debug info to debugger</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+28"/>
<source>Set maximum block size in bytes (default: 250000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Set minimum block size in bytes (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-29"/>
<source>Shrink debug.log file on client startup (default: 1 when no -debug)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-42"/>
<source>Specify connection timeout in milliseconds (default: 5000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+109"/>
<source>Unable to sign checkpoint, wrong checkpointkey?
</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-80"/>
<source>Use UPnP to map the listening port (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Use UPnP to map the listening port (default: 1 when listening)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-25"/>
<source>Use proxy to reach tor hidden services (default: same as -proxy)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+42"/>
<source>Username for JSON-RPC connections</source>
<translation>JSON-RPC savienojumu lietotājvārds</translation>
</message>
<message>
<location line="+47"/>
<source>Verifying database integrity...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+57"/>
<source>WARNING: syncronized checkpoint violation detected, but skipped!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Warning: Disk space is low!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-2"/>
<source>Warning: This version is obsolete, upgrade required!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-48"/>
<source>wallet.dat corrupt, salvage failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-54"/>
<source>Password for JSON-RPC connections</source>
<translation>JSON-RPC savienojumu parole</translation>
</message>
<message>
<location line="-84"/>
<source>%s, you must set a rpcpassword in the configuration file:
%s
It is recommended you use the following random password:
rpcuser=hackcoinrpc
rpcpassword=%s
(you do not need to remember this password)
The username and password MUST NOT be the same.
If the file does not exist, create it with owner-readable-only file permissions.
It is also recommended to set alertnotify so you are notified of problems;
for example: alertnotify=echo %%s | mail -s "hackcoin Alert" dev@vindicate.com
</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+51"/>
<source>Find peers using internet relay chat (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Sync time with other nodes. Disable if time on your system is precise e.g. syncing with NTP (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>When creating transactions, ignore inputs with value less than this (default: 0.01)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Allow JSON-RPC connections from specified IP address</source>
<translation>Atļaut JSON-RPC savienojumus no norādītās IP adreses</translation>
</message>
<message>
<location line="+1"/>
<source>Send commands to node running on <ip> (default: 127.0.0.1)</source>
<translation>Nosūtīt komandas mezglam, kas darbojas adresē <ip> (pēc noklusēšanas: 127.0.0.1)</translation>
</message>
<message>
<location line="+1"/>
<source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source>
<translation>Izpildīt komandu, kad labāk atbilstošais bloks izmainās (%s cmd aizvieto ar bloka hešu)</translation>
</message>
<message>
<location line="+3"/>
<source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Require a confirmations for change (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Enforce transaction scripts to use canonical PUSH operators (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Upgrade wallet to latest format</source>
<translation>Atjaunot maciņa formātu uz jaunāko</translation>
</message>
<message>
<location line="+1"/>
<source>Set key pool size to <n> (default: 100)</source>
<translation>Uzstādīt atslēgu bufera izmēru uz <n> (pēc noklusēšanas: 100)</translation>
</message>
<message>
<location line="+1"/>
<source>Rescan the block chain for missing wallet transactions</source>
<translation>Atkārtoti skanēt bloku virkni, meklējot trūkstošās maciņa transakcijas</translation>
</message>
<message>
<location line="+2"/>
<source>How many blocks to check at startup (default: 2500, 0 = all)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>How thorough the block verification is (0-6, default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Imports blocks from external blk000?.dat file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Use OpenSSL (https) for JSON-RPC connections</source>
<translation>JSON-RPC savienojumiem izmantot OpenSSL (https)</translation>
</message>
<message>
<location line="+1"/>
<source>Server certificate file (default: server.cert)</source>
<translation>Servera sertifikāta fails (pēc noklusēšanas: server.cert)</translation>
</message>
<message>
<location line="+1"/>
<source>Server private key (default: server.pem)</source>
<translation>Servera privātā atslēga (pēc noklusēšanas: server.pem)</translation>
</message>
<message>
<location line="+1"/>
<source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+53"/>
<source>Error: Wallet unlocked for staking only, unable to create transaction.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>WARNING: Invalid checkpoint found! Displayed transactions may not be correct! You may need to upgrade, or notify developers.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-158"/>
<source>This help message</source>
<translation>Šis palīdzības paziņojums</translation>
</message>
<message>
<location line="+95"/>
<source>Wallet %s resides outside data directory %s.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Cannot obtain a lock on data directory %s. hackcoin is probably already running.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-98"/>
<source>hackcoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+140"/>
<source>Unable to bind to %s on this computer (bind returned error %d, %s)</source>
<translation>Nevar pievienoties pie %s šajā datorā (pievienošanās atgrieza kļūdu %d, %s)</translation>
</message>
<message>
<location line="-130"/>
<source>Connect through socks proxy</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Allow DNS lookups for -addnode, -seednode and -connect</source>
<translation>Atļaut DNS uzmeklēšanu priekš -addnode, -seednode un -connect</translation>
</message>
<message>
<location line="+122"/>
<source>Loading addresses...</source>
<translation>Ielādē adreses...</translation>
</message>
<message>
<location line="-15"/>
<source>Error loading blkindex.dat</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Error loading wallet.dat: Wallet corrupted</source>
<translation>Nevar ielādēt wallet.dat: maciņš bojāts</translation>
</message>
<message>
<location line="+4"/>
<source>Error loading wallet.dat: Wallet requires newer version of hackcoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Wallet needed to be rewritten: restart hackcoin to complete</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error loading wallet.dat</source>
<translation>Kļūda ielādējot wallet.dat</translation>
</message>
<message>
<location line="-16"/>
<source>Invalid -proxy address: '%s'</source>
<translation>Nederīga -proxy adrese: '%s'</translation>
</message>
<message>
<location line="-1"/>
<source>Unknown network specified in -onlynet: '%s'</source>
<translation>-onlynet komandā norādīts nepazīstams tīkls: '%s'</translation>
</message>
<message>
<location line="-1"/>
<source>Unknown -socks proxy version requested: %i</source>
<translation>Pieprasīta nezināma -socks proxy versija: %i</translation>
</message>
<message>
<location line="+4"/>
<source>Cannot resolve -bind address: '%s'</source>
<translation>Nevar uzmeklēt -bind adresi: '%s'</translation>
</message>
<message>
<location line="+2"/>
<source>Cannot resolve -externalip address: '%s'</source>
<translation>Nevar atrisināt -externalip adresi: '%s'</translation>
</message>
<message>
<location line="-24"/>
<source>Invalid amount for -paytxfee=<amount>: '%s'</source>
<translation>Nederīgs daudzums priekš -paytxfree=<amount>: '%s'</translation>
</message>
<message>
<location line="+44"/>
<source>Error: could not start node</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Sending...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Invalid amount</source>
<translation>Nederīgs daudzums</translation>
</message>
<message>
<location line="+1"/>
<source>Insufficient funds</source>
<translation>Nepietiek bitkoinu</translation>
</message>
<message>
<location line="-34"/>
<source>Loading block index...</source>
<translation>Ielādē bloku indeksu...</translation>
</message>
<message>
<location line="-103"/>
<source>Add a node to connect to and attempt to keep the connection open</source>
<translation>Pievienot mezglu, kam pievienoties un turēt savienojumu atvērtu</translation>
</message>
<message>
<location line="+122"/>
<source>Unable to bind to %s on this computer. hackcoin is probably already running.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-97"/>
<source>Fee per KB to add to transactions you send</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+55"/>
<source>Invalid amount for -mininput=<amount>: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Loading wallet...</source>
<translation>Ielādē maciņu...</translation>
</message>
<message>
<location line="+8"/>
<source>Cannot downgrade wallet</source>
<translation>Nevar maciņa formātu padarīt vecāku</translation>
</message>
<message>
<location line="+1"/>
<source>Cannot initialize keypool</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Cannot write default address</source>
<translation>Nevar ierakstīt adresi pēc noklusēšanas</translation>
</message>
<message>
<location line="+1"/>
<source>Rescanning...</source>
<translation>Skanēju no jauna...</translation>
</message>
<message>
<location line="+5"/>
<source>Done loading</source>
<translation>Ielāde pabeigta</translation>
</message>
<message>
<location line="-167"/>
<source>To use the %s option</source>
<translation>Izmantot opciju %s</translation>
</message>
<message>
<location line="+14"/>
<source>Error</source>
<translation>Kļūda</translation>
</message>
<message>
<location line="+6"/>
<source>You must set rpcpassword=<password> in the configuration file:
%s
If the file does not exist, create it with owner-readable-only file permissions.</source>
<translation>Konfigurācijas failā jāuzstāda rpcpassword=<password>:
%s
Ja fails neeksistē, izveidojiet to ar atļauju lasīšanai tikai īpašniekam.</translation>
</message>
</context>
</TS> | {
"content_hash": "36881c3654178f0a4c2c101c648b4b1a",
"timestamp": "",
"source": "github",
"line_count": 3291,
"max_line_length": 395,
"avg_line_length": 34.53752658766332,
"alnum_prop": 0.6000193554630795,
"repo_name": "ebeast/vindicate",
"id": "464a1feb2bc6e00d74b9000ca86db43391bc995c",
"size": "114201",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/qt/locale/bitcoin_lv_LV.ts",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Assembly",
"bytes": "51312"
},
{
"name": "C",
"bytes": "3243066"
},
{
"name": "C++",
"bytes": "13021587"
},
{
"name": "CSS",
"bytes": "1127"
},
{
"name": "HTML",
"bytes": "50620"
},
{
"name": "Makefile",
"bytes": "115931"
},
{
"name": "NSIS",
"bytes": "5914"
},
{
"name": "Objective-C",
"bytes": "858"
},
{
"name": "Objective-C++",
"bytes": "3536"
},
{
"name": "Python",
"bytes": "2819"
},
{
"name": "QMake",
"bytes": "14941"
},
{
"name": "Shell",
"bytes": "8509"
}
],
"symlink_target": ""
} |
<?php
declare(strict_types=1);
namespace Symplify\NetteAdapterForSymfonyBundles\Transformer\DI;
use Nette\Configurator;
use Nette\DI\Container;
use Nette\DI\ContainerBuilder;
use Symplify\NetteAdapterForSymfonyBundles\Transformer\ArgumentsTransformer;
final class TransformerFactory
{
/**
* @var ContainerBuilder
*/
private $containerBuilder;
/**
* @var string
*/
private $tempDir;
public function __construct(ContainerBuilder $containerBuilder, string $tempDir)
{
$this->containerBuilder = $containerBuilder;
$this->tempDir = $tempDir;
}
public function create() : Container
{
$configurator = new Configurator();
$configurator->addConfig(__DIR__ . '/services.neon');
$configurator->setTempDirectory($this->tempDir);
if (class_exists('Nette\Bridges\ApplicationDI\ApplicationExtension')) {
$configurator->addConfig(__DIR__ . '/setup.neon');
}
$container = $configurator->createContainer();
/** @var ArgumentsTransformer $argumentsTransformer */
$argumentsTransformer = $container->getByType(ArgumentsTransformer::class);
$argumentsTransformer->setContainerBuilder($this->containerBuilder);
return $container;
}
}
| {
"content_hash": "48c24d376d34044f4f8d669a3081594b",
"timestamp": "",
"source": "github",
"line_count": 48,
"max_line_length": 84,
"avg_line_length": 26.895833333333332,
"alnum_prop": 0.6738962044926413,
"repo_name": "Symnedi/SymfonyBundlesExtension",
"id": "fd75d8c7d8e79b1e72eded3ff0148fd12e229819",
"size": "1393",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/Transformer/DI/TransformerFactory.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "PHP",
"bytes": "49463"
}
],
"symlink_target": ""
} |
duwrap
======
Python Wrapper script for du
| {
"content_hash": "f1c32454cfd73357017c5ef2eac56681",
"timestamp": "",
"source": "github",
"line_count": 4,
"max_line_length": 28,
"avg_line_length": 11,
"alnum_prop": 0.6818181818181818,
"repo_name": "bharat555/duwrap",
"id": "a1ddc96e80b48acd2ef6a0c47e5e6f45956b5bd6",
"size": "44",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "README.md",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
} |
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<title>Pannonia - premium responsive admin template by Eugene Kopyov</title>
<link href="css/main.css" rel="stylesheet" type="text/css" />
<!--[if IE 8]><link href="css/ie8.css" rel="stylesheet" type="text/css" /><![endif]-->
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,600,700' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js"></script>
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=AIzaSyDY0kkJiTPVd2U7aTOAwhc9ySH6oHxOIYM&sensor=false"></script>
<script type="text/javascript" src="js/plugins/charts/jquery.sparkline.min.js"></script>
<script type="text/javascript" src="js/plugins/ui/jquery.easytabs.min.js"></script>
<script type="text/javascript" src="js/plugins/ui/jquery.collapsible.min.js"></script>
<script type="text/javascript" src="js/plugins/ui/jquery.mousewheel.js"></script>
<script type="text/javascript" src="js/plugins/ui/jquery.bootbox.min.js"></script>
<script type="text/javascript" src="js/plugins/ui/jquery.colorpicker.js"></script>
<script type="text/javascript" src="js/plugins/ui/jquery.timepicker.min.js"></script>
<script type="text/javascript" src="js/plugins/ui/jquery.jgrowl.js"></script>
<script type="text/javascript" src="js/plugins/ui/jquery.fancybox.js"></script>
<script type="text/javascript" src="js/plugins/ui/jquery.fullcalendar.min.js"></script>
<script type="text/javascript" src="js/plugins/ui/jquery.elfinder.js"></script>
<script type="text/javascript" src="js/plugins/uploader/plupload.js"></script>
<script type="text/javascript" src="js/plugins/uploader/plupload.html4.js"></script>
<script type="text/javascript" src="js/plugins/uploader/plupload.html5.js"></script>
<script type="text/javascript" src="js/plugins/uploader/jquery.plupload.queue.js"></script>
<script type="text/javascript" src="js/plugins/forms/jquery.uniform.min.js"></script>
<script type="text/javascript" src="js/plugins/forms/jquery.autosize.js"></script>
<script type="text/javascript" src="js/plugins/forms/jquery.inputlimiter.min.js"></script>
<script type="text/javascript" src="js/plugins/forms/jquery.tagsinput.min.js"></script>
<script type="text/javascript" src="js/plugins/forms/jquery.inputmask.js"></script>
<script type="text/javascript" src="js/plugins/forms/jquery.select2.min.js"></script>
<script type="text/javascript" src="js/plugins/forms/jquery.listbox.js"></script>
<script type="text/javascript" src="js/plugins/forms/jquery.validation.js"></script>
<script type="text/javascript" src="js/plugins/forms/jquery.validationEngine-en.js"></script>
<script type="text/javascript" src="js/plugins/forms/jquery.form.wizard.js"></script>
<script type="text/javascript" src="js/plugins/forms/jquery.form.js"></script>
<script type="text/javascript" src="js/plugins/tables/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="js/files/bootstrap.min.js"></script>
<script type="text/javascript" src="js/files/functions.js"></script>
</head>
<body>
<!-- Fixed top -->
<div id="top">
<div class="fixed">
<a href="index.html" title="" class="logo"><img src="img/logo.png" alt="" /></a>
<ul class="top-menu">
<li><a class="fullview"></a></li>
<li><a class="showmenu"></a></li>
<li><a href="#" title="" class="messages"><i class="new-message"></i></a></li>
<li class="dropdown">
<a class="user-menu" data-toggle="dropdown"><img src="img/userpic.png" alt="" /><span>Howdy, Eugene! <b class="caret"></b></span></a>
<ul class="dropdown-menu">
<li><a href="#" title=""><i class="icon-user"></i>Profile</a></li>
<li><a href="#" title=""><i class="icon-inbox"></i>Messages<span class="badge badge-info">9</span></a></li>
<li><a href="#" title=""><i class="icon-cog"></i>Settings</a></li>
<li><a href="#" title=""><i class="icon-remove"></i>Logout</a></li>
</ul>
</li>
</ul>
</div>
</div>
<!-- /fixed top -->
<!-- Content container -->
<div id="container">
<!-- Sidebar -->
<div id="sidebar">
<div class="sidebar-tabs">
<ul class="tabs-nav two-items">
<li><a href="#general" title=""><i class="icon-reorder"></i></a></li>
<li><a href="#stuff" title=""><i class="icon-cogs"></i></a></li>
</ul>
<div id="general">
<!-- Social stats -->
<div class="widget">
<h6 class="widget-name"><i class="icon-twitter"></i>Social statistics</h6>
<ul class="social-stats">
<li>
<a href="" title="" class="orange-square"><i class="icon-rss"></i></a>
<div>
<h4>1,286</h4>
<span>total feed subscribers</span>
</div>
</li>
<li>
<a href="" title="" class="blue-square"><i class="icon-twitter"></i></a>
<div>
<h4>12,683</h4>
<span>total twitter followers</span>
</div>
</li>
<li>
<a href="" title="" class="dark-blue-square"><i class="icon-facebook"></i></a>
<div>
<h4>530,893</h4>
<span>total facebook likes</span>
</div>
</li>
</ul>
</div>
<!-- /social stats -->
<!-- Main navigation -->
<ul class="navigation widget">
<li><a href="index.html" title=""><i class="icon-home"></i>Dashboard</a></li>
<li><a href="#" title="" class="expand"><i class="icon-reorder"></i>Form elements<strong>3</strong></a>
<ul>
<li><a href="forms.html" title="">Form components</a></li>
<li><a href="wysiwyg.html" title="">WYSIWYG editor</a></li>
<li><a href="form_wizards.html" title="">Wizards</a></li>
</ul>
</li>
<li><a href="#" title="" class="expand"><i class="icon-tasks"></i>Components<strong>4</strong></a>
<ul>
<li><a href="components.html" title="">Content components</a></li>
<li><a href="content_grid.html" title="">Content grid</a></li>
<li><a href="blank.html" title="">Blank page</a></li>
</ul>
</li>
<li class="active"><a href="media.html" title=""><i class="icon-picture"></i>Media</a></li>
<li><a href="icons.html" title=""><i class="icon-th"></i>Icons</a></li>
<li><a href="charts.html" title=""><i class="icon-signal"></i>Charts & graphs</a></li>
<li><a href="invoice.html" title=""><i class="icon-copy"></i>Invoice</a></li>
<li><a href="tables.html" title=""><i class="icon-table"></i>Tables</a></li>
<li><a href="#" title="" class="expand"><i class="icon-warning-sign"></i>Error pages<strong>6</strong></a>
<ul>
<li><a href="403.html" title="">403 page</a></li>
<li><a href="404.html" title="">404 page</a></li>
<li><a href="405.html" title="">405 page</a></li>
<li><a href="500.html" title="">500 page</a></li>
<li><a href="503.html" title="">503 page</a></li>
<li><a href="offline.html" title="">Offline page</a></li>
</ul>
</li>
<li><a href="typography.html" title=""><i class="icon-text-height"></i>Typography</a></li>
<li><a href="calendar.html" title=""><i class="icon-calendar"></i>Calendar</a></li>
<li><a href="file_management.html" title=""><i class="icon-cogs"></i>File management</a></li>
<li><a href="#" title="" class="expand"><i class="icon-indent-right"></i>Menu levels<strong>3</strong></a>
<ul>
<li><a href="#" title="">Link</a></li>
<li><a href="#" title="" class="expand">Link with submenu</a>
<ul>
<li><a href="#" title="">Lorem ipsum</a></li>
<li><a href="#" title="">Dolor sit amet</a></li>
</ul>
</li>
<li><a href="#" title="">Link</a></li>
</ul>
</li>
<li><a href="#" title="" class="expand"><i class="icon-sitemap"></i>Page layouts<strong>3</strong></a>
<ul>
<li><a href="no_sidebar_tabs.html" title="">No sidebar tabs</a></li>
<li><a href="no_action_tabs.html" title="">No action tabs</a></li>
<li><a href="actions_on_top.html" title="">Action tabs on top</a></li>
<li><a href="no_breadcrumbs.html" title="">No breadcrumbs line</a></li>
</ul>
</li>
</ul>
<!-- /main navigation -->
<!-- Gallery thumbs -->
<div class="widget">
<h6 class="widget-name"><i class="icon-picture"></i>Gallery thumbs</h6>
<div class="row-fluid thumbs">
<div class="span6">
<a href="img/demo/big.jpg" class="lightbox"><img src="http://placehold.it/580x380" alt="" /></a>
<a href="img/demo/big.jpg" class="lightbox"><img src="http://placehold.it/580x380" alt="" /></a>
<a href="img/demo/big.jpg" class="lightbox"><img src="http://placehold.it/580x380" alt="" /></a>
<a href="img/demo/big.jpg" class="lightbox"><img src="http://placehold.it/580x380" alt="" /></a>
</div>
<div class="span6">
<a href="img/demo/big.jpg" class="lightbox"><img src="http://placehold.it/580x380" alt="" /></a>
<a href="img/demo/big.jpg" class="lightbox"><img src="http://placehold.it/580x380" alt="" /></a>
<a href="img/demo/big.jpg" class="lightbox"><img src="http://placehold.it/580x380" alt="" /></a>
<a href="img/demo/big.jpg" class="lightbox"><img src="http://placehold.it/580x380" alt="" /></a>
</div>
</div>
</div>
<!-- /gallery thumbs -->
</div>
<div id="stuff">
<!-- Contact list -->
<div class="widget">
<h6 class="widget-name"><i class="icon-user"></i>Contacts</h6>
<ul class="user-list">
<li>
<a href="#" title="">
<img src="http://placehold.it/37x37" alt="" />
<span class="contact-name">
<strong>Eugene Kopyov <span>(5)</span></strong>
<i>web & ui designer</i>
</span>
<span class="status_away"></span>
</a>
</li>
<li class="active">
<a href="#" title="">
<img src="http://placehold.it/37x37" alt="" />
<span class="contact-name">
<strong>Lucy Wilkinson <span>(12)</span></strong>
<i>Team leader</i>
</span>
<span class="status_off"></span>
</a>
</li>
<li>
<a href="#" title="">
<img src="http://placehold.it/37x37" alt="" />
<span class="contact-name">
<strong>John Dow</strong>
<i>PHP developer</i>
</span>
<span class="status_available"></span>
</a>
</li>
<li>
<a href="#" title="">
<img src="http://placehold.it/37x37" alt="" />
<span class="contact-name">
<strong>The Incredible</strong>
<i>web & ui designer</i>
</span>
<span class="status_available"></span>
</a>
</li>
<li>
<a href="#" title="">
<img src="http://placehold.it/37x37" alt="" />
<span class="contact-name">
<strong>The wazzup guy</strong>
<i>web & ui designer</i>
</span>
<span class="status_available"></span>
</a>
</li>
<li>
<a href="#" title="">
<img src="http://placehold.it/37x37" alt="" />
<span class="contact-name">
<strong>Viktor Fedorovich<span class="status_available"></span></strong>
<i>web & ui designer</i>
</span>
</a>
</li>
</ul>
<div class="more">
<img src="img/elements/loaders/7s.gif" alt="" />
<a href="#" title="">Load more</a>
</div>
</div>
<!-- /contact list -->
<!-- Form elements -->
<form action="#" class="widget">
<h6 class="widget-name"><i class="icon-search"></i>Form elements</h6>
<input type="text" value="" placeholder="Your name" />
<input type="password" value="" placeholder="Your password" />
<input type="file" class="styled" />
<select name="select2" class="styled" >
<option value="opt1">Usual select box</option>
<option value="opt2">Option 2</option>
<option value="opt3">Option 3</option>
<option value="opt4">Option 4</option>
<option value="opt5">Option 5</option>
<option value="opt6">Option 6</option>
<option value="opt7">Option 7</option>
<option value="opt8">Option 8</option>
</select>
<select data-placeholder="Choose a Country..." class="select" tabindex="2">
<option value=""></option>
<option value="Cambodia">Cambodia</option>
<option value="Cameroon">Cameroon</option>
<option value="Canada">Canada</option>
<option value="Cape Verde">Cape Verde</option>
</select>
<div class="sidebar-checks">
<label class="checkbox"><input type="checkbox" name="checkbox1" class="styled" value="" checked="checked" />Checkbox checked</label>
<label class="radio"><input type="radio" name="radio" class="styled" value="" />Unchecked radio</label>
<label class="radio"><input type="radio" name="radio" class="styled" value="" checked="checked" />Checked radio</label>
</div>
<textarea cols="4" rows="4" placeholder="Your message"></textarea>
<div class="form-actions">
<input type="submit" value="Submit form" class="btn btn-info pull-left" />
<input type="reset" value="Reset form" class="btn btn-danger pull-right" />
</div>
</form>
<!-- /form elements -->
<!-- Action buttons -->
<div class="widget">
<h6 class="widget-name"><i class="icon-search"></i>Action buttons</h6>
<button class="btn btn-block btn-danger">Action button</button>
<button class="btn btn-block btn-info">Action button</button>
<button class="btn btn-block btn-success">Action button</button>
</div>
<!-- /action buttons -->
<!-- Tags input -->
<div class="widget">
<h6 class="widget-name"><i class="icon-search"></i>Tags input</h6>
<input type="text" id="tags1" class="tags" value="these,are,sample,tags" />
</div>
<!-- /tags input -->
</div>
</div>
</div>
<!-- /sidebar -->
<!-- Content -->
<div id="content">
<!-- Content wrapper -->
<div class="wrapper">
<!-- Breadcrumbs line -->
<div class="crumbs">
<ul id="breadcrumbs" class="breadcrumb">
<li><a href="index.html">Dashboard</a></li>
<li class="active"><a href="media.html" title="">Media stuff</a></li>
</ul>
<ul class="alt-buttons">
<li><a href="#" title=""><i class="icon-signal"></i><span>Stats</span></a></li>
<li><a href="#" title=""><i class="icon-comments"></i><span>Messages</span></a></li>
<li class="dropdown"><a href="#" title="" data-toggle="dropdown"><i class="icon-tasks"></i><span>Tasks</span> <strong>(+16)</strong></a>
<ul class="dropdown-menu pull-right">
<li><a href="#" title=""><i class="icon-plus"></i>Add new task</a></li>
<li><a href="#" title=""><i class="icon-reorder"></i>Statement</a></li>
<li><a href="#" title=""><i class="icon-cog"></i>Settings</a></li>
</ul>
</li>
</ul>
</div>
<!-- /breadcrumbs line -->
<!-- Page header -->
<div class="page-header">
<div class="page-title">
<h5>Media content</h5>
<span>Images, videos, media table</span>
</div>
<ul class="page-stats">
<li>
<div class="showcase">
<span>New visits</span>
<h2>22.504</h2>
</div>
<div id="total-visits" class="chart">10,14,8,45,23,41,22,31,19,12, 28, 21, 24, 20</div>
</li>
<li>
<div class="showcase">
<span>My balance</span>
<h2>$16.290</h2>
</div>
<div id="balance" class="chart">10,14,8,45,23,41,22,31,19,12, 28, 21, 24, 20</div>
</li>
</ul>
</div>
<!-- /page header -->
<!-- Action tabs -->
<div class="actions-wrapper">
<div class="actions">
<div id="user-stats">
<ul class="round-buttons">
<li><div class="depth"><a href="" title="Add new post" class="tip"><i class="icon-plus"></i></a></div></li>
<li><div class="depth"><a href="" title="View statement" class="tip"><i class="icon-signal"></i></a></div></li>
<li><div class="depth"><a href="" title="Media posts" class="tip"><i class="icon-reorder"></i></a></div></li>
<li><div class="depth"><a href="" title="RSS feed" class="tip"><i class="icon-rss"></i></a></div></li>
<li><div class="depth"><a href="" title="Create new task" class="tip"><i class="icon-tasks"></i></a></div></li>
<li><div class="depth"><a href="" title="Layout settings" class="tip"><i class="icon-cogs"></i></a></div></li>
</ul>
</div>
<div id="quick-actions">
<ul class="statistics">
<li>
<div class="top-info">
<a href="#" title="" class="blue-square"><i class="icon-plus"></i></a>
<strong>12,476</strong>
</div>
<div class="progress progress-micro"><div class="bar" style="width: 60%;"></div></div>
<span>User registrations</span>
</li>
<li>
<div class="top-info">
<a href="#" title="" class="red-square"><i class="icon-hand-up"></i></a>
<strong>621,873</strong>
</div>
<div class="progress progress-micro"><div class="bar" style="width: 20%;"></div></div>
<span>Total clicks</span>
</li>
<li>
<div class="top-info">
<a href="#" title="" class="purple-square"><i class="icon-shopping-cart"></i></a>
<strong>562</strong>
</div>
<div class="progress progress-micro"><div class="bar" style="width: 90%;"></div></div>
<span>New orders</span>
</li>
<li>
<div class="top-info">
<a href="#" title="" class="green-square"><i class="icon-ok"></i></a>
<strong>$45,360</strong>
</div>
<div class="progress progress-micro"><div class="bar" style="width: 70%;"></div></div>
<span>General balance</span>
</li>
<li>
<div class="top-info">
<a href="#" title="" class="sea-square"><i class="icon-group"></i></a>
<strong>562K+</strong>
</div>
<div class="progress progress-micro"><div class="bar" style="width: 50%;"></div></div>
<span>Total users</span>
</li>
<li>
<div class="top-info">
<a href="#" title="" class="dark-blue-square"><i class="icon-facebook"></i></a>
<strong>36,290</strong>
</div>
<div class="progress progress-micro"><div class="bar" style="width: 93%;"></div></div>
<span>Facebook fans</span>
</li>
</ul>
</div>
<div id="map">
<div id="google-map"></div>
</div>
<ul class="action-tabs">
<li><a href="#user-stats" title="">Quick actions</a></li>
<li><a href="#quick-actions" title="">Website statistics</a></li>
<li><a href="#map" title="" id="map-link">Google map</a></li>
</ul>
</div>
</div>
<!-- /action tabs -->
<!-- Options bar -->
<div class="widget">
<ul class="options-bar">
<li>
<div class="bar-select pull-left">
<span>Sorting: </span>
<select name="select2" class="styled">
<option value="opt1">Sort by date</option>
<option value="opt2">Sort by time</option>
<option value="opt3">Sort by category</option>
<option value="opt4">Sort by size</option>
</select>
</div>
<div class="loading pull-left">
<span>Updating list</span>
<img src="img/elements/loaders/6s.gif" alt="" />
</div>
</li>
<li class="bar-entries">
<span>Showing 8 of 1290 entries / New entries: <strong class="">+12</strong></span>
</li>
<li>
<div class="pull-right bulk">
<div class="bar-select">
<span>Bulk actions: </span>
<select name="select2" class="styled">
<option value="opt1">Edit</option>
<option value="opt2">Unpublish</option>
<option value="opt3">Publish</option>
<option value="opt4">Move to trash</option>
</select>
</div>
<div class="bar-button">
<button type="button" class="btn btn-info">Apply</button>
</div>
</div>
</li>
</ul>
</div>
<!-- /options bar -->
<h5 class="widget-name"><i class="icon-th"></i>Grid gallery items</h5>
<!-- With titles -->
<div class="media row-fluid">
<div class="span3">
<div class="widget">
<div class="well">
<div class="view">
<a href="img/demo/big.jpg" class="view-back lightbox"></a>
<img src="http://placehold.it/580x380" alt="" />
</div>
<div class="item-info">
<a href="#" title="" class="item-title">Aenean Malesuada Consectetur Risus</a>
<p>Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur mollis ornare vel leo.</p>
<p class="item-buttons">
<a href="#" class="btn btn-info tip" title="Edit"><i class="icon-pencil"></i></a>
<a href="#" class="btn btn-danger tip" title="Move to trash"><i class="icon-trash"></i></a>
</p>
</div>
</div>
</div>
<div class="widget">
<div class="well">
<div class="view">
<a href="img/demo/big.jpg" class="view-back lightbox"></a>
<img src="http://placehold.it/580x380" alt="" />
</div>
<div class="item-info">
<a href="#" title="" class="item-title">Aenean Malesuada Consectetur Risus</a>
<p>Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur mollis ornare vel leo.</p>
<p class="item-buttons">
<a href="#" class="btn btn-info tip" title="Edit"><i class="icon-pencil"></i></a>
<a href="#" class="btn btn-danger tip" title="Move to trash"><i class="icon-trash"></i></a>
</p>
</div>
</div>
</div>
</div>
<div class="span3">
<div class="widget">
<div class="well">
<div class="view">
<a href="img/demo/big.jpg" class="view-back lightbox"></a>
<img src="http://placehold.it/580x380" alt="" />
</div>
<div class="item-info">
<a href="#" title="" class="item-title">Aenean Malesuada Consectetur Risus</a>
<p>Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur mollis ornare vel leo.</p>
<p class="item-buttons">
<a href="#" class="btn btn-info tip" title="Edit"><i class="icon-pencil"></i></a>
<a href="#" class="btn btn-danger tip" title="Move to trash"><i class="icon-trash"></i></a>
</p>
</div>
</div>
</div>
<div class="widget">
<div class="well">
<div class="view">
<a href="img/demo/big.jpg" class="view-back lightbox"></a>
<img src="http://placehold.it/580x380" alt="" />
</div>
<div class="item-info">
<a href="#" title="" class="item-title">Aenean Malesuada Consectetur Risus</a>
<p>Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur mollis ornare vel leo.</p>
<p class="item-buttons">
<a href="#" class="btn btn-info tip" title="Edit"><i class="icon-pencil"></i></a>
<a href="#" class="btn btn-danger tip" title="Move to trash"><i class="icon-trash"></i></a>
</p>
</div>
</div>
</div>
</div>
<div class="span3">
<div class="widget">
<div class="well">
<div class="view">
<a href="img/demo/big.jpg" class="view-back lightbox"></a>
<img src="http://placehold.it/580x380" alt="" />
</div>
<div class="item-info">
<a href="#" title="" class="item-title">Aenean Malesuada Consectetur Risus</a>
<p>Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur mollis ornare vel leo.</p>
<p class="item-buttons">
<a href="#" class="btn btn-info tip" title="Edit"><i class="icon-pencil"></i></a>
<a href="#" class="btn btn-danger tip" title="Move to trash"><i class="icon-trash"></i></a>
</p>
</div>
</div>
</div>
<div class="widget">
<div class="well">
<div class="view">
<a href="img/demo/big.jpg" class="view-back lightbox"></a>
<img src="http://placehold.it/580x380" alt="" />
</div>
<div class="item-info">
<a href="#" title="" class="item-title">Aenean Malesuada Consectetur Risus</a>
<p>Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur mollis ornare vel leo.</p>
<p class="item-buttons">
<a href="#" class="btn btn-info tip" title="Edit"><i class="icon-pencil"></i></a>
<a href="#" class="btn btn-danger tip" title="Move to trash"><i class="icon-trash"></i></a>
</p>
</div>
</div>
</div>
</div>
<div class="span3">
<div class="widget">
<div class="well">
<div class="view">
<a href="img/demo/big.jpg" class="view-back lightbox"></a>
<img src="http://placehold.it/580x380" alt="" />
</div>
<div class="item-info">
<a href="#" title="" class="item-title">Aenean Malesuada Consectetur Risus</a>
<p>Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur mollis ornare vel leo.</p>
<p class="item-buttons">
<a href="#" class="btn btn-info tip" title="Edit"><i class="icon-pencil"></i></a>
<a href="#" class="btn btn-danger tip" title="Move to trash"><i class="icon-trash"></i></a>
</p>
</div>
</div>
</div>
<div class="widget">
<div class="well">
<div class="view">
<a href="img/demo/big.jpg" class="view-back lightbox"></a>
<img src="http://placehold.it/580x380" alt="" />
</div>
<div class="item-info">
<a href="#" title="" class="item-title">Aenean Malesuada Consectetur Risus</a>
<p>Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur mollis ornare vel leo.</p>
<p class="item-buttons">
<a href="#" class="btn btn-info tip" title="Edit"><i class="icon-pencil"></i></a>
<a href="#" class="btn btn-danger tip" title="Move to trash"><i class="icon-trash"></i></a>
</p>
</div>
</div>
</div>
</div>
</div>
<!-- /with titles -->
<h5 class="widget-name"><i class="icon-picture"></i>Grid without titles</h5>
<!-- Without titles -->
<div class="media row-fluid">
<div class="span3">
<div class="widget">
<div class="well">
<div class="view">
<a href="img/demo/big.jpg" class="view-back lightbox"></a>
<img src="http://placehold.it/580x380" alt="" />
</div>
</div>
</div>
<div class="widget">
<div class="well">
<div class="view">
<a href="img/demo/big.jpg" class="view-back lightbox"></a>
<img src="http://placehold.it/580x380" alt="" />
</div>
</div>
</div>
</div>
<div class="span3">
<div class="widget">
<div class="well">
<div class="view">
<a href="img/demo/big.jpg" class="view-back lightbox"></a>
<img src="http://placehold.it/580x380" alt="" />
</div>
</div>
</div>
<div class="widget">
<div class="well">
<div class="view">
<a href="img/demo/big.jpg" class="view-back lightbox"></a>
<img src="http://placehold.it/580x380" alt="" />
</div>
</div>
</div>
</div>
<div class="span3">
<div class="widget">
<div class="well">
<div class="view">
<a href="img/demo/big.jpg" class="view-back lightbox"></a>
<img src="http://placehold.it/580x380" alt="" />
</div>
</div>
</div>
<div class="widget">
<div class="well">
<div class="view">
<a href="img/demo/big.jpg" class="view-back lightbox"></a>
<img src="http://placehold.it/580x380" alt="" />
</div>
</div>
</div>
</div>
<div class="span3">
<div class="widget">
<div class="well">
<div class="view">
<a href="img/demo/big.jpg" class="view-back lightbox"></a>
<img src="http://placehold.it/580x380" alt="" />
</div>
</div>
</div>
<div class="widget">
<div class="well">
<div class="view">
<a href="img/demo/big.jpg" class="view-back lightbox"></a>
<img src="http://placehold.it/580x380" alt="" />
</div>
</div>
</div>
</div>
</div>
<!-- /without titles -->
<h5 class="widget-name"><i class="icon-film"></i>Videos with titles</h5>
<!-- Video with titles -->
<div class="media row-fluid">
<div class="span3">
<div class="video widget">
<div class="well">
<div class="view">
<iframe src="http://www.youtube.com/embed/yo3M6EB8kmk"></iframe>
</div>
<div class="item-info">
<a href="#" title="" class="item-title">Aenean Malesuada Consectetur Risus</a>
<p>Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur mollis ornare vel leo.</p>
<p class="item-buttons">
<a href="#" class="btn btn-info tip" title="Edit"><i class="icon-pencil"></i></a>
<a href="#" class="btn btn-danger tip" title="Move to trash"><i class="icon-trash"></i></a>
</p>
</div>
</div>
</div>
</div>
<div class="span3">
<div class="video widget">
<div class="well">
<div class="view">
<iframe src="http://www.youtube.com/embed/A3PDXmYoF5U"></iframe>
</div>
<div class="item-info">
<a href="#" title="" class="item-title">Aenean Malesuada Consectetur Risus</a>
<p>Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur mollis ornare vel leo.</p>
<p class="item-buttons">
<a href="#" class="btn btn-info tip" title="Edit"><i class="icon-pencil"></i></a>
<a href="#" class="btn btn-danger tip" title="Move to trash"><i class="icon-trash"></i></a>
</p>
</div>
</div>
</div>
</div>
<div class="span3">
<div class="video widget">
<div class="well">
<div class="view">
<iframe src="http://www.youtube.com/embed/GUEZCxBcM78"></iframe>
</div>
<div class="item-info">
<a href="#" title="" class="item-title">Aenean Malesuada Consectetur Risus</a>
<p>Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur mollis ornare vel leo.</p>
<p class="item-buttons">
<a href="#" class="btn btn-info tip" title="Edit"><i class="icon-pencil"></i></a>
<a href="#" class="btn btn-danger tip" title="Move to trash"><i class="icon-trash"></i></a>
</p>
</div>
</div>
</div>
</div>
<div class="span3">
<div class="video widget">
<div class="well">
<div class="view">
<iframe src="http://www.youtube.com/embed/GLC2BrmcYTY"></iframe>
</div>
<div class="item-info">
<a href="#" title="" class="item-title">Aenean Malesuada Consectetur Risus</a>
<p>Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur mollis ornare vel leo.</p>
<p class="item-buttons">
<a href="#" class="btn btn-info tip" title="Edit"><i class="icon-pencil"></i></a>
<a href="#" class="btn btn-danger tip" title="Move to trash"><i class="icon-trash"></i></a>
</p>
</div>
</div>
</div>
</div>
</div>
<!-- /video with titles -->
<h5 class="widget-name"><i class="icon-film"></i>Videos without titles</h5>
<!-- Video without titles -->
<div class="media row-fluid">
<div class="span3">
<div class="video widget">
<div class="well">
<div class="view">
<iframe src="http://www.youtube.com/embed/yo3M6EB8kmk"></iframe>
</div>
</div>
</div>
</div>
<div class="span3">
<div class="video widget">
<div class="well">
<div class="view">
<iframe src="http://www.youtube.com/embed/A3PDXmYoF5U"></iframe>
</div>
</div>
</div>
</div>
<div class="span3">
<div class="video widget">
<div class="well">
<div class="view">
<iframe src="http://www.youtube.com/embed/GUEZCxBcM78"></iframe>
</div>
</div>
</div>
</div>
<div class="span3">
<div class="video widget">
<div class="well">
<div class="view">
<iframe src="http://www.youtube.com/embed/GLC2BrmcYTY"></iframe>
</div>
</div>
</div>
</div>
</div>
<!-- /video without titles -->
<h5 class="widget-name"><i class="icon-table"></i>Table gallery items</h5>
<!-- Media datatable -->
<div class="widget">
<div class="navbar">
<div class="navbar-inner">
<h6>Media table</h6>
<div class="nav pull-right">
<a href="#" class="dropdown-toggle navbar-icon" data-toggle="dropdown"><i class="icon-cog"></i></a>
<ul class="dropdown-menu pull-right">
<li><a href="#"><i class="icon-plus"></i>Add new option</a></li>
<li><a href="#"><i class="icon-reorder"></i>View statement</a></li>
<li><a href="#"><i class="icon-cogs"></i>Parameters</a></li>
</ul>
</div>
</div>
</div>
<div class="table-overflow">
<table class="table table-striped table-bordered table-checks media-table">
<thead>
<tr>
<th>Image</th>
<th>Description</th>
<th>Date</th>
<th>File info</th>
<th class="actions-column">Actions</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="img/demo/big.jpg" title="" class="lightbox"><img src="http://placehold.it/37x37" alt="" /></a></td>
<td><a href="#" title="">Image2 description</a></td>
<td>Feb 12, 2014. 12:28</td>
<td class="file-info">
<span><strong>Size:</strong> 215 Kb</span>
<span><strong>Format:</strong> .jpg</span>
<span><strong>Dimensions:</strong> 120 x 120</span>
</td>
<td>
<ul class="navbar-icons">
<li><a href="#" class="tip" title="Add new option"><i class="icon-plus"></i></a></li>
<li><a href="#" class="tip" title="View statistics"><i class="icon-reorder"></i></a></li>
<li><a href="#" class="tip" title="Parameters"><i class="icon-cogs"></i></a></li>
</ul>
</td>
</tr>
<tr>
<td><a href="img/demo/big.jpg" title="" class="lightbox"><img src="http://placehold.it/37x37" alt="" /></a></td>
<td><a href="#" title="">Image1 description</a></td>
<td>Feb 12, 2014. 12:28</td>
<td class="file-info">
<span><strong>Size:</strong> 215 Kb</span>
<span><strong>Format:</strong> .jpg</span>
<span><strong>Dimensions:</strong> 120 x 120</span>
</td>
<td>
<ul class="navbar-icons">
<li><a href="#" class="tip" title="Add new option"><i class="icon-plus"></i></a></li>
<li><a href="#" class="tip" title="View statistics"><i class="icon-reorder"></i></a></li>
<li><a href="#" class="tip" title="Parameters"><i class="icon-cogs"></i></a></li>
</ul>
</td>
</tr>
<tr>
<td><a href="img/demo/big.jpg" title="" class="lightbox"><img src="http://placehold.it/37x37" alt="" /></a></td>
<td><a href="#" title="">Image1 description</a></td>
<td>Feb 12, 2014. 12:28</td>
<td class="file-info">
<span><strong>Size:</strong> 215 Kb</span>
<span><strong>Format:</strong> .jpg</span>
<span><strong>Dimensions:</strong> 120 x 120</span>
</td>
<td>
<ul class="navbar-icons">
<li><a href="#" class="tip" title="Add new option"><i class="icon-plus"></i></a></li>
<li><a href="#" class="tip" title="View statistics"><i class="icon-reorder"></i></a></li>
<li><a href="#" class="tip" title="Parameters"><i class="icon-cogs"></i></a></li>
</ul>
</td>
</tr>
<tr>
<td><a href="img/demo/big.jpg" title="" class="lightbox"><img src="http://placehold.it/37x37" alt="" /></a></td>
<td><a href="#" title="">Image1 description</a></td>
<td>Feb 12, 2014. 12:28</td>
<td class="file-info">
<span><strong>Size:</strong> 215 Kb</span>
<span><strong>Format:</strong> .jpg</span>
<span><strong>Dimensions:</strong> 120 x 120</span>
</td>
<td>
<ul class="navbar-icons">
<li><a href="#" class="tip" title="Add new option"><i class="icon-plus"></i></a></li>
<li><a href="#" class="tip" title="View statistics"><i class="icon-reorder"></i></a></li>
<li><a href="#" class="tip" title="Parameters"><i class="icon-cogs"></i></a></li>
</ul>
</td>
</tr>
<tr>
<td><a href="img/demo/big.jpg" title="" class="lightbox"><img src="http://placehold.it/37x37" alt="" /></a></td>
<td><a href="#" title="">Image1 description</a></td>
<td>Feb 12, 2014. 12:28</td>
<td class="file-info">
<span><strong>Size:</strong> 215 Kb</span>
<span><strong>Format:</strong> .jpg</span>
<span><strong>Dimensions:</strong> 120 x 120</span>
</td>
<td>
<ul class="navbar-icons">
<li><a href="#" class="tip" title="Add new option"><i class="icon-plus"></i></a></li>
<li><a href="#" class="tip" title="View statistics"><i class="icon-reorder"></i></a></li>
<li><a href="#" class="tip" title="Parameters"><i class="icon-cogs"></i></a></li>
</ul>
</td>
</tr>
<tr>
<td><a href="img/demo/big.jpg" title="" class="lightbox"><img src="http://placehold.it/37x37" alt="" /></a></td>
<td><a href="#" title="">Image1 description</a></td>
<td>Feb 12, 2014. 12:28</td>
<td class="file-info">
<span><strong>Size:</strong> 215 Kb</span>
<span><strong>Format:</strong> .jpg</span>
<span><strong>Dimensions:</strong> 120 x 120</span>
</td>
<td>
<ul class="navbar-icons">
<li><a href="#" class="tip" title="Add new option"><i class="icon-plus"></i></a></li>
<li><a href="#" class="tip" title="View statistics"><i class="icon-reorder"></i></a></li>
<li><a href="#" class="tip" title="Parameters"><i class="icon-cogs"></i></a></li>
</ul>
</td>
</tr>
<tr>
<td><a href="img/demo/big.jpg" title="" class="lightbox"><img src="http://placehold.it/37x37" alt="" /></a></td>
<td><a href="#" title="">Image1 description</a></td>
<td>Feb 12, 2014. 12:28</td>
<td class="file-info">
<span><strong>Size:</strong> 215 Kb</span>
<span><strong>Format:</strong> .jpg</span>
<span><strong>Dimensions:</strong> 120 x 120</span>
</td>
<td>
<ul class="navbar-icons">
<li><a href="#" class="tip" title="Add new option"><i class="icon-plus"></i></a></li>
<li><a href="#" class="tip" title="View statistics"><i class="icon-reorder"></i></a></li>
<li><a href="#" class="tip" title="Parameters"><i class="icon-cogs"></i></a></li>
</ul>
</td>
</tr>
<tr>
<td><a href="img/demo/big.jpg" title="" class="lightbox"><img src="http://placehold.it/37x37" alt="" /></a></td>
<td><a href="#" title="">Image1 description</a></td>
<td>Feb 12, 2014. 12:28</td>
<td class="file-info">
<span><strong>Size:</strong> 215 Kb</span>
<span><strong>Format:</strong> .jpg</span>
<span><strong>Dimensions:</strong> 120 x 120</span>
</td>
<td>
<ul class="navbar-icons">
<li><a href="#" class="tip" title="Add new option"><i class="icon-plus"></i></a></li>
<li><a href="#" class="tip" title="View statistics"><i class="icon-reorder"></i></a></li>
<li><a href="#" class="tip" title="Parameters"><i class="icon-cogs"></i></a></li>
</ul>
</td>
</tr>
<tr>
<td><a href="img/demo/big.jpg" title="" class="lightbox"><img src="http://placehold.it/37x37" alt="" /></a></td>
<td><a href="#" title="">Image1 description</a></td>
<td>Feb 12, 2014. 12:28</td>
<td class="file-info">
<span><strong>Size:</strong> 215 Kb</span>
<span><strong>Format:</strong> .jpg</span>
<span><strong>Dimensions:</strong> 120 x 120</span>
</td>
<td>
<ul class="navbar-icons">
<li><a href="#" class="tip" title="Add new option"><i class="icon-plus"></i></a></li>
<li><a href="#" class="tip" title="View statistics"><i class="icon-reorder"></i></a></li>
<li><a href="#" class="tip" title="Parameters"><i class="icon-cogs"></i></a></li>
</ul>
</td>
</tr>
<tr>
<td><a href="img/demo/big.jpg" title="" class="lightbox"><img src="http://placehold.it/37x37" alt="" /></a></td>
<td><a href="#" title="">Image1 description</a></td>
<td>Feb 12, 2014. 12:28</td>
<td class="file-info">
<span><strong>Size:</strong> 215 Kb</span>
<span><strong>Format:</strong> .jpg</span>
<span><strong>Dimensions:</strong> 120 x 120</span>
</td>
<td>
<ul class="navbar-icons">
<li><a href="#" class="tip" title="Add new option"><i class="icon-plus"></i></a></li>
<li><a href="#" class="tip" title="View statistics"><i class="icon-reorder"></i></a></li>
<li><a href="#" class="tip" title="Parameters"><i class="icon-cogs"></i></a></li>
</ul>
</td>
</tr>
<tr>
<td><a href="img/demo/big.jpg" title="" class="lightbox"><img src="http://placehold.it/37x37" alt="" /></a></td>
<td><a href="#" title="">Image1 description</a></td>
<td>Feb 12, 2014. 12:28</td>
<td class="file-info">
<span><strong>Size:</strong> 215 Kb</span>
<span><strong>Format:</strong> .jpg</span>
<span><strong>Dimensions:</strong> 120 x 120</span>
</td>
<td>
<ul class="navbar-icons">
<li><a href="#" class="tip" title="Add new option"><i class="icon-plus"></i></a></li>
<li><a href="#" class="tip" title="View statistics"><i class="icon-reorder"></i></a></li>
<li><a href="#" class="tip" title="Parameters"><i class="icon-cogs"></i></a></li>
</ul>
</td>
</tr>
<tr>
<td><a href="img/demo/big.jpg" title="" class="lightbox"><img src="http://placehold.it/37x37" alt="" /></a></td>
<td><a href="#" title="">Image1 description</a></td>
<td>Feb 12, 2014. 12:28</td>
<td class="file-info">
<span><strong>Size:</strong> 215 Kb</span>
<span><strong>Format:</strong> .jpg</span>
<span><strong>Dimensions:</strong> 120 x 120</span>
</td>
<td>
<ul class="navbar-icons">
<li><a href="#" class="tip" title="Add new option"><i class="icon-plus"></i></a></li>
<li><a href="#" class="tip" title="View statistics"><i class="icon-reorder"></i></a></li>
<li><a href="#" class="tip" title="Parameters"><i class="icon-cogs"></i></a></li>
</ul>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- /media datatable -->
</div>
<!-- /content wrapper -->
</div>
<!-- /content -->
</div>
<!-- /content container -->
<!-- Footer -->
<div id="footer">
<div class="copyrights">Copyright © 2014.Company name All rights reserved.<a target="_blank" href="http://sc.chinaz.com/moban/">网页模板</a></div>
<ul class="footer-links">
<li><a href="" title=""><i class="icon-cogs"></i>Contact admin</a></li>
<li><a href="" title=""><i class="icon-screenshot"></i>Report bug</a></li>
</ul>
</div>
<!-- /footer -->
<div style="display:none"><script src='http://v7.cnzz.com/stat.php?id=155540&web_id=155540' language='JavaScript' charset='gb2312'></script></div>
</body>
</html>
| {
"content_hash": "99b0cd2096b419fca74fd6ae5c61b297",
"timestamp": "",
"source": "github",
"line_count": 1140,
"max_line_length": 177,
"avg_line_length": 48.40701754385965,
"alnum_prop": 0.44822774717309366,
"repo_name": "ArmstrongYang/StudyShare",
"id": "2f0d5de9ad7d64a431d1ab0bc94dc579470cab40",
"size": "55184",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Web-PageTemplate/chahua3213/media.html",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "109"
},
{
"name": "C",
"bytes": "26166"
},
{
"name": "C++",
"bytes": "235717"
},
{
"name": "CSS",
"bytes": "1950223"
},
{
"name": "HTML",
"bytes": "8514589"
},
{
"name": "Hack",
"bytes": "648"
},
{
"name": "Java",
"bytes": "4201"
},
{
"name": "JavaScript",
"bytes": "3426261"
},
{
"name": "Jupyter Notebook",
"bytes": "165199"
},
{
"name": "Objective-C",
"bytes": "9492"
},
{
"name": "PHP",
"bytes": "294474"
},
{
"name": "Perl",
"bytes": "716"
},
{
"name": "Python",
"bytes": "368897"
},
{
"name": "Shell",
"bytes": "1434"
}
],
"symlink_target": ""
} |
var should = require('should');
var testlib = require('../etc/test-lib.js');
var testconfig = require('../etc/test-config-qa.js');
var marklogic = require('../');
testconfig.manageAdminConnection.user = "admin";
testconfig.manageAdminConnection.password = "admin";
var adminClient = marklogic.createDatabaseClient(testconfig.manageAdminConnection);
var adminManager = testlib.createManager(adminClient);
var db = marklogic.createDatabaseClient(testconfig.restWriterConnection);
var dbAdmin = marklogic.createDatabaseClient(testconfig.restAdminConnection);
var dbReader = marklogic.createDatabaseClient(testconfig.restReaderConnection);
var q = marklogic.queryBuilder;
var temporalCollectionName = 'temporalCollectionLsqt'
var updateCollectionName = 'updateCollection';
function validateData(response) {
for (var i = 0; i < response.length; ++i) {
// Make sure that system and valid times are what is expected
//console.log("---------------------------------");
//console.log(response[i]);
systemStartTime = response[i].content.System.systemStartTime;
systemEndTime = response[i].content.System.systemEndTime;
//console.log("systemStartTime = " + systemStartTime);
//console.log("systemEndTime = " + systemEndTime);
validStartTime = response[i].content.Valid.validStartTime;
validEndTime = response[i].content.Valid.validEndTime;
//console.log("validStartTime = " + validStartTime);
//console.log("validEndTime = " + validEndTime);
var quality = response[i].quality;
//console.log("Quality: " + quality);
var permissions = response[i].permissions;
if ((validStartTime.indexOf("2003-01-01T00:00:00") !== -1) && (validEndTime.indexOf("2008-12-31T23:59:59") !== -1)) {
systemStartTime.should.containEql("2011-01-01T00:00:01");
systemEndTime.should.containEql("9999-12-31T23:59:59");
// This is the updated document
// Permissions
permissions.forEach(function(permission) {
switch(permission['role-name']) {
case 'app-user':
permission.capabilities.length.should.equal(1);
permission.capabilities[0].should.equal('read');
break;
case 'app-builder':
permission.capabilities.length.should.equal(3);
permission.capabilities.should.containEql('read');
permission.capabilities.should.containEql('update');
permission.capabilities.should.containEql('execute');
break;
}
});
}
else if ((validStartTime.indexOf("2001-01-01T00:00:00") !== -1) && (validEndTime.indexOf("2003-01-01T00:00:00") !== -1)) {
systemStartTime.should.containEql("2011-01-01T00:00:01");
systemEndTime.should.containEql("9999-12-31T23:59:59");
permissions.forEach(function(permission) {
switch(permission['role-name']) {
case 'app-user':
permission.capabilities.length.should.equal(1);
permission.capabilities[0].should.equal('read');
break;
case 'app-builder':
permission.capabilities.length.should.equal(2);
permission.capabilities.should.containEql('read');
permission.capabilities.should.containEql('update');
break;
}
});
}
/*****
Iterator<String> resCollections = metadataHandle.getCollections().iterator();
while (resCollections.hasNext()) {
String collection = resCollections.next();
System.out.println("Collection = " + collection);
if (!collection.equals(docId) &&
!collection.equals(updateCollectionName) &&
!collection.equals(temporalLsqtCollectionName)) {
assertFalse("Collection not what is expected: " + collection, true);
}
}
assertTrue("Properties should be empty", metadataHandle.getProperties().isEmpty());
assertTrue("Document permissions difference in size value",
actualPermissions.contains("size:3"));
assertTrue("Document permissions difference in rest-reader permission",
actualPermissions.contains("rest-reader:[READ]"));
assertTrue("Document permissions difference in rest-writer permission",
actualPermissions.contains("rest-writer:[UPDATE]"));
assertTrue("Document permissions difference in app-user permission",
(actualPermissions.contains("app-user:[") && actualPermissions.contains("READ") &&
actualPermissions.contains("UPDATE")));
assertFalse("Document permissions difference in app-user permission", actualPermissions.contains("EXECUTE"));
assertEquals(quality, 99);
}
if (validStartTime.contains("2001-01-01T00:00:00") && validEndTime.contains("2003-01-01T00:00:00")) {
assertTrue("System start date check failed", (systemStartTime.contains("2011-01-01T00:00:01")));
assertTrue("System start date check failed", (systemEndTime.contains("9999-12-31T23:59:59")));
Iterator<String> resCollections = metadataHandle.getCollections().iterator();
while (resCollections.hasNext()) {
String collection = resCollections.next();
System.out.println("Collection = " + collection);
if (!collection.equals(docId) &&
!collection.equals(insertCollectionName) &&
!collection.equals(temporalLsqtCollectionName)) {
assertFalse("Collection not what is expected: " + collection, true);
}
}
assertTrue("Properties should be empty", metadataHandle.getProperties().isEmpty());
assertTrue("Document permissions difference in size value",
actualPermissions.contains("size:3"));
assertTrue("Document permissions difference in rest-reader permission",
actualPermissions.contains("rest-reader:[READ]"));
assertTrue("Document permissions difference in rest-writer permission",
actualPermissions.contains("rest-writer:[UPDATE]"));
assertTrue("Document permissions difference in app-user permission",
(actualPermissions.contains("app-user:[") && actualPermissions.contains("READ") &&
actualPermissions.contains("UPDATE") && actualPermissions.contains("EXECUTE")));
assertEquals(quality, 11);
}
if (validStartTime.contains("2008-12-31T23:59:59") && validEndTime.contains("2011-12-31T23:59:59")) {
// This is the latest document
assertTrue("System start date check failed", (systemStartTime.contains("2011-01-01T00:00:01")));
assertTrue("System start date check failed", (systemEndTime.contains("9999-12-31T23:59:59")));
assertTrue("URI should be the doc uri ", record.getUri().equals(docId));
Iterator<String> resCollections = metadataHandle.getCollections().iterator();
while (resCollections.hasNext()) {
String collection = resCollections.next();
System.out.println("Collection = " + collection);
if (!collection.equals(docId) &&
!collection.equals(insertCollectionName) &&
!collection.equals(temporalLsqtCollectionName) &&
!collection.equals(latestCollectionName)) {
assertFalse("Collection not what is expected: " + collection, true);
}
}
assertTrue("Document permissions difference in size value",
actualPermissions.contains("size:3"));
assertTrue("Document permissions difference in rest-reader permission",
actualPermissions.contains("rest-reader:[READ]"));
assertTrue("Document permissions difference in rest-writer permission",
actualPermissions.contains("rest-writer:[UPDATE]"));
assertTrue("Document permissions difference in app-user permission",
(actualPermissions.contains("app-user:[") && actualPermissions.contains("READ") &&
actualPermissions.contains("UPDATE") && actualPermissions.contains("EXECUTE")));
assertEquals(quality, 11);
validateMetadata(metadataHandle);
}
if (validStartTime.contains("2001-01-01T00:00:00") && validEndTime.contains("2011-12-31T23:59:59")) {
assertTrue("System start date check failed", (systemStartTime.contains("2010-01-01T00:00:01")));
assertTrue("System start date check failed", (systemEndTime.contains("2011-01-01T00:00:01")));
Iterator<String> resCollections = metadataHandle.getCollections().iterator();
while (resCollections.hasNext()) {
String collection = resCollections.next();
System.out.println("Collection = " + collection);
if (!collection.equals(docId) &&
!collection.equals(insertCollectionName) &&
!collection.equals(temporalLsqtCollectionName)) {
assertFalse("Collection not what is expected: " + collection, true);
}
}
assertTrue("Properties should be empty", metadataHandle.getProperties().isEmpty());
assertTrue("Document permissions difference in size value",
actualPermissions.contains("size:3"));
assertTrue("Document permissions difference in rest-reader permission",
actualPermissions.contains("rest-reader:[READ]"));
assertTrue("Document permissions difference in rest-writer permission",
actualPermissions.contains("rest-writer:[UPDATE]"));
assertTrue("Document permissions difference in app-user permission",
(actualPermissions.contains("app-user:[") && actualPermissions.contains("READ") &&
actualPermissions.contains("UPDATE") && actualPermissions.contains("EXECUTE")));
assertEquals(quality, 11);
}
***/
}
}
describe('Temporal update lsqt test', function() {
var docuri = 'temporalDoc.json';
var docuri2 = 'nonTemporalDoc.json';
before(function(done) {
adminManager.put({
endpoint: '/manage/v2/databases/'+testconfig.testServerName+'/temporal/collections/lsqt/properties?collection=temporalCollectionLsqt',
body: {
"lsqt-enabled": true,
"automation": {
"enabled": true
}
}
}).result(function(response){done();}, done);
});
it('should write the document content name', function(done) {
db.documents.write({
uri: docuri,
collections: ['coll0', 'coll1'],
temporalCollection: temporalCollectionName,
contentType: 'application/json',
quality: 10,
permissions: [
{'role-name':'app-user', capabilities:['read']},
{'role-name':'app-builder', capabilities:['read', 'update']}
],
properties: {prop1:'foo', prop2:25},
content: {
'System': {
'systemStartTime' : "1999-01-01T00:00:00", // THis value should not matter
'systemEndTime' : "",
},
'Valid': {
'validStartTime': "2001-01-01T00:00:00",
'validEndTime': "2011-12-31T23:59:59"
},
'Address': "999 Skyway Park",
'uri': "javaSingleDoc1.json",
id: 12,
name: 'Jason'
},
systemTime: '2010-01-01T00:00:00'
}
).result(function(response){done();}, done);
});
it('should update the document content name', function(done) {
db.documents.write({
uri: docuri,
collections: [updateCollectionName],
temporalCollection: temporalCollectionName,
contentType: 'application/json',
quality: 10,
permissions: [
{'role-name':'app-user', capabilities:['read']},
{'role-name':'app-builder', capabilities:['read', 'update', 'execute']}
],
properties: {prop1:'foo updated', prop2:50},
content: {
'System': {
'systemStartTime' : "",
'systemEndTime' : "",
},
'Valid': {
'validStartTime': "2003-01-01T00:00:00",
'validEndTime': "2008-12-31T23:59:59"
},
'Address': "888 Skyway Park",
'uri': "javaSingleDoc1.json",
id: 12,
name: 'Bourne'
},
systemTime: '2011-01-01T00:00:01'
}).result(function(response){done();}, done);
});
it('should read the document content name', function(done) {
db.documents.read({uris: docuri}).result(function(documents) {
var document = documents[0];
document.content.Address.should.equal('999 Skyway Park');
done();
}, done);
});
it('should read the document content id', function(done) {
db.documents.read({uris: docuri, categories:['content']}).result(function(documents) {
var document = documents[0];
document.content.Valid.validStartTime.should.equal("2008-12-31T23:59:59");
done();
}, done);
});
it('should read the document quality (metadata) and content', function(done) {
db.documents.read({uris: docuri, categories:['metadata', 'content']})
.result(function(documents) {
var document = documents[0];
document.quality.should.equal(10);
document.properties.prop1.should.equal('foo updated'); // properties do not travel with splits
done();
}, done);
});
it('should read the document collections', function(done) {
db.documents.read({uris: docuri, categories:['metadata']}).result(function(documents) {
var document = documents[0];
var collCount = document.collections.length;
collCount.should.equal(5); // Should be coll0, coll1, temporalCollection, docUri and latest
for (var i=0; i < collCount; i++) {
var coll = document.collections[i];
if (document.collections[i] !== temporalCollectionName && document.collections[i] !== 'coll0' &&
document.collections[i] !== 'coll1' && document.collections[i] !== 'latest' &&
document.collections[i] !== docuri) {
//console.log("Invalid Collection: " + coll);
should.equal(false, true);
}
}
done();
}, done);
});
it('should read the document permissions', function(done) {
db.documents.read({uris: docuri, categories:['metadata']}).result(function(documents) {
var document = documents[0];
var permissionsCount = 0;
document.permissions.forEach(function(permission) {
switch(permission['role-name']) {
case 'app-user':
permissionsCount++;
permission.capabilities.length.should.equal(1);
permission.capabilities[0].should.equal('read');
break;
case 'app-builder':
permissionsCount++;
permission.capabilities.length.should.equal(2);
permission.capabilities.should.containEql('read');
permission.capabilities.should.containEql('update');
break;
}
});
permissionsCount.should.equal(2);
done();
}, done);
});
it('should read multiple documents', function(done) {
db.documents.read({uris: [docuri], categories:['content']}).result(function(documents) {
documents[0].content.id.should.equal(12);
done();
}, done);
});
it('should read multiple documents with an invalid one', function(done) {
db.documents.read({uris: [docuri, '/not/here/blah.json'], categories:['content']}).result(function(documents) {
documents[0].content.id.should.equal(12);
done();
}, done);
});
it('should do collection query: col0', function(done) {
db.documents.query(
q.where(
q.collection('coll0')
)
).result(function(response) {
response.length.should.equal(3);
// response[0].content.id.should.equal('0026');
// response[1].content.id.should.equal('0012');
done();
}, done);
});
it('should do collection query: col1', function(done) {
db.documents.query(
q.where(
q.collection('coll1')
)
).result(function(response) {
response.length.should.equal(3);
// response[0].content.id.should.equal('0026');
// response[1].content.id.should.equal('0012');
done();
}, done);
});
it('should do collection query: updateCollection', function(done) {
db.documents.query(
q.where(
q.collection(updateCollectionName)
)
).result(function(response) {
response.length.should.equal(1);
// response[0].content.id.should.equal('0026');
// response[1].content.id.should.equal('0012');
done();
}, done);
});
it('should do collection query: temporalCollectioLsqt', function(done) {
db.documents.query(
q.where(
q.collection(temporalCollectionName)
)
).result(function(response) {
response.length.should.equal(4);
// response[0].content.id.should.equal('0026');
// response[1].content.id.should.equal('0012');
done();
}, done);
});
it(('should do collection query: ' + docuri), function(done) {
db.documents.query(
q.where(
q.collection(docuri)
)
).result(function(response) {
response.length.should.equal(4);
// response[0].content.id.should.equal('0026');
// response[1].content.id.should.equal('0012');
done();
}, done);
});
it('should do collection query: latest', function(done) {
db.documents.query(
q.where(
q.collection('latest')
)
).result(function(response) {
response.length.should.equal(1);
// response[0].content.id.should.equal('0026');
// response[1].content.id.should.equal('0012');
done();
}, done);
});
it('should do validate data', function(done) {
db.documents.query(
q.where(
q.collection(docuri)
).withOptions({categories:['content', 'metadata']})
).result(function(response) {
validateData(response);
done();
}, done);
});
it('should delete the document', function(done) {
db.documents.remove({
uri: docuri,
temporalCollection: temporalCollectionName
}).result(function(document) {
done();
}, done);
});
it('should read document by uri after delete', function(done) {
db.documents.read({uris: [docuri], categories:['content']}).result(function(documents) {
documents[0].content.id.should.equal(12);
done();
}, done);
});
/*after(function(done) {
return adminManager.post({
endpoint: '/manage/v2/databases/' + testconfig.testServerName,
contentType: 'application/json',
accept: 'application/json',
body: {'operation': 'clear-database'}
}).result().then(function(response) {
if (response >= 400) {
console.log(response);
}
done();
}, function(err) {
console.log(err); done();
},
done);
});*/
after(function(done) {
dbAdmin.documents.removeAll({
all: true
}).
result(function(response) {
done();
}, done);
});
/***
after(function(done) {
return adminManager.post({
endpoint: '/manage/v2/databases/' + testconfig.testServerName,
contentType: 'application/json',
accept: 'application/json',
body: {'operation': 'clear-database'}
}).result(function(response) {
return adminManager.put({
endpoint: '/manage/v2/databases/'+testconfig.testServerName+'/temporal/collections/lsqt/properties?collection=temporalCollectionLsqt',
body: {
"lsqt-enabled": true
}
}).result();
done();
}, done);
});
***/
/***
it('should delete the document', function(done) {
db.documents.remove({
uri: docuri,
temporalCollection: temporalCollectionName
}).result(function(document) {
// Document by the docUri should exist
document.exists.should.eql(true);
done();
}, done);
});
***/
});
| {
"content_hash": "c6a20c024c68d87cab4021e60c690e1e",
"timestamp": "",
"source": "github",
"line_count": 553,
"max_line_length": 142,
"avg_line_length": 36.92766726943942,
"alnum_prop": 0.6050144459135204,
"repo_name": "sashamitrovich/markscript-todo",
"id": "c451817af5d90d037bdea28809d8eb8baded3ae8",
"size": "21043",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "server/node_modules/marklogic/test-complete/nodejs-temporal-update-lsqt.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "809"
},
{
"name": "HTML",
"bytes": "4131"
},
{
"name": "JavaScript",
"bytes": "866"
},
{
"name": "TypeScript",
"bytes": "4502"
}
],
"symlink_target": ""
} |
export { default as footer } from './footer.md'
export { default as getMarginSelect } from './margin'
export { default as getPositionSelect } from './position'
export { default as loremIpsum } from './loremIpsum'
export * from './box'
| {
"content_hash": "d2eef6f1ce0a777bb23c88da7e6d3537",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 57,
"avg_line_length": 47,
"alnum_prop": 0.7191489361702128,
"repo_name": "obartra/reflex",
"id": "3eff57b34b8bbf3587bff3446927920d494e40ae",
"size": "235",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "storybook/shared/index.tsx",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "2199"
},
{
"name": "JavaScript",
"bytes": "129142"
},
{
"name": "Shell",
"bytes": "4656"
}
],
"symlink_target": ""
} |
package herddb.codec;
import com.google.common.collect.ImmutableMap;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import herddb.model.Column;
import herddb.model.ColumnTypes;
import herddb.model.ColumnsList;
import herddb.model.Record;
import herddb.model.StatementExecutionException;
import herddb.model.Table;
import herddb.utils.AbstractDataAccessor;
import herddb.utils.ByteArrayCursor;
import herddb.utils.Bytes;
import herddb.utils.DataAccessor;
import herddb.utils.ExtendedDataOutputStream;
import herddb.utils.RawString;
import herddb.utils.SQLRecordPredicateFunctions;
import herddb.utils.SQLRecordPredicateFunctions.CompareResult;
import herddb.utils.SingleEntryMap;
import herddb.utils.SystemProperties;
import herddb.utils.VisibleByteArrayOutputStream;
import java.io.IOException;
import java.sql.Timestamp;
import java.time.Instant;
import java.time.LocalDate;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;
import java.time.format.DateTimeParseException;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.function.BiConsumer;
import java.util.function.Function;
/**
* Record conversion to byte[]
*
* @author enrico.olivelli
*/
public final class RecordSerializer {
private static final int INITIAL_BUFFER_SIZE = SystemProperties.getIntSystemProperty("herddb.serializer.initbufsize", 1024);
public static Object deserialize(Bytes data, int type) {
switch (type) {
case ColumnTypes.BYTEARRAY:
case ColumnTypes.NOTNULL_BYTEARRAY:
return data.to_array();
case ColumnTypes.INTEGER:
case ColumnTypes.NOTNULL_INTEGER:
return data.to_int();
case ColumnTypes.LONG:
case ColumnTypes.NOTNULL_LONG:
return data.to_long();
case ColumnTypes.STRING:
case ColumnTypes.NOTNULL_STRING:
return data.to_RawString();
case ColumnTypes.TIMESTAMP:
case ColumnTypes.NOTNULL_TIMESTAMP:
return data.to_timestamp();
case ColumnTypes.NULL:
return null;
case ColumnTypes.BOOLEAN:
case ColumnTypes.NOTNULL_BOOLEAN:
return data.to_boolean();
case ColumnTypes.DOUBLE:
case ColumnTypes.NOTNULL_DOUBLE:
return data.to_double();
default:
throw new IllegalArgumentException("bad column type " + type);
}
}
public static Object deserialize(byte[] data, int type) {
switch (type) {
case ColumnTypes.BYTEARRAY:
case ColumnTypes.NOTNULL_BYTEARRAY:
return data;
case ColumnTypes.INTEGER:
case ColumnTypes.NOTNULL_INTEGER:
return Bytes.toInt(data, 0);
case ColumnTypes.LONG:
case ColumnTypes.NOTNULL_LONG:
return Bytes.toLong(data, 0);
case ColumnTypes.STRING:
case ColumnTypes.NOTNULL_STRING:
return Bytes.to_rawstring(data);
case ColumnTypes.TIMESTAMP:
case ColumnTypes.NOTNULL_TIMESTAMP:
return Bytes.toTimestamp(data, 0);
case ColumnTypes.NULL:
return null;
case ColumnTypes.BOOLEAN:
case ColumnTypes.NOTNULL_BOOLEAN:
return Bytes.toBoolean(data, 0);
case ColumnTypes.DOUBLE:
case ColumnTypes.NOTNULL_DOUBLE:
return Bytes.toDouble(data, 0);
default:
throw new IllegalArgumentException("bad column type " + type);
}
}
public static int deserializeCompare(byte[] data, int type, Object cvalue) {
switch (type) {
case ColumnTypes.BYTEARRAY:
return SQLRecordPredicateFunctions.compare(data, cvalue);
case ColumnTypes.INTEGER:
case ColumnTypes.NOTNULL_INTEGER:
if (cvalue instanceof Integer) {
return Bytes.compareInt(data, 0, (int) cvalue);
} else if (cvalue instanceof Long) {
return Bytes.compareInt(data, 0, (long) cvalue);
}
return SQLRecordPredicateFunctions.compare(Bytes.toInt(data, 0), cvalue);
case ColumnTypes.LONG:
case ColumnTypes.NOTNULL_LONG:
if (cvalue instanceof Integer) {
return Bytes.compareLong(data, 0, (int) cvalue);
} else if (cvalue instanceof Long) {
return Bytes.compareLong(data, 0, (long) cvalue);
}
return SQLRecordPredicateFunctions.compare(Bytes.toLong(data, 0), cvalue);
case ColumnTypes.STRING:
case ColumnTypes.NOTNULL_STRING:
if (cvalue instanceof RawString) {
return RawString.compareRaw(data, 0, data.length, ((RawString) cvalue));
} else if (cvalue instanceof String) {
return RawString.compareRaw(data, 0, data.length, ((String) cvalue));
}
return SQLRecordPredicateFunctions.compare(Bytes.to_rawstring(data), cvalue);
case ColumnTypes.TIMESTAMP:
case ColumnTypes.NOTNULL_TIMESTAMP:
return SQLRecordPredicateFunctions.compare(Bytes.toTimestamp(data, 0), cvalue);
case ColumnTypes.NULL:
return SQLRecordPredicateFunctions.compareNullTo(cvalue);
case ColumnTypes.BOOLEAN:
return SQLRecordPredicateFunctions.compare(Bytes.toBoolean(data, 0), cvalue);
case ColumnTypes.DOUBLE:
return SQLRecordPredicateFunctions.compare(Bytes.toDouble(data, 0), cvalue);
default:
throw new IllegalArgumentException("bad column type " + type);
}
}
public static SQLRecordPredicateFunctions.CompareResult deserializeCompare(Bytes data, int type, Object cvalue) {
switch (type) {
case ColumnTypes.BYTEARRAY:
//TODO: not perform copy
return SQLRecordPredicateFunctions.compareConsiderNull(data.to_array(), cvalue);
case ColumnTypes.INTEGER:
case ColumnTypes.NOTNULL_INTEGER: {
int v = data.to_int();
if (cvalue instanceof Integer) {
return CompareResult.fromInt(Integer.compare(v, (int) cvalue));
} else if (cvalue instanceof Long) {
return CompareResult.fromInt(Long.compare(v, (long) cvalue));
}
return SQLRecordPredicateFunctions.compareConsiderNull(v, cvalue);
}
case ColumnTypes.LONG:
case ColumnTypes.NOTNULL_LONG: {
long v = data.to_long();
if (cvalue instanceof Integer) {
return CompareResult.fromInt(Long.compare(v, (int) cvalue));
} else if (cvalue instanceof Long) {
return CompareResult.fromInt(Long.compare(v, (long) cvalue));
}
return SQLRecordPredicateFunctions.compareConsiderNull(v, cvalue);
}
case ColumnTypes.STRING:
case ColumnTypes.NOTNULL_STRING: {
RawString string = data.to_RawString();
if (cvalue instanceof RawString) {
return CompareResult.fromInt(string.compareTo((RawString) cvalue));
} else if (cvalue instanceof String) {
return CompareResult.fromInt(string.compareToString(((String) cvalue)));
}
return SQLRecordPredicateFunctions.compareConsiderNull(string, cvalue);
}
case ColumnTypes.TIMESTAMP:
return SQLRecordPredicateFunctions.compareConsiderNull(data.to_timestamp(), cvalue);
case ColumnTypes.NULL:
return CompareResult.NULL;
case ColumnTypes.BOOLEAN:
return SQLRecordPredicateFunctions.compareConsiderNull(data.to_boolean(), cvalue);
case ColumnTypes.DOUBLE:
return SQLRecordPredicateFunctions.compareConsiderNull(data.to_double(), cvalue);
default:
throw new IllegalArgumentException("bad column type " + type);
}
}
public static Object deserializeTypeAndValue(ByteArrayCursor dii) throws IOException {
int type = dii.readVInt();
switch (type) {
case ColumnTypes.BYTEARRAY:
case ColumnTypes.NOTNULL_BYTEARRAY:
return dii.readArray();
case ColumnTypes.INTEGER:
case ColumnTypes.NOTNULL_INTEGER:
return dii.readInt();
case ColumnTypes.LONG:
case ColumnTypes.NOTNULL_LONG:
return dii.readLong();
case ColumnTypes.STRING:
case ColumnTypes.NOTNULL_STRING:
return dii.readRawStringNoCopy();
case ColumnTypes.TIMESTAMP:
case ColumnTypes.NOTNULL_TIMESTAMP:
return new java.sql.Timestamp(dii.readLong());
case ColumnTypes.NULL:
return null;
case ColumnTypes.BOOLEAN:
case ColumnTypes.NOTNULL_BOOLEAN:
return dii.readBoolean();
case ColumnTypes.DOUBLE:
case ColumnTypes.NOTNULL_DOUBLE:
return dii.readDouble();
default:
throw new IllegalArgumentException("bad column type " + type);
}
}
public static SQLRecordPredicateFunctions.CompareResult compareDeserializeTypeAndValue(ByteArrayCursor dii, Object cvalue) throws IOException {
int type = dii.readVInt();
switch (type) {
case ColumnTypes.BYTEARRAY:
case ColumnTypes.NOTNULL_BYTEARRAY: {
byte[] datum = dii.readArray();
return SQLRecordPredicateFunctions.compareConsiderNull(datum, cvalue);
}
case ColumnTypes.INTEGER:
case ColumnTypes.NOTNULL_INTEGER:
return SQLRecordPredicateFunctions.compareConsiderNull(dii.readInt(), cvalue);
case ColumnTypes.LONG:
case ColumnTypes.NOTNULL_LONG:
return SQLRecordPredicateFunctions.compareConsiderNull(dii.readLong(), cvalue);
case ColumnTypes.STRING:
case ColumnTypes.NOTNULL_STRING:
int len = dii.readArrayLen();
if (cvalue instanceof RawString) {
RawString _cvalue = (RawString) cvalue;
return SQLRecordPredicateFunctions.CompareResult.fromInt(RawString.compareRaw(dii.getArray(), dii.getPosition(), len, _cvalue));
} else if (cvalue instanceof String) {
String _cvalue = (String) cvalue;
return SQLRecordPredicateFunctions.CompareResult.fromInt(RawString.compareRaw(dii.getArray(), dii.getPosition(), len, _cvalue));
} else {
RawString value = dii.readRawStringNoCopy();
return SQLRecordPredicateFunctions.CompareResult.fromInt(SQLRecordPredicateFunctions.compare(value, cvalue));
}
case ColumnTypes.TIMESTAMP:
case ColumnTypes.NOTNULL_TIMESTAMP:
return SQLRecordPredicateFunctions.CompareResult.fromInt(SQLRecordPredicateFunctions.compare(new java.sql.Timestamp(dii.readLong()), cvalue));
case ColumnTypes.NULL:
return SQLRecordPredicateFunctions.CompareResult.NULL;
case ColumnTypes.BOOLEAN:
case ColumnTypes.NOTNULL_BOOLEAN:
return SQLRecordPredicateFunctions.CompareResult.fromInt(SQLRecordPredicateFunctions.compare(dii.readBoolean(), cvalue));
case ColumnTypes.DOUBLE:
case ColumnTypes.NOTNULL_DOUBLE:
return SQLRecordPredicateFunctions.CompareResult.fromInt(SQLRecordPredicateFunctions.compare(dii.readDouble(), cvalue));
default:
throw new IllegalArgumentException("bad column type " + type);
}
}
public static void skipTypeAndValue(ByteArrayCursor dii) throws IOException {
int type = dii.readVInt();
switch (type) {
case ColumnTypes.BYTEARRAY:
case ColumnTypes.NOTNULL_BYTEARRAY:
dii.skipArray();
break;
case ColumnTypes.INTEGER:
case ColumnTypes.NOTNULL_INTEGER:
dii.skipInt();
break;
case ColumnTypes.LONG:
case ColumnTypes.NOTNULL_LONG:
dii.skipLong();
break;
case ColumnTypes.STRING:
case ColumnTypes.NOTNULL_STRING:
dii.skipArray();
break;
case ColumnTypes.TIMESTAMP:
case ColumnTypes.NOTNULL_TIMESTAMP:
dii.skipLong();
break;
case ColumnTypes.NULL:
break;
case ColumnTypes.BOOLEAN:
case ColumnTypes.NOTNULL_BOOLEAN:
dii.skipBoolean();
break;
case ColumnTypes.DOUBLE:
case ColumnTypes.NOTNULL_DOUBLE:
dii.skipDouble();
break;
default:
throw new IllegalArgumentException("bad column type " + type);
}
}
public static byte[] serialize(Object v, int type) {
if (v == null) {
return null;
}
switch (type) {
case ColumnTypes.BYTEARRAY:
case ColumnTypes.NOTNULL_BYTEARRAY:
return (byte[]) v;
case ColumnTypes.INTEGER:
case ColumnTypes.NOTNULL_INTEGER:
if (v instanceof Integer) {
return Bytes.intToByteArray((Integer) v);
} else if (v instanceof Number) {
return Bytes.intToByteArray(((Number) v).intValue());
} else {
return Bytes.intToByteArray(Integer.parseInt(v.toString()));
}
case ColumnTypes.LONG:
case ColumnTypes.NOTNULL_LONG:
if (v instanceof Long) {
return Bytes.longToByteArray((Long) v);
} else if (v instanceof Number) {
return Bytes.longToByteArray(((Number) v).longValue());
} else {
return Bytes.longToByteArray(Long.parseLong(v.toString()));
}
case ColumnTypes.STRING:
case ColumnTypes.NOTNULL_STRING:
if (v instanceof RawString) {
RawString rs = (RawString) v;
// this will potentially make a copy
return rs.toByteArray();
} else {
return Bytes.string_to_array(v.toString());
}
case ColumnTypes.BOOLEAN:
case ColumnTypes.NOTNULL_BOOLEAN:
if (v instanceof Boolean) {
return Bytes.booleanToByteArray((Boolean) v);
} else {
return Bytes.booleanToByteArray(Boolean.parseBoolean(v.toString()));
}
case ColumnTypes.DOUBLE:
case ColumnTypes.NOTNULL_DOUBLE:
if (v instanceof Double) {
return Bytes.doubleToByteArray((Double) v);
} else if (v instanceof Long) {
return Bytes.doubleToByteArray((Long) v);
} else if (v instanceof Number) {
return Bytes.doubleToByteArray(((Number) v).longValue());
} else {
return Bytes.doubleToByteArray(Double.parseDouble(v.toString()));
}
case ColumnTypes.TIMESTAMP:
case ColumnTypes.NOTNULL_TIMESTAMP:
if (v instanceof Long) {
return Bytes.timestampToByteArray(new java.sql.Timestamp(((Long) v)));
}
if (!(v instanceof java.sql.Timestamp)) {
throw new IllegalArgumentException("bad value type for column " + type + ": required java.sql.Timestamp, but was " + v.getClass() + ", toString of value is " + v);
}
return Bytes.timestampToByteArray((java.sql.Timestamp) v);
default:
throw new IllegalArgumentException("bad column type " + type);
}
}
public static void serializeTo(Object v, int type, ExtendedDataOutputStream out) throws IOException {
if (v == null) {
out.writeNullArray();
return;
}
switch (type) {
case ColumnTypes.BYTEARRAY:
case ColumnTypes.NOTNULL_BYTEARRAY:
out.writeArray((byte[]) v);
return;
case ColumnTypes.INTEGER:
case ColumnTypes.NOTNULL_INTEGER:
if (v instanceof Integer) {
out.writeArray(Bytes.intToByteArray((Integer) v));
} else if (v instanceof Number) {
out.writeArray(Bytes.intToByteArray(((Number) v).intValue()));
} else {
out.writeArray(Bytes.intToByteArray(Integer.parseInt(v.toString())));
}
return;
case ColumnTypes.LONG:
case ColumnTypes.NOTNULL_LONG:
if (v instanceof Long) {
out.writeArray(Bytes.longToByteArray((Long) v));
} else if (v instanceof Number) {
out.writeArray(Bytes.longToByteArray(((Number) v).longValue()));
} else {
out.writeArray(Bytes.longToByteArray(Long.parseLong(v.toString())));
}
return;
case ColumnTypes.STRING:
case ColumnTypes.NOTNULL_STRING:
if (v instanceof RawString) {
RawString rs = (RawString) v;
out.writeArray(rs.getData(), rs.getOffset(), rs.getLength());
} else {
out.writeArray(Bytes.string_to_array(v.toString()));
}
return;
case ColumnTypes.BOOLEAN:
case ColumnTypes.NOTNULL_BOOLEAN:
if (v instanceof Boolean) {
out.writeArray(Bytes.booleanToByteArray((Boolean) v));
} else {
out.writeArray(Bytes.booleanToByteArray(Boolean.parseBoolean(v.toString())));
}
return;
case ColumnTypes.DOUBLE:
case ColumnTypes.NOTNULL_DOUBLE:
if (v instanceof Double) {
out.writeArray(Bytes.doubleToByteArray((Double) v));
} else if (v instanceof Long) {
out.writeArray(Bytes.doubleToByteArray((Long) v));
} else if (v instanceof Number) {
out.writeArray(Bytes.doubleToByteArray(((Number) v).longValue()));
} else {
out.writeArray(Bytes.doubleToByteArray(Double.parseDouble(v.toString())));
}
return;
case ColumnTypes.TIMESTAMP:
case ColumnTypes.NOTNULL_TIMESTAMP:
if (v instanceof Long) {
out.writeArray(Bytes.timestampToByteArray(new java.sql.Timestamp(((Long) v))));
return;
}
if (!(v instanceof java.sql.Timestamp)) {
if (v instanceof String) {
// handle mysql like queries
v = (java.sql.Timestamp) convert(type, v.toString());
} else {
throw new IllegalArgumentException("bad value type for column " + type + ": required java.sql.Timestamp, but was " + v.getClass() + ", toString of value is " + v);
}
}
out.writeArray(Bytes.timestampToByteArray((java.sql.Timestamp) v));
return;
default:
throw new IllegalArgumentException("bad column type " + type);
}
}
/**
* Same as {@link #serialize(java.lang.Object, int) } but without objects
* allocations
*
* @param v
* @param type
*/
public static void validate(Object v, int type) {
if (v == null) {
return;
}
switch (type) {
case ColumnTypes.BYTEARRAY:
case ColumnTypes.NOTNULL_BYTEARRAY:
if (!(v instanceof byte[])) {
throw new IllegalArgumentException();
}
return;
case ColumnTypes.INTEGER:
case ColumnTypes.NOTNULL_INTEGER:
if (v instanceof Number) {
return;
}
Integer.parseInt(v.toString());
return;
case ColumnTypes.LONG:
case ColumnTypes.NOTNULL_LONG:
if (v instanceof Number) {
return;
}
Long.parseLong(v.toString());
return;
case ColumnTypes.STRING:
case ColumnTypes.NOTNULL_STRING:
return;
case ColumnTypes.BOOLEAN:
case ColumnTypes.NOTNULL_BOOLEAN:
return;
case ColumnTypes.DOUBLE:
case ColumnTypes.NOTNULL_DOUBLE:
if (v instanceof Number) {
return;
}
Double.parseDouble(v.toString());
return;
case ColumnTypes.TIMESTAMP:
case ColumnTypes.NOTNULL_TIMESTAMP:
if (v instanceof Long || v instanceof java.sql.Timestamp) {
return;
}
throw new IllegalArgumentException("bad value type for column " + type + ": required java.sql.Timestamp, but was " + v.getClass() + ", toString of value is " + v);
default:
throw new IllegalArgumentException("bad column type " + type);
}
}
public static void serializeTypeAndValue(Object v, int type, ExtendedDataOutputStream oo) throws IOException {
if (v == null) {
return;
}
oo.writeVInt(type);
serializeValue(v, type, oo);
}
public static void serializeValue(Object v, int type, ExtendedDataOutputStream oo) throws IOException {
if (v == null) {
throw new IOException("You cannot serialize a null value");
}
switch (type) {
case ColumnTypes.BYTEARRAY:
case ColumnTypes.NOTNULL_BYTEARRAY:
oo.writeArray((byte[]) v);
break;
case ColumnTypes.INTEGER:
case ColumnTypes.NOTNULL_INTEGER:
if (v instanceof Integer) {
oo.writeInt((Integer) v);
} else if (v instanceof Number) {
oo.writeInt(((Number) v).intValue());
} else {
oo.writeInt(Integer.parseInt(v.toString()));
}
break;
case ColumnTypes.LONG:
case ColumnTypes.NOTNULL_LONG:
if (v instanceof Integer) {
oo.writeLong((Integer) v);
} else if (v instanceof Number) {
oo.writeLong(((Number) v).longValue());
} else {
oo.writeLong(Long.parseLong(v.toString()));
}
break;
case ColumnTypes.STRING:
case ColumnTypes.NOTNULL_STRING:
if (v instanceof RawString) {
RawString rs = (RawString) v;
oo.writeArray(rs.getData(), rs.getOffset(), rs.getLength());
} else {
oo.writeArray(Bytes.string_to_array(v.toString()));
}
break;
case ColumnTypes.TIMESTAMP:
case ColumnTypes.NOTNULL_TIMESTAMP:
if (v instanceof Long) {
// INSERT INTO TT values"(1, {ts '2012-12-13 10:34:33.15'}, 0, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 1, 0, 0, 0, 0, 0, 0)",
v = new java.sql.Timestamp((Long) v);
}
if (!(v instanceof java.sql.Timestamp)) {
throw new IllegalArgumentException("bad value type for column " + type + ": required java.sql.Timestamp, but was " + v.getClass() + ", toString of value is " + v);
}
oo.writeLong(((java.sql.Timestamp) v).getTime());
break;
case ColumnTypes.BOOLEAN:
case ColumnTypes.NOTNULL_BOOLEAN:
if (v instanceof Boolean) {
oo.writeBoolean((Boolean) v);
} else {
oo.writeBoolean(Boolean.parseBoolean(v.toString()));
}
break;
case ColumnTypes.DOUBLE:
case ColumnTypes.NOTNULL_DOUBLE:
if (v instanceof Integer) {
oo.writeDouble((Integer) v);
} else if (v instanceof Number) {
oo.writeDouble(((Number) v).doubleValue());
} else {
oo.writeDouble(Double.parseDouble(v.toString()));
}
break;
default:
throw new IllegalArgumentException("bad column type " + type);
}
}
private static final ZoneId UTC = ZoneId.of("UTC");
private static final DateTimeFormatter TIMESTAMP_FORMATTER = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss").withZone(UTC);
private static final DateTimeFormatter TIMESTAMP_FORMATTER_WITH_MILLIS = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss.S").withZone(UTC);
private static final DateTimeFormatter TIMESTAMP_FORMATTER_ONLY_DATE = DateTimeFormatter.ofPattern("yyyy-MM-dd").withZone(UTC);
public static DateTimeFormatter getUTCTimestampFormatter() {
return TIMESTAMP_FORMATTER;
}
public static Object convert(int type, Object value) throws StatementExecutionException {
if (value == null && ColumnTypes.isNotNullDataType(type)) {
throw new StatementExecutionException("Cannot have null value in non-NULL type " + ColumnTypes.sqlDataType(type));
}
// CHECKSTYLE.OFF: FallThrough
switch (type) {
case ColumnTypes.TIMESTAMP:
case ColumnTypes.NOTNULL_TIMESTAMP:
if ((value instanceof java.sql.Timestamp)) {
return value;
} else if (value instanceof RawString
|| value instanceof String) {
try {
String asString = value.toString();
ZonedDateTime dateTime;
try {
dateTime = ZonedDateTime.parse(asString, TIMESTAMP_FORMATTER);
} catch (DateTimeParseException tryAgain) {
try {
dateTime = ZonedDateTime.parse(asString, TIMESTAMP_FORMATTER_WITH_MILLIS);
} catch (DateTimeParseException again) {
dateTime = LocalDate.parse(asString, TIMESTAMP_FORMATTER_ONLY_DATE).atStartOfDay(UTC);
}
}
Instant toInstant = dateTime.toInstant();
long millis = (toInstant.toEpochMilli());
Timestamp timestamp = new java.sql.Timestamp(millis);
if (timestamp.getTime() != millis) {
throw new StatementExecutionException("Unparsable timestamp " + value + " would been converted as java.sql.Timestamp to " + new java.sql.Timestamp(millis));
}
return timestamp;
} catch (DateTimeParseException err) {
throw new StatementExecutionException("Unparsable timestamp " + value, err);
}
}
case ColumnTypes.BYTEARRAY:
case ColumnTypes.NOTNULL_BYTEARRAY:
if (value instanceof RawString) {
// TODO: apply a real conversion from MySQL dump format
return ((RawString) value).toByteArray();
}
return value;
default:
return value;
}
// CHECKSTYLE.ON: FallThrough
}
public static DataAccessor buildRawDataAccessor(Record record, Table table) {
return new DataAccessorForFullRecord(table, record);
}
public static DataAccessor buildRawDataAccessorForPrimaryKey(Bytes key, Table table) {
return new DataAccessorForPrimaryKey(table, key);
}
static Object accessRawDataFromValue(String property, Bytes value, Table table) throws IOException {
if (table.getColumn(property) == null) {
throw new herddb.utils.IllegalDataAccessException("table " + table.tablespace + "." + table.name + " does not define column " + property);
}
try (ByteArrayCursor din = value.newCursor()) {
while (!din.isEof()) {
int serialPosition;
serialPosition = din.readVIntNoEOFException();
if (din.isEof()) {
return null;
}
Column col = table.getColumnBySerialPosition(serialPosition);
if (col != null && col.name.equals(property)) {
return deserializeTypeAndValue(din);
} else {
// we have to deserialize always the value, even the column is no more present
skipTypeAndValue(din);
}
}
return null;
}
}
static Object accessRawDataFromValue(int index, Bytes value, Table table) throws IOException {
Column column = table.getColumn(index);
try (ByteArrayCursor din = value.newCursor()) {
while (!din.isEof()) {
int serialPosition;
serialPosition = din.readVIntNoEOFException();
if (din.isEof()) {
return null;
}
Column col = table.getColumnBySerialPosition(serialPosition);
if (col != null && col.serialPosition == column.serialPosition) {
return deserializeTypeAndValue(din);
} else {
// we have to deserialize always the value, even the column is no more present
skipTypeAndValue(din);
}
}
return null;
}
}
static SQLRecordPredicateFunctions.CompareResult compareRawDataFromValue(int index, Bytes value, Table table, Object cvalue) throws IOException {
Column column = table.getColumn(index);
try (ByteArrayCursor din = value.newCursor()) {
while (!din.isEof()) {
int serialPosition;
serialPosition = din.readVIntNoEOFException();
if (din.isEof()) {
return CompareResult.NULL;
}
Column col = table.getColumnBySerialPosition(serialPosition);
if (col != null && col.serialPosition == column.serialPosition) {
return compareDeserializeTypeAndValue(din, cvalue);
} else {
// we have to deserialize always the value, even the column is no more present
skipTypeAndValue(din);
}
}
}
return CompareResult.NULL;
}
static Object accessRawDataFromPrimaryKey(String property, Bytes key, Table table) throws IOException {
if (table.primaryKey.length == 1) {
return deserialize(key, table.getColumn(property).type);
} else {
try (ByteArrayCursor din = key.newCursor()) {
for (String primaryKeyColumn : table.primaryKey) {
Bytes value = din.readBytesNoCopy();
if (primaryKeyColumn.equals(property)) {
return deserialize(value, table.getColumn(primaryKeyColumn).type);
}
}
}
throw new IOException("property " + property + " not found in PK: " + Arrays.toString(table.primaryKey));
}
}
static Object accessRawDataFromPrimaryKey(int index, Bytes key, Table table) throws IOException {
Column column = table.getColumn(index);
if (table.primaryKey.length == 1) {
return deserialize(key, column.type);
} else {
final String cname = column.name;
try (ByteArrayCursor din = key.newCursor()) {
for (String primaryKeyColumn : table.primaryKey) {
Bytes value = din.readBytesNoCopy();
if (primaryKeyColumn.equals(cname)) {
return deserialize(value, table.getColumn(primaryKeyColumn).type);
}
}
}
throw new IOException("position #" + index + " not found in PK: " + Arrays.toString(table.primaryKey));
}
}
static SQLRecordPredicateFunctions.CompareResult compareRawDataFromPrimaryKey(int index, Bytes key, Table table, Object cvalue) throws IOException {
Column column = table.getColumn(index);
if (table.primaryKey.length == 1) {
return deserializeCompare(key, column.type, cvalue);
} else {
final String cname = column.name;
try (ByteArrayCursor din = key.newCursor()) {
for (String primaryKeyColumn : table.primaryKey) {
Bytes value = din.readBytesNoCopy();
if (primaryKeyColumn.equals(cname)) {
return deserializeCompare(value, table.getColumn(primaryKeyColumn).type, cvalue);
}
}
}
throw new IOException("position #" + index + " not found in PK: " + Arrays.toString(table.primaryKey));
}
}
private RecordSerializer() {
}
public static Record makeRecord(Table table, Object... values) {
Map<String, Object> record = new HashMap<>();
for (int i = 0; i < values.length; i++) {
Object name = values[i++];
Object value = values[i];
name = table.getColumn((String) name).name;
if (value instanceof String) {
value = RawString.of((String) value);
}
record.put((String) name, value);
}
return toRecord(record, table);
}
public static Bytes serializePrimaryKey(Map<String, Object> record, ColumnsList table, String[] columns) {
return Bytes.from_array(serializePrimaryKeyRaw(record, table, columns));
}
public static byte[] serializePrimaryKeyRaw(Map<String, Object> record, ColumnsList table, String[] columns) {
String[] primaryKey = table.getPrimaryKey();
if (primaryKey.length == 1) {
String pkColumn = primaryKey[0];
if (columns.length != 1 && !columns[0].equals(pkColumn)) {
throw new IllegalArgumentException("SQLTranslator error, " + Arrays.toString(columns) + " != " + Arrays.asList(pkColumn));
}
Column c = table.getColumn(pkColumn);
Object v = record.get(c.name);
if (v == null) {
throw new IllegalArgumentException("key field " + pkColumn + " cannot be null. Record data: " + record);
}
return serialize(v, c.type);
} else {
VisibleByteArrayOutputStream key = new VisibleByteArrayOutputStream(columns.length * Long.BYTES);
// beware that we can serialize even only a part of the PK, for instance of a prefix index scan
try (ExtendedDataOutputStream doo_key = new ExtendedDataOutputStream(key)) {
int i = 0;
for (String pkColumn : columns) {
if (!pkColumn.equals(primaryKey[i])) {
throw new IllegalArgumentException("SQLTranslator error, " + Arrays.toString(columns) + " != " + Arrays.asList(primaryKey));
}
Column c = table.getColumn(pkColumn);
Object v = record.get(c.name);
if (v == null) {
throw new IllegalArgumentException("key field " + pkColumn + " cannot be null. Record data: " + record);
}
serializeTo(v, c.type, doo_key);
i++;
}
} catch (IOException err) {
throw new RuntimeException(err);
}
return key.toByteArrayNoCopy();
}
}
public static Bytes serializeIndexKey(DataAccessor record, ColumnsList index, String[] columns) {
String[] indexedColumnsList = index.getPrimaryKey();
if (indexedColumnsList.length == 1) {
String pkColumn = indexedColumnsList[0];
if (columns.length != 1 && !columns[0].equals(pkColumn)) {
throw new IllegalArgumentException("SQLTranslator error, " + Arrays.toString(columns) + " != " + Arrays.asList(pkColumn));
}
Column c = index.getColumn(pkColumn);
Object v = record.get(c.name);
if (v == null) {
if (index.allowNullsForIndexedValues()) {
return null;
}
throw new IllegalArgumentException("key field " + pkColumn + " cannot be null. Record data: " + record);
}
byte[] fieldValue = serialize(v, c.type);
return Bytes.from_array(fieldValue);
} else {
VisibleByteArrayOutputStream key = new VisibleByteArrayOutputStream(columns.length * Long.BYTES);
// beware that sometime we serialize only a part of the PK, for instance of a prefix index scan
try (ExtendedDataOutputStream doo_key = new ExtendedDataOutputStream(key)) {
int i = 0;
for (String indexedColumn : columns) {
if (!indexedColumn.equals(indexedColumnsList[i])) {
throw new IllegalArgumentException("SQLTranslator error, " + Arrays.toString(columns) + " != " + Arrays.asList(indexedColumnsList));
}
Column c = index.getColumn(indexedColumn);
Object v = record.get(c.name);
if (v == null) {
if (!index.allowNullsForIndexedValues()) {
throw new IllegalArgumentException("key field " + indexedColumn + " cannot be null. Record data: " + record);
}
if (i == 0) {
// if the first column is null than we do not index the record at all
return null;
} else {
// we stop serializing the value at the first null
return Bytes.from_array(key.getBuffer(), 0, key.size());
}
}
serializeTo(v, c.type, doo_key);
i++;
}
} catch (IOException err) {
throw new RuntimeException(err);
}
return Bytes.from_array(key.getBuffer(), 0, key.size());
}
}
/**
* Like {@link #serializeIndexKey(herddb.utils.DataAccessor, herddb.model.ColumnsList, java.lang.String[])
* } but without return a value and/or creating temporary byte[]
*
* @param record
* @param indexDefinition
* @param columns
*/
public static void validateIndexableValue(DataAccessor record, ColumnsList indexDefinition, String[] columns) {
String[] columnListForIndex = indexDefinition.getPrimaryKey();
if (columnListForIndex.length == 1) {
String pkColumn = columnListForIndex[0];
if (columns.length != 1 && !columns[0].equals(pkColumn)) {
throw new IllegalArgumentException("SQLTranslator error, " + Arrays.toString(columns) + " != " + Arrays.asList(pkColumn));
}
Column c = indexDefinition.getColumn(pkColumn);
Object v = record.get(c.name);
if (v == null && !indexDefinition.allowNullsForIndexedValues()) {
throw new IllegalArgumentException("key field " + pkColumn + " cannot be null. Record data: " + record);
}
validate(v, c.type);
} else {
// beware that we can serialize even only a part of the PK, for instance of a prefix index scan
int i = 0;
for (String pkColumn : columns) {
if (!pkColumn.equals(columnListForIndex[i])) {
throw new IllegalArgumentException("SQLTranslator error, " + Arrays.toString(columns) + " != " + Arrays.asList(columnListForIndex));
}
Column c = indexDefinition.getColumn(pkColumn);
Object v = record.get(c.name);
if (v == null && !indexDefinition.allowNullsForIndexedValues()) {
throw new IllegalArgumentException("key field " + pkColumn + " cannot be null. Record data: " + record);
}
validate(v, c.type);
i++;
}
}
}
public static Object deserializePrimaryKey(Bytes key, Table table) {
if (table.primaryKey.length == 1) {
return deserializeSingleColumnPrimaryKey(key, table);
} else {
Map<String, Object> result = new HashMap<>();
deserializeMultiColumnPrimaryKey(key, table, result);
return result;
}
}
public static Map<String, Object> deserializePrimaryKeyAsMap(Bytes key, Table table) {
if (key.deserialized != null) {
return (Map<String, Object>) key.deserialized;
}
Map<String, Object> result;
if (table.primaryKey.length == 1) {
Object value = deserializeSingleColumnPrimaryKey(key, table);
// value will not be null
result = new SingleEntryMap(table.primaryKey[0], value);
} else {
result = new HashMap<>();
deserializeMultiColumnPrimaryKey(key, table, result);
}
key.deserialized = result;
return result;
}
public static Bytes serializeValue(Map<String, Object> record, Table table) {
return Bytes.from_array(serializeValueRaw(record, table, 0));
}
public static byte[] serializeValueRaw(Map<String, Object> record, Table table, int expectedSize) {
VisibleByteArrayOutputStream value = new VisibleByteArrayOutputStream(expectedSize <= 0 ? INITIAL_BUFFER_SIZE : expectedSize);
try (ExtendedDataOutputStream doo = new ExtendedDataOutputStream(value)) {
for (Column c : table.columns) {
Object v = record.get(c.name);
if (v != null && !table.isPrimaryKeyColumn(c.name)) {
doo.writeVInt(c.serialPosition);
serializeTypeAndValue(v, c.type, doo);
}
}
} catch (IOException err) {
throw new RuntimeException(err);
}
return value.toByteArrayNoCopy();
}
public static byte[] buildRecord(
int expectedSize, Table table,
Function<String, Object> evaluator
) {
VisibleByteArrayOutputStream value = new VisibleByteArrayOutputStream(expectedSize <= 0 ? INITIAL_BUFFER_SIZE : expectedSize);
try (ExtendedDataOutputStream doo = new ExtendedDataOutputStream(value)) {
for (Column c : table.columns) {
if (!table.isPrimaryKeyColumn(c.name)) {
Object v = evaluator.apply(c.name);
if (v != null) {
doo.writeVInt(c.serialPosition);
serializeTypeAndValue(v, c.type, doo);
}
}
}
} catch (IOException err) {
throw new RuntimeException(err);
}
return value.toByteArrayNoCopy();
}
public static Record toRecord(Map<String, Object> record, Table table) {
return new Record(serializePrimaryKey(record, table, table.primaryKey),
serializeValue(record, table), record);
}
private static Object deserializeSingleColumnPrimaryKey(Bytes data, Table table) {
String primaryKeyColumn = table.primaryKey[0];
return deserialize(data, table.getColumn(primaryKeyColumn).type);
}
@SuppressFBWarnings("RV_RETURN_VALUE_IGNORED")
public static Map<String, Object> toBean(Record record, Table table) {
try {
ImmutableMap.Builder<String, Object> res = new ImmutableMap.Builder<>();
if (table.primaryKey.length == 1) {
Object key = deserializeSingleColumnPrimaryKey(record.key, table);
res.put(table.primaryKey[0], key);
} else {
deserializeMultiColumnPrimaryKey(record.key, table, res);
}
if (record.value != null && record.value.getLength() > 0) {
try (ByteArrayCursor din = record.value.newCursor()) {
while (true) {
int serialPosition;
serialPosition = din.readVIntNoEOFException();
if (din.isEof()) {
break;
}
Column col = table.getColumnBySerialPosition(serialPosition);
// we have to deserialize or skip always the value, even the column is no more present
if (col != null) {
Object v = deserializeTypeAndValue(din);
res.put(col.name, v);
} else {
skipTypeAndValue(din);
}
}
}
}
return res.build();
} catch (IOException err) {
throw new IllegalArgumentException("malformed record", err);
}
}
private static void deserializeMultiColumnPrimaryKey(Bytes data, Table table, Map<String, Object> res) {
try (ByteArrayCursor din = data.newCursor()) {
for (String primaryKeyColumn : table.primaryKey) {
Bytes value = din.readBytesNoCopy();
res.put(primaryKeyColumn, deserialize(value, table.getColumn(primaryKeyColumn).type));
}
} catch (IOException err) {
throw new IllegalArgumentException("malformed record", err);
}
}
@SuppressFBWarnings("RV_RETURN_VALUE_IGNORED")
private static void deserializeMultiColumnPrimaryKey(Bytes data, Table table, ImmutableMap.Builder<String, Object> res) {
try (ByteArrayCursor din = data.newCursor()) {
for (String primaryKeyColumn : table.primaryKey) {
Bytes value = din.readBytesNoCopy();
res.put(primaryKeyColumn, deserialize(value, table.getColumn(primaryKeyColumn).type));
}
} catch (IOException err) {
throw new IllegalArgumentException("malformed record", err);
}
}
private static class DataAccessorForPrimaryKey extends AbstractDataAccessor {
private final Table table;
private final Bytes key;
public DataAccessorForPrimaryKey(Table table, Bytes key) {
this.table = table;
this.key = key;
}
@Override
public Object get(String property) {
try {
if (table.isPrimaryKeyColumn(property)) {
return accessRawDataFromPrimaryKey(property, key, table);
} else {
return null;
}
} catch (IOException err) {
throw new IllegalStateException("bad data:" + err, err);
}
}
@Override
public void forEach(BiConsumer<String, Object> consumer) {
if (table.primaryKey.length == 1) {
String pkField = table.primaryKey[0];
Object value = deserialize(key, table.getColumn(pkField).type);
consumer.accept(pkField, value);
} else {
try (ByteArrayCursor din = key.newCursor()) {
for (String primaryKeyColumn : table.primaryKey) {
Bytes value = din.readBytesNoCopy();
Object theValue = deserialize(value, table.getColumn(primaryKeyColumn).type);
consumer.accept(primaryKeyColumn, theValue);
}
} catch (IOException err) {
throw new IllegalStateException("bad data:" + err, err);
}
}
}
@Override
public String[] getFieldNames() {
return table.primaryKey;
}
@Override
public Map<String, Object> toMap() {
return deserializePrimaryKeyAsMap(key, table);
}
}
}
| {
"content_hash": "8ad07cef4856335fb3668978c14b6898",
"timestamp": "",
"source": "github",
"line_count": 1121,
"max_line_length": 187,
"avg_line_length": 44.40410347903657,
"alnum_prop": 0.5533881109749482,
"repo_name": "diennea/herddb",
"id": "26fa4846128dd932d1b71756ecbc655f3a687a0e",
"size": "50534",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "herddb-core/src/main/java/herddb/codec/RecordSerializer.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "2721"
},
{
"name": "CSS",
"bytes": "125107"
},
{
"name": "HTML",
"bytes": "28704"
},
{
"name": "Java",
"bytes": "5714205"
},
{
"name": "JavaScript",
"bytes": "29064"
},
{
"name": "Shell",
"bytes": "40921"
},
{
"name": "TSQL",
"bytes": "938"
}
],
"symlink_target": ""
} |
#include "public/platform/WebThreadSafeData.h"
#include "platform/blob/BlobData.h"
namespace blink {
WebThreadSafeData::WebThreadSafeData(const char* data, size_t length) {
m_private = RawData::create();
m_private->mutableData()->append(data, length);
}
void WebThreadSafeData::reset() {
m_private.reset();
}
void WebThreadSafeData::assign(const WebThreadSafeData& other) {
m_private = other.m_private;
}
size_t WebThreadSafeData::size() const {
if (m_private.isNull())
return 0;
return m_private->length();
}
const char* WebThreadSafeData::data() const {
if (m_private.isNull())
return 0;
return m_private->data();
}
WebThreadSafeData::WebThreadSafeData(PassRefPtr<RawData> data)
: m_private(data) {}
WebThreadSafeData::WebThreadSafeData(const WebThreadSafeData& other) {
m_private = other.m_private;
}
WebThreadSafeData& WebThreadSafeData::operator=(
const WebThreadSafeData& other) {
m_private = other.m_private;
return *this;
}
WebThreadSafeData& WebThreadSafeData::operator=(PassRefPtr<RawData> data) {
m_private = data;
return *this;
}
} // namespace blink
| {
"content_hash": "1361de134e885a26f239b321b25a678c",
"timestamp": "",
"source": "github",
"line_count": 52,
"max_line_length": 75,
"avg_line_length": 21.53846153846154,
"alnum_prop": 0.7205357142857143,
"repo_name": "google-ar/WebARonARCore",
"id": "40c767e1a71c874e4d4658d6cd7963ef4402493a",
"size": "2682",
"binary": false,
"copies": "5",
"ref": "refs/heads/webarcore_57.0.2987.5",
"path": "third_party/WebKit/Source/platform/exported/WebThreadSafeData.cpp",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
} |
import json
import re
import time
from unittest.mock import Mock
from pytest import fixture, mark
from tornado import web
import requests_mock
from ..mediawiki import MWOAuthenticator, AUTH_REQUEST_COOKIE_NAME
from .mocks import mock_handler
import jwt
MW_URL = 'https://meta.wikimedia.org/w/index.php'
@fixture
def mediawiki():
def post_token(request, context):
authorization_header = request.headers['Authorization'].decode('utf8')
request_nonce = re.search(r'oauth_nonce="(.*?)"',
authorization_header).group(1)
return jwt.encode({
'username': 'wash',
'aud': 'client_id',
'iss': 'https://meta.wikimedia.org',
'iat': time.time(),
'nonce': request_nonce,
}, 'client_secret')
with requests_mock.Mocker() as mock:
mock.post('/w/index.php?title=Special%3AOAuth%2Finitiate',
text='oauth_token=key&oauth_token_secret=secret',
)
mock.post('/w/index.php?title=Special%3AOAuth%2Ftoken',
text='oauth_token=key&oauth_token_secret=secret')
mock.post('/w/index.php?title=Special%3AOAuth%2Fidentify',
content=post_token)
yield mock
def new_authenticator():
return MWOAuthenticator(
client_id='client_id',
client_secret='client_secret',
)
async def test_mediawiki(mediawiki):
authenticator = new_authenticator()
handler = Mock(spec=web.RequestHandler,
get_secure_cookie=Mock(
return_value=json.dumps(
['key', 'secret']
).encode('utf8')
),
request=Mock(
query='oauth_token=key&oauth_verifier=me'
)
)
user = await authenticator.authenticate(handler, None)
assert user['name'] == 'wash'
auth_state = user['auth_state']
assert auth_state['ACCESS_TOKEN_KEY'] == 'key'
assert auth_state['ACCESS_TOKEN_SECRET'] == 'secret'
identity = auth_state['MEDIAWIKI_USER_IDENTITY']
assert identity['username'] == user['name']
async def test_login_redirect(mediawiki):
authenticator = new_authenticator()
record = []
handler = mock_handler(authenticator.login_handler,
'https://hub.example.com/hub/login',
authenticator=authenticator,
)
handler.write = lambda buf: record.append(buf)
await handler.get()
assert handler.get_status() == 302
assert 'Location' in handler._headers
assert handler._headers['Location'].startswith(MW_URL)
assert 'Set-Cookie' in handler._headers
assert AUTH_REQUEST_COOKIE_NAME in handler._headers['Set-Cookie']
| {
"content_hash": "fa1fee8dcd873ec9181f7db2235bab68",
"timestamp": "",
"source": "github",
"line_count": 84,
"max_line_length": 78,
"avg_line_length": 32.30952380952381,
"alnum_prop": 0.6127487103905674,
"repo_name": "jupyter/oauthenticator",
"id": "322914597c6420c2a3545583a13b921d07187974",
"size": "2714",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "oauthenticator/tests/test_mediawiki.py",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "Python",
"bytes": "30104"
},
{
"name": "Shell",
"bytes": "270"
}
],
"symlink_target": ""
} |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="pl" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About IMAcredit</source>
<translation>O IMAcredit</translation>
</message>
<message>
<location line="+39"/>
<source><b>IMAcredit</b> version</source>
<translation>Wersja <b>IMAcredit</b></translation>
</message>
<message>
<location line="+57"/>
<source>
This is experimental software.
Distributed under the MIT/X11 software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php.
This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard.</source>
<translation>
Oprogramowanie eksperymentalne.
Distributed under the MIT/X11 software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php.
This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard.</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="+14"/>
<source>Copyright</source>
<translation>Prawo autorskie</translation>
</message>
<message>
<location line="+0"/>
<source>The IMAcredit developers</source>
<translation>Deweloperzy IMAcredit</translation>
</message>
</context>
<context>
<name>AddressBookPage</name>
<message>
<location filename="../forms/addressbookpage.ui" line="+14"/>
<source>Address Book</source>
<translation>Książka Adresowa</translation>
</message>
<message>
<location line="+19"/>
<source>Double-click to edit address or label</source>
<translation>Kliknij dwukrotnie, aby edytować adres lub etykietę</translation>
</message>
<message>
<location line="+27"/>
<source>Create a new address</source>
<translation>Utwórz nowy adres</translation>
</message>
<message>
<location line="+14"/>
<source>Copy the currently selected address to the system clipboard</source>
<translation>Skopiuj aktualnie wybrany adres do schowka</translation>
</message>
<message>
<location line="-11"/>
<source>&New Address</source>
<translation>&Nowy Adres</translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="+63"/>
<source>These are your IMAcredit 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>Tutaj znajdują się twoje adresy IMAcredit do odbioru płatności. Możesz nadać oddzielne adresy dla każdego z wysyłających monety, żeby śledzić oddzielnie ich opłaty.</translation>
</message>
<message>
<location filename="../forms/addressbookpage.ui" line="+14"/>
<source>&Copy Address</source>
<translation>&Kopiuj adres</translation>
</message>
<message>
<location line="+11"/>
<source>Show &QR Code</source>
<translation>Pokaż Kod &QR</translation>
</message>
<message>
<location line="+11"/>
<source>Sign a message to prove you own a IMAcredit address</source>
<translation>Podpisz wiadomość aby dowieść, że ten adres jest twój</translation>
</message>
<message>
<location line="+3"/>
<source>Sign &Message</source>
<translation>Podpisz wiado&mość</translation>
</message>
<message>
<location line="+25"/>
<source>Delete the currently selected address from the list</source>
<translation>Usuń zaznaczony adres z listy</translation>
</message>
<message>
<location line="+27"/>
<source>Export the data in the current tab to a file</source>
<translation>Eksportuj dane z aktywnej karty do pliku</translation>
</message>
<message>
<location line="+3"/>
<source>&Export</source>
<translation>&Eksportuj</translation>
</message>
<message>
<location line="-44"/>
<source>Verify a message to ensure it was signed with a specified IMAcredit address</source>
<translation>Zweryfikuj wiadomość, aby upewnić się, że została podpisana odpowiednim adresem IMAcredit.</translation>
</message>
<message>
<location line="+3"/>
<source>&Verify Message</source>
<translation>&Zweryfikuj wiadomość</translation>
</message>
<message>
<location line="+14"/>
<source>&Delete</source>
<translation>&Usuń</translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="-5"/>
<source>These are your IMAcredit addresses for sending payments. Always check the amount and the receiving address before sending coins.</source>
<translation>Tutaj znajdują się Twoje adresy IMAcredit do wysyłania płatności. Zawsze sprawdzaj ilość i adres odbiorcy przed wysyłką monet.</translation>
</message>
<message>
<location line="+13"/>
<source>Copy &Label</source>
<translation>Kopiuj &Etykietę</translation>
</message>
<message>
<location line="+1"/>
<source>&Edit</source>
<translation>&Edytuj</translation>
</message>
<message>
<location line="+1"/>
<source>Send &Coins</source>
<translation>Wyślij monety</translation>
</message>
<message>
<location line="+260"/>
<source>Export Address Book Data</source>
<translation>Eksportuj książkę adresową</translation>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation>Plik *.CSV (rozdzielany przecinkami)</translation>
</message>
<message>
<location line="+13"/>
<source>Error exporting</source>
<translation>Błąd podczas eksportowania</translation>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation>Błąd zapisu do pliku %1.</translation>
</message>
</context>
<context>
<name>AddressTableModel</name>
<message>
<location filename="../addresstablemodel.cpp" line="+144"/>
<source>Label</source>
<translation>Etykieta</translation>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Adres</translation>
</message>
<message>
<location line="+36"/>
<source>(no label)</source>
<translation>(bez etykiety)</translation>
</message>
</context>
<context>
<name>AskPassphraseDialog</name>
<message>
<location filename="../forms/askpassphrasedialog.ui" line="+26"/>
<source>Passphrase Dialog</source>
<translation>Okienko Hasła</translation>
</message>
<message>
<location line="+21"/>
<source>Enter passphrase</source>
<translation>Wpisz hasło</translation>
</message>
<message>
<location line="+14"/>
<source>New passphrase</source>
<translation>Nowe hasło</translation>
</message>
<message>
<location line="+14"/>
<source>Repeat new passphrase</source>
<translation>Powtórz nowe hasło</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="+33"/>
<source>Enter the new passphrase to the wallet.<br/>Please use a passphrase of <b>10 or more random characters</b>, or <b>eight or more words</b>.</source>
<translation>Wprowadź nowe hasło dla portfela.<br/>Proszę użyć hasła składającego się z <b>10 lub więcej losowych znaków</b> lub <b>ośmiu lub więcej słów</b>.</translation>
</message>
<message>
<location line="+1"/>
<source>Encrypt wallet</source>
<translation>Zaszyfruj portfel</translation>
</message>
<message>
<location line="+3"/>
<source>This operation needs your wallet passphrase to unlock the wallet.</source>
<translation>Ta operacja wymaga hasła do portfela ażeby odblokować portfel.</translation>
</message>
<message>
<location line="+5"/>
<source>Unlock wallet</source>
<translation>Odblokuj portfel</translation>
</message>
<message>
<location line="+3"/>
<source>This operation needs your wallet passphrase to decrypt the wallet.</source>
<translation>Ta operacja wymaga hasła do portfela ażeby odszyfrować portfel.</translation>
</message>
<message>
<location line="+5"/>
<source>Decrypt wallet</source>
<translation>Odszyfruj portfel</translation>
</message>
<message>
<location line="+3"/>
<source>Change passphrase</source>
<translation>Zmień hasło</translation>
</message>
<message>
<location line="+1"/>
<source>Enter the old and new passphrase to the wallet.</source>
<translation>Podaj stare i nowe hasło do portfela.</translation>
</message>
<message>
<location line="+46"/>
<source>Confirm wallet encryption</source>
<translation>Potwierdź szyfrowanie portfela</translation>
</message>
<message>
<location line="+1"/>
<source>Warning: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR IMACREDITS</b>!</source>
<translation>Uwaga: Jeśli zaszyfrujesz swój portfel i zgubisz hasło to <b>STRACISZ WSZYSTKIE SWOJE IMACREDIT'Y</b>!</translation>
</message>
<message>
<location line="+0"/>
<source>Are you sure you wish to encrypt your wallet?</source>
<translation>Jesteś pewien, że chcesz zaszyfrować swój portfel?</translation>
</message>
<message>
<location line="+15"/>
<source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source>
<translation>WAŻNE: Wszystkie wykonane wcześniej kopie pliku portfela powinny być zamienione na nowe, szyfrowane pliki. Z powodów bezpieczeństwa, poprzednie kopie nieszyfrowanych plików portfela staną się bezużyteczne jak tylko zaczniesz korzystać z nowego, szyfrowanego portfela.</translation>
</message>
<message>
<location line="+100"/>
<location line="+24"/>
<source>Warning: The Caps Lock key is on!</source>
<translation>Uwaga: Klawisz Caps Lock jest włączony</translation>
</message>
<message>
<location line="-130"/>
<location line="+58"/>
<source>Wallet encrypted</source>
<translation>Portfel zaszyfrowany</translation>
</message>
<message>
<location line="-56"/>
<source>IMAcredit will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your imacredits from being stolen by malware infecting your computer.</source>
<translation>Program IMAcredit zamknie się aby dokończyć proces szyfrowania. Pamiętaj, że szyfrowanie portfela nie zabezpiecza w pełni Twoich imacreditów przed kradzieżą przez wirusy lub trojany mogące zainfekować Twój komputer.</translation>
</message>
<message>
<location line="+13"/>
<location line="+7"/>
<location line="+42"/>
<location line="+6"/>
<source>Wallet encryption failed</source>
<translation>Szyfrowanie portfela nie powiodło się</translation>
</message>
<message>
<location line="-54"/>
<source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source>
<translation>Szyfrowanie portfela nie powiodło się z powodu wewnętrznego błędu. Twój portfel nie został zaszyfrowany.</translation>
</message>
<message>
<location line="+7"/>
<location line="+48"/>
<source>The supplied passphrases do not match.</source>
<translation>Podane hasła nie są takie same.</translation>
</message>
<message>
<location line="-37"/>
<source>Wallet unlock failed</source>
<translation>Odblokowanie portfela nie powiodło się</translation>
</message>
<message>
<location line="+1"/>
<location line="+11"/>
<location line="+19"/>
<source>The passphrase entered for the wallet decryption was incorrect.</source>
<translation>Wprowadzone hasło do odszyfrowania portfela jest niepoprawne.</translation>
</message>
<message>
<location line="-20"/>
<source>Wallet decryption failed</source>
<translation>Odszyfrowywanie portfela nie powiodło się</translation>
</message>
<message>
<location line="+14"/>
<source>Wallet passphrase was successfully changed.</source>
<translation>Hasło portfela zostało pomyślnie zmienione.</translation>
</message>
</context>
<context>
<name>BitcoinGUI</name>
<message>
<location filename="../bitcoingui.cpp" line="+233"/>
<source>Sign &message...</source>
<translation>Podpisz wiado&mość...</translation>
</message>
<message>
<location line="+280"/>
<source>Synchronizing with network...</source>
<translation>Synchronizacja z siecią...</translation>
</message>
<message>
<location line="-349"/>
<source>&Overview</source>
<translation>P&odsumowanie</translation>
</message>
<message>
<location line="+1"/>
<source>Show general overview of wallet</source>
<translation>Pokazuje ogólny zarys portfela</translation>
</message>
<message>
<location line="+20"/>
<source>&Transactions</source>
<translation>&Transakcje</translation>
</message>
<message>
<location line="+1"/>
<source>Browse transaction history</source>
<translation>Przeglądaj historię transakcji</translation>
</message>
<message>
<location line="+7"/>
<source>Edit the list of stored addresses and labels</source>
<translation>Edytuj listę zapisanych adresów i i etykiet</translation>
</message>
<message>
<location line="-14"/>
<source>Show the list of addresses for receiving payments</source>
<translation>Pokaż listę adresów do otrzymywania płatności</translation>
</message>
<message>
<location line="+31"/>
<source>E&xit</source>
<translation>&Zakończ</translation>
</message>
<message>
<location line="+1"/>
<source>Quit application</source>
<translation>Zamknij program</translation>
</message>
<message>
<location line="+4"/>
<source>Show information about IMAcredit</source>
<translation>Pokaż informację o IMAcredit</translation>
</message>
<message>
<location line="+2"/>
<source>About &Qt</source>
<translation>O &Qt</translation>
</message>
<message>
<location line="+1"/>
<source>Show information about Qt</source>
<translation>Pokazuje informacje o Qt</translation>
</message>
<message>
<location line="+2"/>
<source>&Options...</source>
<translation>&Opcje...</translation>
</message>
<message>
<location line="+6"/>
<source>&Encrypt Wallet...</source>
<translation>Zaszyfruj Portf&el</translation>
</message>
<message>
<location line="+3"/>
<source>&Backup Wallet...</source>
<translation>Wykonaj kopię zapasową...</translation>
</message>
<message>
<location line="+2"/>
<source>&Change Passphrase...</source>
<translation>&Zmień hasło...</translation>
</message>
<message>
<location line="+285"/>
<source>Importing blocks from disk...</source>
<translation>Importowanie bloków z dysku...</translation>
</message>
<message>
<location line="+3"/>
<source>Reindexing blocks on disk...</source>
<translation>Ponowne indeksowanie bloków na dysku...</translation>
</message>
<message>
<location line="-347"/>
<source>Send coins to a IMAcredit address</source>
<translation>Wyślij monety na adres IMAcredit</translation>
</message>
<message>
<location line="+49"/>
<source>Modify configuration options for IMAcredit</source>
<translation>Zmienia opcje konfiguracji imacredita</translation>
</message>
<message>
<location line="+9"/>
<source>Backup wallet to another location</source>
<translation>Zapasowy portfel w innej lokalizacji</translation>
</message>
<message>
<location line="+2"/>
<source>Change the passphrase used for wallet encryption</source>
<translation>Zmień hasło użyte do szyfrowania portfela</translation>
</message>
<message>
<location line="+6"/>
<source>&Debug window</source>
<translation>&Okno debudowania</translation>
</message>
<message>
<location line="+1"/>
<source>Open debugging and diagnostic console</source>
<translation>Otwórz konsolę debugowania i diagnostyki</translation>
</message>
<message>
<location line="-4"/>
<source>&Verify message...</source>
<translation>&Zweryfikuj wiadomość...</translation>
</message>
<message>
<location line="-165"/>
<location line="+530"/>
<source>IMAcredit</source>
<translation>IMAcredit</translation>
</message>
<message>
<location line="-530"/>
<source>Wallet</source>
<translation>Portfel</translation>
</message>
<message>
<location line="+101"/>
<source>&Send</source>
<translation>Wyślij</translation>
</message>
<message>
<location line="+7"/>
<source>&Receive</source>
<translation>Odbie&rz</translation>
</message>
<message>
<location line="+14"/>
<source>&Addresses</source>
<translation>&Adresy</translation>
</message>
<message>
<location line="+22"/>
<source>&About IMAcredit</source>
<translation>O IMAcredit</translation>
</message>
<message>
<location line="+9"/>
<source>&Show / Hide</source>
<translation>&Pokaż / Ukryj</translation>
</message>
<message>
<location line="+1"/>
<source>Show or hide the main Window</source>
<translation>Pokazuje lub ukrywa główne okno</translation>
</message>
<message>
<location line="+3"/>
<source>Encrypt the private keys that belong to your wallet</source>
<translation>Szyfruj klucze prywatne, które są powiązane z twoim portfelem</translation>
</message>
<message>
<location line="+7"/>
<source>Sign messages with your IMAcredit addresses to prove you own them</source>
<translation>Podpisz wiadomości swoim adresem aby udowodnić jego posiadanie</translation>
</message>
<message>
<location line="+2"/>
<source>Verify messages to ensure they were signed with specified IMAcredit addresses</source>
<translation>Zweryfikuj wiadomość, aby upewnić się, że została podpisana odpowiednim adresem IMAcredit.</translation>
</message>
<message>
<location line="+28"/>
<source>&File</source>
<translation>&Plik</translation>
</message>
<message>
<location line="+7"/>
<source>&Settings</source>
<translation>P&referencje</translation>
</message>
<message>
<location line="+6"/>
<source>&Help</source>
<translation>Pomo&c</translation>
</message>
<message>
<location line="+9"/>
<source>Tabs toolbar</source>
<translation>Pasek zakładek</translation>
</message>
<message>
<location line="+17"/>
<location line="+10"/>
<source>[testnet]</source>
<translation>[testnet]</translation>
</message>
<message>
<location line="+47"/>
<source>IMAcredit client</source>
<translation>IMAcredit klient</translation>
</message>
<message numerus="yes">
<location line="+141"/>
<source>%n active connection(s) to IMAcredit network</source>
<translation><numerusform>%n aktywne połączenie do sieci IMAcredit</numerusform><numerusform>%n aktywne połączenia do sieci IMAcredit</numerusform><numerusform>%n aktywnych połączeń do sieci IMAcredit</numerusform></translation>
</message>
<message>
<location line="+22"/>
<source>No block source available...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+12"/>
<source>Processed %1 of %2 (estimated) blocks of transaction history.</source>
<translation>Przetworzono (w przybliżeniu) %1 z %2 bloków historii transakcji.</translation>
</message>
<message>
<location line="+4"/>
<source>Processed %1 blocks of transaction history.</source>
<translation>Pobrano %1 bloków z historią transakcji.</translation>
</message>
<message numerus="yes">
<location line="+20"/>
<source>%n hour(s)</source>
<translation><numerusform>%n godzina</numerusform><numerusform>%n godzin</numerusform><numerusform>%n godzin</numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n day(s)</source>
<translation><numerusform>%n dzień</numerusform><numerusform>%n dni</numerusform><numerusform>%n dni</numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n week(s)</source>
<translation><numerusform>%n tydzień</numerusform><numerusform>%n tygodni</numerusform><numerusform>%n tygodni</numerusform></translation>
</message>
<message>
<location line="+4"/>
<source>%1 behind</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>Last received block was generated %1 ago.</source>
<translation>Ostatni otrzymany blok został wygenerowany %1 temu.</translation>
</message>
<message>
<location line="+2"/>
<source>Transactions after this will not yet be visible.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+22"/>
<source>Error</source>
<translation>Błąd</translation>
</message>
<message>
<location line="+3"/>
<source>Warning</source>
<translation>Ostrzeżenie</translation>
</message>
<message>
<location line="+3"/>
<source>Information</source>
<translation>Informacja</translation>
</message>
<message>
<location line="+70"/>
<source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source>
<translation>Transakcja przekracza limit. Możesz wysłać ją płacąc prowizję %1, która zostaje przekazana do węzłów, które ją prześlą i pomoże wspierać sieć IMAcredit. Czy chcesz zapłacić prowizję?</translation>
</message>
<message>
<location line="-140"/>
<source>Up to date</source>
<translation>Aktualny</translation>
</message>
<message>
<location line="+31"/>
<source>Catching up...</source>
<translation>Łapanie bloków...</translation>
</message>
<message>
<location line="+113"/>
<source>Confirm transaction fee</source>
<translation>Potwierdź prowizję transakcyjną</translation>
</message>
<message>
<location line="+8"/>
<source>Sent transaction</source>
<translation>Transakcja wysłana</translation>
</message>
<message>
<location line="+0"/>
<source>Incoming transaction</source>
<translation>Transakcja przychodząca</translation>
</message>
<message>
<location line="+1"/>
<source>Date: %1
Amount: %2
Type: %3
Address: %4
</source>
<translation>Data: %1
Kwota: %2
Typ: %3
Adres: %4
</translation>
</message>
<message>
<location line="+33"/>
<location line="+23"/>
<source>URI handling</source>
<translation>Obsługa URI</translation>
</message>
<message>
<location line="-23"/>
<location line="+23"/>
<source>URI can not be parsed! This can be caused by an invalid IMAcredit address or malformed URI parameters.</source>
<translation>URI nie może zostać przetworzony! Prawdopodobnie błędny adres IMAcredit bądź nieprawidłowe parametry URI.</translation>
</message>
<message>
<location line="+17"/>
<source>Wallet is <b>encrypted</b> and currently <b>unlocked</b></source>
<translation>Portfel jest <b>zaszyfrowany</b> i obecnie <b>niezablokowany</b></translation>
</message>
<message>
<location line="+8"/>
<source>Wallet is <b>encrypted</b> and currently <b>locked</b></source>
<translation>Portfel jest <b>zaszyfrowany</b> i obecnie <b>zablokowany</b></translation>
</message>
<message>
<location filename="../bitcoin.cpp" line="+111"/>
<source>A fatal error occurred. IMAcredit can no longer continue safely and will quit.</source>
<translation>Błąd krytyczny. IMAcredit nie może kontynuować bezpiecznie więc zostanie zamknięty.</translation>
</message>
</context>
<context>
<name>ClientModel</name>
<message>
<location filename="../clientmodel.cpp" line="+104"/>
<source>Network Alert</source>
<translation>Sieć Alert</translation>
</message>
</context>
<context>
<name>EditAddressDialog</name>
<message>
<location filename="../forms/editaddressdialog.ui" line="+14"/>
<source>Edit Address</source>
<translation>Edytuj adres</translation>
</message>
<message>
<location line="+11"/>
<source>&Label</source>
<translation>&Etykieta</translation>
</message>
<message>
<location line="+10"/>
<source>The label associated with this address book entry</source>
<translation>Etykieta skojarzona z tym wpisem w książce adresowej</translation>
</message>
<message>
<location line="+7"/>
<source>&Address</source>
<translation>&Adres</translation>
</message>
<message>
<location line="+10"/>
<source>The address associated with this address book entry. This can only be modified for sending addresses.</source>
<translation>Ten adres jest skojarzony z wpisem w książce adresowej. Może być zmodyfikowany jedynie dla adresów wysyłających.</translation>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="+21"/>
<source>New receiving address</source>
<translation>Nowy adres odbiorczy</translation>
</message>
<message>
<location line="+4"/>
<source>New sending address</source>
<translation>Nowy adres wysyłania</translation>
</message>
<message>
<location line="+3"/>
<source>Edit receiving address</source>
<translation>Edytuj adres odbioru</translation>
</message>
<message>
<location line="+4"/>
<source>Edit sending address</source>
<translation>Edytuj adres wysyłania</translation>
</message>
<message>
<location line="+76"/>
<source>The entered address "%1" is already in the address book.</source>
<translation>Wprowadzony adres "%1" już istnieje w książce adresowej.</translation>
</message>
<message>
<location line="-5"/>
<source>The entered address "%1" is not a valid IMAcredit address.</source>
<translation>Wprowadzony adres "%1" nie jest poprawnym adresem IMAcredit.</translation>
</message>
<message>
<location line="+10"/>
<source>Could not unlock wallet.</source>
<translation>Nie można było odblokować portfela.</translation>
</message>
<message>
<location line="+5"/>
<source>New key generation failed.</source>
<translation>Tworzenie nowego klucza nie powiodło się.</translation>
</message>
</context>
<context>
<name>GUIUtil::HelpMessageBox</name>
<message>
<location filename="../guiutil.cpp" line="+424"/>
<location line="+12"/>
<source>IMAcredit-Qt</source>
<translation>IMAcredit-Qt</translation>
</message>
<message>
<location line="-12"/>
<source>version</source>
<translation>wersja</translation>
</message>
<message>
<location line="+2"/>
<source>Usage:</source>
<translation>Użycie:</translation>
</message>
<message>
<location line="+1"/>
<source>command-line options</source>
<translation>opcje konsoli</translation>
</message>
<message>
<location line="+4"/>
<source>UI options</source>
<translation>UI opcje</translation>
</message>
<message>
<location line="+1"/>
<source>Set language, for example "de_DE" (default: system locale)</source>
<translation>Ustaw Język, na przykład "pl_PL" (domyślnie: systemowy)</translation>
</message>
<message>
<location line="+1"/>
<source>Start minimized</source>
<translation>Uruchom zminimalizowany</translation>
</message>
<message>
<location line="+1"/>
<source>Show splash screen on startup (default: 1)</source>
<translation>Pokazuj okno powitalne przy starcie (domyślnie: 1)</translation>
</message>
</context>
<context>
<name>OptionsDialog</name>
<message>
<location filename="../forms/optionsdialog.ui" line="+14"/>
<source>Options</source>
<translation>Opcje</translation>
</message>
<message>
<location line="+16"/>
<source>&Main</source>
<translation>Główne</translation>
</message>
<message>
<location line="+6"/>
<source>Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Pay transaction &fee</source>
<translation>Płać prowizję za transakcje</translation>
</message>
<message>
<location line="+31"/>
<source>Automatically start IMAcredit after logging in to the system.</source>
<translation>Automatycznie uruchamia IMAcredit po zalogowaniu do systemu.</translation>
</message>
<message>
<location line="+3"/>
<source>&Start IMAcredit on system login</source>
<translation>Uruchamiaj IMAcredit wraz z zalogowaniem do &systemu</translation>
</message>
<message>
<location line="+35"/>
<source>Reset all client options to default.</source>
<translation>Przywróć domyślne wszystkie ustawienia klienta.</translation>
</message>
<message>
<location line="+3"/>
<source>&Reset Options</source>
<translation>Z&resetuj Ustawienia</translation>
</message>
<message>
<location line="+13"/>
<source>&Network</source>
<translation>&Sieć</translation>
</message>
<message>
<location line="+6"/>
<source>Automatically open the IMAcredit client port on the router. This only works when your router supports UPnP and it is enabled.</source>
<translation>Automatycznie otwiera port klienta IMAcredit na routerze. Ta opcja dzieła tylko jeśli twój router wspiera UPnP i jest ono włączone.</translation>
</message>
<message>
<location line="+3"/>
<source>Map port using &UPnP</source>
<translation>Mapuj port używając &UPnP</translation>
</message>
<message>
<location line="+7"/>
<source>Connect to the IMAcredit network through a SOCKS proxy (e.g. when connecting through Tor).</source>
<translation>Podłącz się do sieci IMAcredit przez proxy SOCKS (np. gdy łączysz się poprzez Tor'a)</translation>
</message>
<message>
<location line="+3"/>
<source>&Connect through SOCKS proxy:</source>
<translation>&Połącz się przez proxy SOCKS</translation>
</message>
<message>
<location line="+9"/>
<source>Proxy &IP:</source>
<translation>Proxy &IP: </translation>
</message>
<message>
<location line="+19"/>
<source>IP address of the proxy (e.g. 127.0.0.1)</source>
<translation>Adres IP serwera proxy (np. 127.0.0.1)</translation>
</message>
<message>
<location line="+7"/>
<source>&Port:</source>
<translation>&Port:</translation>
</message>
<message>
<location line="+19"/>
<source>Port of the proxy (e.g. 9050)</source>
<translation>Port proxy (np. 9050)</translation>
</message>
<message>
<location line="+7"/>
<source>SOCKS &Version:</source>
<translation>Wersja &SOCKS</translation>
</message>
<message>
<location line="+13"/>
<source>SOCKS version of the proxy (e.g. 5)</source>
<translation>SOCKS wersja serwera proxy (np. 5)</translation>
</message>
<message>
<location line="+36"/>
<source>&Window</source>
<translation>&Okno</translation>
</message>
<message>
<location line="+6"/>
<source>Show only a tray icon after minimizing the window.</source>
<translation>Pokazuj tylko ikonę przy zegarku po zminimalizowaniu okna.</translation>
</message>
<message>
<location line="+3"/>
<source>&Minimize to the tray instead of the taskbar</source>
<translation>&Minimalizuj do paska przy zegarku zamiast do paska zadań</translation>
</message>
<message>
<location line="+7"/>
<source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source>
<translation>Minimalizuje zamiast zakończyć działanie programu przy zamykaniu okna. Kiedy ta opcja jest włączona, program zakończy działanie po wybieraniu Zamknij w menu.</translation>
</message>
<message>
<location line="+3"/>
<source>M&inimize on close</source>
<translation>M&inimalizuj przy zamknięciu</translation>
</message>
<message>
<location line="+21"/>
<source>&Display</source>
<translation>&Wyświetlanie</translation>
</message>
<message>
<location line="+8"/>
<source>User Interface &language:</source>
<translation>Język &Użytkownika:</translation>
</message>
<message>
<location line="+13"/>
<source>The user interface language can be set here. This setting will take effect after restarting IMAcredit.</source>
<translation>Można tu ustawić język interfejsu uzytkownika. Żeby ustawienie przyniosło skutek trzeba uruchomić ponownie IMAcredit.</translation>
</message>
<message>
<location line="+11"/>
<source>&Unit to show amounts in:</source>
<translation>&Jednostka pokazywana przy kwocie:</translation>
</message>
<message>
<location line="+13"/>
<source>Choose the default subdivision unit to show in the interface and when sending coins.</source>
<translation>Wybierz podział jednostki pokazywany w interfejsie oraz podczas wysyłania monet</translation>
</message>
<message>
<location line="+9"/>
<source>Whether to show IMAcredit addresses in the transaction list or not.</source>
<translation>Pokazuj adresy IMAcredit na liście transakcji.</translation>
</message>
<message>
<location line="+3"/>
<source>&Display addresses in transaction list</source>
<translation>&Wyświetlaj adresy w liście transakcji</translation>
</message>
<message>
<location line="+71"/>
<source>&OK</source>
<translation>&OK</translation>
</message>
<message>
<location line="+7"/>
<source>&Cancel</source>
<translation>&Anuluj</translation>
</message>
<message>
<location line="+10"/>
<source>&Apply</source>
<translation>Z&astosuj</translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="+53"/>
<source>default</source>
<translation>domyślny</translation>
</message>
<message>
<location line="+130"/>
<source>Confirm options reset</source>
<translation>Potwierdź reset ustawień</translation>
</message>
<message>
<location line="+1"/>
<source>Some settings may require a client restart to take effect.</source>
<translation>Niektóre ustawienia mogą wymagać ponownego uruchomienia klienta, żeby zacząć działać.</translation>
</message>
<message>
<location line="+0"/>
<source>Do you want to proceed?</source>
<translation>Czy chcesz kontynuować?</translation>
</message>
<message>
<location line="+42"/>
<location line="+9"/>
<source>Warning</source>
<translation>Ostrzeżenie</translation>
</message>
<message>
<location line="-9"/>
<location line="+9"/>
<source>This setting will take effect after restarting IMAcredit.</source>
<translation>To ustawienie zostanie zastosowane po restarcie IMAcredit</translation>
</message>
<message>
<location line="+29"/>
<source>The supplied proxy address is invalid.</source>
<translation>Adres podanego proxy jest nieprawidłowy</translation>
</message>
</context>
<context>
<name>OverviewPage</name>
<message>
<location filename="../forms/overviewpage.ui" line="+14"/>
<source>Form</source>
<translation>Formularz</translation>
</message>
<message>
<location line="+50"/>
<location line="+166"/>
<source>The displayed information may be out of date. Your wallet automatically synchronizes with the IMAcredit network after a connection is established, but this process has not completed yet.</source>
<translation>Wyświetlana informacja może być nieaktualna. Twój portfel synchronizuje się automatycznie z siecią imacredit, zaraz po tym jak uzyskano połączenie, ale proces ten nie został jeszcze ukończony.</translation>
</message>
<message>
<location line="-124"/>
<source>Balance:</source>
<translation>Saldo:</translation>
</message>
<message>
<location line="+29"/>
<source>Unconfirmed:</source>
<translation>Niepotwierdzony:</translation>
</message>
<message>
<location line="-78"/>
<source>Wallet</source>
<translation>Portfel</translation>
</message>
<message>
<location line="+107"/>
<source>Immature:</source>
<translation>Niedojrzały: </translation>
</message>
<message>
<location line="+13"/>
<source>Mined balance that has not yet matured</source>
<translation>Balans wydobycia, który jeszcze nie dojrzał</translation>
</message>
<message>
<location line="+46"/>
<source><b>Recent transactions</b></source>
<translation><b>Ostatnie transakcje</b></translation>
</message>
<message>
<location line="-101"/>
<source>Your current balance</source>
<translation>Twoje obecne saldo</translation>
</message>
<message>
<location line="+29"/>
<source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source>
<translation>Suma transakcji, które nie zostały jeszcze potwierdzone, i które nie zostały wliczone do twojego obecnego salda</translation>
</message>
<message>
<location filename="../overviewpage.cpp" line="+116"/>
<location line="+1"/>
<source>out of sync</source>
<translation>desynchronizacja</translation>
</message>
</context>
<context>
<name>PaymentServer</name>
<message>
<location filename="../paymentserver.cpp" line="+107"/>
<source>Cannot start imacredit: click-to-pay handler</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>QRCodeDialog</name>
<message>
<location filename="../forms/qrcodedialog.ui" line="+14"/>
<source>QR Code Dialog</source>
<translation>Okno Dialogowe Kodu QR</translation>
</message>
<message>
<location line="+59"/>
<source>Request Payment</source>
<translation>Prośba o płatność</translation>
</message>
<message>
<location line="+56"/>
<source>Amount:</source>
<translation>Kwota:</translation>
</message>
<message>
<location line="-44"/>
<source>Label:</source>
<translation>Etykieta:</translation>
</message>
<message>
<location line="+19"/>
<source>Message:</source>
<translation>Wiadomość:</translation>
</message>
<message>
<location line="+71"/>
<source>&Save As...</source>
<translation>Zapi&sz jako...</translation>
</message>
<message>
<location filename="../qrcodedialog.cpp" line="+62"/>
<source>Error encoding URI into QR Code.</source>
<translation>Błąd kodowania URI w Kodzie QR.</translation>
</message>
<message>
<location line="+40"/>
<source>The entered amount is invalid, please check.</source>
<translation>Podana ilość jest nieprawidłowa, proszę sprawdzić</translation>
</message>
<message>
<location line="+23"/>
<source>Resulting URI too long, try to reduce the text for label / message.</source>
<translation>Wynikowy URI jest zbyt długi, spróbuj zmniejszyć tekst etykiety / wiadomości</translation>
</message>
<message>
<location line="+25"/>
<source>Save QR Code</source>
<translation>Zapisz Kod QR</translation>
</message>
<message>
<location line="+0"/>
<source>PNG Images (*.png)</source>
<translation>Obraz PNG (*.png)</translation>
</message>
</context>
<context>
<name>RPCConsole</name>
<message>
<location filename="../forms/rpcconsole.ui" line="+46"/>
<source>Client name</source>
<translation>Nazwa klienta</translation>
</message>
<message>
<location line="+10"/>
<location line="+23"/>
<location line="+26"/>
<location line="+23"/>
<location line="+23"/>
<location line="+36"/>
<location line="+53"/>
<location line="+23"/>
<location line="+23"/>
<location filename="../rpcconsole.cpp" line="+339"/>
<source>N/A</source>
<translation>NIEDOSTĘPNE</translation>
</message>
<message>
<location line="-217"/>
<source>Client version</source>
<translation>Wersja klienta</translation>
</message>
<message>
<location line="-45"/>
<source>&Information</source>
<translation>&Informacje</translation>
</message>
<message>
<location line="+68"/>
<source>Using OpenSSL version</source>
<translation>Używana wersja OpenSSL</translation>
</message>
<message>
<location line="+49"/>
<source>Startup time</source>
<translation>Czas uruchomienia</translation>
</message>
<message>
<location line="+29"/>
<source>Network</source>
<translation>Sieć</translation>
</message>
<message>
<location line="+7"/>
<source>Number of connections</source>
<translation>Liczba połączeń</translation>
</message>
<message>
<location line="+23"/>
<source>On testnet</source>
<translation>W sieci testowej</translation>
</message>
<message>
<location line="+23"/>
<source>Block chain</source>
<translation>Ciąg bloków</translation>
</message>
<message>
<location line="+7"/>
<source>Current number of blocks</source>
<translation>Aktualna liczba bloków</translation>
</message>
<message>
<location line="+23"/>
<source>Estimated total blocks</source>
<translation>Szacowana ilość bloków</translation>
</message>
<message>
<location line="+23"/>
<source>Last block time</source>
<translation>Czas ostatniego bloku</translation>
</message>
<message>
<location line="+52"/>
<source>&Open</source>
<translation>&Otwórz</translation>
</message>
<message>
<location line="+16"/>
<source>Command-line options</source>
<translation>Opcje konsoli</translation>
</message>
<message>
<location line="+7"/>
<source>Show the IMAcredit-Qt help message to get a list with possible IMAcredit command-line options.</source>
<translation>Pokaż pomoc IMAcredit-Qt, aby zobaczyć listę wszystkich opcji linii poleceń</translation>
</message>
<message>
<location line="+3"/>
<source>&Show</source>
<translation>&Pokaż</translation>
</message>
<message>
<location line="+24"/>
<source>&Console</source>
<translation>&Konsola</translation>
</message>
<message>
<location line="-260"/>
<source>Build date</source>
<translation>Data kompilacji</translation>
</message>
<message>
<location line="-104"/>
<source>IMAcredit - Debug window</source>
<translation>IMAcredit - Okno debudowania</translation>
</message>
<message>
<location line="+25"/>
<source>IMAcredit Core</source>
<translation>Rdzeń BitCoin</translation>
</message>
<message>
<location line="+279"/>
<source>Debug log file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Open the IMAcredit debug log file from the current data directory. This can take a few seconds for large log files.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+102"/>
<source>Clear console</source>
<translation>Wyczyść konsolę</translation>
</message>
<message>
<location filename="../rpcconsole.cpp" line="-30"/>
<source>Welcome to the IMAcredit RPC console.</source>
<translation>Witam w konsoli IMAcredit RPC</translation>
</message>
<message>
<location line="+1"/>
<source>Use up and down arrows to navigate history, and <b>Ctrl-L</b> to clear screen.</source>
<translation>Użyj strzałek do przewijania historii i <b>Ctrl-L</b> aby wyczyścić ekran</translation>
</message>
<message>
<location line="+1"/>
<source>Type <b>help</b> for an overview of available commands.</source>
<translation>Wpisz <b>help</b> aby uzyskać listę dostępnych komend</translation>
</message>
</context>
<context>
<name>SendCoinsDialog</name>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="+14"/>
<location filename="../sendcoinsdialog.cpp" line="+124"/>
<location line="+5"/>
<location line="+5"/>
<location line="+5"/>
<location line="+6"/>
<location line="+5"/>
<location line="+5"/>
<source>Send Coins</source>
<translation>Wyślij płatność</translation>
</message>
<message>
<location line="+50"/>
<source>Send to multiple recipients at once</source>
<translation>Wyślij do wielu odbiorców na raz</translation>
</message>
<message>
<location line="+3"/>
<source>Add &Recipient</source>
<translation>Dodaj Odbio&rce</translation>
</message>
<message>
<location line="+20"/>
<source>Remove all transaction fields</source>
<translation>Wyczyść wszystkie pola transakcji</translation>
</message>
<message>
<location line="+3"/>
<source>Clear &All</source>
<translation>Wyczyść &wszystko</translation>
</message>
<message>
<location line="+22"/>
<source>Balance:</source>
<translation>Saldo:</translation>
</message>
<message>
<location line="+10"/>
<source>123.456 BTC</source>
<translation>123.456 BTC</translation>
</message>
<message>
<location line="+31"/>
<source>Confirm the send action</source>
<translation>Potwierdź akcję wysyłania</translation>
</message>
<message>
<location line="+3"/>
<source>S&end</source>
<translation>Wy&syłka</translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="-59"/>
<source><b>%1</b> to %2 (%3)</source>
<translation><b>%1</b> do %2 (%3)</translation>
</message>
<message>
<location line="+5"/>
<source>Confirm send coins</source>
<translation>Potwierdź wysyłanie monet</translation>
</message>
<message>
<location line="+1"/>
<source>Are you sure you want to send %1?</source>
<translation>Czy na pewno chcesz wysłać %1?</translation>
</message>
<message>
<location line="+0"/>
<source> and </source>
<translation> i </translation>
</message>
<message>
<location line="+23"/>
<source>The recipient address is not valid, please recheck.</source>
<translation>Adres odbiorcy jest nieprawidłowy, proszę poprawić</translation>
</message>
<message>
<location line="+5"/>
<source>The amount to pay must be larger than 0.</source>
<translation>Kwota do zapłacenia musi być większa od 0.</translation>
</message>
<message>
<location line="+5"/>
<source>The amount exceeds your balance.</source>
<translation>Kwota przekracza twoje saldo.</translation>
</message>
<message>
<location line="+5"/>
<source>The total exceeds your balance when the %1 transaction fee is included.</source>
<translation>Suma przekracza twoje saldo, gdy doliczymy %1 prowizji transakcyjnej.</translation>
</message>
<message>
<location line="+6"/>
<source>Duplicate address found, can only send to each address once per send operation.</source>
<translation>Znaleziono powtórzony adres, można wysłać tylko raz na każdy adres podczas operacji wysyłania.</translation>
</message>
<message>
<location line="+5"/>
<source>Error: Transaction creation failed!</source>
<translation>Błąd: Tworzenie transakcji zakończone niepowodzeniem!</translation>
</message>
<message>
<location line="+5"/>
<source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation>Błąd: transakcja została odrzucona. Może się to zdarzyć, gdy monety z Twojego portfela zostały już wydane, na przykład gdy używałeś kopii wallet.dat i imacredity które tam wydałeś nie zostały jeszcze odjęte z portfela z którego teraz korzystasz.</translation>
</message>
</context>
<context>
<name>SendCoinsEntry</name>
<message>
<location filename="../forms/sendcoinsentry.ui" line="+14"/>
<source>Form</source>
<translation>Formularz</translation>
</message>
<message>
<location line="+15"/>
<source>A&mount:</source>
<translation>Su&ma:</translation>
</message>
<message>
<location line="+13"/>
<source>Pay &To:</source>
<translation>Zapłać dla:</translation>
</message>
<message>
<location line="+34"/>
<source>The address to send the payment to (e.g. Vg6KN8SSPGuwxy3gwDodxghD3YHqqTpzDs)</source>
<translation>Adres, na który wysłasz płatności (np. Vg6KN8SSPGuwxy3gwDodxghD3YHqqTpzDs)</translation>
</message>
<message>
<location line="+60"/>
<location filename="../sendcoinsentry.cpp" line="+26"/>
<source>Enter a label for this address to add it to your address book</source>
<translation>Wprowadź etykietę dla tego adresu by dodać go do książki adresowej</translation>
</message>
<message>
<location line="-78"/>
<source>&Label:</source>
<translation>&Etykieta:</translation>
</message>
<message>
<location line="+28"/>
<source>Choose address from address book</source>
<translation>Wybierz adres z książki adresowej</translation>
</message>
<message>
<location line="+10"/>
<source>Alt+A</source>
<translation>Alt+A</translation>
</message>
<message>
<location line="+7"/>
<source>Paste address from clipboard</source>
<translation>Wklej adres ze schowka</translation>
</message>
<message>
<location line="+10"/>
<source>Alt+P</source>
<translation>Alt+P</translation>
</message>
<message>
<location line="+7"/>
<source>Remove this recipient</source>
<translation>Usuń tego odbiorce</translation>
</message>
<message>
<location filename="../sendcoinsentry.cpp" line="+1"/>
<source>Enter a IMAcredit address (e.g. Vg6KN8SSPGuwxy3gwDodxghD3YHqqTpzDs)</source>
<translation>Wprowadź adres IMAcredit (np. Vg6KN8SSPGuwxy3gwDodxghD3YHqqTpzDs)</translation>
</message>
</context>
<context>
<name>SignVerifyMessageDialog</name>
<message>
<location filename="../forms/signverifymessagedialog.ui" line="+14"/>
<source>Signatures - Sign / Verify a Message</source>
<translation>Podpisy - Podpisz / zweryfikuj wiadomość</translation>
</message>
<message>
<location line="+13"/>
<source>&Sign Message</source>
<translation>Podpi&sz Wiadomość</translation>
</message>
<message>
<location line="+6"/>
<source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source>
<translation>Możesz podpisywać wiadomości swoimi adresami aby udowodnić, że jesteś ich właścicielem. Uważaj, aby nie podpisywać niczego co wzbudza Twoje podejrzenia, ponieważ ktoś może stosować phishing próbując nakłonić Cię do ich podpisania. Akceptuj i podpisuj tylko w pełni zrozumiałe komunikaty i wiadomości.</translation>
</message>
<message>
<location line="+18"/>
<source>The address to sign the message with (e.g. Vg6KN8SSPGuwxy3gwDodxghD3YHqqTpzDs)</source>
<translation>Wprowadź adres IMAcredit (np. Vg6KN8SSPGuwxy3gwDodxghD3YHqqTpzDs)</translation>
</message>
<message>
<location line="+10"/>
<location line="+213"/>
<source>Choose an address from the address book</source>
<translation>Wybierz adres z książki kontaktowej</translation>
</message>
<message>
<location line="-203"/>
<location line="+213"/>
<source>Alt+A</source>
<translation>Alt+A</translation>
</message>
<message>
<location line="-203"/>
<source>Paste address from clipboard</source>
<translation>Wklej adres ze schowka</translation>
</message>
<message>
<location line="+10"/>
<source>Alt+P</source>
<translation>Alt+P</translation>
</message>
<message>
<location line="+12"/>
<source>Enter the message you want to sign here</source>
<translation>Wprowadź wiadomość, którą chcesz podpisać, tutaj</translation>
</message>
<message>
<location line="+7"/>
<source>Signature</source>
<translation>Podpis</translation>
</message>
<message>
<location line="+27"/>
<source>Copy the current signature to the system clipboard</source>
<translation>Kopiuje aktualny podpis do schowka systemowego</translation>
</message>
<message>
<location line="+21"/>
<source>Sign the message to prove you own this IMAcredit address</source>
<translation>Podpisz wiadomość aby dowieść, że ten adres jest twój</translation>
</message>
<message>
<location line="+3"/>
<source>Sign &Message</source>
<translation>Podpisz Wiado&mość</translation>
</message>
<message>
<location line="+14"/>
<source>Reset all sign message fields</source>
<translation>Zresetuj wszystkie pola podpisanej wiadomości</translation>
</message>
<message>
<location line="+3"/>
<location line="+146"/>
<source>Clear &All</source>
<translation>Wyczyść &wszystko</translation>
</message>
<message>
<location line="-87"/>
<source>&Verify Message</source>
<translation>&Zweryfikuj wiadomość</translation>
</message>
<message>
<location line="+6"/>
<source>Enter the signing address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>The address the message was signed with (e.g. Vg6KN8SSPGuwxy3gwDodxghD3YHqqTpzDs)</source>
<translation>Wprowadź adres IMAcredit (np. Vg6KN8SSPGuwxy3gwDodxghD3YHqqTpzDs)</translation>
</message>
<message>
<location line="+40"/>
<source>Verify the message to ensure it was signed with the specified IMAcredit address</source>
<translation>Zweryfikuj wiadomość, aby upewnić się, że została podpisana odpowiednim adresem IMAcredit.</translation>
</message>
<message>
<location line="+3"/>
<source>Verify &Message</source>
<translation>Zweryfikuj Wiado&mość</translation>
</message>
<message>
<location line="+14"/>
<source>Reset all verify message fields</source>
<translation>Resetuje wszystkie pola weryfikacji wiadomości</translation>
</message>
<message>
<location filename="../signverifymessagedialog.cpp" line="+27"/>
<location line="+3"/>
<source>Enter a IMAcredit address (e.g. Vg6KN8SSPGuwxy3gwDodxghD3YHqqTpzDs)</source>
<translation>Wprowadź adres IMAcredit (np. Vg6KN8SSPGuwxy3gwDodxghD3YHqqTpzDs)</translation>
</message>
<message>
<location line="-2"/>
<source>Click "Sign Message" to generate signature</source>
<translation>Kliknij "Podpisz Wiadomość" żeby uzyskać podpis</translation>
</message>
<message>
<location line="+3"/>
<source>Enter IMAcredit signature</source>
<translation>Wprowadź podpis IMAcredit</translation>
</message>
<message>
<location line="+82"/>
<location line="+81"/>
<source>The entered address is invalid.</source>
<translation>Podany adres jest nieprawidłowy.</translation>
</message>
<message>
<location line="-81"/>
<location line="+8"/>
<location line="+73"/>
<location line="+8"/>
<source>Please check the address and try again.</source>
<translation>Proszę sprawdzić adres i spróbować ponownie.</translation>
</message>
<message>
<location line="-81"/>
<location line="+81"/>
<source>The entered address does not refer to a key.</source>
<translation>Wprowadzony adres nie odnosi się do klucza.</translation>
</message>
<message>
<location line="-73"/>
<source>Wallet unlock was cancelled.</source>
<translation>Odblokowanie portfela zostało anulowane.</translation>
</message>
<message>
<location line="+8"/>
<source>Private key for the entered address is not available.</source>
<translation>Klucz prywatny dla podanego adresu nie jest dostępny</translation>
</message>
<message>
<location line="+12"/>
<source>Message signing failed.</source>
<translation>Podpisanie wiadomości nie powiodło się</translation>
</message>
<message>
<location line="+5"/>
<source>Message signed.</source>
<translation>Wiadomość podpisana.</translation>
</message>
<message>
<location line="+59"/>
<source>The signature could not be decoded.</source>
<translation>Podpis nie może zostać zdekodowany.</translation>
</message>
<message>
<location line="+0"/>
<location line="+13"/>
<source>Please check the signature and try again.</source>
<translation>Sprawdź podpis i spróbuj ponownie.</translation>
</message>
<message>
<location line="+0"/>
<source>The signature did not match the message digest.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Message verification failed.</source>
<translation>Weryfikacja wiadomości nie powiodła się.</translation>
</message>
<message>
<location line="+5"/>
<source>Message verified.</source>
<translation>Wiadomość zweryfikowana.</translation>
</message>
</context>
<context>
<name>SplashScreen</name>
<message>
<location filename="../splashscreen.cpp" line="+22"/>
<source>The IMAcredit developers</source>
<translation>Deweloperzy IMAcredit</translation>
</message>
<message>
<location line="+1"/>
<source>[testnet]</source>
<translation>[testnet]</translation>
</message>
</context>
<context>
<name>TransactionDesc</name>
<message>
<location filename="../transactiondesc.cpp" line="+20"/>
<source>Open until %1</source>
<translation>Otwórz do %1</translation>
</message>
<message>
<location line="+6"/>
<source>%1/offline</source>
<translation>%1/offline</translation>
</message>
<message>
<location line="+2"/>
<source>%1/unconfirmed</source>
<translation>%1/niezatwierdzone</translation>
</message>
<message>
<location line="+2"/>
<source>%1 confirmations</source>
<translation>%1 potwierdzeń</translation>
</message>
<message>
<location line="+18"/>
<source>Status</source>
<translation>Status</translation>
</message>
<message numerus="yes">
<location line="+7"/>
<source>, broadcast through %n node(s)</source>
<translation><numerusform>, emitowany przez %n węzeł</numerusform><numerusform>, emitowany przez %n węzły</numerusform><numerusform>, emitowany przez %n węzłów</numerusform></translation>
</message>
<message>
<location line="+4"/>
<source>Date</source>
<translation>Data</translation>
</message>
<message>
<location line="+7"/>
<source>Source</source>
<translation>Źródło</translation>
</message>
<message>
<location line="+0"/>
<source>Generated</source>
<translation>Wygenerowano</translation>
</message>
<message>
<location line="+5"/>
<location line="+17"/>
<source>From</source>
<translation>Od</translation>
</message>
<message>
<location line="+1"/>
<location line="+22"/>
<location line="+58"/>
<source>To</source>
<translation>Do</translation>
</message>
<message>
<location line="-77"/>
<location line="+2"/>
<source>own address</source>
<translation>własny adres</translation>
</message>
<message>
<location line="-2"/>
<source>label</source>
<translation>etykieta</translation>
</message>
<message>
<location line="+37"/>
<location line="+12"/>
<location line="+45"/>
<location line="+17"/>
<location line="+30"/>
<source>Credit</source>
<translation>Przypisy</translation>
</message>
<message numerus="yes">
<location line="-102"/>
<source>matures in %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+2"/>
<source>not accepted</source>
<translation>niezaakceptowane</translation>
</message>
<message>
<location line="+44"/>
<location line="+8"/>
<location line="+15"/>
<location line="+30"/>
<source>Debit</source>
<translation>Debet</translation>
</message>
<message>
<location line="-39"/>
<source>Transaction fee</source>
<translation>Prowizja transakcji</translation>
</message>
<message>
<location line="+16"/>
<source>Net amount</source>
<translation>Kwota netto</translation>
</message>
<message>
<location line="+6"/>
<source>Message</source>
<translation>Wiadomość</translation>
</message>
<message>
<location line="+2"/>
<source>Comment</source>
<translation>Komentarz</translation>
</message>
<message>
<location line="+2"/>
<source>Transaction ID</source>
<translation>ID transakcji</translation>
</message>
<message>
<location line="+3"/>
<source>Generated coins must mature 120 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to "not accepted" and it won't be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source>
<translation>Wygenerowane monety muszą zaczekać 120 bloków zanim będzie można je wydać. Kiedy wygenerowałeś ten blok, został on wyemitowany do sieci, aby dodać go do łańcucha bloków. Jeśli to się nie powiedzie nie zostanie on zaakceptowany i wygenerowanych monet nie będzie można wysyłać. Może się to czasami zdarzyć jeśli inny węzeł wygeneruje blok tuż przed tobą.</translation>
</message>
<message>
<location line="+7"/>
<source>Debug information</source>
<translation>Informacje debugowania</translation>
</message>
<message>
<location line="+8"/>
<source>Transaction</source>
<translation>Transakcja</translation>
</message>
<message>
<location line="+3"/>
<source>Inputs</source>
<translation>Wejścia</translation>
</message>
<message>
<location line="+23"/>
<source>Amount</source>
<translation>Kwota</translation>
</message>
<message>
<location line="+1"/>
<source>true</source>
<translation>prawda</translation>
</message>
<message>
<location line="+0"/>
<source>false</source>
<translation>fałsz</translation>
</message>
<message>
<location line="-209"/>
<source>, has not been successfully broadcast yet</source>
<translation>, nie został jeszcze pomyślnie wyemitowany</translation>
</message>
<message numerus="yes">
<location line="-35"/>
<source>Open for %n more block(s)</source>
<translation><numerusform>Otwórz dla %n bloku</numerusform><numerusform>Otwórz dla %n następnych bloków</numerusform><numerusform>Otwórz dla %n następnych bloków</numerusform></translation>
</message>
<message>
<location line="+70"/>
<source>unknown</source>
<translation>nieznany</translation>
</message>
</context>
<context>
<name>TransactionDescDialog</name>
<message>
<location filename="../forms/transactiondescdialog.ui" line="+14"/>
<source>Transaction details</source>
<translation>Szczegóły transakcji</translation>
</message>
<message>
<location line="+6"/>
<source>This pane shows a detailed description of the transaction</source>
<translation>Ten panel pokazuje szczegółowy opis transakcji</translation>
</message>
</context>
<context>
<name>TransactionTableModel</name>
<message>
<location filename="../transactiontablemodel.cpp" line="+225"/>
<source>Date</source>
<translation>Data</translation>
</message>
<message>
<location line="+0"/>
<source>Type</source>
<translation>Typ</translation>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Adres</translation>
</message>
<message>
<location line="+0"/>
<source>Amount</source>
<translation>Kwota</translation>
</message>
<message numerus="yes">
<location line="+57"/>
<source>Open for %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform>Otwórz dla %n następnych bloków</numerusform></translation>
</message>
<message>
<location line="+3"/>
<source>Open until %1</source>
<translation>Otwórz do %1</translation>
</message>
<message>
<location line="+3"/>
<source>Offline (%1 confirmations)</source>
<translation>Offline (%1 potwierdzeń)</translation>
</message>
<message>
<location line="+3"/>
<source>Unconfirmed (%1 of %2 confirmations)</source>
<translation>Niezatwierdzony (%1 z %2 potwierdzeń)</translation>
</message>
<message>
<location line="+3"/>
<source>Confirmed (%1 confirmations)</source>
<translation>Zatwierdzony (%1 potwierdzeń)</translation>
</message>
<message numerus="yes">
<location line="+8"/>
<source>Mined balance will be available when it matures in %n more block(s)</source>
<translation><numerusform>Balans wydobycia będzie dostępny zaraz po tym, jak dojrzeje. Pozostał %n blok</numerusform><numerusform>Balans wydobycia będzie dostępny zaraz po tym, jak dojrzeje. Pozostało %n bloków</numerusform><numerusform>Balans wydobycia będzie dostępny zaraz po tym, jak dojrzeje. Pozostało %n bloków</numerusform></translation>
</message>
<message>
<location line="+5"/>
<source>This block was not received by any other nodes and will probably not be accepted!</source>
<translation>Ten blok nie został odebrany przez jakikolwiek inny węzeł i prawdopodobnie nie zostanie zaakceptowany!</translation>
</message>
<message>
<location line="+3"/>
<source>Generated but not accepted</source>
<translation>Wygenerowano ale nie zaakceptowano</translation>
</message>
<message>
<location line="+43"/>
<source>Received with</source>
<translation>Otrzymane przez</translation>
</message>
<message>
<location line="+2"/>
<source>Received from</source>
<translation>Odebrano od</translation>
</message>
<message>
<location line="+3"/>
<source>Sent to</source>
<translation>Wysłano do</translation>
</message>
<message>
<location line="+2"/>
<source>Payment to yourself</source>
<translation>Płatność do siebie</translation>
</message>
<message>
<location line="+2"/>
<source>Mined</source>
<translation>Wydobyto</translation>
</message>
<message>
<location line="+38"/>
<source>(n/a)</source>
<translation>(brak)</translation>
</message>
<message>
<location line="+199"/>
<source>Transaction status. Hover over this field to show number of confirmations.</source>
<translation>Status transakcji. Najedź na pole, aby zobaczyć liczbę potwierdzeń.</translation>
</message>
<message>
<location line="+2"/>
<source>Date and time that the transaction was received.</source>
<translation>Data i czas odebrania transakcji.</translation>
</message>
<message>
<location line="+2"/>
<source>Type of transaction.</source>
<translation>Rodzaj transakcji.</translation>
</message>
<message>
<location line="+2"/>
<source>Destination address of transaction.</source>
<translation>Adres docelowy transakcji.</translation>
</message>
<message>
<location line="+2"/>
<source>Amount removed from or added to balance.</source>
<translation>Kwota usunięta z lub dodana do konta.</translation>
</message>
</context>
<context>
<name>TransactionView</name>
<message>
<location filename="../transactionview.cpp" line="+52"/>
<location line="+16"/>
<source>All</source>
<translation>Wszystko</translation>
</message>
<message>
<location line="-15"/>
<source>Today</source>
<translation>Dzisiaj</translation>
</message>
<message>
<location line="+1"/>
<source>This week</source>
<translation>W tym tygodniu</translation>
</message>
<message>
<location line="+1"/>
<source>This month</source>
<translation>W tym miesiącu</translation>
</message>
<message>
<location line="+1"/>
<source>Last month</source>
<translation>W zeszłym miesiącu</translation>
</message>
<message>
<location line="+1"/>
<source>This year</source>
<translation>W tym roku</translation>
</message>
<message>
<location line="+1"/>
<source>Range...</source>
<translation>Zakres...</translation>
</message>
<message>
<location line="+11"/>
<source>Received with</source>
<translation>Otrzymane przez</translation>
</message>
<message>
<location line="+2"/>
<source>Sent to</source>
<translation>Wysłano do</translation>
</message>
<message>
<location line="+2"/>
<source>To yourself</source>
<translation>Do siebie</translation>
</message>
<message>
<location line="+1"/>
<source>Mined</source>
<translation>Wydobyto</translation>
</message>
<message>
<location line="+1"/>
<source>Other</source>
<translation>Inne</translation>
</message>
<message>
<location line="+7"/>
<source>Enter address or label to search</source>
<translation>Wprowadź adres albo etykietę żeby wyszukać</translation>
</message>
<message>
<location line="+7"/>
<source>Min amount</source>
<translation>Min suma</translation>
</message>
<message>
<location line="+34"/>
<source>Copy address</source>
<translation>Kopiuj adres</translation>
</message>
<message>
<location line="+1"/>
<source>Copy label</source>
<translation>Kopiuj etykietę</translation>
</message>
<message>
<location line="+1"/>
<source>Copy amount</source>
<translation>Kopiuj kwotę</translation>
</message>
<message>
<location line="+1"/>
<source>Copy transaction ID</source>
<translation>Skopiuj ID transakcji</translation>
</message>
<message>
<location line="+1"/>
<source>Edit label</source>
<translation>Edytuj etykietę</translation>
</message>
<message>
<location line="+1"/>
<source>Show transaction details</source>
<translation>Pokaż szczegóły transakcji</translation>
</message>
<message>
<location line="+139"/>
<source>Export Transaction Data</source>
<translation>Eksportuj Dane Transakcyjne</translation>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation>CSV (rozdzielany przecinkami)</translation>
</message>
<message>
<location line="+8"/>
<source>Confirmed</source>
<translation>Potwierdzony</translation>
</message>
<message>
<location line="+1"/>
<source>Date</source>
<translation>Data</translation>
</message>
<message>
<location line="+1"/>
<source>Type</source>
<translation>Typ</translation>
</message>
<message>
<location line="+1"/>
<source>Label</source>
<translation>Etykieta</translation>
</message>
<message>
<location line="+1"/>
<source>Address</source>
<translation>Adres</translation>
</message>
<message>
<location line="+1"/>
<source>Amount</source>
<translation>Kwota</translation>
</message>
<message>
<location line="+1"/>
<source>ID</source>
<translation>ID</translation>
</message>
<message>
<location line="+4"/>
<source>Error exporting</source>
<translation>Błąd podczas eksportowania</translation>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation>Błąd zapisu do pliku %1.</translation>
</message>
<message>
<location line="+100"/>
<source>Range:</source>
<translation>Zakres:</translation>
</message>
<message>
<location line="+8"/>
<source>to</source>
<translation>do</translation>
</message>
</context>
<context>
<name>WalletModel</name>
<message>
<location filename="../walletmodel.cpp" line="+193"/>
<source>Send Coins</source>
<translation>Wyślij płatność</translation>
</message>
</context>
<context>
<name>WalletView</name>
<message>
<location filename="../walletview.cpp" line="+42"/>
<source>&Export</source>
<translation>&Eksportuj</translation>
</message>
<message>
<location line="+1"/>
<source>Export the data in the current tab to a file</source>
<translation>Eksportuj dane z aktywnej karty do pliku</translation>
</message>
<message>
<location line="+193"/>
<source>Backup Wallet</source>
<translation>Kopia Zapasowa Portfela</translation>
</message>
<message>
<location line="+0"/>
<source>Wallet Data (*.dat)</source>
<translation>Dane Portfela (*.dat)</translation>
</message>
<message>
<location line="+3"/>
<source>Backup Failed</source>
<translation>Nie udało się wykonać kopii zapasowej</translation>
</message>
<message>
<location line="+0"/>
<source>There was an error trying to save the wallet data to the new location.</source>
<translation>Wystąpił błąd przy zapisywaniu portfela do nowej lokalizacji.</translation>
</message>
<message>
<location line="+4"/>
<source>Backup Successful</source>
<translation>Wykonano Kopię Zapasową</translation>
</message>
<message>
<location line="+0"/>
<source>The wallet data was successfully saved to the new location.</source>
<translation>Dane portfela zostały poprawnie zapisane w nowym miejscu.</translation>
</message>
</context>
<context>
<name>bitcoin-core</name>
<message>
<location filename="../bitcoinstrings.cpp" line="+94"/>
<source>IMAcredit version</source>
<translation>Wersja IMAcredit</translation>
</message>
<message>
<location line="+102"/>
<source>Usage:</source>
<translation>Użycie:</translation>
</message>
<message>
<location line="-29"/>
<source>Send command to -server or imacreditd</source>
<translation>Wyślij polecenie do -server lub imacreditd</translation>
</message>
<message>
<location line="-23"/>
<source>List commands</source>
<translation>Lista poleceń</translation>
</message>
<message>
<location line="-12"/>
<source>Get help for a command</source>
<translation>Uzyskaj pomoc do polecenia</translation>
</message>
<message>
<location line="+24"/>
<source>Options:</source>
<translation>Opcje:</translation>
</message>
<message>
<location line="+24"/>
<source>Specify configuration file (default: imacredit.conf)</source>
<translation>Wskaż plik konfiguracyjny (domyślnie: imacredit.conf)</translation>
</message>
<message>
<location line="+3"/>
<source>Specify pid file (default: imacreditd.pid)</source>
<translation>Wskaż plik pid (domyślnie: imacredit.pid)</translation>
</message>
<message>
<location line="-1"/>
<source>Specify data directory</source>
<translation>Wskaż folder danych</translation>
</message>
<message>
<location line="-9"/>
<source>Set database cache size in megabytes (default: 25)</source>
<translation>Ustaw rozmiar w megabajtach cache-u bazy danych (domyślnie: 25)</translation>
</message>
<message>
<location line="-28"/>
<source>Listen for connections on <port> (default: 9333 or testnet: 19333)</source>
<translation>Nasłuchuj połączeń na <port> (domyślnie: 9333 lub testnet: 19333)</translation>
</message>
<message>
<location line="+5"/>
<source>Maintain at most <n> connections to peers (default: 125)</source>
<translation>Utrzymuj maksymalnie <n> połączeń z peerami (domyślnie: 125)</translation>
</message>
<message>
<location line="-48"/>
<source>Connect to a node to retrieve peer addresses, and disconnect</source>
<translation>Podłącz się do węzła aby otrzymać adresy peerów i rozłącz</translation>
</message>
<message>
<location line="+82"/>
<source>Specify your own public address</source>
<translation>Podaj swój publiczny adres</translation>
</message>
<message>
<location line="+3"/>
<source>Threshold for disconnecting misbehaving peers (default: 100)</source>
<translation>Próg po którym nastąpi rozłączenie nietrzymających się zasad peerów (domyślnie: 100)</translation>
</message>
<message>
<location line="-134"/>
<source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source>
<translation>Czas w sekundach, przez jaki nietrzymający się zasad peerzy nie będą mogli ponownie się podłączyć (domyślnie: 86400)</translation>
</message>
<message>
<location line="-29"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source>
<translation>Wystąpił błąd podczas ustawiania portu RPC %u w tryb nasłuchu: %s</translation>
</message>
<message>
<location line="+27"/>
<source>Listen for JSON-RPC connections on <port> (default: 9332 or testnet: 19332)</source>
<translation>Nasłuchuj połączeń JSON-RPC na <port> (domyślnie: 9332 or testnet: 19332)</translation>
</message>
<message>
<location line="+37"/>
<source>Accept command line and JSON-RPC commands</source>
<translation>Akceptuj linię poleceń oraz polecenia JSON-RPC</translation>
</message>
<message>
<location line="+76"/>
<source>Run in the background as a daemon and accept commands</source>
<translation>Uruchom w tle jako daemon i przyjmuj polecenia</translation>
</message>
<message>
<location line="+37"/>
<source>Use the test network</source>
<translation>Użyj sieci testowej</translation>
</message>
<message>
<location line="-112"/>
<source>Accept connections from outside (default: 1 if no -proxy or -connect)</source>
<translation>Akceptuj połączenia z zewnątrz (domyślnie: 1 jeśli nie ustawiono -proxy lub -connect)</translation>
</message>
<message>
<location line="-80"/>
<source>%s, you must set a rpcpassword in the configuration file:
%s
It is recommended you use the following random password:
rpcuser=imacreditrpc
rpcpassword=%s
(you do not need to remember this password)
The username and password MUST NOT be the same.
If the file does not exist, create it with owner-readable-only file permissions.
It is also recommended to set alertnotify so you are notified of problems;
for example: alertnotify=echo %%s | mail -s "IMAcredit Alert" admin@foo.com
</source>
<translation>%s, musisz ustawić rpcpassword w pliku konfiguracyjnym:⏎
%s⏎
Zalecane jest użycie losowego hasła:⏎
rpcuser=imacreditrpc⏎
rpcpassword=%s⏎
(nie musisz pamiętać tego hasła)⏎
Użytkownik i hasło nie mogą być takie same.⏎
Jeśli plik nie istnieje, utwórz go z uprawnieniami tylko-do-odczytu dla właściciela.⏎
Zalecane jest ustawienie alertnotify aby poinformować o problemach:⏎
na przykład: alertnotify=echo %%s | mail -s "Alarm IMAcredit" admin@foo.com⏎</translation>
</message>
<message>
<location line="+17"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source>
<translation>Wystąpił błąd podczas ustawiania portu RPC %u w tryb nasłuchu dla IPv6, korzystam z IPv4: %s</translation>
</message>
<message>
<location line="+3"/>
<source>Bind to given address and always listen on it. Use [host]:port notation for IPv6</source>
<translation>Skojarz z podanym adresem. Użyj formatu [host]:port dla IPv6 </translation>
</message>
<message>
<location line="+3"/>
<source>Cannot obtain a lock on data directory %s. IMAcredit is probably already running.</source>
<translation>Nie można zablokować folderu danych %s. IMAcredit prawdopodobnie już działa.</translation>
</message>
<message>
<location line="+3"/>
<source>Error: The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source>
<translation>Uruchom polecenie przy otrzymaniu odpowiedniego powiadomienia (%s w poleceniu jest podstawiane za komunikat)</translation>
</message>
<message>
<location line="+3"/>
<source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source>
<translation>Wykonaj polecenie, kiedy transakcja portfela ulegnie zmianie (%s w poleceniu zostanie zastąpione przez TxID)</translation>
</message>
<message>
<location line="+11"/>
<source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source>
<translation>Ustaw maksymalny rozmiar transakcji o wysokim priorytecie/niskiej prowizji w bajtach (domyślnie: 27000)</translation>
</message>
<message>
<location line="+6"/>
<source>This is a pre-release test build - use at your own risk - do not use for mining or merchant applications</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source>
<translation>Ostrzeżenie: -paytxfee jest bardzo duży. To jest prowizja za transakcje, którą płacisz, gdy wysyłasz monety.</translation>
</message>
<message>
<location line="+3"/>
<source>Warning: Displayed transactions may not be correct! You may need to upgrade, or other nodes may need to upgrade.</source>
<translation>Uwaga: Wyświetlone transakcje mogą nie być poprawne! Możliwe, że potrzebujesz aktualizacji bądź inne węzły jej potrzebują</translation>
</message>
<message>
<location line="+3"/>
<source>Warning: Please check that your computer's date and time are correct! If your clock is wrong IMAcredit will not work properly.</source>
<translation>Uwaga: Sprawdź czy data i czas na Twoim komputerze są prawidłowe! Jeśli nie to IMAcredit nie będzie działał prawidłowo.</translation>
</message>
<message>
<location line="+3"/>
<source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source>
<translation>Ostrzeżenie: błąd odczytu wallet.dat! Wszystkie klucze zostały odczytane, ale może brakować pewnych danych transakcji lub wpisów w książce adresowej lub mogą one być nieprawidłowe.</translation>
</message>
<message>
<location line="+3"/>
<source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source>
<translation>Ostrzeżenie: Odtworzono dane z uszkodzonego pliku wallet.dat! Oryginalny wallet.dat został zapisany jako wallet.{timestamp}.bak w %s; jeśli twoje saldo lub transakcje są niepoprawne powinieneś odtworzyć kopię zapasową.</translation>
</message>
<message>
<location line="+14"/>
<source>Attempt to recover private keys from a corrupt wallet.dat</source>
<translation>Próbuj odzyskać klucze prywatne z uszkodzonego wallet.dat</translation>
</message>
<message>
<location line="+2"/>
<source>Block creation options:</source>
<translation>Opcje tworzenia bloku:</translation>
</message>
<message>
<location line="+5"/>
<source>Connect only to the specified node(s)</source>
<translation>Łącz tylko do wskazanego węzła</translation>
</message>
<message>
<location line="+3"/>
<source>Corrupted block database detected</source>
<translation>Wykryto uszkodzoną bazę bloków</translation>
</message>
<message>
<location line="+1"/>
<source>Discover own IP address (default: 1 when listening and no -externalip)</source>
<translation>Odkryj własny adres IP (domyślnie: 1 kiedy w trybie nasłuchu i brak -externalip )</translation>
</message>
<message>
<location line="+1"/>
<source>Do you want to rebuild the block database now?</source>
<translation>Czy chcesz teraz przebudować bazę bloków?</translation>
</message>
<message>
<location line="+2"/>
<source>Error initializing block database</source>
<translation>Błąd inicjowania bloku bazy danych</translation>
</message>
<message>
<location line="+1"/>
<source>Error initializing wallet database environment %s!</source>
<translation>Błąd inicjowania środowiska bazy portfela %s!</translation>
</message>
<message>
<location line="+1"/>
<source>Error loading block database</source>
<translation>Błąd ładowania bazy bloków</translation>
</message>
<message>
<location line="+4"/>
<source>Error opening block database</source>
<translation>Błąd ładowania bazy bloków</translation>
</message>
<message>
<location line="+2"/>
<source>Error: Disk space is low!</source>
<translation>Błąd: Mało miejsca na dysku!</translation>
</message>
<message>
<location line="+1"/>
<source>Error: Wallet locked, unable to create transaction!</source>
<translation>Błąd: Zablokowany portfel, nie można utworzyć transakcji!</translation>
</message>
<message>
<location line="+1"/>
<source>Error: system error: </source>
<translation>Błąd: błąd systemu:</translation>
</message>
<message>
<location line="+1"/>
<source>Failed to listen on any port. Use -listen=0 if you want this.</source>
<translation>Próba otwarcia jakiegokolwiek portu nie powiodła się. Użyj -listen=0 jeśli tego chcesz.</translation>
</message>
<message>
<location line="+1"/>
<source>Failed to read block info</source>
<translation>Nie udało się odczytać informacji bloku</translation>
</message>
<message>
<location line="+1"/>
<source>Failed to read block</source>
<translation>Nie udało się odczytać bloku.</translation>
</message>
<message>
<location line="+1"/>
<source>Failed to sync block index</source>
<translation>Nie udało się zsynchronizować indeksu bloków.</translation>
</message>
<message>
<location line="+1"/>
<source>Failed to write block index</source>
<translation>Nie udało się zapisać indeksu bloków.</translation>
</message>
<message>
<location line="+1"/>
<source>Failed to write block info</source>
<translation>Nie udało się zapisać informacji bloku</translation>
</message>
<message>
<location line="+1"/>
<source>Failed to write block</source>
<translation>Nie udało się zapisać bloku</translation>
</message>
<message>
<location line="+1"/>
<source>Failed to write file info</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write to coin database</source>
<translation>Nie udało się zapisać do bazy monet</translation>
</message>
<message>
<location line="+1"/>
<source>Failed to write transaction index</source>
<translation>Nie udało się zapisać indeksu transakcji</translation>
</message>
<message>
<location line="+1"/>
<source>Failed to write undo data</source>
<translation>Nie udało się zapisać danych odtwarzających</translation>
</message>
<message>
<location line="+2"/>
<source>Find peers using DNS lookup (default: 1 unless -connect)</source>
<translation>Wyszukaj połączenia wykorzystując zapytanie DNS (domyślnie 1 jeśli nie użyto -connect)</translation>
</message>
<message>
<location line="+1"/>
<source>Generate coins (default: 0)</source>
<translation>Generuj monety (domyślnie: 0)</translation>
</message>
<message>
<location line="+2"/>
<source>How many blocks to check at startup (default: 288, 0 = all)</source>
<translation>Ile bloków sprawdzić przy starcie (domyślnie: 288, 0 = wszystkie)</translation>
</message>
<message>
<location line="+1"/>
<source>How thorough the block verification is (0-4, default: 3)</source>
<translation>Jak dokładna jest weryfikacja bloku (0-4, domyślnie: 3)</translation>
</message>
<message>
<location line="+19"/>
<source>Not enough file descriptors available.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Rebuild block chain index from current blk000??.dat files</source>
<translation>Odbuduj indeks łańcucha bloków z obecnych plików blk000??.dat</translation>
</message>
<message>
<location line="+16"/>
<source>Set the number of threads to service RPC calls (default: 4)</source>
<translation>Ustaw liczbę wątków do odwołań RPC (domyślnie: 4)</translation>
</message>
<message>
<location line="+26"/>
<source>Verifying blocks...</source>
<translation>Weryfikacja bloków...</translation>
</message>
<message>
<location line="+1"/>
<source>Verifying wallet...</source>
<translation>Weryfikacja portfela...</translation>
</message>
<message>
<location line="-69"/>
<source>Imports blocks from external blk000??.dat file</source>
<translation>Importuj bloki z zewnętrznego pliku blk000??.dat</translation>
</message>
<message>
<location line="-76"/>
<source>Set the number of script verification threads (up to 16, 0 = auto, <0 = leave that many cores free, default: 0)</source>
<translation>Ustaw liczbę wątków skryptu weryfikacji (do 16, 0 = auto, <0 = zostawia taką ilość rdzenie wolnych, domyślnie: 0)</translation>
</message>
<message>
<location line="+77"/>
<source>Information</source>
<translation>Informacja</translation>
</message>
<message>
<location line="+3"/>
<source>Invalid -tor address: '%s'</source>
<translation>Nieprawidłowy adres -tor: '%s'</translation>
</message>
<message>
<location line="+1"/>
<source>Invalid amount for -minrelaytxfee=<amount>: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Invalid amount for -mintxfee=<amount>: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Maintain a full transaction index (default: 0)</source>
<translation>Utrzymuj pełen indeks transakcji (domyślnie: 0)</translation>
</message>
<message>
<location line="+2"/>
<source>Maximum per-connection receive buffer, <n>*1000 bytes (default: 5000)</source>
<translation>Maksymalny bufor odbioru na połączenie, <n>*1000 bajtów (domyślnie: 5000)</translation>
</message>
<message>
<location line="+1"/>
<source>Maximum per-connection send buffer, <n>*1000 bytes (default: 1000)</source>
<translation>Maksymalny bufor wysyłu na połączenie, <n>*1000 bajtów (domyślnie: 1000)</translation>
</message>
<message>
<location line="+2"/>
<source>Only accept block chain matching built-in checkpoints (default: 1)</source>
<translation>Akceptuj tylko łańcuch bloków zgodny z wbudowanymi punktami kontrolnymi (domyślnie: 1)</translation>
</message>
<message>
<location line="+1"/>
<source>Only connect to nodes in network <net> (IPv4, IPv6 or Tor)</source>
<translation>Łącz z węzłami tylko w sieci <net> (IPv4, IPv6 lub Tor)</translation>
</message>
<message>
<location line="+2"/>
<source>Output extra debugging information. Implies all other -debug* options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Output extra network debugging information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Prepend debug output with timestamp</source>
<translation>Poprzedź informacje debugowania znacznikiem czasowym</translation>
</message>
<message>
<location line="+5"/>
<source>SSL options: (see the IMAcredit Wiki for SSL setup instructions)</source>
<translation>Opcje SSL: (odwiedź IMAcredit Wiki w celu uzyskania instrukcji)</translation>
</message>
<message>
<location line="+1"/>
<source>Select the version of socks proxy to use (4-5, default: 5)</source>
<translation>Wybierz używaną wersje socks serwera proxy (4-5, domyślnie:5)</translation>
</message>
<message>
<location line="+3"/>
<source>Send trace/debug info to console instead of debug.log file</source>
<translation>Wyślij informację/raport do konsoli zamiast do pliku debug.log.</translation>
</message>
<message>
<location line="+1"/>
<source>Send trace/debug info to debugger</source>
<translation>Wyślij informację/raport do debuggera.</translation>
</message>
<message>
<location line="+5"/>
<source>Set maximum block size in bytes (default: 250000)</source>
<translation>Ustaw maksymalny rozmiar bloku w bajtach (domyślnie: 250000)</translation>
</message>
<message>
<location line="+1"/>
<source>Set minimum block size in bytes (default: 0)</source>
<translation>Ustaw minimalny rozmiar bloku w bajtach (domyślnie: 0)</translation>
</message>
<message>
<location line="+2"/>
<source>Shrink debug.log file on client startup (default: 1 when no -debug)</source>
<translation>Zmniejsz plik debug.log przy starcie programu (domyślnie: 1 jeśli nie użyto -debug)</translation>
</message>
<message>
<location line="+1"/>
<source>Signing transaction failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Specify connection timeout in milliseconds (default: 5000)</source>
<translation>Wskaż czas oczekiwania bezczynności połączenia w milisekundach (domyślnie: 5000)</translation>
</message>
<message>
<location line="+4"/>
<source>System error: </source>
<translation>Błąd systemu:</translation>
</message>
<message>
<location line="+4"/>
<source>Transaction amount too small</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Transaction amounts must be positive</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Transaction too large</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Use UPnP to map the listening port (default: 0)</source>
<translation>Używaj UPnP do mapowania portu nasłuchu (domyślnie: 0)</translation>
</message>
<message>
<location line="+1"/>
<source>Use UPnP to map the listening port (default: 1 when listening)</source>
<translation>Używaj UPnP do mapowania portu nasłuchu (domyślnie: 1 gdy nasłuchuje)</translation>
</message>
<message>
<location line="+1"/>
<source>Use proxy to reach tor hidden services (default: same as -proxy)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Username for JSON-RPC connections</source>
<translation>Nazwa użytkownika dla połączeń JSON-RPC</translation>
</message>
<message>
<location line="+4"/>
<source>Warning</source>
<translation>Ostrzeżenie</translation>
</message>
<message>
<location line="+1"/>
<source>Warning: This version is obsolete, upgrade required!</source>
<translation>Uwaga: Ta wersja jest przestarzała, aktualizacja wymagana!</translation>
</message>
<message>
<location line="+1"/>
<source>You need to rebuild the databases using -reindex to change -txindex</source>
<translation>Musisz przebudować bazę używając parametru -reindex aby zmienić -txindex</translation>
</message>
<message>
<location line="+1"/>
<source>wallet.dat corrupt, salvage failed</source>
<translation>wallet.dat uszkodzony, odtworzenie się nie powiodło</translation>
</message>
<message>
<location line="-50"/>
<source>Password for JSON-RPC connections</source>
<translation>Hasło do połączeń JSON-RPC</translation>
</message>
<message>
<location line="-67"/>
<source>Allow JSON-RPC connections from specified IP address</source>
<translation>Przyjmuj połączenia JSON-RPC ze wskazanego adresu IP</translation>
</message>
<message>
<location line="+76"/>
<source>Send commands to node running on <ip> (default: 127.0.0.1)</source>
<translation>Wysyłaj polecenia do węzła działającego na <ip> (domyślnie: 127.0.0.1)</translation>
</message>
<message>
<location line="-120"/>
<source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source>
<translation>Wykonaj polecenie kiedy najlepszy blok ulegnie zmianie (%s w komendzie zastanie zastąpione przez hash bloku)</translation>
</message>
<message>
<location line="+147"/>
<source>Upgrade wallet to latest format</source>
<translation>Zaktualizuj portfel do najnowszego formatu.</translation>
</message>
<message>
<location line="-21"/>
<source>Set key pool size to <n> (default: 100)</source>
<translation>Ustaw rozmiar puli kluczy na <n> (domyślnie: 100)</translation>
</message>
<message>
<location line="-12"/>
<source>Rescan the block chain for missing wallet transactions</source>
<translation>Przeskanuj blok łańcuchów żeby znaleźć zaginione transakcje portfela</translation>
</message>
<message>
<location line="+35"/>
<source>Use OpenSSL (https) for JSON-RPC connections</source>
<translation>Użyj OpenSSL (https) do połączeń JSON-RPC</translation>
</message>
<message>
<location line="-26"/>
<source>Server certificate file (default: server.cert)</source>
<translation>Plik certyfikatu serwera (domyślnie: server.cert)</translation>
</message>
<message>
<location line="+1"/>
<source>Server private key (default: server.pem)</source>
<translation>Klucz prywatny serwera (domyślnie: server.pem)</translation>
</message>
<message>
<location line="-151"/>
<source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source>
<translation>Aceptowalne szyfry (domyślnie: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</translation>
</message>
<message>
<location line="+165"/>
<source>This help message</source>
<translation>Ta wiadomość pomocy</translation>
</message>
<message>
<location line="+6"/>
<source>Unable to bind to %s on this computer (bind returned error %d, %s)</source>
<translation>Nie można przywiązać %s na tym komputerze (bind returned error %d, %s)</translation>
</message>
<message>
<location line="-91"/>
<source>Connect through socks proxy</source>
<translation>Łączy przez proxy socks</translation>
</message>
<message>
<location line="-10"/>
<source>Allow DNS lookups for -addnode, -seednode and -connect</source>
<translation>Zezwól -addnode, -seednode i -connect na łączenie się z serwerem DNS</translation>
</message>
<message>
<location line="+55"/>
<source>Loading addresses...</source>
<translation>Wczytywanie adresów...</translation>
</message>
<message>
<location line="-35"/>
<source>Error loading wallet.dat: Wallet corrupted</source>
<translation>Błąd ładowania wallet.dat: Uszkodzony portfel</translation>
</message>
<message>
<location line="+1"/>
<source>Error loading wallet.dat: Wallet requires newer version of IMAcredit</source>
<translation>Błąd ładowania wallet.dat: Portfel wymaga nowszej wersji IMAcredit</translation>
</message>
<message>
<location line="+93"/>
<source>Wallet needed to be rewritten: restart IMAcredit to complete</source>
<translation>Portfel wymaga przepisania: zrestartuj IMAcredita żeby ukończyć</translation>
</message>
<message>
<location line="-95"/>
<source>Error loading wallet.dat</source>
<translation>Błąd ładowania wallet.dat</translation>
</message>
<message>
<location line="+28"/>
<source>Invalid -proxy address: '%s'</source>
<translation>Nieprawidłowy adres -proxy: '%s'</translation>
</message>
<message>
<location line="+56"/>
<source>Unknown network specified in -onlynet: '%s'</source>
<translation>Nieznana sieć w -onlynet: '%s'</translation>
</message>
<message>
<location line="-1"/>
<source>Unknown -socks proxy version requested: %i</source>
<translation>Nieznana wersja proxy w -socks: %i</translation>
</message>
<message>
<location line="-96"/>
<source>Cannot resolve -bind address: '%s'</source>
<translation>Nie można uzyskać adresu -bind: '%s'</translation>
</message>
<message>
<location line="+1"/>
<source>Cannot resolve -externalip address: '%s'</source>
<translation>Nie można uzyskać adresu -externalip: '%s'</translation>
</message>
<message>
<location line="+44"/>
<source>Invalid amount for -paytxfee=<amount>: '%s'</source>
<translation>Nieprawidłowa kwota dla -paytxfee=<amount>: '%s'</translation>
</message>
<message>
<location line="+1"/>
<source>Invalid amount</source>
<translation>Nieprawidłowa kwota</translation>
</message>
<message>
<location line="-6"/>
<source>Insufficient funds</source>
<translation>Niewystarczające środki</translation>
</message>
<message>
<location line="+10"/>
<source>Loading block index...</source>
<translation>Ładowanie indeksu bloku...</translation>
</message>
<message>
<location line="-57"/>
<source>Add a node to connect to and attempt to keep the connection open</source>
<translation>Dodaj węzeł do łączenia się and attempt to keep the connection open</translation>
</message>
<message>
<location line="-25"/>
<source>Unable to bind to %s on this computer. IMAcredit is probably already running.</source>
<translation>Nie można przywiązać %s na tym komputerze. IMAcredit prawdopodobnie już działa.</translation>
</message>
<message>
<location line="+64"/>
<source>Fee per KB to add to transactions you send</source>
<translation>
</translation>
</message>
<message>
<location line="+19"/>
<source>Loading wallet...</source>
<translation>Wczytywanie portfela...</translation>
</message>
<message>
<location line="-52"/>
<source>Cannot downgrade wallet</source>
<translation>Nie można dezaktualizować portfela</translation>
</message>
<message>
<location line="+3"/>
<source>Cannot write default address</source>
<translation>Nie można zapisać domyślnego adresu</translation>
</message>
<message>
<location line="+64"/>
<source>Rescanning...</source>
<translation>Ponowne skanowanie...</translation>
</message>
<message>
<location line="-57"/>
<source>Done loading</source>
<translation>Wczytywanie zakończone</translation>
</message>
<message>
<location line="+82"/>
<source>To use the %s option</source>
<translation>Aby użyć opcji %s</translation>
</message>
<message>
<location line="-74"/>
<source>Error</source>
<translation>Błąd</translation>
</message>
<message>
<location line="-31"/>
<source>You must set rpcpassword=<password> in the configuration file:
%s
If the file does not exist, create it with owner-readable-only file permissions.</source>
<translation>Musisz ustawić rpcpassword=<hasło> w pliku configuracyjnym:
%s
Jeżeli plik nie istnieje, utwórz go z uprawnieniami właściciela-tylko-do-odczytu.</translation>
</message>
</context>
</TS>
| {
"content_hash": "54ee780731bbd0ff309e59f865c27fa0",
"timestamp": "",
"source": "github",
"line_count": 2938,
"max_line_length": 395,
"avg_line_length": 39.24812797821647,
"alnum_prop": 0.6327496943049665,
"repo_name": "IMAcredit/imacredit",
"id": "eecf110fbfc943f073d7a3a0a8a4058fd9bd3969",
"size": "116384",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/qt/locale/bitcoin_pl.ts",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "32576"
},
{
"name": "C++",
"bytes": "2627870"
},
{
"name": "CSS",
"bytes": "1127"
},
{
"name": "Groff",
"bytes": "18406"
},
{
"name": "HTML",
"bytes": "50615"
},
{
"name": "Makefile",
"bytes": "13723"
},
{
"name": "NSIS",
"bytes": "6027"
},
{
"name": "Objective-C",
"bytes": "1052"
},
{
"name": "Objective-C++",
"bytes": "5864"
},
{
"name": "Python",
"bytes": "69717"
},
{
"name": "QMake",
"bytes": "15573"
},
{
"name": "Shell",
"bytes": "13234"
}
],
"symlink_target": ""
} |
require("firecast.lua");
local __o_rrpgObjs = require("rrpgObjs.lua");
require("rrpgGUI.lua");
require("rrpgDialogs.lua");
require("rrpgLFM.lua");
require("ndb.lua");
require("locale.lua");
local __o_Utils = require("utils.lua");
local function constructNew_frmFichaRPGmeister2_svg()
local obj = GUI.fromHandle(_obj_newObject("form"));
local self = obj;
local sheet = nil;
rawset(obj, "_oldSetNodeObjectFunction", rawget(obj, "setNodeObject"));
function obj:setNodeObject(nodeObject)
sheet = nodeObject;
self.sheet = nodeObject;
self:_oldSetNodeObjectFunction(nodeObject);
end;
function obj:setNodeDatabase(nodeObject)
self:setNodeObject(nodeObject);
end;
_gui_assignInitialParentForForm(obj.handle);
obj:beginUpdate();
obj:setName("frmFichaRPGmeister2_svg");
obj:setAlign("client");
obj:setMargins({top=1});
local i;
local max;
local fimRolagem;
local array;
local decisivo;
local dano;
local danoCritico;
local function pos(rolado)
local dado = rolado.ops[1].resultados[1];
local mesa = Firecast.getMesaDe(sheet);
local valor = rolado.resultado;
if (dado>=decisivo) then
mesa.activeChat:rolarDados(rolagem, "Confirmando Critico");
end;
if dado>1 then
mesa.activeChat:rolarDados(dano, "Dano do Ataque " .. i);
end;
if dado>=decisivo then
mesa.activeChat:rolarDados(danoCritico, "Dano Extra do Critico " .. i);
end;
i = i+1;
local mod = tonumber(array[i]);
if mod~=nil then
rolagem = Firecast.interpretarRolagem("1d20 + " .. mod);
if sheet.buffAtaque ~= nil then
rolagem = rolagem:concatenar(sheet.buffAtaque);
end;
mesa.activeChat:rolarDados(rolagem, "Ataque " .. i .. " com " .. armamento .. " de " .. (sheet.nome or "NOME"),
function (rolado)
pos(rolado)
end);
else
fimRolagem = true;
end;
end;
obj.scrollBox1 = GUI.fromHandle(_obj_newObject("scrollBox"));
obj.scrollBox1:setParent(obj);
obj.scrollBox1:setAlign("client");
obj.scrollBox1:setName("scrollBox1");
obj.layout1 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout1:setParent(obj.scrollBox1);
obj.layout1:setLeft(0);
obj.layout1:setTop(0);
obj.layout1:setWidth(1234);
obj.layout1:setHeight(1900);
obj.layout1:setName("layout1");
obj.rectangle1 = GUI.fromHandle(_obj_newObject("rectangle"));
obj.rectangle1:setParent(obj.layout1);
obj.rectangle1:setAlign("client");
obj.rectangle1:setColor("#0000007F");
obj.rectangle1:setName("rectangle1");
obj.layout2 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout2:setParent(obj.layout1);
obj.layout2:setLeft(2);
obj.layout2:setTop(2);
obj.layout2:setWidth(1232);
obj.layout2:setHeight(92);
obj.layout2:setName("layout2");
obj.rectangle2 = GUI.fromHandle(_obj_newObject("rectangle"));
obj.rectangle2:setParent(obj.layout2);
obj.rectangle2:setAlign("client");
obj.rectangle2:setColor("black");
obj.rectangle2:setName("rectangle2");
obj.label1 = GUI.fromHandle(_obj_newObject("label"));
obj.label1:setParent(obj.layout2);
obj.label1:setLeft(5);
obj.label1:setTop(5);
obj.label1:setWidth(50);
obj.label1:setHeight(25);
obj.label1:setText("NOME");
obj.label1:setName("label1");
obj.edit1 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit1:setParent(obj.layout2);
obj.edit1:setVertTextAlign("center");
obj.edit1:setLeft(55);
obj.edit1:setTop(5);
obj.edit1:setWidth(225);
obj.edit1:setHeight(25);
obj.edit1:setField("nome1");
obj.edit1:setName("edit1");
obj.label2 = GUI.fromHandle(_obj_newObject("label"));
obj.label2:setParent(obj.layout2);
obj.label2:setLeft(5);
obj.label2:setTop(30);
obj.label2:setWidth(50);
obj.label2:setHeight(25);
obj.label2:setText("ARMA");
obj.label2:setName("label2");
obj.edit2 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit2:setParent(obj.layout2);
obj.edit2:setVertTextAlign("center");
obj.edit2:setLeft(55);
obj.edit2:setTop(30);
obj.edit2:setWidth(225);
obj.edit2:setHeight(25);
obj.edit2:setField("arma1");
obj.edit2:setName("edit2");
obj.label3 = GUI.fromHandle(_obj_newObject("label"));
obj.label3:setParent(obj.layout2);
obj.label3:setLeft(5);
obj.label3:setTop(55);
obj.label3:setWidth(50);
obj.label3:setHeight(25);
obj.label3:setText("TIPO");
obj.label3:setName("label3");
obj.edit3 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit3:setParent(obj.layout2);
obj.edit3:setVertTextAlign("center");
obj.edit3:setLeft(55);
obj.edit3:setTop(55);
obj.edit3:setWidth(225);
obj.edit3:setHeight(25);
obj.edit3:setField("tipo1");
obj.edit3:setName("edit3");
obj.button1 = GUI.fromHandle(_obj_newObject("button"));
obj.button1:setParent(obj.layout2);
obj.button1:setLeft(279);
obj.button1:setTop(6);
obj.button1:setWidth(73);
obj.button1:setText("ATAQUE");
obj.button1:setFontSize(11);
obj.button1:setName("button1");
obj.edit4 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit4:setParent(obj.layout2);
obj.edit4:setType("number");
obj.edit4:setVertTextAlign("center");
obj.edit4:setLeft(352);
obj.edit4:setTop(5);
obj.edit4:setWidth(82);
obj.edit4:setHeight(25);
obj.edit4:setField("ataque1");
obj.edit4:setName("edit4");
obj.checkBox1 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox1:setParent(obj.layout2);
obj.checkBox1:setLeft(434);
obj.checkBox1:setTop(6);
obj.checkBox1:setWidth(150);
obj.checkBox1:setField("double1");
obj.checkBox1:setText("Ataque Total");
obj.checkBox1:setName("checkBox1");
obj.dataLink1 = GUI.fromHandle(_obj_newObject("dataLink"));
obj.dataLink1:setParent(obj.layout2);
obj.dataLink1:setFields({'ataque1','double1'});
obj.dataLink1:setName("dataLink1");
obj.button2 = GUI.fromHandle(_obj_newObject("button"));
obj.button2:setParent(obj.layout2);
obj.button2:setLeft(279);
obj.button2:setTop(31);
obj.button2:setWidth(73);
obj.button2:setText("DANO");
obj.button2:setFontSize(11);
obj.button2:setName("button2");
obj.edit5 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit5:setParent(obj.layout2);
obj.edit5:setVertTextAlign("center");
obj.edit5:setLeft(352);
obj.edit5:setTop(30);
obj.edit5:setWidth(82);
obj.edit5:setHeight(25);
obj.edit5:setField("dano1");
obj.edit5:setName("edit5");
obj.button3 = GUI.fromHandle(_obj_newObject("button"));
obj.button3:setParent(obj.layout2);
obj.button3:setLeft(434);
obj.button3:setTop(31);
obj.button3:setWidth(60);
obj.button3:setText("CRITICO");
obj.button3:setFontSize(11);
obj.button3:setName("button3");
obj.edit6 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit6:setParent(obj.layout2);
obj.edit6:setVertTextAlign("center");
obj.edit6:setLeft(493);
obj.edit6:setTop(30);
obj.edit6:setWidth(82);
obj.edit6:setHeight(25);
obj.edit6:setField("danoCritico1");
obj.edit6:setName("edit6");
obj.label4 = GUI.fromHandle(_obj_newObject("label"));
obj.label4:setParent(obj.layout2);
obj.label4:setLeft(290);
obj.label4:setTop(55);
obj.label4:setWidth(70);
obj.label4:setHeight(25);
obj.label4:setText("DECISIVO");
obj.label4:setName("label4");
obj.edit7 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit7:setParent(obj.layout2);
obj.edit7:setVertTextAlign("center");
obj.edit7:setLeft(352);
obj.edit7:setTop(55);
obj.edit7:setWidth(82);
obj.edit7:setHeight(25);
obj.edit7:setField("decisivo1");
obj.edit7:setName("edit7");
obj.label5 = GUI.fromHandle(_obj_newObject("label"));
obj.label5:setParent(obj.layout2);
obj.label5:setLeft(445);
obj.label5:setTop(55);
obj.label5:setWidth(50);
obj.label5:setHeight(25);
obj.label5:setText("MULTI");
obj.label5:setName("label5");
obj.edit8 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit8:setParent(obj.layout2);
obj.edit8:setVertTextAlign("center");
obj.edit8:setLeft(493);
obj.edit8:setTop(55);
obj.edit8:setWidth(82);
obj.edit8:setHeight(25);
obj.edit8:setField("multiplicador1");
obj.edit8:setName("edit8");
obj.label6 = GUI.fromHandle(_obj_newObject("label"));
obj.label6:setParent(obj.layout2);
obj.label6:setLeft(580);
obj.label6:setTop(5);
obj.label6:setWidth(80);
obj.label6:setHeight(25);
obj.label6:setText("CATEGORIA");
obj.label6:setName("label6");
obj.edit9 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit9:setParent(obj.layout2);
obj.edit9:setVertTextAlign("center");
obj.edit9:setLeft(660);
obj.edit9:setTop(5);
obj.edit9:setWidth(200);
obj.edit9:setHeight(25);
obj.edit9:setField("categoria1");
obj.edit9:setName("edit9");
obj.label7 = GUI.fromHandle(_obj_newObject("label"));
obj.label7:setParent(obj.layout2);
obj.label7:setLeft(610);
obj.label7:setTop(30);
obj.label7:setWidth(50);
obj.label7:setHeight(25);
obj.label7:setText("OBS");
obj.label7:setName("label7");
obj.edit10 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit10:setParent(obj.layout2);
obj.edit10:setVertTextAlign("center");
obj.edit10:setLeft(660);
obj.edit10:setTop(30);
obj.edit10:setWidth(200);
obj.edit10:setHeight(25);
obj.edit10:setField("obs1");
obj.edit10:setName("edit10");
obj.label8 = GUI.fromHandle(_obj_newObject("label"));
obj.label8:setParent(obj.layout2);
obj.label8:setLeft(590);
obj.label8:setTop(55);
obj.label8:setWidth(80);
obj.label8:setHeight(25);
obj.label8:setText("MUNIÇÃO");
obj.label8:setName("label8");
obj.edit11 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit11:setParent(obj.layout2);
obj.edit11:setType("number");
obj.edit11:setVertTextAlign("center");
obj.edit11:setLeft(660);
obj.edit11:setTop(55);
obj.edit11:setWidth(69);
obj.edit11:setHeight(25);
obj.edit11:setField("municao1");
obj.edit11:setName("edit11");
obj.label9 = GUI.fromHandle(_obj_newObject("label"));
obj.label9:setParent(obj.layout2);
obj.label9:setLeft(735);
obj.label9:setTop(55);
obj.label9:setWidth(70);
obj.label9:setHeight(25);
obj.label9:setText("ALCANCE");
obj.label9:setName("label9");
obj.edit12 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit12:setParent(obj.layout2);
obj.edit12:setVertTextAlign("center");
obj.edit12:setLeft(795);
obj.edit12:setTop(55);
obj.edit12:setWidth(65);
obj.edit12:setHeight(25);
obj.edit12:setField("alcance1");
obj.edit12:setName("edit12");
obj.rectangle3 = GUI.fromHandle(_obj_newObject("rectangle"));
obj.rectangle3:setParent(obj.layout2);
obj.rectangle3:setLeft(869);
obj.rectangle3:setTop(4);
obj.rectangle3:setWidth(332);
obj.rectangle3:setHeight(77);
obj.rectangle3:setColor("black");
obj.rectangle3:setStrokeColor("white");
obj.rectangle3:setStrokeSize(1);
obj.rectangle3:setName("rectangle3");
obj.label10 = GUI.fromHandle(_obj_newObject("label"));
obj.label10:setParent(obj.layout2);
obj.label10:setLeft(870);
obj.label10:setTop(25);
obj.label10:setWidth(330);
obj.label10:setHeight(25);
obj.label10:setHorzTextAlign("center");
obj.label10:setText("Clique para adicionar imagem");
obj.label10:setName("label10");
obj.image1 = GUI.fromHandle(_obj_newObject("image"));
obj.image1:setParent(obj.layout2);
obj.image1:setField("imagemArma1");
obj.image1:setEditable(true);
obj.image1:setStyle("autoFit");
obj.image1:setLeft(870);
obj.image1:setTop(5);
obj.image1:setWidth(330);
obj.image1:setHeight(75);
obj.image1:setName("image1");
obj.button4 = GUI.fromHandle(_obj_newObject("button"));
obj.button4:setParent(obj.layout2);
obj.button4:setLeft(1205);
obj.button4:setTop(5);
obj.button4:setWidth(25);
obj.button4:setHeight(75);
obj.button4:setText("X");
obj.button4:setFontSize(15);
obj.button4:setHint("Apaga o ataque.");
obj.button4:setName("button4");
obj.layout3 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout3:setParent(obj.layout1);
obj.layout3:setLeft(2);
obj.layout3:setTop(97);
obj.layout3:setWidth(1232);
obj.layout3:setHeight(92);
obj.layout3:setName("layout3");
obj.rectangle4 = GUI.fromHandle(_obj_newObject("rectangle"));
obj.rectangle4:setParent(obj.layout3);
obj.rectangle4:setAlign("client");
obj.rectangle4:setColor("black");
obj.rectangle4:setName("rectangle4");
obj.label11 = GUI.fromHandle(_obj_newObject("label"));
obj.label11:setParent(obj.layout3);
obj.label11:setLeft(5);
obj.label11:setTop(5);
obj.label11:setWidth(50);
obj.label11:setHeight(25);
obj.label11:setText("NOME");
obj.label11:setName("label11");
obj.edit13 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit13:setParent(obj.layout3);
obj.edit13:setVertTextAlign("center");
obj.edit13:setLeft(55);
obj.edit13:setTop(5);
obj.edit13:setWidth(225);
obj.edit13:setHeight(25);
obj.edit13:setField("nome2");
obj.edit13:setName("edit13");
obj.label12 = GUI.fromHandle(_obj_newObject("label"));
obj.label12:setParent(obj.layout3);
obj.label12:setLeft(5);
obj.label12:setTop(30);
obj.label12:setWidth(50);
obj.label12:setHeight(25);
obj.label12:setText("ARMA");
obj.label12:setName("label12");
obj.edit14 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit14:setParent(obj.layout3);
obj.edit14:setVertTextAlign("center");
obj.edit14:setLeft(55);
obj.edit14:setTop(30);
obj.edit14:setWidth(225);
obj.edit14:setHeight(25);
obj.edit14:setField("arma2");
obj.edit14:setName("edit14");
obj.label13 = GUI.fromHandle(_obj_newObject("label"));
obj.label13:setParent(obj.layout3);
obj.label13:setLeft(5);
obj.label13:setTop(55);
obj.label13:setWidth(50);
obj.label13:setHeight(25);
obj.label13:setText("TIPO");
obj.label13:setName("label13");
obj.edit15 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit15:setParent(obj.layout3);
obj.edit15:setVertTextAlign("center");
obj.edit15:setLeft(55);
obj.edit15:setTop(55);
obj.edit15:setWidth(225);
obj.edit15:setHeight(25);
obj.edit15:setField("tipo2");
obj.edit15:setName("edit15");
obj.button5 = GUI.fromHandle(_obj_newObject("button"));
obj.button5:setParent(obj.layout3);
obj.button5:setLeft(279);
obj.button5:setTop(6);
obj.button5:setWidth(73);
obj.button5:setText("ATAQUE");
obj.button5:setFontSize(11);
obj.button5:setName("button5");
obj.edit16 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit16:setParent(obj.layout3);
obj.edit16:setType("number");
obj.edit16:setVertTextAlign("center");
obj.edit16:setLeft(352);
obj.edit16:setTop(5);
obj.edit16:setWidth(82);
obj.edit16:setHeight(25);
obj.edit16:setField("ataque2");
obj.edit16:setName("edit16");
obj.checkBox2 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox2:setParent(obj.layout3);
obj.checkBox2:setLeft(434);
obj.checkBox2:setTop(6);
obj.checkBox2:setWidth(150);
obj.checkBox2:setField("double2");
obj.checkBox2:setText("Ataque Total");
obj.checkBox2:setName("checkBox2");
obj.dataLink2 = GUI.fromHandle(_obj_newObject("dataLink"));
obj.dataLink2:setParent(obj.layout3);
obj.dataLink2:setFields({'ataque2','double2'});
obj.dataLink2:setName("dataLink2");
obj.button6 = GUI.fromHandle(_obj_newObject("button"));
obj.button6:setParent(obj.layout3);
obj.button6:setLeft(279);
obj.button6:setTop(31);
obj.button6:setWidth(73);
obj.button6:setText("DANO");
obj.button6:setFontSize(11);
obj.button6:setName("button6");
obj.edit17 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit17:setParent(obj.layout3);
obj.edit17:setVertTextAlign("center");
obj.edit17:setLeft(352);
obj.edit17:setTop(30);
obj.edit17:setWidth(82);
obj.edit17:setHeight(25);
obj.edit17:setField("dano2");
obj.edit17:setName("edit17");
obj.button7 = GUI.fromHandle(_obj_newObject("button"));
obj.button7:setParent(obj.layout3);
obj.button7:setLeft(434);
obj.button7:setTop(31);
obj.button7:setWidth(60);
obj.button7:setText("CRITICO");
obj.button7:setFontSize(11);
obj.button7:setName("button7");
obj.edit18 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit18:setParent(obj.layout3);
obj.edit18:setVertTextAlign("center");
obj.edit18:setLeft(493);
obj.edit18:setTop(30);
obj.edit18:setWidth(82);
obj.edit18:setHeight(25);
obj.edit18:setField("danoCritico2");
obj.edit18:setName("edit18");
obj.label14 = GUI.fromHandle(_obj_newObject("label"));
obj.label14:setParent(obj.layout3);
obj.label14:setLeft(290);
obj.label14:setTop(55);
obj.label14:setWidth(70);
obj.label14:setHeight(25);
obj.label14:setText("DECISIVO");
obj.label14:setName("label14");
obj.edit19 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit19:setParent(obj.layout3);
obj.edit19:setVertTextAlign("center");
obj.edit19:setLeft(352);
obj.edit19:setTop(55);
obj.edit19:setWidth(82);
obj.edit19:setHeight(25);
obj.edit19:setField("decisivo2");
obj.edit19:setName("edit19");
obj.label15 = GUI.fromHandle(_obj_newObject("label"));
obj.label15:setParent(obj.layout3);
obj.label15:setLeft(445);
obj.label15:setTop(55);
obj.label15:setWidth(50);
obj.label15:setHeight(25);
obj.label15:setText("MULTI");
obj.label15:setName("label15");
obj.edit20 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit20:setParent(obj.layout3);
obj.edit20:setVertTextAlign("center");
obj.edit20:setLeft(493);
obj.edit20:setTop(55);
obj.edit20:setWidth(82);
obj.edit20:setHeight(25);
obj.edit20:setField("multiplicador2");
obj.edit20:setName("edit20");
obj.label16 = GUI.fromHandle(_obj_newObject("label"));
obj.label16:setParent(obj.layout3);
obj.label16:setLeft(580);
obj.label16:setTop(5);
obj.label16:setWidth(80);
obj.label16:setHeight(25);
obj.label16:setText("CATEGORIA");
obj.label16:setName("label16");
obj.edit21 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit21:setParent(obj.layout3);
obj.edit21:setVertTextAlign("center");
obj.edit21:setLeft(660);
obj.edit21:setTop(5);
obj.edit21:setWidth(200);
obj.edit21:setHeight(25);
obj.edit21:setField("categoria2");
obj.edit21:setName("edit21");
obj.label17 = GUI.fromHandle(_obj_newObject("label"));
obj.label17:setParent(obj.layout3);
obj.label17:setLeft(610);
obj.label17:setTop(30);
obj.label17:setWidth(50);
obj.label17:setHeight(25);
obj.label17:setText("OBS");
obj.label17:setName("label17");
obj.edit22 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit22:setParent(obj.layout3);
obj.edit22:setVertTextAlign("center");
obj.edit22:setLeft(660);
obj.edit22:setTop(30);
obj.edit22:setWidth(200);
obj.edit22:setHeight(25);
obj.edit22:setField("obs2");
obj.edit22:setName("edit22");
obj.label18 = GUI.fromHandle(_obj_newObject("label"));
obj.label18:setParent(obj.layout3);
obj.label18:setLeft(590);
obj.label18:setTop(55);
obj.label18:setWidth(80);
obj.label18:setHeight(25);
obj.label18:setText("MUNIÇÃO");
obj.label18:setName("label18");
obj.edit23 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit23:setParent(obj.layout3);
obj.edit23:setType("number");
obj.edit23:setVertTextAlign("center");
obj.edit23:setLeft(660);
obj.edit23:setTop(55);
obj.edit23:setWidth(69);
obj.edit23:setHeight(25);
obj.edit23:setField("municao2");
obj.edit23:setName("edit23");
obj.label19 = GUI.fromHandle(_obj_newObject("label"));
obj.label19:setParent(obj.layout3);
obj.label19:setLeft(735);
obj.label19:setTop(55);
obj.label19:setWidth(70);
obj.label19:setHeight(25);
obj.label19:setText("ALCANCE");
obj.label19:setName("label19");
obj.edit24 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit24:setParent(obj.layout3);
obj.edit24:setVertTextAlign("center");
obj.edit24:setLeft(795);
obj.edit24:setTop(55);
obj.edit24:setWidth(65);
obj.edit24:setHeight(25);
obj.edit24:setField("alcance2");
obj.edit24:setName("edit24");
obj.rectangle5 = GUI.fromHandle(_obj_newObject("rectangle"));
obj.rectangle5:setParent(obj.layout3);
obj.rectangle5:setLeft(869);
obj.rectangle5:setTop(4);
obj.rectangle5:setWidth(332);
obj.rectangle5:setHeight(77);
obj.rectangle5:setColor("black");
obj.rectangle5:setStrokeColor("white");
obj.rectangle5:setStrokeSize(1);
obj.rectangle5:setName("rectangle5");
obj.label20 = GUI.fromHandle(_obj_newObject("label"));
obj.label20:setParent(obj.layout3);
obj.label20:setLeft(870);
obj.label20:setTop(25);
obj.label20:setWidth(330);
obj.label20:setHeight(25);
obj.label20:setHorzTextAlign("center");
obj.label20:setText("Clique para adicionar imagem");
obj.label20:setName("label20");
obj.image2 = GUI.fromHandle(_obj_newObject("image"));
obj.image2:setParent(obj.layout3);
obj.image2:setField("imagemArma2");
obj.image2:setEditable(true);
obj.image2:setStyle("autoFit");
obj.image2:setLeft(870);
obj.image2:setTop(5);
obj.image2:setWidth(330);
obj.image2:setHeight(75);
obj.image2:setName("image2");
obj.button8 = GUI.fromHandle(_obj_newObject("button"));
obj.button8:setParent(obj.layout3);
obj.button8:setLeft(1205);
obj.button8:setTop(5);
obj.button8:setWidth(25);
obj.button8:setHeight(75);
obj.button8:setText("X");
obj.button8:setFontSize(15);
obj.button8:setHint("Apaga o ataque.");
obj.button8:setName("button8");
obj.layout4 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout4:setParent(obj.layout1);
obj.layout4:setLeft(2);
obj.layout4:setTop(192);
obj.layout4:setWidth(1232);
obj.layout4:setHeight(92);
obj.layout4:setName("layout4");
obj.rectangle6 = GUI.fromHandle(_obj_newObject("rectangle"));
obj.rectangle6:setParent(obj.layout4);
obj.rectangle6:setAlign("client");
obj.rectangle6:setColor("black");
obj.rectangle6:setName("rectangle6");
obj.label21 = GUI.fromHandle(_obj_newObject("label"));
obj.label21:setParent(obj.layout4);
obj.label21:setLeft(5);
obj.label21:setTop(5);
obj.label21:setWidth(50);
obj.label21:setHeight(25);
obj.label21:setText("NOME");
obj.label21:setName("label21");
obj.edit25 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit25:setParent(obj.layout4);
obj.edit25:setVertTextAlign("center");
obj.edit25:setLeft(55);
obj.edit25:setTop(5);
obj.edit25:setWidth(225);
obj.edit25:setHeight(25);
obj.edit25:setField("nome3");
obj.edit25:setName("edit25");
obj.label22 = GUI.fromHandle(_obj_newObject("label"));
obj.label22:setParent(obj.layout4);
obj.label22:setLeft(5);
obj.label22:setTop(30);
obj.label22:setWidth(50);
obj.label22:setHeight(25);
obj.label22:setText("ARMA");
obj.label22:setName("label22");
obj.edit26 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit26:setParent(obj.layout4);
obj.edit26:setVertTextAlign("center");
obj.edit26:setLeft(55);
obj.edit26:setTop(30);
obj.edit26:setWidth(225);
obj.edit26:setHeight(25);
obj.edit26:setField("arma3");
obj.edit26:setName("edit26");
obj.label23 = GUI.fromHandle(_obj_newObject("label"));
obj.label23:setParent(obj.layout4);
obj.label23:setLeft(5);
obj.label23:setTop(55);
obj.label23:setWidth(50);
obj.label23:setHeight(25);
obj.label23:setText("TIPO");
obj.label23:setName("label23");
obj.edit27 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit27:setParent(obj.layout4);
obj.edit27:setVertTextAlign("center");
obj.edit27:setLeft(55);
obj.edit27:setTop(55);
obj.edit27:setWidth(225);
obj.edit27:setHeight(25);
obj.edit27:setField("tipo3");
obj.edit27:setName("edit27");
obj.button9 = GUI.fromHandle(_obj_newObject("button"));
obj.button9:setParent(obj.layout4);
obj.button9:setLeft(279);
obj.button9:setTop(6);
obj.button9:setWidth(73);
obj.button9:setText("ATAQUE");
obj.button9:setFontSize(11);
obj.button9:setName("button9");
obj.edit28 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit28:setParent(obj.layout4);
obj.edit28:setType("number");
obj.edit28:setVertTextAlign("center");
obj.edit28:setLeft(352);
obj.edit28:setTop(5);
obj.edit28:setWidth(82);
obj.edit28:setHeight(25);
obj.edit28:setField("ataque3");
obj.edit28:setName("edit28");
obj.checkBox3 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox3:setParent(obj.layout4);
obj.checkBox3:setLeft(434);
obj.checkBox3:setTop(6);
obj.checkBox3:setWidth(150);
obj.checkBox3:setField("double3");
obj.checkBox3:setText("Ataque Total");
obj.checkBox3:setName("checkBox3");
obj.dataLink3 = GUI.fromHandle(_obj_newObject("dataLink"));
obj.dataLink3:setParent(obj.layout4);
obj.dataLink3:setFields({'ataque3','double3'});
obj.dataLink3:setName("dataLink3");
obj.button10 = GUI.fromHandle(_obj_newObject("button"));
obj.button10:setParent(obj.layout4);
obj.button10:setLeft(279);
obj.button10:setTop(31);
obj.button10:setWidth(73);
obj.button10:setText("DANO");
obj.button10:setFontSize(11);
obj.button10:setName("button10");
obj.edit29 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit29:setParent(obj.layout4);
obj.edit29:setVertTextAlign("center");
obj.edit29:setLeft(352);
obj.edit29:setTop(30);
obj.edit29:setWidth(82);
obj.edit29:setHeight(25);
obj.edit29:setField("dano3");
obj.edit29:setName("edit29");
obj.button11 = GUI.fromHandle(_obj_newObject("button"));
obj.button11:setParent(obj.layout4);
obj.button11:setLeft(434);
obj.button11:setTop(31);
obj.button11:setWidth(60);
obj.button11:setText("CRITICO");
obj.button11:setFontSize(11);
obj.button11:setName("button11");
obj.edit30 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit30:setParent(obj.layout4);
obj.edit30:setVertTextAlign("center");
obj.edit30:setLeft(493);
obj.edit30:setTop(30);
obj.edit30:setWidth(82);
obj.edit30:setHeight(25);
obj.edit30:setField("danoCritico3");
obj.edit30:setName("edit30");
obj.label24 = GUI.fromHandle(_obj_newObject("label"));
obj.label24:setParent(obj.layout4);
obj.label24:setLeft(290);
obj.label24:setTop(55);
obj.label24:setWidth(70);
obj.label24:setHeight(25);
obj.label24:setText("DECISIVO");
obj.label24:setName("label24");
obj.edit31 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit31:setParent(obj.layout4);
obj.edit31:setVertTextAlign("center");
obj.edit31:setLeft(352);
obj.edit31:setTop(55);
obj.edit31:setWidth(82);
obj.edit31:setHeight(25);
obj.edit31:setField("decisivo3");
obj.edit31:setName("edit31");
obj.label25 = GUI.fromHandle(_obj_newObject("label"));
obj.label25:setParent(obj.layout4);
obj.label25:setLeft(445);
obj.label25:setTop(55);
obj.label25:setWidth(50);
obj.label25:setHeight(25);
obj.label25:setText("MULTI");
obj.label25:setName("label25");
obj.edit32 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit32:setParent(obj.layout4);
obj.edit32:setVertTextAlign("center");
obj.edit32:setLeft(493);
obj.edit32:setTop(55);
obj.edit32:setWidth(82);
obj.edit32:setHeight(25);
obj.edit32:setField("multiplicador3");
obj.edit32:setName("edit32");
obj.label26 = GUI.fromHandle(_obj_newObject("label"));
obj.label26:setParent(obj.layout4);
obj.label26:setLeft(580);
obj.label26:setTop(5);
obj.label26:setWidth(80);
obj.label26:setHeight(25);
obj.label26:setText("CATEGORIA");
obj.label26:setName("label26");
obj.edit33 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit33:setParent(obj.layout4);
obj.edit33:setVertTextAlign("center");
obj.edit33:setLeft(660);
obj.edit33:setTop(5);
obj.edit33:setWidth(200);
obj.edit33:setHeight(25);
obj.edit33:setField("categoria3");
obj.edit33:setName("edit33");
obj.label27 = GUI.fromHandle(_obj_newObject("label"));
obj.label27:setParent(obj.layout4);
obj.label27:setLeft(610);
obj.label27:setTop(30);
obj.label27:setWidth(50);
obj.label27:setHeight(25);
obj.label27:setText("OBS");
obj.label27:setName("label27");
obj.edit34 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit34:setParent(obj.layout4);
obj.edit34:setVertTextAlign("center");
obj.edit34:setLeft(660);
obj.edit34:setTop(30);
obj.edit34:setWidth(200);
obj.edit34:setHeight(25);
obj.edit34:setField("obs3");
obj.edit34:setName("edit34");
obj.label28 = GUI.fromHandle(_obj_newObject("label"));
obj.label28:setParent(obj.layout4);
obj.label28:setLeft(590);
obj.label28:setTop(55);
obj.label28:setWidth(80);
obj.label28:setHeight(25);
obj.label28:setText("MUNIÇÃO");
obj.label28:setName("label28");
obj.edit35 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit35:setParent(obj.layout4);
obj.edit35:setType("number");
obj.edit35:setVertTextAlign("center");
obj.edit35:setLeft(660);
obj.edit35:setTop(55);
obj.edit35:setWidth(69);
obj.edit35:setHeight(25);
obj.edit35:setField("municao3");
obj.edit35:setName("edit35");
obj.label29 = GUI.fromHandle(_obj_newObject("label"));
obj.label29:setParent(obj.layout4);
obj.label29:setLeft(735);
obj.label29:setTop(55);
obj.label29:setWidth(70);
obj.label29:setHeight(25);
obj.label29:setText("ALCANCE");
obj.label29:setName("label29");
obj.edit36 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit36:setParent(obj.layout4);
obj.edit36:setVertTextAlign("center");
obj.edit36:setLeft(795);
obj.edit36:setTop(55);
obj.edit36:setWidth(65);
obj.edit36:setHeight(25);
obj.edit36:setField("alcance3");
obj.edit36:setName("edit36");
obj.rectangle7 = GUI.fromHandle(_obj_newObject("rectangle"));
obj.rectangle7:setParent(obj.layout4);
obj.rectangle7:setLeft(869);
obj.rectangle7:setTop(4);
obj.rectangle7:setWidth(332);
obj.rectangle7:setHeight(77);
obj.rectangle7:setColor("black");
obj.rectangle7:setStrokeColor("white");
obj.rectangle7:setStrokeSize(1);
obj.rectangle7:setName("rectangle7");
obj.label30 = GUI.fromHandle(_obj_newObject("label"));
obj.label30:setParent(obj.layout4);
obj.label30:setLeft(870);
obj.label30:setTop(25);
obj.label30:setWidth(330);
obj.label30:setHeight(25);
obj.label30:setHorzTextAlign("center");
obj.label30:setText("Clique para adicionar imagem");
obj.label30:setName("label30");
obj.image3 = GUI.fromHandle(_obj_newObject("image"));
obj.image3:setParent(obj.layout4);
obj.image3:setField("imagemArma3");
obj.image3:setEditable(true);
obj.image3:setStyle("autoFit");
obj.image3:setLeft(870);
obj.image3:setTop(5);
obj.image3:setWidth(330);
obj.image3:setHeight(75);
obj.image3:setName("image3");
obj.button12 = GUI.fromHandle(_obj_newObject("button"));
obj.button12:setParent(obj.layout4);
obj.button12:setLeft(1205);
obj.button12:setTop(5);
obj.button12:setWidth(25);
obj.button12:setHeight(75);
obj.button12:setText("X");
obj.button12:setFontSize(15);
obj.button12:setHint("Apaga o ataque.");
obj.button12:setName("button12");
obj.layout5 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout5:setParent(obj.layout1);
obj.layout5:setLeft(2);
obj.layout5:setTop(288);
obj.layout5:setWidth(1232);
obj.layout5:setHeight(92);
obj.layout5:setName("layout5");
obj.rectangle8 = GUI.fromHandle(_obj_newObject("rectangle"));
obj.rectangle8:setParent(obj.layout5);
obj.rectangle8:setAlign("client");
obj.rectangle8:setColor("black");
obj.rectangle8:setName("rectangle8");
obj.label31 = GUI.fromHandle(_obj_newObject("label"));
obj.label31:setParent(obj.layout5);
obj.label31:setLeft(5);
obj.label31:setTop(5);
obj.label31:setWidth(50);
obj.label31:setHeight(25);
obj.label31:setText("NOME");
obj.label31:setName("label31");
obj.edit37 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit37:setParent(obj.layout5);
obj.edit37:setVertTextAlign("center");
obj.edit37:setLeft(55);
obj.edit37:setTop(5);
obj.edit37:setWidth(225);
obj.edit37:setHeight(25);
obj.edit37:setField("nome4");
obj.edit37:setName("edit37");
obj.label32 = GUI.fromHandle(_obj_newObject("label"));
obj.label32:setParent(obj.layout5);
obj.label32:setLeft(5);
obj.label32:setTop(30);
obj.label32:setWidth(50);
obj.label32:setHeight(25);
obj.label32:setText("ARMA");
obj.label32:setName("label32");
obj.edit38 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit38:setParent(obj.layout5);
obj.edit38:setVertTextAlign("center");
obj.edit38:setLeft(55);
obj.edit38:setTop(30);
obj.edit38:setWidth(225);
obj.edit38:setHeight(25);
obj.edit38:setField("arma4");
obj.edit38:setName("edit38");
obj.label33 = GUI.fromHandle(_obj_newObject("label"));
obj.label33:setParent(obj.layout5);
obj.label33:setLeft(5);
obj.label33:setTop(55);
obj.label33:setWidth(50);
obj.label33:setHeight(25);
obj.label33:setText("TIPO");
obj.label33:setName("label33");
obj.edit39 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit39:setParent(obj.layout5);
obj.edit39:setVertTextAlign("center");
obj.edit39:setLeft(55);
obj.edit39:setTop(55);
obj.edit39:setWidth(225);
obj.edit39:setHeight(25);
obj.edit39:setField("tipo4");
obj.edit39:setName("edit39");
obj.button13 = GUI.fromHandle(_obj_newObject("button"));
obj.button13:setParent(obj.layout5);
obj.button13:setLeft(279);
obj.button13:setTop(6);
obj.button13:setWidth(73);
obj.button13:setText("ATAQUE");
obj.button13:setFontSize(11);
obj.button13:setName("button13");
obj.edit40 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit40:setParent(obj.layout5);
obj.edit40:setType("number");
obj.edit40:setVertTextAlign("center");
obj.edit40:setLeft(352);
obj.edit40:setTop(5);
obj.edit40:setWidth(82);
obj.edit40:setHeight(25);
obj.edit40:setField("ataque4");
obj.edit40:setName("edit40");
obj.checkBox4 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox4:setParent(obj.layout5);
obj.checkBox4:setLeft(434);
obj.checkBox4:setTop(6);
obj.checkBox4:setWidth(150);
obj.checkBox4:setField("double4");
obj.checkBox4:setText("Ataque Total");
obj.checkBox4:setName("checkBox4");
obj.dataLink4 = GUI.fromHandle(_obj_newObject("dataLink"));
obj.dataLink4:setParent(obj.layout5);
obj.dataLink4:setFields({'ataque4','double4'});
obj.dataLink4:setName("dataLink4");
obj.button14 = GUI.fromHandle(_obj_newObject("button"));
obj.button14:setParent(obj.layout5);
obj.button14:setLeft(279);
obj.button14:setTop(31);
obj.button14:setWidth(73);
obj.button14:setText("DANO");
obj.button14:setFontSize(11);
obj.button14:setName("button14");
obj.edit41 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit41:setParent(obj.layout5);
obj.edit41:setVertTextAlign("center");
obj.edit41:setLeft(352);
obj.edit41:setTop(30);
obj.edit41:setWidth(82);
obj.edit41:setHeight(25);
obj.edit41:setField("dano4");
obj.edit41:setName("edit41");
obj.button15 = GUI.fromHandle(_obj_newObject("button"));
obj.button15:setParent(obj.layout5);
obj.button15:setLeft(434);
obj.button15:setTop(31);
obj.button15:setWidth(60);
obj.button15:setText("CRITICO");
obj.button15:setFontSize(11);
obj.button15:setName("button15");
obj.edit42 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit42:setParent(obj.layout5);
obj.edit42:setVertTextAlign("center");
obj.edit42:setLeft(493);
obj.edit42:setTop(30);
obj.edit42:setWidth(82);
obj.edit42:setHeight(25);
obj.edit42:setField("danoCritico4");
obj.edit42:setName("edit42");
obj.label34 = GUI.fromHandle(_obj_newObject("label"));
obj.label34:setParent(obj.layout5);
obj.label34:setLeft(290);
obj.label34:setTop(55);
obj.label34:setWidth(70);
obj.label34:setHeight(25);
obj.label34:setText("DECISIVO");
obj.label34:setName("label34");
obj.edit43 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit43:setParent(obj.layout5);
obj.edit43:setVertTextAlign("center");
obj.edit43:setLeft(352);
obj.edit43:setTop(55);
obj.edit43:setWidth(82);
obj.edit43:setHeight(25);
obj.edit43:setField("decisivo4");
obj.edit43:setName("edit43");
obj.label35 = GUI.fromHandle(_obj_newObject("label"));
obj.label35:setParent(obj.layout5);
obj.label35:setLeft(445);
obj.label35:setTop(55);
obj.label35:setWidth(50);
obj.label35:setHeight(25);
obj.label35:setText("MULTI");
obj.label35:setName("label35");
obj.edit44 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit44:setParent(obj.layout5);
obj.edit44:setVertTextAlign("center");
obj.edit44:setLeft(493);
obj.edit44:setTop(55);
obj.edit44:setWidth(82);
obj.edit44:setHeight(25);
obj.edit44:setField("multiplicador4");
obj.edit44:setName("edit44");
obj.label36 = GUI.fromHandle(_obj_newObject("label"));
obj.label36:setParent(obj.layout5);
obj.label36:setLeft(580);
obj.label36:setTop(5);
obj.label36:setWidth(80);
obj.label36:setHeight(25);
obj.label36:setText("CATEGORIA");
obj.label36:setName("label36");
obj.edit45 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit45:setParent(obj.layout5);
obj.edit45:setVertTextAlign("center");
obj.edit45:setLeft(660);
obj.edit45:setTop(5);
obj.edit45:setWidth(200);
obj.edit45:setHeight(25);
obj.edit45:setField("categoria4");
obj.edit45:setName("edit45");
obj.label37 = GUI.fromHandle(_obj_newObject("label"));
obj.label37:setParent(obj.layout5);
obj.label37:setLeft(610);
obj.label37:setTop(30);
obj.label37:setWidth(50);
obj.label37:setHeight(25);
obj.label37:setText("OBS");
obj.label37:setName("label37");
obj.edit46 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit46:setParent(obj.layout5);
obj.edit46:setVertTextAlign("center");
obj.edit46:setLeft(660);
obj.edit46:setTop(30);
obj.edit46:setWidth(200);
obj.edit46:setHeight(25);
obj.edit46:setField("obs4");
obj.edit46:setName("edit46");
obj.label38 = GUI.fromHandle(_obj_newObject("label"));
obj.label38:setParent(obj.layout5);
obj.label38:setLeft(590);
obj.label38:setTop(55);
obj.label38:setWidth(80);
obj.label38:setHeight(25);
obj.label38:setText("MUNIÇÃO");
obj.label38:setName("label38");
obj.edit47 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit47:setParent(obj.layout5);
obj.edit47:setType("number");
obj.edit47:setVertTextAlign("center");
obj.edit47:setLeft(660);
obj.edit47:setTop(55);
obj.edit47:setWidth(69);
obj.edit47:setHeight(25);
obj.edit47:setField("municao4");
obj.edit47:setName("edit47");
obj.label39 = GUI.fromHandle(_obj_newObject("label"));
obj.label39:setParent(obj.layout5);
obj.label39:setLeft(735);
obj.label39:setTop(55);
obj.label39:setWidth(70);
obj.label39:setHeight(25);
obj.label39:setText("ALCANCE");
obj.label39:setName("label39");
obj.edit48 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit48:setParent(obj.layout5);
obj.edit48:setVertTextAlign("center");
obj.edit48:setLeft(795);
obj.edit48:setTop(55);
obj.edit48:setWidth(65);
obj.edit48:setHeight(25);
obj.edit48:setField("alcance4");
obj.edit48:setName("edit48");
obj.rectangle9 = GUI.fromHandle(_obj_newObject("rectangle"));
obj.rectangle9:setParent(obj.layout5);
obj.rectangle9:setLeft(869);
obj.rectangle9:setTop(4);
obj.rectangle9:setWidth(332);
obj.rectangle9:setHeight(77);
obj.rectangle9:setColor("black");
obj.rectangle9:setStrokeColor("white");
obj.rectangle9:setStrokeSize(1);
obj.rectangle9:setName("rectangle9");
obj.label40 = GUI.fromHandle(_obj_newObject("label"));
obj.label40:setParent(obj.layout5);
obj.label40:setLeft(870);
obj.label40:setTop(25);
obj.label40:setWidth(330);
obj.label40:setHeight(25);
obj.label40:setHorzTextAlign("center");
obj.label40:setText("Clique para adicionar imagem");
obj.label40:setName("label40");
obj.image4 = GUI.fromHandle(_obj_newObject("image"));
obj.image4:setParent(obj.layout5);
obj.image4:setField("imagemArma4");
obj.image4:setEditable(true);
obj.image4:setStyle("autoFit");
obj.image4:setLeft(870);
obj.image4:setTop(5);
obj.image4:setWidth(330);
obj.image4:setHeight(75);
obj.image4:setName("image4");
obj.button16 = GUI.fromHandle(_obj_newObject("button"));
obj.button16:setParent(obj.layout5);
obj.button16:setLeft(1205);
obj.button16:setTop(5);
obj.button16:setWidth(25);
obj.button16:setHeight(75);
obj.button16:setText("X");
obj.button16:setFontSize(15);
obj.button16:setHint("Apaga o ataque.");
obj.button16:setName("button16");
obj.layout6 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout6:setParent(obj.layout1);
obj.layout6:setLeft(2);
obj.layout6:setTop(383);
obj.layout6:setWidth(1232);
obj.layout6:setHeight(92);
obj.layout6:setName("layout6");
obj.rectangle10 = GUI.fromHandle(_obj_newObject("rectangle"));
obj.rectangle10:setParent(obj.layout6);
obj.rectangle10:setAlign("client");
obj.rectangle10:setColor("black");
obj.rectangle10:setName("rectangle10");
obj.label41 = GUI.fromHandle(_obj_newObject("label"));
obj.label41:setParent(obj.layout6);
obj.label41:setLeft(5);
obj.label41:setTop(5);
obj.label41:setWidth(50);
obj.label41:setHeight(25);
obj.label41:setText("NOME");
obj.label41:setName("label41");
obj.edit49 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit49:setParent(obj.layout6);
obj.edit49:setVertTextAlign("center");
obj.edit49:setLeft(55);
obj.edit49:setTop(5);
obj.edit49:setWidth(225);
obj.edit49:setHeight(25);
obj.edit49:setField("nome5");
obj.edit49:setName("edit49");
obj.label42 = GUI.fromHandle(_obj_newObject("label"));
obj.label42:setParent(obj.layout6);
obj.label42:setLeft(5);
obj.label42:setTop(30);
obj.label42:setWidth(50);
obj.label42:setHeight(25);
obj.label42:setText("ARMA");
obj.label42:setName("label42");
obj.edit50 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit50:setParent(obj.layout6);
obj.edit50:setVertTextAlign("center");
obj.edit50:setLeft(55);
obj.edit50:setTop(30);
obj.edit50:setWidth(225);
obj.edit50:setHeight(25);
obj.edit50:setField("arma5");
obj.edit50:setName("edit50");
obj.label43 = GUI.fromHandle(_obj_newObject("label"));
obj.label43:setParent(obj.layout6);
obj.label43:setLeft(5);
obj.label43:setTop(55);
obj.label43:setWidth(50);
obj.label43:setHeight(25);
obj.label43:setText("TIPO");
obj.label43:setName("label43");
obj.edit51 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit51:setParent(obj.layout6);
obj.edit51:setVertTextAlign("center");
obj.edit51:setLeft(55);
obj.edit51:setTop(55);
obj.edit51:setWidth(225);
obj.edit51:setHeight(25);
obj.edit51:setField("tipo5");
obj.edit51:setName("edit51");
obj.button17 = GUI.fromHandle(_obj_newObject("button"));
obj.button17:setParent(obj.layout6);
obj.button17:setLeft(279);
obj.button17:setTop(6);
obj.button17:setWidth(73);
obj.button17:setText("ATAQUE");
obj.button17:setFontSize(11);
obj.button17:setName("button17");
obj.edit52 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit52:setParent(obj.layout6);
obj.edit52:setType("number");
obj.edit52:setVertTextAlign("center");
obj.edit52:setLeft(352);
obj.edit52:setTop(5);
obj.edit52:setWidth(82);
obj.edit52:setHeight(25);
obj.edit52:setField("ataque5");
obj.edit52:setName("edit52");
obj.checkBox5 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox5:setParent(obj.layout6);
obj.checkBox5:setLeft(434);
obj.checkBox5:setTop(6);
obj.checkBox5:setWidth(150);
obj.checkBox5:setField("double5");
obj.checkBox5:setText("Ataque Total");
obj.checkBox5:setName("checkBox5");
obj.dataLink5 = GUI.fromHandle(_obj_newObject("dataLink"));
obj.dataLink5:setParent(obj.layout6);
obj.dataLink5:setFields({'ataque5','double5'});
obj.dataLink5:setName("dataLink5");
obj.button18 = GUI.fromHandle(_obj_newObject("button"));
obj.button18:setParent(obj.layout6);
obj.button18:setLeft(279);
obj.button18:setTop(31);
obj.button18:setWidth(73);
obj.button18:setText("DANO");
obj.button18:setFontSize(11);
obj.button18:setName("button18");
obj.edit53 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit53:setParent(obj.layout6);
obj.edit53:setVertTextAlign("center");
obj.edit53:setLeft(352);
obj.edit53:setTop(30);
obj.edit53:setWidth(82);
obj.edit53:setHeight(25);
obj.edit53:setField("dano5");
obj.edit53:setName("edit53");
obj.button19 = GUI.fromHandle(_obj_newObject("button"));
obj.button19:setParent(obj.layout6);
obj.button19:setLeft(434);
obj.button19:setTop(31);
obj.button19:setWidth(60);
obj.button19:setText("CRITICO");
obj.button19:setFontSize(11);
obj.button19:setName("button19");
obj.edit54 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit54:setParent(obj.layout6);
obj.edit54:setVertTextAlign("center");
obj.edit54:setLeft(493);
obj.edit54:setTop(30);
obj.edit54:setWidth(82);
obj.edit54:setHeight(25);
obj.edit54:setField("danoCritico5");
obj.edit54:setName("edit54");
obj.label44 = GUI.fromHandle(_obj_newObject("label"));
obj.label44:setParent(obj.layout6);
obj.label44:setLeft(290);
obj.label44:setTop(55);
obj.label44:setWidth(70);
obj.label44:setHeight(25);
obj.label44:setText("DECISIVO");
obj.label44:setName("label44");
obj.edit55 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit55:setParent(obj.layout6);
obj.edit55:setVertTextAlign("center");
obj.edit55:setLeft(352);
obj.edit55:setTop(55);
obj.edit55:setWidth(82);
obj.edit55:setHeight(25);
obj.edit55:setField("decisivo5");
obj.edit55:setName("edit55");
obj.label45 = GUI.fromHandle(_obj_newObject("label"));
obj.label45:setParent(obj.layout6);
obj.label45:setLeft(445);
obj.label45:setTop(55);
obj.label45:setWidth(50);
obj.label45:setHeight(25);
obj.label45:setText("MULTI");
obj.label45:setName("label45");
obj.edit56 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit56:setParent(obj.layout6);
obj.edit56:setVertTextAlign("center");
obj.edit56:setLeft(493);
obj.edit56:setTop(55);
obj.edit56:setWidth(82);
obj.edit56:setHeight(25);
obj.edit56:setField("multiplicador5");
obj.edit56:setName("edit56");
obj.label46 = GUI.fromHandle(_obj_newObject("label"));
obj.label46:setParent(obj.layout6);
obj.label46:setLeft(580);
obj.label46:setTop(5);
obj.label46:setWidth(80);
obj.label46:setHeight(25);
obj.label46:setText("CATEGORIA");
obj.label46:setName("label46");
obj.edit57 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit57:setParent(obj.layout6);
obj.edit57:setVertTextAlign("center");
obj.edit57:setLeft(660);
obj.edit57:setTop(5);
obj.edit57:setWidth(200);
obj.edit57:setHeight(25);
obj.edit57:setField("categoria5");
obj.edit57:setName("edit57");
obj.label47 = GUI.fromHandle(_obj_newObject("label"));
obj.label47:setParent(obj.layout6);
obj.label47:setLeft(610);
obj.label47:setTop(30);
obj.label47:setWidth(50);
obj.label47:setHeight(25);
obj.label47:setText("OBS");
obj.label47:setName("label47");
obj.edit58 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit58:setParent(obj.layout6);
obj.edit58:setVertTextAlign("center");
obj.edit58:setLeft(660);
obj.edit58:setTop(30);
obj.edit58:setWidth(200);
obj.edit58:setHeight(25);
obj.edit58:setField("obs5");
obj.edit58:setName("edit58");
obj.label48 = GUI.fromHandle(_obj_newObject("label"));
obj.label48:setParent(obj.layout6);
obj.label48:setLeft(590);
obj.label48:setTop(55);
obj.label48:setWidth(80);
obj.label48:setHeight(25);
obj.label48:setText("MUNIÇÃO");
obj.label48:setName("label48");
obj.edit59 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit59:setParent(obj.layout6);
obj.edit59:setType("number");
obj.edit59:setVertTextAlign("center");
obj.edit59:setLeft(660);
obj.edit59:setTop(55);
obj.edit59:setWidth(69);
obj.edit59:setHeight(25);
obj.edit59:setField("municao5");
obj.edit59:setName("edit59");
obj.label49 = GUI.fromHandle(_obj_newObject("label"));
obj.label49:setParent(obj.layout6);
obj.label49:setLeft(735);
obj.label49:setTop(55);
obj.label49:setWidth(70);
obj.label49:setHeight(25);
obj.label49:setText("ALCANCE");
obj.label49:setName("label49");
obj.edit60 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit60:setParent(obj.layout6);
obj.edit60:setVertTextAlign("center");
obj.edit60:setLeft(795);
obj.edit60:setTop(55);
obj.edit60:setWidth(65);
obj.edit60:setHeight(25);
obj.edit60:setField("alcance5");
obj.edit60:setName("edit60");
obj.rectangle11 = GUI.fromHandle(_obj_newObject("rectangle"));
obj.rectangle11:setParent(obj.layout6);
obj.rectangle11:setLeft(869);
obj.rectangle11:setTop(4);
obj.rectangle11:setWidth(332);
obj.rectangle11:setHeight(77);
obj.rectangle11:setColor("black");
obj.rectangle11:setStrokeColor("white");
obj.rectangle11:setStrokeSize(1);
obj.rectangle11:setName("rectangle11");
obj.label50 = GUI.fromHandle(_obj_newObject("label"));
obj.label50:setParent(obj.layout6);
obj.label50:setLeft(870);
obj.label50:setTop(25);
obj.label50:setWidth(330);
obj.label50:setHeight(25);
obj.label50:setHorzTextAlign("center");
obj.label50:setText("Clique para adicionar imagem");
obj.label50:setName("label50");
obj.image5 = GUI.fromHandle(_obj_newObject("image"));
obj.image5:setParent(obj.layout6);
obj.image5:setField("imagemArma5");
obj.image5:setEditable(true);
obj.image5:setStyle("autoFit");
obj.image5:setLeft(870);
obj.image5:setTop(5);
obj.image5:setWidth(330);
obj.image5:setHeight(75);
obj.image5:setName("image5");
obj.button20 = GUI.fromHandle(_obj_newObject("button"));
obj.button20:setParent(obj.layout6);
obj.button20:setLeft(1205);
obj.button20:setTop(5);
obj.button20:setWidth(25);
obj.button20:setHeight(75);
obj.button20:setText("X");
obj.button20:setFontSize(15);
obj.button20:setHint("Apaga o ataque.");
obj.button20:setName("button20");
obj.layout7 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout7:setParent(obj.layout1);
obj.layout7:setLeft(2);
obj.layout7:setTop(478);
obj.layout7:setWidth(1232);
obj.layout7:setHeight(92);
obj.layout7:setName("layout7");
obj.rectangle12 = GUI.fromHandle(_obj_newObject("rectangle"));
obj.rectangle12:setParent(obj.layout7);
obj.rectangle12:setAlign("client");
obj.rectangle12:setColor("black");
obj.rectangle12:setName("rectangle12");
obj.label51 = GUI.fromHandle(_obj_newObject("label"));
obj.label51:setParent(obj.layout7);
obj.label51:setLeft(5);
obj.label51:setTop(5);
obj.label51:setWidth(50);
obj.label51:setHeight(25);
obj.label51:setText("NOME");
obj.label51:setName("label51");
obj.edit61 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit61:setParent(obj.layout7);
obj.edit61:setVertTextAlign("center");
obj.edit61:setLeft(55);
obj.edit61:setTop(5);
obj.edit61:setWidth(225);
obj.edit61:setHeight(25);
obj.edit61:setField("nome6");
obj.edit61:setName("edit61");
obj.label52 = GUI.fromHandle(_obj_newObject("label"));
obj.label52:setParent(obj.layout7);
obj.label52:setLeft(5);
obj.label52:setTop(30);
obj.label52:setWidth(50);
obj.label52:setHeight(25);
obj.label52:setText("ARMA");
obj.label52:setName("label52");
obj.edit62 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit62:setParent(obj.layout7);
obj.edit62:setVertTextAlign("center");
obj.edit62:setLeft(55);
obj.edit62:setTop(30);
obj.edit62:setWidth(225);
obj.edit62:setHeight(25);
obj.edit62:setField("arma6");
obj.edit62:setName("edit62");
obj.label53 = GUI.fromHandle(_obj_newObject("label"));
obj.label53:setParent(obj.layout7);
obj.label53:setLeft(5);
obj.label53:setTop(55);
obj.label53:setWidth(50);
obj.label53:setHeight(25);
obj.label53:setText("TIPO");
obj.label53:setName("label53");
obj.edit63 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit63:setParent(obj.layout7);
obj.edit63:setVertTextAlign("center");
obj.edit63:setLeft(55);
obj.edit63:setTop(55);
obj.edit63:setWidth(225);
obj.edit63:setHeight(25);
obj.edit63:setField("tipo6");
obj.edit63:setName("edit63");
obj.button21 = GUI.fromHandle(_obj_newObject("button"));
obj.button21:setParent(obj.layout7);
obj.button21:setLeft(279);
obj.button21:setTop(6);
obj.button21:setWidth(73);
obj.button21:setText("ATAQUE");
obj.button21:setFontSize(11);
obj.button21:setName("button21");
obj.edit64 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit64:setParent(obj.layout7);
obj.edit64:setType("number");
obj.edit64:setVertTextAlign("center");
obj.edit64:setLeft(352);
obj.edit64:setTop(5);
obj.edit64:setWidth(82);
obj.edit64:setHeight(25);
obj.edit64:setField("ataque6");
obj.edit64:setName("edit64");
obj.checkBox6 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox6:setParent(obj.layout7);
obj.checkBox6:setLeft(434);
obj.checkBox6:setTop(6);
obj.checkBox6:setWidth(150);
obj.checkBox6:setField("double6");
obj.checkBox6:setText("Ataque Total");
obj.checkBox6:setName("checkBox6");
obj.dataLink6 = GUI.fromHandle(_obj_newObject("dataLink"));
obj.dataLink6:setParent(obj.layout7);
obj.dataLink6:setFields({'ataque6','double6'});
obj.dataLink6:setName("dataLink6");
obj.button22 = GUI.fromHandle(_obj_newObject("button"));
obj.button22:setParent(obj.layout7);
obj.button22:setLeft(279);
obj.button22:setTop(31);
obj.button22:setWidth(73);
obj.button22:setText("DANO");
obj.button22:setFontSize(11);
obj.button22:setName("button22");
obj.edit65 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit65:setParent(obj.layout7);
obj.edit65:setVertTextAlign("center");
obj.edit65:setLeft(352);
obj.edit65:setTop(30);
obj.edit65:setWidth(82);
obj.edit65:setHeight(25);
obj.edit65:setField("dano6");
obj.edit65:setName("edit65");
obj.button23 = GUI.fromHandle(_obj_newObject("button"));
obj.button23:setParent(obj.layout7);
obj.button23:setLeft(434);
obj.button23:setTop(31);
obj.button23:setWidth(60);
obj.button23:setText("CRITICO");
obj.button23:setFontSize(11);
obj.button23:setName("button23");
obj.edit66 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit66:setParent(obj.layout7);
obj.edit66:setVertTextAlign("center");
obj.edit66:setLeft(493);
obj.edit66:setTop(30);
obj.edit66:setWidth(82);
obj.edit66:setHeight(25);
obj.edit66:setField("danoCritico6");
obj.edit66:setName("edit66");
obj.label54 = GUI.fromHandle(_obj_newObject("label"));
obj.label54:setParent(obj.layout7);
obj.label54:setLeft(290);
obj.label54:setTop(55);
obj.label54:setWidth(70);
obj.label54:setHeight(25);
obj.label54:setText("DECISIVO");
obj.label54:setName("label54");
obj.edit67 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit67:setParent(obj.layout7);
obj.edit67:setVertTextAlign("center");
obj.edit67:setLeft(352);
obj.edit67:setTop(55);
obj.edit67:setWidth(82);
obj.edit67:setHeight(25);
obj.edit67:setField("decisivo6");
obj.edit67:setName("edit67");
obj.label55 = GUI.fromHandle(_obj_newObject("label"));
obj.label55:setParent(obj.layout7);
obj.label55:setLeft(445);
obj.label55:setTop(55);
obj.label55:setWidth(50);
obj.label55:setHeight(25);
obj.label55:setText("MULTI");
obj.label55:setName("label55");
obj.edit68 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit68:setParent(obj.layout7);
obj.edit68:setVertTextAlign("center");
obj.edit68:setLeft(493);
obj.edit68:setTop(55);
obj.edit68:setWidth(82);
obj.edit68:setHeight(25);
obj.edit68:setField("multiplicador6");
obj.edit68:setName("edit68");
obj.label56 = GUI.fromHandle(_obj_newObject("label"));
obj.label56:setParent(obj.layout7);
obj.label56:setLeft(580);
obj.label56:setTop(5);
obj.label56:setWidth(80);
obj.label56:setHeight(25);
obj.label56:setText("CATEGORIA");
obj.label56:setName("label56");
obj.edit69 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit69:setParent(obj.layout7);
obj.edit69:setVertTextAlign("center");
obj.edit69:setLeft(660);
obj.edit69:setTop(5);
obj.edit69:setWidth(200);
obj.edit69:setHeight(25);
obj.edit69:setField("categoria6");
obj.edit69:setName("edit69");
obj.label57 = GUI.fromHandle(_obj_newObject("label"));
obj.label57:setParent(obj.layout7);
obj.label57:setLeft(610);
obj.label57:setTop(30);
obj.label57:setWidth(50);
obj.label57:setHeight(25);
obj.label57:setText("OBS");
obj.label57:setName("label57");
obj.edit70 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit70:setParent(obj.layout7);
obj.edit70:setVertTextAlign("center");
obj.edit70:setLeft(660);
obj.edit70:setTop(30);
obj.edit70:setWidth(200);
obj.edit70:setHeight(25);
obj.edit70:setField("obs6");
obj.edit70:setName("edit70");
obj.label58 = GUI.fromHandle(_obj_newObject("label"));
obj.label58:setParent(obj.layout7);
obj.label58:setLeft(590);
obj.label58:setTop(55);
obj.label58:setWidth(80);
obj.label58:setHeight(25);
obj.label58:setText("MUNIÇÃO");
obj.label58:setName("label58");
obj.edit71 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit71:setParent(obj.layout7);
obj.edit71:setType("number");
obj.edit71:setVertTextAlign("center");
obj.edit71:setLeft(660);
obj.edit71:setTop(55);
obj.edit71:setWidth(69);
obj.edit71:setHeight(25);
obj.edit71:setField("municao6");
obj.edit71:setName("edit71");
obj.label59 = GUI.fromHandle(_obj_newObject("label"));
obj.label59:setParent(obj.layout7);
obj.label59:setLeft(735);
obj.label59:setTop(55);
obj.label59:setWidth(70);
obj.label59:setHeight(25);
obj.label59:setText("ALCANCE");
obj.label59:setName("label59");
obj.edit72 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit72:setParent(obj.layout7);
obj.edit72:setVertTextAlign("center");
obj.edit72:setLeft(795);
obj.edit72:setTop(55);
obj.edit72:setWidth(65);
obj.edit72:setHeight(25);
obj.edit72:setField("alcance6");
obj.edit72:setName("edit72");
obj.rectangle13 = GUI.fromHandle(_obj_newObject("rectangle"));
obj.rectangle13:setParent(obj.layout7);
obj.rectangle13:setLeft(869);
obj.rectangle13:setTop(4);
obj.rectangle13:setWidth(332);
obj.rectangle13:setHeight(77);
obj.rectangle13:setColor("black");
obj.rectangle13:setStrokeColor("white");
obj.rectangle13:setStrokeSize(1);
obj.rectangle13:setName("rectangle13");
obj.label60 = GUI.fromHandle(_obj_newObject("label"));
obj.label60:setParent(obj.layout7);
obj.label60:setLeft(870);
obj.label60:setTop(25);
obj.label60:setWidth(330);
obj.label60:setHeight(25);
obj.label60:setHorzTextAlign("center");
obj.label60:setText("Clique para adicionar imagem");
obj.label60:setName("label60");
obj.image6 = GUI.fromHandle(_obj_newObject("image"));
obj.image6:setParent(obj.layout7);
obj.image6:setField("imagemArma6");
obj.image6:setEditable(true);
obj.image6:setStyle("autoFit");
obj.image6:setLeft(870);
obj.image6:setTop(5);
obj.image6:setWidth(330);
obj.image6:setHeight(75);
obj.image6:setName("image6");
obj.button24 = GUI.fromHandle(_obj_newObject("button"));
obj.button24:setParent(obj.layout7);
obj.button24:setLeft(1205);
obj.button24:setTop(5);
obj.button24:setWidth(25);
obj.button24:setHeight(75);
obj.button24:setText("X");
obj.button24:setFontSize(15);
obj.button24:setHint("Apaga o ataque.");
obj.button24:setName("button24");
obj.layout8 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout8:setParent(obj.layout1);
obj.layout8:setLeft(2);
obj.layout8:setTop(573);
obj.layout8:setWidth(1232);
obj.layout8:setHeight(92);
obj.layout8:setName("layout8");
obj.rectangle14 = GUI.fromHandle(_obj_newObject("rectangle"));
obj.rectangle14:setParent(obj.layout8);
obj.rectangle14:setAlign("client");
obj.rectangle14:setColor("black");
obj.rectangle14:setName("rectangle14");
obj.label61 = GUI.fromHandle(_obj_newObject("label"));
obj.label61:setParent(obj.layout8);
obj.label61:setLeft(5);
obj.label61:setTop(5);
obj.label61:setWidth(50);
obj.label61:setHeight(25);
obj.label61:setText("NOME");
obj.label61:setName("label61");
obj.edit73 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit73:setParent(obj.layout8);
obj.edit73:setVertTextAlign("center");
obj.edit73:setLeft(55);
obj.edit73:setTop(5);
obj.edit73:setWidth(225);
obj.edit73:setHeight(25);
obj.edit73:setField("nome7");
obj.edit73:setName("edit73");
obj.label62 = GUI.fromHandle(_obj_newObject("label"));
obj.label62:setParent(obj.layout8);
obj.label62:setLeft(5);
obj.label62:setTop(30);
obj.label62:setWidth(50);
obj.label62:setHeight(25);
obj.label62:setText("ARMA");
obj.label62:setName("label62");
obj.edit74 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit74:setParent(obj.layout8);
obj.edit74:setVertTextAlign("center");
obj.edit74:setLeft(55);
obj.edit74:setTop(30);
obj.edit74:setWidth(225);
obj.edit74:setHeight(25);
obj.edit74:setField("arma7");
obj.edit74:setName("edit74");
obj.label63 = GUI.fromHandle(_obj_newObject("label"));
obj.label63:setParent(obj.layout8);
obj.label63:setLeft(5);
obj.label63:setTop(55);
obj.label63:setWidth(50);
obj.label63:setHeight(25);
obj.label63:setText("TIPO");
obj.label63:setName("label63");
obj.edit75 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit75:setParent(obj.layout8);
obj.edit75:setVertTextAlign("center");
obj.edit75:setLeft(55);
obj.edit75:setTop(55);
obj.edit75:setWidth(225);
obj.edit75:setHeight(25);
obj.edit75:setField("tipo7");
obj.edit75:setName("edit75");
obj.button25 = GUI.fromHandle(_obj_newObject("button"));
obj.button25:setParent(obj.layout8);
obj.button25:setLeft(279);
obj.button25:setTop(6);
obj.button25:setWidth(73);
obj.button25:setText("ATAQUE");
obj.button25:setFontSize(11);
obj.button25:setName("button25");
obj.edit76 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit76:setParent(obj.layout8);
obj.edit76:setType("number");
obj.edit76:setVertTextAlign("center");
obj.edit76:setLeft(352);
obj.edit76:setTop(5);
obj.edit76:setWidth(82);
obj.edit76:setHeight(25);
obj.edit76:setField("ataque7");
obj.edit76:setName("edit76");
obj.checkBox7 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox7:setParent(obj.layout8);
obj.checkBox7:setLeft(434);
obj.checkBox7:setTop(6);
obj.checkBox7:setWidth(150);
obj.checkBox7:setField("double7");
obj.checkBox7:setText("Ataque Total");
obj.checkBox7:setName("checkBox7");
obj.dataLink7 = GUI.fromHandle(_obj_newObject("dataLink"));
obj.dataLink7:setParent(obj.layout8);
obj.dataLink7:setFields({'ataque7','double7'});
obj.dataLink7:setName("dataLink7");
obj.button26 = GUI.fromHandle(_obj_newObject("button"));
obj.button26:setParent(obj.layout8);
obj.button26:setLeft(279);
obj.button26:setTop(31);
obj.button26:setWidth(73);
obj.button26:setText("DANO");
obj.button26:setFontSize(11);
obj.button26:setName("button26");
obj.edit77 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit77:setParent(obj.layout8);
obj.edit77:setVertTextAlign("center");
obj.edit77:setLeft(352);
obj.edit77:setTop(30);
obj.edit77:setWidth(82);
obj.edit77:setHeight(25);
obj.edit77:setField("dano7");
obj.edit77:setName("edit77");
obj.button27 = GUI.fromHandle(_obj_newObject("button"));
obj.button27:setParent(obj.layout8);
obj.button27:setLeft(434);
obj.button27:setTop(31);
obj.button27:setWidth(60);
obj.button27:setText("CRITICO");
obj.button27:setFontSize(11);
obj.button27:setName("button27");
obj.edit78 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit78:setParent(obj.layout8);
obj.edit78:setVertTextAlign("center");
obj.edit78:setLeft(493);
obj.edit78:setTop(30);
obj.edit78:setWidth(82);
obj.edit78:setHeight(25);
obj.edit78:setField("danoCritico7");
obj.edit78:setName("edit78");
obj.label64 = GUI.fromHandle(_obj_newObject("label"));
obj.label64:setParent(obj.layout8);
obj.label64:setLeft(290);
obj.label64:setTop(55);
obj.label64:setWidth(70);
obj.label64:setHeight(25);
obj.label64:setText("DECISIVO");
obj.label64:setName("label64");
obj.edit79 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit79:setParent(obj.layout8);
obj.edit79:setVertTextAlign("center");
obj.edit79:setLeft(352);
obj.edit79:setTop(55);
obj.edit79:setWidth(82);
obj.edit79:setHeight(25);
obj.edit79:setField("decisivo7");
obj.edit79:setName("edit79");
obj.label65 = GUI.fromHandle(_obj_newObject("label"));
obj.label65:setParent(obj.layout8);
obj.label65:setLeft(445);
obj.label65:setTop(55);
obj.label65:setWidth(50);
obj.label65:setHeight(25);
obj.label65:setText("MULTI");
obj.label65:setName("label65");
obj.edit80 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit80:setParent(obj.layout8);
obj.edit80:setVertTextAlign("center");
obj.edit80:setLeft(493);
obj.edit80:setTop(55);
obj.edit80:setWidth(82);
obj.edit80:setHeight(25);
obj.edit80:setField("multiplicador7");
obj.edit80:setName("edit80");
obj.label66 = GUI.fromHandle(_obj_newObject("label"));
obj.label66:setParent(obj.layout8);
obj.label66:setLeft(580);
obj.label66:setTop(5);
obj.label66:setWidth(80);
obj.label66:setHeight(25);
obj.label66:setText("CATEGORIA");
obj.label66:setName("label66");
obj.edit81 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit81:setParent(obj.layout8);
obj.edit81:setVertTextAlign("center");
obj.edit81:setLeft(660);
obj.edit81:setTop(5);
obj.edit81:setWidth(200);
obj.edit81:setHeight(25);
obj.edit81:setField("categoria7");
obj.edit81:setName("edit81");
obj.label67 = GUI.fromHandle(_obj_newObject("label"));
obj.label67:setParent(obj.layout8);
obj.label67:setLeft(610);
obj.label67:setTop(30);
obj.label67:setWidth(50);
obj.label67:setHeight(25);
obj.label67:setText("OBS");
obj.label67:setName("label67");
obj.edit82 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit82:setParent(obj.layout8);
obj.edit82:setVertTextAlign("center");
obj.edit82:setLeft(660);
obj.edit82:setTop(30);
obj.edit82:setWidth(200);
obj.edit82:setHeight(25);
obj.edit82:setField("obs7");
obj.edit82:setName("edit82");
obj.label68 = GUI.fromHandle(_obj_newObject("label"));
obj.label68:setParent(obj.layout8);
obj.label68:setLeft(590);
obj.label68:setTop(55);
obj.label68:setWidth(80);
obj.label68:setHeight(25);
obj.label68:setText("MUNIÇÃO");
obj.label68:setName("label68");
obj.edit83 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit83:setParent(obj.layout8);
obj.edit83:setType("number");
obj.edit83:setVertTextAlign("center");
obj.edit83:setLeft(660);
obj.edit83:setTop(55);
obj.edit83:setWidth(69);
obj.edit83:setHeight(25);
obj.edit83:setField("municao7");
obj.edit83:setName("edit83");
obj.label69 = GUI.fromHandle(_obj_newObject("label"));
obj.label69:setParent(obj.layout8);
obj.label69:setLeft(735);
obj.label69:setTop(55);
obj.label69:setWidth(70);
obj.label69:setHeight(25);
obj.label69:setText("ALCANCE");
obj.label69:setName("label69");
obj.edit84 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit84:setParent(obj.layout8);
obj.edit84:setVertTextAlign("center");
obj.edit84:setLeft(795);
obj.edit84:setTop(55);
obj.edit84:setWidth(65);
obj.edit84:setHeight(25);
obj.edit84:setField("alcance7");
obj.edit84:setName("edit84");
obj.rectangle15 = GUI.fromHandle(_obj_newObject("rectangle"));
obj.rectangle15:setParent(obj.layout8);
obj.rectangle15:setLeft(869);
obj.rectangle15:setTop(4);
obj.rectangle15:setWidth(332);
obj.rectangle15:setHeight(77);
obj.rectangle15:setColor("black");
obj.rectangle15:setStrokeColor("white");
obj.rectangle15:setStrokeSize(1);
obj.rectangle15:setName("rectangle15");
obj.label70 = GUI.fromHandle(_obj_newObject("label"));
obj.label70:setParent(obj.layout8);
obj.label70:setLeft(870);
obj.label70:setTop(25);
obj.label70:setWidth(330);
obj.label70:setHeight(25);
obj.label70:setHorzTextAlign("center");
obj.label70:setText("Clique para adicionar imagem");
obj.label70:setName("label70");
obj.image7 = GUI.fromHandle(_obj_newObject("image"));
obj.image7:setParent(obj.layout8);
obj.image7:setField("imagemArma7");
obj.image7:setEditable(true);
obj.image7:setStyle("autoFit");
obj.image7:setLeft(870);
obj.image7:setTop(5);
obj.image7:setWidth(330);
obj.image7:setHeight(75);
obj.image7:setName("image7");
obj.button28 = GUI.fromHandle(_obj_newObject("button"));
obj.button28:setParent(obj.layout8);
obj.button28:setLeft(1205);
obj.button28:setTop(5);
obj.button28:setWidth(25);
obj.button28:setHeight(75);
obj.button28:setText("X");
obj.button28:setFontSize(15);
obj.button28:setHint("Apaga o ataque.");
obj.button28:setName("button28");
obj.layout9 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout9:setParent(obj.layout1);
obj.layout9:setLeft(2);
obj.layout9:setTop(668);
obj.layout9:setWidth(1232);
obj.layout9:setHeight(92);
obj.layout9:setName("layout9");
obj.rectangle16 = GUI.fromHandle(_obj_newObject("rectangle"));
obj.rectangle16:setParent(obj.layout9);
obj.rectangle16:setAlign("client");
obj.rectangle16:setColor("black");
obj.rectangle16:setName("rectangle16");
obj.label71 = GUI.fromHandle(_obj_newObject("label"));
obj.label71:setParent(obj.layout9);
obj.label71:setLeft(5);
obj.label71:setTop(5);
obj.label71:setWidth(50);
obj.label71:setHeight(25);
obj.label71:setText("NOME");
obj.label71:setName("label71");
obj.edit85 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit85:setParent(obj.layout9);
obj.edit85:setVertTextAlign("center");
obj.edit85:setLeft(55);
obj.edit85:setTop(5);
obj.edit85:setWidth(225);
obj.edit85:setHeight(25);
obj.edit85:setField("nome8");
obj.edit85:setName("edit85");
obj.label72 = GUI.fromHandle(_obj_newObject("label"));
obj.label72:setParent(obj.layout9);
obj.label72:setLeft(5);
obj.label72:setTop(30);
obj.label72:setWidth(50);
obj.label72:setHeight(25);
obj.label72:setText("ARMA");
obj.label72:setName("label72");
obj.edit86 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit86:setParent(obj.layout9);
obj.edit86:setVertTextAlign("center");
obj.edit86:setLeft(55);
obj.edit86:setTop(30);
obj.edit86:setWidth(225);
obj.edit86:setHeight(25);
obj.edit86:setField("arma8");
obj.edit86:setName("edit86");
obj.label73 = GUI.fromHandle(_obj_newObject("label"));
obj.label73:setParent(obj.layout9);
obj.label73:setLeft(5);
obj.label73:setTop(55);
obj.label73:setWidth(50);
obj.label73:setHeight(25);
obj.label73:setText("TIPO");
obj.label73:setName("label73");
obj.edit87 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit87:setParent(obj.layout9);
obj.edit87:setVertTextAlign("center");
obj.edit87:setLeft(55);
obj.edit87:setTop(55);
obj.edit87:setWidth(225);
obj.edit87:setHeight(25);
obj.edit87:setField("tipo8");
obj.edit87:setName("edit87");
obj.button29 = GUI.fromHandle(_obj_newObject("button"));
obj.button29:setParent(obj.layout9);
obj.button29:setLeft(279);
obj.button29:setTop(6);
obj.button29:setWidth(73);
obj.button29:setText("ATAQUE");
obj.button29:setFontSize(11);
obj.button29:setName("button29");
obj.edit88 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit88:setParent(obj.layout9);
obj.edit88:setType("number");
obj.edit88:setVertTextAlign("center");
obj.edit88:setLeft(352);
obj.edit88:setTop(5);
obj.edit88:setWidth(82);
obj.edit88:setHeight(25);
obj.edit88:setField("ataque8");
obj.edit88:setName("edit88");
obj.checkBox8 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox8:setParent(obj.layout9);
obj.checkBox8:setLeft(434);
obj.checkBox8:setTop(6);
obj.checkBox8:setWidth(150);
obj.checkBox8:setField("double8");
obj.checkBox8:setText("Ataque Total");
obj.checkBox8:setName("checkBox8");
obj.dataLink8 = GUI.fromHandle(_obj_newObject("dataLink"));
obj.dataLink8:setParent(obj.layout9);
obj.dataLink8:setFields({'ataque8','double8'});
obj.dataLink8:setName("dataLink8");
obj.button30 = GUI.fromHandle(_obj_newObject("button"));
obj.button30:setParent(obj.layout9);
obj.button30:setLeft(279);
obj.button30:setTop(31);
obj.button30:setWidth(73);
obj.button30:setText("DANO");
obj.button30:setFontSize(11);
obj.button30:setName("button30");
obj.edit89 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit89:setParent(obj.layout9);
obj.edit89:setVertTextAlign("center");
obj.edit89:setLeft(352);
obj.edit89:setTop(30);
obj.edit89:setWidth(82);
obj.edit89:setHeight(25);
obj.edit89:setField("dano8");
obj.edit89:setName("edit89");
obj.button31 = GUI.fromHandle(_obj_newObject("button"));
obj.button31:setParent(obj.layout9);
obj.button31:setLeft(434);
obj.button31:setTop(31);
obj.button31:setWidth(60);
obj.button31:setText("CRITICO");
obj.button31:setFontSize(11);
obj.button31:setName("button31");
obj.edit90 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit90:setParent(obj.layout9);
obj.edit90:setVertTextAlign("center");
obj.edit90:setLeft(493);
obj.edit90:setTop(30);
obj.edit90:setWidth(82);
obj.edit90:setHeight(25);
obj.edit90:setField("danoCritico8");
obj.edit90:setName("edit90");
obj.label74 = GUI.fromHandle(_obj_newObject("label"));
obj.label74:setParent(obj.layout9);
obj.label74:setLeft(290);
obj.label74:setTop(55);
obj.label74:setWidth(70);
obj.label74:setHeight(25);
obj.label74:setText("DECISIVO");
obj.label74:setName("label74");
obj.edit91 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit91:setParent(obj.layout9);
obj.edit91:setVertTextAlign("center");
obj.edit91:setLeft(352);
obj.edit91:setTop(55);
obj.edit91:setWidth(82);
obj.edit91:setHeight(25);
obj.edit91:setField("decisivo8");
obj.edit91:setName("edit91");
obj.label75 = GUI.fromHandle(_obj_newObject("label"));
obj.label75:setParent(obj.layout9);
obj.label75:setLeft(445);
obj.label75:setTop(55);
obj.label75:setWidth(50);
obj.label75:setHeight(25);
obj.label75:setText("MULTI");
obj.label75:setName("label75");
obj.edit92 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit92:setParent(obj.layout9);
obj.edit92:setVertTextAlign("center");
obj.edit92:setLeft(493);
obj.edit92:setTop(55);
obj.edit92:setWidth(82);
obj.edit92:setHeight(25);
obj.edit92:setField("multiplicador8");
obj.edit92:setName("edit92");
obj.label76 = GUI.fromHandle(_obj_newObject("label"));
obj.label76:setParent(obj.layout9);
obj.label76:setLeft(580);
obj.label76:setTop(5);
obj.label76:setWidth(80);
obj.label76:setHeight(25);
obj.label76:setText("CATEGORIA");
obj.label76:setName("label76");
obj.edit93 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit93:setParent(obj.layout9);
obj.edit93:setVertTextAlign("center");
obj.edit93:setLeft(660);
obj.edit93:setTop(5);
obj.edit93:setWidth(200);
obj.edit93:setHeight(25);
obj.edit93:setField("categoria8");
obj.edit93:setName("edit93");
obj.label77 = GUI.fromHandle(_obj_newObject("label"));
obj.label77:setParent(obj.layout9);
obj.label77:setLeft(610);
obj.label77:setTop(30);
obj.label77:setWidth(50);
obj.label77:setHeight(25);
obj.label77:setText("OBS");
obj.label77:setName("label77");
obj.edit94 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit94:setParent(obj.layout9);
obj.edit94:setVertTextAlign("center");
obj.edit94:setLeft(660);
obj.edit94:setTop(30);
obj.edit94:setWidth(200);
obj.edit94:setHeight(25);
obj.edit94:setField("obs8");
obj.edit94:setName("edit94");
obj.label78 = GUI.fromHandle(_obj_newObject("label"));
obj.label78:setParent(obj.layout9);
obj.label78:setLeft(590);
obj.label78:setTop(55);
obj.label78:setWidth(80);
obj.label78:setHeight(25);
obj.label78:setText("MUNIÇÃO");
obj.label78:setName("label78");
obj.edit95 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit95:setParent(obj.layout9);
obj.edit95:setType("number");
obj.edit95:setVertTextAlign("center");
obj.edit95:setLeft(660);
obj.edit95:setTop(55);
obj.edit95:setWidth(69);
obj.edit95:setHeight(25);
obj.edit95:setField("municao8");
obj.edit95:setName("edit95");
obj.label79 = GUI.fromHandle(_obj_newObject("label"));
obj.label79:setParent(obj.layout9);
obj.label79:setLeft(735);
obj.label79:setTop(55);
obj.label79:setWidth(70);
obj.label79:setHeight(25);
obj.label79:setText("ALCANCE");
obj.label79:setName("label79");
obj.edit96 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit96:setParent(obj.layout9);
obj.edit96:setVertTextAlign("center");
obj.edit96:setLeft(795);
obj.edit96:setTop(55);
obj.edit96:setWidth(65);
obj.edit96:setHeight(25);
obj.edit96:setField("alcance8");
obj.edit96:setName("edit96");
obj.rectangle17 = GUI.fromHandle(_obj_newObject("rectangle"));
obj.rectangle17:setParent(obj.layout9);
obj.rectangle17:setLeft(869);
obj.rectangle17:setTop(4);
obj.rectangle17:setWidth(332);
obj.rectangle17:setHeight(77);
obj.rectangle17:setColor("black");
obj.rectangle17:setStrokeColor("white");
obj.rectangle17:setStrokeSize(1);
obj.rectangle17:setName("rectangle17");
obj.label80 = GUI.fromHandle(_obj_newObject("label"));
obj.label80:setParent(obj.layout9);
obj.label80:setLeft(870);
obj.label80:setTop(25);
obj.label80:setWidth(330);
obj.label80:setHeight(25);
obj.label80:setHorzTextAlign("center");
obj.label80:setText("Clique para adicionar imagem");
obj.label80:setName("label80");
obj.image8 = GUI.fromHandle(_obj_newObject("image"));
obj.image8:setParent(obj.layout9);
obj.image8:setField("imagemArma8");
obj.image8:setEditable(true);
obj.image8:setStyle("autoFit");
obj.image8:setLeft(870);
obj.image8:setTop(5);
obj.image8:setWidth(330);
obj.image8:setHeight(75);
obj.image8:setName("image8");
obj.button32 = GUI.fromHandle(_obj_newObject("button"));
obj.button32:setParent(obj.layout9);
obj.button32:setLeft(1205);
obj.button32:setTop(5);
obj.button32:setWidth(25);
obj.button32:setHeight(75);
obj.button32:setText("X");
obj.button32:setFontSize(15);
obj.button32:setHint("Apaga o ataque.");
obj.button32:setName("button32");
obj.layout10 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout10:setParent(obj.layout1);
obj.layout10:setLeft(2);
obj.layout10:setTop(763);
obj.layout10:setWidth(1232);
obj.layout10:setHeight(92);
obj.layout10:setName("layout10");
obj.rectangle18 = GUI.fromHandle(_obj_newObject("rectangle"));
obj.rectangle18:setParent(obj.layout10);
obj.rectangle18:setAlign("client");
obj.rectangle18:setColor("black");
obj.rectangle18:setName("rectangle18");
obj.label81 = GUI.fromHandle(_obj_newObject("label"));
obj.label81:setParent(obj.layout10);
obj.label81:setLeft(5);
obj.label81:setTop(5);
obj.label81:setWidth(50);
obj.label81:setHeight(25);
obj.label81:setText("NOME");
obj.label81:setName("label81");
obj.edit97 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit97:setParent(obj.layout10);
obj.edit97:setVertTextAlign("center");
obj.edit97:setLeft(55);
obj.edit97:setTop(5);
obj.edit97:setWidth(225);
obj.edit97:setHeight(25);
obj.edit97:setField("nome9");
obj.edit97:setName("edit97");
obj.label82 = GUI.fromHandle(_obj_newObject("label"));
obj.label82:setParent(obj.layout10);
obj.label82:setLeft(5);
obj.label82:setTop(30);
obj.label82:setWidth(50);
obj.label82:setHeight(25);
obj.label82:setText("ARMA");
obj.label82:setName("label82");
obj.edit98 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit98:setParent(obj.layout10);
obj.edit98:setVertTextAlign("center");
obj.edit98:setLeft(55);
obj.edit98:setTop(30);
obj.edit98:setWidth(225);
obj.edit98:setHeight(25);
obj.edit98:setField("arma9");
obj.edit98:setName("edit98");
obj.label83 = GUI.fromHandle(_obj_newObject("label"));
obj.label83:setParent(obj.layout10);
obj.label83:setLeft(5);
obj.label83:setTop(55);
obj.label83:setWidth(50);
obj.label83:setHeight(25);
obj.label83:setText("TIPO");
obj.label83:setName("label83");
obj.edit99 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit99:setParent(obj.layout10);
obj.edit99:setVertTextAlign("center");
obj.edit99:setLeft(55);
obj.edit99:setTop(55);
obj.edit99:setWidth(225);
obj.edit99:setHeight(25);
obj.edit99:setField("tipo9");
obj.edit99:setName("edit99");
obj.button33 = GUI.fromHandle(_obj_newObject("button"));
obj.button33:setParent(obj.layout10);
obj.button33:setLeft(279);
obj.button33:setTop(6);
obj.button33:setWidth(73);
obj.button33:setText("ATAQUE");
obj.button33:setFontSize(11);
obj.button33:setName("button33");
obj.edit100 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit100:setParent(obj.layout10);
obj.edit100:setType("number");
obj.edit100:setVertTextAlign("center");
obj.edit100:setLeft(352);
obj.edit100:setTop(5);
obj.edit100:setWidth(82);
obj.edit100:setHeight(25);
obj.edit100:setField("ataque9");
obj.edit100:setName("edit100");
obj.checkBox9 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox9:setParent(obj.layout10);
obj.checkBox9:setLeft(434);
obj.checkBox9:setTop(6);
obj.checkBox9:setWidth(150);
obj.checkBox9:setField("double9");
obj.checkBox9:setText("Ataque Total");
obj.checkBox9:setName("checkBox9");
obj.dataLink9 = GUI.fromHandle(_obj_newObject("dataLink"));
obj.dataLink9:setParent(obj.layout10);
obj.dataLink9:setFields({'ataque9','double9'});
obj.dataLink9:setName("dataLink9");
obj.button34 = GUI.fromHandle(_obj_newObject("button"));
obj.button34:setParent(obj.layout10);
obj.button34:setLeft(279);
obj.button34:setTop(31);
obj.button34:setWidth(73);
obj.button34:setText("DANO");
obj.button34:setFontSize(11);
obj.button34:setName("button34");
obj.edit101 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit101:setParent(obj.layout10);
obj.edit101:setVertTextAlign("center");
obj.edit101:setLeft(352);
obj.edit101:setTop(30);
obj.edit101:setWidth(82);
obj.edit101:setHeight(25);
obj.edit101:setField("dano9");
obj.edit101:setName("edit101");
obj.button35 = GUI.fromHandle(_obj_newObject("button"));
obj.button35:setParent(obj.layout10);
obj.button35:setLeft(434);
obj.button35:setTop(31);
obj.button35:setWidth(60);
obj.button35:setText("CRITICO");
obj.button35:setFontSize(11);
obj.button35:setName("button35");
obj.edit102 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit102:setParent(obj.layout10);
obj.edit102:setVertTextAlign("center");
obj.edit102:setLeft(493);
obj.edit102:setTop(30);
obj.edit102:setWidth(82);
obj.edit102:setHeight(25);
obj.edit102:setField("danoCritico9");
obj.edit102:setName("edit102");
obj.label84 = GUI.fromHandle(_obj_newObject("label"));
obj.label84:setParent(obj.layout10);
obj.label84:setLeft(290);
obj.label84:setTop(55);
obj.label84:setWidth(70);
obj.label84:setHeight(25);
obj.label84:setText("DECISIVO");
obj.label84:setName("label84");
obj.edit103 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit103:setParent(obj.layout10);
obj.edit103:setVertTextAlign("center");
obj.edit103:setLeft(352);
obj.edit103:setTop(55);
obj.edit103:setWidth(82);
obj.edit103:setHeight(25);
obj.edit103:setField("decisivo9");
obj.edit103:setName("edit103");
obj.label85 = GUI.fromHandle(_obj_newObject("label"));
obj.label85:setParent(obj.layout10);
obj.label85:setLeft(445);
obj.label85:setTop(55);
obj.label85:setWidth(50);
obj.label85:setHeight(25);
obj.label85:setText("MULTI");
obj.label85:setName("label85");
obj.edit104 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit104:setParent(obj.layout10);
obj.edit104:setVertTextAlign("center");
obj.edit104:setLeft(493);
obj.edit104:setTop(55);
obj.edit104:setWidth(82);
obj.edit104:setHeight(25);
obj.edit104:setField("multiplicador9");
obj.edit104:setName("edit104");
obj.label86 = GUI.fromHandle(_obj_newObject("label"));
obj.label86:setParent(obj.layout10);
obj.label86:setLeft(580);
obj.label86:setTop(5);
obj.label86:setWidth(80);
obj.label86:setHeight(25);
obj.label86:setText("CATEGORIA");
obj.label86:setName("label86");
obj.edit105 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit105:setParent(obj.layout10);
obj.edit105:setVertTextAlign("center");
obj.edit105:setLeft(660);
obj.edit105:setTop(5);
obj.edit105:setWidth(200);
obj.edit105:setHeight(25);
obj.edit105:setField("categoria9");
obj.edit105:setName("edit105");
obj.label87 = GUI.fromHandle(_obj_newObject("label"));
obj.label87:setParent(obj.layout10);
obj.label87:setLeft(610);
obj.label87:setTop(30);
obj.label87:setWidth(50);
obj.label87:setHeight(25);
obj.label87:setText("OBS");
obj.label87:setName("label87");
obj.edit106 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit106:setParent(obj.layout10);
obj.edit106:setVertTextAlign("center");
obj.edit106:setLeft(660);
obj.edit106:setTop(30);
obj.edit106:setWidth(200);
obj.edit106:setHeight(25);
obj.edit106:setField("obs9");
obj.edit106:setName("edit106");
obj.label88 = GUI.fromHandle(_obj_newObject("label"));
obj.label88:setParent(obj.layout10);
obj.label88:setLeft(590);
obj.label88:setTop(55);
obj.label88:setWidth(80);
obj.label88:setHeight(25);
obj.label88:setText("MUNIÇÃO");
obj.label88:setName("label88");
obj.edit107 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit107:setParent(obj.layout10);
obj.edit107:setType("number");
obj.edit107:setVertTextAlign("center");
obj.edit107:setLeft(660);
obj.edit107:setTop(55);
obj.edit107:setWidth(69);
obj.edit107:setHeight(25);
obj.edit107:setField("municao9");
obj.edit107:setName("edit107");
obj.label89 = GUI.fromHandle(_obj_newObject("label"));
obj.label89:setParent(obj.layout10);
obj.label89:setLeft(735);
obj.label89:setTop(55);
obj.label89:setWidth(70);
obj.label89:setHeight(25);
obj.label89:setText("ALCANCE");
obj.label89:setName("label89");
obj.edit108 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit108:setParent(obj.layout10);
obj.edit108:setVertTextAlign("center");
obj.edit108:setLeft(795);
obj.edit108:setTop(55);
obj.edit108:setWidth(65);
obj.edit108:setHeight(25);
obj.edit108:setField("alcance9");
obj.edit108:setName("edit108");
obj.rectangle19 = GUI.fromHandle(_obj_newObject("rectangle"));
obj.rectangle19:setParent(obj.layout10);
obj.rectangle19:setLeft(869);
obj.rectangle19:setTop(4);
obj.rectangle19:setWidth(332);
obj.rectangle19:setHeight(77);
obj.rectangle19:setColor("black");
obj.rectangle19:setStrokeColor("white");
obj.rectangle19:setStrokeSize(1);
obj.rectangle19:setName("rectangle19");
obj.label90 = GUI.fromHandle(_obj_newObject("label"));
obj.label90:setParent(obj.layout10);
obj.label90:setLeft(870);
obj.label90:setTop(25);
obj.label90:setWidth(330);
obj.label90:setHeight(25);
obj.label90:setHorzTextAlign("center");
obj.label90:setText("Clique para adicionar imagem");
obj.label90:setName("label90");
obj.image9 = GUI.fromHandle(_obj_newObject("image"));
obj.image9:setParent(obj.layout10);
obj.image9:setField("imagemArma9");
obj.image9:setEditable(true);
obj.image9:setStyle("autoFit");
obj.image9:setLeft(870);
obj.image9:setTop(5);
obj.image9:setWidth(330);
obj.image9:setHeight(75);
obj.image9:setName("image9");
obj.button36 = GUI.fromHandle(_obj_newObject("button"));
obj.button36:setParent(obj.layout10);
obj.button36:setLeft(1205);
obj.button36:setTop(5);
obj.button36:setWidth(25);
obj.button36:setHeight(75);
obj.button36:setText("X");
obj.button36:setFontSize(15);
obj.button36:setHint("Apaga o ataque.");
obj.button36:setName("button36");
obj.layout11 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout11:setParent(obj.layout1);
obj.layout11:setLeft(2);
obj.layout11:setTop(858);
obj.layout11:setWidth(1232);
obj.layout11:setHeight(92);
obj.layout11:setName("layout11");
obj.rectangle20 = GUI.fromHandle(_obj_newObject("rectangle"));
obj.rectangle20:setParent(obj.layout11);
obj.rectangle20:setAlign("client");
obj.rectangle20:setColor("black");
obj.rectangle20:setName("rectangle20");
obj.label91 = GUI.fromHandle(_obj_newObject("label"));
obj.label91:setParent(obj.layout11);
obj.label91:setLeft(5);
obj.label91:setTop(5);
obj.label91:setWidth(50);
obj.label91:setHeight(25);
obj.label91:setText("NOME");
obj.label91:setName("label91");
obj.edit109 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit109:setParent(obj.layout11);
obj.edit109:setVertTextAlign("center");
obj.edit109:setLeft(55);
obj.edit109:setTop(5);
obj.edit109:setWidth(225);
obj.edit109:setHeight(25);
obj.edit109:setField("nome10");
obj.edit109:setName("edit109");
obj.label92 = GUI.fromHandle(_obj_newObject("label"));
obj.label92:setParent(obj.layout11);
obj.label92:setLeft(5);
obj.label92:setTop(30);
obj.label92:setWidth(50);
obj.label92:setHeight(25);
obj.label92:setText("ARMA");
obj.label92:setName("label92");
obj.edit110 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit110:setParent(obj.layout11);
obj.edit110:setVertTextAlign("center");
obj.edit110:setLeft(55);
obj.edit110:setTop(30);
obj.edit110:setWidth(225);
obj.edit110:setHeight(25);
obj.edit110:setField("arma10");
obj.edit110:setName("edit110");
obj.label93 = GUI.fromHandle(_obj_newObject("label"));
obj.label93:setParent(obj.layout11);
obj.label93:setLeft(5);
obj.label93:setTop(55);
obj.label93:setWidth(50);
obj.label93:setHeight(25);
obj.label93:setText("TIPO");
obj.label93:setName("label93");
obj.edit111 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit111:setParent(obj.layout11);
obj.edit111:setVertTextAlign("center");
obj.edit111:setLeft(55);
obj.edit111:setTop(55);
obj.edit111:setWidth(225);
obj.edit111:setHeight(25);
obj.edit111:setField("tipo10");
obj.edit111:setName("edit111");
obj.button37 = GUI.fromHandle(_obj_newObject("button"));
obj.button37:setParent(obj.layout11);
obj.button37:setLeft(279);
obj.button37:setTop(6);
obj.button37:setWidth(73);
obj.button37:setText("ATAQUE");
obj.button37:setFontSize(11);
obj.button37:setName("button37");
obj.edit112 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit112:setParent(obj.layout11);
obj.edit112:setType("number");
obj.edit112:setVertTextAlign("center");
obj.edit112:setLeft(352);
obj.edit112:setTop(5);
obj.edit112:setWidth(82);
obj.edit112:setHeight(25);
obj.edit112:setField("ataque10");
obj.edit112:setName("edit112");
obj.checkBox10 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox10:setParent(obj.layout11);
obj.checkBox10:setLeft(434);
obj.checkBox10:setTop(6);
obj.checkBox10:setWidth(150);
obj.checkBox10:setField("double10");
obj.checkBox10:setText("Ataque Total");
obj.checkBox10:setName("checkBox10");
obj.dataLink10 = GUI.fromHandle(_obj_newObject("dataLink"));
obj.dataLink10:setParent(obj.layout11);
obj.dataLink10:setFields({'ataque10','double10'});
obj.dataLink10:setName("dataLink10");
obj.button38 = GUI.fromHandle(_obj_newObject("button"));
obj.button38:setParent(obj.layout11);
obj.button38:setLeft(279);
obj.button38:setTop(31);
obj.button38:setWidth(73);
obj.button38:setText("DANO");
obj.button38:setFontSize(11);
obj.button38:setName("button38");
obj.edit113 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit113:setParent(obj.layout11);
obj.edit113:setVertTextAlign("center");
obj.edit113:setLeft(352);
obj.edit113:setTop(30);
obj.edit113:setWidth(82);
obj.edit113:setHeight(25);
obj.edit113:setField("dano10");
obj.edit113:setName("edit113");
obj.button39 = GUI.fromHandle(_obj_newObject("button"));
obj.button39:setParent(obj.layout11);
obj.button39:setLeft(434);
obj.button39:setTop(31);
obj.button39:setWidth(60);
obj.button39:setText("CRITICO");
obj.button39:setFontSize(11);
obj.button39:setName("button39");
obj.edit114 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit114:setParent(obj.layout11);
obj.edit114:setVertTextAlign("center");
obj.edit114:setLeft(493);
obj.edit114:setTop(30);
obj.edit114:setWidth(82);
obj.edit114:setHeight(25);
obj.edit114:setField("danoCritico10");
obj.edit114:setName("edit114");
obj.label94 = GUI.fromHandle(_obj_newObject("label"));
obj.label94:setParent(obj.layout11);
obj.label94:setLeft(290);
obj.label94:setTop(55);
obj.label94:setWidth(70);
obj.label94:setHeight(25);
obj.label94:setText("DECISIVO");
obj.label94:setName("label94");
obj.edit115 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit115:setParent(obj.layout11);
obj.edit115:setVertTextAlign("center");
obj.edit115:setLeft(352);
obj.edit115:setTop(55);
obj.edit115:setWidth(82);
obj.edit115:setHeight(25);
obj.edit115:setField("decisivo10");
obj.edit115:setName("edit115");
obj.label95 = GUI.fromHandle(_obj_newObject("label"));
obj.label95:setParent(obj.layout11);
obj.label95:setLeft(445);
obj.label95:setTop(55);
obj.label95:setWidth(50);
obj.label95:setHeight(25);
obj.label95:setText("MULTI");
obj.label95:setName("label95");
obj.edit116 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit116:setParent(obj.layout11);
obj.edit116:setVertTextAlign("center");
obj.edit116:setLeft(493);
obj.edit116:setTop(55);
obj.edit116:setWidth(82);
obj.edit116:setHeight(25);
obj.edit116:setField("multiplicador10");
obj.edit116:setName("edit116");
obj.label96 = GUI.fromHandle(_obj_newObject("label"));
obj.label96:setParent(obj.layout11);
obj.label96:setLeft(580);
obj.label96:setTop(5);
obj.label96:setWidth(80);
obj.label96:setHeight(25);
obj.label96:setText("CATEGORIA");
obj.label96:setName("label96");
obj.edit117 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit117:setParent(obj.layout11);
obj.edit117:setVertTextAlign("center");
obj.edit117:setLeft(660);
obj.edit117:setTop(5);
obj.edit117:setWidth(200);
obj.edit117:setHeight(25);
obj.edit117:setField("categoria10");
obj.edit117:setName("edit117");
obj.label97 = GUI.fromHandle(_obj_newObject("label"));
obj.label97:setParent(obj.layout11);
obj.label97:setLeft(610);
obj.label97:setTop(30);
obj.label97:setWidth(50);
obj.label97:setHeight(25);
obj.label97:setText("OBS");
obj.label97:setName("label97");
obj.edit118 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit118:setParent(obj.layout11);
obj.edit118:setVertTextAlign("center");
obj.edit118:setLeft(660);
obj.edit118:setTop(30);
obj.edit118:setWidth(200);
obj.edit118:setHeight(25);
obj.edit118:setField("obs10");
obj.edit118:setName("edit118");
obj.label98 = GUI.fromHandle(_obj_newObject("label"));
obj.label98:setParent(obj.layout11);
obj.label98:setLeft(590);
obj.label98:setTop(55);
obj.label98:setWidth(80);
obj.label98:setHeight(25);
obj.label98:setText("MUNIÇÃO");
obj.label98:setName("label98");
obj.edit119 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit119:setParent(obj.layout11);
obj.edit119:setType("number");
obj.edit119:setVertTextAlign("center");
obj.edit119:setLeft(660);
obj.edit119:setTop(55);
obj.edit119:setWidth(69);
obj.edit119:setHeight(25);
obj.edit119:setField("municao10");
obj.edit119:setName("edit119");
obj.label99 = GUI.fromHandle(_obj_newObject("label"));
obj.label99:setParent(obj.layout11);
obj.label99:setLeft(735);
obj.label99:setTop(55);
obj.label99:setWidth(70);
obj.label99:setHeight(25);
obj.label99:setText("ALCANCE");
obj.label99:setName("label99");
obj.edit120 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit120:setParent(obj.layout11);
obj.edit120:setVertTextAlign("center");
obj.edit120:setLeft(795);
obj.edit120:setTop(55);
obj.edit120:setWidth(65);
obj.edit120:setHeight(25);
obj.edit120:setField("alcance10");
obj.edit120:setName("edit120");
obj.rectangle21 = GUI.fromHandle(_obj_newObject("rectangle"));
obj.rectangle21:setParent(obj.layout11);
obj.rectangle21:setLeft(869);
obj.rectangle21:setTop(4);
obj.rectangle21:setWidth(332);
obj.rectangle21:setHeight(77);
obj.rectangle21:setColor("black");
obj.rectangle21:setStrokeColor("white");
obj.rectangle21:setStrokeSize(1);
obj.rectangle21:setName("rectangle21");
obj.label100 = GUI.fromHandle(_obj_newObject("label"));
obj.label100:setParent(obj.layout11);
obj.label100:setLeft(870);
obj.label100:setTop(25);
obj.label100:setWidth(330);
obj.label100:setHeight(25);
obj.label100:setHorzTextAlign("center");
obj.label100:setText("Clique para adicionar imagem");
obj.label100:setName("label100");
obj.image10 = GUI.fromHandle(_obj_newObject("image"));
obj.image10:setParent(obj.layout11);
obj.image10:setField("imagemArma10");
obj.image10:setEditable(true);
obj.image10:setStyle("autoFit");
obj.image10:setLeft(870);
obj.image10:setTop(5);
obj.image10:setWidth(330);
obj.image10:setHeight(75);
obj.image10:setName("image10");
obj.button40 = GUI.fromHandle(_obj_newObject("button"));
obj.button40:setParent(obj.layout11);
obj.button40:setLeft(1205);
obj.button40:setTop(5);
obj.button40:setWidth(25);
obj.button40:setHeight(75);
obj.button40:setText("X");
obj.button40:setFontSize(15);
obj.button40:setHint("Apaga o ataque.");
obj.button40:setName("button40");
obj.layout12 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout12:setParent(obj.layout1);
obj.layout12:setLeft(2);
obj.layout12:setTop(953);
obj.layout12:setWidth(1232);
obj.layout12:setHeight(92);
obj.layout12:setName("layout12");
obj.rectangle22 = GUI.fromHandle(_obj_newObject("rectangle"));
obj.rectangle22:setParent(obj.layout12);
obj.rectangle22:setAlign("client");
obj.rectangle22:setColor("black");
obj.rectangle22:setName("rectangle22");
obj.label101 = GUI.fromHandle(_obj_newObject("label"));
obj.label101:setParent(obj.layout12);
obj.label101:setLeft(5);
obj.label101:setTop(5);
obj.label101:setWidth(50);
obj.label101:setHeight(25);
obj.label101:setText("NOME");
obj.label101:setName("label101");
obj.edit121 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit121:setParent(obj.layout12);
obj.edit121:setVertTextAlign("center");
obj.edit121:setLeft(55);
obj.edit121:setTop(5);
obj.edit121:setWidth(225);
obj.edit121:setHeight(25);
obj.edit121:setField("nome11");
obj.edit121:setName("edit121");
obj.label102 = GUI.fromHandle(_obj_newObject("label"));
obj.label102:setParent(obj.layout12);
obj.label102:setLeft(5);
obj.label102:setTop(30);
obj.label102:setWidth(50);
obj.label102:setHeight(25);
obj.label102:setText("ARMA");
obj.label102:setName("label102");
obj.edit122 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit122:setParent(obj.layout12);
obj.edit122:setVertTextAlign("center");
obj.edit122:setLeft(55);
obj.edit122:setTop(30);
obj.edit122:setWidth(225);
obj.edit122:setHeight(25);
obj.edit122:setField("arma11");
obj.edit122:setName("edit122");
obj.label103 = GUI.fromHandle(_obj_newObject("label"));
obj.label103:setParent(obj.layout12);
obj.label103:setLeft(5);
obj.label103:setTop(55);
obj.label103:setWidth(50);
obj.label103:setHeight(25);
obj.label103:setText("TIPO");
obj.label103:setName("label103");
obj.edit123 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit123:setParent(obj.layout12);
obj.edit123:setVertTextAlign("center");
obj.edit123:setLeft(55);
obj.edit123:setTop(55);
obj.edit123:setWidth(225);
obj.edit123:setHeight(25);
obj.edit123:setField("tipo11");
obj.edit123:setName("edit123");
obj.button41 = GUI.fromHandle(_obj_newObject("button"));
obj.button41:setParent(obj.layout12);
obj.button41:setLeft(279);
obj.button41:setTop(6);
obj.button41:setWidth(73);
obj.button41:setText("ATAQUE");
obj.button41:setFontSize(11);
obj.button41:setName("button41");
obj.edit124 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit124:setParent(obj.layout12);
obj.edit124:setType("number");
obj.edit124:setVertTextAlign("center");
obj.edit124:setLeft(352);
obj.edit124:setTop(5);
obj.edit124:setWidth(82);
obj.edit124:setHeight(25);
obj.edit124:setField("ataque11");
obj.edit124:setName("edit124");
obj.checkBox11 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox11:setParent(obj.layout12);
obj.checkBox11:setLeft(434);
obj.checkBox11:setTop(6);
obj.checkBox11:setWidth(150);
obj.checkBox11:setField("double11");
obj.checkBox11:setText("Ataque Total");
obj.checkBox11:setName("checkBox11");
obj.dataLink11 = GUI.fromHandle(_obj_newObject("dataLink"));
obj.dataLink11:setParent(obj.layout12);
obj.dataLink11:setFields({'ataque11','double11'});
obj.dataLink11:setName("dataLink11");
obj.button42 = GUI.fromHandle(_obj_newObject("button"));
obj.button42:setParent(obj.layout12);
obj.button42:setLeft(279);
obj.button42:setTop(31);
obj.button42:setWidth(73);
obj.button42:setText("DANO");
obj.button42:setFontSize(11);
obj.button42:setName("button42");
obj.edit125 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit125:setParent(obj.layout12);
obj.edit125:setVertTextAlign("center");
obj.edit125:setLeft(352);
obj.edit125:setTop(30);
obj.edit125:setWidth(82);
obj.edit125:setHeight(25);
obj.edit125:setField("dano11");
obj.edit125:setName("edit125");
obj.button43 = GUI.fromHandle(_obj_newObject("button"));
obj.button43:setParent(obj.layout12);
obj.button43:setLeft(434);
obj.button43:setTop(31);
obj.button43:setWidth(60);
obj.button43:setText("CRITICO");
obj.button43:setFontSize(11);
obj.button43:setName("button43");
obj.edit126 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit126:setParent(obj.layout12);
obj.edit126:setVertTextAlign("center");
obj.edit126:setLeft(493);
obj.edit126:setTop(30);
obj.edit126:setWidth(82);
obj.edit126:setHeight(25);
obj.edit126:setField("danoCritico11");
obj.edit126:setName("edit126");
obj.label104 = GUI.fromHandle(_obj_newObject("label"));
obj.label104:setParent(obj.layout12);
obj.label104:setLeft(290);
obj.label104:setTop(55);
obj.label104:setWidth(70);
obj.label104:setHeight(25);
obj.label104:setText("DECISIVO");
obj.label104:setName("label104");
obj.edit127 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit127:setParent(obj.layout12);
obj.edit127:setVertTextAlign("center");
obj.edit127:setLeft(352);
obj.edit127:setTop(55);
obj.edit127:setWidth(82);
obj.edit127:setHeight(25);
obj.edit127:setField("decisivo11");
obj.edit127:setName("edit127");
obj.label105 = GUI.fromHandle(_obj_newObject("label"));
obj.label105:setParent(obj.layout12);
obj.label105:setLeft(445);
obj.label105:setTop(55);
obj.label105:setWidth(50);
obj.label105:setHeight(25);
obj.label105:setText("MULTI");
obj.label105:setName("label105");
obj.edit128 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit128:setParent(obj.layout12);
obj.edit128:setVertTextAlign("center");
obj.edit128:setLeft(493);
obj.edit128:setTop(55);
obj.edit128:setWidth(82);
obj.edit128:setHeight(25);
obj.edit128:setField("multiplicador11");
obj.edit128:setName("edit128");
obj.label106 = GUI.fromHandle(_obj_newObject("label"));
obj.label106:setParent(obj.layout12);
obj.label106:setLeft(580);
obj.label106:setTop(5);
obj.label106:setWidth(80);
obj.label106:setHeight(25);
obj.label106:setText("CATEGORIA");
obj.label106:setName("label106");
obj.edit129 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit129:setParent(obj.layout12);
obj.edit129:setVertTextAlign("center");
obj.edit129:setLeft(660);
obj.edit129:setTop(5);
obj.edit129:setWidth(200);
obj.edit129:setHeight(25);
obj.edit129:setField("categoria11");
obj.edit129:setName("edit129");
obj.label107 = GUI.fromHandle(_obj_newObject("label"));
obj.label107:setParent(obj.layout12);
obj.label107:setLeft(610);
obj.label107:setTop(30);
obj.label107:setWidth(50);
obj.label107:setHeight(25);
obj.label107:setText("OBS");
obj.label107:setName("label107");
obj.edit130 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit130:setParent(obj.layout12);
obj.edit130:setVertTextAlign("center");
obj.edit130:setLeft(660);
obj.edit130:setTop(30);
obj.edit130:setWidth(200);
obj.edit130:setHeight(25);
obj.edit130:setField("obs11");
obj.edit130:setName("edit130");
obj.label108 = GUI.fromHandle(_obj_newObject("label"));
obj.label108:setParent(obj.layout12);
obj.label108:setLeft(590);
obj.label108:setTop(55);
obj.label108:setWidth(80);
obj.label108:setHeight(25);
obj.label108:setText("MUNIÇÃO");
obj.label108:setName("label108");
obj.edit131 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit131:setParent(obj.layout12);
obj.edit131:setType("number");
obj.edit131:setVertTextAlign("center");
obj.edit131:setLeft(660);
obj.edit131:setTop(55);
obj.edit131:setWidth(69);
obj.edit131:setHeight(25);
obj.edit131:setField("municao11");
obj.edit131:setName("edit131");
obj.label109 = GUI.fromHandle(_obj_newObject("label"));
obj.label109:setParent(obj.layout12);
obj.label109:setLeft(735);
obj.label109:setTop(55);
obj.label109:setWidth(70);
obj.label109:setHeight(25);
obj.label109:setText("ALCANCE");
obj.label109:setName("label109");
obj.edit132 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit132:setParent(obj.layout12);
obj.edit132:setVertTextAlign("center");
obj.edit132:setLeft(795);
obj.edit132:setTop(55);
obj.edit132:setWidth(65);
obj.edit132:setHeight(25);
obj.edit132:setField("alcance11");
obj.edit132:setName("edit132");
obj.rectangle23 = GUI.fromHandle(_obj_newObject("rectangle"));
obj.rectangle23:setParent(obj.layout12);
obj.rectangle23:setLeft(869);
obj.rectangle23:setTop(4);
obj.rectangle23:setWidth(332);
obj.rectangle23:setHeight(77);
obj.rectangle23:setColor("black");
obj.rectangle23:setStrokeColor("white");
obj.rectangle23:setStrokeSize(1);
obj.rectangle23:setName("rectangle23");
obj.label110 = GUI.fromHandle(_obj_newObject("label"));
obj.label110:setParent(obj.layout12);
obj.label110:setLeft(870);
obj.label110:setTop(25);
obj.label110:setWidth(330);
obj.label110:setHeight(25);
obj.label110:setHorzTextAlign("center");
obj.label110:setText("Clique para adicionar imagem");
obj.label110:setName("label110");
obj.image11 = GUI.fromHandle(_obj_newObject("image"));
obj.image11:setParent(obj.layout12);
obj.image11:setField("imagemArma11");
obj.image11:setEditable(true);
obj.image11:setStyle("autoFit");
obj.image11:setLeft(870);
obj.image11:setTop(5);
obj.image11:setWidth(330);
obj.image11:setHeight(75);
obj.image11:setName("image11");
obj.button44 = GUI.fromHandle(_obj_newObject("button"));
obj.button44:setParent(obj.layout12);
obj.button44:setLeft(1205);
obj.button44:setTop(5);
obj.button44:setWidth(25);
obj.button44:setHeight(75);
obj.button44:setText("X");
obj.button44:setFontSize(15);
obj.button44:setHint("Apaga o ataque.");
obj.button44:setName("button44");
obj.layout13 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout13:setParent(obj.layout1);
obj.layout13:setLeft(2);
obj.layout13:setTop(1048);
obj.layout13:setWidth(1232);
obj.layout13:setHeight(92);
obj.layout13:setName("layout13");
obj.rectangle24 = GUI.fromHandle(_obj_newObject("rectangle"));
obj.rectangle24:setParent(obj.layout13);
obj.rectangle24:setAlign("client");
obj.rectangle24:setColor("black");
obj.rectangle24:setName("rectangle24");
obj.label111 = GUI.fromHandle(_obj_newObject("label"));
obj.label111:setParent(obj.layout13);
obj.label111:setLeft(5);
obj.label111:setTop(5);
obj.label111:setWidth(50);
obj.label111:setHeight(25);
obj.label111:setText("NOME");
obj.label111:setName("label111");
obj.edit133 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit133:setParent(obj.layout13);
obj.edit133:setVertTextAlign("center");
obj.edit133:setLeft(55);
obj.edit133:setTop(5);
obj.edit133:setWidth(225);
obj.edit133:setHeight(25);
obj.edit133:setField("nome12");
obj.edit133:setName("edit133");
obj.label112 = GUI.fromHandle(_obj_newObject("label"));
obj.label112:setParent(obj.layout13);
obj.label112:setLeft(5);
obj.label112:setTop(30);
obj.label112:setWidth(50);
obj.label112:setHeight(25);
obj.label112:setText("ARMA");
obj.label112:setName("label112");
obj.edit134 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit134:setParent(obj.layout13);
obj.edit134:setVertTextAlign("center");
obj.edit134:setLeft(55);
obj.edit134:setTop(30);
obj.edit134:setWidth(225);
obj.edit134:setHeight(25);
obj.edit134:setField("arma12");
obj.edit134:setName("edit134");
obj.label113 = GUI.fromHandle(_obj_newObject("label"));
obj.label113:setParent(obj.layout13);
obj.label113:setLeft(5);
obj.label113:setTop(55);
obj.label113:setWidth(50);
obj.label113:setHeight(25);
obj.label113:setText("TIPO");
obj.label113:setName("label113");
obj.edit135 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit135:setParent(obj.layout13);
obj.edit135:setVertTextAlign("center");
obj.edit135:setLeft(55);
obj.edit135:setTop(55);
obj.edit135:setWidth(225);
obj.edit135:setHeight(25);
obj.edit135:setField("tipo12");
obj.edit135:setName("edit135");
obj.button45 = GUI.fromHandle(_obj_newObject("button"));
obj.button45:setParent(obj.layout13);
obj.button45:setLeft(279);
obj.button45:setTop(6);
obj.button45:setWidth(73);
obj.button45:setText("ATAQUE");
obj.button45:setFontSize(11);
obj.button45:setName("button45");
obj.edit136 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit136:setParent(obj.layout13);
obj.edit136:setType("number");
obj.edit136:setVertTextAlign("center");
obj.edit136:setLeft(352);
obj.edit136:setTop(5);
obj.edit136:setWidth(82);
obj.edit136:setHeight(25);
obj.edit136:setField("ataque12");
obj.edit136:setName("edit136");
obj.checkBox12 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox12:setParent(obj.layout13);
obj.checkBox12:setLeft(434);
obj.checkBox12:setTop(6);
obj.checkBox12:setWidth(150);
obj.checkBox12:setField("double12");
obj.checkBox12:setText("Ataque Total");
obj.checkBox12:setName("checkBox12");
obj.dataLink12 = GUI.fromHandle(_obj_newObject("dataLink"));
obj.dataLink12:setParent(obj.layout13);
obj.dataLink12:setFields({'ataque12','double12'});
obj.dataLink12:setName("dataLink12");
obj.button46 = GUI.fromHandle(_obj_newObject("button"));
obj.button46:setParent(obj.layout13);
obj.button46:setLeft(279);
obj.button46:setTop(31);
obj.button46:setWidth(73);
obj.button46:setText("DANO");
obj.button46:setFontSize(11);
obj.button46:setName("button46");
obj.edit137 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit137:setParent(obj.layout13);
obj.edit137:setVertTextAlign("center");
obj.edit137:setLeft(352);
obj.edit137:setTop(30);
obj.edit137:setWidth(82);
obj.edit137:setHeight(25);
obj.edit137:setField("dano12");
obj.edit137:setName("edit137");
obj.button47 = GUI.fromHandle(_obj_newObject("button"));
obj.button47:setParent(obj.layout13);
obj.button47:setLeft(434);
obj.button47:setTop(31);
obj.button47:setWidth(60);
obj.button47:setText("CRITICO");
obj.button47:setFontSize(11);
obj.button47:setName("button47");
obj.edit138 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit138:setParent(obj.layout13);
obj.edit138:setVertTextAlign("center");
obj.edit138:setLeft(493);
obj.edit138:setTop(30);
obj.edit138:setWidth(82);
obj.edit138:setHeight(25);
obj.edit138:setField("danoCritico12");
obj.edit138:setName("edit138");
obj.label114 = GUI.fromHandle(_obj_newObject("label"));
obj.label114:setParent(obj.layout13);
obj.label114:setLeft(290);
obj.label114:setTop(55);
obj.label114:setWidth(70);
obj.label114:setHeight(25);
obj.label114:setText("DECISIVO");
obj.label114:setName("label114");
obj.edit139 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit139:setParent(obj.layout13);
obj.edit139:setVertTextAlign("center");
obj.edit139:setLeft(352);
obj.edit139:setTop(55);
obj.edit139:setWidth(82);
obj.edit139:setHeight(25);
obj.edit139:setField("decisivo12");
obj.edit139:setName("edit139");
obj.label115 = GUI.fromHandle(_obj_newObject("label"));
obj.label115:setParent(obj.layout13);
obj.label115:setLeft(445);
obj.label115:setTop(55);
obj.label115:setWidth(50);
obj.label115:setHeight(25);
obj.label115:setText("MULTI");
obj.label115:setName("label115");
obj.edit140 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit140:setParent(obj.layout13);
obj.edit140:setVertTextAlign("center");
obj.edit140:setLeft(493);
obj.edit140:setTop(55);
obj.edit140:setWidth(82);
obj.edit140:setHeight(25);
obj.edit140:setField("multiplicador12");
obj.edit140:setName("edit140");
obj.label116 = GUI.fromHandle(_obj_newObject("label"));
obj.label116:setParent(obj.layout13);
obj.label116:setLeft(580);
obj.label116:setTop(5);
obj.label116:setWidth(80);
obj.label116:setHeight(25);
obj.label116:setText("CATEGORIA");
obj.label116:setName("label116");
obj.edit141 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit141:setParent(obj.layout13);
obj.edit141:setVertTextAlign("center");
obj.edit141:setLeft(660);
obj.edit141:setTop(5);
obj.edit141:setWidth(200);
obj.edit141:setHeight(25);
obj.edit141:setField("categoria12");
obj.edit141:setName("edit141");
obj.label117 = GUI.fromHandle(_obj_newObject("label"));
obj.label117:setParent(obj.layout13);
obj.label117:setLeft(610);
obj.label117:setTop(30);
obj.label117:setWidth(50);
obj.label117:setHeight(25);
obj.label117:setText("OBS");
obj.label117:setName("label117");
obj.edit142 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit142:setParent(obj.layout13);
obj.edit142:setVertTextAlign("center");
obj.edit142:setLeft(660);
obj.edit142:setTop(30);
obj.edit142:setWidth(200);
obj.edit142:setHeight(25);
obj.edit142:setField("obs12");
obj.edit142:setName("edit142");
obj.label118 = GUI.fromHandle(_obj_newObject("label"));
obj.label118:setParent(obj.layout13);
obj.label118:setLeft(590);
obj.label118:setTop(55);
obj.label118:setWidth(80);
obj.label118:setHeight(25);
obj.label118:setText("MUNIÇÃO");
obj.label118:setName("label118");
obj.edit143 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit143:setParent(obj.layout13);
obj.edit143:setType("number");
obj.edit143:setVertTextAlign("center");
obj.edit143:setLeft(660);
obj.edit143:setTop(55);
obj.edit143:setWidth(69);
obj.edit143:setHeight(25);
obj.edit143:setField("municao12");
obj.edit143:setName("edit143");
obj.label119 = GUI.fromHandle(_obj_newObject("label"));
obj.label119:setParent(obj.layout13);
obj.label119:setLeft(735);
obj.label119:setTop(55);
obj.label119:setWidth(70);
obj.label119:setHeight(25);
obj.label119:setText("ALCANCE");
obj.label119:setName("label119");
obj.edit144 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit144:setParent(obj.layout13);
obj.edit144:setVertTextAlign("center");
obj.edit144:setLeft(795);
obj.edit144:setTop(55);
obj.edit144:setWidth(65);
obj.edit144:setHeight(25);
obj.edit144:setField("alcance12");
obj.edit144:setName("edit144");
obj.rectangle25 = GUI.fromHandle(_obj_newObject("rectangle"));
obj.rectangle25:setParent(obj.layout13);
obj.rectangle25:setLeft(869);
obj.rectangle25:setTop(4);
obj.rectangle25:setWidth(332);
obj.rectangle25:setHeight(77);
obj.rectangle25:setColor("black");
obj.rectangle25:setStrokeColor("white");
obj.rectangle25:setStrokeSize(1);
obj.rectangle25:setName("rectangle25");
obj.label120 = GUI.fromHandle(_obj_newObject("label"));
obj.label120:setParent(obj.layout13);
obj.label120:setLeft(870);
obj.label120:setTop(25);
obj.label120:setWidth(330);
obj.label120:setHeight(25);
obj.label120:setHorzTextAlign("center");
obj.label120:setText("Clique para adicionar imagem");
obj.label120:setName("label120");
obj.image12 = GUI.fromHandle(_obj_newObject("image"));
obj.image12:setParent(obj.layout13);
obj.image12:setField("imagemArma12");
obj.image12:setEditable(true);
obj.image12:setStyle("autoFit");
obj.image12:setLeft(870);
obj.image12:setTop(5);
obj.image12:setWidth(330);
obj.image12:setHeight(75);
obj.image12:setName("image12");
obj.button48 = GUI.fromHandle(_obj_newObject("button"));
obj.button48:setParent(obj.layout13);
obj.button48:setLeft(1205);
obj.button48:setTop(5);
obj.button48:setWidth(25);
obj.button48:setHeight(75);
obj.button48:setText("X");
obj.button48:setFontSize(15);
obj.button48:setHint("Apaga o ataque.");
obj.button48:setName("button48");
obj.layout14 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout14:setParent(obj.layout1);
obj.layout14:setLeft(2);
obj.layout14:setTop(1143);
obj.layout14:setWidth(1232);
obj.layout14:setHeight(92);
obj.layout14:setName("layout14");
obj.rectangle26 = GUI.fromHandle(_obj_newObject("rectangle"));
obj.rectangle26:setParent(obj.layout14);
obj.rectangle26:setAlign("client");
obj.rectangle26:setColor("black");
obj.rectangle26:setName("rectangle26");
obj.label121 = GUI.fromHandle(_obj_newObject("label"));
obj.label121:setParent(obj.layout14);
obj.label121:setLeft(5);
obj.label121:setTop(5);
obj.label121:setWidth(50);
obj.label121:setHeight(25);
obj.label121:setText("NOME");
obj.label121:setName("label121");
obj.edit145 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit145:setParent(obj.layout14);
obj.edit145:setVertTextAlign("center");
obj.edit145:setLeft(55);
obj.edit145:setTop(5);
obj.edit145:setWidth(225);
obj.edit145:setHeight(25);
obj.edit145:setField("nome13");
obj.edit145:setName("edit145");
obj.label122 = GUI.fromHandle(_obj_newObject("label"));
obj.label122:setParent(obj.layout14);
obj.label122:setLeft(5);
obj.label122:setTop(30);
obj.label122:setWidth(50);
obj.label122:setHeight(25);
obj.label122:setText("ARMA");
obj.label122:setName("label122");
obj.edit146 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit146:setParent(obj.layout14);
obj.edit146:setVertTextAlign("center");
obj.edit146:setLeft(55);
obj.edit146:setTop(30);
obj.edit146:setWidth(225);
obj.edit146:setHeight(25);
obj.edit146:setField("arma13");
obj.edit146:setName("edit146");
obj.label123 = GUI.fromHandle(_obj_newObject("label"));
obj.label123:setParent(obj.layout14);
obj.label123:setLeft(5);
obj.label123:setTop(55);
obj.label123:setWidth(50);
obj.label123:setHeight(25);
obj.label123:setText("TIPO");
obj.label123:setName("label123");
obj.edit147 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit147:setParent(obj.layout14);
obj.edit147:setVertTextAlign("center");
obj.edit147:setLeft(55);
obj.edit147:setTop(55);
obj.edit147:setWidth(225);
obj.edit147:setHeight(25);
obj.edit147:setField("tipo13");
obj.edit147:setName("edit147");
obj.button49 = GUI.fromHandle(_obj_newObject("button"));
obj.button49:setParent(obj.layout14);
obj.button49:setLeft(279);
obj.button49:setTop(6);
obj.button49:setWidth(73);
obj.button49:setText("ATAQUE");
obj.button49:setFontSize(11);
obj.button49:setName("button49");
obj.edit148 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit148:setParent(obj.layout14);
obj.edit148:setType("number");
obj.edit148:setVertTextAlign("center");
obj.edit148:setLeft(352);
obj.edit148:setTop(5);
obj.edit148:setWidth(82);
obj.edit148:setHeight(25);
obj.edit148:setField("ataque13");
obj.edit148:setName("edit148");
obj.checkBox13 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox13:setParent(obj.layout14);
obj.checkBox13:setLeft(434);
obj.checkBox13:setTop(6);
obj.checkBox13:setWidth(150);
obj.checkBox13:setField("double13");
obj.checkBox13:setText("Ataque Total");
obj.checkBox13:setName("checkBox13");
obj.dataLink13 = GUI.fromHandle(_obj_newObject("dataLink"));
obj.dataLink13:setParent(obj.layout14);
obj.dataLink13:setFields({'ataque13','double13'});
obj.dataLink13:setName("dataLink13");
obj.button50 = GUI.fromHandle(_obj_newObject("button"));
obj.button50:setParent(obj.layout14);
obj.button50:setLeft(279);
obj.button50:setTop(31);
obj.button50:setWidth(73);
obj.button50:setText("DANO");
obj.button50:setFontSize(11);
obj.button50:setName("button50");
obj.edit149 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit149:setParent(obj.layout14);
obj.edit149:setVertTextAlign("center");
obj.edit149:setLeft(352);
obj.edit149:setTop(30);
obj.edit149:setWidth(82);
obj.edit149:setHeight(25);
obj.edit149:setField("dano13");
obj.edit149:setName("edit149");
obj.button51 = GUI.fromHandle(_obj_newObject("button"));
obj.button51:setParent(obj.layout14);
obj.button51:setLeft(434);
obj.button51:setTop(31);
obj.button51:setWidth(60);
obj.button51:setText("CRITICO");
obj.button51:setFontSize(11);
obj.button51:setName("button51");
obj.edit150 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit150:setParent(obj.layout14);
obj.edit150:setVertTextAlign("center");
obj.edit150:setLeft(493);
obj.edit150:setTop(30);
obj.edit150:setWidth(82);
obj.edit150:setHeight(25);
obj.edit150:setField("danoCritico13");
obj.edit150:setName("edit150");
obj.label124 = GUI.fromHandle(_obj_newObject("label"));
obj.label124:setParent(obj.layout14);
obj.label124:setLeft(290);
obj.label124:setTop(55);
obj.label124:setWidth(70);
obj.label124:setHeight(25);
obj.label124:setText("DECISIVO");
obj.label124:setName("label124");
obj.edit151 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit151:setParent(obj.layout14);
obj.edit151:setVertTextAlign("center");
obj.edit151:setLeft(352);
obj.edit151:setTop(55);
obj.edit151:setWidth(82);
obj.edit151:setHeight(25);
obj.edit151:setField("decisivo13");
obj.edit151:setName("edit151");
obj.label125 = GUI.fromHandle(_obj_newObject("label"));
obj.label125:setParent(obj.layout14);
obj.label125:setLeft(445);
obj.label125:setTop(55);
obj.label125:setWidth(50);
obj.label125:setHeight(25);
obj.label125:setText("MULTI");
obj.label125:setName("label125");
obj.edit152 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit152:setParent(obj.layout14);
obj.edit152:setVertTextAlign("center");
obj.edit152:setLeft(493);
obj.edit152:setTop(55);
obj.edit152:setWidth(82);
obj.edit152:setHeight(25);
obj.edit152:setField("multiplicador13");
obj.edit152:setName("edit152");
obj.label126 = GUI.fromHandle(_obj_newObject("label"));
obj.label126:setParent(obj.layout14);
obj.label126:setLeft(580);
obj.label126:setTop(5);
obj.label126:setWidth(80);
obj.label126:setHeight(25);
obj.label126:setText("CATEGORIA");
obj.label126:setName("label126");
obj.edit153 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit153:setParent(obj.layout14);
obj.edit153:setVertTextAlign("center");
obj.edit153:setLeft(660);
obj.edit153:setTop(5);
obj.edit153:setWidth(200);
obj.edit153:setHeight(25);
obj.edit153:setField("categoria13");
obj.edit153:setName("edit153");
obj.label127 = GUI.fromHandle(_obj_newObject("label"));
obj.label127:setParent(obj.layout14);
obj.label127:setLeft(610);
obj.label127:setTop(30);
obj.label127:setWidth(50);
obj.label127:setHeight(25);
obj.label127:setText("OBS");
obj.label127:setName("label127");
obj.edit154 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit154:setParent(obj.layout14);
obj.edit154:setVertTextAlign("center");
obj.edit154:setLeft(660);
obj.edit154:setTop(30);
obj.edit154:setWidth(200);
obj.edit154:setHeight(25);
obj.edit154:setField("obs13");
obj.edit154:setName("edit154");
obj.label128 = GUI.fromHandle(_obj_newObject("label"));
obj.label128:setParent(obj.layout14);
obj.label128:setLeft(590);
obj.label128:setTop(55);
obj.label128:setWidth(80);
obj.label128:setHeight(25);
obj.label128:setText("MUNIÇÃO");
obj.label128:setName("label128");
obj.edit155 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit155:setParent(obj.layout14);
obj.edit155:setType("number");
obj.edit155:setVertTextAlign("center");
obj.edit155:setLeft(660);
obj.edit155:setTop(55);
obj.edit155:setWidth(69);
obj.edit155:setHeight(25);
obj.edit155:setField("municao13");
obj.edit155:setName("edit155");
obj.label129 = GUI.fromHandle(_obj_newObject("label"));
obj.label129:setParent(obj.layout14);
obj.label129:setLeft(735);
obj.label129:setTop(55);
obj.label129:setWidth(70);
obj.label129:setHeight(25);
obj.label129:setText("ALCANCE");
obj.label129:setName("label129");
obj.edit156 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit156:setParent(obj.layout14);
obj.edit156:setVertTextAlign("center");
obj.edit156:setLeft(795);
obj.edit156:setTop(55);
obj.edit156:setWidth(65);
obj.edit156:setHeight(25);
obj.edit156:setField("alcance13");
obj.edit156:setName("edit156");
obj.rectangle27 = GUI.fromHandle(_obj_newObject("rectangle"));
obj.rectangle27:setParent(obj.layout14);
obj.rectangle27:setLeft(869);
obj.rectangle27:setTop(4);
obj.rectangle27:setWidth(332);
obj.rectangle27:setHeight(77);
obj.rectangle27:setColor("black");
obj.rectangle27:setStrokeColor("white");
obj.rectangle27:setStrokeSize(1);
obj.rectangle27:setName("rectangle27");
obj.label130 = GUI.fromHandle(_obj_newObject("label"));
obj.label130:setParent(obj.layout14);
obj.label130:setLeft(870);
obj.label130:setTop(25);
obj.label130:setWidth(330);
obj.label130:setHeight(25);
obj.label130:setHorzTextAlign("center");
obj.label130:setText("Clique para adicionar imagem");
obj.label130:setName("label130");
obj.image13 = GUI.fromHandle(_obj_newObject("image"));
obj.image13:setParent(obj.layout14);
obj.image13:setField("imagemArma13");
obj.image13:setEditable(true);
obj.image13:setStyle("autoFit");
obj.image13:setLeft(870);
obj.image13:setTop(5);
obj.image13:setWidth(330);
obj.image13:setHeight(75);
obj.image13:setName("image13");
obj.button52 = GUI.fromHandle(_obj_newObject("button"));
obj.button52:setParent(obj.layout14);
obj.button52:setLeft(1205);
obj.button52:setTop(5);
obj.button52:setWidth(25);
obj.button52:setHeight(75);
obj.button52:setText("X");
obj.button52:setFontSize(15);
obj.button52:setHint("Apaga o ataque.");
obj.button52:setName("button52");
obj.layout15 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout15:setParent(obj.layout1);
obj.layout15:setLeft(2);
obj.layout15:setTop(1238);
obj.layout15:setWidth(1232);
obj.layout15:setHeight(92);
obj.layout15:setName("layout15");
obj.rectangle28 = GUI.fromHandle(_obj_newObject("rectangle"));
obj.rectangle28:setParent(obj.layout15);
obj.rectangle28:setAlign("client");
obj.rectangle28:setColor("black");
obj.rectangle28:setName("rectangle28");
obj.label131 = GUI.fromHandle(_obj_newObject("label"));
obj.label131:setParent(obj.layout15);
obj.label131:setLeft(5);
obj.label131:setTop(5);
obj.label131:setWidth(50);
obj.label131:setHeight(25);
obj.label131:setText("NOME");
obj.label131:setName("label131");
obj.edit157 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit157:setParent(obj.layout15);
obj.edit157:setVertTextAlign("center");
obj.edit157:setLeft(55);
obj.edit157:setTop(5);
obj.edit157:setWidth(225);
obj.edit157:setHeight(25);
obj.edit157:setField("nome14");
obj.edit157:setName("edit157");
obj.label132 = GUI.fromHandle(_obj_newObject("label"));
obj.label132:setParent(obj.layout15);
obj.label132:setLeft(5);
obj.label132:setTop(30);
obj.label132:setWidth(50);
obj.label132:setHeight(25);
obj.label132:setText("ARMA");
obj.label132:setName("label132");
obj.edit158 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit158:setParent(obj.layout15);
obj.edit158:setVertTextAlign("center");
obj.edit158:setLeft(55);
obj.edit158:setTop(30);
obj.edit158:setWidth(225);
obj.edit158:setHeight(25);
obj.edit158:setField("arma14");
obj.edit158:setName("edit158");
obj.label133 = GUI.fromHandle(_obj_newObject("label"));
obj.label133:setParent(obj.layout15);
obj.label133:setLeft(5);
obj.label133:setTop(55);
obj.label133:setWidth(50);
obj.label133:setHeight(25);
obj.label133:setText("TIPO");
obj.label133:setName("label133");
obj.edit159 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit159:setParent(obj.layout15);
obj.edit159:setVertTextAlign("center");
obj.edit159:setLeft(55);
obj.edit159:setTop(55);
obj.edit159:setWidth(225);
obj.edit159:setHeight(25);
obj.edit159:setField("tipo14");
obj.edit159:setName("edit159");
obj.button53 = GUI.fromHandle(_obj_newObject("button"));
obj.button53:setParent(obj.layout15);
obj.button53:setLeft(279);
obj.button53:setTop(6);
obj.button53:setWidth(73);
obj.button53:setText("ATAQUE");
obj.button53:setFontSize(11);
obj.button53:setName("button53");
obj.edit160 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit160:setParent(obj.layout15);
obj.edit160:setType("number");
obj.edit160:setVertTextAlign("center");
obj.edit160:setLeft(352);
obj.edit160:setTop(5);
obj.edit160:setWidth(82);
obj.edit160:setHeight(25);
obj.edit160:setField("ataque14");
obj.edit160:setName("edit160");
obj.checkBox14 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox14:setParent(obj.layout15);
obj.checkBox14:setLeft(434);
obj.checkBox14:setTop(6);
obj.checkBox14:setWidth(150);
obj.checkBox14:setField("double14");
obj.checkBox14:setText("Ataque Total");
obj.checkBox14:setName("checkBox14");
obj.dataLink14 = GUI.fromHandle(_obj_newObject("dataLink"));
obj.dataLink14:setParent(obj.layout15);
obj.dataLink14:setFields({'ataque14','double14'});
obj.dataLink14:setName("dataLink14");
obj.button54 = GUI.fromHandle(_obj_newObject("button"));
obj.button54:setParent(obj.layout15);
obj.button54:setLeft(279);
obj.button54:setTop(31);
obj.button54:setWidth(73);
obj.button54:setText("DANO");
obj.button54:setFontSize(11);
obj.button54:setName("button54");
obj.edit161 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit161:setParent(obj.layout15);
obj.edit161:setVertTextAlign("center");
obj.edit161:setLeft(352);
obj.edit161:setTop(30);
obj.edit161:setWidth(82);
obj.edit161:setHeight(25);
obj.edit161:setField("dano14");
obj.edit161:setName("edit161");
obj.button55 = GUI.fromHandle(_obj_newObject("button"));
obj.button55:setParent(obj.layout15);
obj.button55:setLeft(434);
obj.button55:setTop(31);
obj.button55:setWidth(60);
obj.button55:setText("CRITICO");
obj.button55:setFontSize(11);
obj.button55:setName("button55");
obj.edit162 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit162:setParent(obj.layout15);
obj.edit162:setVertTextAlign("center");
obj.edit162:setLeft(493);
obj.edit162:setTop(30);
obj.edit162:setWidth(82);
obj.edit162:setHeight(25);
obj.edit162:setField("danoCritico14");
obj.edit162:setName("edit162");
obj.label134 = GUI.fromHandle(_obj_newObject("label"));
obj.label134:setParent(obj.layout15);
obj.label134:setLeft(290);
obj.label134:setTop(55);
obj.label134:setWidth(70);
obj.label134:setHeight(25);
obj.label134:setText("DECISIVO");
obj.label134:setName("label134");
obj.edit163 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit163:setParent(obj.layout15);
obj.edit163:setVertTextAlign("center");
obj.edit163:setLeft(352);
obj.edit163:setTop(55);
obj.edit163:setWidth(82);
obj.edit163:setHeight(25);
obj.edit163:setField("decisivo14");
obj.edit163:setName("edit163");
obj.label135 = GUI.fromHandle(_obj_newObject("label"));
obj.label135:setParent(obj.layout15);
obj.label135:setLeft(445);
obj.label135:setTop(55);
obj.label135:setWidth(50);
obj.label135:setHeight(25);
obj.label135:setText("MULTI");
obj.label135:setName("label135");
obj.edit164 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit164:setParent(obj.layout15);
obj.edit164:setVertTextAlign("center");
obj.edit164:setLeft(493);
obj.edit164:setTop(55);
obj.edit164:setWidth(82);
obj.edit164:setHeight(25);
obj.edit164:setField("multiplicador14");
obj.edit164:setName("edit164");
obj.label136 = GUI.fromHandle(_obj_newObject("label"));
obj.label136:setParent(obj.layout15);
obj.label136:setLeft(580);
obj.label136:setTop(5);
obj.label136:setWidth(80);
obj.label136:setHeight(25);
obj.label136:setText("CATEGORIA");
obj.label136:setName("label136");
obj.edit165 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit165:setParent(obj.layout15);
obj.edit165:setVertTextAlign("center");
obj.edit165:setLeft(660);
obj.edit165:setTop(5);
obj.edit165:setWidth(200);
obj.edit165:setHeight(25);
obj.edit165:setField("categoria14");
obj.edit165:setName("edit165");
obj.label137 = GUI.fromHandle(_obj_newObject("label"));
obj.label137:setParent(obj.layout15);
obj.label137:setLeft(610);
obj.label137:setTop(30);
obj.label137:setWidth(50);
obj.label137:setHeight(25);
obj.label137:setText("OBS");
obj.label137:setName("label137");
obj.edit166 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit166:setParent(obj.layout15);
obj.edit166:setVertTextAlign("center");
obj.edit166:setLeft(660);
obj.edit166:setTop(30);
obj.edit166:setWidth(200);
obj.edit166:setHeight(25);
obj.edit166:setField("obs14");
obj.edit166:setName("edit166");
obj.label138 = GUI.fromHandle(_obj_newObject("label"));
obj.label138:setParent(obj.layout15);
obj.label138:setLeft(590);
obj.label138:setTop(55);
obj.label138:setWidth(80);
obj.label138:setHeight(25);
obj.label138:setText("MUNIÇÃO");
obj.label138:setName("label138");
obj.edit167 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit167:setParent(obj.layout15);
obj.edit167:setType("number");
obj.edit167:setVertTextAlign("center");
obj.edit167:setLeft(660);
obj.edit167:setTop(55);
obj.edit167:setWidth(69);
obj.edit167:setHeight(25);
obj.edit167:setField("municao14");
obj.edit167:setName("edit167");
obj.label139 = GUI.fromHandle(_obj_newObject("label"));
obj.label139:setParent(obj.layout15);
obj.label139:setLeft(735);
obj.label139:setTop(55);
obj.label139:setWidth(70);
obj.label139:setHeight(25);
obj.label139:setText("ALCANCE");
obj.label139:setName("label139");
obj.edit168 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit168:setParent(obj.layout15);
obj.edit168:setVertTextAlign("center");
obj.edit168:setLeft(795);
obj.edit168:setTop(55);
obj.edit168:setWidth(65);
obj.edit168:setHeight(25);
obj.edit168:setField("alcance14");
obj.edit168:setName("edit168");
obj.rectangle29 = GUI.fromHandle(_obj_newObject("rectangle"));
obj.rectangle29:setParent(obj.layout15);
obj.rectangle29:setLeft(869);
obj.rectangle29:setTop(4);
obj.rectangle29:setWidth(332);
obj.rectangle29:setHeight(77);
obj.rectangle29:setColor("black");
obj.rectangle29:setStrokeColor("white");
obj.rectangle29:setStrokeSize(1);
obj.rectangle29:setName("rectangle29");
obj.label140 = GUI.fromHandle(_obj_newObject("label"));
obj.label140:setParent(obj.layout15);
obj.label140:setLeft(870);
obj.label140:setTop(25);
obj.label140:setWidth(330);
obj.label140:setHeight(25);
obj.label140:setHorzTextAlign("center");
obj.label140:setText("Clique para adicionar imagem");
obj.label140:setName("label140");
obj.image14 = GUI.fromHandle(_obj_newObject("image"));
obj.image14:setParent(obj.layout15);
obj.image14:setField("imagemArma14");
obj.image14:setEditable(true);
obj.image14:setStyle("autoFit");
obj.image14:setLeft(870);
obj.image14:setTop(5);
obj.image14:setWidth(330);
obj.image14:setHeight(75);
obj.image14:setName("image14");
obj.button56 = GUI.fromHandle(_obj_newObject("button"));
obj.button56:setParent(obj.layout15);
obj.button56:setLeft(1205);
obj.button56:setTop(5);
obj.button56:setWidth(25);
obj.button56:setHeight(75);
obj.button56:setText("X");
obj.button56:setFontSize(15);
obj.button56:setHint("Apaga o ataque.");
obj.button56:setName("button56");
obj.layout16 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout16:setParent(obj.layout1);
obj.layout16:setLeft(2);
obj.layout16:setTop(1333);
obj.layout16:setWidth(1232);
obj.layout16:setHeight(92);
obj.layout16:setName("layout16");
obj.rectangle30 = GUI.fromHandle(_obj_newObject("rectangle"));
obj.rectangle30:setParent(obj.layout16);
obj.rectangle30:setAlign("client");
obj.rectangle30:setColor("black");
obj.rectangle30:setName("rectangle30");
obj.label141 = GUI.fromHandle(_obj_newObject("label"));
obj.label141:setParent(obj.layout16);
obj.label141:setLeft(5);
obj.label141:setTop(5);
obj.label141:setWidth(50);
obj.label141:setHeight(25);
obj.label141:setText("NOME");
obj.label141:setName("label141");
obj.edit169 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit169:setParent(obj.layout16);
obj.edit169:setVertTextAlign("center");
obj.edit169:setLeft(55);
obj.edit169:setTop(5);
obj.edit169:setWidth(225);
obj.edit169:setHeight(25);
obj.edit169:setField("nome15");
obj.edit169:setName("edit169");
obj.label142 = GUI.fromHandle(_obj_newObject("label"));
obj.label142:setParent(obj.layout16);
obj.label142:setLeft(5);
obj.label142:setTop(30);
obj.label142:setWidth(50);
obj.label142:setHeight(25);
obj.label142:setText("ARMA");
obj.label142:setName("label142");
obj.edit170 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit170:setParent(obj.layout16);
obj.edit170:setVertTextAlign("center");
obj.edit170:setLeft(55);
obj.edit170:setTop(30);
obj.edit170:setWidth(225);
obj.edit170:setHeight(25);
obj.edit170:setField("arma15");
obj.edit170:setName("edit170");
obj.label143 = GUI.fromHandle(_obj_newObject("label"));
obj.label143:setParent(obj.layout16);
obj.label143:setLeft(5);
obj.label143:setTop(55);
obj.label143:setWidth(50);
obj.label143:setHeight(25);
obj.label143:setText("TIPO");
obj.label143:setName("label143");
obj.edit171 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit171:setParent(obj.layout16);
obj.edit171:setVertTextAlign("center");
obj.edit171:setLeft(55);
obj.edit171:setTop(55);
obj.edit171:setWidth(225);
obj.edit171:setHeight(25);
obj.edit171:setField("tipo15");
obj.edit171:setName("edit171");
obj.button57 = GUI.fromHandle(_obj_newObject("button"));
obj.button57:setParent(obj.layout16);
obj.button57:setLeft(279);
obj.button57:setTop(6);
obj.button57:setWidth(73);
obj.button57:setText("ATAQUE");
obj.button57:setFontSize(11);
obj.button57:setName("button57");
obj.edit172 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit172:setParent(obj.layout16);
obj.edit172:setType("number");
obj.edit172:setVertTextAlign("center");
obj.edit172:setLeft(352);
obj.edit172:setTop(5);
obj.edit172:setWidth(82);
obj.edit172:setHeight(25);
obj.edit172:setField("ataque15");
obj.edit172:setName("edit172");
obj.checkBox15 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox15:setParent(obj.layout16);
obj.checkBox15:setLeft(434);
obj.checkBox15:setTop(6);
obj.checkBox15:setWidth(150);
obj.checkBox15:setField("double15");
obj.checkBox15:setText("Ataque Total");
obj.checkBox15:setName("checkBox15");
obj.dataLink15 = GUI.fromHandle(_obj_newObject("dataLink"));
obj.dataLink15:setParent(obj.layout16);
obj.dataLink15:setFields({'ataque15','double15'});
obj.dataLink15:setName("dataLink15");
obj.button58 = GUI.fromHandle(_obj_newObject("button"));
obj.button58:setParent(obj.layout16);
obj.button58:setLeft(279);
obj.button58:setTop(31);
obj.button58:setWidth(73);
obj.button58:setText("DANO");
obj.button58:setFontSize(11);
obj.button58:setName("button58");
obj.edit173 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit173:setParent(obj.layout16);
obj.edit173:setVertTextAlign("center");
obj.edit173:setLeft(352);
obj.edit173:setTop(30);
obj.edit173:setWidth(82);
obj.edit173:setHeight(25);
obj.edit173:setField("dano15");
obj.edit173:setName("edit173");
obj.button59 = GUI.fromHandle(_obj_newObject("button"));
obj.button59:setParent(obj.layout16);
obj.button59:setLeft(434);
obj.button59:setTop(31);
obj.button59:setWidth(60);
obj.button59:setText("CRITICO");
obj.button59:setFontSize(11);
obj.button59:setName("button59");
obj.edit174 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit174:setParent(obj.layout16);
obj.edit174:setVertTextAlign("center");
obj.edit174:setLeft(493);
obj.edit174:setTop(30);
obj.edit174:setWidth(82);
obj.edit174:setHeight(25);
obj.edit174:setField("danoCritico15");
obj.edit174:setName("edit174");
obj.label144 = GUI.fromHandle(_obj_newObject("label"));
obj.label144:setParent(obj.layout16);
obj.label144:setLeft(290);
obj.label144:setTop(55);
obj.label144:setWidth(70);
obj.label144:setHeight(25);
obj.label144:setText("DECISIVO");
obj.label144:setName("label144");
obj.edit175 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit175:setParent(obj.layout16);
obj.edit175:setVertTextAlign("center");
obj.edit175:setLeft(352);
obj.edit175:setTop(55);
obj.edit175:setWidth(82);
obj.edit175:setHeight(25);
obj.edit175:setField("decisivo15");
obj.edit175:setName("edit175");
obj.label145 = GUI.fromHandle(_obj_newObject("label"));
obj.label145:setParent(obj.layout16);
obj.label145:setLeft(445);
obj.label145:setTop(55);
obj.label145:setWidth(50);
obj.label145:setHeight(25);
obj.label145:setText("MULTI");
obj.label145:setName("label145");
obj.edit176 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit176:setParent(obj.layout16);
obj.edit176:setVertTextAlign("center");
obj.edit176:setLeft(493);
obj.edit176:setTop(55);
obj.edit176:setWidth(82);
obj.edit176:setHeight(25);
obj.edit176:setField("multiplicador15");
obj.edit176:setName("edit176");
obj.label146 = GUI.fromHandle(_obj_newObject("label"));
obj.label146:setParent(obj.layout16);
obj.label146:setLeft(580);
obj.label146:setTop(5);
obj.label146:setWidth(80);
obj.label146:setHeight(25);
obj.label146:setText("CATEGORIA");
obj.label146:setName("label146");
obj.edit177 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit177:setParent(obj.layout16);
obj.edit177:setVertTextAlign("center");
obj.edit177:setLeft(660);
obj.edit177:setTop(5);
obj.edit177:setWidth(200);
obj.edit177:setHeight(25);
obj.edit177:setField("categoria15");
obj.edit177:setName("edit177");
obj.label147 = GUI.fromHandle(_obj_newObject("label"));
obj.label147:setParent(obj.layout16);
obj.label147:setLeft(610);
obj.label147:setTop(30);
obj.label147:setWidth(50);
obj.label147:setHeight(25);
obj.label147:setText("OBS");
obj.label147:setName("label147");
obj.edit178 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit178:setParent(obj.layout16);
obj.edit178:setVertTextAlign("center");
obj.edit178:setLeft(660);
obj.edit178:setTop(30);
obj.edit178:setWidth(200);
obj.edit178:setHeight(25);
obj.edit178:setField("obs15");
obj.edit178:setName("edit178");
obj.label148 = GUI.fromHandle(_obj_newObject("label"));
obj.label148:setParent(obj.layout16);
obj.label148:setLeft(590);
obj.label148:setTop(55);
obj.label148:setWidth(80);
obj.label148:setHeight(25);
obj.label148:setText("MUNIÇÃO");
obj.label148:setName("label148");
obj.edit179 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit179:setParent(obj.layout16);
obj.edit179:setType("number");
obj.edit179:setVertTextAlign("center");
obj.edit179:setLeft(660);
obj.edit179:setTop(55);
obj.edit179:setWidth(69);
obj.edit179:setHeight(25);
obj.edit179:setField("municao15");
obj.edit179:setName("edit179");
obj.label149 = GUI.fromHandle(_obj_newObject("label"));
obj.label149:setParent(obj.layout16);
obj.label149:setLeft(735);
obj.label149:setTop(55);
obj.label149:setWidth(70);
obj.label149:setHeight(25);
obj.label149:setText("ALCANCE");
obj.label149:setName("label149");
obj.edit180 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit180:setParent(obj.layout16);
obj.edit180:setVertTextAlign("center");
obj.edit180:setLeft(795);
obj.edit180:setTop(55);
obj.edit180:setWidth(65);
obj.edit180:setHeight(25);
obj.edit180:setField("alcance15");
obj.edit180:setName("edit180");
obj.rectangle31 = GUI.fromHandle(_obj_newObject("rectangle"));
obj.rectangle31:setParent(obj.layout16);
obj.rectangle31:setLeft(869);
obj.rectangle31:setTop(4);
obj.rectangle31:setWidth(332);
obj.rectangle31:setHeight(77);
obj.rectangle31:setColor("black");
obj.rectangle31:setStrokeColor("white");
obj.rectangle31:setStrokeSize(1);
obj.rectangle31:setName("rectangle31");
obj.label150 = GUI.fromHandle(_obj_newObject("label"));
obj.label150:setParent(obj.layout16);
obj.label150:setLeft(870);
obj.label150:setTop(25);
obj.label150:setWidth(330);
obj.label150:setHeight(25);
obj.label150:setHorzTextAlign("center");
obj.label150:setText("Clique para adicionar imagem");
obj.label150:setName("label150");
obj.image15 = GUI.fromHandle(_obj_newObject("image"));
obj.image15:setParent(obj.layout16);
obj.image15:setField("imagemArma15");
obj.image15:setEditable(true);
obj.image15:setStyle("autoFit");
obj.image15:setLeft(870);
obj.image15:setTop(5);
obj.image15:setWidth(330);
obj.image15:setHeight(75);
obj.image15:setName("image15");
obj.button60 = GUI.fromHandle(_obj_newObject("button"));
obj.button60:setParent(obj.layout16);
obj.button60:setLeft(1205);
obj.button60:setTop(5);
obj.button60:setWidth(25);
obj.button60:setHeight(75);
obj.button60:setText("X");
obj.button60:setFontSize(15);
obj.button60:setHint("Apaga o ataque.");
obj.button60:setName("button60");
obj.layout17 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout17:setParent(obj.layout1);
obj.layout17:setLeft(2);
obj.layout17:setTop(1428);
obj.layout17:setWidth(1232);
obj.layout17:setHeight(92);
obj.layout17:setName("layout17");
obj.rectangle32 = GUI.fromHandle(_obj_newObject("rectangle"));
obj.rectangle32:setParent(obj.layout17);
obj.rectangle32:setAlign("client");
obj.rectangle32:setColor("black");
obj.rectangle32:setName("rectangle32");
obj.label151 = GUI.fromHandle(_obj_newObject("label"));
obj.label151:setParent(obj.layout17);
obj.label151:setLeft(5);
obj.label151:setTop(5);
obj.label151:setWidth(50);
obj.label151:setHeight(25);
obj.label151:setText("NOME");
obj.label151:setName("label151");
obj.edit181 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit181:setParent(obj.layout17);
obj.edit181:setVertTextAlign("center");
obj.edit181:setLeft(55);
obj.edit181:setTop(5);
obj.edit181:setWidth(225);
obj.edit181:setHeight(25);
obj.edit181:setField("nome16");
obj.edit181:setName("edit181");
obj.label152 = GUI.fromHandle(_obj_newObject("label"));
obj.label152:setParent(obj.layout17);
obj.label152:setLeft(5);
obj.label152:setTop(30);
obj.label152:setWidth(50);
obj.label152:setHeight(25);
obj.label152:setText("ARMA");
obj.label152:setName("label152");
obj.edit182 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit182:setParent(obj.layout17);
obj.edit182:setVertTextAlign("center");
obj.edit182:setLeft(55);
obj.edit182:setTop(30);
obj.edit182:setWidth(225);
obj.edit182:setHeight(25);
obj.edit182:setField("arma16");
obj.edit182:setName("edit182");
obj.label153 = GUI.fromHandle(_obj_newObject("label"));
obj.label153:setParent(obj.layout17);
obj.label153:setLeft(5);
obj.label153:setTop(55);
obj.label153:setWidth(50);
obj.label153:setHeight(25);
obj.label153:setText("TIPO");
obj.label153:setName("label153");
obj.edit183 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit183:setParent(obj.layout17);
obj.edit183:setVertTextAlign("center");
obj.edit183:setLeft(55);
obj.edit183:setTop(55);
obj.edit183:setWidth(225);
obj.edit183:setHeight(25);
obj.edit183:setField("tipo16");
obj.edit183:setName("edit183");
obj.button61 = GUI.fromHandle(_obj_newObject("button"));
obj.button61:setParent(obj.layout17);
obj.button61:setLeft(279);
obj.button61:setTop(6);
obj.button61:setWidth(73);
obj.button61:setText("ATAQUE");
obj.button61:setFontSize(11);
obj.button61:setName("button61");
obj.edit184 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit184:setParent(obj.layout17);
obj.edit184:setType("number");
obj.edit184:setVertTextAlign("center");
obj.edit184:setLeft(352);
obj.edit184:setTop(5);
obj.edit184:setWidth(82);
obj.edit184:setHeight(25);
obj.edit184:setField("ataque16");
obj.edit184:setName("edit184");
obj.checkBox16 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox16:setParent(obj.layout17);
obj.checkBox16:setLeft(434);
obj.checkBox16:setTop(6);
obj.checkBox16:setWidth(150);
obj.checkBox16:setField("double16");
obj.checkBox16:setText("Ataque Total");
obj.checkBox16:setName("checkBox16");
obj.dataLink16 = GUI.fromHandle(_obj_newObject("dataLink"));
obj.dataLink16:setParent(obj.layout17);
obj.dataLink16:setFields({'ataque16','double16'});
obj.dataLink16:setName("dataLink16");
obj.button62 = GUI.fromHandle(_obj_newObject("button"));
obj.button62:setParent(obj.layout17);
obj.button62:setLeft(279);
obj.button62:setTop(31);
obj.button62:setWidth(73);
obj.button62:setText("DANO");
obj.button62:setFontSize(11);
obj.button62:setName("button62");
obj.edit185 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit185:setParent(obj.layout17);
obj.edit185:setVertTextAlign("center");
obj.edit185:setLeft(352);
obj.edit185:setTop(30);
obj.edit185:setWidth(82);
obj.edit185:setHeight(25);
obj.edit185:setField("dano16");
obj.edit185:setName("edit185");
obj.button63 = GUI.fromHandle(_obj_newObject("button"));
obj.button63:setParent(obj.layout17);
obj.button63:setLeft(434);
obj.button63:setTop(31);
obj.button63:setWidth(60);
obj.button63:setText("CRITICO");
obj.button63:setFontSize(11);
obj.button63:setName("button63");
obj.edit186 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit186:setParent(obj.layout17);
obj.edit186:setVertTextAlign("center");
obj.edit186:setLeft(493);
obj.edit186:setTop(30);
obj.edit186:setWidth(82);
obj.edit186:setHeight(25);
obj.edit186:setField("danoCritico16");
obj.edit186:setName("edit186");
obj.label154 = GUI.fromHandle(_obj_newObject("label"));
obj.label154:setParent(obj.layout17);
obj.label154:setLeft(290);
obj.label154:setTop(55);
obj.label154:setWidth(70);
obj.label154:setHeight(25);
obj.label154:setText("DECISIVO");
obj.label154:setName("label154");
obj.edit187 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit187:setParent(obj.layout17);
obj.edit187:setVertTextAlign("center");
obj.edit187:setLeft(352);
obj.edit187:setTop(55);
obj.edit187:setWidth(82);
obj.edit187:setHeight(25);
obj.edit187:setField("decisivo16");
obj.edit187:setName("edit187");
obj.label155 = GUI.fromHandle(_obj_newObject("label"));
obj.label155:setParent(obj.layout17);
obj.label155:setLeft(445);
obj.label155:setTop(55);
obj.label155:setWidth(50);
obj.label155:setHeight(25);
obj.label155:setText("MULTI");
obj.label155:setName("label155");
obj.edit188 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit188:setParent(obj.layout17);
obj.edit188:setVertTextAlign("center");
obj.edit188:setLeft(493);
obj.edit188:setTop(55);
obj.edit188:setWidth(82);
obj.edit188:setHeight(25);
obj.edit188:setField("multiplicador16");
obj.edit188:setName("edit188");
obj.label156 = GUI.fromHandle(_obj_newObject("label"));
obj.label156:setParent(obj.layout17);
obj.label156:setLeft(580);
obj.label156:setTop(5);
obj.label156:setWidth(80);
obj.label156:setHeight(25);
obj.label156:setText("CATEGORIA");
obj.label156:setName("label156");
obj.edit189 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit189:setParent(obj.layout17);
obj.edit189:setVertTextAlign("center");
obj.edit189:setLeft(660);
obj.edit189:setTop(5);
obj.edit189:setWidth(200);
obj.edit189:setHeight(25);
obj.edit189:setField("categoria16");
obj.edit189:setName("edit189");
obj.label157 = GUI.fromHandle(_obj_newObject("label"));
obj.label157:setParent(obj.layout17);
obj.label157:setLeft(610);
obj.label157:setTop(30);
obj.label157:setWidth(50);
obj.label157:setHeight(25);
obj.label157:setText("OBS");
obj.label157:setName("label157");
obj.edit190 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit190:setParent(obj.layout17);
obj.edit190:setVertTextAlign("center");
obj.edit190:setLeft(660);
obj.edit190:setTop(30);
obj.edit190:setWidth(200);
obj.edit190:setHeight(25);
obj.edit190:setField("obs16");
obj.edit190:setName("edit190");
obj.label158 = GUI.fromHandle(_obj_newObject("label"));
obj.label158:setParent(obj.layout17);
obj.label158:setLeft(590);
obj.label158:setTop(55);
obj.label158:setWidth(80);
obj.label158:setHeight(25);
obj.label158:setText("MUNIÇÃO");
obj.label158:setName("label158");
obj.edit191 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit191:setParent(obj.layout17);
obj.edit191:setType("number");
obj.edit191:setVertTextAlign("center");
obj.edit191:setLeft(660);
obj.edit191:setTop(55);
obj.edit191:setWidth(69);
obj.edit191:setHeight(25);
obj.edit191:setField("municao16");
obj.edit191:setName("edit191");
obj.label159 = GUI.fromHandle(_obj_newObject("label"));
obj.label159:setParent(obj.layout17);
obj.label159:setLeft(735);
obj.label159:setTop(55);
obj.label159:setWidth(70);
obj.label159:setHeight(25);
obj.label159:setText("ALCANCE");
obj.label159:setName("label159");
obj.edit192 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit192:setParent(obj.layout17);
obj.edit192:setVertTextAlign("center");
obj.edit192:setLeft(795);
obj.edit192:setTop(55);
obj.edit192:setWidth(65);
obj.edit192:setHeight(25);
obj.edit192:setField("alcance16");
obj.edit192:setName("edit192");
obj.rectangle33 = GUI.fromHandle(_obj_newObject("rectangle"));
obj.rectangle33:setParent(obj.layout17);
obj.rectangle33:setLeft(869);
obj.rectangle33:setTop(4);
obj.rectangle33:setWidth(332);
obj.rectangle33:setHeight(77);
obj.rectangle33:setColor("black");
obj.rectangle33:setStrokeColor("white");
obj.rectangle33:setStrokeSize(1);
obj.rectangle33:setName("rectangle33");
obj.label160 = GUI.fromHandle(_obj_newObject("label"));
obj.label160:setParent(obj.layout17);
obj.label160:setLeft(870);
obj.label160:setTop(25);
obj.label160:setWidth(330);
obj.label160:setHeight(25);
obj.label160:setHorzTextAlign("center");
obj.label160:setText("Clique para adicionar imagem");
obj.label160:setName("label160");
obj.image16 = GUI.fromHandle(_obj_newObject("image"));
obj.image16:setParent(obj.layout17);
obj.image16:setField("imagemArma16");
obj.image16:setEditable(true);
obj.image16:setStyle("autoFit");
obj.image16:setLeft(870);
obj.image16:setTop(5);
obj.image16:setWidth(330);
obj.image16:setHeight(75);
obj.image16:setName("image16");
obj.button64 = GUI.fromHandle(_obj_newObject("button"));
obj.button64:setParent(obj.layout17);
obj.button64:setLeft(1205);
obj.button64:setTop(5);
obj.button64:setWidth(25);
obj.button64:setHeight(75);
obj.button64:setText("X");
obj.button64:setFontSize(15);
obj.button64:setHint("Apaga o ataque.");
obj.button64:setName("button64");
obj.layout18 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout18:setParent(obj.layout1);
obj.layout18:setLeft(2);
obj.layout18:setTop(1523);
obj.layout18:setWidth(1232);
obj.layout18:setHeight(92);
obj.layout18:setName("layout18");
obj.rectangle34 = GUI.fromHandle(_obj_newObject("rectangle"));
obj.rectangle34:setParent(obj.layout18);
obj.rectangle34:setAlign("client");
obj.rectangle34:setColor("black");
obj.rectangle34:setName("rectangle34");
obj.label161 = GUI.fromHandle(_obj_newObject("label"));
obj.label161:setParent(obj.layout18);
obj.label161:setLeft(5);
obj.label161:setTop(5);
obj.label161:setWidth(50);
obj.label161:setHeight(25);
obj.label161:setText("NOME");
obj.label161:setName("label161");
obj.edit193 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit193:setParent(obj.layout18);
obj.edit193:setVertTextAlign("center");
obj.edit193:setLeft(55);
obj.edit193:setTop(5);
obj.edit193:setWidth(225);
obj.edit193:setHeight(25);
obj.edit193:setField("nome17");
obj.edit193:setName("edit193");
obj.label162 = GUI.fromHandle(_obj_newObject("label"));
obj.label162:setParent(obj.layout18);
obj.label162:setLeft(5);
obj.label162:setTop(30);
obj.label162:setWidth(50);
obj.label162:setHeight(25);
obj.label162:setText("ARMA");
obj.label162:setName("label162");
obj.edit194 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit194:setParent(obj.layout18);
obj.edit194:setVertTextAlign("center");
obj.edit194:setLeft(55);
obj.edit194:setTop(30);
obj.edit194:setWidth(225);
obj.edit194:setHeight(25);
obj.edit194:setField("arma17");
obj.edit194:setName("edit194");
obj.label163 = GUI.fromHandle(_obj_newObject("label"));
obj.label163:setParent(obj.layout18);
obj.label163:setLeft(5);
obj.label163:setTop(55);
obj.label163:setWidth(50);
obj.label163:setHeight(25);
obj.label163:setText("TIPO");
obj.label163:setName("label163");
obj.edit195 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit195:setParent(obj.layout18);
obj.edit195:setVertTextAlign("center");
obj.edit195:setLeft(55);
obj.edit195:setTop(55);
obj.edit195:setWidth(225);
obj.edit195:setHeight(25);
obj.edit195:setField("tipo17");
obj.edit195:setName("edit195");
obj.button65 = GUI.fromHandle(_obj_newObject("button"));
obj.button65:setParent(obj.layout18);
obj.button65:setLeft(279);
obj.button65:setTop(6);
obj.button65:setWidth(73);
obj.button65:setText("ATAQUE");
obj.button65:setFontSize(11);
obj.button65:setName("button65");
obj.edit196 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit196:setParent(obj.layout18);
obj.edit196:setType("number");
obj.edit196:setVertTextAlign("center");
obj.edit196:setLeft(352);
obj.edit196:setTop(5);
obj.edit196:setWidth(82);
obj.edit196:setHeight(25);
obj.edit196:setField("ataque17");
obj.edit196:setName("edit196");
obj.checkBox17 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox17:setParent(obj.layout18);
obj.checkBox17:setLeft(434);
obj.checkBox17:setTop(6);
obj.checkBox17:setWidth(150);
obj.checkBox17:setField("double17");
obj.checkBox17:setText("Ataque Total");
obj.checkBox17:setName("checkBox17");
obj.dataLink17 = GUI.fromHandle(_obj_newObject("dataLink"));
obj.dataLink17:setParent(obj.layout18);
obj.dataLink17:setFields({'ataque17','double17'});
obj.dataLink17:setName("dataLink17");
obj.button66 = GUI.fromHandle(_obj_newObject("button"));
obj.button66:setParent(obj.layout18);
obj.button66:setLeft(279);
obj.button66:setTop(31);
obj.button66:setWidth(73);
obj.button66:setText("DANO");
obj.button66:setFontSize(11);
obj.button66:setName("button66");
obj.edit197 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit197:setParent(obj.layout18);
obj.edit197:setVertTextAlign("center");
obj.edit197:setLeft(352);
obj.edit197:setTop(30);
obj.edit197:setWidth(82);
obj.edit197:setHeight(25);
obj.edit197:setField("dano17");
obj.edit197:setName("edit197");
obj.button67 = GUI.fromHandle(_obj_newObject("button"));
obj.button67:setParent(obj.layout18);
obj.button67:setLeft(434);
obj.button67:setTop(31);
obj.button67:setWidth(60);
obj.button67:setText("CRITICO");
obj.button67:setFontSize(11);
obj.button67:setName("button67");
obj.edit198 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit198:setParent(obj.layout18);
obj.edit198:setVertTextAlign("center");
obj.edit198:setLeft(493);
obj.edit198:setTop(30);
obj.edit198:setWidth(82);
obj.edit198:setHeight(25);
obj.edit198:setField("danoCritico17");
obj.edit198:setName("edit198");
obj.label164 = GUI.fromHandle(_obj_newObject("label"));
obj.label164:setParent(obj.layout18);
obj.label164:setLeft(290);
obj.label164:setTop(55);
obj.label164:setWidth(70);
obj.label164:setHeight(25);
obj.label164:setText("DECISIVO");
obj.label164:setName("label164");
obj.edit199 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit199:setParent(obj.layout18);
obj.edit199:setVertTextAlign("center");
obj.edit199:setLeft(352);
obj.edit199:setTop(55);
obj.edit199:setWidth(82);
obj.edit199:setHeight(25);
obj.edit199:setField("decisivo17");
obj.edit199:setName("edit199");
obj.label165 = GUI.fromHandle(_obj_newObject("label"));
obj.label165:setParent(obj.layout18);
obj.label165:setLeft(445);
obj.label165:setTop(55);
obj.label165:setWidth(50);
obj.label165:setHeight(25);
obj.label165:setText("MULTI");
obj.label165:setName("label165");
obj.edit200 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit200:setParent(obj.layout18);
obj.edit200:setVertTextAlign("center");
obj.edit200:setLeft(493);
obj.edit200:setTop(55);
obj.edit200:setWidth(82);
obj.edit200:setHeight(25);
obj.edit200:setField("multiplicador17");
obj.edit200:setName("edit200");
obj.label166 = GUI.fromHandle(_obj_newObject("label"));
obj.label166:setParent(obj.layout18);
obj.label166:setLeft(580);
obj.label166:setTop(5);
obj.label166:setWidth(80);
obj.label166:setHeight(25);
obj.label166:setText("CATEGORIA");
obj.label166:setName("label166");
obj.edit201 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit201:setParent(obj.layout18);
obj.edit201:setVertTextAlign("center");
obj.edit201:setLeft(660);
obj.edit201:setTop(5);
obj.edit201:setWidth(200);
obj.edit201:setHeight(25);
obj.edit201:setField("categoria17");
obj.edit201:setName("edit201");
obj.label167 = GUI.fromHandle(_obj_newObject("label"));
obj.label167:setParent(obj.layout18);
obj.label167:setLeft(610);
obj.label167:setTop(30);
obj.label167:setWidth(50);
obj.label167:setHeight(25);
obj.label167:setText("OBS");
obj.label167:setName("label167");
obj.edit202 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit202:setParent(obj.layout18);
obj.edit202:setVertTextAlign("center");
obj.edit202:setLeft(660);
obj.edit202:setTop(30);
obj.edit202:setWidth(200);
obj.edit202:setHeight(25);
obj.edit202:setField("obs17");
obj.edit202:setName("edit202");
obj.label168 = GUI.fromHandle(_obj_newObject("label"));
obj.label168:setParent(obj.layout18);
obj.label168:setLeft(590);
obj.label168:setTop(55);
obj.label168:setWidth(80);
obj.label168:setHeight(25);
obj.label168:setText("MUNIÇÃO");
obj.label168:setName("label168");
obj.edit203 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit203:setParent(obj.layout18);
obj.edit203:setType("number");
obj.edit203:setVertTextAlign("center");
obj.edit203:setLeft(660);
obj.edit203:setTop(55);
obj.edit203:setWidth(69);
obj.edit203:setHeight(25);
obj.edit203:setField("municao17");
obj.edit203:setName("edit203");
obj.label169 = GUI.fromHandle(_obj_newObject("label"));
obj.label169:setParent(obj.layout18);
obj.label169:setLeft(735);
obj.label169:setTop(55);
obj.label169:setWidth(70);
obj.label169:setHeight(25);
obj.label169:setText("ALCANCE");
obj.label169:setName("label169");
obj.edit204 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit204:setParent(obj.layout18);
obj.edit204:setVertTextAlign("center");
obj.edit204:setLeft(795);
obj.edit204:setTop(55);
obj.edit204:setWidth(65);
obj.edit204:setHeight(25);
obj.edit204:setField("alcance17");
obj.edit204:setName("edit204");
obj.rectangle35 = GUI.fromHandle(_obj_newObject("rectangle"));
obj.rectangle35:setParent(obj.layout18);
obj.rectangle35:setLeft(869);
obj.rectangle35:setTop(4);
obj.rectangle35:setWidth(332);
obj.rectangle35:setHeight(77);
obj.rectangle35:setColor("black");
obj.rectangle35:setStrokeColor("white");
obj.rectangle35:setStrokeSize(1);
obj.rectangle35:setName("rectangle35");
obj.label170 = GUI.fromHandle(_obj_newObject("label"));
obj.label170:setParent(obj.layout18);
obj.label170:setLeft(870);
obj.label170:setTop(25);
obj.label170:setWidth(330);
obj.label170:setHeight(25);
obj.label170:setHorzTextAlign("center");
obj.label170:setText("Clique para adicionar imagem");
obj.label170:setName("label170");
obj.image17 = GUI.fromHandle(_obj_newObject("image"));
obj.image17:setParent(obj.layout18);
obj.image17:setField("imagemArma17");
obj.image17:setEditable(true);
obj.image17:setStyle("autoFit");
obj.image17:setLeft(870);
obj.image17:setTop(5);
obj.image17:setWidth(330);
obj.image17:setHeight(75);
obj.image17:setName("image17");
obj.button68 = GUI.fromHandle(_obj_newObject("button"));
obj.button68:setParent(obj.layout18);
obj.button68:setLeft(1205);
obj.button68:setTop(5);
obj.button68:setWidth(25);
obj.button68:setHeight(75);
obj.button68:setText("X");
obj.button68:setFontSize(15);
obj.button68:setHint("Apaga o ataque.");
obj.button68:setName("button68");
obj.layout19 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout19:setParent(obj.layout1);
obj.layout19:setLeft(2);
obj.layout19:setTop(1618);
obj.layout19:setWidth(1232);
obj.layout19:setHeight(92);
obj.layout19:setName("layout19");
obj.rectangle36 = GUI.fromHandle(_obj_newObject("rectangle"));
obj.rectangle36:setParent(obj.layout19);
obj.rectangle36:setAlign("client");
obj.rectangle36:setColor("black");
obj.rectangle36:setName("rectangle36");
obj.label171 = GUI.fromHandle(_obj_newObject("label"));
obj.label171:setParent(obj.layout19);
obj.label171:setLeft(5);
obj.label171:setTop(5);
obj.label171:setWidth(50);
obj.label171:setHeight(25);
obj.label171:setText("NOME");
obj.label171:setName("label171");
obj.edit205 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit205:setParent(obj.layout19);
obj.edit205:setVertTextAlign("center");
obj.edit205:setLeft(55);
obj.edit205:setTop(5);
obj.edit205:setWidth(225);
obj.edit205:setHeight(25);
obj.edit205:setField("nome18");
obj.edit205:setName("edit205");
obj.label172 = GUI.fromHandle(_obj_newObject("label"));
obj.label172:setParent(obj.layout19);
obj.label172:setLeft(5);
obj.label172:setTop(30);
obj.label172:setWidth(50);
obj.label172:setHeight(25);
obj.label172:setText("ARMA");
obj.label172:setName("label172");
obj.edit206 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit206:setParent(obj.layout19);
obj.edit206:setVertTextAlign("center");
obj.edit206:setLeft(55);
obj.edit206:setTop(30);
obj.edit206:setWidth(225);
obj.edit206:setHeight(25);
obj.edit206:setField("arma18");
obj.edit206:setName("edit206");
obj.label173 = GUI.fromHandle(_obj_newObject("label"));
obj.label173:setParent(obj.layout19);
obj.label173:setLeft(5);
obj.label173:setTop(55);
obj.label173:setWidth(50);
obj.label173:setHeight(25);
obj.label173:setText("TIPO");
obj.label173:setName("label173");
obj.edit207 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit207:setParent(obj.layout19);
obj.edit207:setVertTextAlign("center");
obj.edit207:setLeft(55);
obj.edit207:setTop(55);
obj.edit207:setWidth(225);
obj.edit207:setHeight(25);
obj.edit207:setField("tipo18");
obj.edit207:setName("edit207");
obj.button69 = GUI.fromHandle(_obj_newObject("button"));
obj.button69:setParent(obj.layout19);
obj.button69:setLeft(279);
obj.button69:setTop(6);
obj.button69:setWidth(73);
obj.button69:setText("ATAQUE");
obj.button69:setFontSize(11);
obj.button69:setName("button69");
obj.edit208 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit208:setParent(obj.layout19);
obj.edit208:setType("number");
obj.edit208:setVertTextAlign("center");
obj.edit208:setLeft(352);
obj.edit208:setTop(5);
obj.edit208:setWidth(82);
obj.edit208:setHeight(25);
obj.edit208:setField("ataque18");
obj.edit208:setName("edit208");
obj.checkBox18 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox18:setParent(obj.layout19);
obj.checkBox18:setLeft(434);
obj.checkBox18:setTop(6);
obj.checkBox18:setWidth(150);
obj.checkBox18:setField("double18");
obj.checkBox18:setText("Ataque Total");
obj.checkBox18:setName("checkBox18");
obj.dataLink18 = GUI.fromHandle(_obj_newObject("dataLink"));
obj.dataLink18:setParent(obj.layout19);
obj.dataLink18:setFields({'ataque18','double18'});
obj.dataLink18:setName("dataLink18");
obj.button70 = GUI.fromHandle(_obj_newObject("button"));
obj.button70:setParent(obj.layout19);
obj.button70:setLeft(279);
obj.button70:setTop(31);
obj.button70:setWidth(73);
obj.button70:setText("DANO");
obj.button70:setFontSize(11);
obj.button70:setName("button70");
obj.edit209 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit209:setParent(obj.layout19);
obj.edit209:setVertTextAlign("center");
obj.edit209:setLeft(352);
obj.edit209:setTop(30);
obj.edit209:setWidth(82);
obj.edit209:setHeight(25);
obj.edit209:setField("dano18");
obj.edit209:setName("edit209");
obj.button71 = GUI.fromHandle(_obj_newObject("button"));
obj.button71:setParent(obj.layout19);
obj.button71:setLeft(434);
obj.button71:setTop(31);
obj.button71:setWidth(60);
obj.button71:setText("CRITICO");
obj.button71:setFontSize(11);
obj.button71:setName("button71");
obj.edit210 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit210:setParent(obj.layout19);
obj.edit210:setVertTextAlign("center");
obj.edit210:setLeft(493);
obj.edit210:setTop(30);
obj.edit210:setWidth(82);
obj.edit210:setHeight(25);
obj.edit210:setField("danoCritico18");
obj.edit210:setName("edit210");
obj.label174 = GUI.fromHandle(_obj_newObject("label"));
obj.label174:setParent(obj.layout19);
obj.label174:setLeft(290);
obj.label174:setTop(55);
obj.label174:setWidth(70);
obj.label174:setHeight(25);
obj.label174:setText("DECISIVO");
obj.label174:setName("label174");
obj.edit211 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit211:setParent(obj.layout19);
obj.edit211:setVertTextAlign("center");
obj.edit211:setLeft(352);
obj.edit211:setTop(55);
obj.edit211:setWidth(82);
obj.edit211:setHeight(25);
obj.edit211:setField("decisivo18");
obj.edit211:setName("edit211");
obj.label175 = GUI.fromHandle(_obj_newObject("label"));
obj.label175:setParent(obj.layout19);
obj.label175:setLeft(445);
obj.label175:setTop(55);
obj.label175:setWidth(50);
obj.label175:setHeight(25);
obj.label175:setText("MULTI");
obj.label175:setName("label175");
obj.edit212 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit212:setParent(obj.layout19);
obj.edit212:setVertTextAlign("center");
obj.edit212:setLeft(493);
obj.edit212:setTop(55);
obj.edit212:setWidth(82);
obj.edit212:setHeight(25);
obj.edit212:setField("multiplicador18");
obj.edit212:setName("edit212");
obj.label176 = GUI.fromHandle(_obj_newObject("label"));
obj.label176:setParent(obj.layout19);
obj.label176:setLeft(580);
obj.label176:setTop(5);
obj.label176:setWidth(80);
obj.label176:setHeight(25);
obj.label176:setText("CATEGORIA");
obj.label176:setName("label176");
obj.edit213 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit213:setParent(obj.layout19);
obj.edit213:setVertTextAlign("center");
obj.edit213:setLeft(660);
obj.edit213:setTop(5);
obj.edit213:setWidth(200);
obj.edit213:setHeight(25);
obj.edit213:setField("categoria18");
obj.edit213:setName("edit213");
obj.label177 = GUI.fromHandle(_obj_newObject("label"));
obj.label177:setParent(obj.layout19);
obj.label177:setLeft(610);
obj.label177:setTop(30);
obj.label177:setWidth(50);
obj.label177:setHeight(25);
obj.label177:setText("OBS");
obj.label177:setName("label177");
obj.edit214 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit214:setParent(obj.layout19);
obj.edit214:setVertTextAlign("center");
obj.edit214:setLeft(660);
obj.edit214:setTop(30);
obj.edit214:setWidth(200);
obj.edit214:setHeight(25);
obj.edit214:setField("obs18");
obj.edit214:setName("edit214");
obj.label178 = GUI.fromHandle(_obj_newObject("label"));
obj.label178:setParent(obj.layout19);
obj.label178:setLeft(590);
obj.label178:setTop(55);
obj.label178:setWidth(80);
obj.label178:setHeight(25);
obj.label178:setText("MUNIÇÃO");
obj.label178:setName("label178");
obj.edit215 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit215:setParent(obj.layout19);
obj.edit215:setType("number");
obj.edit215:setVertTextAlign("center");
obj.edit215:setLeft(660);
obj.edit215:setTop(55);
obj.edit215:setWidth(69);
obj.edit215:setHeight(25);
obj.edit215:setField("municao18");
obj.edit215:setName("edit215");
obj.label179 = GUI.fromHandle(_obj_newObject("label"));
obj.label179:setParent(obj.layout19);
obj.label179:setLeft(735);
obj.label179:setTop(55);
obj.label179:setWidth(70);
obj.label179:setHeight(25);
obj.label179:setText("ALCANCE");
obj.label179:setName("label179");
obj.edit216 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit216:setParent(obj.layout19);
obj.edit216:setVertTextAlign("center");
obj.edit216:setLeft(795);
obj.edit216:setTop(55);
obj.edit216:setWidth(65);
obj.edit216:setHeight(25);
obj.edit216:setField("alcance18");
obj.edit216:setName("edit216");
obj.rectangle37 = GUI.fromHandle(_obj_newObject("rectangle"));
obj.rectangle37:setParent(obj.layout19);
obj.rectangle37:setLeft(869);
obj.rectangle37:setTop(4);
obj.rectangle37:setWidth(332);
obj.rectangle37:setHeight(77);
obj.rectangle37:setColor("black");
obj.rectangle37:setStrokeColor("white");
obj.rectangle37:setStrokeSize(1);
obj.rectangle37:setName("rectangle37");
obj.label180 = GUI.fromHandle(_obj_newObject("label"));
obj.label180:setParent(obj.layout19);
obj.label180:setLeft(870);
obj.label180:setTop(25);
obj.label180:setWidth(330);
obj.label180:setHeight(25);
obj.label180:setHorzTextAlign("center");
obj.label180:setText("Clique para adicionar imagem");
obj.label180:setName("label180");
obj.image18 = GUI.fromHandle(_obj_newObject("image"));
obj.image18:setParent(obj.layout19);
obj.image18:setField("imagemArma18");
obj.image18:setEditable(true);
obj.image18:setStyle("autoFit");
obj.image18:setLeft(870);
obj.image18:setTop(5);
obj.image18:setWidth(330);
obj.image18:setHeight(75);
obj.image18:setName("image18");
obj.button72 = GUI.fromHandle(_obj_newObject("button"));
obj.button72:setParent(obj.layout19);
obj.button72:setLeft(1205);
obj.button72:setTop(5);
obj.button72:setWidth(25);
obj.button72:setHeight(75);
obj.button72:setText("X");
obj.button72:setFontSize(15);
obj.button72:setHint("Apaga o ataque.");
obj.button72:setName("button72");
obj.layout20 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout20:setParent(obj.layout1);
obj.layout20:setLeft(2);
obj.layout20:setTop(1713);
obj.layout20:setWidth(1232);
obj.layout20:setHeight(92);
obj.layout20:setName("layout20");
obj.rectangle38 = GUI.fromHandle(_obj_newObject("rectangle"));
obj.rectangle38:setParent(obj.layout20);
obj.rectangle38:setAlign("client");
obj.rectangle38:setColor("black");
obj.rectangle38:setName("rectangle38");
obj.label181 = GUI.fromHandle(_obj_newObject("label"));
obj.label181:setParent(obj.layout20);
obj.label181:setLeft(5);
obj.label181:setTop(5);
obj.label181:setWidth(50);
obj.label181:setHeight(25);
obj.label181:setText("NOME");
obj.label181:setName("label181");
obj.edit217 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit217:setParent(obj.layout20);
obj.edit217:setVertTextAlign("center");
obj.edit217:setLeft(55);
obj.edit217:setTop(5);
obj.edit217:setWidth(225);
obj.edit217:setHeight(25);
obj.edit217:setField("nome19");
obj.edit217:setName("edit217");
obj.label182 = GUI.fromHandle(_obj_newObject("label"));
obj.label182:setParent(obj.layout20);
obj.label182:setLeft(5);
obj.label182:setTop(30);
obj.label182:setWidth(50);
obj.label182:setHeight(25);
obj.label182:setText("ARMA");
obj.label182:setName("label182");
obj.edit218 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit218:setParent(obj.layout20);
obj.edit218:setVertTextAlign("center");
obj.edit218:setLeft(55);
obj.edit218:setTop(30);
obj.edit218:setWidth(225);
obj.edit218:setHeight(25);
obj.edit218:setField("arma19");
obj.edit218:setName("edit218");
obj.label183 = GUI.fromHandle(_obj_newObject("label"));
obj.label183:setParent(obj.layout20);
obj.label183:setLeft(5);
obj.label183:setTop(55);
obj.label183:setWidth(50);
obj.label183:setHeight(25);
obj.label183:setText("TIPO");
obj.label183:setName("label183");
obj.edit219 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit219:setParent(obj.layout20);
obj.edit219:setVertTextAlign("center");
obj.edit219:setLeft(55);
obj.edit219:setTop(55);
obj.edit219:setWidth(225);
obj.edit219:setHeight(25);
obj.edit219:setField("tipo19");
obj.edit219:setName("edit219");
obj.button73 = GUI.fromHandle(_obj_newObject("button"));
obj.button73:setParent(obj.layout20);
obj.button73:setLeft(279);
obj.button73:setTop(6);
obj.button73:setWidth(73);
obj.button73:setText("ATAQUE");
obj.button73:setFontSize(11);
obj.button73:setName("button73");
obj.edit220 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit220:setParent(obj.layout20);
obj.edit220:setType("number");
obj.edit220:setVertTextAlign("center");
obj.edit220:setLeft(352);
obj.edit220:setTop(5);
obj.edit220:setWidth(82);
obj.edit220:setHeight(25);
obj.edit220:setField("ataque19");
obj.edit220:setName("edit220");
obj.checkBox19 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox19:setParent(obj.layout20);
obj.checkBox19:setLeft(434);
obj.checkBox19:setTop(6);
obj.checkBox19:setWidth(150);
obj.checkBox19:setField("double19");
obj.checkBox19:setText("Ataque Total");
obj.checkBox19:setName("checkBox19");
obj.dataLink19 = GUI.fromHandle(_obj_newObject("dataLink"));
obj.dataLink19:setParent(obj.layout20);
obj.dataLink19:setFields({'ataque19','double19'});
obj.dataLink19:setName("dataLink19");
obj.button74 = GUI.fromHandle(_obj_newObject("button"));
obj.button74:setParent(obj.layout20);
obj.button74:setLeft(279);
obj.button74:setTop(31);
obj.button74:setWidth(73);
obj.button74:setText("DANO");
obj.button74:setFontSize(11);
obj.button74:setName("button74");
obj.edit221 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit221:setParent(obj.layout20);
obj.edit221:setVertTextAlign("center");
obj.edit221:setLeft(352);
obj.edit221:setTop(30);
obj.edit221:setWidth(82);
obj.edit221:setHeight(25);
obj.edit221:setField("dano19");
obj.edit221:setName("edit221");
obj.button75 = GUI.fromHandle(_obj_newObject("button"));
obj.button75:setParent(obj.layout20);
obj.button75:setLeft(434);
obj.button75:setTop(31);
obj.button75:setWidth(60);
obj.button75:setText("CRITICO");
obj.button75:setFontSize(11);
obj.button75:setName("button75");
obj.edit222 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit222:setParent(obj.layout20);
obj.edit222:setVertTextAlign("center");
obj.edit222:setLeft(493);
obj.edit222:setTop(30);
obj.edit222:setWidth(82);
obj.edit222:setHeight(25);
obj.edit222:setField("danoCritico19");
obj.edit222:setName("edit222");
obj.label184 = GUI.fromHandle(_obj_newObject("label"));
obj.label184:setParent(obj.layout20);
obj.label184:setLeft(290);
obj.label184:setTop(55);
obj.label184:setWidth(70);
obj.label184:setHeight(25);
obj.label184:setText("DECISIVO");
obj.label184:setName("label184");
obj.edit223 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit223:setParent(obj.layout20);
obj.edit223:setVertTextAlign("center");
obj.edit223:setLeft(352);
obj.edit223:setTop(55);
obj.edit223:setWidth(82);
obj.edit223:setHeight(25);
obj.edit223:setField("decisivo19");
obj.edit223:setName("edit223");
obj.label185 = GUI.fromHandle(_obj_newObject("label"));
obj.label185:setParent(obj.layout20);
obj.label185:setLeft(445);
obj.label185:setTop(55);
obj.label185:setWidth(50);
obj.label185:setHeight(25);
obj.label185:setText("MULTI");
obj.label185:setName("label185");
obj.edit224 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit224:setParent(obj.layout20);
obj.edit224:setVertTextAlign("center");
obj.edit224:setLeft(493);
obj.edit224:setTop(55);
obj.edit224:setWidth(82);
obj.edit224:setHeight(25);
obj.edit224:setField("multiplicador19");
obj.edit224:setName("edit224");
obj.label186 = GUI.fromHandle(_obj_newObject("label"));
obj.label186:setParent(obj.layout20);
obj.label186:setLeft(580);
obj.label186:setTop(5);
obj.label186:setWidth(80);
obj.label186:setHeight(25);
obj.label186:setText("CATEGORIA");
obj.label186:setName("label186");
obj.edit225 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit225:setParent(obj.layout20);
obj.edit225:setVertTextAlign("center");
obj.edit225:setLeft(660);
obj.edit225:setTop(5);
obj.edit225:setWidth(200);
obj.edit225:setHeight(25);
obj.edit225:setField("categoria19");
obj.edit225:setName("edit225");
obj.label187 = GUI.fromHandle(_obj_newObject("label"));
obj.label187:setParent(obj.layout20);
obj.label187:setLeft(610);
obj.label187:setTop(30);
obj.label187:setWidth(50);
obj.label187:setHeight(25);
obj.label187:setText("OBS");
obj.label187:setName("label187");
obj.edit226 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit226:setParent(obj.layout20);
obj.edit226:setVertTextAlign("center");
obj.edit226:setLeft(660);
obj.edit226:setTop(30);
obj.edit226:setWidth(200);
obj.edit226:setHeight(25);
obj.edit226:setField("obs19");
obj.edit226:setName("edit226");
obj.label188 = GUI.fromHandle(_obj_newObject("label"));
obj.label188:setParent(obj.layout20);
obj.label188:setLeft(590);
obj.label188:setTop(55);
obj.label188:setWidth(80);
obj.label188:setHeight(25);
obj.label188:setText("MUNIÇÃO");
obj.label188:setName("label188");
obj.edit227 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit227:setParent(obj.layout20);
obj.edit227:setType("number");
obj.edit227:setVertTextAlign("center");
obj.edit227:setLeft(660);
obj.edit227:setTop(55);
obj.edit227:setWidth(69);
obj.edit227:setHeight(25);
obj.edit227:setField("municao19");
obj.edit227:setName("edit227");
obj.label189 = GUI.fromHandle(_obj_newObject("label"));
obj.label189:setParent(obj.layout20);
obj.label189:setLeft(735);
obj.label189:setTop(55);
obj.label189:setWidth(70);
obj.label189:setHeight(25);
obj.label189:setText("ALCANCE");
obj.label189:setName("label189");
obj.edit228 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit228:setParent(obj.layout20);
obj.edit228:setVertTextAlign("center");
obj.edit228:setLeft(795);
obj.edit228:setTop(55);
obj.edit228:setWidth(65);
obj.edit228:setHeight(25);
obj.edit228:setField("alcance19");
obj.edit228:setName("edit228");
obj.rectangle39 = GUI.fromHandle(_obj_newObject("rectangle"));
obj.rectangle39:setParent(obj.layout20);
obj.rectangle39:setLeft(869);
obj.rectangle39:setTop(4);
obj.rectangle39:setWidth(332);
obj.rectangle39:setHeight(77);
obj.rectangle39:setColor("black");
obj.rectangle39:setStrokeColor("white");
obj.rectangle39:setStrokeSize(1);
obj.rectangle39:setName("rectangle39");
obj.label190 = GUI.fromHandle(_obj_newObject("label"));
obj.label190:setParent(obj.layout20);
obj.label190:setLeft(870);
obj.label190:setTop(25);
obj.label190:setWidth(330);
obj.label190:setHeight(25);
obj.label190:setHorzTextAlign("center");
obj.label190:setText("Clique para adicionar imagem");
obj.label190:setName("label190");
obj.image19 = GUI.fromHandle(_obj_newObject("image"));
obj.image19:setParent(obj.layout20);
obj.image19:setField("imagemArma19");
obj.image19:setEditable(true);
obj.image19:setStyle("autoFit");
obj.image19:setLeft(870);
obj.image19:setTop(5);
obj.image19:setWidth(330);
obj.image19:setHeight(75);
obj.image19:setName("image19");
obj.button76 = GUI.fromHandle(_obj_newObject("button"));
obj.button76:setParent(obj.layout20);
obj.button76:setLeft(1205);
obj.button76:setTop(5);
obj.button76:setWidth(25);
obj.button76:setHeight(75);
obj.button76:setText("X");
obj.button76:setFontSize(15);
obj.button76:setHint("Apaga o ataque.");
obj.button76:setName("button76");
obj.layout21 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout21:setParent(obj.layout1);
obj.layout21:setLeft(2);
obj.layout21:setTop(1808);
obj.layout21:setWidth(1232);
obj.layout21:setHeight(92);
obj.layout21:setName("layout21");
obj.rectangle40 = GUI.fromHandle(_obj_newObject("rectangle"));
obj.rectangle40:setParent(obj.layout21);
obj.rectangle40:setAlign("client");
obj.rectangle40:setColor("black");
obj.rectangle40:setName("rectangle40");
obj.label191 = GUI.fromHandle(_obj_newObject("label"));
obj.label191:setParent(obj.layout21);
obj.label191:setLeft(5);
obj.label191:setTop(5);
obj.label191:setWidth(50);
obj.label191:setHeight(25);
obj.label191:setText("NOME");
obj.label191:setName("label191");
obj.edit229 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit229:setParent(obj.layout21);
obj.edit229:setVertTextAlign("center");
obj.edit229:setLeft(55);
obj.edit229:setTop(5);
obj.edit229:setWidth(225);
obj.edit229:setHeight(25);
obj.edit229:setField("nome20");
obj.edit229:setName("edit229");
obj.label192 = GUI.fromHandle(_obj_newObject("label"));
obj.label192:setParent(obj.layout21);
obj.label192:setLeft(5);
obj.label192:setTop(30);
obj.label192:setWidth(50);
obj.label192:setHeight(25);
obj.label192:setText("ARMA");
obj.label192:setName("label192");
obj.edit230 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit230:setParent(obj.layout21);
obj.edit230:setVertTextAlign("center");
obj.edit230:setLeft(55);
obj.edit230:setTop(30);
obj.edit230:setWidth(225);
obj.edit230:setHeight(25);
obj.edit230:setField("arma20");
obj.edit230:setName("edit230");
obj.label193 = GUI.fromHandle(_obj_newObject("label"));
obj.label193:setParent(obj.layout21);
obj.label193:setLeft(5);
obj.label193:setTop(55);
obj.label193:setWidth(50);
obj.label193:setHeight(25);
obj.label193:setText("TIPO");
obj.label193:setName("label193");
obj.edit231 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit231:setParent(obj.layout21);
obj.edit231:setVertTextAlign("center");
obj.edit231:setLeft(55);
obj.edit231:setTop(55);
obj.edit231:setWidth(225);
obj.edit231:setHeight(25);
obj.edit231:setField("tipo20");
obj.edit231:setName("edit231");
obj.button77 = GUI.fromHandle(_obj_newObject("button"));
obj.button77:setParent(obj.layout21);
obj.button77:setLeft(279);
obj.button77:setTop(6);
obj.button77:setWidth(73);
obj.button77:setText("ATAQUE");
obj.button77:setFontSize(11);
obj.button77:setName("button77");
obj.edit232 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit232:setParent(obj.layout21);
obj.edit232:setType("number");
obj.edit232:setVertTextAlign("center");
obj.edit232:setLeft(352);
obj.edit232:setTop(5);
obj.edit232:setWidth(82);
obj.edit232:setHeight(25);
obj.edit232:setField("ataque20");
obj.edit232:setName("edit232");
obj.checkBox20 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox20:setParent(obj.layout21);
obj.checkBox20:setLeft(434);
obj.checkBox20:setTop(6);
obj.checkBox20:setWidth(150);
obj.checkBox20:setField("double20");
obj.checkBox20:setText("Ataque Total");
obj.checkBox20:setName("checkBox20");
obj.dataLink20 = GUI.fromHandle(_obj_newObject("dataLink"));
obj.dataLink20:setParent(obj.layout21);
obj.dataLink20:setFields({'ataque20','double20'});
obj.dataLink20:setName("dataLink20");
obj.button78 = GUI.fromHandle(_obj_newObject("button"));
obj.button78:setParent(obj.layout21);
obj.button78:setLeft(279);
obj.button78:setTop(31);
obj.button78:setWidth(73);
obj.button78:setText("DANO");
obj.button78:setFontSize(11);
obj.button78:setName("button78");
obj.edit233 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit233:setParent(obj.layout21);
obj.edit233:setVertTextAlign("center");
obj.edit233:setLeft(352);
obj.edit233:setTop(30);
obj.edit233:setWidth(82);
obj.edit233:setHeight(25);
obj.edit233:setField("dano20");
obj.edit233:setName("edit233");
obj.button79 = GUI.fromHandle(_obj_newObject("button"));
obj.button79:setParent(obj.layout21);
obj.button79:setLeft(434);
obj.button79:setTop(31);
obj.button79:setWidth(60);
obj.button79:setText("CRITICO");
obj.button79:setFontSize(11);
obj.button79:setName("button79");
obj.edit234 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit234:setParent(obj.layout21);
obj.edit234:setVertTextAlign("center");
obj.edit234:setLeft(493);
obj.edit234:setTop(30);
obj.edit234:setWidth(82);
obj.edit234:setHeight(25);
obj.edit234:setField("danoCritico20");
obj.edit234:setName("edit234");
obj.label194 = GUI.fromHandle(_obj_newObject("label"));
obj.label194:setParent(obj.layout21);
obj.label194:setLeft(290);
obj.label194:setTop(55);
obj.label194:setWidth(70);
obj.label194:setHeight(25);
obj.label194:setText("DECISIVO");
obj.label194:setName("label194");
obj.edit235 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit235:setParent(obj.layout21);
obj.edit235:setVertTextAlign("center");
obj.edit235:setLeft(352);
obj.edit235:setTop(55);
obj.edit235:setWidth(82);
obj.edit235:setHeight(25);
obj.edit235:setField("decisivo20");
obj.edit235:setName("edit235");
obj.label195 = GUI.fromHandle(_obj_newObject("label"));
obj.label195:setParent(obj.layout21);
obj.label195:setLeft(445);
obj.label195:setTop(55);
obj.label195:setWidth(50);
obj.label195:setHeight(25);
obj.label195:setText("MULTI");
obj.label195:setName("label195");
obj.edit236 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit236:setParent(obj.layout21);
obj.edit236:setVertTextAlign("center");
obj.edit236:setLeft(493);
obj.edit236:setTop(55);
obj.edit236:setWidth(82);
obj.edit236:setHeight(25);
obj.edit236:setField("multiplicador20");
obj.edit236:setName("edit236");
obj.label196 = GUI.fromHandle(_obj_newObject("label"));
obj.label196:setParent(obj.layout21);
obj.label196:setLeft(580);
obj.label196:setTop(5);
obj.label196:setWidth(80);
obj.label196:setHeight(25);
obj.label196:setText("CATEGORIA");
obj.label196:setName("label196");
obj.edit237 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit237:setParent(obj.layout21);
obj.edit237:setVertTextAlign("center");
obj.edit237:setLeft(660);
obj.edit237:setTop(5);
obj.edit237:setWidth(200);
obj.edit237:setHeight(25);
obj.edit237:setField("categoria20");
obj.edit237:setName("edit237");
obj.label197 = GUI.fromHandle(_obj_newObject("label"));
obj.label197:setParent(obj.layout21);
obj.label197:setLeft(610);
obj.label197:setTop(30);
obj.label197:setWidth(50);
obj.label197:setHeight(25);
obj.label197:setText("OBS");
obj.label197:setName("label197");
obj.edit238 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit238:setParent(obj.layout21);
obj.edit238:setVertTextAlign("center");
obj.edit238:setLeft(660);
obj.edit238:setTop(30);
obj.edit238:setWidth(200);
obj.edit238:setHeight(25);
obj.edit238:setField("obs20");
obj.edit238:setName("edit238");
obj.label198 = GUI.fromHandle(_obj_newObject("label"));
obj.label198:setParent(obj.layout21);
obj.label198:setLeft(590);
obj.label198:setTop(55);
obj.label198:setWidth(80);
obj.label198:setHeight(25);
obj.label198:setText("MUNIÇÃO");
obj.label198:setName("label198");
obj.edit239 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit239:setParent(obj.layout21);
obj.edit239:setType("number");
obj.edit239:setVertTextAlign("center");
obj.edit239:setLeft(660);
obj.edit239:setTop(55);
obj.edit239:setWidth(69);
obj.edit239:setHeight(25);
obj.edit239:setField("municao20");
obj.edit239:setName("edit239");
obj.label199 = GUI.fromHandle(_obj_newObject("label"));
obj.label199:setParent(obj.layout21);
obj.label199:setLeft(735);
obj.label199:setTop(55);
obj.label199:setWidth(70);
obj.label199:setHeight(25);
obj.label199:setText("ALCANCE");
obj.label199:setName("label199");
obj.edit240 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit240:setParent(obj.layout21);
obj.edit240:setVertTextAlign("center");
obj.edit240:setLeft(795);
obj.edit240:setTop(55);
obj.edit240:setWidth(65);
obj.edit240:setHeight(25);
obj.edit240:setField("alcance20");
obj.edit240:setName("edit240");
obj.rectangle41 = GUI.fromHandle(_obj_newObject("rectangle"));
obj.rectangle41:setParent(obj.layout21);
obj.rectangle41:setLeft(869);
obj.rectangle41:setTop(4);
obj.rectangle41:setWidth(332);
obj.rectangle41:setHeight(77);
obj.rectangle41:setColor("black");
obj.rectangle41:setStrokeColor("white");
obj.rectangle41:setStrokeSize(1);
obj.rectangle41:setName("rectangle41");
obj.label200 = GUI.fromHandle(_obj_newObject("label"));
obj.label200:setParent(obj.layout21);
obj.label200:setLeft(870);
obj.label200:setTop(25);
obj.label200:setWidth(330);
obj.label200:setHeight(25);
obj.label200:setHorzTextAlign("center");
obj.label200:setText("Clique para adicionar imagem");
obj.label200:setName("label200");
obj.image20 = GUI.fromHandle(_obj_newObject("image"));
obj.image20:setParent(obj.layout21);
obj.image20:setField("imagemArma20");
obj.image20:setEditable(true);
obj.image20:setStyle("autoFit");
obj.image20:setLeft(870);
obj.image20:setTop(5);
obj.image20:setWidth(330);
obj.image20:setHeight(75);
obj.image20:setName("image20");
obj.button80 = GUI.fromHandle(_obj_newObject("button"));
obj.button80:setParent(obj.layout21);
obj.button80:setLeft(1205);
obj.button80:setTop(5);
obj.button80:setWidth(25);
obj.button80:setHeight(75);
obj.button80:setText("X");
obj.button80:setFontSize(15);
obj.button80:setHint("Apaga o ataque.");
obj.button80:setName("button80");
obj._e_event0 = obj.button1:addEventListener("onClick",
function (_)
i = 1;
max = 1;
fimRolagem = false;
array = {sheet.ataque1a, sheet.ataque1b};
decisivo = sheet.decisivo1 or "20";
decisivo = tonumber(string.sub(decisivo, 1, 2));
dano = sheet.dano1 or "1d1";
dano = Firecast.interpretarRolagem(dano);
if sheet.buffDano ~= nil then
dano = dano:concatenar(sheet.buffDano);
end;
danoCritico = sheet.danoCritico1 or "1d1";
danoCritico = Firecast.interpretarRolagem(danoCritico);
if sheet.buffDanoCritico ~= nil then
danoCritico = danoCritico:concatenar(sheet.buffDanoCritico);
end;
armamento = sheet.nome1;
if armamento==nil then armamento = sheet.arma1 end;
if armamento==nil then armamento = "arma" end;
municao = tonumber(sheet.municao1);
local mesa = Firecast.getMesaDe(sheet);
while array[max]~=nil do
max = max + 1;
end;
local ataque = tonumber(array[1]) or 0;
if ataque~=nil then
rolagem = Firecast.interpretarRolagem("1d20 + " .. ataque);
if sheet.buffAtaque ~= nil then
rolagem = rolagem:concatenar(sheet.buffAtaque);
end;
mesa.activeChat:rolarDados(rolagem, "Ataque " .. i .. " com " .. armamento .. " de " .. (sheet.nome or "NOME"),
function (rolado)
pos(rolado)
end);
if municao~=nil then
sheet.municao1 = municao-max+1;
end;
end;
end, obj);
obj._e_event1 = obj.dataLink1:addEventListener("onChange",
function (_, field, oldValue, newValue)
if sheet==nil then return end;
local atk = tonumber(sheet.ataque1) or 0;
if sheet.double1 then
atk = atk - 4;
sheet.ataque1a = atk;
sheet.ataque1b = atk;
else
sheet.ataque1a = atk;
sheet.ataque1b = nil;
end;
end, obj);
obj._e_event2 = obj.button2:addEventListener("onClick",
function (_)
local mesa = Firecast.getMesaDe(sheet);
local dano = sheet.dano1 or "1d1";
dano = Firecast.interpretarRolagem(dano);
if sheet.buffDano ~= nil then
dano = dano:concatenar(sheet.buffDano);
end;
local armamento = sheet.nome1;
if armamento==nil then armamento = sheet.arma1 end;
if armamento==nil then armamento = "arma" end;
mesa.activeChat:rolarDados(dano, "Dano com " .. armamento .. " de " .. (sheet.nome or "NOME"));
end, obj);
obj._e_event3 = obj.button3:addEventListener("onClick",
function (_)
local mesa = Firecast.getMesaDe(sheet);
local danoCritico = sheet.danoCritico1 or "1d1";
danoCritico = Firecast.interpretarRolagem(danoCritico);
if sheet.buffDanoCritico ~= nil then
danoCritico = danoCritico:concatenar(sheet.buffDanoCritico);
end;
local armamento = sheet.nome1;
if armamento==nil then armamento = sheet.arma1 end;
if armamento==nil then armamento = "arma" end;
mesa.activeChat:rolarDados(danoCritico, "Dano Critico com " .. armamento .. " de " .. (sheet.nome or "NOME"));
end, obj);
obj._e_event4 = obj.button4:addEventListener("onClick",
function (_)
Dialogs.confirmYesNo("Deseja realmente apagar esse ataque?",
function (confirmado)
if confirmado then
sheet.nome1 = nil;
sheet.arma1 = nil;
sheet.tipo1 = nil;
sheet.ataque1 = nil;
sheet.ataque1a = nil;
sheet.ataque1b = nil;
sheet.dano1 = nil;
sheet.danoCritico1 = nil;
sheet.decisivo1 = nil;
sheet.multiplicador1 = nil;
sheet.categoria1 = nil;
sheet.obs1 = nil;
sheet.municao1 = nil;
sheet.alcance1 = nil;
sheet.imagemArma1 = nil;
end;
end);
end, obj);
obj._e_event5 = obj.button5:addEventListener("onClick",
function (_)
i = 1;
max = 1;
fimRolagem = false;
array = {sheet.ataque2a, sheet.ataque2b};
decisivo = sheet.decisivo2 or "20";
decisivo = tonumber(string.sub(decisivo, 1, 2));
dano = sheet.dano2 or "1d1";
dano = Firecast.interpretarRolagem(dano);
if sheet.buffDano ~= nil then
dano = dano:concatenar(sheet.buffDano);
end;
danoCritico = sheet.danoCritico2 or "1d1";
danoCritico = Firecast.interpretarRolagem(danoCritico);
if sheet.buffDanoCritico ~= nil then
danoCritico = danoCritico:concatenar(sheet.buffDanoCritico);
end;
armamento = sheet.nome2;
if armamento==nil then armamento = sheet.arma2 end;
if armamento==nil then armamento = "arma" end;
municao = tonumber(sheet.municao2);
local mesa = Firecast.getMesaDe(sheet);
while array[max]~=nil do
max = max + 1;
end;
local ataque = tonumber(array[1]) or 0;
if ataque~=nil then
rolagem = Firecast.interpretarRolagem("1d20 + " .. ataque);
if sheet.buffAtaque ~= nil then
rolagem = rolagem:concatenar(sheet.buffAtaque);
end;
mesa.activeChat:rolarDados(rolagem, "Ataque " .. i .. " com " .. armamento .. " de " .. (sheet.nome or "NOME"),
function (rolado)
pos(rolado)
end);
if municao~=nil then
sheet.municao2 = municao-max+1;
end;
end;
end, obj);
obj._e_event6 = obj.dataLink2:addEventListener("onChange",
function (_, field, oldValue, newValue)
if sheet==nil then return end;
local atk = tonumber(sheet.ataque2) or 0;
if sheet.double2 then
atk = atk - 4;
sheet.ataque2a = atk;
sheet.ataque2b = atk;
else
sheet.ataque2a = atk;
sheet.ataque2b = nil;
end;
end, obj);
obj._e_event7 = obj.button6:addEventListener("onClick",
function (_)
local mesa = Firecast.getMesaDe(sheet);
local dano = sheet.dano2 or "1d1";
dano = Firecast.interpretarRolagem(dano);
if sheet.buffDano ~= nil then
dano = dano:concatenar(sheet.buffDano);
end;
local armamento = sheet.nome2;
if armamento==nil then armamento = sheet.arma2 end;
if armamento==nil then armamento = "arma" end;
mesa.activeChat:rolarDados(dano, "Dano com " .. armamento .. " de " .. (sheet.nome or "NOME"));
end, obj);
obj._e_event8 = obj.button7:addEventListener("onClick",
function (_)
local mesa = Firecast.getMesaDe(sheet);
local danoCritico = sheet.danoCritico2 or "1d1";
danoCritico = Firecast.interpretarRolagem(danoCritico);
if sheet.buffDanoCritico ~= nil then
danoCritico = danoCritico:concatenar(sheet.buffDanoCritico);
end;
local armamento = sheet.nome2;
if armamento==nil then armamento = sheet.arma2 end;
if armamento==nil then armamento = "arma" end;
mesa.activeChat:rolarDados(danoCritico, "Dano Critico com " .. armamento .. " de " .. (sheet.nome or "NOME"));
end, obj);
obj._e_event9 = obj.button8:addEventListener("onClick",
function (_)
Dialogs.confirmYesNo("Deseja realmente apagar esse ataque?",
function (confirmado)
if confirmado then
sheet.nome2 = nil;
sheet.arma2 = nil;
sheet.tipo2 = nil;
sheet.ataque2 = nil;
sheet.ataque2a = nil;
sheet.ataque2b = nil;
sheet.dano2 = nil;
sheet.danoCritico2 = nil;
sheet.decisivo2 = nil;
sheet.multiplicador2 = nil;
sheet.categoria2 = nil;
sheet.obs2 = nil;
sheet.municao2 = nil;
sheet.alcance2 = nil;
sheet.imagemArma2 = nil;
end;
end);
end, obj);
obj._e_event10 = obj.button9:addEventListener("onClick",
function (_)
i = 1;
max = 1;
fimRolagem = false;
array = {sheet.ataque3a, sheet.ataque3b};
decisivo = sheet.decisivo3 or "20";
decisivo = tonumber(string.sub(decisivo, 1, 2));
dano = sheet.dano3 or "1d1";
dano = Firecast.interpretarRolagem(dano);
if sheet.buffDano ~= nil then
dano = dano:concatenar(sheet.buffDano);
end;
danoCritico = sheet.danoCritico3 or "1d1";
danoCritico = Firecast.interpretarRolagem(danoCritico);
if sheet.buffDanoCritico ~= nil then
danoCritico = danoCritico:concatenar(sheet.buffDanoCritico);
end;
armamento = sheet.nome3;
if armamento==nil then armamento = sheet.arma3 end;
if armamento==nil then armamento = "arma" end;
municao = tonumber(sheet.municao3);
local mesa = Firecast.getMesaDe(sheet);
while array[max]~=nil do
max = max + 1;
end;
local ataque = tonumber(array[1]) or 0;
if ataque~=nil then
rolagem = Firecast.interpretarRolagem("1d20 + " .. ataque);
if sheet.buffAtaque ~= nil then
rolagem = rolagem:concatenar(sheet.buffAtaque);
end;
mesa.activeChat:rolarDados(rolagem, "Ataque " .. i .. " com " .. armamento .. " de " .. (sheet.nome or "NOME"),
function (rolado)
pos(rolado)
end);
if municao~=nil then
sheet.municao3 = municao-max+1;
end;
end;
end, obj);
obj._e_event11 = obj.dataLink3:addEventListener("onChange",
function (_, field, oldValue, newValue)
if sheet==nil then return end;
local atk = tonumber(sheet.ataque3) or 0;
if sheet.double3 then
atk = atk - 4;
sheet.ataque3a = atk;
sheet.ataque3b = atk;
else
sheet.ataque3a = atk;
sheet.ataque3b = nil;
end;
end, obj);
obj._e_event12 = obj.button10:addEventListener("onClick",
function (_)
local mesa = Firecast.getMesaDe(sheet);
local dano = sheet.dano3 or "1d1";
dano = Firecast.interpretarRolagem(dano);
if sheet.buffDano ~= nil then
dano = dano:concatenar(sheet.buffDano);
end;
local armamento = sheet.nome3;
if armamento==nil then armamento = sheet.arma3 end;
if armamento==nil then armamento = "arma" end;
mesa.activeChat:rolarDados(dano, "Dano com " .. armamento .. " de " .. (sheet.nome or "NOME"));
end, obj);
obj._e_event13 = obj.button11:addEventListener("onClick",
function (_)
local mesa = Firecast.getMesaDe(sheet);
local danoCritico = sheet.danoCritico3 or "1d1";
danoCritico = Firecast.interpretarRolagem(danoCritico);
if sheet.buffDanoCritico ~= nil then
danoCritico = danoCritico:concatenar(sheet.buffDanoCritico);
end;
local armamento = sheet.nome3;
if armamento==nil then armamento = sheet.arma3 end;
if armamento==nil then armamento = "arma" end;
mesa.activeChat:rolarDados(danoCritico, "Dano Critico com " .. armamento .. " de " .. (sheet.nome or "NOME"));
end, obj);
obj._e_event14 = obj.button12:addEventListener("onClick",
function (_)
Dialogs.confirmYesNo("Deseja realmente apagar esse ataque?",
function (confirmado)
if confirmado then
sheet.nome3 = nil;
sheet.arma3 = nil;
sheet.tipo3 = nil;
sheet.ataque3 = nil;
sheet.ataque3a = nil;
sheet.ataque3b = nil;
sheet.dano3 = nil;
sheet.danoCritico3 = nil;
sheet.decisivo3 = nil;
sheet.multiplicador3 = nil;
sheet.categoria3 = nil;
sheet.obs3 = nil;
sheet.municao3 = nil;
sheet.alcance3 = nil;
sheet.imagemArma3 = nil;
end;
end);
end, obj);
obj._e_event15 = obj.button13:addEventListener("onClick",
function (_)
i = 1;
max = 1;
fimRolagem = false;
array = {sheet.ataque4a, sheet.ataque4b};
decisivo = sheet.decisivo4 or "20";
decisivo = tonumber(string.sub(decisivo, 1, 2));
dano = sheet.dano4 or "1d1";
dano = Firecast.interpretarRolagem(dano);
if sheet.buffDano ~= nil then
dano = dano:concatenar(sheet.buffDano);
end;
danoCritico = sheet.danoCritico4 or "1d1";
danoCritico = Firecast.interpretarRolagem(danoCritico);
if sheet.buffDanoCritico ~= nil then
danoCritico = danoCritico:concatenar(sheet.buffDanoCritico);
end;
armamento = sheet.nome4;
if armamento==nil then armamento = sheet.arma4 end;
if armamento==nil then armamento = "arma" end;
municao = tonumber(sheet.municao4);
local mesa = Firecast.getMesaDe(sheet);
while array[max]~=nil do
max = max + 1;
end;
local ataque = tonumber(array[1]) or 0;
if ataque~=nil then
rolagem = Firecast.interpretarRolagem("1d20 + " .. ataque);
if sheet.buffAtaque ~= nil then
rolagem = rolagem:concatenar(sheet.buffAtaque);
end;
mesa.activeChat:rolarDados(rolagem, "Ataque " .. i .. " com " .. armamento .. " de " .. (sheet.nome or "NOME"),
function (rolado)
pos(rolado)
end);
if municao~=nil then
sheet.municao4 = municao-max+1;
end;
end;
end, obj);
obj._e_event16 = obj.dataLink4:addEventListener("onChange",
function (_, field, oldValue, newValue)
if sheet==nil then return end;
local atk = tonumber(sheet.ataque4) or 0;
if sheet.double4 then
atk = atk - 4;
sheet.ataque4a = atk;
sheet.ataque4b = atk;
else
sheet.ataque4a = atk;
sheet.ataque4b = nil;
end;
end, obj);
obj._e_event17 = obj.button14:addEventListener("onClick",
function (_)
local mesa = Firecast.getMesaDe(sheet);
local dano = sheet.dano4 or "1d1";
dano = Firecast.interpretarRolagem(dano);
if sheet.buffDano ~= nil then
dano = dano:concatenar(sheet.buffDano);
end;
local armamento = sheet.nome4;
if armamento==nil then armamento = sheet.arma4 end;
if armamento==nil then armamento = "arma" end;
mesa.activeChat:rolarDados(dano, "Dano com " .. armamento .. " de " .. (sheet.nome or "NOME"));
end, obj);
obj._e_event18 = obj.button15:addEventListener("onClick",
function (_)
local mesa = Firecast.getMesaDe(sheet);
local danoCritico = sheet.danoCritico4 or "1d1";
danoCritico = Firecast.interpretarRolagem(danoCritico);
if sheet.buffDanoCritico ~= nil then
danoCritico = danoCritico:concatenar(sheet.buffDanoCritico);
end;
local armamento = sheet.nome4;
if armamento==nil then armamento = sheet.arma4 end;
if armamento==nil then armamento = "arma" end;
mesa.activeChat:rolarDados(danoCritico, "Dano Critico com " .. armamento .. " de " .. (sheet.nome or "NOME"));
end, obj);
obj._e_event19 = obj.button16:addEventListener("onClick",
function (_)
Dialogs.confirmYesNo("Deseja realmente apagar esse ataque?",
function (confirmado)
if confirmado then
sheet.nome4 = nil;
sheet.arma4 = nil;
sheet.tipo4 = nil;
sheet.ataque4 = nil;
sheet.ataque4a = nil;
sheet.ataque4b = nil;
sheet.dano4 = nil;
sheet.danoCritico4 = nil;
sheet.decisivo4 = nil;
sheet.multiplicador4 = nil;
sheet.categoria4 = nil;
sheet.obs4 = nil;
sheet.municao4 = nil;
sheet.alcance4 = nil;
sheet.imagemArma4 = nil;
end;
end);
end, obj);
obj._e_event20 = obj.button17:addEventListener("onClick",
function (_)
i = 1;
max = 1;
fimRolagem = false;
array = {sheet.ataque5a, sheet.ataque5b};
decisivo = sheet.decisivo5 or "20";
decisivo = tonumber(string.sub(decisivo, 1, 2));
dano = sheet.dano5 or "1d1";
dano = Firecast.interpretarRolagem(dano);
if sheet.buffDano ~= nil then
dano = dano:concatenar(sheet.buffDano);
end;
danoCritico = sheet.danoCritico5 or "1d1";
danoCritico = Firecast.interpretarRolagem(danoCritico);
if sheet.buffDanoCritico ~= nil then
danoCritico = danoCritico:concatenar(sheet.buffDanoCritico);
end;
armamento = sheet.nome5;
if armamento==nil then armamento = sheet.arma5 end;
if armamento==nil then armamento = "arma" end;
municao = tonumber(sheet.municao5);
local mesa = Firecast.getMesaDe(sheet);
while array[max]~=nil do
max = max + 1;
end;
local ataque = tonumber(array[1]) or 0;
if ataque~=nil then
rolagem = Firecast.interpretarRolagem("1d20 + " .. ataque);
if sheet.buffAtaque ~= nil then
rolagem = rolagem:concatenar(sheet.buffAtaque);
end;
mesa.activeChat:rolarDados(rolagem, "Ataque " .. i .. " com " .. armamento .. " de " .. (sheet.nome or "NOME"),
function (rolado)
pos(rolado)
end);
if municao~=nil then
sheet.municao5 = municao-max+1;
end;
end;
end, obj);
obj._e_event21 = obj.dataLink5:addEventListener("onChange",
function (_, field, oldValue, newValue)
if sheet==nil then return end;
local atk = tonumber(sheet.ataque5) or 0;
if sheet.double5 then
atk = atk - 4;
sheet.ataque5a = atk;
sheet.ataque5b = atk;
else
sheet.ataque5a = atk;
sheet.ataque5b = nil;
end;
end, obj);
obj._e_event22 = obj.button18:addEventListener("onClick",
function (_)
local mesa = Firecast.getMesaDe(sheet);
local dano = sheet.dano5 or "1d1";
dano = Firecast.interpretarRolagem(dano);
if sheet.buffDano ~= nil then
dano = dano:concatenar(sheet.buffDano);
end;
local armamento = sheet.nome5;
if armamento==nil then armamento = sheet.arma5 end;
if armamento==nil then armamento = "arma" end;
mesa.activeChat:rolarDados(dano, "Dano com " .. armamento .. " de " .. (sheet.nome or "NOME"));
end, obj);
obj._e_event23 = obj.button19:addEventListener("onClick",
function (_)
local mesa = Firecast.getMesaDe(sheet);
local danoCritico = sheet.danoCritico5 or "1d1";
danoCritico = Firecast.interpretarRolagem(danoCritico);
if sheet.buffDanoCritico ~= nil then
danoCritico = danoCritico:concatenar(sheet.buffDanoCritico);
end;
local armamento = sheet.nome5;
if armamento==nil then armamento = sheet.arma5 end;
if armamento==nil then armamento = "arma" end;
mesa.activeChat:rolarDados(danoCritico, "Dano Critico com " .. armamento .. " de " .. (sheet.nome or "NOME"));
end, obj);
obj._e_event24 = obj.button20:addEventListener("onClick",
function (_)
Dialogs.confirmYesNo("Deseja realmente apagar esse ataque?",
function (confirmado)
if confirmado then
sheet.nome5 = nil;
sheet.arma5 = nil;
sheet.tipo5 = nil;
sheet.ataque5 = nil;
sheet.ataque5a = nil;
sheet.ataque5b = nil;
sheet.dano5 = nil;
sheet.danoCritico5 = nil;
sheet.decisivo5 = nil;
sheet.multiplicador5 = nil;
sheet.categoria5 = nil;
sheet.obs5 = nil;
sheet.municao5 = nil;
sheet.alcance5 = nil;
sheet.imagemArma5 = nil;
end;
end);
end, obj);
obj._e_event25 = obj.button21:addEventListener("onClick",
function (_)
i = 1;
max = 1;
fimRolagem = false;
array = {sheet.ataque6a, sheet.ataque6b};
decisivo = sheet.decisivo6 or "20";
decisivo = tonumber(string.sub(decisivo, 1, 2));
dano = sheet.dano6 or "1d1";
dano = Firecast.interpretarRolagem(dano);
if sheet.buffDano ~= nil then
dano = dano:concatenar(sheet.buffDano);
end;
danoCritico = sheet.danoCritico6 or "1d1";
danoCritico = Firecast.interpretarRolagem(danoCritico);
if sheet.buffDanoCritico ~= nil then
danoCritico = danoCritico:concatenar(sheet.buffDanoCritico);
end;
armamento = sheet.nome6;
if armamento==nil then armamento = sheet.arma6 end;
if armamento==nil then armamento = "arma" end;
municao = tonumber(sheet.municao6);
local mesa = Firecast.getMesaDe(sheet);
while array[max]~=nil do
max = max + 1;
end;
local ataque = tonumber(array[1]) or 0;
if ataque~=nil then
rolagem = Firecast.interpretarRolagem("1d20 + " .. ataque);
if sheet.buffAtaque ~= nil then
rolagem = rolagem:concatenar(sheet.buffAtaque);
end;
mesa.activeChat:rolarDados(rolagem, "Ataque " .. i .. " com " .. armamento .. " de " .. (sheet.nome or "NOME"),
function (rolado)
pos(rolado)
end);
if municao~=nil then
sheet.municao6 = municao-max+1;
end;
end;
end, obj);
obj._e_event26 = obj.dataLink6:addEventListener("onChange",
function (_, field, oldValue, newValue)
if sheet==nil then return end;
local atk = tonumber(sheet.ataque6) or 0;
if sheet.double6 then
atk = atk - 4;
sheet.ataque6a = atk;
sheet.ataque6b = atk;
else
sheet.ataque6a = atk;
sheet.ataque6b = nil;
end;
end, obj);
obj._e_event27 = obj.button22:addEventListener("onClick",
function (_)
local mesa = Firecast.getMesaDe(sheet);
local dano = sheet.dano6 or "1d1";
dano = Firecast.interpretarRolagem(dano);
if sheet.buffDano ~= nil then
dano = dano:concatenar(sheet.buffDano);
end;
local armamento = sheet.nome6;
if armamento==nil then armamento = sheet.arma6 end;
if armamento==nil then armamento = "arma" end;
mesa.activeChat:rolarDados(dano, "Dano com " .. armamento .. " de " .. (sheet.nome or "NOME"));
end, obj);
obj._e_event28 = obj.button23:addEventListener("onClick",
function (_)
local mesa = Firecast.getMesaDe(sheet);
local danoCritico = sheet.danoCritico6 or "1d1";
danoCritico = Firecast.interpretarRolagem(danoCritico);
if sheet.buffDanoCritico ~= nil then
danoCritico = danoCritico:concatenar(sheet.buffDanoCritico);
end;
local armamento = sheet.nome6;
if armamento==nil then armamento = sheet.arma6 end;
if armamento==nil then armamento = "arma" end;
mesa.activeChat:rolarDados(danoCritico, "Dano Critico com " .. armamento .. " de " .. (sheet.nome or "NOME"));
end, obj);
obj._e_event29 = obj.button24:addEventListener("onClick",
function (_)
Dialogs.confirmYesNo("Deseja realmente apagar esse ataque?",
function (confirmado)
if confirmado then
sheet.nome6 = nil;
sheet.arma6 = nil;
sheet.tipo6 = nil;
sheet.ataque6 = nil;
sheet.ataque6a = nil;
sheet.ataque6b = nil;
sheet.dano6 = nil;
sheet.danoCritico6 = nil;
sheet.decisivo6 = nil;
sheet.multiplicador6 = nil;
sheet.categoria6 = nil;
sheet.obs6 = nil;
sheet.municao6 = nil;
sheet.alcance6 = nil;
sheet.imagemArma6 = nil;
end;
end);
end, obj);
obj._e_event30 = obj.button25:addEventListener("onClick",
function (_)
i = 1;
max = 1;
fimRolagem = false;
array = {sheet.ataque7a, sheet.ataque7b};
decisivo = sheet.decisivo7 or "20";
decisivo = tonumber(string.sub(decisivo, 1, 2));
dano = sheet.dano7 or "1d1";
dano = Firecast.interpretarRolagem(dano);
if sheet.buffDano ~= nil then
dano = dano:concatenar(sheet.buffDano);
end;
danoCritico = sheet.danoCritico7 or "1d1";
danoCritico = Firecast.interpretarRolagem(danoCritico);
if sheet.buffDanoCritico ~= nil then
danoCritico = danoCritico:concatenar(sheet.buffDanoCritico);
end;
armamento = sheet.nome7;
if armamento==nil then armamento = sheet.arma7 end;
if armamento==nil then armamento = "arma" end;
municao = tonumber(sheet.municao7);
local mesa = Firecast.getMesaDe(sheet);
while array[max]~=nil do
max = max + 1;
end;
local ataque = tonumber(array[1]) or 0;
if ataque~=nil then
rolagem = Firecast.interpretarRolagem("1d20 + " .. ataque);
if sheet.buffAtaque ~= nil then
rolagem = rolagem:concatenar(sheet.buffAtaque);
end;
mesa.activeChat:rolarDados(rolagem, "Ataque " .. i .. " com " .. armamento .. " de " .. (sheet.nome or "NOME"),
function (rolado)
pos(rolado)
end);
if municao~=nil then
sheet.municao7 = municao-max+1;
end;
end;
end, obj);
obj._e_event31 = obj.dataLink7:addEventListener("onChange",
function (_, field, oldValue, newValue)
if sheet==nil then return end;
local atk = tonumber(sheet.ataque7) or 0;
if sheet.double7 then
atk = atk - 4;
sheet.ataque7a = atk;
sheet.ataque7b = atk;
else
sheet.ataque7a = atk;
sheet.ataque7b = nil;
end;
end, obj);
obj._e_event32 = obj.button26:addEventListener("onClick",
function (_)
local mesa = Firecast.getMesaDe(sheet);
local dano = sheet.dano7 or "1d1";
dano = Firecast.interpretarRolagem(dano);
if sheet.buffDano ~= nil then
dano = dano:concatenar(sheet.buffDano);
end;
local armamento = sheet.nome7;
if armamento==nil then armamento = sheet.arma7 end;
if armamento==nil then armamento = "arma" end;
mesa.activeChat:rolarDados(dano, "Dano com " .. armamento .. " de " .. (sheet.nome or "NOME"));
end, obj);
obj._e_event33 = obj.button27:addEventListener("onClick",
function (_)
local mesa = Firecast.getMesaDe(sheet);
local danoCritico = sheet.danoCritico7 or "1d1";
danoCritico = Firecast.interpretarRolagem(danoCritico);
if sheet.buffDanoCritico ~= nil then
danoCritico = danoCritico:concatenar(sheet.buffDanoCritico);
end;
local armamento = sheet.nome7;
if armamento==nil then armamento = sheet.arma7 end;
if armamento==nil then armamento = "arma" end;
mesa.activeChat:rolarDados(danoCritico, "Dano Critico com " .. armamento .. " de " .. (sheet.nome or "NOME"));
end, obj);
obj._e_event34 = obj.button28:addEventListener("onClick",
function (_)
Dialogs.confirmYesNo("Deseja realmente apagar esse ataque?",
function (confirmado)
if confirmado then
sheet.nome7 = nil;
sheet.arma7 = nil;
sheet.tipo7 = nil;
sheet.ataque7 = nil;
sheet.ataque7a = nil;
sheet.ataque7b = nil;
sheet.dano7 = nil;
sheet.danoCritico7 = nil;
sheet.decisivo7 = nil;
sheet.multiplicador7 = nil;
sheet.categoria7 = nil;
sheet.obs7 = nil;
sheet.municao7 = nil;
sheet.alcance7 = nil;
sheet.imagemArma7 = nil;
end;
end);
end, obj);
obj._e_event35 = obj.button29:addEventListener("onClick",
function (_)
i = 1;
max = 1;
fimRolagem = false;
array = {sheet.ataque8a, sheet.ataque8b};
decisivo = sheet.decisivo8 or "20";
decisivo = tonumber(string.sub(decisivo, 1, 2));
dano = sheet.dano8 or "1d1";
dano = Firecast.interpretarRolagem(dano);
if sheet.buffDano ~= nil then
dano = dano:concatenar(sheet.buffDano);
end;
danoCritico = sheet.danoCritico8 or "1d1";
danoCritico = Firecast.interpretarRolagem(danoCritico);
if sheet.buffDanoCritico ~= nil then
danoCritico = danoCritico:concatenar(sheet.buffDanoCritico);
end;
armamento = sheet.nome8;
if armamento==nil then armamento = sheet.arma8 end;
if armamento==nil then armamento = "arma" end;
municao = tonumber(sheet.municao8);
local mesa = Firecast.getMesaDe(sheet);
while array[max]~=nil do
max = max + 1;
end;
local ataque = tonumber(array[1]) or 0;
if ataque~=nil then
rolagem = Firecast.interpretarRolagem("1d20 + " .. ataque);
if sheet.buffAtaque ~= nil then
rolagem = rolagem:concatenar(sheet.buffAtaque);
end;
mesa.activeChat:rolarDados(rolagem, "Ataque " .. i .. " com " .. armamento .. " de " .. (sheet.nome or "NOME"),
function (rolado)
pos(rolado)
end);
if municao~=nil then
sheet.municao8 = municao-max+1;
end;
end;
end, obj);
obj._e_event36 = obj.dataLink8:addEventListener("onChange",
function (_, field, oldValue, newValue)
if sheet==nil then return end;
local atk = tonumber(sheet.ataque8) or 0;
if sheet.double8 then
atk = atk - 4;
sheet.ataque8a = atk;
sheet.ataque8b = atk;
else
sheet.ataque8a = atk;
sheet.ataque8b = nil;
end;
end, obj);
obj._e_event37 = obj.button30:addEventListener("onClick",
function (_)
local mesa = Firecast.getMesaDe(sheet);
local dano = sheet.dano8 or "1d1";
dano = Firecast.interpretarRolagem(dano);
if sheet.buffDano ~= nil then
dano = dano:concatenar(sheet.buffDano);
end;
local armamento = sheet.nome8;
if armamento==nil then armamento = sheet.arma8 end;
if armamento==nil then armamento = "arma" end;
mesa.activeChat:rolarDados(dano, "Dano com " .. armamento .. " de " .. (sheet.nome or "NOME"));
end, obj);
obj._e_event38 = obj.button31:addEventListener("onClick",
function (_)
local mesa = Firecast.getMesaDe(sheet);
local danoCritico = sheet.danoCritico8 or "1d1";
danoCritico = Firecast.interpretarRolagem(danoCritico);
if sheet.buffDanoCritico ~= nil then
danoCritico = danoCritico:concatenar(sheet.buffDanoCritico);
end;
local armamento = sheet.nome8;
if armamento==nil then armamento = sheet.arma8 end;
if armamento==nil then armamento = "arma" end;
mesa.activeChat:rolarDados(danoCritico, "Dano Critico com " .. armamento .. " de " .. (sheet.nome or "NOME"));
end, obj);
obj._e_event39 = obj.button32:addEventListener("onClick",
function (_)
Dialogs.confirmYesNo("Deseja realmente apagar esse ataque?",
function (confirmado)
if confirmado then
sheet.nome8 = nil;
sheet.arma8 = nil;
sheet.tipo8 = nil;
sheet.ataque8 = nil;
sheet.ataque8a = nil;
sheet.ataque8b = nil;
sheet.dano8 = nil;
sheet.danoCritico8 = nil;
sheet.decisivo8 = nil;
sheet.multiplicador8 = nil;
sheet.categoria8 = nil;
sheet.obs8 = nil;
sheet.municao8 = nil;
sheet.alcance8 = nil;
sheet.imagemArma8 = nil;
end;
end);
end, obj);
obj._e_event40 = obj.button33:addEventListener("onClick",
function (_)
i = 1;
max = 1;
fimRolagem = false;
array = {sheet.ataque9a, sheet.ataque9b};
decisivo = sheet.decisivo9 or "20";
decisivo = tonumber(string.sub(decisivo, 1, 2));
dano = sheet.dano9 or "1d1";
dano = Firecast.interpretarRolagem(dano);
if sheet.buffDano ~= nil then
dano = dano:concatenar(sheet.buffDano);
end;
danoCritico = sheet.danoCritico9 or "1d1";
danoCritico = Firecast.interpretarRolagem(danoCritico);
if sheet.buffDanoCritico ~= nil then
danoCritico = danoCritico:concatenar(sheet.buffDanoCritico);
end;
armamento = sheet.nome9;
if armamento==nil then armamento = sheet.arma9 end;
if armamento==nil then armamento = "arma" end;
municao = tonumber(sheet.municao9);
local mesa = Firecast.getMesaDe(sheet);
while array[max]~=nil do
max = max + 1;
end;
local ataque = tonumber(array[1]) or 0;
if ataque~=nil then
rolagem = Firecast.interpretarRolagem("1d20 + " .. ataque);
if sheet.buffAtaque ~= nil then
rolagem = rolagem:concatenar(sheet.buffAtaque);
end;
mesa.activeChat:rolarDados(rolagem, "Ataque " .. i .. " com " .. armamento .. " de " .. (sheet.nome or "NOME"),
function (rolado)
pos(rolado)
end);
if municao~=nil then
sheet.municao9 = municao-max+1;
end;
end;
end, obj);
obj._e_event41 = obj.dataLink9:addEventListener("onChange",
function (_, field, oldValue, newValue)
if sheet==nil then return end;
local atk = tonumber(sheet.ataque9) or 0;
if sheet.double9 then
atk = atk - 4;
sheet.ataque9a = atk;
sheet.ataque9b = atk;
else
sheet.ataque9a = atk;
sheet.ataque9b = nil;
end;
end, obj);
obj._e_event42 = obj.button34:addEventListener("onClick",
function (_)
local mesa = Firecast.getMesaDe(sheet);
local dano = sheet.dano9 or "1d1";
dano = Firecast.interpretarRolagem(dano);
if sheet.buffDano ~= nil then
dano = dano:concatenar(sheet.buffDano);
end;
local armamento = sheet.nome9;
if armamento==nil then armamento = sheet.arma9 end;
if armamento==nil then armamento = "arma" end;
mesa.activeChat:rolarDados(dano, "Dano com " .. armamento .. " de " .. (sheet.nome or "NOME"));
end, obj);
obj._e_event43 = obj.button35:addEventListener("onClick",
function (_)
local mesa = Firecast.getMesaDe(sheet);
local danoCritico = sheet.danoCritico9 or "1d1";
danoCritico = Firecast.interpretarRolagem(danoCritico);
if sheet.buffDanoCritico ~= nil then
danoCritico = danoCritico:concatenar(sheet.buffDanoCritico);
end;
local armamento = sheet.nome9;
if armamento==nil then armamento = sheet.arma9 end;
if armamento==nil then armamento = "arma" end;
mesa.activeChat:rolarDados(danoCritico, "Dano Critico com " .. armamento .. " de " .. (sheet.nome or "NOME"));
end, obj);
obj._e_event44 = obj.button36:addEventListener("onClick",
function (_)
Dialogs.confirmYesNo("Deseja realmente apagar esse ataque?",
function (confirmado)
if confirmado then
sheet.nome9 = nil;
sheet.arma9 = nil;
sheet.tipo9 = nil;
sheet.ataque9 = nil;
sheet.ataque9a = nil;
sheet.ataque9b = nil;
sheet.dano9 = nil;
sheet.danoCritico9 = nil;
sheet.decisivo9 = nil;
sheet.multiplicador9 = nil;
sheet.categoria9 = nil;
sheet.obs9 = nil;
sheet.municao9 = nil;
sheet.alcance9 = nil;
sheet.imagemArma9 = nil;
end;
end);
end, obj);
obj._e_event45 = obj.button37:addEventListener("onClick",
function (_)
i = 1;
max = 1;
fimRolagem = false;
array = {sheet.ataque10a, sheet.ataque10b};
decisivo = sheet.decisivo10 or "20";
decisivo = tonumber(string.sub(decisivo, 1, 2));
dano = sheet.dano10 or "1d1";
dano = Firecast.interpretarRolagem(dano);
if sheet.buffDano ~= nil then
dano = dano:concatenar(sheet.buffDano);
end;
danoCritico = sheet.danoCritico10 or "1d1";
danoCritico = Firecast.interpretarRolagem(danoCritico);
if sheet.buffDanoCritico ~= nil then
danoCritico = danoCritico:concatenar(sheet.buffDanoCritico);
end;
armamento = sheet.nome10;
if armamento==nil then armamento = sheet.arma10 end;
if armamento==nil then armamento = "arma" end;
municao = tonumber(sheet.municao10);
local mesa = Firecast.getMesaDe(sheet);
while array[max]~=nil do
max = max + 1;
end;
local ataque = tonumber(array[1]) or 0;
if ataque~=nil then
rolagem = Firecast.interpretarRolagem("1d20 + " .. ataque);
if sheet.buffAtaque ~= nil then
rolagem = rolagem:concatenar(sheet.buffAtaque);
end;
mesa.activeChat:rolarDados(rolagem, "Ataque " .. i .. " com " .. armamento .. " de " .. (sheet.nome or "NOME"),
function (rolado)
pos(rolado)
end);
if municao~=nil then
sheet.municao10 = municao-max+1;
end;
end;
end, obj);
obj._e_event46 = obj.dataLink10:addEventListener("onChange",
function (_, field, oldValue, newValue)
if sheet==nil then return end;
local atk = tonumber(sheet.ataque10) or 0;
if sheet.double10 then
atk = atk - 4;
sheet.ataque10a = atk;
sheet.ataque10b = atk;
else
sheet.ataque10a = atk;
sheet.ataque10b = nil;
end;
end, obj);
obj._e_event47 = obj.button38:addEventListener("onClick",
function (_)
local mesa = Firecast.getMesaDe(sheet);
local dano = sheet.dano10 or "1d1";
dano = Firecast.interpretarRolagem(dano);
if sheet.buffDano ~= nil then
dano = dano:concatenar(sheet.buffDano);
end;
local armamento = sheet.nome10;
if armamento==nil then armamento = sheet.arma10 end;
if armamento==nil then armamento = "arma" end;
mesa.activeChat:rolarDados(dano, "Dano com " .. armamento .. " de " .. (sheet.nome or "NOME"));
end, obj);
obj._e_event48 = obj.button39:addEventListener("onClick",
function (_)
local mesa = Firecast.getMesaDe(sheet);
local danoCritico = sheet.danoCritico10 or "1d1";
danoCritico = Firecast.interpretarRolagem(danoCritico);
if sheet.buffDanoCritico ~= nil then
danoCritico = danoCritico:concatenar(sheet.buffDanoCritico);
end;
local armamento = sheet.nome10;
if armamento==nil then armamento = sheet.arma10 end;
if armamento==nil then armamento = "arma" end;
mesa.activeChat:rolarDados(danoCritico, "Dano Critico com " .. armamento .. " de " .. (sheet.nome or "NOME"));
end, obj);
obj._e_event49 = obj.button40:addEventListener("onClick",
function (_)
Dialogs.confirmYesNo("Deseja realmente apagar esse ataque?",
function (confirmado)
if confirmado then
sheet.nome10 = nil;
sheet.arma10 = nil;
sheet.tipo10 = nil;
sheet.ataque10 = nil;
sheet.ataque10a = nil;
sheet.ataque10b = nil;
sheet.dano10 = nil;
sheet.danoCritico10 = nil;
sheet.decisivo10 = nil;
sheet.multiplicador10 = nil;
sheet.categoria10 = nil;
sheet.obs10 = nil;
sheet.municao10 = nil;
sheet.alcance10 = nil;
sheet.imagemArma10 = nil;
end;
end);
end, obj);
obj._e_event50 = obj.button41:addEventListener("onClick",
function (_)
i = 1;
max = 1;
fimRolagem = false;
array = {sheet.ataque11a, sheet.ataque11b};
decisivo = sheet.decisivo11 or "20";
decisivo = tonumber(string.sub(decisivo, 1, 2));
dano = sheet.dano11 or "1d1";
dano = Firecast.interpretarRolagem(dano);
if sheet.buffDano ~= nil then
dano = dano:concatenar(sheet.buffDano);
end;
danoCritico = sheet.danoCritico11 or "1d1";
danoCritico = Firecast.interpretarRolagem(danoCritico);
if sheet.buffDanoCritico ~= nil then
danoCritico = danoCritico:concatenar(sheet.buffDanoCritico);
end;
armamento = sheet.nome11;
if armamento==nil then armamento = sheet.arma11 end;
if armamento==nil then armamento = "arma" end;
municao = tonumber(sheet.municao11);
local mesa = Firecast.getMesaDe(sheet);
while array[max]~=nil do
max = max + 1;
end;
local ataque = tonumber(array[1]) or 0;
if ataque~=nil then
rolagem = Firecast.interpretarRolagem("1d20 + " .. ataque);
if sheet.buffAtaque ~= nil then
rolagem = rolagem:concatenar(sheet.buffAtaque);
end;
mesa.activeChat:rolarDados(rolagem, "Ataque " .. i .. " com " .. armamento .. " de " .. (sheet.nome or "NOME"),
function (rolado)
pos(rolado)
end);
if municao~=nil then
sheet.municao11 = municao-max+1;
end;
end;
end, obj);
obj._e_event51 = obj.dataLink11:addEventListener("onChange",
function (_, field, oldValue, newValue)
if sheet==nil then return end;
local atk = tonumber(sheet.ataque11) or 0;
if sheet.double11 then
atk = atk - 4;
sheet.ataque11a = atk;
sheet.ataque11b = atk;
else
sheet.ataque11a = atk;
sheet.ataque11b = nil;
end;
end, obj);
obj._e_event52 = obj.button42:addEventListener("onClick",
function (_)
local mesa = Firecast.getMesaDe(sheet);
local dano = sheet.dano11 or "1d1";
dano = Firecast.interpretarRolagem(dano);
if sheet.buffDano ~= nil then
dano = dano:concatenar(sheet.buffDano);
end;
local armamento = sheet.nome11;
if armamento==nil then armamento = sheet.arma11 end;
if armamento==nil then armamento = "arma" end;
mesa.activeChat:rolarDados(dano, "Dano com " .. armamento .. " de " .. (sheet.nome or "NOME"));
end, obj);
obj._e_event53 = obj.button43:addEventListener("onClick",
function (_)
local mesa = Firecast.getMesaDe(sheet);
local danoCritico = sheet.danoCritico11 or "1d1";
danoCritico = Firecast.interpretarRolagem(danoCritico);
if sheet.buffDanoCritico ~= nil then
danoCritico = danoCritico:concatenar(sheet.buffDanoCritico);
end;
local armamento = sheet.nome11;
if armamento==nil then armamento = sheet.arma11 end;
if armamento==nil then armamento = "arma" end;
mesa.activeChat:rolarDados(danoCritico, "Dano Critico com " .. armamento .. " de " .. (sheet.nome or "NOME"));
end, obj);
obj._e_event54 = obj.button44:addEventListener("onClick",
function (_)
Dialogs.confirmYesNo("Deseja realmente apagar esse ataque?",
function (confirmado)
if confirmado then
sheet.nome11 = nil;
sheet.arma11 = nil;
sheet.tipo11 = nil;
sheet.ataque11 = nil;
sheet.ataque11a = nil;
sheet.ataque11b = nil;
sheet.dano11 = nil;
sheet.danoCritico11 = nil;
sheet.decisivo11 = nil;
sheet.multiplicador11 = nil;
sheet.categoria11 = nil;
sheet.obs11 = nil;
sheet.municao11 = nil;
sheet.alcance11 = nil;
sheet.imagemArma11 = nil;
end;
end);
end, obj);
obj._e_event55 = obj.button45:addEventListener("onClick",
function (_)
i = 1;
max = 1;
fimRolagem = false;
array = {sheet.ataque12a, sheet.ataque12b};
decisivo = sheet.decisivo12 or "20";
decisivo = tonumber(string.sub(decisivo, 1, 2));
dano = sheet.dano12 or "1d1";
dano = Firecast.interpretarRolagem(dano);
if sheet.buffDano ~= nil then
dano = dano:concatenar(sheet.buffDano);
end;
danoCritico = sheet.danoCritico12 or "1d1";
danoCritico = Firecast.interpretarRolagem(danoCritico);
if sheet.buffDanoCritico ~= nil then
danoCritico = danoCritico:concatenar(sheet.buffDanoCritico);
end;
armamento = sheet.nome12;
if armamento==nil then armamento = sheet.arma12 end;
if armamento==nil then armamento = "arma" end;
municao = tonumber(sheet.municao12);
local mesa = Firecast.getMesaDe(sheet);
while array[max]~=nil do
max = max + 1;
end;
local ataque = tonumber(array[1]) or 0;
if ataque~=nil then
rolagem = Firecast.interpretarRolagem("1d20 + " .. ataque);
if sheet.buffAtaque ~= nil then
rolagem = rolagem:concatenar(sheet.buffAtaque);
end;
mesa.activeChat:rolarDados(rolagem, "Ataque " .. i .. " com " .. armamento .. " de " .. (sheet.nome or "NOME"),
function (rolado)
pos(rolado)
end);
if municao~=nil then
sheet.municao12 = municao-max+1;
end;
end;
end, obj);
obj._e_event56 = obj.dataLink12:addEventListener("onChange",
function (_, field, oldValue, newValue)
if sheet==nil then return end;
local atk = tonumber(sheet.ataque12) or 0;
if sheet.double12 then
atk = atk - 4;
sheet.ataque12a = atk;
sheet.ataque12b = atk;
else
sheet.ataque12a = atk;
sheet.ataque12b = nil;
end;
end, obj);
obj._e_event57 = obj.button46:addEventListener("onClick",
function (_)
local mesa = Firecast.getMesaDe(sheet);
local dano = sheet.dano12 or "1d1";
dano = Firecast.interpretarRolagem(dano);
if sheet.buffDano ~= nil then
dano = dano:concatenar(sheet.buffDano);
end;
local armamento = sheet.nome12;
if armamento==nil then armamento = sheet.arma12 end;
if armamento==nil then armamento = "arma" end;
mesa.activeChat:rolarDados(dano, "Dano com " .. armamento .. " de " .. (sheet.nome or "NOME"));
end, obj);
obj._e_event58 = obj.button47:addEventListener("onClick",
function (_)
local mesa = Firecast.getMesaDe(sheet);
local danoCritico = sheet.danoCritico12 or "1d1";
danoCritico = Firecast.interpretarRolagem(danoCritico);
if sheet.buffDanoCritico ~= nil then
danoCritico = danoCritico:concatenar(sheet.buffDanoCritico);
end;
local armamento = sheet.nome12;
if armamento==nil then armamento = sheet.arma12 end;
if armamento==nil then armamento = "arma" end;
mesa.activeChat:rolarDados(danoCritico, "Dano Critico com " .. armamento .. " de " .. (sheet.nome or "NOME"));
end, obj);
obj._e_event59 = obj.button48:addEventListener("onClick",
function (_)
Dialogs.confirmYesNo("Deseja realmente apagar esse ataque?",
function (confirmado)
if confirmado then
sheet.nome12 = nil;
sheet.arma12 = nil;
sheet.tipo12 = nil;
sheet.ataque12 = nil;
sheet.ataque12a = nil;
sheet.ataque12b = nil;
sheet.dano12 = nil;
sheet.danoCritico12 = nil;
sheet.decisivo12 = nil;
sheet.multiplicador12 = nil;
sheet.categoria12 = nil;
sheet.obs12 = nil;
sheet.municao12 = nil;
sheet.alcance12 = nil;
sheet.imagemArma12 = nil;
end;
end);
end, obj);
obj._e_event60 = obj.button49:addEventListener("onClick",
function (_)
i = 1;
max = 1;
fimRolagem = false;
array = {sheet.ataque13a, sheet.ataque13b};
decisivo = sheet.decisivo13 or "20";
decisivo = tonumber(string.sub(decisivo, 1, 2));
dano = sheet.dano13 or "1d1";
dano = Firecast.interpretarRolagem(dano);
if sheet.buffDano ~= nil then
dano = dano:concatenar(sheet.buffDano);
end;
danoCritico = sheet.danoCritico13 or "1d1";
danoCritico = Firecast.interpretarRolagem(danoCritico);
if sheet.buffDanoCritico ~= nil then
danoCritico = danoCritico:concatenar(sheet.buffDanoCritico);
end;
armamento = sheet.nome13;
if armamento==nil then armamento = sheet.arma13 end;
if armamento==nil then armamento = "arma" end;
municao = tonumber(sheet.municao13);
local mesa = Firecast.getMesaDe(sheet);
while array[max]~=nil do
max = max + 1;
end;
local ataque = tonumber(array[1]) or 0;
if ataque~=nil then
rolagem = Firecast.interpretarRolagem("1d20 + " .. ataque);
if sheet.buffAtaque ~= nil then
rolagem = rolagem:concatenar(sheet.buffAtaque);
end;
mesa.activeChat:rolarDados(rolagem, "Ataque " .. i .. " com " .. armamento .. " de " .. (sheet.nome or "NOME"),
function (rolado)
pos(rolado)
end);
if municao~=nil then
sheet.municao13 = municao-max+1;
end;
end;
end, obj);
obj._e_event61 = obj.dataLink13:addEventListener("onChange",
function (_, field, oldValue, newValue)
if sheet==nil then return end;
local atk = tonumber(sheet.ataque13) or 0;
if sheet.double13 then
atk = atk - 4;
sheet.ataque13a = atk;
sheet.ataque13b = atk;
else
sheet.ataque13a = atk;
sheet.ataque13b = nil;
end;
end, obj);
obj._e_event62 = obj.button50:addEventListener("onClick",
function (_)
local mesa = Firecast.getMesaDe(sheet);
local dano = sheet.dano13 or "1d1";
dano = Firecast.interpretarRolagem(dano);
if sheet.buffDano ~= nil then
dano = dano:concatenar(sheet.buffDano);
end;
local armamento = sheet.nome13;
if armamento==nil then armamento = sheet.arma13 end;
if armamento==nil then armamento = "arma" end;
mesa.activeChat:rolarDados(dano, "Dano com " .. armamento .. " de " .. (sheet.nome or "NOME"));
end, obj);
obj._e_event63 = obj.button51:addEventListener("onClick",
function (_)
local mesa = Firecast.getMesaDe(sheet);
local danoCritico = sheet.danoCritico13 or "1d1";
danoCritico = Firecast.interpretarRolagem(danoCritico);
if sheet.buffDanoCritico ~= nil then
danoCritico = danoCritico:concatenar(sheet.buffDanoCritico);
end;
local armamento = sheet.nome13;
if armamento==nil then armamento = sheet.arma13 end;
if armamento==nil then armamento = "arma" end;
mesa.activeChat:rolarDados(danoCritico, "Dano Critico com " .. armamento .. " de " .. (sheet.nome or "NOME"));
end, obj);
obj._e_event64 = obj.button52:addEventListener("onClick",
function (_)
Dialogs.confirmYesNo("Deseja realmente apagar esse ataque?",
function (confirmado)
if confirmado then
sheet.nome13 = nil;
sheet.arma13 = nil;
sheet.tipo13 = nil;
sheet.ataque13 = nil;
sheet.ataque13a = nil;
sheet.ataque13b = nil;
sheet.dano13 = nil;
sheet.danoCritico13 = nil;
sheet.decisivo13 = nil;
sheet.multiplicador13 = nil;
sheet.categoria13 = nil;
sheet.obs13 = nil;
sheet.municao13 = nil;
sheet.alcance13 = nil;
sheet.imagemArma13 = nil;
end;
end);
end, obj);
obj._e_event65 = obj.button53:addEventListener("onClick",
function (_)
i = 1;
max = 1;
fimRolagem = false;
array = {sheet.ataque14a, sheet.ataque14b};
decisivo = sheet.decisivo14 or "20";
decisivo = tonumber(string.sub(decisivo, 1, 2));
dano = sheet.dano14 or "1d1";
dano = Firecast.interpretarRolagem(dano);
if sheet.buffDano ~= nil then
dano = dano:concatenar(sheet.buffDano);
end;
danoCritico = sheet.danoCritico14 or "1d1";
danoCritico = Firecast.interpretarRolagem(danoCritico);
if sheet.buffDanoCritico ~= nil then
danoCritico = danoCritico:concatenar(sheet.buffDanoCritico);
end;
armamento = sheet.nome14;
if armamento==nil then armamento = sheet.arma14 end;
if armamento==nil then armamento = "arma" end;
municao = tonumber(sheet.municao14);
local mesa = Firecast.getMesaDe(sheet);
while array[max]~=nil do
max = max + 1;
end;
local ataque = tonumber(array[1]) or 0;
if ataque~=nil then
rolagem = Firecast.interpretarRolagem("1d20 + " .. ataque);
if sheet.buffAtaque ~= nil then
rolagem = rolagem:concatenar(sheet.buffAtaque);
end;
mesa.activeChat:rolarDados(rolagem, "Ataque " .. i .. " com " .. armamento .. " de " .. (sheet.nome or "NOME"),
function (rolado)
pos(rolado)
end);
if municao~=nil then
sheet.municao14 = municao-max+1;
end;
end;
end, obj);
obj._e_event66 = obj.dataLink14:addEventListener("onChange",
function (_, field, oldValue, newValue)
if sheet==nil then return end;
local atk = tonumber(sheet.ataque14) or 0;
if sheet.double14 then
atk = atk - 4;
sheet.ataque14a = atk;
sheet.ataque14b = atk;
else
sheet.ataque14a = atk;
sheet.ataque14b = nil;
end;
end, obj);
obj._e_event67 = obj.button54:addEventListener("onClick",
function (_)
local mesa = Firecast.getMesaDe(sheet);
local dano = sheet.dano14 or "1d1";
dano = Firecast.interpretarRolagem(dano);
if sheet.buffDano ~= nil then
dano = dano:concatenar(sheet.buffDano);
end;
local armamento = sheet.nome14;
if armamento==nil then armamento = sheet.arma14 end;
if armamento==nil then armamento = "arma" end;
mesa.activeChat:rolarDados(dano, "Dano com " .. armamento .. " de " .. (sheet.nome or "NOME"));
end, obj);
obj._e_event68 = obj.button55:addEventListener("onClick",
function (_)
local mesa = Firecast.getMesaDe(sheet);
local danoCritico = sheet.danoCritico14 or "1d1";
danoCritico = Firecast.interpretarRolagem(danoCritico);
if sheet.buffDanoCritico ~= nil then
danoCritico = danoCritico:concatenar(sheet.buffDanoCritico);
end;
local armamento = sheet.nome14;
if armamento==nil then armamento = sheet.arma14 end;
if armamento==nil then armamento = "arma" end;
mesa.activeChat:rolarDados(danoCritico, "Dano Critico com " .. armamento .. " de " .. (sheet.nome or "NOME"));
end, obj);
obj._e_event69 = obj.button56:addEventListener("onClick",
function (_)
Dialogs.confirmYesNo("Deseja realmente apagar esse ataque?",
function (confirmado)
if confirmado then
sheet.nome14 = nil;
sheet.arma14 = nil;
sheet.tipo14 = nil;
sheet.ataque14 = nil;
sheet.ataque14a = nil;
sheet.ataque14b = nil;
sheet.dano14 = nil;
sheet.danoCritico14 = nil;
sheet.decisivo14 = nil;
sheet.multiplicador14 = nil;
sheet.categoria14 = nil;
sheet.obs14 = nil;
sheet.municao14 = nil;
sheet.alcance14 = nil;
sheet.imagemArma14 = nil;
end;
end);
end, obj);
obj._e_event70 = obj.button57:addEventListener("onClick",
function (_)
i = 1;
max = 1;
fimRolagem = false;
array = {sheet.ataque15a, sheet.ataque15b};
decisivo = sheet.decisivo15 or "20";
decisivo = tonumber(string.sub(decisivo, 1, 2));
dano = sheet.dano15 or "1d1";
dano = Firecast.interpretarRolagem(dano);
if sheet.buffDano ~= nil then
dano = dano:concatenar(sheet.buffDano);
end;
danoCritico = sheet.danoCritico15 or "1d1";
danoCritico = Firecast.interpretarRolagem(danoCritico);
if sheet.buffDanoCritico ~= nil then
danoCritico = danoCritico:concatenar(sheet.buffDanoCritico);
end;
armamento = sheet.nome15;
if armamento==nil then armamento = sheet.arma15 end;
if armamento==nil then armamento = "arma" end;
municao = tonumber(sheet.municao15);
local mesa = Firecast.getMesaDe(sheet);
while array[max]~=nil do
max = max + 1;
end;
local ataque = tonumber(array[1]) or 0;
if ataque~=nil then
rolagem = Firecast.interpretarRolagem("1d20 + " .. ataque);
if sheet.buffAtaque ~= nil then
rolagem = rolagem:concatenar(sheet.buffAtaque);
end;
mesa.activeChat:rolarDados(rolagem, "Ataque " .. i .. " com " .. armamento .. " de " .. (sheet.nome or "NOME"),
function (rolado)
pos(rolado)
end);
if municao~=nil then
sheet.municao15 = municao-max+1;
end;
end;
end, obj);
obj._e_event71 = obj.dataLink15:addEventListener("onChange",
function (_, field, oldValue, newValue)
if sheet==nil then return end;
local atk = tonumber(sheet.ataque15) or 0;
if sheet.double15 then
atk = atk - 4;
sheet.ataque15a = atk;
sheet.ataque15b = atk;
else
sheet.ataque15a = atk;
sheet.ataque15b = nil;
end;
end, obj);
obj._e_event72 = obj.button58:addEventListener("onClick",
function (_)
local mesa = Firecast.getMesaDe(sheet);
local dano = sheet.dano15 or "1d1";
dano = Firecast.interpretarRolagem(dano);
if sheet.buffDano ~= nil then
dano = dano:concatenar(sheet.buffDano);
end;
local armamento = sheet.nome15;
if armamento==nil then armamento = sheet.arma15 end;
if armamento==nil then armamento = "arma" end;
mesa.activeChat:rolarDados(dano, "Dano com " .. armamento .. " de " .. (sheet.nome or "NOME"));
end, obj);
obj._e_event73 = obj.button59:addEventListener("onClick",
function (_)
local mesa = Firecast.getMesaDe(sheet);
local danoCritico = sheet.danoCritico15 or "1d1";
danoCritico = Firecast.interpretarRolagem(danoCritico);
if sheet.buffDanoCritico ~= nil then
danoCritico = danoCritico:concatenar(sheet.buffDanoCritico);
end;
local armamento = sheet.nome15;
if armamento==nil then armamento = sheet.arma15 end;
if armamento==nil then armamento = "arma" end;
mesa.activeChat:rolarDados(danoCritico, "Dano Critico com " .. armamento .. " de " .. (sheet.nome or "NOME"));
end, obj);
obj._e_event74 = obj.button60:addEventListener("onClick",
function (_)
Dialogs.confirmYesNo("Deseja realmente apagar esse ataque?",
function (confirmado)
if confirmado then
sheet.nome15 = nil;
sheet.arma15 = nil;
sheet.tipo15 = nil;
sheet.ataque15 = nil;
sheet.ataque15a = nil;
sheet.ataque15b = nil;
sheet.dano15 = nil;
sheet.danoCritico15 = nil;
sheet.decisivo15 = nil;
sheet.multiplicador15 = nil;
sheet.categoria15 = nil;
sheet.obs15 = nil;
sheet.municao15 = nil;
sheet.alcance15 = nil;
sheet.imagemArma15 = nil;
end;
end);
end, obj);
obj._e_event75 = obj.button61:addEventListener("onClick",
function (_)
i = 1;
max = 1;
fimRolagem = false;
array = {sheet.ataque16a, sheet.ataque16b};
decisivo = sheet.decisivo16 or "20";
decisivo = tonumber(string.sub(decisivo, 1, 2));
dano = sheet.dano16 or "1d1";
dano = Firecast.interpretarRolagem(dano);
if sheet.buffDano ~= nil then
dano = dano:concatenar(sheet.buffDano);
end;
danoCritico = sheet.danoCritico16 or "1d1";
danoCritico = Firecast.interpretarRolagem(danoCritico);
if sheet.buffDanoCritico ~= nil then
danoCritico = danoCritico:concatenar(sheet.buffDanoCritico);
end;
armamento = sheet.nome16;
if armamento==nil then armamento = sheet.arma16 end;
if armamento==nil then armamento = "arma" end;
municao = tonumber(sheet.municao16);
local mesa = Firecast.getMesaDe(sheet);
while array[max]~=nil do
max = max + 1;
end;
local ataque = tonumber(array[1]) or 0;
if ataque~=nil then
rolagem = Firecast.interpretarRolagem("1d20 + " .. ataque);
if sheet.buffAtaque ~= nil then
rolagem = rolagem:concatenar(sheet.buffAtaque);
end;
mesa.activeChat:rolarDados(rolagem, "Ataque " .. i .. " com " .. armamento .. " de " .. (sheet.nome or "NOME"),
function (rolado)
pos(rolado)
end);
if municao~=nil then
sheet.municao16 = municao-max+1;
end;
end;
end, obj);
obj._e_event76 = obj.dataLink16:addEventListener("onChange",
function (_, field, oldValue, newValue)
if sheet==nil then return end;
local atk = tonumber(sheet.ataque16) or 0;
if sheet.double16 then
atk = atk - 4;
sheet.ataque16a = atk;
sheet.ataque16b = atk;
else
sheet.ataque16a = atk;
sheet.ataque16b = nil;
end;
end, obj);
obj._e_event77 = obj.button62:addEventListener("onClick",
function (_)
local mesa = Firecast.getMesaDe(sheet);
local dano = sheet.dano16 or "1d1";
dano = Firecast.interpretarRolagem(dano);
if sheet.buffDano ~= nil then
dano = dano:concatenar(sheet.buffDano);
end;
local armamento = sheet.nome16;
if armamento==nil then armamento = sheet.arma16 end;
if armamento==nil then armamento = "arma" end;
mesa.activeChat:rolarDados(dano, "Dano com " .. armamento .. " de " .. (sheet.nome or "NOME"));
end, obj);
obj._e_event78 = obj.button63:addEventListener("onClick",
function (_)
local mesa = Firecast.getMesaDe(sheet);
local danoCritico = sheet.danoCritico16 or "1d1";
danoCritico = Firecast.interpretarRolagem(danoCritico);
if sheet.buffDanoCritico ~= nil then
danoCritico = danoCritico:concatenar(sheet.buffDanoCritico);
end;
local armamento = sheet.nome16;
if armamento==nil then armamento = sheet.arma16 end;
if armamento==nil then armamento = "arma" end;
mesa.activeChat:rolarDados(danoCritico, "Dano Critico com " .. armamento .. " de " .. (sheet.nome or "NOME"));
end, obj);
obj._e_event79 = obj.button64:addEventListener("onClick",
function (_)
Dialogs.confirmYesNo("Deseja realmente apagar esse ataque?",
function (confirmado)
if confirmado then
sheet.nome16 = nil;
sheet.arma16 = nil;
sheet.tipo16 = nil;
sheet.ataque16 = nil;
sheet.ataque16a = nil;
sheet.ataque16b = nil;
sheet.dano16 = nil;
sheet.danoCritico16 = nil;
sheet.decisivo16 = nil;
sheet.multiplicador16 = nil;
sheet.categoria16 = nil;
sheet.obs16 = nil;
sheet.municao16 = nil;
sheet.alcance16 = nil;
sheet.imagemArma16 = nil;
end;
end);
end, obj);
obj._e_event80 = obj.button65:addEventListener("onClick",
function (_)
i = 1;
max = 1;
fimRolagem = false;
array = {sheet.ataque17a, sheet.ataque17b};
decisivo = sheet.decisivo17 or "20";
decisivo = tonumber(string.sub(decisivo, 1, 2));
dano = sheet.dano17 or "1d1";
dano = Firecast.interpretarRolagem(dano);
if sheet.buffDano ~= nil then
dano = dano:concatenar(sheet.buffDano);
end;
danoCritico = sheet.danoCritico17 or "1d1";
danoCritico = Firecast.interpretarRolagem(danoCritico);
if sheet.buffDanoCritico ~= nil then
danoCritico = danoCritico:concatenar(sheet.buffDanoCritico);
end;
armamento = sheet.nome17;
if armamento==nil then armamento = sheet.arma17 end;
if armamento==nil then armamento = "arma" end;
municao = tonumber(sheet.municao17);
local mesa = Firecast.getMesaDe(sheet);
while array[max]~=nil do
max = max + 1;
end;
local ataque = tonumber(array[1]) or 0;
if ataque~=nil then
rolagem = Firecast.interpretarRolagem("1d20 + " .. ataque);
if sheet.buffAtaque ~= nil then
rolagem = rolagem:concatenar(sheet.buffAtaque);
end;
mesa.activeChat:rolarDados(rolagem, "Ataque " .. i .. " com " .. armamento .. " de " .. (sheet.nome or "NOME"),
function (rolado)
pos(rolado)
end);
if municao~=nil then
sheet.municao17 = municao-max+1;
end;
end;
end, obj);
obj._e_event81 = obj.dataLink17:addEventListener("onChange",
function (_, field, oldValue, newValue)
if sheet==nil then return end;
local atk = tonumber(sheet.ataque17) or 0;
if sheet.double17 then
atk = atk - 4;
sheet.ataque17a = atk;
sheet.ataque17b = atk;
else
sheet.ataque17a = atk;
sheet.ataque17b = nil;
end;
end, obj);
obj._e_event82 = obj.button66:addEventListener("onClick",
function (_)
local mesa = Firecast.getMesaDe(sheet);
local dano = sheet.dano17 or "1d1";
dano = Firecast.interpretarRolagem(dano);
if sheet.buffDano ~= nil then
dano = dano:concatenar(sheet.buffDano);
end;
local armamento = sheet.nome17;
if armamento==nil then armamento = sheet.arma17 end;
if armamento==nil then armamento = "arma" end;
mesa.activeChat:rolarDados(dano, "Dano com " .. armamento .. " de " .. (sheet.nome or "NOME"));
end, obj);
obj._e_event83 = obj.button67:addEventListener("onClick",
function (_)
local mesa = Firecast.getMesaDe(sheet);
local danoCritico = sheet.danoCritico17 or "1d1";
danoCritico = Firecast.interpretarRolagem(danoCritico);
if sheet.buffDanoCritico ~= nil then
danoCritico = danoCritico:concatenar(sheet.buffDanoCritico);
end;
local armamento = sheet.nome17;
if armamento==nil then armamento = sheet.arma17 end;
if armamento==nil then armamento = "arma" end;
mesa.activeChat:rolarDados(danoCritico, "Dano Critico com " .. armamento .. " de " .. (sheet.nome or "NOME"));
end, obj);
obj._e_event84 = obj.button68:addEventListener("onClick",
function (_)
Dialogs.confirmYesNo("Deseja realmente apagar esse ataque?",
function (confirmado)
if confirmado then
sheet.nome17 = nil;
sheet.arma17 = nil;
sheet.tipo17 = nil;
sheet.ataque17 = nil;
sheet.ataque17a = nil;
sheet.ataque17b = nil;
sheet.dano17 = nil;
sheet.danoCritico17 = nil;
sheet.decisivo17 = nil;
sheet.multiplicador17 = nil;
sheet.categoria17 = nil;
sheet.obs17 = nil;
sheet.municao17 = nil;
sheet.alcance17 = nil;
sheet.imagemArma17 = nil;
end;
end);
end, obj);
obj._e_event85 = obj.button69:addEventListener("onClick",
function (_)
i = 1;
max = 1;
fimRolagem = false;
array = {sheet.ataque18a, sheet.ataque18b};
decisivo = sheet.decisivo18 or "20";
decisivo = tonumber(string.sub(decisivo, 1, 2));
dano = sheet.dano18 or "1d1";
dano = Firecast.interpretarRolagem(dano);
if sheet.buffDano ~= nil then
dano = dano:concatenar(sheet.buffDano);
end;
danoCritico = sheet.danoCritico18 or "1d1";
danoCritico = Firecast.interpretarRolagem(danoCritico);
if sheet.buffDanoCritico ~= nil then
danoCritico = danoCritico:concatenar(sheet.buffDanoCritico);
end;
armamento = sheet.nome18;
if armamento==nil then armamento = sheet.arma18 end;
if armamento==nil then armamento = "arma" end;
municao = tonumber(sheet.municao18);
local mesa = Firecast.getMesaDe(sheet);
while array[max]~=nil do
max = max + 1;
end;
local ataque = tonumber(array[1]) or 0;
if ataque~=nil then
rolagem = Firecast.interpretarRolagem("1d20 + " .. ataque);
if sheet.buffAtaque ~= nil then
rolagem = rolagem:concatenar(sheet.buffAtaque);
end;
mesa.activeChat:rolarDados(rolagem, "Ataque " .. i .. " com " .. armamento .. " de " .. (sheet.nome or "NOME"),
function (rolado)
pos(rolado)
end);
if municao~=nil then
sheet.municao18 = municao-max+1;
end;
end;
end, obj);
obj._e_event86 = obj.dataLink18:addEventListener("onChange",
function (_, field, oldValue, newValue)
if sheet==nil then return end;
local atk = tonumber(sheet.ataque18) or 0;
if sheet.double18 then
atk = atk - 4;
sheet.ataque18a = atk;
sheet.ataque18b = atk;
else
sheet.ataque18a = atk;
sheet.ataque18b = nil;
end;
end, obj);
obj._e_event87 = obj.button70:addEventListener("onClick",
function (_)
local mesa = Firecast.getMesaDe(sheet);
local dano = sheet.dano18 or "1d1";
dano = Firecast.interpretarRolagem(dano);
if sheet.buffDano ~= nil then
dano = dano:concatenar(sheet.buffDano);
end;
local armamento = sheet.nome18;
if armamento==nil then armamento = sheet.arma18 end;
if armamento==nil then armamento = "arma" end;
mesa.activeChat:rolarDados(dano, "Dano com " .. armamento .. " de " .. (sheet.nome or "NOME"));
end, obj);
obj._e_event88 = obj.button71:addEventListener("onClick",
function (_)
local mesa = Firecast.getMesaDe(sheet);
local danoCritico = sheet.danoCritico18 or "1d1";
danoCritico = Firecast.interpretarRolagem(danoCritico);
if sheet.buffDanoCritico ~= nil then
danoCritico = danoCritico:concatenar(sheet.buffDanoCritico);
end;
local armamento = sheet.nome18;
if armamento==nil then armamento = sheet.arma18 end;
if armamento==nil then armamento = "arma" end;
mesa.activeChat:rolarDados(danoCritico, "Dano Critico com " .. armamento .. " de " .. (sheet.nome or "NOME"));
end, obj);
obj._e_event89 = obj.button72:addEventListener("onClick",
function (_)
Dialogs.confirmYesNo("Deseja realmente apagar esse ataque?",
function (confirmado)
if confirmado then
sheet.nome18 = nil;
sheet.arma18 = nil;
sheet.tipo18 = nil;
sheet.ataque18 = nil;
sheet.ataque18a = nil;
sheet.ataque18b = nil;
sheet.dano18 = nil;
sheet.danoCritico18 = nil;
sheet.decisivo18 = nil;
sheet.multiplicador18 = nil;
sheet.categoria18 = nil;
sheet.obs18 = nil;
sheet.municao18 = nil;
sheet.alcance18 = nil;
sheet.imagemArma18 = nil;
end;
end);
end, obj);
obj._e_event90 = obj.button73:addEventListener("onClick",
function (_)
i = 1;
max = 1;
fimRolagem = false;
array = {sheet.ataque19a, sheet.ataque19b};
decisivo = sheet.decisivo19 or "20";
decisivo = tonumber(string.sub(decisivo, 1, 2));
dano = sheet.dano19 or "1d1";
dano = Firecast.interpretarRolagem(dano);
if sheet.buffDano ~= nil then
dano = dano:concatenar(sheet.buffDano);
end;
danoCritico = sheet.danoCritico19 or "1d1";
danoCritico = Firecast.interpretarRolagem(danoCritico);
if sheet.buffDanoCritico ~= nil then
danoCritico = danoCritico:concatenar(sheet.buffDanoCritico);
end;
armamento = sheet.nome19;
if armamento==nil then armamento = sheet.arma19 end;
if armamento==nil then armamento = "arma" end;
municao = tonumber(sheet.municao19);
local mesa = Firecast.getMesaDe(sheet);
while array[max]~=nil do
max = max + 1;
end;
local ataque = tonumber(array[1]) or 0;
if ataque~=nil then
rolagem = Firecast.interpretarRolagem("1d20 + " .. ataque);
if sheet.buffAtaque ~= nil then
rolagem = rolagem:concatenar(sheet.buffAtaque);
end;
mesa.activeChat:rolarDados(rolagem, "Ataque " .. i .. " com " .. armamento .. " de " .. (sheet.nome or "NOME"),
function (rolado)
pos(rolado)
end);
if municao~=nil then
sheet.municao19 = municao-max+1;
end;
end;
end, obj);
obj._e_event91 = obj.dataLink19:addEventListener("onChange",
function (_, field, oldValue, newValue)
if sheet==nil then return end;
local atk = tonumber(sheet.ataque19) or 0;
if sheet.double19 then
atk = atk - 4;
sheet.ataque19a = atk;
sheet.ataque19b = atk;
else
sheet.ataque19a = atk;
sheet.ataque19b = nil;
end;
end, obj);
obj._e_event92 = obj.button74:addEventListener("onClick",
function (_)
local mesa = Firecast.getMesaDe(sheet);
local dano = sheet.dano19 or "1d1";
dano = Firecast.interpretarRolagem(dano);
if sheet.buffDano ~= nil then
dano = dano:concatenar(sheet.buffDano);
end;
local armamento = sheet.nome19;
if armamento==nil then armamento = sheet.arma19 end;
if armamento==nil then armamento = "arma" end;
mesa.activeChat:rolarDados(dano, "Dano com " .. armamento .. " de " .. (sheet.nome or "NOME"));
end, obj);
obj._e_event93 = obj.button75:addEventListener("onClick",
function (_)
local mesa = Firecast.getMesaDe(sheet);
local danoCritico = sheet.danoCritico19 or "1d1";
danoCritico = Firecast.interpretarRolagem(danoCritico);
if sheet.buffDanoCritico ~= nil then
danoCritico = danoCritico:concatenar(sheet.buffDanoCritico);
end;
local armamento = sheet.nome19;
if armamento==nil then armamento = sheet.arma19 end;
if armamento==nil then armamento = "arma" end;
mesa.activeChat:rolarDados(danoCritico, "Dano Critico com " .. armamento .. " de " .. (sheet.nome or "NOME"));
end, obj);
obj._e_event94 = obj.button76:addEventListener("onClick",
function (_)
Dialogs.confirmYesNo("Deseja realmente apagar esse ataque?",
function (confirmado)
if confirmado then
sheet.nome19 = nil;
sheet.arma19 = nil;
sheet.tipo19 = nil;
sheet.ataque19 = nil;
sheet.ataque19a = nil;
sheet.ataque19b = nil;
sheet.dano19 = nil;
sheet.danoCritico19 = nil;
sheet.decisivo19 = nil;
sheet.multiplicador19 = nil;
sheet.categoria19 = nil;
sheet.obs19 = nil;
sheet.municao19 = nil;
sheet.alcance19 = nil;
sheet.imagemArma19 = nil;
end;
end);
end, obj);
obj._e_event95 = obj.button77:addEventListener("onClick",
function (_)
i = 1;
max = 1;
fimRolagem = false;
array = {sheet.ataque20a, sheet.ataque20b};
decisivo = sheet.decisivo20 or "20";
decisivo = tonumber(string.sub(decisivo, 1, 2));
dano = sheet.dano20 or "1d1";
dano = Firecast.interpretarRolagem(dano);
if sheet.buffDano ~= nil then
dano = dano:concatenar(sheet.buffDano);
end;
danoCritico = sheet.danoCritico20 or "1d1";
danoCritico = Firecast.interpretarRolagem(danoCritico);
if sheet.buffDanoCritico ~= nil then
danoCritico = danoCritico:concatenar(sheet.buffDanoCritico);
end;
armamento = sheet.nome20;
if armamento==nil then armamento = sheet.arma20 end;
if armamento==nil then armamento = "arma" end;
municao = tonumber(sheet.municao20);
local mesa = Firecast.getMesaDe(sheet);
while array[max]~=nil do
max = max + 1;
end;
local ataque = tonumber(array[1]) or 0;
if ataque~=nil then
rolagem = Firecast.interpretarRolagem("1d20 + " .. ataque);
if sheet.buffAtaque ~= nil then
rolagem = rolagem:concatenar(sheet.buffAtaque);
end;
mesa.activeChat:rolarDados(rolagem, "Ataque " .. i .. " com " .. armamento .. " de " .. (sheet.nome or "NOME"),
function (rolado)
pos(rolado)
end);
if municao~=nil then
sheet.municao20 = municao-max+1;
end;
end;
end, obj);
obj._e_event96 = obj.dataLink20:addEventListener("onChange",
function (_, field, oldValue, newValue)
if sheet==nil then return end;
local atk = tonumber(sheet.ataque20) or 0;
if sheet.double20 then
atk = atk - 4;
sheet.ataque20a = atk;
sheet.ataque20b = atk;
else
sheet.ataque20a = atk;
sheet.ataque20b = nil;
end;
end, obj);
obj._e_event97 = obj.button78:addEventListener("onClick",
function (_)
local mesa = Firecast.getMesaDe(sheet);
local dano = sheet.dano20 or "1d1";
dano = Firecast.interpretarRolagem(dano);
if sheet.buffDano ~= nil then
dano = dano:concatenar(sheet.buffDano);
end;
local armamento = sheet.nome20;
if armamento==nil then armamento = sheet.arma20 end;
if armamento==nil then armamento = "arma" end;
mesa.activeChat:rolarDados(dano, "Dano com " .. armamento .. " de " .. (sheet.nome or "NOME"));
end, obj);
obj._e_event98 = obj.button79:addEventListener("onClick",
function (_)
local mesa = Firecast.getMesaDe(sheet);
local danoCritico = sheet.danoCritico20 or "1d1";
danoCritico = Firecast.interpretarRolagem(danoCritico);
if sheet.buffDanoCritico ~= nil then
danoCritico = danoCritico:concatenar(sheet.buffDanoCritico);
end;
local armamento = sheet.nome20;
if armamento==nil then armamento = sheet.arma20 end;
if armamento==nil then armamento = "arma" end;
mesa.activeChat:rolarDados(danoCritico, "Dano Critico com " .. armamento .. " de " .. (sheet.nome or "NOME"));
end, obj);
obj._e_event99 = obj.button80:addEventListener("onClick",
function (_)
Dialogs.confirmYesNo("Deseja realmente apagar esse ataque?",
function (confirmado)
if confirmado then
sheet.nome20 = nil;
sheet.arma20 = nil;
sheet.tipo20 = nil;
sheet.ataque20 = nil;
sheet.ataque20a = nil;
sheet.ataque20b = nil;
sheet.dano20 = nil;
sheet.danoCritico20 = nil;
sheet.decisivo20 = nil;
sheet.multiplicador20 = nil;
sheet.categoria20 = nil;
sheet.obs20 = nil;
sheet.municao20 = nil;
sheet.alcance20 = nil;
sheet.imagemArma20 = nil;
end;
end);
end, obj);
function obj:_releaseEvents()
__o_rrpgObjs.removeEventListenerById(self._e_event99);
__o_rrpgObjs.removeEventListenerById(self._e_event98);
__o_rrpgObjs.removeEventListenerById(self._e_event97);
__o_rrpgObjs.removeEventListenerById(self._e_event96);
__o_rrpgObjs.removeEventListenerById(self._e_event95);
__o_rrpgObjs.removeEventListenerById(self._e_event94);
__o_rrpgObjs.removeEventListenerById(self._e_event93);
__o_rrpgObjs.removeEventListenerById(self._e_event92);
__o_rrpgObjs.removeEventListenerById(self._e_event91);
__o_rrpgObjs.removeEventListenerById(self._e_event90);
__o_rrpgObjs.removeEventListenerById(self._e_event89);
__o_rrpgObjs.removeEventListenerById(self._e_event88);
__o_rrpgObjs.removeEventListenerById(self._e_event87);
__o_rrpgObjs.removeEventListenerById(self._e_event86);
__o_rrpgObjs.removeEventListenerById(self._e_event85);
__o_rrpgObjs.removeEventListenerById(self._e_event84);
__o_rrpgObjs.removeEventListenerById(self._e_event83);
__o_rrpgObjs.removeEventListenerById(self._e_event82);
__o_rrpgObjs.removeEventListenerById(self._e_event81);
__o_rrpgObjs.removeEventListenerById(self._e_event80);
__o_rrpgObjs.removeEventListenerById(self._e_event79);
__o_rrpgObjs.removeEventListenerById(self._e_event78);
__o_rrpgObjs.removeEventListenerById(self._e_event77);
__o_rrpgObjs.removeEventListenerById(self._e_event76);
__o_rrpgObjs.removeEventListenerById(self._e_event75);
__o_rrpgObjs.removeEventListenerById(self._e_event74);
__o_rrpgObjs.removeEventListenerById(self._e_event73);
__o_rrpgObjs.removeEventListenerById(self._e_event72);
__o_rrpgObjs.removeEventListenerById(self._e_event71);
__o_rrpgObjs.removeEventListenerById(self._e_event70);
__o_rrpgObjs.removeEventListenerById(self._e_event69);
__o_rrpgObjs.removeEventListenerById(self._e_event68);
__o_rrpgObjs.removeEventListenerById(self._e_event67);
__o_rrpgObjs.removeEventListenerById(self._e_event66);
__o_rrpgObjs.removeEventListenerById(self._e_event65);
__o_rrpgObjs.removeEventListenerById(self._e_event64);
__o_rrpgObjs.removeEventListenerById(self._e_event63);
__o_rrpgObjs.removeEventListenerById(self._e_event62);
__o_rrpgObjs.removeEventListenerById(self._e_event61);
__o_rrpgObjs.removeEventListenerById(self._e_event60);
__o_rrpgObjs.removeEventListenerById(self._e_event59);
__o_rrpgObjs.removeEventListenerById(self._e_event58);
__o_rrpgObjs.removeEventListenerById(self._e_event57);
__o_rrpgObjs.removeEventListenerById(self._e_event56);
__o_rrpgObjs.removeEventListenerById(self._e_event55);
__o_rrpgObjs.removeEventListenerById(self._e_event54);
__o_rrpgObjs.removeEventListenerById(self._e_event53);
__o_rrpgObjs.removeEventListenerById(self._e_event52);
__o_rrpgObjs.removeEventListenerById(self._e_event51);
__o_rrpgObjs.removeEventListenerById(self._e_event50);
__o_rrpgObjs.removeEventListenerById(self._e_event49);
__o_rrpgObjs.removeEventListenerById(self._e_event48);
__o_rrpgObjs.removeEventListenerById(self._e_event47);
__o_rrpgObjs.removeEventListenerById(self._e_event46);
__o_rrpgObjs.removeEventListenerById(self._e_event45);
__o_rrpgObjs.removeEventListenerById(self._e_event44);
__o_rrpgObjs.removeEventListenerById(self._e_event43);
__o_rrpgObjs.removeEventListenerById(self._e_event42);
__o_rrpgObjs.removeEventListenerById(self._e_event41);
__o_rrpgObjs.removeEventListenerById(self._e_event40);
__o_rrpgObjs.removeEventListenerById(self._e_event39);
__o_rrpgObjs.removeEventListenerById(self._e_event38);
__o_rrpgObjs.removeEventListenerById(self._e_event37);
__o_rrpgObjs.removeEventListenerById(self._e_event36);
__o_rrpgObjs.removeEventListenerById(self._e_event35);
__o_rrpgObjs.removeEventListenerById(self._e_event34);
__o_rrpgObjs.removeEventListenerById(self._e_event33);
__o_rrpgObjs.removeEventListenerById(self._e_event32);
__o_rrpgObjs.removeEventListenerById(self._e_event31);
__o_rrpgObjs.removeEventListenerById(self._e_event30);
__o_rrpgObjs.removeEventListenerById(self._e_event29);
__o_rrpgObjs.removeEventListenerById(self._e_event28);
__o_rrpgObjs.removeEventListenerById(self._e_event27);
__o_rrpgObjs.removeEventListenerById(self._e_event26);
__o_rrpgObjs.removeEventListenerById(self._e_event25);
__o_rrpgObjs.removeEventListenerById(self._e_event24);
__o_rrpgObjs.removeEventListenerById(self._e_event23);
__o_rrpgObjs.removeEventListenerById(self._e_event22);
__o_rrpgObjs.removeEventListenerById(self._e_event21);
__o_rrpgObjs.removeEventListenerById(self._e_event20);
__o_rrpgObjs.removeEventListenerById(self._e_event19);
__o_rrpgObjs.removeEventListenerById(self._e_event18);
__o_rrpgObjs.removeEventListenerById(self._e_event17);
__o_rrpgObjs.removeEventListenerById(self._e_event16);
__o_rrpgObjs.removeEventListenerById(self._e_event15);
__o_rrpgObjs.removeEventListenerById(self._e_event14);
__o_rrpgObjs.removeEventListenerById(self._e_event13);
__o_rrpgObjs.removeEventListenerById(self._e_event12);
__o_rrpgObjs.removeEventListenerById(self._e_event11);
__o_rrpgObjs.removeEventListenerById(self._e_event10);
__o_rrpgObjs.removeEventListenerById(self._e_event9);
__o_rrpgObjs.removeEventListenerById(self._e_event8);
__o_rrpgObjs.removeEventListenerById(self._e_event7);
__o_rrpgObjs.removeEventListenerById(self._e_event6);
__o_rrpgObjs.removeEventListenerById(self._e_event5);
__o_rrpgObjs.removeEventListenerById(self._e_event4);
__o_rrpgObjs.removeEventListenerById(self._e_event3);
__o_rrpgObjs.removeEventListenerById(self._e_event2);
__o_rrpgObjs.removeEventListenerById(self._e_event1);
__o_rrpgObjs.removeEventListenerById(self._e_event0);
end;
obj._oldLFMDestroy = obj.destroy;
function obj:destroy()
self:_releaseEvents();
if (self.handle ~= 0) and (self.setNodeDatabase ~= nil) then
self:setNodeDatabase(nil);
end;
if self.edit213 ~= nil then self.edit213:destroy(); self.edit213 = nil; end;
if self.edit150 ~= nil then self.edit150:destroy(); self.edit150 = nil; end;
if self.label14 ~= nil then self.label14:destroy(); self.label14 = nil; end;
if self.label119 ~= nil then self.label119:destroy(); self.label119 = nil; end;
if self.edit64 ~= nil then self.edit64:destroy(); self.edit64 = nil; end;
if self.edit233 ~= nil then self.edit233:destroy(); self.edit233 = nil; end;
if self.button15 ~= nil then self.button15:destroy(); self.button15 = nil; end;
if self.edit226 ~= nil then self.edit226:destroy(); self.edit226 = nil; end;
if self.layout15 ~= nil then self.layout15:destroy(); self.layout15 = nil; end;
if self.edit41 ~= nil then self.edit41:destroy(); self.edit41 = nil; end;
if self.layout10 ~= nil then self.layout10:destroy(); self.layout10 = nil; end;
if self.edit172 ~= nil then self.edit172:destroy(); self.edit172 = nil; end;
if self.edit195 ~= nil then self.edit195:destroy(); self.edit195 = nil; end;
if self.edit36 ~= nil then self.edit36:destroy(); self.edit36 = nil; end;
if self.edit9 ~= nil then self.edit9:destroy(); self.edit9 = nil; end;
if self.label43 ~= nil then self.label43:destroy(); self.label43 = nil; end;
if self.edit33 ~= nil then self.edit33:destroy(); self.edit33 = nil; end;
if self.label97 ~= nil then self.label97:destroy(); self.label97 = nil; end;
if self.button67 ~= nil then self.button67:destroy(); self.button67 = nil; end;
if self.edit29 ~= nil then self.edit29:destroy(); self.edit29 = nil; end;
if self.label77 ~= nil then self.label77:destroy(); self.label77 = nil; end;
if self.label128 ~= nil then self.label128:destroy(); self.label128 = nil; end;
if self.rectangle35 ~= nil then self.rectangle35:destroy(); self.rectangle35 = nil; end;
if self.layout17 ~= nil then self.layout17:destroy(); self.layout17 = nil; end;
if self.label45 ~= nil then self.label45:destroy(); self.label45 = nil; end;
if self.label96 ~= nil then self.label96:destroy(); self.label96 = nil; end;
if self.label92 ~= nil then self.label92:destroy(); self.label92 = nil; end;
if self.label148 ~= nil then self.label148:destroy(); self.label148 = nil; end;
if self.rectangle16 ~= nil then self.rectangle16:destroy(); self.rectangle16 = nil; end;
if self.button16 ~= nil then self.button16:destroy(); self.button16 = nil; end;
if self.label75 ~= nil then self.label75:destroy(); self.label75 = nil; end;
if self.label158 ~= nil then self.label158:destroy(); self.label158 = nil; end;
if self.label63 ~= nil then self.label63:destroy(); self.label63 = nil; end;
if self.edit76 ~= nil then self.edit76:destroy(); self.edit76 = nil; end;
if self.label70 ~= nil then self.label70:destroy(); self.label70 = nil; end;
if self.dataLink18 ~= nil then self.dataLink18:destroy(); self.dataLink18 = nil; end;
if self.label143 ~= nil then self.label143:destroy(); self.label143 = nil; end;
if self.label35 ~= nil then self.label35:destroy(); self.label35 = nil; end;
if self.edit236 ~= nil then self.edit236:destroy(); self.edit236 = nil; end;
if self.edit82 ~= nil then self.edit82:destroy(); self.edit82 = nil; end;
if self.label192 ~= nil then self.label192:destroy(); self.label192 = nil; end;
if self.label164 ~= nil then self.label164:destroy(); self.label164 = nil; end;
if self.label122 ~= nil then self.label122:destroy(); self.label122 = nil; end;
if self.rectangle5 ~= nil then self.rectangle5:destroy(); self.rectangle5 = nil; end;
if self.button35 ~= nil then self.button35:destroy(); self.button35 = nil; end;
if self.label186 ~= nil then self.label186:destroy(); self.label186 = nil; end;
if self.label8 ~= nil then self.label8:destroy(); self.label8 = nil; end;
if self.label125 ~= nil then self.label125:destroy(); self.label125 = nil; end;
if self.label146 ~= nil then self.label146:destroy(); self.label146 = nil; end;
if self.edit11 ~= nil then self.edit11:destroy(); self.edit11 = nil; end;
if self.layout9 ~= nil then self.layout9:destroy(); self.layout9 = nil; end;
if self.image1 ~= nil then self.image1:destroy(); self.image1 = nil; end;
if self.button40 ~= nil then self.button40:destroy(); self.button40 = nil; end;
if self.rectangle17 ~= nil then self.rectangle17:destroy(); self.rectangle17 = nil; end;
if self.edit183 ~= nil then self.edit183:destroy(); self.edit183 = nil; end;
if self.label15 ~= nil then self.label15:destroy(); self.label15 = nil; end;
if self.dataLink9 ~= nil then self.dataLink9:destroy(); self.dataLink9 = nil; end;
if self.label99 ~= nil then self.label99:destroy(); self.label99 = nil; end;
if self.label107 ~= nil then self.label107:destroy(); self.label107 = nil; end;
if self.label161 ~= nil then self.label161:destroy(); self.label161 = nil; end;
if self.label49 ~= nil then self.label49:destroy(); self.label49 = nil; end;
if self.label163 ~= nil then self.label163:destroy(); self.label163 = nil; end;
if self.edit156 ~= nil then self.edit156:destroy(); self.edit156 = nil; end;
if self.button79 ~= nil then self.button79:destroy(); self.button79 = nil; end;
if self.label195 ~= nil then self.label195:destroy(); self.label195 = nil; end;
if self.label82 ~= nil then self.label82:destroy(); self.label82 = nil; end;
if self.button37 ~= nil then self.button37:destroy(); self.button37 = nil; end;
if self.button36 ~= nil then self.button36:destroy(); self.button36 = nil; end;
if self.image11 ~= nil then self.image11:destroy(); self.image11 = nil; end;
if self.rectangle33 ~= nil then self.rectangle33:destroy(); self.rectangle33 = nil; end;
if self.label162 ~= nil then self.label162:destroy(); self.label162 = nil; end;
if self.edit69 ~= nil then self.edit69:destroy(); self.edit69 = nil; end;
if self.label52 ~= nil then self.label52:destroy(); self.label52 = nil; end;
if self.button21 ~= nil then self.button21:destroy(); self.button21 = nil; end;
if self.edit228 ~= nil then self.edit228:destroy(); self.edit228 = nil; end;
if self.edit115 ~= nil then self.edit115:destroy(); self.edit115 = nil; end;
if self.edit16 ~= nil then self.edit16:destroy(); self.edit16 = nil; end;
if self.label47 ~= nil then self.label47:destroy(); self.label47 = nil; end;
if self.edit205 ~= nil then self.edit205:destroy(); self.edit205 = nil; end;
if self.label48 ~= nil then self.label48:destroy(); self.label48 = nil; end;
if self.button26 ~= nil then self.button26:destroy(); self.button26 = nil; end;
if self.edit116 ~= nil then self.edit116:destroy(); self.edit116 = nil; end;
if self.label76 ~= nil then self.label76:destroy(); self.label76 = nil; end;
if self.edit214 ~= nil then self.edit214:destroy(); self.edit214 = nil; end;
if self.edit77 ~= nil then self.edit77:destroy(); self.edit77 = nil; end;
if self.button4 ~= nil then self.button4:destroy(); self.button4 = nil; end;
if self.edit52 ~= nil then self.edit52:destroy(); self.edit52 = nil; end;
if self.edit159 ~= nil then self.edit159:destroy(); self.edit159 = nil; end;
if self.edit196 ~= nil then self.edit196:destroy(); self.edit196 = nil; end;
if self.label1 ~= nil then self.label1:destroy(); self.label1 = nil; end;
if self.rectangle7 ~= nil then self.rectangle7:destroy(); self.rectangle7 = nil; end;
if self.label176 ~= nil then self.label176:destroy(); self.label176 = nil; end;
if self.image9 ~= nil then self.image9:destroy(); self.image9 = nil; end;
if self.edit220 ~= nil then self.edit220:destroy(); self.edit220 = nil; end;
if self.checkBox3 ~= nil then self.checkBox3:destroy(); self.checkBox3 = nil; end;
if self.button7 ~= nil then self.button7:destroy(); self.button7 = nil; end;
if self.edit58 ~= nil then self.edit58:destroy(); self.edit58 = nil; end;
if self.edit235 ~= nil then self.edit235:destroy(); self.edit235 = nil; end;
if self.label109 ~= nil then self.label109:destroy(); self.label109 = nil; end;
if self.label106 ~= nil then self.label106:destroy(); self.label106 = nil; end;
if self.button66 ~= nil then self.button66:destroy(); self.button66 = nil; end;
if self.label103 ~= nil then self.label103:destroy(); self.label103 = nil; end;
if self.edit66 ~= nil then self.edit66:destroy(); self.edit66 = nil; end;
if self.button73 ~= nil then self.button73:destroy(); self.button73 = nil; end;
if self.dataLink20 ~= nil then self.dataLink20:destroy(); self.dataLink20 = nil; end;
if self.layout5 ~= nil then self.layout5:destroy(); self.layout5 = nil; end;
if self.label94 ~= nil then self.label94:destroy(); self.label94 = nil; end;
if self.edit129 ~= nil then self.edit129:destroy(); self.edit129 = nil; end;
if self.dataLink3 ~= nil then self.dataLink3:destroy(); self.dataLink3 = nil; end;
if self.edit142 ~= nil then self.edit142:destroy(); self.edit142 = nil; end;
if self.label29 ~= nil then self.label29:destroy(); self.label29 = nil; end;
if self.dataLink7 ~= nil then self.dataLink7:destroy(); self.dataLink7 = nil; end;
if self.rectangle2 ~= nil then self.rectangle2:destroy(); self.rectangle2 = nil; end;
if self.rectangle23 ~= nil then self.rectangle23:destroy(); self.rectangle23 = nil; end;
if self.label111 ~= nil then self.label111:destroy(); self.label111 = nil; end;
if self.label91 ~= nil then self.label91:destroy(); self.label91 = nil; end;
if self.label30 ~= nil then self.label30:destroy(); self.label30 = nil; end;
if self.dataLink6 ~= nil then self.dataLink6:destroy(); self.dataLink6 = nil; end;
if self.image10 ~= nil then self.image10:destroy(); self.image10 = nil; end;
if self.label51 ~= nil then self.label51:destroy(); self.label51 = nil; end;
if self.button45 ~= nil then self.button45:destroy(); self.button45 = nil; end;
if self.edit99 ~= nil then self.edit99:destroy(); self.edit99 = nil; end;
if self.label19 ~= nil then self.label19:destroy(); self.label19 = nil; end;
if self.edit182 ~= nil then self.edit182:destroy(); self.edit182 = nil; end;
if self.label116 ~= nil then self.label116:destroy(); self.label116 = nil; end;
if self.edit67 ~= nil then self.edit67:destroy(); self.edit67 = nil; end;
if self.rectangle12 ~= nil then self.rectangle12:destroy(); self.rectangle12 = nil; end;
if self.label139 ~= nil then self.label139:destroy(); self.label139 = nil; end;
if self.button43 ~= nil then self.button43:destroy(); self.button43 = nil; end;
if self.edit176 ~= nil then self.edit176:destroy(); self.edit176 = nil; end;
if self.button44 ~= nil then self.button44:destroy(); self.button44 = nil; end;
if self.layout11 ~= nil then self.layout11:destroy(); self.layout11 = nil; end;
if self.edit221 ~= nil then self.edit221:destroy(); self.edit221 = nil; end;
if self.rectangle18 ~= nil then self.rectangle18:destroy(); self.rectangle18 = nil; end;
if self.rectangle14 ~= nil then self.rectangle14:destroy(); self.rectangle14 = nil; end;
if self.label147 ~= nil then self.label147:destroy(); self.label147 = nil; end;
if self.edit124 ~= nil then self.edit124:destroy(); self.edit124 = nil; end;
if self.label184 ~= nil then self.label184:destroy(); self.label184 = nil; end;
if self.label2 ~= nil then self.label2:destroy(); self.label2 = nil; end;
if self.edit157 ~= nil then self.edit157:destroy(); self.edit157 = nil; end;
if self.label89 ~= nil then self.label89:destroy(); self.label89 = nil; end;
if self.label38 ~= nil then self.label38:destroy(); self.label38 = nil; end;
if self.edit83 ~= nil then self.edit83:destroy(); self.edit83 = nil; end;
if self.button33 ~= nil then self.button33:destroy(); self.button33 = nil; end;
if self.edit27 ~= nil then self.edit27:destroy(); self.edit27 = nil; end;
if self.label115 ~= nil then self.label115:destroy(); self.label115 = nil; end;
if self.layout14 ~= nil then self.layout14:destroy(); self.layout14 = nil; end;
if self.label159 ~= nil then self.label159:destroy(); self.label159 = nil; end;
if self.button72 ~= nil then self.button72:destroy(); self.button72 = nil; end;
if self.edit161 ~= nil then self.edit161:destroy(); self.edit161 = nil; end;
if self.edit223 ~= nil then self.edit223:destroy(); self.edit223 = nil; end;
if self.edit62 ~= nil then self.edit62:destroy(); self.edit62 = nil; end;
if self.edit74 ~= nil then self.edit74:destroy(); self.edit74 = nil; end;
if self.edit60 ~= nil then self.edit60:destroy(); self.edit60 = nil; end;
if self.layout7 ~= nil then self.layout7:destroy(); self.layout7 = nil; end;
if self.label127 ~= nil then self.label127:destroy(); self.label127 = nil; end;
if self.label170 ~= nil then self.label170:destroy(); self.label170 = nil; end;
if self.label185 ~= nil then self.label185:destroy(); self.label185 = nil; end;
if self.edit134 ~= nil then self.edit134:destroy(); self.edit134 = nil; end;
if self.label194 ~= nil then self.label194:destroy(); self.label194 = nil; end;
if self.label142 ~= nil then self.label142:destroy(); self.label142 = nil; end;
if self.label200 ~= nil then self.label200:destroy(); self.label200 = nil; end;
if self.rectangle9 ~= nil then self.rectangle9:destroy(); self.rectangle9 = nil; end;
if self.edit121 ~= nil then self.edit121:destroy(); self.edit121 = nil; end;
if self.button68 ~= nil then self.button68:destroy(); self.button68 = nil; end;
if self.button51 ~= nil then self.button51:destroy(); self.button51 = nil; end;
if self.button28 ~= nil then self.button28:destroy(); self.button28 = nil; end;
if self.edit163 ~= nil then self.edit163:destroy(); self.edit163 = nil; end;
if self.edit199 ~= nil then self.edit199:destroy(); self.edit199 = nil; end;
if self.label198 ~= nil then self.label198:destroy(); self.label198 = nil; end;
if self.label73 ~= nil then self.label73:destroy(); self.label73 = nil; end;
if self.edit92 ~= nil then self.edit92:destroy(); self.edit92 = nil; end;
if self.label23 ~= nil then self.label23:destroy(); self.label23 = nil; end;
if self.label32 ~= nil then self.label32:destroy(); self.label32 = nil; end;
if self.label90 ~= nil then self.label90:destroy(); self.label90 = nil; end;
if self.dataLink10 ~= nil then self.dataLink10:destroy(); self.dataLink10 = nil; end;
if self.button39 ~= nil then self.button39:destroy(); self.button39 = nil; end;
if self.label24 ~= nil then self.label24:destroy(); self.label24 = nil; end;
if self.edit54 ~= nil then self.edit54:destroy(); self.edit54 = nil; end;
if self.dataLink5 ~= nil then self.dataLink5:destroy(); self.dataLink5 = nil; end;
if self.label61 ~= nil then self.label61:destroy(); self.label61 = nil; end;
if self.rectangle10 ~= nil then self.rectangle10:destroy(); self.rectangle10 = nil; end;
if self.edit100 ~= nil then self.edit100:destroy(); self.edit100 = nil; end;
if self.layout1 ~= nil then self.layout1:destroy(); self.layout1 = nil; end;
if self.edit61 ~= nil then self.edit61:destroy(); self.edit61 = nil; end;
if self.edit84 ~= nil then self.edit84:destroy(); self.edit84 = nil; end;
if self.button30 ~= nil then self.button30:destroy(); self.button30 = nil; end;
if self.label93 ~= nil then self.label93:destroy(); self.label93 = nil; end;
if self.edit224 ~= nil then self.edit224:destroy(); self.edit224 = nil; end;
if self.edit24 ~= nil then self.edit24:destroy(); self.edit24 = nil; end;
if self.edit59 ~= nil then self.edit59:destroy(); self.edit59 = nil; end;
if self.layout12 ~= nil then self.layout12:destroy(); self.layout12 = nil; end;
if self.edit14 ~= nil then self.edit14:destroy(); self.edit14 = nil; end;
if self.rectangle38 ~= nil then self.rectangle38:destroy(); self.rectangle38 = nil; end;
if self.dataLink8 ~= nil then self.dataLink8:destroy(); self.dataLink8 = nil; end;
if self.edit4 ~= nil then self.edit4:destroy(); self.edit4 = nil; end;
if self.edit198 ~= nil then self.edit198:destroy(); self.edit198 = nil; end;
if self.label6 ~= nil then self.label6:destroy(); self.label6 = nil; end;
if self.edit128 ~= nil then self.edit128:destroy(); self.edit128 = nil; end;
if self.label129 ~= nil then self.label129:destroy(); self.label129 = nil; end;
if self.edit200 ~= nil then self.edit200:destroy(); self.edit200 = nil; end;
if self.button13 ~= nil then self.button13:destroy(); self.button13 = nil; end;
if self.edit187 ~= nil then self.edit187:destroy(); self.edit187 = nil; end;
if self.edit103 ~= nil then self.edit103:destroy(); self.edit103 = nil; end;
if self.image12 ~= nil then self.image12:destroy(); self.image12 = nil; end;
if self.checkBox17 ~= nil then self.checkBox17:destroy(); self.checkBox17 = nil; end;
if self.button74 ~= nil then self.button74:destroy(); self.button74 = nil; end;
if self.checkBox16 ~= nil then self.checkBox16:destroy(); self.checkBox16 = nil; end;
if self.label37 ~= nil then self.label37:destroy(); self.label37 = nil; end;
if self.edit127 ~= nil then self.edit127:destroy(); self.edit127 = nil; end;
if self.edit218 ~= nil then self.edit218:destroy(); self.edit218 = nil; end;
if self.edit165 ~= nil then self.edit165:destroy(); self.edit165 = nil; end;
if self.edit208 ~= nil then self.edit208:destroy(); self.edit208 = nil; end;
if self.button55 ~= nil then self.button55:destroy(); self.button55 = nil; end;
if self.edit45 ~= nil then self.edit45:destroy(); self.edit45 = nil; end;
if self.edit8 ~= nil then self.edit8:destroy(); self.edit8 = nil; end;
if self.checkBox9 ~= nil then self.checkBox9:destroy(); self.checkBox9 = nil; end;
if self.label196 ~= nil then self.label196:destroy(); self.label196 = nil; end;
if self.button32 ~= nil then self.button32:destroy(); self.button32 = nil; end;
if self.edit145 ~= nil then self.edit145:destroy(); self.edit145 = nil; end;
if self.label86 ~= nil then self.label86:destroy(); self.label86 = nil; end;
if self.edit181 ~= nil then self.edit181:destroy(); self.edit181 = nil; end;
if self.edit96 ~= nil then self.edit96:destroy(); self.edit96 = nil; end;
if self.edit2 ~= nil then self.edit2:destroy(); self.edit2 = nil; end;
if self.label53 ~= nil then self.label53:destroy(); self.label53 = nil; end;
if self.button27 ~= nil then self.button27:destroy(); self.button27 = nil; end;
if self.edit109 ~= nil then self.edit109:destroy(); self.edit109 = nil; end;
if self.label133 ~= nil then self.label133:destroy(); self.label133 = nil; end;
if self.edit21 ~= nil then self.edit21:destroy(); self.edit21 = nil; end;
if self.button24 ~= nil then self.button24:destroy(); self.button24 = nil; end;
if self.button3 ~= nil then self.button3:destroy(); self.button3 = nil; end;
if self.label42 ~= nil then self.label42:destroy(); self.label42 = nil; end;
if self.edit174 ~= nil then self.edit174:destroy(); self.edit174 = nil; end;
if self.checkBox14 ~= nil then self.checkBox14:destroy(); self.checkBox14 = nil; end;
if self.edit152 ~= nil then self.edit152:destroy(); self.edit152 = nil; end;
if self.rectangle20 ~= nil then self.rectangle20:destroy(); self.rectangle20 = nil; end;
if self.edit133 ~= nil then self.edit133:destroy(); self.edit133 = nil; end;
if self.label102 ~= nil then self.label102:destroy(); self.label102 = nil; end;
if self.edit93 ~= nil then self.edit93:destroy(); self.edit93 = nil; end;
if self.edit126 ~= nil then self.edit126:destroy(); self.edit126 = nil; end;
if self.edit13 ~= nil then self.edit13:destroy(); self.edit13 = nil; end;
if self.label132 ~= nil then self.label132:destroy(); self.label132 = nil; end;
if self.edit225 ~= nil then self.edit225:destroy(); self.edit225 = nil; end;
if self.button77 ~= nil then self.button77:destroy(); self.button77 = nil; end;
if self.edit81 ~= nil then self.edit81:destroy(); self.edit81 = nil; end;
if self.edit177 ~= nil then self.edit177:destroy(); self.edit177 = nil; end;
if self.button11 ~= nil then self.button11:destroy(); self.button11 = nil; end;
if self.label81 ~= nil then self.label81:destroy(); self.label81 = nil; end;
if self.button58 ~= nil then self.button58:destroy(); self.button58 = nil; end;
if self.label166 ~= nil then self.label166:destroy(); self.label166 = nil; end;
if self.label181 ~= nil then self.label181:destroy(); self.label181 = nil; end;
if self.edit166 ~= nil then self.edit166:destroy(); self.edit166 = nil; end;
if self.button78 ~= nil then self.button78:destroy(); self.button78 = nil; end;
if self.button6 ~= nil then self.button6:destroy(); self.button6 = nil; end;
if self.label199 ~= nil then self.label199:destroy(); self.label199 = nil; end;
if self.button5 ~= nil then self.button5:destroy(); self.button5 = nil; end;
if self.edit37 ~= nil then self.edit37:destroy(); self.edit37 = nil; end;
if self.checkBox12 ~= nil then self.checkBox12:destroy(); self.checkBox12 = nil; end;
if self.edit184 ~= nil then self.edit184:destroy(); self.edit184 = nil; end;
if self.label10 ~= nil then self.label10:destroy(); self.label10 = nil; end;
if self.edit17 ~= nil then self.edit17:destroy(); self.edit17 = nil; end;
if self.button10 ~= nil then self.button10:destroy(); self.button10 = nil; end;
if self.layout2 ~= nil then self.layout2:destroy(); self.layout2 = nil; end;
if self.button41 ~= nil then self.button41:destroy(); self.button41 = nil; end;
if self.rectangle30 ~= nil then self.rectangle30:destroy(); self.rectangle30 = nil; end;
if self.edit155 ~= nil then self.edit155:destroy(); self.edit155 = nil; end;
if self.edit162 ~= nil then self.edit162:destroy(); self.edit162 = nil; end;
if self.edit170 ~= nil then self.edit170:destroy(); self.edit170 = nil; end;
if self.edit194 ~= nil then self.edit194:destroy(); self.edit194 = nil; end;
if self.edit87 ~= nil then self.edit87:destroy(); self.edit87 = nil; end;
if self.label39 ~= nil then self.label39:destroy(); self.label39 = nil; end;
if self.label175 ~= nil then self.label175:destroy(); self.label175 = nil; end;
if self.label79 ~= nil then self.label79:destroy(); self.label79 = nil; end;
if self.edit113 ~= nil then self.edit113:destroy(); self.edit113 = nil; end;
if self.label11 ~= nil then self.label11:destroy(); self.label11 = nil; end;
if self.edit15 ~= nil then self.edit15:destroy(); self.edit15 = nil; end;
if self.label3 ~= nil then self.label3:destroy(); self.label3 = nil; end;
if self.label20 ~= nil then self.label20:destroy(); self.label20 = nil; end;
if self.button54 ~= nil then self.button54:destroy(); self.button54 = nil; end;
if self.edit211 ~= nil then self.edit211:destroy(); self.edit211 = nil; end;
if self.checkBox19 ~= nil then self.checkBox19:destroy(); self.checkBox19 = nil; end;
if self.rectangle40 ~= nil then self.rectangle40:destroy(); self.rectangle40 = nil; end;
if self.edit240 ~= nil then self.edit240:destroy(); self.edit240 = nil; end;
if self.label108 ~= nil then self.label108:destroy(); self.label108 = nil; end;
if self.rectangle36 ~= nil then self.rectangle36:destroy(); self.rectangle36 = nil; end;
if self.edit138 ~= nil then self.edit138:destroy(); self.edit138 = nil; end;
if self.button31 ~= nil then self.button31:destroy(); self.button31 = nil; end;
if self.label7 ~= nil then self.label7:destroy(); self.label7 = nil; end;
if self.button8 ~= nil then self.button8:destroy(); self.button8 = nil; end;
if self.button18 ~= nil then self.button18:destroy(); self.button18 = nil; end;
if self.label50 ~= nil then self.label50:destroy(); self.label50 = nil; end;
if self.edit42 ~= nil then self.edit42:destroy(); self.edit42 = nil; end;
if self.edit209 ~= nil then self.edit209:destroy(); self.edit209 = nil; end;
if self.edit118 ~= nil then self.edit118:destroy(); self.edit118 = nil; end;
if self.checkBox10 ~= nil then self.checkBox10:destroy(); self.checkBox10 = nil; end;
if self.edit154 ~= nil then self.edit154:destroy(); self.edit154 = nil; end;
if self.image15 ~= nil then self.image15:destroy(); self.image15 = nil; end;
if self.button65 ~= nil then self.button65:destroy(); self.button65 = nil; end;
if self.rectangle4 ~= nil then self.rectangle4:destroy(); self.rectangle4 = nil; end;
if self.edit135 ~= nil then self.edit135:destroy(); self.edit135 = nil; end;
if self.image4 ~= nil then self.image4:destroy(); self.image4 = nil; end;
if self.label84 ~= nil then self.label84:destroy(); self.label84 = nil; end;
if self.label124 ~= nil then self.label124:destroy(); self.label124 = nil; end;
if self.edit191 ~= nil then self.edit191:destroy(); self.edit191 = nil; end;
if self.edit32 ~= nil then self.edit32:destroy(); self.edit32 = nil; end;
if self.image13 ~= nil then self.image13:destroy(); self.image13 = nil; end;
if self.edit102 ~= nil then self.edit102:destroy(); self.edit102 = nil; end;
if self.edit178 ~= nil then self.edit178:destroy(); self.edit178 = nil; end;
if self.button71 ~= nil then self.button71:destroy(); self.button71 = nil; end;
if self.edit117 ~= nil then self.edit117:destroy(); self.edit117 = nil; end;
if self.edit215 ~= nil then self.edit215:destroy(); self.edit215 = nil; end;
if self.edit216 ~= nil then self.edit216:destroy(); self.edit216 = nil; end;
if self.dataLink12 ~= nil then self.dataLink12:destroy(); self.dataLink12 = nil; end;
if self.rectangle34 ~= nil then self.rectangle34:destroy(); self.rectangle34 = nil; end;
if self.label110 ~= nil then self.label110:destroy(); self.label110 = nil; end;
if self.edit73 ~= nil then self.edit73:destroy(); self.edit73 = nil; end;
if self.edit222 ~= nil then self.edit222:destroy(); self.edit222 = nil; end;
if self.edit98 ~= nil then self.edit98:destroy(); self.edit98 = nil; end;
if self.rectangle37 ~= nil then self.rectangle37:destroy(); self.rectangle37 = nil; end;
if self.checkBox15 ~= nil then self.checkBox15:destroy(); self.checkBox15 = nil; end;
if self.label151 ~= nil then self.label151:destroy(); self.label151 = nil; end;
if self.checkBox18 ~= nil then self.checkBox18:destroy(); self.checkBox18 = nil; end;
if self.label138 ~= nil then self.label138:destroy(); self.label138 = nil; end;
if self.edit185 ~= nil then self.edit185:destroy(); self.edit185 = nil; end;
if self.label40 ~= nil then self.label40:destroy(); self.label40 = nil; end;
if self.dataLink4 ~= nil then self.dataLink4:destroy(); self.dataLink4 = nil; end;
if self.image5 ~= nil then self.image5:destroy(); self.image5 = nil; end;
if self.edit111 ~= nil then self.edit111:destroy(); self.edit111 = nil; end;
if self.image7 ~= nil then self.image7:destroy(); self.image7 = nil; end;
if self.edit28 ~= nil then self.edit28:destroy(); self.edit28 = nil; end;
if self.label57 ~= nil then self.label57:destroy(); self.label57 = nil; end;
if self.button64 ~= nil then self.button64:destroy(); self.button64 = nil; end;
if self.label188 ~= nil then self.label188:destroy(); self.label188 = nil; end;
if self.edit71 ~= nil then self.edit71:destroy(); self.edit71 = nil; end;
if self.label71 ~= nil then self.label71:destroy(); self.label71 = nil; end;
if self.button47 ~= nil then self.button47:destroy(); self.button47 = nil; end;
if self.image20 ~= nil then self.image20:destroy(); self.image20 = nil; end;
if self.edit85 ~= nil then self.edit85:destroy(); self.edit85 = nil; end;
if self.edit201 ~= nil then self.edit201:destroy(); self.edit201 = nil; end;
if self.label160 ~= nil then self.label160:destroy(); self.label160 = nil; end;
if self.label193 ~= nil then self.label193:destroy(); self.label193 = nil; end;
if self.checkBox11 ~= nil then self.checkBox11:destroy(); self.checkBox11 = nil; end;
if self.button56 ~= nil then self.button56:destroy(); self.button56 = nil; end;
if self.button2 ~= nil then self.button2:destroy(); self.button2 = nil; end;
if self.label22 ~= nil then self.label22:destroy(); self.label22 = nil; end;
if self.button70 ~= nil then self.button70:destroy(); self.button70 = nil; end;
if self.label177 ~= nil then self.label177:destroy(); self.label177 = nil; end;
if self.layout13 ~= nil then self.layout13:destroy(); self.layout13 = nil; end;
if self.edit192 ~= nil then self.edit192:destroy(); self.edit192 = nil; end;
if self.label144 ~= nil then self.label144:destroy(); self.label144 = nil; end;
if self.label13 ~= nil then self.label13:destroy(); self.label13 = nil; end;
if self.layout8 ~= nil then self.layout8:destroy(); self.layout8 = nil; end;
if self.edit153 ~= nil then self.edit153:destroy(); self.edit153 = nil; end;
if self.label27 ~= nil then self.label27:destroy(); self.label27 = nil; end;
if self.button20 ~= nil then self.button20:destroy(); self.button20 = nil; end;
if self.label59 ~= nil then self.label59:destroy(); self.label59 = nil; end;
if self.checkBox7 ~= nil then self.checkBox7:destroy(); self.checkBox7 = nil; end;
if self.edit47 ~= nil then self.edit47:destroy(); self.edit47 = nil; end;
if self.label68 ~= nil then self.label68:destroy(); self.label68 = nil; end;
if self.button38 ~= nil then self.button38:destroy(); self.button38 = nil; end;
if self.label67 ~= nil then self.label67:destroy(); self.label67 = nil; end;
if self.edit131 ~= nil then self.edit131:destroy(); self.edit131 = nil; end;
if self.button52 ~= nil then self.button52:destroy(); self.button52 = nil; end;
if self.button53 ~= nil then self.button53:destroy(); self.button53 = nil; end;
if self.edit149 ~= nil then self.edit149:destroy(); self.edit149 = nil; end;
if self.edit169 ~= nil then self.edit169:destroy(); self.edit169 = nil; end;
if self.button1 ~= nil then self.button1:destroy(); self.button1 = nil; end;
if self.label140 ~= nil then self.label140:destroy(); self.label140 = nil; end;
if self.edit160 ~= nil then self.edit160:destroy(); self.edit160 = nil; end;
if self.edit120 ~= nil then self.edit120:destroy(); self.edit120 = nil; end;
if self.edit26 ~= nil then self.edit26:destroy(); self.edit26 = nil; end;
if self.label69 ~= nil then self.label69:destroy(); self.label69 = nil; end;
if self.edit112 ~= nil then self.edit112:destroy(); self.edit112 = nil; end;
if self.edit34 ~= nil then self.edit34:destroy(); self.edit34 = nil; end;
if self.label31 ~= nil then self.label31:destroy(); self.label31 = nil; end;
if self.edit19 ~= nil then self.edit19:destroy(); self.edit19 = nil; end;
if self.edit114 ~= nil then self.edit114:destroy(); self.edit114 = nil; end;
if self.label105 ~= nil then self.label105:destroy(); self.label105 = nil; end;
if self.label154 ~= nil then self.label154:destroy(); self.label154 = nil; end;
if self.label34 ~= nil then self.label34:destroy(); self.label34 = nil; end;
if self.edit5 ~= nil then self.edit5:destroy(); self.edit5 = nil; end;
if self.label126 ~= nil then self.label126:destroy(); self.label126 = nil; end;
if self.edit204 ~= nil then self.edit204:destroy(); self.edit204 = nil; end;
if self.edit210 ~= nil then self.edit210:destroy(); self.edit210 = nil; end;
if self.label41 ~= nil then self.label41:destroy(); self.label41 = nil; end;
if self.label145 ~= nil then self.label145:destroy(); self.label145 = nil; end;
if self.label72 ~= nil then self.label72:destroy(); self.label72 = nil; end;
if self.label88 ~= nil then self.label88:destroy(); self.label88 = nil; end;
if self.rectangle15 ~= nil then self.rectangle15:destroy(); self.rectangle15 = nil; end;
if self.label12 ~= nil then self.label12:destroy(); self.label12 = nil; end;
if self.label190 ~= nil then self.label190:destroy(); self.label190 = nil; end;
if self.edit68 ~= nil then self.edit68:destroy(); self.edit68 = nil; end;
if self.edit72 ~= nil then self.edit72:destroy(); self.edit72 = nil; end;
if self.edit179 ~= nil then self.edit179:destroy(); self.edit179 = nil; end;
if self.rectangle28 ~= nil then self.rectangle28:destroy(); self.rectangle28 = nil; end;
if self.label131 ~= nil then self.label131:destroy(); self.label131 = nil; end;
if self.label16 ~= nil then self.label16:destroy(); self.label16 = nil; end;
if self.button29 ~= nil then self.button29:destroy(); self.button29 = nil; end;
if self.edit10 ~= nil then self.edit10:destroy(); self.edit10 = nil; end;
if self.edit106 ~= nil then self.edit106:destroy(); self.edit106 = nil; end;
if self.edit31 ~= nil then self.edit31:destroy(); self.edit31 = nil; end;
if self.edit125 ~= nil then self.edit125:destroy(); self.edit125 = nil; end;
if self.edit1 ~= nil then self.edit1:destroy(); self.edit1 = nil; end;
if self.edit158 ~= nil then self.edit158:destroy(); self.edit158 = nil; end;
if self.edit79 ~= nil then self.edit79:destroy(); self.edit79 = nil; end;
if self.rectangle26 ~= nil then self.rectangle26:destroy(); self.rectangle26 = nil; end;
if self.label78 ~= nil then self.label78:destroy(); self.label78 = nil; end;
if self.dataLink16 ~= nil then self.dataLink16:destroy(); self.dataLink16 = nil; end;
if self.label101 ~= nil then self.label101:destroy(); self.label101 = nil; end;
if self.edit175 ~= nil then self.edit175:destroy(); self.edit175 = nil; end;
if self.layout4 ~= nil then self.layout4:destroy(); self.layout4 = nil; end;
if self.button59 ~= nil then self.button59:destroy(); self.button59 = nil; end;
if self.edit101 ~= nil then self.edit101:destroy(); self.edit101 = nil; end;
if self.button80 ~= nil then self.button80:destroy(); self.button80 = nil; end;
if self.label167 ~= nil then self.label167:destroy(); self.label167 = nil; end;
if self.image3 ~= nil then self.image3:destroy(); self.image3 = nil; end;
if self.edit231 ~= nil then self.edit231:destroy(); self.edit231 = nil; end;
if self.edit164 ~= nil then self.edit164:destroy(); self.edit164 = nil; end;
if self.image8 ~= nil then self.image8:destroy(); self.image8 = nil; end;
if self.label58 ~= nil then self.label58:destroy(); self.label58 = nil; end;
if self.label114 ~= nil then self.label114:destroy(); self.label114 = nil; end;
if self.label197 ~= nil then self.label197:destroy(); self.label197 = nil; end;
if self.label135 ~= nil then self.label135:destroy(); self.label135 = nil; end;
if self.layout20 ~= nil then self.layout20:destroy(); self.layout20 = nil; end;
if self.edit23 ~= nil then self.edit23:destroy(); self.edit23 = nil; end;
if self.label155 ~= nil then self.label155:destroy(); self.label155 = nil; end;
if self.layout18 ~= nil then self.layout18:destroy(); self.layout18 = nil; end;
if self.label56 ~= nil then self.label56:destroy(); self.label56 = nil; end;
if self.edit139 ~= nil then self.edit139:destroy(); self.edit139 = nil; end;
if self.rectangle6 ~= nil then self.rectangle6:destroy(); self.rectangle6 = nil; end;
if self.label21 ~= nil then self.label21:destroy(); self.label21 = nil; end;
if self.edit122 ~= nil then self.edit122:destroy(); self.edit122 = nil; end;
if self.label120 ~= nil then self.label120:destroy(); self.label120 = nil; end;
if self.edit40 ~= nil then self.edit40:destroy(); self.edit40 = nil; end;
if self.edit110 ~= nil then self.edit110:destroy(); self.edit110 = nil; end;
if self.dataLink2 ~= nil then self.dataLink2:destroy(); self.dataLink2 = nil; end;
if self.edit86 ~= nil then self.edit86:destroy(); self.edit86 = nil; end;
if self.edit38 ~= nil then self.edit38:destroy(); self.edit38 = nil; end;
if self.edit123 ~= nil then self.edit123:destroy(); self.edit123 = nil; end;
if self.edit143 ~= nil then self.edit143:destroy(); self.edit143 = nil; end;
if self.label130 ~= nil then self.label130:destroy(); self.label130 = nil; end;
if self.dataLink15 ~= nil then self.dataLink15:destroy(); self.dataLink15 = nil; end;
if self.button60 ~= nil then self.button60:destroy(); self.button60 = nil; end;
if self.edit206 ~= nil then self.edit206:destroy(); self.edit206 = nil; end;
if self.label54 ~= nil then self.label54:destroy(); self.label54 = nil; end;
if self.edit105 ~= nil then self.edit105:destroy(); self.edit105 = nil; end;
if self.label191 ~= nil then self.label191:destroy(); self.label191 = nil; end;
if self.edit239 ~= nil then self.edit239:destroy(); self.edit239 = nil; end;
if self.edit137 ~= nil then self.edit137:destroy(); self.edit137 = nil; end;
if self.edit146 ~= nil then self.edit146:destroy(); self.edit146 = nil; end;
if self.checkBox13 ~= nil then self.checkBox13:destroy(); self.checkBox13 = nil; end;
if self.button9 ~= nil then self.button9:destroy(); self.button9 = nil; end;
if self.label152 ~= nil then self.label152:destroy(); self.label152 = nil; end;
if self.label182 ~= nil then self.label182:destroy(); self.label182 = nil; end;
if self.edit6 ~= nil then self.edit6:destroy(); self.edit6 = nil; end;
if self.edit230 ~= nil then self.edit230:destroy(); self.edit230 = nil; end;
if self.edit90 ~= nil then self.edit90:destroy(); self.edit90 = nil; end;
if self.label18 ~= nil then self.label18:destroy(); self.label18 = nil; end;
if self.edit238 ~= nil then self.edit238:destroy(); self.edit238 = nil; end;
if self.edit3 ~= nil then self.edit3:destroy(); self.edit3 = nil; end;
if self.edit49 ~= nil then self.edit49:destroy(); self.edit49 = nil; end;
if self.label62 ~= nil then self.label62:destroy(); self.label62 = nil; end;
if self.rectangle32 ~= nil then self.rectangle32:destroy(); self.rectangle32 = nil; end;
if self.label117 ~= nil then self.label117:destroy(); self.label117 = nil; end;
if self.layout16 ~= nil then self.layout16:destroy(); self.layout16 = nil; end;
if self.layout21 ~= nil then self.layout21:destroy(); self.layout21 = nil; end;
if self.edit140 ~= nil then self.edit140:destroy(); self.edit140 = nil; end;
if self.image18 ~= nil then self.image18:destroy(); self.image18 = nil; end;
if self.checkBox4 ~= nil then self.checkBox4:destroy(); self.checkBox4 = nil; end;
if self.edit18 ~= nil then self.edit18:destroy(); self.edit18 = nil; end;
if self.edit25 ~= nil then self.edit25:destroy(); self.edit25 = nil; end;
if self.scrollBox1 ~= nil then self.scrollBox1:destroy(); self.scrollBox1 = nil; end;
if self.edit189 ~= nil then self.edit189:destroy(); self.edit189 = nil; end;
if self.edit94 ~= nil then self.edit94:destroy(); self.edit94 = nil; end;
if self.edit167 ~= nil then self.edit167:destroy(); self.edit167 = nil; end;
if self.label171 ~= nil then self.label171:destroy(); self.label171 = nil; end;
if self.label33 ~= nil then self.label33:destroy(); self.label33 = nil; end;
if self.rectangle11 ~= nil then self.rectangle11:destroy(); self.rectangle11 = nil; end;
if self.label123 ~= nil then self.label123:destroy(); self.label123 = nil; end;
if self.label178 ~= nil then self.label178:destroy(); self.label178 = nil; end;
if self.label44 ~= nil then self.label44:destroy(); self.label44 = nil; end;
if self.button62 ~= nil then self.button62:destroy(); self.button62 = nil; end;
if self.edit46 ~= nil then self.edit46:destroy(); self.edit46 = nil; end;
if self.label95 ~= nil then self.label95:destroy(); self.label95 = nil; end;
if self.label179 ~= nil then self.label179:destroy(); self.label179 = nil; end;
if self.image19 ~= nil then self.image19:destroy(); self.image19 = nil; end;
if self.edit229 ~= nil then self.edit229:destroy(); self.edit229 = nil; end;
if self.label83 ~= nil then self.label83:destroy(); self.label83 = nil; end;
if self.label165 ~= nil then self.label165:destroy(); self.label165 = nil; end;
if self.label174 ~= nil then self.label174:destroy(); self.label174 = nil; end;
if self.button49 ~= nil then self.button49:destroy(); self.button49 = nil; end;
if self.label98 ~= nil then self.label98:destroy(); self.label98 = nil; end;
if self.edit104 ~= nil then self.edit104:destroy(); self.edit104 = nil; end;
if self.label113 ~= nil then self.label113:destroy(); self.label113 = nil; end;
if self.edit207 ~= nil then self.edit207:destroy(); self.edit207 = nil; end;
if self.edit7 ~= nil then self.edit7:destroy(); self.edit7 = nil; end;
if self.edit108 ~= nil then self.edit108:destroy(); self.edit108 = nil; end;
if self.label55 ~= nil then self.label55:destroy(); self.label55 = nil; end;
if self.edit12 ~= nil then self.edit12:destroy(); self.edit12 = nil; end;
if self.edit80 ~= nil then self.edit80:destroy(); self.edit80 = nil; end;
if self.label66 ~= nil then self.label66:destroy(); self.label66 = nil; end;
if self.edit95 ~= nil then self.edit95:destroy(); self.edit95 = nil; end;
if self.edit35 ~= nil then self.edit35:destroy(); self.edit35 = nil; end;
if self.rectangle21 ~= nil then self.rectangle21:destroy(); self.rectangle21 = nil; end;
if self.label26 ~= nil then self.label26:destroy(); self.label26 = nil; end;
if self.image14 ~= nil then self.image14:destroy(); self.image14 = nil; end;
if self.edit171 ~= nil then self.edit171:destroy(); self.edit171 = nil; end;
if self.dataLink13 ~= nil then self.dataLink13:destroy(); self.dataLink13 = nil; end;
if self.edit186 ~= nil then self.edit186:destroy(); self.edit186 = nil; end;
if self.edit97 ~= nil then self.edit97:destroy(); self.edit97 = nil; end;
if self.checkBox6 ~= nil then self.checkBox6:destroy(); self.checkBox6 = nil; end;
if self.edit57 ~= nil then self.edit57:destroy(); self.edit57 = nil; end;
if self.rectangle19 ~= nil then self.rectangle19:destroy(); self.rectangle19 = nil; end;
if self.image2 ~= nil then self.image2:destroy(); self.image2 = nil; end;
if self.label112 ~= nil then self.label112:destroy(); self.label112 = nil; end;
if self.label65 ~= nil then self.label65:destroy(); self.label65 = nil; end;
if self.layout3 ~= nil then self.layout3:destroy(); self.layout3 = nil; end;
if self.rectangle22 ~= nil then self.rectangle22:destroy(); self.rectangle22 = nil; end;
if self.edit63 ~= nil then self.edit63:destroy(); self.edit63 = nil; end;
if self.label121 ~= nil then self.label121:destroy(); self.label121 = nil; end;
if self.checkBox8 ~= nil then self.checkBox8:destroy(); self.checkBox8 = nil; end;
if self.edit147 ~= nil then self.edit147:destroy(); self.edit147 = nil; end;
if self.image6 ~= nil then self.image6:destroy(); self.image6 = nil; end;
if self.rectangle1 ~= nil then self.rectangle1:destroy(); self.rectangle1 = nil; end;
if self.edit50 ~= nil then self.edit50:destroy(); self.edit50 = nil; end;
if self.rectangle29 ~= nil then self.rectangle29:destroy(); self.rectangle29 = nil; end;
if self.label60 ~= nil then self.label60:destroy(); self.label60 = nil; end;
if self.label64 ~= nil then self.label64:destroy(); self.label64 = nil; end;
if self.label169 ~= nil then self.label169:destroy(); self.label169 = nil; end;
if self.button76 ~= nil then self.button76:destroy(); self.button76 = nil; end;
if self.edit88 ~= nil then self.edit88:destroy(); self.edit88 = nil; end;
if self.label150 ~= nil then self.label150:destroy(); self.label150 = nil; end;
if self.edit44 ~= nil then self.edit44:destroy(); self.edit44 = nil; end;
if self.label173 ~= nil then self.label173:destroy(); self.label173 = nil; end;
if self.edit89 ~= nil then self.edit89:destroy(); self.edit89 = nil; end;
if self.dataLink14 ~= nil then self.dataLink14:destroy(); self.dataLink14 = nil; end;
if self.label4 ~= nil then self.label4:destroy(); self.label4 = nil; end;
if self.button34 ~= nil then self.button34:destroy(); self.button34 = nil; end;
if self.button63 ~= nil then self.button63:destroy(); self.button63 = nil; end;
if self.label136 ~= nil then self.label136:destroy(); self.label136 = nil; end;
if self.rectangle25 ~= nil then self.rectangle25:destroy(); self.rectangle25 = nil; end;
if self.label74 ~= nil then self.label74:destroy(); self.label74 = nil; end;
if self.label189 ~= nil then self.label189:destroy(); self.label189 = nil; end;
if self.label149 ~= nil then self.label149:destroy(); self.label149 = nil; end;
if self.dataLink19 ~= nil then self.dataLink19:destroy(); self.dataLink19 = nil; end;
if self.edit148 ~= nil then self.edit148:destroy(); self.edit148 = nil; end;
if self.button69 ~= nil then self.button69:destroy(); self.button69 = nil; end;
if self.button50 ~= nil then self.button50:destroy(); self.button50 = nil; end;
if self.label180 ~= nil then self.label180:destroy(); self.label180 = nil; end;
if self.checkBox20 ~= nil then self.checkBox20:destroy(); self.checkBox20 = nil; end;
if self.label172 ~= nil then self.label172:destroy(); self.label172 = nil; end;
if self.button22 ~= nil then self.button22:destroy(); self.button22 = nil; end;
if self.button48 ~= nil then self.button48:destroy(); self.button48 = nil; end;
if self.edit53 ~= nil then self.edit53:destroy(); self.edit53 = nil; end;
if self.edit180 ~= nil then self.edit180:destroy(); self.edit180 = nil; end;
if self.edit232 ~= nil then self.edit232:destroy(); self.edit232 = nil; end;
if self.dataLink17 ~= nil then self.dataLink17:destroy(); self.dataLink17 = nil; end;
if self.image16 ~= nil then self.image16:destroy(); self.image16 = nil; end;
if self.label28 ~= nil then self.label28:destroy(); self.label28 = nil; end;
if self.label9 ~= nil then self.label9:destroy(); self.label9 = nil; end;
if self.rectangle8 ~= nil then self.rectangle8:destroy(); self.rectangle8 = nil; end;
if self.edit107 ~= nil then self.edit107:destroy(); self.edit107 = nil; end;
if self.label157 ~= nil then self.label157:destroy(); self.label157 = nil; end;
if self.layout19 ~= nil then self.layout19:destroy(); self.layout19 = nil; end;
if self.edit217 ~= nil then self.edit217:destroy(); self.edit217 = nil; end;
if self.edit234 ~= nil then self.edit234:destroy(); self.edit234 = nil; end;
if self.button42 ~= nil then self.button42:destroy(); self.button42 = nil; end;
if self.edit237 ~= nil then self.edit237:destroy(); self.edit237 = nil; end;
if self.edit30 ~= nil then self.edit30:destroy(); self.edit30 = nil; end;
if self.checkBox5 ~= nil then self.checkBox5:destroy(); self.checkBox5 = nil; end;
if self.edit56 ~= nil then self.edit56:destroy(); self.edit56 = nil; end;
if self.label137 ~= nil then self.label137:destroy(); self.label137 = nil; end;
if self.label80 ~= nil then self.label80:destroy(); self.label80 = nil; end;
if self.button57 ~= nil then self.button57:destroy(); self.button57 = nil; end;
if self.edit197 ~= nil then self.edit197:destroy(); self.edit197 = nil; end;
if self.edit141 ~= nil then self.edit141:destroy(); self.edit141 = nil; end;
if self.edit55 ~= nil then self.edit55:destroy(); self.edit55 = nil; end;
if self.edit43 ~= nil then self.edit43:destroy(); self.edit43 = nil; end;
if self.label118 ~= nil then self.label118:destroy(); self.label118 = nil; end;
if self.label17 ~= nil then self.label17:destroy(); self.label17 = nil; end;
if self.label100 ~= nil then self.label100:destroy(); self.label100 = nil; end;
if self.edit75 ~= nil then self.edit75:destroy(); self.edit75 = nil; end;
if self.label156 ~= nil then self.label156:destroy(); self.label156 = nil; end;
if self.edit193 ~= nil then self.edit193:destroy(); self.edit193 = nil; end;
if self.edit65 ~= nil then self.edit65:destroy(); self.edit65 = nil; end;
if self.button23 ~= nil then self.button23:destroy(); self.button23 = nil; end;
if self.edit130 ~= nil then self.edit130:destroy(); self.edit130 = nil; end;
if self.edit39 ~= nil then self.edit39:destroy(); self.edit39 = nil; end;
if self.label168 ~= nil then self.label168:destroy(); self.label168 = nil; end;
if self.dataLink1 ~= nil then self.dataLink1:destroy(); self.dataLink1 = nil; end;
if self.edit144 ~= nil then self.edit144:destroy(); self.edit144 = nil; end;
if self.rectangle27 ~= nil then self.rectangle27:destroy(); self.rectangle27 = nil; end;
if self.button12 ~= nil then self.button12:destroy(); self.button12 = nil; end;
if self.label187 ~= nil then self.label187:destroy(); self.label187 = nil; end;
if self.label36 ~= nil then self.label36:destroy(); self.label36 = nil; end;
if self.edit203 ~= nil then self.edit203:destroy(); self.edit203 = nil; end;
if self.rectangle3 ~= nil then self.rectangle3:destroy(); self.rectangle3 = nil; end;
if self.image17 ~= nil then self.image17:destroy(); self.image17 = nil; end;
if self.edit151 ~= nil then self.edit151:destroy(); self.edit151 = nil; end;
if self.edit132 ~= nil then self.edit132:destroy(); self.edit132 = nil; end;
if self.edit188 ~= nil then self.edit188:destroy(); self.edit188 = nil; end;
if self.edit219 ~= nil then self.edit219:destroy(); self.edit219 = nil; end;
if self.edit51 ~= nil then self.edit51:destroy(); self.edit51 = nil; end;
if self.edit119 ~= nil then self.edit119:destroy(); self.edit119 = nil; end;
if self.button17 ~= nil then self.button17:destroy(); self.button17 = nil; end;
if self.edit48 ~= nil then self.edit48:destroy(); self.edit48 = nil; end;
if self.label85 ~= nil then self.label85:destroy(); self.label85 = nil; end;
if self.label46 ~= nil then self.label46:destroy(); self.label46 = nil; end;
if self.button25 ~= nil then self.button25:destroy(); self.button25 = nil; end;
if self.checkBox2 ~= nil then self.checkBox2:destroy(); self.checkBox2 = nil; end;
if self.edit168 ~= nil then self.edit168:destroy(); self.edit168 = nil; end;
if self.edit190 ~= nil then self.edit190:destroy(); self.edit190 = nil; end;
if self.rectangle31 ~= nil then self.rectangle31:destroy(); self.rectangle31 = nil; end;
if self.label183 ~= nil then self.label183:destroy(); self.label183 = nil; end;
if self.label153 ~= nil then self.label153:destroy(); self.label153 = nil; end;
if self.edit78 ~= nil then self.edit78:destroy(); self.edit78 = nil; end;
if self.label87 ~= nil then self.label87:destroy(); self.label87 = nil; end;
if self.label104 ~= nil then self.label104:destroy(); self.label104 = nil; end;
if self.button61 ~= nil then self.button61:destroy(); self.button61 = nil; end;
if self.edit202 ~= nil then self.edit202:destroy(); self.edit202 = nil; end;
if self.edit91 ~= nil then self.edit91:destroy(); self.edit91 = nil; end;
if self.label25 ~= nil then self.label25:destroy(); self.label25 = nil; end;
if self.edit70 ~= nil then self.edit70:destroy(); self.edit70 = nil; end;
if self.button46 ~= nil then self.button46:destroy(); self.button46 = nil; end;
if self.edit22 ~= nil then self.edit22:destroy(); self.edit22 = nil; end;
if self.button75 ~= nil then self.button75:destroy(); self.button75 = nil; end;
if self.label5 ~= nil then self.label5:destroy(); self.label5 = nil; end;
if self.layout6 ~= nil then self.layout6:destroy(); self.layout6 = nil; end;
if self.rectangle13 ~= nil then self.rectangle13:destroy(); self.rectangle13 = nil; end;
if self.dataLink11 ~= nil then self.dataLink11:destroy(); self.dataLink11 = nil; end;
if self.label141 ~= nil then self.label141:destroy(); self.label141 = nil; end;
if self.rectangle39 ~= nil then self.rectangle39:destroy(); self.rectangle39 = nil; end;
if self.rectangle41 ~= nil then self.rectangle41:destroy(); self.rectangle41 = nil; end;
if self.button19 ~= nil then self.button19:destroy(); self.button19 = nil; end;
if self.button14 ~= nil then self.button14:destroy(); self.button14 = nil; end;
if self.edit136 ~= nil then self.edit136:destroy(); self.edit136 = nil; end;
if self.edit212 ~= nil then self.edit212:destroy(); self.edit212 = nil; end;
if self.label134 ~= nil then self.label134:destroy(); self.label134 = nil; end;
if self.checkBox1 ~= nil then self.checkBox1:destroy(); self.checkBox1 = nil; end;
if self.edit173 ~= nil then self.edit173:destroy(); self.edit173 = nil; end;
if self.rectangle24 ~= nil then self.rectangle24:destroy(); self.rectangle24 = nil; end;
if self.edit227 ~= nil then self.edit227:destroy(); self.edit227 = nil; end;
if self.edit20 ~= nil then self.edit20:destroy(); self.edit20 = nil; end;
self:_oldLFMDestroy();
end;
obj:endUpdate();
return obj;
end;
function newfrmFichaRPGmeister2_svg()
local retObj = nil;
__o_rrpgObjs.beginObjectsLoading();
__o_Utils.tryFinally(
function()
retObj = constructNew_frmFichaRPGmeister2_svg();
end,
function()
__o_rrpgObjs.endObjectsLoading();
end);
assert(retObj ~= nil);
return retObj;
end;
local _frmFichaRPGmeister2_svg = {
newEditor = newfrmFichaRPGmeister2_svg,
new = newfrmFichaRPGmeister2_svg,
name = "frmFichaRPGmeister2_svg",
dataType = "",
formType = "undefined",
formComponentName = "form",
title = "",
description=""};
frmFichaRPGmeister2_svg = _frmFichaRPGmeister2_svg;
Firecast.registrarForm(_frmFichaRPGmeister2_svg);
return _frmFichaRPGmeister2_svg;
| {
"content_hash": "c0fd56569ab0128b9923b6f58cc61a92",
"timestamp": "",
"source": "github",
"line_count": 9350,
"max_line_length": 129,
"avg_line_length": 39.365561497326205,
"alnum_prop": 0.621091754784442,
"repo_name": "rrpgfirecast/firecast",
"id": "de6f04a2d2b33ffad8fc9d7006d3b4ede52ee03c",
"size": "368108",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Plugins/Sheets/Ficha Starfinder/output/rdkObjs/FichaStarfinder/02.Ataques.lfm.lua",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "2671"
},
{
"name": "HTML",
"bytes": "3233"
},
{
"name": "Java",
"bytes": "264699"
},
{
"name": "JavaScript",
"bytes": "30233"
},
{
"name": "Lua",
"bytes": "109149272"
},
{
"name": "Pascal",
"bytes": "50948"
},
{
"name": "Shell",
"bytes": "8747"
}
],
"symlink_target": ""
} |
local Library = require "CoronaLibrary"
-- Create library
local lib = Library:new{ name='plugin.playfab.combo', publisherId='com.playfab' }
-------------------------------------------------------------------------------
-- BEGIN (Insert your implementation starting here)
-------------------------------------------------------------------------------
local json = require("plugin.playfab.combo.json")
local defaults = require("plugin.playfab.combo.defaults")
local _directories = defaults.directories
local _isDirWriteable = defaults.writePermissions
local _isDirReadable = defaults.readPermissions
function lib.loadTable( filename, baseDir )
local result = nil
baseDir = baseDir or _directories.loadDir
-- Validate params
assert( type(filename) == "string", "'loadTable' invalid filename" )
assert( _isDirReadable[baseDir], "'loadTable' invalid baseDir" )
local path = system.pathForFile( filename, baseDir )
local file = io.open( path, "r" )
if file then
-- read all contents of file into a string
local contents = file:read( "*a" )
result = json.decode( contents )
io.close( file )
end
return result
end
function lib.saveTable( t, filename, baseDir )
local result = false
baseDir = baseDir or _directories.saveDir
-- Validate params
assert( type(t) == "table", "'saveTable' invalid table" )
assert( type(filename) == "string", "'saveTable' invalid filename" )
assert( _isDirWriteable[baseDir], "'saveTable' invalid baseDir" )
local path = system.pathForFile( filename, baseDir )
local file = io.open( path, "w" )
if file then
local contents = json.encode( t )
file:write( contents )
io.close( file )
result = true
end
return result
end
-- printTable( t [, label [, level ]] )
function lib.printTable( t, label, level )
-- Validate params
assert(
"table" == type(t),
"Bad argument 1 to 'printTable' (table expected, got " .. type(t) .. ")" )
if label then print( label ) end
level = level or 1
for k,v in pairs( t ) do
-- Indent according to nesting 'level'
local prefix = ""
for i=1,level do
prefix = prefix .. "\t"
end
-- Print key/value pair
print( prefix .. "[" .. tostring(k) .. "] = " .. tostring(v) )
-- Recurse on tables
if type( v ) == "table" then
print( prefix .. "{" )
printTable( v, nil, level + 1 )
print( prefix .. "}" )
end
end
end
lib.IPlayFabHttps = require("plugin.playfab.combo.IPlayFabHttps")
lib.json = require("plugin.playfab.combo.json")
lib.PlayFabAdminApi = require("plugin.playfab.combo.PlayFabAdminApi")
lib.PlayFabClientApi = require("plugin.playfab.combo.PlayFabClientApi")
lib.PlayFabMatchmakerApi = require("plugin.playfab.combo.PlayFabMatchmakerApi")
lib.PlayFabServerApi = require("plugin.playfab.combo.PlayFabServerApi")
lib.PlayFabSettings = require("plugin.playfab.combo.PlayFabSettings")
local PlayFabHttpsCorona = require("plugin.playfab.combo.PlayFabHttpsCorona")
lib.IPlayFabHttps.SetHttp(PlayFabHttpsCorona) -- Assign the Corona-specific IHttps wrapper
-------------------------------------------------------------------------------
-- END
-------------------------------------------------------------------------------
-- Return library instance
return lib
| {
"content_hash": "08da7f5045ed99ae98f1d51cca5f087d",
"timestamp": "",
"source": "github",
"line_count": 106,
"max_line_length": 90,
"avg_line_length": 30.254716981132077,
"alnum_prop": 0.640473963205488,
"repo_name": "JoshuaStrunk/SDKGenerator",
"id": "adb486d7c69e203a3cc6c54af35e3247a56708c0",
"size": "3207",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "targets/LuaSdk/GlobalFiles/_Build/CoronaPluginBuilders/combo/lua/plugin/playfab/combo.lua",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "ActionScript",
"bytes": "67019"
},
{
"name": "Batchfile",
"bytes": "31713"
},
{
"name": "C",
"bytes": "1411"
},
{
"name": "C#",
"bytes": "1611330"
},
{
"name": "C++",
"bytes": "333671"
},
{
"name": "HTML",
"bytes": "300894"
},
{
"name": "Java",
"bytes": "475707"
},
{
"name": "JavaScript",
"bytes": "317621"
},
{
"name": "Lua",
"bytes": "51285"
},
{
"name": "Makefile",
"bytes": "3864"
},
{
"name": "Objective-C",
"bytes": "59201"
},
{
"name": "PHP",
"bytes": "4240"
},
{
"name": "PowerShell",
"bytes": "6274"
},
{
"name": "Python",
"bytes": "742"
},
{
"name": "Shell",
"bytes": "16059"
},
{
"name": "TypeScript",
"bytes": "71277"
}
],
"symlink_target": ""
} |
"""Support for package tracking sensors from 17track.net."""
import logging
from datetime import timedelta
import voluptuous as vol
from homeassistant.components.sensor import PLATFORM_SCHEMA
from homeassistant.const import (
ATTR_ATTRIBUTION,
ATTR_LOCATION,
CONF_PASSWORD,
CONF_SCAN_INTERVAL,
CONF_USERNAME,
)
from homeassistant.helpers import aiohttp_client, config_validation as cv
from homeassistant.helpers.entity import Entity
from homeassistant.util import Throttle, slugify
_LOGGER = logging.getLogger(__name__)
ATTR_DESTINATION_COUNTRY = "destination_country"
ATTR_FRIENDLY_NAME = "friendly_name"
ATTR_INFO_TEXT = "info_text"
ATTR_ORIGIN_COUNTRY = "origin_country"
ATTR_PACKAGES = "packages"
ATTR_PACKAGE_TYPE = "package_type"
ATTR_STATUS = "status"
ATTR_TRACKING_INFO_LANGUAGE = "tracking_info_language"
ATTR_TRACKING_NUMBER = "tracking_number"
CONF_SHOW_ARCHIVED = "show_archived"
CONF_SHOW_DELIVERED = "show_delivered"
DATA_PACKAGES = "package_data"
DATA_SUMMARY = "summary_data"
DEFAULT_ATTRIBUTION = "Data provided by 17track.net"
DEFAULT_SCAN_INTERVAL = timedelta(minutes=10)
UNIQUE_ID_TEMPLATE = "package_{0}_{1}"
ENTITY_ID_TEMPLATE = "sensor.seventeentrack_package_{0}"
NOTIFICATION_DELIVERED_ID = "package_delivered_{0}"
NOTIFICATION_DELIVERED_TITLE = "Package {0} delivered"
NOTIFICATION_DELIVERED_MESSAGE = (
"Package Delivered: {0}<br />" + "Visit 17.track for more information: "
"https://t.17track.net/track#nums={1}"
)
VALUE_DELIVERED = "Delivered"
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
{
vol.Required(CONF_USERNAME): cv.string,
vol.Required(CONF_PASSWORD): cv.string,
vol.Optional(CONF_SHOW_ARCHIVED, default=False): cv.boolean,
vol.Optional(CONF_SHOW_DELIVERED, default=False): cv.boolean,
}
)
async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
"""Configure the platform and add the sensors."""
from py17track import Client
from py17track.errors import SeventeenTrackError
websession = aiohttp_client.async_get_clientsession(hass)
client = Client(websession)
try:
login_result = await client.profile.login(
config[CONF_USERNAME], config[CONF_PASSWORD]
)
if not login_result:
_LOGGER.error("Invalid username and password provided")
return
except SeventeenTrackError as err:
_LOGGER.error("There was an error while logging in: %s", err)
return
scan_interval = config.get(CONF_SCAN_INTERVAL, DEFAULT_SCAN_INTERVAL)
data = SeventeenTrackData(
client,
async_add_entities,
scan_interval,
config[CONF_SHOW_ARCHIVED],
config[CONF_SHOW_DELIVERED],
)
await data.async_update()
class SeventeenTrackSummarySensor(Entity):
"""Define a summary sensor."""
def __init__(self, data, status, initial_state):
"""Initialize."""
self._attrs = {ATTR_ATTRIBUTION: DEFAULT_ATTRIBUTION}
self._data = data
self._state = initial_state
self._status = status
@property
def available(self):
"""Return whether the entity is available."""
return self._state is not None
@property
def device_state_attributes(self):
"""Return the device state attributes."""
return self._attrs
@property
def icon(self):
"""Return the icon."""
return "mdi:package"
@property
def name(self):
"""Return the name."""
return "Seventeentrack Packages {0}".format(self._status)
@property
def state(self):
"""Return the state."""
return self._state
@property
def unique_id(self):
"""Return a unique, HASS-friendly identifier for this entity."""
return "summary_{0}_{1}".format(self._data.account_id, slugify(self._status))
@property
def unit_of_measurement(self):
"""Return the unit the value is expressed in."""
return "packages"
async def async_update(self):
"""Update the sensor."""
await self._data.async_update()
package_data = []
for package in self._data.packages.values():
if package.status != self._status:
continue
package_data.append(
{
ATTR_FRIENDLY_NAME: package.friendly_name,
ATTR_INFO_TEXT: package.info_text,
ATTR_STATUS: package.status,
ATTR_TRACKING_NUMBER: package.tracking_number,
}
)
if package_data:
self._attrs[ATTR_PACKAGES] = package_data
self._state = self._data.summary.get(self._status)
class SeventeenTrackPackageSensor(Entity):
"""Define an individual package sensor."""
def __init__(self, data, package):
"""Initialize."""
self._attrs = {
ATTR_ATTRIBUTION: DEFAULT_ATTRIBUTION,
ATTR_DESTINATION_COUNTRY: package.destination_country,
ATTR_INFO_TEXT: package.info_text,
ATTR_LOCATION: package.location,
ATTR_ORIGIN_COUNTRY: package.origin_country,
ATTR_PACKAGE_TYPE: package.package_type,
ATTR_TRACKING_INFO_LANGUAGE: package.tracking_info_language,
ATTR_TRACKING_NUMBER: package.tracking_number,
}
self._data = data
self._friendly_name = package.friendly_name
self._state = package.status
self._tracking_number = package.tracking_number
self.entity_id = ENTITY_ID_TEMPLATE.format(self._tracking_number)
@property
def available(self):
"""Return whether the entity is available."""
return self._data.packages.get(self._tracking_number) is not None
@property
def device_state_attributes(self):
"""Return the device state attributes."""
return self._attrs
@property
def icon(self):
"""Return the icon."""
return "mdi:package"
@property
def name(self):
"""Return the name."""
name = self._friendly_name
if not name:
name = self._tracking_number
return "Seventeentrack Package: {0}".format(name)
@property
def state(self):
"""Return the state."""
return self._state
@property
def unique_id(self):
"""Return a unique, HASS-friendly identifier for this entity."""
return UNIQUE_ID_TEMPLATE.format(self._data.account_id, self._tracking_number)
async def async_update(self):
"""Update the sensor."""
await self._data.async_update()
if not self.available:
self.hass.async_create_task(self._remove())
return
package = self._data.packages.get(self._tracking_number, None)
# If the user has elected to not see delivered packages and one gets
# delivered, post a notification:
if package.status == VALUE_DELIVERED and not self._data.show_delivered:
self._notify_delivered()
self.hass.async_create_task(self._remove())
return
self._attrs.update(
{ATTR_INFO_TEXT: package.info_text, ATTR_LOCATION: package.location}
)
self._state = package.status
self._friendly_name = package.friendly_name
async def _remove(self):
"""Remove entity itself."""
await self.async_remove()
reg = await self.hass.helpers.entity_registry.async_get_registry()
entity_id = reg.async_get_entity_id(
"sensor",
"seventeentrack",
UNIQUE_ID_TEMPLATE.format(self._data.account_id, self._tracking_number),
)
if entity_id:
reg.async_remove(entity_id)
def _notify_delivered(self):
"""Notify when package is delivered."""
_LOGGER.info("Package delivered: %s", self._tracking_number)
identification = (
self._friendly_name if self._friendly_name else self._tracking_number
)
message = NOTIFICATION_DELIVERED_MESSAGE.format(
self._tracking_number, identification
)
title = NOTIFICATION_DELIVERED_TITLE.format(identification)
notification_id = NOTIFICATION_DELIVERED_TITLE.format(self._tracking_number)
self.hass.components.persistent_notification.create(
message, title=title, notification_id=notification_id
)
class SeventeenTrackData:
"""Define a data handler for 17track.net."""
def __init__(
self, client, async_add_entities, scan_interval, show_archived, show_delivered
):
"""Initialize."""
self._async_add_entities = async_add_entities
self._client = client
self._scan_interval = scan_interval
self._show_archived = show_archived
self.account_id = client.profile.account_id
self.packages = {}
self.show_delivered = show_delivered
self.summary = {}
self.async_update = Throttle(self._scan_interval)(self._async_update)
self.first_update = True
async def _async_update(self):
"""Get updated data from 17track.net."""
from py17track.errors import SeventeenTrackError
try:
packages = await self._client.profile.packages(
show_archived=self._show_archived
)
_LOGGER.debug("New package data received: %s", packages)
new_packages = {p.tracking_number: p for p in packages}
to_add = set(new_packages) - set(self.packages)
_LOGGER.debug("Will add new tracking numbers: %s", to_add)
if to_add:
self._async_add_entities(
[
SeventeenTrackPackageSensor(self, new_packages[tracking_number])
for tracking_number in to_add
],
True,
)
self.packages = new_packages
except SeventeenTrackError as err:
_LOGGER.error("There was an error retrieving packages: %s", err)
try:
self.summary = await self._client.profile.summary(
show_archived=self._show_archived
)
_LOGGER.debug("New summary data received: %s", self.summary)
# creating summary sensors on first update
if self.first_update:
self.first_update = False
self._async_add_entities(
[
SeventeenTrackSummarySensor(self, status, quantity)
for status, quantity in self.summary.items()
],
True,
)
except SeventeenTrackError as err:
_LOGGER.error("There was an error retrieving the summary: %s", err)
self.summary = {}
| {
"content_hash": "9a3900a90478263f83bb1057840697e6",
"timestamp": "",
"source": "github",
"line_count": 339,
"max_line_length": 88,
"avg_line_length": 32.10324483775811,
"alnum_prop": 0.6136175686851052,
"repo_name": "fbradyirl/home-assistant",
"id": "14539e342f18c4b9bba95f92b2cebd3c3911fde9",
"size": "10883",
"binary": false,
"copies": "1",
"ref": "refs/heads/dev",
"path": "homeassistant/components/seventeentrack/sensor.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "1175"
},
{
"name": "Dockerfile",
"bytes": "1829"
},
{
"name": "Python",
"bytes": "16494727"
},
{
"name": "Ruby",
"bytes": "745"
},
{
"name": "Shell",
"bytes": "17784"
}
],
"symlink_target": ""
} |
'use strict';
var ensureObject = require('es5-ext/object/valid-object')
, uncapitalize = require('es5-ext/string/#/uncapitalize')
, ensureType = require('dbjs/valid-dbjs-type')
, ensureStorage = require('dbjs-persistence/ensure-storage')
, resolveInstances = require('../../../business-processes/resolve')
, isBusinessProcessType = RegExp.prototype.test.bind(/^BusinessProcess[A-Z]/);
module.exports = function (type, data) {
ensureType(type);
if (!isBusinessProcessType(type.__id__)) {
throw new TypeError("Expected BusinessProcess type, but got " + type.__id__);
}
ensureObject(data);
var storage = ensureStorage(data.storage)
, serviceName = uncapitalize.call(type.__id__.slice('BusinessProcess'.length))
, ns = 'statistics/businessProcess/' + serviceName + '/certificate/'
, instances = resolveInstances(type).filterByKey('isSubmitted', true);
type.prototype.certificates.map.forEach(function (cert, key) {
var currentNs = ns + key + '/'
, keyPath = 'certificates/map/' + key + '/status';
var applicable = instances.filterByKeyPath('certificates/applicable', function (col) {
if (!col.object.master.certificates) return false;
return col.has(col.object.master.certificates.map[key]);
});
var pending = applicable.filterByKeyPath(keyPath, 'pending');
var sentBack = applicable.filterByKey('status', 'sentBack');
var approved = applicable.filterByKeyPath(keyPath, 'approved');
var rejected = applicable.filterByKeyPath(keyPath, 'rejected');
var pickup = approved.filterByKey('status', 'pickup');
var withdrawn = approved.filterByKey('status', 'withdrawn');
storage.trackCollectionSize(currentNs + 'waiting', applicable.filterByKeyPath(keyPath, null));
storage.trackCollectionSize(currentNs + 'pending', pending);
storage.trackCollectionSize(currentNs + 'sentBack', sentBack);
storage.trackCollectionSize(currentNs + 'approved', approved);
storage.trackCollectionSize(currentNs + 'rejected', rejected);
storage.trackCollectionSize(currentNs + 'pickup', pickup);
storage.trackCollectionSize(currentNs + 'withdrawn', withdrawn);
});
};
| {
"content_hash": "cb833bcdb950f05cea7ce71d48340e69",
"timestamp": "",
"source": "github",
"line_count": 47,
"max_line_length": 96,
"avg_line_length": 45.851063829787236,
"alnum_prop": 0.7164733178654292,
"repo_name": "egovernment/eregistrations",
"id": "092da8243e950b29f151d5427e55e3a0aea982b4",
"size": "2155",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "server/statistics/indexes/certificate.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "226973"
},
{
"name": "HTML",
"bytes": "40587"
},
{
"name": "JavaScript",
"bytes": "2316254"
},
{
"name": "Shell",
"bytes": "939"
},
{
"name": "Smarty",
"bytes": "122438"
}
],
"symlink_target": ""
} |
[![Plugin Homepage][badge:plugin-homepage]][plugin-homepage]
[![Build Status][badge:build]][gh:workflows-build]
[![License][badge:license]][gh:license]
[![GitHub releases][badge:release]][gh:releases]
[![Version][badge:version]][plugin-versions]
[![Downloads][badge:downloads]][plugin-homepage]
[![Financial Contributors on Open Collective][badge:open-collective]][open-collective]
<p align="center"><b>Translation plugin for IntelliJ based IDEs/Android Studio/HUAWEI DevEco Studio.</b></p>
<p align="center"><img src="https://cdn.jsdelivr.net/gh/YiiGuxing/TranslationPlugin@master/images/screenshots.gif" alt="screenshots"></p>
<br/><br/><br/>
[![Getting Started][badge:get-started-en]][get-started-en]
[![开始使用][badge:get-started-zh]][get-started-zh]
[![はじめに][badge:get-started-jp]][get-started-ja]
[![시작하기][badge:get-started-ko]][get-started-ko]
---
- [Features](#features)
- [Compatibility](#compatibility)
- [Installation](#installation)
- [Using the Plugin](#using-the-plugin)
- [Actions](#actions)
- [FAQ](#faq)
- [Support and Donations](#support-and-donations)
- [Contributors](#contributors)
- [Code Contributors](#code-contributors)
- [Financial Contributors](#financial-contributors)
## Features
- Multiple Translation Engines
- Google Translate
- Youdao Translate
- Baidu Translate
- Alibaba Translate
- Multilingual translation
- Document translation
- Text-to-speech
- Automatic word selection
- Automatic word breaks
- Word Book
## Compatibility
- Android Studio
- AppCode
- CLion
- DataGrip
- GoLand
- HUAWEI DevEco Studio
- IntelliJ IDEA Ultimate
- IntelliJ IDEA Community
- IntelliJ IDEA Educational
- MPS
- PhpStorm
- PyCharm Professional
- PyCharm Community
- PyCharm Educational
- Rider
- RubyMine
- WebStorm
## Installation
<a href="https://plugins.jetbrains.com/plugin/8579-translation" target="_blank">
<img src="https://cdn.jsdelivr.net/gh/YiiGuxing/TranslationPlugin@master/images/installation_button.svg" height="52" alt="Get from Marketplace" title="Get from Marketplace">
</a>
- **Installing from the plugin repository within the IDE:**
- <kbd>Preferences(Settings)</kbd> > <kbd>Plugins</kbd> > <kbd>Marketplace</kbd> > <kbd>Search and find <b>"Translation"</b></kbd> > <kbd>Install Plugin</kbd>.
- **Installing manually:**
- Download the plugin package on [GitHub Releases][gh:releases] or in the [JetBrains Plugin Repository][plugin-versions].
- <kbd>Preferences(Settings)</kbd> > <kbd>Plugins</kbd> > <kbd>⚙️</kbd> > <kbd>Install plugin from disk...</kbd> >
Select the plugin package and install (no need to unzip)
Restart the **IDE** after installation.
## Using The Plugin
1. **Sign up for a translation service (optional)**
- Sign up for a translation service ([Youdao Cloud][youdao-cloud],
[Baidu Translate Open Platform][baidu-translate], [Alibaba Cloud Machine Translation][ali-mt]) account,
open up the translation service and obtain the **Application ID** and **Key**.
- To bind the **Application ID** and **Key**:<kbd>Preferences(Settings)</kbd> > <kbd>Tools</kbd> > <kbd>
Translation</kbd> > <kbd>General</kbd> > <kbd>Translation Engine</kbd> > <kbd>Configure...</kbd>
Note: Please protect your **Application Key** to prevent any security breaches. If your account has any outstanding
debts, you will not be able to use it for these services.
2. **Begin translating**
<kbd>Select text or hover the mouse over the text</kbd> > <kbd>Right-click</kbd> > <kbd>Translate</kbd>
Or use shortcuts for translation, as detailed in **[Actions](#actions)**.
3. **Translate and replace**
Translate the target text and replace it. If the target language is English, the output has several formats: **in
camel case, with a word separator** (when the output contains multiple words, the separator can be configured in the
plugin configuration page: <kbd>Translation Settings</kbd> > <kbd>Translate and replace</kbd> > <kbd>Separator</kbd>)
and in the **original format**.
Instructions: <kbd>Select text or hover the mouse over the text</kbd> > <kbd>Right-click</kbd> > <kbd>Translate and
Replace...</kbd> (Or use shortcuts for translation, as detailed in **[Actions](#actions)**).
4. **Translate documents**
<kbd>Preferences(Settings)</kbd> > <kbd>Tools</kbd> > <kbd>Translation</kbd> > <kbd>Other</kbd> > <kbd>Translate
documents</kbd>: When you check this option, the document will be automatically translated when you view it.
5. **Switch translation engines**
Click the translation engine icon in the status bar or use the shortcut <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>
S</kbd> (Mac OS: <kbd>Control</kbd> + <kbd>Meta</kbd> + <kbd>Y</kbd>) to quickly switch between translation engines.
Currently, Google Translate, Youdao Translate, Baidu Translate and Alibaba Translate are supported.
## Actions
- **Show Translation Dialog...**
Open the translation dialog, which appears by default on the toolbar. Default shortcut:
- Windows - <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>O</kbd>
- Mac OS - <kbd>Control</kbd> + <kbd>Meta</kbd> + <kbd>I</kbd>
- **Translate**
Extract words and translate them. If you have already selected a text, extract the words from the portion of the text
you'd like translate. Otherwise, words are extracted automatically from the maximum range (this extraction can be
configured in Settings). This action is displayed by default in the editor's right-click context menu. Default
shortcut:
- Windows - <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>Y</kbd>
- Mac OS - <kbd>Control</kbd> + <kbd>Meta</kbd> + <kbd>U</kbd>
- **Translate(Inclusive)**
Extract words and translate them. Automatically extract and translate all words from a specific range, ignoring
manually selected text. Default shortcut: (None)
- **Translate(Exclusive)**
Extract words and translate them. Automatically extract the nearest single word, ignoring manually selected text.
Default shortcut: (None)
- **Translate and Replace...**
Translate and replace. The word extraction method works the same as when **translating**. Default shortcut:
- Windows - <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>X</kbd>
- Mac OS - <kbd>Control</kbd> + <kbd>Meta</kbd> + <kbd>O</kbd>
- **Translate Documentation**
Translate the contents of document comments. This option is displayed by default in the editor's context menu (
right-click to access) and is available when the cursor is in the document's comment block. Default shortcut: (None)
- **Toggle Quick Documentation Translation**
Toggle between the original and translated texts in Quick Documentation. This option is available when the focus is on
the Quick Documentation pop-up window or the documentation tool window. Default shortcut (same as **translation**
shortcut):
- Windows - <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>Y</kbd>
- Mac OS - <kbd>Control</kbd> + <kbd>Meta</kbd> + <kbd>U</kbd>
- **Translate Text Component**
Translate selected text in some text components (e.g. Quick Docs, popup hints, input boxes……). This does not support
automatic word extraction. Default shortcut (same as **translation** shortcut):
- Windows - <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>Y</kbd>
- Mac OS - <kbd>Control</kbd> + <kbd>Meta</kbd> + <kbd>U</kbd>
- **Choose Translator**
Quickly toggle between translation engines. Default shortcut:
- Windows - <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>S</kbd>
- Mac OS - <kbd>Control</kbd> + <kbd>Meta</kbd> + <kbd>Y</kbd>
- **Word of the Day**
Display the 'Word of the Day' dialog box. Default shortcut: (None)
- **Other**
- Translation dialog shortcuts:
- Display the list of source languages - <kbd>Alt</kbd> + <kbd>S</kbd>
- Display the list of target languages - <kbd>Alt</kbd> + <kbd>T</kbd>
- Switch between languages - <kbd>Alt</kbd> + <kbd>Shift</kbd> + <kbd>S</kbd>
- Pin/unpin a window - <kbd>Alt</kbd> + <kbd>P</kbd>
- Play TTS - <kbd>Alt/Meta/Shift</kbd> + <kbd>Enter</kbd>
- Save to Word Book - <kbd>Ctrl/Meta</kbd> + <kbd>F</kbd>
- Show history - <kbd>Ctrl/Meta</kbd> + <kbd>H</kbd>
- Copy translation - <kbd>Ctrl/Meta</kbd> + <kbd>Shift</kbd> + <kbd>C</kbd>
- Clear input - <kbd>Ctrl/Meta</kbd> + <kbd>Shift</kbd> + <kbd>BackSpace/Delete</kbd>
- Expand more translations - <kbd>Ctrl/Meta</kbd> + <kbd>Down</kbd>
- Hide more translations - <kbd>Ctrl/Meta</kbd> + <kbd>UP</kbd>
- Translation balloon shortcuts:
- Open dialog - <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>Y</kbd> / <kbd>Control</kbd> + <kbd>Meta</kbd> + <kbd>
U</kbd>
- Quick Documentation window shortcuts:
- Enable/disable automatic translation - <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>Y</kbd> / <kbd>Control</kbd>
+ <kbd>Meta</kbd> + <kbd>U</kbd>
## FAQ
> *If you have any questions, please ask [here][gh:discussions-q-a].*
1. **What should I do if there is a network error or the network connection times out?**
**A:**
- Check the network environment and make sure the network is running smoothly.
- Check whether a proxy is preventing the plugin from accessing the translation API.
- Check the IDE proxy configuration to see if that is the cause of the problem.
2. **What should I do if the translated content appears garbled?**
**A:** Garbled code generally appears when there are a lack of corresponding characters in the font. You can go to
the Settings page of the plugin to modify the font in order to fix the garbled code (as shown below).
![screenshots][file:settings-font]
3. **What if I can't save the application key?**
**A:** You can try changing the way passwords are saved to `In KeePass` (<kbd>Settings</kbd> > <kbd>Appearance &
Behavior</kbd> > <kbd>System Settings</kbd> > <kbd>Passwords</kbd>). For more details:
- For macOS, please refer to [#81][gh:#81]
- For Linux, please refer to [#115][gh:#115]
4. **What if the shortcuts don't work?**
**A:** The shortcut keys are most likely not working because they are being used in other plugins or external
applications. You can reset shortcut keys for the corresponding operations.
## Support and Donations
You can contribute and support this project by doing any of the following:
* Star the project on GitHub
* Give feedback
* Commit PR
* Contribute your ideas/suggestions
* Share the plugin with your friends/colleagues
* If you like the plugin, please consider making a donation to keep the plugin active:
<table>
<thead align="center">
<tr>
<th><a href="https://opencollective.com/translation-plugin" target="_blank">Open Collective</a></th>
<th><a href="https://pay.weixin.qq.com/index.php/public/wechatpay_en" target="_blank">WeChat Pay</a></th>
<th><a href="https://global.alipay.com" target="_blank">Alipay</a></th>
</tr>
</thead>
<tr align="center">
<td>
<a href="https://opencollective.com/translation-plugin/donate" target="_blank">
<img src="https://cdn.jsdelivr.net/gh/YiiGuxing/TranslationPlugin@master/images/donate_to_collective.svg" width=298 alt="Donate To Our Collective">
</a>
</td>
<td>
<a href="https://pay.weixin.qq.com/index.php/public/wechatpay_en" target="_blank">
<img src="https://cdn.jsdelivr.net/gh/YiiGuxing/TranslationPlugin@master/images/donating_wechat_pay.svg" alt="WeChat Play">
</a>
</td>
<td>
<a href="https://global.alipay.com" target="_blank">
<img src="https://cdn.jsdelivr.net/gh/YiiGuxing/TranslationPlugin@master/images/donating_alipay.svg" alt="Alipay">
</a>
</td>
</tr>
</table>
**Note:** After using Alipay/WeChat to pay for your donation, please provide your name/nickname and website by leaving
a message or via email in the following format:
`Name/Nickname [<website>][: message]` (website and message are optional.)
Example: `Yii.Guxing <github.com/YiiGuxing>: I like the plugin!`
If you choose to send an email, please also provide the following information:
```text
Donation Amount: <amount>
Payment Platform: Alipay/WeChat Pay
Payment Number (last 5 digits): <number>
```
Email address: [yii.guxing@outlook.com][mailto] (click to send email)
The name, website and total donation amount you provide will be added to the [donor list][file:financial-contributors].
**Thank you for your support!**
## Contributors
### Code Contributors
This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)].
<a href="https://github.com/YiiGuxing/TranslationPlugin/graphs/contributors"><img src="https://opencollective.com/translation-plugin/contributors.svg?width=890&button=false" /></a>
### Financial Contributors
Become a financial contributor and help us sustain our
community. [[Contribute][open-collective-contribute]]
#### Backers
Thank you to all our backers! ❤️ [[Become a backer](https://opencollective.com/translation-plugin/donate)]
<a href="https://opencollective.com/translation-plugin/donate" target="_blank"><img src="https://opencollective.com/translation-plugin/individuals.svg?width=800"></a>
#### Sponsors
Support this project by becoming a sponsor! Your logo will show up here with a link to your
website. [[Become a sponsor][open-collective-contribute]]
<a href="https://opencollective.com/translation-plugin/organization/0/website" target="_blank"><img src="https://opencollective.com/translation-plugin/organization/0/avatar.svg?avatarHeight=128"></a>
<a href="https://opencollective.com/translation-plugin/organization/1/website" target="_blank"><img src="https://opencollective.com/translation-plugin/organization/1/avatar.svg?avatarHeight=128"></a>
<a href="https://opencollective.com/translation-plugin/organization/2/website" target="_blank"><img src="https://opencollective.com/translation-plugin/organization/2/avatar.svg?avatarHeight=128"></a>
<a href="https://opencollective.com/translation-plugin/organization/3/website" target="_blank"><img src="https://opencollective.com/translation-plugin/organization/3/avatar.svg?avatarHeight=128"></a>
<a href="https://opencollective.com/translation-plugin/organization/4/website" target="_blank"><img src="https://opencollective.com/translation-plugin/organization/4/avatar.svg?avatarHeight=128"></a>
<a href="https://opencollective.com/translation-plugin/organization/5/website" target="_blank"><img src="https://opencollective.com/translation-plugin/organization/5/avatar.svg?avatarHeight=128"></a>
<a href="https://opencollective.com/translation-plugin/organization/6/website" target="_blank"><img src="https://opencollective.com/translation-plugin/organization/6/avatar.svg?avatarHeight=128"></a>
<a href="https://opencollective.com/translation-plugin/organization/7/website" target="_blank"><img src="https://opencollective.com/translation-plugin/organization/7/avatar.svg?avatarHeight=128"></a>
<a href="https://opencollective.com/translation-plugin/organization/8/website" target="_blank"><img src="https://opencollective.com/translation-plugin/organization/8/avatar.svg?avatarHeight=128"></a>
<a href="https://opencollective.com/translation-plugin/organization/9/website" target="_blank"><img src="https://opencollective.com/translation-plugin/organization/9/avatar.svg?avatarHeight=128"></a>
#### Donors
| **Name** | **Website** | **Amount** |
|----------|------------------------------------------------------------|------------|
| Sunlife95 | | 100 CNY |
| 马强@咔丘互娱 | | 100 CNY |
| Rrtt_2323 | | 100 CNY |
| 唐嘉 | [github.com/qq1427998646](https://github.com/qq1427998646) | 100 CNY |
| 凌高 | | 100 CNY |
| Mritd | [mritd.com](https://mritd.com) | 88.88 CNY |
| 三分醉 | [www.sanfenzui.com](http://www.sanfenzui.com) | 88 CNY |
| LeeWyatt | [github.com/leewyatt](https://github.com/leewyatt) | 76.6 CNY |
| 弦曲 | | 66.6 CNY |
| 贺小五 | | 66.6 CNY |
[More donors][file:financial-contributors]
[plugin-logo]: https://cdn.jsdelivr.net/gh/YiiGuxing/TranslationPlugin@master/pluginIcon.svg
[badge:plugin-homepage]: https://img.shields.io/badge/plugin%20homepage-translation-4caf50.svg?style=flat-square
[badge:build]: https://img.shields.io/endpoint?label=build&style=flat-square&url=https%3A%2F%2Factions-badge.atrox.dev%2FYiiGuxing%2FTranslationPlugin%2Fbadge%3Fref%3Dmaster
[badge:license]: https://img.shields.io/github/license/YiiGuxing/TranslationPlugin.svg?style=flat-square
[badge:release]: https://img.shields.io/github/release/YiiGuxing/TranslationPlugin.svg?style=flat-square&colorB=0097A7
[badge:version]: https://img.shields.io/jetbrains/plugin/v/8579.svg?style=flat-square&colorB=2196F3
[badge:downloads]: https://img.shields.io/jetbrains/plugin/d/8579.svg?style=flat-square&colorB=5C6BC0
[badge:open-collective]: https://opencollective.com/translation-plugin/all/badge.svg?label=financial+contributors&style=flat-square&color=d05ce3
[badge:get-started-en]: https://img.shields.io/badge/Get%20Started-English-4CAF50?style=flat-square
[badge:get-started-zh]: https://img.shields.io/badge/%E5%BC%80%E5%A7%8B%E4%BD%BF%E7%94%A8-%E4%B8%AD%E6%96%87-2196F3?style=flat-square
[badge:get-started-jp]: https://img.shields.io/badge/%E3%81%AF%E3%81%98%E3%82%81%E3%81%AB-%E6%97%A5%E6%9C%AC%E8%AA%9E-009688?style=flat-square
[badge:get-started-ko]: https://img.shields.io/badge/%EC%8B%9C%EC%9E%91%ED%95%98%EA%B8%B0-%ED%95%9C%EA%B5%AD%EC%96%B4-7CB342?style=flat-square
[gh:translation-plugin]: https://github.com/YiiGuxing/TranslationPlugin
[gh:releases]: https://github.com/YiiGuxing/TranslationPlugin/releases
[gh:workflows-build]: https://github.com/YiiGuxing/TranslationPlugin/actions/workflows/build.yml
[gh:license]: https://github.com/YiiGuxing/TranslationPlugin/blob/master/LICENSE
[gh:discussions-q-a]: https://github.com/YiiGuxing/TranslationPlugin/discussions/categories/q-a
[gh:#81]: https://github.com/YiiGuxing/TranslationPlugin/issues/81
[gh:#115]: https://github.com/YiiGuxing/TranslationPlugin/issues/115
[file:settings-font]: https://cdn.jsdelivr.net/gh/YiiGuxing/TranslationPlugin@master/images/settings_font.png
[file:financial-contributors]: https://github.com/YiiGuxing/TranslationPlugin/blob/master/FINANCIAL_CONTRIBUTORS.md
[get-started-en]: https://yiiguxing.github.io/TranslationPlugin/en/start.html
[get-started-zh]: https://yiiguxing.github.io/TranslationPlugin/start.html
[get-started-ja]: https://yiiguxing.github.io/TranslationPlugin/ja/start.html
[get-started-ko]: https://yiiguxing.github.io/TranslationPlugin/ko/start.html
[plugin-homepage]: https://plugins.jetbrains.com/plugin/8579-translation
[plugin-versions]: https://plugins.jetbrains.com/plugin/8579-translation/versions
[open-collective]: https://opencollective.com/translation-plugin
[open-collective-contribute]: https://opencollective.com/translation-plugin/contribute
[youdao-cloud]: https://ai.youdao.com
[baidu-translate]: https://fanyi-api.baidu.com/manage/developer
[ali-mt]: https://www.aliyun.com/product/ai/base_alimt
[mailto]: mailto:yii.guxing@outlook.com?subject=Donate&body=Name%2FNickname%3Cwebsite%3E%3A%20%3Cmessage%3E%0D%0DDonation%20Amount%3A%20%3Camount%3E%0DPayment%20Platform%3A%20Alipay%2FWeChat%20Pay%0DPayment%20Number%20%28last%205%20digits%29%3A%20%3Cnumber%3E%0D%0D
| {
"content_hash": "72a6f05abb3cc02aa3911f05e8241c15",
"timestamp": "",
"source": "github",
"line_count": 400,
"max_line_length": 265,
"avg_line_length": 49.6625,
"alnum_prop": 0.6978102189781021,
"repo_name": "YiiGuxing/TranslationPlugin",
"id": "949ab22720fe2c2f9fc84c010ba47ca7ec710c5d",
"size": "20019",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "README.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "99687"
},
{
"name": "Kotlin",
"bytes": "654814"
}
],
"symlink_target": ""
} |
"use strict";
angular.module("angular-mobile-docs")
.factory("FetchService", function ($http, $q, baseUrl) {
var getVersionList = function () {
return $http.get(
baseUrl
+ "versions/"
+ "index.json"
, {cache: true});
}
var getFileList = function (version) {
return $http.get(
baseUrl
+ "versions/"
+ version
+ ".api.json"
, {cache: true}
);
}
var getPartial = function (version, name) {
return $http.get(
baseUrl
+ "code/"
+ version
+ "/docs/partials/api/" + name
, {cache: true});
}
var getAllPartials = function (version) {
var promises = [];
var fileNameList = getFileList(version);
angular.forEach(fileNameList, function (fileName) {
promises.push(getPartial(fileName, version));
})
return $q.all(promises);
}
return {
getVersionList: function () {
return getVersionList();
},
getFileList : function (version) {
return getFileList(version);
},
getPartial : function (version, name) {
return getPartial(version, name);
},
getAllPartials: function (version) {
return getAllPartials(version);
}
};
}); | {
"content_hash": "7a19a93274cf52b7a5469e89cc1b7395",
"timestamp": "",
"source": "github",
"line_count": 60,
"max_line_length": 63,
"avg_line_length": 27.416666666666668,
"alnum_prop": 0.42735562310030395,
"repo_name": "robinboehm/angular-mobile-docs",
"id": "ee355c3d95c9c887644a0a9cfe29e76b8588d432",
"size": "1645",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/_platforms/ios/www/scripts/services/FetchService.js",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "AppleScript",
"bytes": "2416"
},
{
"name": "C",
"bytes": "2050"
},
{
"name": "CSS",
"bytes": "471332"
},
{
"name": "Java",
"bytes": "1296"
},
{
"name": "JavaScript",
"bytes": "1011871"
},
{
"name": "Objective-C",
"bytes": "408980"
},
{
"name": "Shell",
"bytes": "56862"
}
],
"symlink_target": ""
} |
<blockquote class="lang-specific php">
<p>We are still working on this part of the documentation.</p>
</blockquote>
| {
"content_hash": "14ba8b8d9dde1ef2f5c35779452d608a",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 62,
"avg_line_length": 38.666666666666664,
"alnum_prop": 0.75,
"repo_name": "Breinify/brein-api-library-php",
"id": "7f05f214a4493cc095999e3682ac35725a4943c3",
"size": "116",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "documentation/snippets/language-request-temporal-data.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "PHP",
"bytes": "59739"
}
],
"symlink_target": ""
} |
package org.apache.camel.component.reactive.streams.springboot.test;
import org.apache.camel.CamelContext;
import org.apache.camel.component.reactive.streams.api.CamelReactiveStreams;
import org.apache.camel.component.reactive.streams.api.CamelReactiveStreamsService;
import org.apache.camel.component.reactive.streams.springboot.test.support.ReactiveStreamsServiceTestSupport;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootApplication
@DirtiesContext
@SpringBootTest(
classes = {
ReactiveStreamsNamedEngineTest.TestConfiguration.class
},
properties = {
"camel.component.reactive-streams.service-type=my-engine"
}
)
public class ReactiveStreamsNamedEngineTest {
@Autowired
private CamelContext context;
@Autowired
private CamelReactiveStreamsService reactiveStreamsService;
@Test
public void testAutoConfiguration() throws InterruptedException {
CamelReactiveStreamsService service = CamelReactiveStreams.get(context);
Assert.assertTrue(service instanceof MyEngine);
Assert.assertEquals(service, reactiveStreamsService);
}
@Component("my-engine")
static class MyEngine extends ReactiveStreamsServiceTestSupport {
public MyEngine() {
super("my-engine");
}
}
@Configuration
public static class TestConfiguration {
}
}
| {
"content_hash": "6ca69e04ed03d7fb3d71d6e861edff46",
"timestamp": "",
"source": "github",
"line_count": 54,
"max_line_length": 109,
"avg_line_length": 34.388888888888886,
"alnum_prop": 0.7867528271405493,
"repo_name": "objectiser/camel",
"id": "2d067d929d6862196c23c6a2f9c80a5d6074d94f",
"size": "2659",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "platforms/spring-boot/components-starter/camel-reactive-streams-starter/src/test/java/org/apache/camel/component/reactive/streams/springboot/test/ReactiveStreamsNamedEngineTest.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Apex",
"bytes": "6521"
},
{
"name": "Batchfile",
"bytes": "2353"
},
{
"name": "CSS",
"bytes": "5472"
},
{
"name": "Elm",
"bytes": "10852"
},
{
"name": "FreeMarker",
"bytes": "8015"
},
{
"name": "Groovy",
"bytes": "14479"
},
{
"name": "HTML",
"bytes": "915679"
},
{
"name": "Java",
"bytes": "84762041"
},
{
"name": "JavaScript",
"bytes": "100326"
},
{
"name": "Makefile",
"bytes": "513"
},
{
"name": "RobotFramework",
"bytes": "8461"
},
{
"name": "Shell",
"bytes": "17240"
},
{
"name": "TSQL",
"bytes": "28835"
},
{
"name": "Tcl",
"bytes": "4974"
},
{
"name": "Thrift",
"bytes": "6979"
},
{
"name": "XQuery",
"bytes": "546"
},
{
"name": "XSLT",
"bytes": "280849"
}
],
"symlink_target": ""
} |
require 'spec_helper'
describe PrivateTopic, '#create_or_update' do
it 'sends notification of the private topic', notifiers: true do
notifier = stub_private_topic_and_notifier
topic = create(:private_topic)
expect(PrivateTopicNotifier).to have_received(:new).with(topic)
expect(notifier).to have_received(:notifications_for_private_topic)
end
def stub_private_topic_and_notifier
private_topic = build_stubbed(:private_topic)
notifier = PrivateTopicNotifier.new(private_topic)
notifier.stubs(notifications_for_private_topic: true)
PrivateTopicNotifier.stubs(new: notifier)
notifier
end
end
describe PrivateTopic, '#private?' do
it 'is private when it has users' do
topic = build_stubbed(:private_topic)
expect(topic).to be_private
end
end
describe PrivateTopic, '#users_to_sentence' do
it 'lists users in a private topic in a human readable format' do
user1 = build_stubbed(:user, name: 'privateuser1')
user2 = build_stubbed(:user, name: 'privateuser2')
topic = build_stubbed(:private_topic, users: [user1, user2])
expect(topic.users_to_sentence).to eq 'Privateuser1 and Privateuser2'
end
end
describe PrivateTopic, '#add_user' do
it 'adds a user by their username' do
topic = create(:private_topic)
joel = create(:user, name: 'joel')
topic.add_user('joel')
expect(topic.users).to include joel
end
it 'adds a user with a User object' do
topic = create(:private_topic)
joel = create(:user, name: 'joel')
topic.add_user(joel)
expect(topic.users).to include joel
end
end
| {
"content_hash": "4289da47e293726b5c6992945b0f599d",
"timestamp": "",
"source": "github",
"line_count": 58,
"max_line_length": 73,
"avg_line_length": 27.56896551724138,
"alnum_prop": 0.7085678549093183,
"repo_name": "shanesveller/thredded",
"id": "31fa7deffe2e9de7ab24b750c9bb5b2ed0bda01f",
"size": "1599",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "spec/models/private_topic_spec.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "27822"
},
{
"name": "JavaScript",
"bytes": "13729"
},
{
"name": "Ruby",
"bytes": "122098"
}
],
"symlink_target": ""
} |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="keywords" content="W3C SVG 1.1 2nd Edition Test Suite"/>
<meta name="description" content="W3C SVG 1.1 2nd Edition Object Mini Test Suite"/>
<title>
SVG 1.1 2nd Edition Test (<object>): text-align-08-b.svg
</title>
<link href="harness_mini.css" rel="stylesheet" type="text/css" />
<link rel="prev" href="text-align-07-t.html" />
<link rel="index" href="index.html" />
<link rel="next" href="text-altglyph-01-b.html" />
<script src="../resources/testharnessreport.js"></script>
</head>
<body class="bodytext">
<div class="linkbar">
<p>
<a href="text-align-07-t.html" rel="prev">text-align-07-t ←</a>
<a href="index.html" rel="index">index</a>
<a href="text-altglyph-01-b.html" rel="next">→ text-altglyph-01-b</a>
</p>
</div>
<table border="0" align="center" cellspacing="0" cellpadding="10">
<tr>
<td align="center" colspan="3">
<table border="0" cellpadding="8">
<tr class="navbar">
<td align="center">
SVG Image
</td>
<td align="center">
PNG Image
</td>
</tr>
<tr>
<td align="right">
<object data="../../svg/text-align-08-b.svg" width="480" height="360" type="image/svg+xml"><p style="font-size:300%;color:red">FAIL</p></object>
</td>
<td align="left">
<img alt="raster image of text-align-08-b.svg" src="../../png/text-align-08-b.png" width="480" height="360"/>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div>
<h4 id="operatorscript" onclick="var t = document.getElementById('operatortext'); t.style.display=(t.style.display=='none' ? 'inline' : 'none');">
<em>Operator script (click here to toggle)</em>
</h4>
<div id="operatortext" style="display:none">
<p>
Run the test. No interaction required.
</p>
</div>
</div>
<h4 id="passcriteria">
Pass Criteria
</h4>
<div>
<p>
The dominant baseline should be alphabetic, so the 'a' will be sitting on the alphabetic (blue) line,
the Japanese glyph (upward pointing triangle) will be aligned on the ideographic (pink) baseline
and 'ण' is a Devangari character (downward pointing triangle) and will use the hanging baseline (green).
The smaller versions of the characters should be aligned to the same baselines as the respective larger
characters, so all like shapes align to the same baseline.
</p>
</div>
<br />
<div class="linkbar">
<p>
<a href="text-align-07-t.html" rel="prev">text-align-07-t ←</a>
<a href="index.html" rel="index">index</a>
<a href="text-altglyph-01-b.html" rel="next">→ text-altglyph-01-b</a>
</p>
</div>
</body>
</html>
| {
"content_hash": "786d5cb936352874f3b63fb5ab54a0af",
"timestamp": "",
"source": "github",
"line_count": 82,
"max_line_length": 156,
"avg_line_length": 38.40243902439025,
"alnum_prop": 0.5846300412829469,
"repo_name": "frivoal/presto-testo",
"id": "e945837882ee64b3311f74f184bce19dafe4d5bd",
"size": "3159",
"binary": false,
"copies": "4",
"ref": "refs/heads/master",
"path": "SVG/Testsuites/W3C-1_1F2/harness/htmlObjectMini/text-align-08-b.html",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "ASP",
"bytes": "2312"
},
{
"name": "ActionScript",
"bytes": "23470"
},
{
"name": "AutoHotkey",
"bytes": "8832"
},
{
"name": "Batchfile",
"bytes": "5001"
},
{
"name": "C",
"bytes": "116512"
},
{
"name": "C++",
"bytes": "219467"
},
{
"name": "CSS",
"bytes": "207914"
},
{
"name": "Erlang",
"bytes": "18523"
},
{
"name": "Groff",
"bytes": "674"
},
{
"name": "HTML",
"bytes": "103357488"
},
{
"name": "Haxe",
"bytes": "3874"
},
{
"name": "Java",
"bytes": "125658"
},
{
"name": "JavaScript",
"bytes": "22514682"
},
{
"name": "Makefile",
"bytes": "13409"
},
{
"name": "PHP",
"bytes": "531453"
},
{
"name": "Perl",
"bytes": "321672"
},
{
"name": "Python",
"bytes": "948191"
},
{
"name": "Ruby",
"bytes": "1006850"
},
{
"name": "Shell",
"bytes": "12140"
},
{
"name": "Smarty",
"bytes": "1860"
},
{
"name": "XSLT",
"bytes": "2567445"
}
],
"symlink_target": ""
} |
CREATE TABLE {{books-table}} (
id INT NOT NULL PRIMARY KEY,
isbn VARCHAR(20) NOT NULL UNIQUE,
title VARCHAR(1000) NOT NULL,
published_date TIMESTAMP,
inventory INT
);
# Single line comment
CREATE TABLE {{authors-table}} (
id INT NOT NULL PRIMARY KEY,
first_name varchar(64) not null,
last_name varchar(64) not null
);
| {
"content_hash": "42c30204c300885375349f658505020e",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 37,
"avg_line_length": 25.071428571428573,
"alnum_prop": 0.6752136752136753,
"repo_name": "javalite/activejdbc",
"id": "a48061b24eded4ce06531420acc6bd97f3403a83",
"size": "360",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "db-migrator-maven-plugin/src/test/resources/test_migrations/mysql-templator/20080718214030_base_schema.sql",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "567417"
},
{
"name": "FreeMarker",
"bytes": "9559"
},
{
"name": "HTML",
"bytes": "855"
},
{
"name": "Java",
"bytes": "2241030"
},
{
"name": "Kotlin",
"bytes": "31660"
},
{
"name": "PLSQL",
"bytes": "35845"
},
{
"name": "PLpgSQL",
"bytes": "2659"
},
{
"name": "SQLPL",
"bytes": "83"
},
{
"name": "Shell",
"bytes": "3292"
},
{
"name": "TSQL",
"bytes": "5244"
}
],
"symlink_target": ""
} |
String.prototype.toProperCase = function () {
return this.replace(/\w\S*/g, function(txt){return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();});
};
// http://stackoverflow.com/a/9609450/98600
var decodeEntities = (function() {
// this prevents any overhead from creating the object each time
var element = document.createElement('div');
function decodeHTMLEntities (str) {
if(str && typeof str === 'string') {
// strip script/html tags
str = str.replace(/<script[^>]*>([\S\s]*?)<\/script>/gmi, '');
str = str.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gmi, '');
element.innerHTML = str;
str = element.textContent;
element.textContent = '';
}
return str;
}
return decodeHTMLEntities;
})();
| {
"content_hash": "d693accdcc15ea6b9201ddfbed139eb9",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 116,
"avg_line_length": 32.083333333333336,
"alnum_prop": 0.6025974025974026,
"repo_name": "johnjcamilleri/gabra-web",
"id": "93d724c584afc91afde2b1854a32b840c9e1b329",
"size": "814",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/webroot/js/common.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ApacheConf",
"bytes": "834"
},
{
"name": "Batchfile",
"bytes": "2980"
},
{
"name": "CSS",
"bytes": "27533"
},
{
"name": "HTML",
"bytes": "269393"
},
{
"name": "JavaScript",
"bytes": "31751"
},
{
"name": "PHP",
"bytes": "8503766"
},
{
"name": "Shell",
"bytes": "4247"
}
],
"symlink_target": ""
} |
package radix
import (
"fmt"
"sync"
"time"
)
type persistentPubSubOpts struct {
connFn ConnFunc
abortAfter int
}
// PersistentPubSubOpt is an optional parameter which can be passed into
// PersistentPubSub in order to affect its behavior.
type PersistentPubSubOpt func(*persistentPubSubOpts)
// PersistentPubSubConnFunc causes PersistentPubSub to use the given ConnFunc
// when connecting to its destination.
func PersistentPubSubConnFunc(connFn ConnFunc) PersistentPubSubOpt {
return func(opts *persistentPubSubOpts) {
opts.connFn = connFn
}
}
// PersistentPubSubAbortAfter changes PersistentPubSub's reconnect behavior.
// Usually PersistentPubSub will try to reconnect forever upon a disconnect,
// blocking any methods which have been called until reconnect is successful.
//
// When PersistentPubSubAbortAfter is used, it will give up after that many
// attempts and return the error to the method which has been blocked the
// longest. Another method will need to be called in order for PersistentPubSub
// to resume trying to reconnect.
func PersistentPubSubAbortAfter(attempts int) PersistentPubSubOpt {
return func(opts *persistentPubSubOpts) {
opts.abortAfter = attempts
}
}
type persistentPubSub struct {
dial func() (Conn, error)
opts persistentPubSubOpts
l sync.Mutex
curr PubSubConn
subs, psubs chanSet
closeCh chan struct{}
}
// PersistentPubSubWithOpts is like PubSub, but instead of taking in an existing Conn to
// wrap it will create one on the fly. If the connection is ever terminated then
// a new one will be created and will be reset to the previous connection's
// state.
//
// This is effectively a way to have a permanent PubSubConn established which
// supports subscribing/unsubscribing but without the hassle of implementing
// reconnect/re-subscribe logic.
//
// With default options, none of the methods on the returned PubSubConn will
// ever return an error, they will instead block until a connection can be
// successfully reinstated.
//
// PersistentPubSubWithOpts takes in a number of options which can overwrite its
// default behavior. The default options PersistentPubSubWithOpts uses are:
//
// PersistentPubSubConnFunc(DefaultConnFunc)
//
func PersistentPubSubWithOpts(
network, addr string, options ...PersistentPubSubOpt,
) (
PubSubConn, error,
) {
opts := persistentPubSubOpts{
connFn: DefaultConnFunc,
}
for _, opt := range options {
opt(&opts)
}
p := &persistentPubSub{
dial: func() (Conn, error) { return opts.connFn(network, addr) },
opts: opts,
subs: chanSet{},
psubs: chanSet{},
closeCh: make(chan struct{}),
}
err := p.refresh()
return p, err
}
// PersistentPubSub is deprecated in favor of PersistentPubSubWithOpts instead.
func PersistentPubSub(network, addr string, connFn ConnFunc) PubSubConn {
var opts []PersistentPubSubOpt
if connFn != nil {
opts = append(opts, PersistentPubSubConnFunc(connFn))
}
// since PersistentPubSubAbortAfter isn't used, this will never return an
// error, panic if it does
p, err := PersistentPubSubWithOpts(network, addr, opts...)
if err != nil {
panic(fmt.Sprintf("PersistentPubSubWithOpts impossibly returned an error: %v", err))
}
return p
}
func (p *persistentPubSub) refresh() error {
if p.curr != nil {
p.curr.Close()
}
attempt := func() (PubSubConn, error) {
c, err := p.dial()
if err != nil {
return nil, err
}
errCh := make(chan error, 1)
pc := newPubSub(c, errCh)
for msgCh, channels := range p.subs.inverse() {
if err := pc.Subscribe(msgCh, channels...); err != nil {
pc.Close()
return nil, err
}
}
for msgCh, patterns := range p.psubs.inverse() {
if err := pc.PSubscribe(msgCh, patterns...); err != nil {
pc.Close()
return nil, err
}
}
go func() {
select {
case <-errCh:
p.l.Lock()
// It's possible that one of the methods (e.g. Subscribe)
// already had the lock, saw the error, and called refresh. This
// check prevents a double-refresh in that case.
if p.curr == pc {
p.refresh()
}
p.l.Unlock()
case <-p.closeCh:
}
}()
return pc, nil
}
var attempts int
for {
var err error
if p.curr, err = attempt(); err == nil {
return nil
}
attempts++
if p.opts.abortAfter > 0 && attempts >= p.opts.abortAfter {
return err
}
time.Sleep(200 * time.Millisecond)
}
}
func (p *persistentPubSub) Subscribe(msgCh chan<- PubSubMessage, channels ...string) error {
p.l.Lock()
defer p.l.Unlock()
// add first, so if the actual call fails then refresh will catch it
for _, channel := range channels {
p.subs.add(channel, msgCh)
}
if err := p.curr.Subscribe(msgCh, channels...); err != nil {
if err := p.refresh(); err != nil {
return err
}
}
return nil
}
func (p *persistentPubSub) Unsubscribe(msgCh chan<- PubSubMessage, channels ...string) error {
p.l.Lock()
defer p.l.Unlock()
// remove first, so if the actual call fails then refresh will catch it
for _, channel := range channels {
p.subs.del(channel, msgCh)
}
if err := p.curr.Unsubscribe(msgCh, channels...); err != nil {
if err := p.refresh(); err != nil {
return err
}
}
return nil
}
func (p *persistentPubSub) PSubscribe(msgCh chan<- PubSubMessage, channels ...string) error {
p.l.Lock()
defer p.l.Unlock()
// add first, so if the actual call fails then refresh will catch it
for _, channel := range channels {
p.psubs.add(channel, msgCh)
}
if err := p.curr.PSubscribe(msgCh, channels...); err != nil {
if err := p.refresh(); err != nil {
return err
}
}
return nil
}
func (p *persistentPubSub) PUnsubscribe(msgCh chan<- PubSubMessage, channels ...string) error {
p.l.Lock()
defer p.l.Unlock()
// remove first, so if the actual call fails then refresh will catch it
for _, channel := range channels {
p.psubs.del(channel, msgCh)
}
if err := p.curr.PUnsubscribe(msgCh, channels...); err != nil {
if err := p.refresh(); err != nil {
return err
}
}
return nil
}
func (p *persistentPubSub) Ping() error {
p.l.Lock()
defer p.l.Unlock()
for {
if err := p.curr.Ping(); err == nil {
break
} else if err := p.refresh(); err != nil {
return err
}
}
return nil
}
func (p *persistentPubSub) Close() error {
p.l.Lock()
defer p.l.Unlock()
close(p.closeCh)
return p.curr.Close()
}
| {
"content_hash": "79980d5ecca4fb9781afd5effc38d358",
"timestamp": "",
"source": "github",
"line_count": 251,
"max_line_length": 95,
"avg_line_length": 25.278884462151396,
"alnum_prop": 0.6888888888888889,
"repo_name": "mediocregopher/radix.v3",
"id": "a69198381634f8525ec8a06ea9e07547322a01d4",
"size": "6345",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "pubsub_persistent.go",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Go",
"bytes": "203001"
}
],
"symlink_target": ""
} |
import EmberObject from '@ember/object';
export default EmberObject.extend();
| {
"content_hash": "7d14acffcbb8cffc8afe0c629c7e558c",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 40,
"avg_line_length": 26.333333333333332,
"alnum_prop": 0.7848101265822784,
"repo_name": "nikityy/ember-cli-bem",
"id": "0073a4093ee1ac12b3014398239de4eb2fc24639",
"size": "79",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "addon/naming-strategies/base.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "HTML",
"bytes": "1871"
},
{
"name": "JavaScript",
"bytes": "28599"
}
],
"symlink_target": ""
} |
<?php
namespace Docker\Stream;
/**
* Represent a stream when building a dockerfile
*
* Callable(s) passed to this stream will take a BuildInfo object as the first argument
*/
class BuildStream extends MultiJsonStream
{
/**
* [@inheritdoc}
*/
protected function getDecodeClass()
{
return 'Docker\API\Model\BuildInfo';
}
}
| {
"content_hash": "98895f29f912ee84e0dc7dd503f95343",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 87,
"avg_line_length": 19,
"alnum_prop": 0.6648199445983379,
"repo_name": "mike-lee0120/rockystudio",
"id": "3d2c36177caabc6878eea7ee0cfd3d18e59acd2a",
"size": "361",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "vendor/docker-php/docker-php/src/Stream/BuildStream.php",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "ApacheConf",
"bytes": "178"
},
{
"name": "CSS",
"bytes": "1311381"
},
{
"name": "HTML",
"bytes": "1222268"
},
{
"name": "JavaScript",
"bytes": "6988420"
},
{
"name": "PHP",
"bytes": "4220140"
},
{
"name": "Smarty",
"bytes": "10673"
}
],
"symlink_target": ""
} |
<html>
<head>
<title>Arnold and Kayo's Wedding Ceremony</title>
<meta http-equiv="Content-Type" content="text/html;">
<meta name="GENERATOR" content="uWebAbm">
</head>
<body bgcolor="#FFFFCC" background="../../../images/background.gif">
<div align="center"><font face="Arial" size="4" color="#000000">Arnold and Kayo's Wedding</font></div>
<basefont size="2" face="Verdana"><br>
<center>
<a href="image33.html" target="image" OnMouseOver="window.status='Prev'; return true"><img src="IndPrev.gif" alt="Prev" border=0></a>
<a href="image35.html" target="image" OnMouseOver="window.status='Next'; return true"><img src="IndNext.gif" alt="Next" border=0></a>
</center>
<p>
<div align="center"><center>
<table border="4">
<tr>
<td align="center" valign="top">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="middle" width="84" height="84"> <img src="../Images/034-01.jpg" alt="../Images/034-01.jpg" align="top" width="257" height="373"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</center></div>
<p>
<center>
<b>Page 34 of 115</b><br>
</center>
</body>
</html>
| {
"content_hash": "22fb6759a918cbc5d01cab939887ce6a",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 180,
"avg_line_length": 31.675,
"alnum_prop": 0.6274664561957379,
"repo_name": "asiboro/asiboro.github.io",
"id": "42f753ec1d9e551b2fc806f9d28ba16ed6c7efc7",
"size": "1267",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "sitesarchive/arnold-kayo.siboro.org/weddingphotos/church-snap-hirakawa/page/image34.html",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "310000"
},
{
"name": "HTML",
"bytes": "135195"
},
{
"name": "JavaScript",
"bytes": "621923"
}
],
"symlink_target": ""
} |
package model.exchange
import model.AllocationStatuses.AllocationStatus
import play.api.libs.json.{ Json, OFormat }
case class UpdateAllocationStatusRequest(
assessorId: String,
eventId: String,
newStatus: AllocationStatus
)
object UpdateAllocationStatusRequest {
implicit val updateAllocationStatusFormat: OFormat[UpdateAllocationStatusRequest] = Json.format[UpdateAllocationStatusRequest]
}
case class UpdateAllocationStatusResponse(
successes: Seq[UpdateAllocationStatusRequest] = Nil,
failures: Seq[UpdateAllocationStatusRequest] = Nil
)
object UpdateAllocationStatusResponse {
implicit val updateAllocationStatusResponseFormat = Json.format[UpdateAllocationStatusResponse]
}
| {
"content_hash": "dcbadcd302c3892472b4e2226fe002a9",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 128,
"avg_line_length": 28.08,
"alnum_prop": 0.8361823361823362,
"repo_name": "hmrc/fset-faststream",
"id": "b7bf74ac4845985fddb279e918b15b85fade4b30",
"size": "1305",
"binary": false,
"copies": "1",
"ref": "refs/heads/main",
"path": "app/model/exchange/UpdateAllocationStatusRequest.scala",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "PHP",
"bytes": "15185"
},
{
"name": "Scala",
"bytes": "3419747"
},
{
"name": "Shell",
"bytes": "268"
}
],
"symlink_target": ""
} |
import example.spring._
import org.springframework.context.support._
val context = new ClassPathXmlApplicationContext("spring/scala-spring.xml");
val bean = context.getBean("factoryUsingBean").asInstanceOf[FactoryUsingBean]
println("Factory Name: " + bean.factory.nameOfFactory)
val obj = bean.factory.make("Dean Wampler")
println("Object: " + obj)
| {
"content_hash": "1b53762b60841a5c8edd4cf5f89b2393",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 78,
"avg_line_length": 35.4,
"alnum_prop": 0.7768361581920904,
"repo_name": "XClouded/t4f-core",
"id": "4c0a055d9c0dbdee067888b7d2cd4077fe8055de",
"size": "414",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "scala/src/tmp/ToolsLibs/spring/object-bean-script.scala",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
} |
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="bed68462-6c52-4148-ace9-853c3018b776" name="Default" comment="" />
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="TRACKING_ENABLED" value="true" />
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="FileEditorManager">
<leaf>
<file leaf-file-name="__init__.py" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/__init__.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="348">
<caret line="12" column="0" lean-forward="true" selection-start-line="12" selection-start-column="0" selection-end-line="12" selection-end-column="0" />
<folding>
<element signature="e#0#24#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
</leaf>
</component>
<component name="ProjectFrameBounds">
<option name="x" value="5" />
<option name="y" value="23" />
<option name="width" value="1260" />
<option name="height" value="730" />
</component>
<component name="ProjectView">
<navigator currentView="ProjectPane" proportions="" version="1">
<flattenPackages />
<showMembers />
<showModules />
<showLibraryContents />
<hideEmptyPackages />
<abbreviatePackageNames />
<autoscrollToSource />
<autoscrollFromSource />
<sortByType />
<manualOrder />
<foldersAlwaysOnTop value="true" />
</navigator>
<panes>
<pane id="Scope" />
<pane id="ProjectPane">
<subPane>
<expand>
<path>
<item name="app" type="b2602c69:ProjectViewProjectNode" />
<item name="app" type="462c0819:PsiDirectoryNode" />
</path>
</expand>
<select />
</subPane>
</pane>
<pane id="Scratches" />
</panes>
</component>
<component name="PropertiesComponent">
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
</component>
<component name="RunDashboard">
<option name="ruleStates">
<list>
<RuleState>
<option name="name" value="ConfigurationTypeDashboardGroupingRule" />
</RuleState>
<RuleState>
<option name="name" value="StatusDashboardGroupingRule" />
</RuleState>
</list>
</option>
</component>
<component name="RunManager" selected="Python.__init__">
<configuration name="__init__" type="PythonConfigurationType" factoryName="Python" temporary="true">
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
<envs>
<env name="PYTHONUNBUFFERED" value="1" />
</envs>
<option name="SDK_HOME" value="" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<option name="IS_MODULE_SDK" value="true" />
<option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" />
<module name="app" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/__init__.py" />
<option name="PARAMETERS" value="" />
<option name="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="false" />
</configuration>
<recent_temporary>
<list size="1">
<item index="0" class="java.lang.String" itemvalue="Python.__init__" />
</list>
</recent_temporary>
</component>
<component name="ShelveChangesManager" show_recycled="false">
<option name="remove_strategy" value="false" />
</component>
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="bed68462-6c52-4148-ace9-853c3018b776" name="Default" comment="" />
<created>1506987916817</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1506987916817</updated>
</task>
<servers />
</component>
<component name="ToolWindowManager">
<frame x="5" y="23" width="1260" height="730" extended-state="0" />
<editor active="true" />
<layout>
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32978722" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="Python Console" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
<window_info id="Data View" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
</layout>
<layout-to-restore>
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="10" side_tool="false" content_ui="tabs" />
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" />
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="true" content_ui="tabs" />
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="9" side_tool="false" content_ui="tabs" />
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.32978722" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Python Console" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="combo" />
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="3" side_tool="false" content_ui="combo" />
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="true" content_ui="tabs" />
<window_info id="Data View" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
</layout-to-restore>
</component>
<component name="VcsContentAnnotationSettings">
<option name="myLimit" value="2678400000" />
</component>
<component name="XDebuggerManager">
<breakpoint-manager />
<watches-manager />
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/__init__.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="348">
<caret line="12" column="0" lean-forward="true" selection-start-line="12" selection-start-column="0" selection-end-line="12" selection-end-column="0" />
<folding>
<element signature="e#0#24#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</component>
</project> | {
"content_hash": "36f4ca4e51535665592466b79462d161",
"timestamp": "",
"source": "github",
"line_count": 179,
"max_line_length": 249,
"avg_line_length": 78.27374301675978,
"alnum_prop": 0.6631218328456213,
"repo_name": "ampotty/uip-pc4",
"id": "a192d842837ccc33598c45d86872ba619167aac2",
"size": "14011",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "02.SQLAlchemy/ejemplo/app/.idea/workspace.xml",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "HTML",
"bytes": "8998"
},
{
"name": "JavaScript",
"bytes": "46"
},
{
"name": "Jupyter Notebook",
"bytes": "245295"
},
{
"name": "Python",
"bytes": "33815"
}
],
"symlink_target": ""
} |
package org.apache.arrow.vector;
import static org.junit.Assert.assertEquals;
import java.util.HashMap;
import java.util.Map;
import org.apache.arrow.memory.BufferAllocator;
import org.apache.arrow.vector.complex.StructVector;
import org.apache.arrow.vector.types.Types.MinorType;
import org.apache.arrow.vector.types.pojo.ArrowType.Struct;
import org.apache.arrow.vector.types.pojo.FieldType;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
public class TestStructVector {
private BufferAllocator allocator;
@Before
public void init() {
allocator = new DirtyRootAllocator(Long.MAX_VALUE, (byte) 100);
}
@After
public void terminate() throws Exception {
allocator.close();
}
@Test
public void testFieldMetadata() throws Exception {
Map<String, String> metadata = new HashMap<>();
metadata.put("k1", "v1");
FieldType type = new FieldType(true, Struct.INSTANCE, null, metadata);
try (StructVector vector = new StructVector("struct", allocator, type, null)) {
Assert.assertEquals(vector.getField().getMetadata(), type.getMetadata());
}
}
@Test
public void testMakeTransferPair() {
try (final StructVector s1 = StructVector.empty("s1", allocator);
final StructVector s2 = StructVector.empty("s2", allocator)) {
s1.addOrGet("struct_child", FieldType.nullable(MinorType.INT.getType()), IntVector.class);
s1.makeTransferPair(s2);
final FieldVector child = s1.getChild("struct_child");
final FieldVector toChild = s2.addOrGet("struct_child", child.getField().getFieldType(), child.getClass());
assertEquals(0, toChild.getValueCapacity());
assertEquals(0, toChild.getDataBuffer().capacity());
assertEquals(0, toChild.getValidityBuffer().capacity());
}
}
}
| {
"content_hash": "54b43f21b845ca9de0881ed7c2b06eeb",
"timestamp": "",
"source": "github",
"line_count": 57,
"max_line_length": 113,
"avg_line_length": 32.03508771929825,
"alnum_prop": 0.7223439211391018,
"repo_name": "pcmoritz/arrow",
"id": "54a11a3dc01899ad01a858b6f792346b3cedbc88",
"size": "2626",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "java/vector/src/test/java/org/apache/arrow/vector/TestStructVector.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Assembly",
"bytes": "73655"
},
{
"name": "Awk",
"bytes": "3683"
},
{
"name": "Batchfile",
"bytes": "33278"
},
{
"name": "C",
"bytes": "380611"
},
{
"name": "C#",
"bytes": "333149"
},
{
"name": "C++",
"bytes": "6386150"
},
{
"name": "CMake",
"bytes": "351656"
},
{
"name": "CSS",
"bytes": "3946"
},
{
"name": "Dockerfile",
"bytes": "39378"
},
{
"name": "FreeMarker",
"bytes": "2256"
},
{
"name": "Go",
"bytes": "343789"
},
{
"name": "HTML",
"bytes": "23351"
},
{
"name": "Java",
"bytes": "2205214"
},
{
"name": "JavaScript",
"bytes": "83169"
},
{
"name": "Lua",
"bytes": "8741"
},
{
"name": "M4",
"bytes": "8628"
},
{
"name": "MATLAB",
"bytes": "9068"
},
{
"name": "Makefile",
"bytes": "44948"
},
{
"name": "Meson",
"bytes": "36954"
},
{
"name": "Objective-C",
"bytes": "2533"
},
{
"name": "Perl",
"bytes": "3799"
},
{
"name": "Python",
"bytes": "1439764"
},
{
"name": "R",
"bytes": "149758"
},
{
"name": "Ruby",
"bytes": "583523"
},
{
"name": "Rust",
"bytes": "1192382"
},
{
"name": "Shell",
"bytes": "218636"
},
{
"name": "Thrift",
"bytes": "137291"
},
{
"name": "TypeScript",
"bytes": "836757"
}
],
"symlink_target": ""
} |
#! /bin/sh
# $Cambridge: exim/exim-src/scripts/Configure-config.h,v 1.2 2005/05/04 10:17:29 ph10 Exp $
# Build the config.h file, using the buildconfig program, first ensuring that
# it exists.
# 22-May-1996: remove the use of the "-a" flag for /bin/sh because it is not
# implemented in the FreeBSD shell. Sigh.
# 12-Mar-1997: add s/#.*$// to the sed script to allow for comments on the
# ends of settings - someone got caught.
# 18-Apr-1997: put the tab character into a variable to stop it getting
# lost by accident (which has happened a couple of times).
# 19-Jan-1998: indented settings in the makefile weren't being handled
# correctly; added [$st]* before \\([A-Z] in the pattern, to ignore leading
# space. Oddly, the pattern previously read ^\([A-Z which didn't seem to
# cause a problem (but did when the new bit was put in).
# 04-May-2005: if $1 is set, copy it into $MAKE, and then use $MAKE, if set,
# instead of "make" so that if gmake is used, it is used consistently.
if [ "$1" != "" ] ; then MAKE=$1 ; fi
if [ "$MAKE" = "" ] ; then MAKE=make ; fi
$MAKE buildconfig || exit 1
# BEWARE: tab characters needed in the following sed command. They have had
# a nasty tendency to get lost in the past, causing a problem if a tab has
# actually been present in makefile. Use a variable to hold a space and a
# tab to keep the tab in one place. This makes the sed option horrendous to
# read, but the whole script is safer.
st=' '
(sed -n \
"/\\\$/d;s/#.*\$//;s/^[$st]*\\([A-Z][^:$st]*\\)[$st]*=[$st]*\\([^$st]*\\)[$st]*\$/\\1=\\2 export \\1/p" \
< Makefile ; echo "./buildconfig") | /bin/sh
# If buildconfig ends with an error code, it will have output an error
# message. Ensure that a broken config.h gets deleted.
if [ $? != 0 ] ; then
rm -f config.h
exit 1
fi
# Double-check that config.h is complete.
if [ "`tail -1 config.h`" != "/* End of config.h */" ] ; then
echo "*** config.h appears to be incomplete"
echo "*** unexpected failure in buildconfig program"
exit 1
fi
echo ">>> config.h built"
echo ""
# End of Configure-config.h
| {
"content_hash": "f8847051b88b7efcf21318fa4bd4daca",
"timestamp": "",
"source": "github",
"line_count": 60,
"max_line_length": 107,
"avg_line_length": 34.666666666666664,
"alnum_prop": 0.6658653846153846,
"repo_name": "KMU-embedded/mosbench-ext",
"id": "b0932f948333de8d53f5e173bbf690418dcb3332",
"size": "2080",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "exim/exim-4.71/scripts/Configure-config.h",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "Assembly",
"bytes": "8491"
},
{
"name": "Awk",
"bytes": "45243"
},
{
"name": "Batchfile",
"bytes": "15130"
},
{
"name": "C",
"bytes": "38923116"
},
{
"name": "C++",
"bytes": "644544"
},
{
"name": "CSS",
"bytes": "38896"
},
{
"name": "DTrace",
"bytes": "12271"
},
{
"name": "Erlang",
"bytes": "312670"
},
{
"name": "Frege",
"bytes": "146785"
},
{
"name": "Groff",
"bytes": "255736"
},
{
"name": "HTML",
"bytes": "1026176"
},
{
"name": "Lex",
"bytes": "149807"
},
{
"name": "Makefile",
"bytes": "368369"
},
{
"name": "Objective-C",
"bytes": "20461"
},
{
"name": "PLpgSQL",
"bytes": "808278"
},
{
"name": "Perl",
"bytes": "336526"
},
{
"name": "Perl6",
"bytes": "11115"
},
{
"name": "Prolog",
"bytes": "11284"
},
{
"name": "Python",
"bytes": "198848"
},
{
"name": "SQLPL",
"bytes": "105796"
},
{
"name": "Shell",
"bytes": "982753"
},
{
"name": "SourcePawn",
"bytes": "6894"
},
{
"name": "TeX",
"bytes": "2582"
},
{
"name": "XS",
"bytes": "4040"
},
{
"name": "XSLT",
"bytes": "10992"
},
{
"name": "Yacc",
"bytes": "569728"
}
],
"symlink_target": ""
} |
emqttd is a massively scalable and clusterable MQTT V3.1/V3.1.1 broker written in Erlang/OTP. emqttd support both MQTT V3.1/V3.1.1 protocol specification with extended features.
emqttd requires Erlang R17+ to build.
Notice that Erlang/OTP R18.0 introduced a [binary memory leak](http://erlang.org/pipermail/erlang-questions/2015-September/086098.html), DON'T compile the broker with R18.
## Goals
emqttd is aimed to provide a solid, enterprise grade, extensible open-source MQTT broker for IoT, M2M and Mobile applications that need to support ten millions of concurrent MQTT clients.
* Easy to install
* Massively scalable
* Easy to extend
* Solid stable
## Features
* Full MQTT V3.1/V3.1.1 protocol specification support
* QoS0, QoS1, QoS2 Publish and Subscribe
* Session Management and Offline Messages
* Retained Messages Support
* Last Will Message Support
* TCP/SSL Connection Support
* MQTT Over Websocket(SSL) Support
* HTTP Publish API Support
* [$SYS/brokers/#](https://github.com/emqtt/emqtt/wiki/$SYS-Topics-of-Broker) Support
* Client Authentication with clientId, ipaddress
* Client Authentication with username, password.
* Client ACL control with ipaddress, clientid, username.
* Cluster brokers on several servers.
* [Bridge](https://github.com/emqtt/emqttd/wiki/Bridge) brokers locally or remotelly
* 500K+ concurrent clients connections per server
* Extensible architecture with Hooks, Modules and Plugins
* Passed eclipse paho interoperability tests
## Modules
* [emqttd_auth_clientid](https://github.com/emqtt/emqttd/wiki/Authentication) - Authentication with ClientIds
* [emqttd_auth_username](https://github.com/emqtt/emqttd/wiki/Authentication) - Authentication with Username and Password
* [emqttd_auth_ldap](https://github.com/emqtt/emqttd/wiki/Authentication) - Authentication with LDAP
* [emqttd_mod_presence](https://github.com/emqtt/emqttd/wiki/Presence) - Publish presence message to $SYS topics when client connected or disconnected
* emqttd_mod_autosub - Subscribe topics when client connected
* [emqttd_mod_rewrite](https://github.com/emqtt/emqttd/wiki/Rewrite) - Topics rewrite like HTTP rewrite module
## Plugins
* [emqttd_plugin_template](https://github.com/emqtt/emqttd_plugin_template) - Plugin template and demo
* [emqttd_dashboard](https://github.com/emqtt/emqttd_dashboard) - Web Dashboard
* [emqttd_plugin_mysql](https://github.com/emqtt/emqttd_plugin_mysql) - Authentication with MySQL
* [emqttd_plugin_pgsql](https://github.com/emqtt/emqttd_plugin_pgsql) - Authentication with PostgreSQL
* [emqttd_plugin_kafka](https://github.com/emqtt/emqttd_plugin_kafka) - Publish MQTT Messages to Kafka
* [emqttd_plugin_redis](https://github.com/emqtt/emqttd_plugin_redis) - Redis Plugin
* [emqttd_stomp](https://github.com/emqtt/emqttd_stomp) - Stomp Protocol Plugin
* [emqttd_sockjs](https://github.com/emqtt/emqttd_sockjs) - SockJS(Stomp) Plugin
## Dashboard
The broker released a simple web dashboard in 0.10.0 version.
Address: http://host:18083
## Design

## QuickStart
Download binary packeges for linux, mac and freebsd from [http://emqtt.io/downloads](http://emqtt.io/downloads).
For example:
```sh
unzip emqttd-ubuntu64-0.10.0-beta-20150820.zip && cd emqttd
# start console
./bin/emqttd console
# start as daemon
./bin/emqttd start
# check status
./bin/emqttd_ctl status
# stop
./bin/emqttd stop
```
Build from source:
```
git clone https://github.com/emqtt/emqttd.git
cd emqttd && make && make dist
```
## GetStarted
Read [emqtt wiki](https://github.com/emqtt/emqttd/wiki) for detailed installation and configuration guide.
## Benchmark
Benchmark 0.6.1-alpha on a ubuntu/14.04 server with 8 cores, 32G memory from QingCloud:
200K+ Connections, 200K+ Topics, 20K+ In/Out Messages/sec, 20Mbps+ In/Out with 8G Memory, 50%CPU/core
## License
The MIT License (MIT)
## Contributors
* [@callbay](https://github.com/callbay)
* [@hejin1026](https://github.com/hejin1026)
* [@desoulter](https://github.com/desoulter)
* [@turtleDeng](https://github.com/turtleDeng)
* [@Hades32](https://github.com/Hades32)
* [@huangdan](https://github.com/huangdan)
* [@phanimahesh](https://github.com/phanimahesh)
* [@dvliman](https://github.com/dvliman)
## Author
Feng Lee <feng@emqtt.io>
## Twitter
https://twitter.com/emqtt
| {
"content_hash": "4d43932416fcb09389d642ce16892467",
"timestamp": "",
"source": "github",
"line_count": 141,
"max_line_length": 187,
"avg_line_length": 30.9645390070922,
"alnum_prop": 0.7581310123683005,
"repo_name": "yocome/emqttd",
"id": "852bd2e1da1fb895ea02963a9360e78b58a442e4",
"size": "4488",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "README.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "4581"
},
{
"name": "Erlang",
"bytes": "534146"
},
{
"name": "Makefile",
"bytes": "1243"
},
{
"name": "Shell",
"bytes": "21855"
}
],
"symlink_target": ""
} |
// XXX lib/utils/tar.js and this file need to be rewritten.
// URL-to-cache folder mapping:
// : -> !
// @ -> _
// http://registry.npmjs.org/foo/version -> cache/http!/...
//
/*
fetching a URL:
1. Check for URL in inflight URLs. If present, add cb, and return.
2. Acquire lock at {cache}/{sha(url)}.lock
retries = {cache-lock-retries, def=3}
stale = {cache-lock-stale, def=30000}
wait = {cache-lock-wait, def=100}
3. if lock can't be acquired, then fail
4. fetch url, clear lock, call cbs
cache folders:
1. urls: http!/server.com/path/to/thing
2. c:\path\to\thing: file!/c!/path/to/thing
3. /path/to/thing: file!/path/to/thing
4. git@ private: git_github.com!npm/npm
5. git://public: git!/github.com/npm/npm
6. git+blah:// git-blah!/server.com/foo/bar
adding a folder:
1. tar into tmp/random/package.tgz
2. untar into tmp/random/contents/package, stripping one dir piece
3. tar tmp/random/contents/package to cache/n/v/package.tgz
4. untar cache/n/v/package.tgz into cache/n/v/package
5. rm tmp/random
Adding a url:
1. fetch to tmp/random/package.tgz
2. goto folder(2)
adding a name@version:
1. registry.get(name/version)
2. if response isn't 304, add url(dist.tarball)
adding a name@range:
1. registry.get(name)
2. Find a version that satisfies
3. add name@version
adding a local tarball:
1. untar to tmp/random/{blah}
2. goto folder(2)
adding a namespaced package:
1. lookup registry for @namespace
2. namespace_registry.get('name')
3. add url(namespace/latest.tarball)
*/
exports = module.exports = cache
cache.unpack = unpack
cache.clean = clean
cache.read = read
var npm = require("./npm.js")
, fs = require("graceful-fs")
, assert = require("assert")
, rm = require("./utils/gently-rm.js")
, readJson = require("read-package-json")
, log = require("npmlog")
, path = require("path")
, asyncMap = require("slide").asyncMap
, tar = require("./utils/tar.js")
, fileCompletion = require("./utils/completion/file-completion.js")
, deprCheck = require("./utils/depr-check.js")
, addNamed = require("./cache/add-named.js")
, addLocal = require("./cache/add-local.js")
, addRemoteTarball = require("./cache/add-remote-tarball.js")
, addRemoteGit = require("./cache/add-remote-git.js")
, maybeGithub = require("./cache/maybe-github.js")
, inflight = require("inflight")
, npa = require("npm-package-arg")
cache.usage = "npm cache add <tarball file>"
+ "\nnpm cache add <folder>"
+ "\nnpm cache add <tarball url>"
+ "\nnpm cache add <git url>"
+ "\nnpm cache add <name>@<version>"
+ "\nnpm cache ls [<path>]"
+ "\nnpm cache clean [<pkg>[@<version>]]"
cache.completion = function (opts, cb) {
var argv = opts.conf.argv.remain
if (argv.length === 2) {
return cb(null, ["add", "ls", "clean"])
}
switch (argv[2]) {
case "clean":
case "ls":
// cache and ls are easy, because the completion is
// what ls_ returns anyway.
// just get the partial words, minus the last path part
var p = path.dirname(opts.partialWords.slice(3).join("/"))
if (p === ".") p = ""
return ls_(p, 2, cb)
case "add":
// Same semantics as install and publish.
return npm.commands.install.completion(opts, cb)
}
}
function cache (args, cb) {
var cmd = args.shift()
switch (cmd) {
case "rm": case "clear": case "clean": return clean(args, cb)
case "list": case "sl": case "ls": return ls(args, cb)
case "add": return add(args, cb)
default: return cb(new Error(
"Invalid cache action: "+cmd))
}
}
// if the pkg and ver are in the cache, then
// just do a readJson and return.
// if they're not, then fetch them from the registry.
function read (name, ver, forceBypass, cb) {
assert(typeof name === "string", "must include name of module to install")
assert(typeof cb === "function", "must include callback")
if (forceBypass === undefined || forceBypass === null) forceBypass = true
var jsonFile = path.join(npm.cache, name, ver, "package", "package.json")
function c (er, data) {
if (data) deprCheck(data)
return cb(er, data)
}
if (forceBypass && npm.config.get("force")) {
log.verbose("using force", "skipping cache")
return addNamed(name, ver, null, c)
}
readJson(jsonFile, function (er, data) {
er = needName(er, data)
er = needVersion(er, data)
if (er && er.code !== "ENOENT" && er.code !== "ENOTDIR") return cb(er)
if (er) return addNamed(name, ver, null, c)
deprCheck(data)
c(er, data)
})
}
function normalize(args) {
var normalized = ""
if (args.length > 0) {
var a = npa(args[0])
if (a.name) normalized = a.name
if (a.rawSpec) normalized = [normalized, a.rawSpec].join("/")
if (args.length > 1) normalized = [normalized].concat(args.slice(1)).join("/")
}
if (normalized.substr(-1) === "/") {
normalized = normalized.substr(0, normalized.length - 1)
}
log.silly("ls", "normalized", normalized)
return normalized
}
// npm cache ls [<path>]
function ls (args, cb) {
var prefix = npm.config.get("cache")
if (prefix.indexOf(process.env.HOME) === 0) {
prefix = "~" + prefix.substr(process.env.HOME.length)
}
ls_(normalize(args), npm.config.get("depth"), function (er, files) {
console.log(files.map(function (f) {
return path.join(prefix, f)
}).join("\n").trim())
cb(er, files)
})
}
// Calls cb with list of cached pkgs matching show.
function ls_ (req, depth, cb) {
return fileCompletion(npm.cache, req, depth, cb)
}
// npm cache clean [<path>]
function clean (args, cb) {
assert(typeof cb === "function", "must include callback")
if (!args) args = []
var f = path.join(npm.cache, path.normalize(normalize(args)))
if (f === npm.cache) {
fs.readdir(npm.cache, function (er, files) {
if (er) return cb()
asyncMap( files.filter(function (f) {
return npm.config.get("force") || f !== "-"
}).map(function (f) {
return path.join(npm.cache, f)
})
, rm, cb )
})
} else rm(path.join(npm.cache, path.normalize(normalize(args))), cb)
}
// npm cache add <tarball-url>
// npm cache add <pkg> <ver>
// npm cache add <tarball>
// npm cache add <folder>
cache.add = function (pkg, ver, scrub, cb) {
assert(typeof pkg === "string", "must include name of package to install")
assert(typeof cb === "function", "must include callback")
if (scrub) {
return clean([], function (er) {
if (er) return cb(er)
add([pkg, ver], cb)
})
}
log.verbose("cache add", [pkg, ver])
return add([pkg, ver], cb)
}
var adding = 0
function add (args, cb) {
// this is hot code. almost everything passes through here.
// the args can be any of:
// ["url"]
// ["pkg", "version"]
// ["pkg@version"]
// ["pkg", "url"]
// This is tricky, because urls can contain @
// Also, in some cases we get [name, null] rather
// that just a single argument.
var usage = "Usage:\n"
+ " npm cache add <tarball-url>\n"
+ " npm cache add <pkg>@<ver>\n"
+ " npm cache add <tarball>\n"
+ " npm cache add <folder>\n"
, spec
if (args[1] === undefined) args[1] = null
// at this point the args length must ==2
if (args[1] !== null) {
spec = args[0]+"@"+args[1]
} else if (args.length === 2) {
spec = args[0]
}
log.verbose("cache add", "spec=%j args=%j", spec, args)
if (!spec) return cb(usage)
if (adding <= 0) {
npm.spinner.start()
}
adding ++
cb = afterAdd(cb)
// short-circuit local installs
fs.stat(spec, function (er) {
if (!er) {
log.verbose("cache add", "local package", path.resolve(spec))
return addLocal(spec, null, cb)
}
var p = npa(spec)
log.verbose("parsed spec", p)
switch (p.type) {
case "remote":
addRemoteTarball(p.spec, {name : p.name}, null, cb)
break
case "git":
addRemoteGit(p.spec, false, cb)
break
case "github":
maybeGithub(p.spec, cb)
break
default:
if (p.name) return addNamed(p.name, p.spec, null, cb)
cb(new Error("couldn't figure out how to install " + spec))
}
})
}
function unpack (pkg, ver, unpackTarget, dMode, fMode, uid, gid, cb) {
if (typeof cb !== "function") cb = gid, gid = null
if (typeof cb !== "function") cb = uid, uid = null
if (typeof cb !== "function") cb = fMode, fMode = null
if (typeof cb !== "function") cb = dMode, dMode = null
read(pkg, ver, false, function (er) {
if (er) {
log.error("unpack", "Could not read data for %s", pkg + "@" + ver)
return cb(er)
}
npm.commands.unbuild([unpackTarget], true, function (er) {
if (er) return cb(er)
tar.unpack( path.join(npm.cache, pkg, ver, "package.tgz")
, unpackTarget
, dMode, fMode
, uid, gid
, cb )
})
})
}
function afterAdd (cb) { return function (er, data) {
adding --
if (adding <= 0) {
npm.spinner.stop()
}
if (er || !data || !data.name || !data.version) {
return cb(er, data)
}
// Save the resolved, shasum, etc. into the data so that the next
// time we load from this cached data, we have all the same info.
var name = data.name
var ver = data.version
var pj = path.join(npm.cache, name, ver, "package", "package.json")
var tmp = pj + "." + process.pid
var done = inflight(pj, cb)
if (!done) return undefined
fs.writeFile(tmp, JSON.stringify(data), "utf8", function (er) {
if (er) return done(er)
fs.rename(tmp, pj, function (er) {
done(er, data)
})
})
}}
function needName(er, data) {
return er ? er
: (data && !data.name) ? new Error("No name provided")
: null
}
function needVersion(er, data) {
return er ? er
: (data && !data.version) ? new Error("No version provided")
: null
}
| {
"content_hash": "5cc2265fd1215fe038e29583893e8ce0",
"timestamp": "",
"source": "github",
"line_count": 356,
"max_line_length": 82,
"avg_line_length": 28.04494382022472,
"alnum_prop": 0.6022636217948718,
"repo_name": "Chien19861128/qa-app",
"id": "8a4214eeae8b3ccc79e66baba35b55a6c140cf24",
"size": "9984",
"binary": false,
"copies": "4",
"ref": "refs/heads/master",
"path": "node_modules/meanio/node_modules/npm/lib/cache.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "16238"
},
{
"name": "JavaScript",
"bytes": "106413"
},
{
"name": "Perl",
"bytes": "48"
}
],
"symlink_target": ""
} |
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/
package com.google.api.services.contentwarehouse.v1.model;
/**
* Distribution license information. Next ID: 6
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the contentwarehouse API. For a detailed explanation see:
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class ResearchScienceSearchLicense extends com.google.api.client.json.GenericJson {
/**
* A fingerprint id generated based on the license_class, URL or text. Since the knowledge graph
* requires a unique string id for the license but any filed of license can be empty, a
* fingerprint id can serve as a compact identifier representing the non-empty sub-fields.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String id;
/**
* A value from a controlled vocabulary that uniquely identifies a license. Unless this is set to
* LICENSE_CLASS_UNDEFINED_NO_MATCH or LICENSE_CLASS_UNDEFINED_CONTRADICTING_MATCHES other fields
* in this message should be empty.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String licenseClass;
/**
* mid for the license.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String licenseMid;
/**
* The text (usually, the name) of the distribution license.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String text;
/**
* The url for the distribution license.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String url;
/**
* A fingerprint id generated based on the license_class, URL or text. Since the knowledge graph
* requires a unique string id for the license but any filed of license can be empty, a
* fingerprint id can serve as a compact identifier representing the non-empty sub-fields.
* @return value or {@code null} for none
*/
public java.lang.String getId() {
return id;
}
/**
* A fingerprint id generated based on the license_class, URL or text. Since the knowledge graph
* requires a unique string id for the license but any filed of license can be empty, a
* fingerprint id can serve as a compact identifier representing the non-empty sub-fields.
* @param id id or {@code null} for none
*/
public ResearchScienceSearchLicense setId(java.lang.String id) {
this.id = id;
return this;
}
/**
* A value from a controlled vocabulary that uniquely identifies a license. Unless this is set to
* LICENSE_CLASS_UNDEFINED_NO_MATCH or LICENSE_CLASS_UNDEFINED_CONTRADICTING_MATCHES other fields
* in this message should be empty.
* @return value or {@code null} for none
*/
public java.lang.String getLicenseClass() {
return licenseClass;
}
/**
* A value from a controlled vocabulary that uniquely identifies a license. Unless this is set to
* LICENSE_CLASS_UNDEFINED_NO_MATCH or LICENSE_CLASS_UNDEFINED_CONTRADICTING_MATCHES other fields
* in this message should be empty.
* @param licenseClass licenseClass or {@code null} for none
*/
public ResearchScienceSearchLicense setLicenseClass(java.lang.String licenseClass) {
this.licenseClass = licenseClass;
return this;
}
/**
* mid for the license.
* @return value or {@code null} for none
*/
public java.lang.String getLicenseMid() {
return licenseMid;
}
/**
* mid for the license.
* @param licenseMid licenseMid or {@code null} for none
*/
public ResearchScienceSearchLicense setLicenseMid(java.lang.String licenseMid) {
this.licenseMid = licenseMid;
return this;
}
/**
* The text (usually, the name) of the distribution license.
* @return value or {@code null} for none
*/
public java.lang.String getText() {
return text;
}
/**
* The text (usually, the name) of the distribution license.
* @param text text or {@code null} for none
*/
public ResearchScienceSearchLicense setText(java.lang.String text) {
this.text = text;
return this;
}
/**
* The url for the distribution license.
* @return value or {@code null} for none
*/
public java.lang.String getUrl() {
return url;
}
/**
* The url for the distribution license.
* @param url url or {@code null} for none
*/
public ResearchScienceSearchLicense setUrl(java.lang.String url) {
this.url = url;
return this;
}
@Override
public ResearchScienceSearchLicense set(String fieldName, Object value) {
return (ResearchScienceSearchLicense) super.set(fieldName, value);
}
@Override
public ResearchScienceSearchLicense clone() {
return (ResearchScienceSearchLicense) super.clone();
}
}
| {
"content_hash": "1b5414c14d71f2002a37bd7c3bd25760",
"timestamp": "",
"source": "github",
"line_count": 174,
"max_line_length": 182,
"avg_line_length": 32.87356321839081,
"alnum_prop": 0.7085664335664336,
"repo_name": "googleapis/google-api-java-client-services",
"id": "3a817f9cc31250fd7e2694871f54072bb6268e9a",
"size": "5720",
"binary": false,
"copies": "1",
"ref": "refs/heads/main",
"path": "clients/google-api-services-contentwarehouse/v1/2.0.0/com/google/api/services/contentwarehouse/v1/model/ResearchScienceSearchLicense.java",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
} |
/**
* postal - Pub/Sub library providing wildcard subscriptions, complex message handling, etc. Works server and client-side.
* Author: Jim Cowart (http://ifandelse.com)
* Version: v1.0.7
* Url: http://github.com/postaljs/postal.js
* License(s): MIT
*/
( function( root, factory ) {
var createPartialWrapper = require( "lodash/internal/createPartialWrapper" );
var _ = {
after: require( "lodash/function/after" ),
any: require( "lodash/internal/arraySome" ),
bind: function( func, thisArg, arg ) {
return createPartialWrapper( func, 33, thisArg, [ arg ] );
},
debounce: require( "lodash/function/debounce" ),
each: require( "lodash/internal/createForEach" )(
require( "lodash/internal/arrayEach" ),
require( "lodash/internal/baseEach" )
),
extend: require( "lodash/internal/baseAssign" ),
filter: require( "lodash/internal/arrayFilter" ),
isEqual: require( "lodash/lang/isEqual" ),
keys: require( "lodash/object/keys" ),
map: require( "lodash/internal/arrayMap" ),
throttle: require( "lodash/function/throttle" )
};
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
define( function() {
return factory( _, root );
} );
} else if ( typeof module === "object" && module.exports ) {
// Node, or CommonJS-Like environments
module.exports = factory( _, this );
} else {
// Browser globals
root.postal = factory( _, root );
}
}( this, function( _, global, undefined ) {
var prevPostal = global.postal;
var _defaultConfig = {
DEFAULT_CHANNEL: "/",
SYSTEM_CHANNEL: "postal",
enableSystemMessages: true,
cacheKeyDelimiter: "|",
autoCompactResolver: false
};
var postal = {
configuration: _.extend( {}, _defaultConfig )
};
var _config = postal.configuration;
var ChannelDefinition = function( channelName, bus ) {
this.bus = bus;
this.channel = channelName || _config.DEFAULT_CHANNEL;
};
ChannelDefinition.prototype.subscribe = function() {
return this.bus.subscribe( {
channel: this.channel,
topic: ( arguments.length === 1 ? arguments[ 0 ].topic : arguments[ 0 ] ),
callback: ( arguments.length === 1 ? arguments[ 0 ].callback : arguments[ 1 ] )
} );
};
/*
publish( envelope [, callback ] );
publish( topic, data [, callback ] );
*/
ChannelDefinition.prototype.publish = function() {
var envelope = {};
var callback;
if ( typeof arguments[ 0 ] === "string" ) {
envelope.topic = arguments[ 0 ];
envelope.data = arguments[ 1 ];
callback = arguments[ 2 ];
} else {
envelope = arguments[ 0 ];
callback = arguments[ 1 ];
}
if ( typeof envelope !== "object" ) {
throw new Error( "The first argument to ChannelDefinition.publish should be either an envelope object or a string topic." );
}
envelope.channel = this.channel;
this.bus.publish( envelope, callback );
};
var SubscriptionDefinition = function( channel, topic, callback ) {
if ( arguments.length !== 3 ) {
throw new Error( "You must provide a channel, topic and callback when creating a SubscriptionDefinition instance." );
}
if ( topic.length === 0 ) {
throw new Error( "Topics cannot be empty" );
}
this.channel = channel;
this.topic = topic;
this.callback = callback;
this.pipeline = [];
this.cacheKeys = [];
this._context = undefined;
};
var ConsecutiveDistinctPredicate = function() {
var previous;
return function( data ) {
var eq = false;
if ( typeof data === "string" ) {
eq = data === previous;
previous = data;
} else {
eq = _.isEqual( data, previous );
previous = _.extend( {}, data );
}
return !eq;
};
};
var DistinctPredicate = function DistinctPredicateFactory() {
var previous = [];
return function DistinctPredicate( data ) {
var isDistinct = !_.any( previous, function( p ) {
return _.isEqual( data, p );
} );
if ( isDistinct ) {
previous.push( data );
}
return isDistinct;
};
};
SubscriptionDefinition.prototype = {
"catch": function( errorHandler ) {
var original = this.callback;
var safeCallback = function() {
try {
original.apply( this, arguments );
} catch ( err ) {
errorHandler( err, arguments[ 0 ] );
}
};
this.callback = safeCallback;
return this;
},
defer: function defer() {
return this.delay( 0 );
},
disposeAfter: function disposeAfter( maxCalls ) {
if ( typeof maxCalls !== "number" || maxCalls <= 0 ) {
throw new Error( "The value provided to disposeAfter (maxCalls) must be a number greater than zero." );
}
var self = this;
var dispose = _.after( maxCalls, _.bind( function() {
self.unsubscribe();
} ) );
self.pipeline.push( function( data, env, next ) {
next( data, env );
dispose();
} );
return self;
},
distinct: function distinct() {
return this.constraint( new DistinctPredicate() );
},
distinctUntilChanged: function distinctUntilChanged() {
return this.constraint( new ConsecutiveDistinctPredicate() );
},
invokeSubscriber: function invokeSubscriber( data, env ) {
if ( !this.inactive ) {
var self = this;
var pipeline = self.pipeline;
var len = pipeline.length;
var context = self._context;
var idx = -1;
var invoked = false;
if ( !len ) {
self.callback.call( context, data, env );
invoked = true;
} else {
pipeline = pipeline.concat( [ self.callback ] );
var step = function step( d, e ) {
idx += 1;
if ( idx < len ) {
pipeline[ idx ].call( context, d, e, step );
} else {
self.callback.call( context, d, e );
invoked = true;
}
};
step( data, env, 0 );
}
return invoked;
}
},
logError: function logError() {
if ( console ) {
var report;
if ( console.warn ) {
report = console.warn;
} else {
report = console.log;
}
this.catch( report );
}
return this;
},
once: function once() {
return this.disposeAfter( 1 );
},
subscribe: function subscribe( callback ) {
this.callback = callback;
return this;
},
unsubscribe: function unsubscribe() {
if ( !this.inactive ) {
postal.unsubscribe( this );
}
},
constraint: function constraint( predicate ) {
if ( typeof predicate !== "function" ) {
throw new Error( "Predicate constraint must be a function" );
}
this.pipeline.push( function( data, env, next ) {
if ( predicate.call( this, data, env ) ) {
next( data, env );
}
} );
return this;
},
constraints: function constraints( predicates ) {
var self = this;
_.each( predicates, function( predicate ) {
self.constraint( predicate );
} );
return self;
},
context: function contextSetter( context ) {
this._context = context;
return this;
},
debounce: function debounce( milliseconds, immediate ) {
if ( typeof milliseconds !== "number" ) {
throw new Error( "Milliseconds must be a number" );
}
this.pipeline.push(
_.debounce( function( data, env, next ) {
next( data, env );
},
milliseconds,
!!immediate
)
);
return this;
},
delay: function delay( milliseconds ) {
if ( typeof milliseconds !== "number" ) {
throw new Error( "Milliseconds must be a number" );
}
var self = this;
self.pipeline.push( function( data, env, next ) {
setTimeout( function() {
next( data, env );
}, milliseconds );
} );
return this;
},
throttle: function throttle( milliseconds ) {
if ( typeof milliseconds !== "number" ) {
throw new Error( "Milliseconds must be a number" );
}
var fn = function( data, env, next ) {
next( data, env );
};
this.pipeline.push( _.throttle( fn, milliseconds ) );
return this;
}
};
// Backwards Compatibility
// WARNING: these will be removed by version 0.13
function warnOnDeprecation( oldMethod, newMethod ) {
return function() {
if ( console.warn || console.log ) {
var msg = "Warning, the " + oldMethod + " method has been deprecated. Please use " + newMethod + " instead.";
if ( console.warn ) {
console.warn( msg );
} else {
console.log( msg );
}
}
return SubscriptionDefinition.prototype[ newMethod ].apply( this, arguments );
};
}
var oldMethods = [ "withConstraint", "withConstraints", "withContext", "withDebounce", "withDelay", "withThrottle" ];
var newMethods = [ "constraint", "constraints", "context", "debounce", "delay", "throttle" ];
for ( var i = 0; i < 6; i++ ) {
var oldMethod = oldMethods[ i ];
SubscriptionDefinition.prototype[ oldMethod ] = warnOnDeprecation( oldMethod, newMethods[ i ] );
}
var bindingsResolver = _config.resolver = {
cache: {},
regex: {},
enableCache: true,
compare: function compare( binding, topic, headerOptions ) {
var pattern;
var rgx;
var prevSegment;
var cacheKey = topic + _config.cacheKeyDelimiter + binding;
var result = ( this.cache[ cacheKey ] );
var opt = headerOptions || {};
var saveToCache = this.enableCache && !opt.resolverNoCache;
// result is cached?
if ( result === true ) {
return result;
}
// plain string matching?
if ( binding.indexOf( "#" ) === -1 && binding.indexOf( "*" ) === -1 ) {
result = ( topic === binding );
if ( saveToCache ) {
this.cache[ cacheKey ] = result;
}
return result;
}
// ah, regex matching, then
if ( !( rgx = this.regex[ binding ] ) ) {
pattern = "^" + _.map( binding.split( "." ), function mapTopicBinding( segment ) {
var res = "";
if ( !!prevSegment ) {
res = prevSegment !== "#" ? "\\.\\b" : "\\b";
}
if ( segment === "#" ) {
res += "[\\s\\S]*";
} else if ( segment === "*" ) {
res += "[^.]+";
} else {
res += segment;
}
prevSegment = segment;
return res;
} ).join( "" ) + "$";
rgx = this.regex[ binding ] = new RegExp( pattern );
}
result = rgx.test( topic );
if ( saveToCache ) {
this.cache[ cacheKey ] = result;
}
return result;
},
reset: function reset() {
this.cache = {};
this.regex = {};
},
purge: function( options ) {
var self = this;
var keyDelimiter = _config.cacheKeyDelimiter;
var matchPredicate = function( val, key ) {
var split = key.split( keyDelimiter );
var topic = split[ 0 ];
var binding = split[ 1 ];
if ( ( typeof options.topic === "undefined" || options.topic === topic ) &&
( typeof options.binding === "undefined" || options.binding === binding ) ) {
delete self.cache[ key ];
}
};
var compactPredicate = function( val, key ) {
var split = key.split( keyDelimiter );
if ( postal.getSubscribersFor( { topic: split[ 0 ] } ).length === 0 ) {
delete self.cache[ key ];
}
};
if ( typeof options === "undefined" ) {
this.reset();
} else {
var handler = options.compact === true ? compactPredicate : matchPredicate;
_.each( this.cache, handler );
}
}
};
var pubInProgress = 0;
var unSubQueue = [];
var autoCompactIndex = 0;
function clearUnSubQueue() {
while ( unSubQueue.length ) {
postal.unsubscribe( unSubQueue.shift() );
}
}
function getCachePurger( subDef, key, cache ) {
return function( sub, i, list ) {
if ( sub === subDef ) {
list.splice( i, 1 );
}
if ( list.length === 0 ) {
delete cache[ key ];
}
};
}
function getCacher( topic, pubCache, cacheKey, done, envelope ) {
var headers = envelope && envelope.headers || {};
return function( subDef ) {
var cache;
if ( _config.resolver.compare( subDef.topic, topic, headers ) ) {
if ( !headers.resolverNoCache ) {
cache = pubCache[ cacheKey ] = ( pubCache[ cacheKey ] || [] );
cache.push( subDef );
}
subDef.cacheKeys.push( cacheKey );
if ( done ) {
done( subDef );
}
}
};
}
function getSystemMessage( kind, subDef ) {
return {
channel: _config.SYSTEM_CHANNEL,
topic: "subscription." + kind,
data: {
event: "subscription." + kind,
channel: subDef.channel,
topic: subDef.topic
}
};
}
var sysCreatedMessage = _.bind( getSystemMessage, this, "created" );
var sysRemovedMessage = _.bind( getSystemMessage, this, "removed" );
function getPredicate( options, resolver ) {
if ( typeof options === "function" ) {
return options;
} else if ( !options ) {
return function() {
return true;
};
} else {
return function( sub ) {
var compared = 0;
var matched = 0;
_.each( options, function( val, prop ) {
compared += 1;
if (
// We use the bindings resolver to compare the options.topic to subDef.topic
( prop === "topic" && resolver.compare( sub.topic, options.topic, { resolverNoCache: true } ) ) ||
( prop === "context" && options.context === sub._context ) ||
// Any other potential prop/value matching outside topic & context...
( sub[ prop ] === options[ prop ] ) ) {
matched += 1;
}
} );
return compared === matched;
};
}
}
_.extend( postal, {
cache: {},
subscriptions: {},
wireTaps: [],
ChannelDefinition: ChannelDefinition,
SubscriptionDefinition: SubscriptionDefinition,
channel: function channel( channelName ) {
return new ChannelDefinition( channelName, this );
},
addWireTap: function addWireTap( callback ) {
var self = this;
self.wireTaps.push( callback );
return function() {
var idx = self.wireTaps.indexOf( callback );
if ( idx !== -1 ) {
self.wireTaps.splice( idx, 1 );
}
};
},
noConflict: function noConflict() {
if ( typeof window === "undefined" || ( typeof window !== "undefined" && typeof define === "function" && define.amd ) ) {
throw new Error( "noConflict can only be used in browser clients which aren't using AMD modules" );
}
global.postal = prevPostal;
return this;
},
getSubscribersFor: function getSubscribersFor( options ) {
var result = [];
var self = this;
_.each( self.subscriptions, function( channel ) {
_.each( channel, function( subList ) {
result = result.concat( _.filter( subList, getPredicate( options, _config.resolver ) ) );
} );
} );
return result;
},
publish: function publish( envelope, cb ) {
++pubInProgress;
var channel = envelope.channel = envelope.channel || _config.DEFAULT_CHANNEL;
var topic = envelope.topic;
envelope.timeStamp = new Date();
if ( this.wireTaps.length ) {
_.each( this.wireTaps, function( tap ) {
tap( envelope.data, envelope, pubInProgress );
} );
}
var cacheKey = channel + _config.cacheKeyDelimiter + topic;
var cache = this.cache[ cacheKey ];
var skipped = 0;
var activated = 0;
if ( !cache ) {
var cacherFn = getCacher(
topic,
this.cache,
cacheKey,
function( candidate ) {
if ( candidate.invokeSubscriber( envelope.data, envelope ) ) {
activated++;
} else {
skipped++;
}
},
envelope
);
_.each( this.subscriptions[ channel ], function( candidates ) {
_.each( candidates, cacherFn );
} );
} else {
_.each( cache, function( subDef ) {
if ( subDef.invokeSubscriber( envelope.data, envelope ) ) {
activated++;
} else {
skipped++;
}
} );
}
if ( --pubInProgress === 0 ) {
clearUnSubQueue();
}
if ( cb ) {
cb( {
activated: activated,
skipped: skipped
} );
}
},
reset: function reset() {
this.unsubscribeFor();
_config.resolver.reset();
this.subscriptions = {};
this.cache = {};
},
subscribe: function subscribe( options ) {
var subscriptions = this.subscriptions;
var subDef = new SubscriptionDefinition( options.channel || _config.DEFAULT_CHANNEL, options.topic, options.callback );
var channel = subscriptions[ subDef.channel ];
var channelLen = subDef.channel.length;
var subs;
if ( !channel ) {
channel = subscriptions[ subDef.channel ] = {};
}
subs = subscriptions[ subDef.channel ][ subDef.topic ];
if ( !subs ) {
subs = subscriptions[ subDef.channel ][ subDef.topic ] = [];
}
// First, add the SubscriptionDefinition to the channel list
subs.push( subDef );
// Next, add the SubscriptionDefinition to any relevant existing cache(s)
_.each( _.keys( this.cache ), function( cacheKey ) {
if ( cacheKey.substr( 0, channelLen ) === subDef.channel ) {
getCacher(
cacheKey.split( _config.cacheKeyDelimiter )[1],
this.cache,
cacheKey )( subDef );
}
}, this );
if ( _config.enableSystemMessages ) {
this.publish( sysCreatedMessage( subDef ) );
}
return subDef;
},
unsubscribe: function unsubscribe() {
var unSubLen = arguments.length;
var unSubIdx = 0;
var subDef;
var channelSubs;
var topicSubs;
var idx;
for ( ; unSubIdx < unSubLen; unSubIdx++ ) {
subDef = arguments[ unSubIdx ];
subDef.inactive = true;
if ( pubInProgress ) {
unSubQueue.push( subDef );
return;
}
channelSubs = this.subscriptions[ subDef.channel ];
topicSubs = channelSubs && channelSubs[ subDef.topic ];
if ( topicSubs ) {
var len = topicSubs.length;
idx = 0;
// remove SubscriptionDefinition from channel list
while ( idx < len ) {
if ( topicSubs[ idx ] === subDef ) {
topicSubs.splice( idx, 1 );
break;
}
idx += 1;
}
if ( topicSubs.length === 0 ) {
delete channelSubs[ subDef.topic ];
if ( !_.keys( channelSubs ).length ) {
delete this.subscriptions[ subDef.channel ];
}
}
// remove SubscriptionDefinition from postal cache
if ( subDef.cacheKeys && subDef.cacheKeys.length ) {
var key;
while ( key = subDef.cacheKeys.pop() ) {
_.each( this.cache[ key ], getCachePurger( subDef, key, this.cache ) );
}
}
if ( typeof _config.resolver.purge === "function" ) {
// check to see if relevant resolver cache entries can be purged
var autoCompact = _config.autoCompactResolver === true ?
0 : typeof _config.autoCompactResolver === "number" ?
( _config.autoCompactResolver - 1 ) : false;
if ( autoCompact >= 0 && autoCompactIndex === autoCompact ) {
_config.resolver.purge( { compact: true } );
autoCompactIndex = 0;
} else if ( autoCompact >= 0 && autoCompactIndex < autoCompact ) {
autoCompactIndex += 1;
}
}
}
if ( _config.enableSystemMessages ) {
this.publish( sysRemovedMessage( subDef ) );
}
}
},
unsubscribeFor: function unsubscribeFor( options ) {
var toDispose = [];
if ( this.subscriptions ) {
toDispose = this.getSubscribersFor( options );
this.unsubscribe.apply( this, toDispose );
}
}
} );
if ( global && Object.prototype.hasOwnProperty.call( global, "__postalReady__" ) && _.isArray( global.__postalReady__ ) ) {
while ( global.__postalReady__.length ) {
global.__postalReady__.shift().onReady( postal );
}
}
return postal;
} ) );
| {
"content_hash": "fe1cbef9605a556e9fcee7768a100234",
"timestamp": "",
"source": "github",
"line_count": 715,
"max_line_length": 126,
"avg_line_length": 25.923076923076923,
"alnum_prop": 0.622282168869706,
"repo_name": "extrememedicine/telltale",
"id": "e75261aaf89a10683a937ae01ee712bd3185b54e",
"size": "18535",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "node_modules/postal/lib/postal.lodash.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "1280"
},
{
"name": "CoffeeScript",
"bytes": "422"
},
{
"name": "HTML",
"bytes": "23378"
},
{
"name": "JavaScript",
"bytes": "661"
},
{
"name": "Ruby",
"bytes": "41218"
}
],
"symlink_target": ""
} |
package com.m2team.phuotstory.fragment;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Toast;
import com.getbase.floatingactionbutton.AddFloatingActionButton;
import com.getbase.floatingactionbutton.FloatingActionButton;
import com.m2team.phuotstory.R;
import com.m2team.phuotstory.activity.WriteActivity;
import com.m2team.phuotstory.adapter.RecycleAdapter;
import com.m2team.phuotstory.common.Applog;
import com.m2team.phuotstory.common.Common;
import com.m2team.phuotstory.common.Constant;
import com.m2team.phuotstory.model.Story;
import java.util.ArrayList;
import java.util.List;
import butterknife.Bind;
import butterknife.ButterKnife;
/**
* A simple {@link Fragment} subclass.
* Use the {@link MainFragment#newInstance} factory method to
* create an instance of this fragment.
*/
public class MainFragment extends Fragment {
// TODO: Rename parameter arguments, choose names that match
// the fragment initialization parameters, e.g. ARG_ITEM_NUMBER
private static final String ARG_PARAM1 = "param1";
private static final String ARG_PARAM2 = "param2";
// TODO: Rename and change types of parameters
private String mParam1;
private String mParam2;
@Bind(R.id.recycle_view)
RecyclerView recyclerView;
@Bind(R.id.floating_add)
FloatingActionButton floatingActionButton;
RecycleAdapter adapter;
List<Story> stories;
/**
* Use this factory method to create a new instance of
* this fragment using the provided parameters.
*
* @param param1 Parameter 1.
* @param param2 Parameter 2.
* @return A new instance of fragment MainFragment.
*/
// TODO: Rename and change types and number of parameters
public static MainFragment newInstance(String param1, String param2) {
MainFragment fragment = new MainFragment();
Bundle args = new Bundle();
args.putString(ARG_PARAM1, param1);
args.putString(ARG_PARAM2, param2);
fragment.setArguments(args);
return fragment;
}
public MainFragment() {
// Required empty public constructor
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (getArguments() != null) {
mParam1 = getArguments().getString(ARG_PARAM1);
mParam2 = getArguments().getString(ARG_PARAM2);
}
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
View view = inflater.inflate(R.layout.fragment_main, container, false);
ButterKnife.bind(this, view);
floatingActionButton.setIcon(R.drawable.ic_add_black_24dp);
floatingActionButton.setColorNormal(Color.WHITE);
floatingActionButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(getActivity(), WriteActivity.class);
intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
startActivityForResult(intent, Constant.REQ_CODE_ADD_STORY);
}
});
stories = Common.queryStories(getActivity());
adapter = new RecycleAdapter(getActivity(), stories);
RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(getActivity());
recyclerView.setHasFixedSize(true);
recyclerView.setLayoutManager(layoutManager);
recyclerView.setAdapter(adapter);
return view;
}
@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
Applog.d("result: " + resultCode);
if (requestCode == Constant.REQ_CODE_ADD_STORY) {
if (resultCode == getActivity().RESULT_OK) {
stories = Common.queryStories(getActivity());
adapter.updateDataChanged(stories);
Toast.makeText(getActivity(), getString(R.string.success_add_story), Toast.LENGTH_SHORT).show();
} else {
//Toast.makeText(getActivity(), getString(R.string.fail_add_story), Toast.LENGTH_SHORT).show();
}
}
}
}
| {
"content_hash": "161af7e789341ffebec8448c960d9151",
"timestamp": "",
"source": "github",
"line_count": 123,
"max_line_length": 112,
"avg_line_length": 37.40650406504065,
"alnum_prop": 0.6915887850467289,
"repo_name": "hoangminh1190/phuotstory",
"id": "117e96fbeee2df3ed713c09d438b960cdbcc154d",
"size": "4601",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/src/main/java/com/m2team/phuotstory/fragment/MainFragment.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "755967"
}
],
"symlink_target": ""
} |
use header::EntityTag;
header! {
#[doc="`If-Match` header, defined in"]
#[doc="[RFC7232](https://tools.ietf.org/html/rfc7232#section-3.1)"]
#[doc=""]
#[doc="The `If-Match` header field makes the request method conditional on"]
#[doc="the recipient origin server either having at least one current"]
#[doc="representation of the target resource, when the field-value is \"*\","]
#[doc="or having a current representation of the target resource that has an"]
#[doc="entity-tag matching a member of the list of entity-tags provided in"]
#[doc="the field-value."]
#[doc=""]
#[doc="An origin server MUST use the strong comparison function when"]
#[doc="comparing entity-tags for `If-Match`, since the client"]
#[doc="intends this precondition to prevent the method from being applied if"]
#[doc="there have been any changes to the representation data."]
#[doc=""]
#[doc="# ABNF"]
#[doc="```plain"]
#[doc="If-Match = \"*\" / 1#entity-tag"]
#[doc="```"]
#[doc=""]
#[doc="# Example values"]
#[doc="* `\"xyzzy\"`"]
#[doc="* \"xyzzy\", \"r2d2xxxx\", \"c3piozzzz\""]
(IfMatch, "If-Match") => {Any / (EntityTag)+}
test_if_match {
test_header!(
test1,
vec![b"\"xyzzy\""],
Some(HeaderField::Items(
vec![EntityTag::new(false, "xyzzy".to_string())])));
test_header!(
test2,
vec![b"\"xyzzy\", \"r2d2xxxx\", \"c3piozzzz\""],
Some(HeaderField::Items(
vec![EntityTag::new(false, "xyzzy".to_string()),
EntityTag::new(false, "r2d2xxxx".to_string()),
EntityTag::new(false, "c3piozzzz".to_string())])));
test_header!(test3, vec![b"*"], Some(IfMatch::Any));
}
}
bench_header!(star, IfMatch, { vec![b"*".to_vec()] });
bench_header!(single , IfMatch, { vec![b"\"xyzzy\"".to_vec()] });
bench_header!(multi, IfMatch,
{ vec![b"\"xyzzy\", \"r2d2xxxx\", \"c3piozzzz\"".to_vec()] });
| {
"content_hash": "6a0bb11e230974b4d13c9c36fca88619",
"timestamp": "",
"source": "github",
"line_count": 49,
"max_line_length": 82,
"avg_line_length": 41.673469387755105,
"alnum_prop": 0.5592556317335945,
"repo_name": "mlalic/hyper",
"id": "1210b44c5a9d6e552dba1b2ac2219f0c65dbfd31",
"size": "2042",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/header/common/if_match.rs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Rust",
"bytes": "299237"
},
{
"name": "Shell",
"bytes": "221"
}
],
"symlink_target": ""
} |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-character: 9 m 28 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.7.0 / mathcomp-character - 1.7.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
mathcomp-character
<small>
1.7.0
<span class="label label-success">9 m 28 s 🏆</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-10-08 12:52:38 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-10-08 12:52:38 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-num base Num library distributed with the OCaml compiler
base-ocamlbuild base OCamlbuild binary and libraries distributed with the OCaml compiler
base-threads base
base-unix base
camlp5 7.14 Preprocessor-pretty-printer of OCaml
conf-findutils 1 Virtual package relying on findutils
conf-perl 2 Virtual package relying on perl
coq 8.7.0 Formal proof management system
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.02.3 The OCaml compiler (virtual package)
ocaml-base-compiler 4.02.3 Official 4.02.3 release
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.5 A library manager for OCaml
# opam file:
opam-version: "2.0"
name: "coq-mathcomp-character"
version: "1.7.0"
maintainer: "Mathematical Components <mathcomp-dev@sympa.inria.fr>"
synopsis: "The Mathematical Components library"
homepage: "https://math-comp.github.io/math-comp/"
bug-reports: "Mathematical Components <mathcomp-dev@sympa.inria.fr>"
dev-repo: "git+https://github.com/math-comp/math-comp.git"
license: "CeCILL-B"
build: [ make "-C" "mathcomp/character" "-j" "%{jobs}%" ]
install: [ make "-C" "mathcomp/character" "install" ]
remove: [ "sh" "-c" "rm -rf '%{lib}%/coq/user-contrib/mathcomp/character'" ]
depends: [
"ocaml"
"coq-mathcomp-field" {= "1.7.0"}
]
tags: [ "keyword:algebra" "keyword:character" "keyword:small scale reflection" "keyword:mathematical components" "keyword:odd order theorem" ]
authors: [ "Jeremy Avigad <>" "Andrea Asperti <>" "Stephane Le Roux <>" "Yves Bertot <>" "Laurence Rideau <>" "Enrico Tassi <>" "Ioana Pasca <>" "Georges Gonthier <>" "Sidi Ould Biha <>" "Cyril Cohen <>" "Francois Garillot <>" "Alexey Solovyev <>" "Russell O'Connor <>" "Laurent Théry <>" "Assia Mahboubi <>" ]
url {
src: "http://github.com/math-comp/math-comp/archive/mathcomp-1.7.0.tar.gz"
checksum: "md5=e1bde60e67844e692f88c5d64a44004e"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-mathcomp-character.1.7.0 coq.8.7.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam list; echo; ulimit -Sv 4000000; timeout 4h opam install -y --deps-only coq-mathcomp-character.1.7.0 coq.8.7.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>31 m 29 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam list; echo; ulimit -Sv 16000000; timeout 4h opam install -y -v coq-mathcomp-character.1.7.0 coq.8.7.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>9 m 28 s</dd>
</dl>
<h2>Installation size</h2>
<p>Total: 14 M</p>
<ul>
<li>3 M <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/mathcomp/character/mxrepresentation.vo</code></li>
<li>2 M <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/mathcomp/character/mxrepresentation.glob</code></li>
<li>1 M <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/mathcomp/character/character.vo</code></li>
<li>1 M <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/mathcomp/character/classfun.vo</code></li>
<li>1 M <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/mathcomp/character/character.glob</code></li>
<li>856 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/mathcomp/character/classfun.glob</code></li>
<li>821 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/mathcomp/character/inertia.vo</code></li>
<li>751 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/mathcomp/character/inertia.glob</code></li>
<li>534 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/mathcomp/character/mxabelem.vo</code></li>
<li>520 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/mathcomp/character/integral_char.vo</code></li>
<li>477 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/mathcomp/character/vcharacter.vo</code></li>
<li>386 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/mathcomp/character/vcharacter.glob</code></li>
<li>366 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/mathcomp/character/mxabelem.glob</code></li>
<li>358 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/mathcomp/character/integral_char.glob</code></li>
<li>236 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/mathcomp/character/mxrepresentation.v</code></li>
<li>113 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/mathcomp/character/character.v</code></li>
<li>96 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/mathcomp/character/classfun.v</code></li>
<li>69 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/mathcomp/character/inertia.v</code></li>
<li>62 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/mathcomp/character/all_character.vo</code></li>
<li>43 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/mathcomp/character/mxabelem.v</code></li>
<li>38 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/mathcomp/character/vcharacter.v</code></li>
<li>36 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/mathcomp/character/integral_char.v</code></li>
<li>1 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/mathcomp/character/all_character.glob</code></li>
<li>1 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/mathcomp/character/all_character.v</code></li>
</ul>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq-mathcomp-character.1.7.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| {
"content_hash": "e13e37cd9384fb143c11dfca4a965416",
"timestamp": "",
"source": "github",
"line_count": 183,
"max_line_length": 554,
"avg_line_length": 57.568306010928964,
"alnum_prop": 0.5833887043189369,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "a78121d2ae5741c5363b57704eae8e5a31c4eef5",
"size": "10561",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "clean/Linux-x86_64-4.02.3-2.0.6/released/8.7.0/mathcomp-character/1.7.0.html",
"mode": "33188",
"license": "mit",
"language": [],
"symlink_target": ""
} |
<div class="row" ng-bind-html-unsafe="ajaxData">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading">Login</div>
<div class="panel-body">
<form class="form-horizontal" role="form" ng-submit="saveAttribute(edition)">
<input type="hidden" name="token" ng-model="attribute.token" value="{{ csrf_token() }}">
<input type="hidden" name="id" ng-model="attribute.id" value="@{{ attribute.id }}">
<input id="product_id" type="hidden" name="product_id" ng-model="attribute.product_id" value="@{{ product.id }}">
<input type="hidden" name="currency" ng-model="attribute.currency" value="@{{ product.currency }}">
<div class="form-group">
<label for="email" class="col-md-4 control-label">Name</label>
<div class="col-md-6">
<input id="name" type="text" class="form-control" name="name" ng-model="attribute.name">
<span ng-show="form_error.name" class="help-block">
<strong>@{{form_error.name}}</strong>
</span>
</div>
</div>
<div class="form-group">
<label for="email" class="col-md-4 control-label">Symbol</label>
<div class="col-md-6">
<input id="slug" type="text" class="form-control" name="slug" ng-model="attribute.slug">
<span ng-show="form_error.slug" class="help-block">
<strong>@{{form_error.slug}}</strong>
</span>
</div>
</div>
<div class="form-group">
<label for="email" class="col-md-4 control-label">Currency</label>
<div class="col-md-6">
<input id="currency" readonly type="text" class="form-control" name="currency" ng-model="product.currency">
</div>
</div>
<div class="form-group">
<label for="email" class="col-md-4 control-label">Price</label>
<div class="col-md-6">
<input id="price" type="text" class="form-control" name="price" ng-model="attribute.price">
<span ng-show="form_error.price" class="help-block">
<strong>@{{form_error.price}}</strong>
</span>
</div>
</div>
<div class="form-group">
<div class="col-md-6 col-md-offset-4">
<button type="submit" class="btn btn-primary">
<i class="fa fa-btn fa-sign-in"></i> Add
</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
| {
"content_hash": "962ffd19d74ffd55cc5bf2e48eab5eb9",
"timestamp": "",
"source": "github",
"line_count": 60,
"max_line_length": 119,
"avg_line_length": 44.083333333333336,
"alnum_prop": 0.5217391304347826,
"repo_name": "kickenhio/productapp",
"id": "d4375995d74ef86f0d2057551b1657d9206a7bb7",
"size": "2645",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "resources/views/attribute/edit.blade.php",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "ApacheConf",
"bytes": "553"
},
{
"name": "CSS",
"bytes": "32137"
},
{
"name": "CoffeeScript",
"bytes": "11864"
},
{
"name": "HTML",
"bytes": "849"
},
{
"name": "JavaScript",
"bytes": "20271"
},
{
"name": "PHP",
"bytes": "106872"
}
],
"symlink_target": ""
} |
.editNotificatorSettingsPage {
width:50em;
}
table.runnerFormTable th {
width:230px;
}
table.runnerFormTable td input.textfield {
margin:0;
padding:0;
width:25em;
} | {
"content_hash": "42c5bde7c673155867129bd4221a07a3",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 42,
"avg_line_length": 13.538461538461538,
"alnum_prop": 0.7272727272727273,
"repo_name": "versionone/VersionOne.Integration.TeamCity",
"id": "d77e5a75e2499181ef34bca0d715ac727f7592e7",
"size": "176",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "buildServerResources/css/v1Settings.css",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "CSS",
"bytes": "176"
},
{
"name": "Java",
"bytes": "69219"
},
{
"name": "JavaScript",
"bytes": "4330"
},
{
"name": "Shell",
"bytes": "5980"
},
{
"name": "XSLT",
"bytes": "291"
}
],
"symlink_target": ""
} |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| AUTO-LOADER
| -------------------------------------------------------------------
| This file specifies which systems should be loaded by default.
|
| In order to keep the framework as light-weight as possible only the
| absolute minimal resources are loaded by default. For example,
| the database is not connected to automatically since no assumption
| is made regarding whether you intend to use it. This file lets
| you globally define which systems you would like loaded with every
| request.
|
| -------------------------------------------------------------------
| Instructions
| -------------------------------------------------------------------
|
| These are the things you can load automatically:
|
| 1. Packages
| 2. Libraries
| 3. Drivers
| 4. Helper files
| 5. Custom config files
| 6. Language files
| 7. Models
|
*/
/*
| -------------------------------------------------------------------
| Auto-load Packages
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['packages'] = array(APPPATH.'third_party', '/usr/local/shared');
|
*/
$autoload['packages'] = array();
/*
| -------------------------------------------------------------------
| Auto-load Libraries
| -------------------------------------------------------------------
| These are the classes located in system/libraries/ or your
| application/libraries/ directory, with the addition of the
| 'database' library, which is somewhat of a special case.
|
| Prototype:
|
| $autoload['libraries'] = array('database', 'email', 'session');
|
| You can also supply an alternative library name to be assigned
| in the controller:
|
| $autoload['libraries'] = array('user_agent' => 'ua');
*/
$autoload['libraries'] = array('cart', 'database');
/*
| -------------------------------------------------------------------
| Auto-load Drivers
| -------------------------------------------------------------------
| These classes are located in system/libraries/ or in your
| application/libraries/ directory, but are also placed inside their
| own subdirectory and they extend the CI_Driver_Library class. They
| offer multiple interchangeable driver options.
|
| Prototype:
|
| $autoload['drivers'] = array('cache');
*/
$autoload['drivers'] = array();
/*
| -------------------------------------------------------------------
| Auto-load Helper Files
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['helper'] = array('url', 'file');
*/
$autoload['helper'] = array('url', 'form');
/*
| -------------------------------------------------------------------
| Auto-load Config files
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['config'] = array('config1', 'config2');
|
| NOTE: This item is intended for use ONLY if you have created custom
| config files. Otherwise, leave it blank.
|
*/
$autoload['config'] = array();
/*
| -------------------------------------------------------------------
| Auto-load Language files
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['language'] = array('lang1', 'lang2');
|
| NOTE: Do not include the "_lang" part of your file. For example
| "codeigniter_lang.php" would be referenced as array('codeigniter');
|
*/
$autoload['language'] = array();
/*
| -------------------------------------------------------------------
| Auto-load Models
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['model'] = array('first_model', 'second_model');
|
| You can also supply an alternative model name to be assigned
| in the controller:
|
| $autoload['model'] = array('first_model' => 'first');
*/
$autoload['model'] = array();
| {
"content_hash": "20101ed52cbb4223298819578e0d9125",
"timestamp": "",
"source": "github",
"line_count": 129,
"max_line_length": 77,
"avg_line_length": 30.333333333333332,
"alnum_prop": 0.46894965499616664,
"repo_name": "hardcao/PhpPreject",
"id": "b5198d29036ba2120cfabcd4499ecd8ed6093f60",
"size": "3913",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "application/config/autoload.php",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "ApacheConf",
"bytes": "281"
},
{
"name": "CSS",
"bytes": "14680"
},
{
"name": "HTML",
"bytes": "8091231"
},
{
"name": "JavaScript",
"bytes": "56597"
},
{
"name": "PHP",
"bytes": "1733455"
}
],
"symlink_target": ""
} |
<?xml version="1.0"?>
<!--
-->
<integrations>
<integration name="TestIntegration2">
<!--Extension of data provided in integrationA.xml-->
<endpoint_url>http://example.com/integration2</endpoint_url>
<identity_link_url>http://www.example.com/identity2</identity_link_url>
</integration>
<integration name="TestIntegration3">
<email>test-integration3@example.com</email>
</integration>
</integrations>
| {
"content_hash": "f7308f84b8db687439d54400ee6e7d7e",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 79,
"avg_line_length": 32.07142857142857,
"alnum_prop": 0.6681514476614699,
"repo_name": "tarikgwa/test",
"id": "968150fcb78cdd720d87be3650898cffde1f5690",
"size": "547",
"binary": false,
"copies": "7",
"ref": "refs/heads/master",
"path": "html/dev/tests/integration/testsuite/Magento/Integration/Model/Config/_files/integrationB.xml",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "ApacheConf",
"bytes": "26588"
},
{
"name": "CSS",
"bytes": "4874492"
},
{
"name": "HTML",
"bytes": "8635167"
},
{
"name": "JavaScript",
"bytes": "6810903"
},
{
"name": "PHP",
"bytes": "55645559"
},
{
"name": "Perl",
"bytes": "7938"
},
{
"name": "Shell",
"bytes": "4505"
},
{
"name": "XSLT",
"bytes": "19889"
}
],
"symlink_target": ""
} |
import Ember from 'ember';
import startApp from '../../tests/helpers/start-app';
import { module, test } from 'qunit';
let App;
const { run } = Ember;
module('Acceptance - Loader', {
setup() {
App = startApp();
},
teardown() {
run(App, 'destroy');
}
});
test('Load the demo page', assert => {
visit('/loader');
andThen(function() {
assert.ok(true, 'If this is passing, this page has no deprecation warnings');
});
});
| {
"content_hash": "872a1c979a20a1ad24d2971a6d380a4e",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 81,
"avg_line_length": 18,
"alnum_prop": 0.6022222222222222,
"repo_name": "dortort/ember-cli-materialize",
"id": "5121209573d39ffd95d3882dd7b3be2e50846a70",
"size": "450",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "tests/integration/loader-test.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "3559"
},
{
"name": "HTML",
"bytes": "56170"
},
{
"name": "JavaScript",
"bytes": "142045"
},
{
"name": "Shell",
"bytes": "346"
}
],
"symlink_target": ""
} |
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=type.OwnedRowVector.html">
</head>
<body>
<p>Redirecting to <a href="type.OwnedRowVector.html">type.OwnedRowVector.html</a>...</p>
<script>location.replace("type.OwnedRowVector.html" + location.search + location.hash);</script>
</body>
</html> | {
"content_hash": "5cf2d33898796b3ec20f0cc632d2dd35",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 100,
"avg_line_length": 33.7,
"alnum_prop": 0.6943620178041543,
"repo_name": "nitro-devs/nitro-game-engine",
"id": "324175c8d677b53e95f84979d3ebc06ceb61139f",
"size": "337",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "docs/nalgebra/core/matrix/OwnedRowVector.t.html",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CMake",
"bytes": "1032"
},
{
"name": "Rust",
"bytes": "59380"
}
],
"symlink_target": ""
} |
<!DOCTYPE html><html><head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="description">
<meta name="keywords" content="static content generator,static site generator,static site,HTML,web development,.NET,C#,Razor,Markdown,YAML">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="/OpenTl.Schema/assets/img/favicon.ico" type="image/x-icon">
<link rel="icon" href="/OpenTl.Schema/assets/img/favicon.ico" type="image/x-icon">
<title>OpenTl.Schema - API - RequestStartBot.StartParam Property</title>
<link href="/OpenTl.Schema/assets/css/mermaid.css" rel="stylesheet">
<link href="/OpenTl.Schema/assets/css/highlight.css" rel="stylesheet">
<link href="/OpenTl.Schema/assets/css/bootstrap/bootstrap.css" rel="stylesheet">
<link href="/OpenTl.Schema/assets/css/adminlte/AdminLTE.css" rel="stylesheet">
<link href="/OpenTl.Schema/assets/css/theme/theme.css" rel="stylesheet">
<link href="//fonts.googleapis.com/css?family=Roboto+Mono:400,700|Roboto:400,400i,700,700i" rel="stylesheet">
<link href="/OpenTl.Schema/assets/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="/OpenTl.Schema/assets/css/override.css" rel="stylesheet">
<script src="/OpenTl.Schema/assets/js/jquery-2.2.3.min.js"></script>
<script src="/OpenTl.Schema/assets/js/bootstrap.min.js"></script>
<script src="/OpenTl.Schema/assets/js/app.min.js"></script>
<script src="/OpenTl.Schema/assets/js/highlight.pack.js"></script>
<script src="/OpenTl.Schema/assets/js/jquery.slimscroll.min.js"></script>
<script src="/OpenTl.Schema/assets/js/jquery.sticky-kit.min.js"></script>
<script src="/OpenTl.Schema/assets/js/mermaid.min.js"></script>
<!--[if lt IE 9]>
<script src="/OpenTl.Schema/assets/js/html5shiv.min.js"></script>
<script src="/OpenTl.Schema/assets/js/respond.min.js"></script>
<![endif]-->
</head>
<body class="hold-transition wyam layout-boxed ">
<div class="top-banner"></div>
<div class="wrapper with-container">
<!-- Header -->
<header class="main-header">
<a href="/OpenTl.Schema/" class="logo">
<span>OpenTl.Schema</span>
</a>
<nav class="navbar navbar-static-top" role="navigation">
<!-- Sidebar toggle button-->
<a href="#" class="sidebar-toggle visible-xs-block" data-toggle="offcanvas" role="button">
<span class="sr-only">Toggle side menu</span>
<i class="fa fa-chevron-circle-right"></i>
</a>
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse">
<span class="sr-only">Toggle side menu</span>
<i class="fa fa-chevron-circle-down"></i>
</button>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse pull-left" id="navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="/OpenTl.Schema/about.html">About This Project</a></li>
<li class="active"><a href="/OpenTl.Schema/api">API</a></li>
</ul>
</div>
<!-- /.navbar-collapse -->
<!-- Navbar Right Menu -->
</nav>
</header>
<!-- Left side column. contains the logo and sidebar -->
<aside class="main-sidebar ">
<section class="infobar" data-spy="affix" data-offset-top="60" data-offset-bottom="200">
<div id="infobar-headings"><h6>On This Page</h6><p><a href="#Syntax">Syntax</a></p>
<p><a href="#Value">Value</a></p>
<hr class="infobar-hidden">
</div>
</section>
<section class="sidebar">
<script src="/OpenTl.Schema/assets/js/lunr.min.js"></script>
<script src="/OpenTl.Schema/assets/js/searchIndex.js"></script>
<div class="sidebar-form">
<div class="input-group">
<input type="text" name="search" id="search" class="form-control" placeholder="Search Types...">
<span class="input-group-btn">
<button class="btn btn-flat"><i class="fa fa-search"></i></button>
</span>
</div>
</div>
<div id="search-results">
</div>
<script>
function runSearch(query){
$("#search-results").empty();
if( query.length < 2 ){
return;
}
var results = searchModule.search("*" + query + "*");
var listHtml = "<ul class='sidebar-menu'>";
listHtml += "<li class='header'>Type Results</li>";
if(results.length == 0 ){
listHtml += "<li>No results found</li>";
} else {
for(var i = 0; i < results.length; ++i){
var res = results[i];
listHtml += "<li><a href='" + res.url + "'>" + htmlEscape(res.title) + "</a></li>";
}
}
listHtml += "</ul>";
$("#search-results").append(listHtml);
}
$(document).ready(function(){
$("#search").on('input propertychange paste', function() {
runSearch($("#search").val());
});
});
function htmlEscape(html) {
return document.createElement('div')
.appendChild(document.createTextNode(html))
.parentNode
.innerHTML;
}
</script>
<hr>
<ul class="sidebar-menu">
<li class="header">Namespace</li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema.Messages">OpenTl<wbr>.Schema<wbr>.Messages</a></li>
<li class="header">Type</li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema.Messages/RequestStartBot">RequestStartBot</a></li>
<li role="separator" class="divider"></li>
<li class="header">Property Members</li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema.Messages/RequestStartBot/65BE9DC6.html">Bot</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema.Messages/RequestStartBot/26CE49F5.html">Peer</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema.Messages/RequestStartBot/CF3963A8.html">RandomId</a></li>
<li class="selected"><a href="/OpenTl.Schema/api/OpenTl.Schema.Messages/RequestStartBot/32BF6D84.html">StartParam</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema.Messages/RequestStartBot/A3FBC2CC.html">StartParamAsBinary</a></li>
</ul>
</section>
</aside>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<section class="content-header">
<h3><a href="/OpenTl.Schema/api/OpenTl.Schema.Messages/RequestStartBot">RequestStartBot</a>.</h3>
<h1>StartParam <small>Property</small></h1>
</section>
<section class="content">
<div class="panel panel-default">
<div class="panel-body">
<dl class="dl-horizontal">
<dt>Namespace</dt>
<dd><a href="/OpenTl.Schema/api/OpenTl.Schema.Messages">OpenTl<wbr>.Schema<wbr>.Messages</a></dd>
<dt>Containing Type</dt>
<dd><a href="/OpenTl.Schema/api/OpenTl.Schema.Messages/RequestStartBot">RequestStartBot</a></dd>
</dl>
</div>
</div>
<h1 id="Syntax">Syntax</h1>
<pre><code>public string StartParam { get; set; }</code></pre>
<h1 id="Value">Value</h1>
<div class="box">
<div class="box-body no-padding table-responsive">
<table class="table table-striped table-hover two-cols">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody><tr>
<td>string</td>
<td></td>
</tr>
</tbody></table>
</div>
</div>
</section>
</div>
<!-- Footer -->
<footer class="main-footer">
</footer>
</div>
<div class="wrapper bottom-wrapper">
<footer class="bottom-footer">
Generated by <a href="https://wyam.io">Wyam</a>
</footer>
</div>
<a href="javascript:" id="return-to-top"><i class="fa fa-chevron-up"></i></a>
<script>
// Close the sidebar if we select an anchor link
$(".main-sidebar a[href^='#']:not('.expand')").click(function(){
$(document.body).removeClass('sidebar-open');
});
$(document).load(function() {
mermaid.initialize(
{
flowchart:
{
htmlLabels: false,
useMaxWidth:false
}
});
mermaid.init(undefined, ".mermaid")
$('svg').addClass('img-responsive');
$('pre code').each(function(i, block) {
hljs.highlightBlock(block);
});
});
hljs.initHighlightingOnLoad();
// Back to top
$(window).scroll(function() {
if ($(this).scrollTop() >= 200) { // If page is scrolled more than 50px
$('#return-to-top').fadeIn(1000); // Fade in the arrow
} else {
$('#return-to-top').fadeOut(1000); // Else fade out the arrow
}
});
$('#return-to-top').click(function() { // When arrow is clicked
$('body,html').animate({
scrollTop : 0 // Scroll to top of body
}, 500);
});
</script>
</body></html> | {
"content_hash": "51b25718572ec0b79740c531103b26cf",
"timestamp": "",
"source": "github",
"line_count": 262,
"max_line_length": 148,
"avg_line_length": 40.66793893129771,
"alnum_prop": 0.5062412013139371,
"repo_name": "OpenTl/OpenTl.Schema",
"id": "4d68d48b0ec29de54b27f5f6447e253e2278c8aa",
"size": "10657",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "docs/api/OpenTl.Schema.Messages/RequestStartBot/32BF6D84.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C#",
"bytes": "810786"
},
{
"name": "F#",
"bytes": "19501"
},
{
"name": "PowerShell",
"bytes": "1288"
}
],
"symlink_target": ""
} |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Some Notes and Errors Encountered After Trying Out Apache Spark</title>
<meta name="description" content="Some Notes and Errors Encountered After Trying Out Apache Spark">
<meta name="author" content="Paolo Ibarra">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<link href="/assets/themes/bootstrap/resources/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="/assets/themes/bootstrap/css/style.css" rel="stylesheet">
<link href="/assets/themes/bootstrap/css/pygments.css" rel="stylesheet">
<script src="/assets/themes/bootstrap/resources/jquery/jquery.min.js"></script>
<script src="/assets/themes/bootstrap/resources/bootstrap/js/bootstrap.min.js"></script>
<!-- atom & rss feed -->
<link href="/atom.xml" type="application/atom+xml" rel="alternate" title="Sitewide ATOM Feed">
<link href="/rss.xml" type="application/rss+xml" rel="alternate" title="Sitewide RSS Feed">
<script type="text/javascript">
var mpq = [];
mpq.push(["init", "7188011789865f45786394de33a26ed6"]);
(function(){var b,a,e,d,c;b=document.createElement("script");b.type="text/javascript";
b.async=true;b.src=(document.location.protocol==="https:"?"https:":"http:")+
"//api.mixpanel.com/site_media/js/api/mixpanel.js";a=document.getElementsByTagName("script")[0];
a.parentNode.insertBefore(b,a);e=function(f){return function(){mpq.push(
[f].concat(Array.prototype.slice.call(arguments,0)))}};d=["init","track","track_links",
"track_forms","register","register_once","identify","name_tag","set_config"];for(c=0;c<
d.length;c++){mpq[d[c]]=e(d[c])}})();
</script>
</head>
<body>
<div class="home">
<a href="/">Home</a>
</div>
<br>
<div id="wrap">
<div class="container">
<div class="page-header">
<div class='header-logo'>
<div class="left">
<a href="/"><div class="logo">PAOLO<span>IBARRA</span></div></a>
</div>
<div class="right">
<div class="socialmedia">
<a id="twitter" class="twitter" href="https://twitter.com/paolo_ibarra" target="_blank"><i class="fa fa-twitter fa-3x"></i></a>
<a id="linkedin" class="linkedin" href="https://www.linkedin.com/in/paoloibarra" target="_blank"><i class="fa fa-linkedin fa-3x"></i></a>
<script type="text/javascript">
$("#twitter").click(function(event) {
var cb = generate_callback($(this));
event.preventDefault();
mpq.track("Twitter Link", { "Domain": "twitter.com" });
setTimeout(cb, 500);
})
$("#linkedin").click(function(event) {
var cb = generate_callback($(this));
event.preventDefault();
mpq.track("LinkedIn Link", { "Domain": "linkedin.com" });
setTimeout(cb, 500);
})
function generate_callback(a) {
return function() {
window.open(a.attr("href"), '_blank');
}
}
</script>
</div>
</div>
</div>
</div>
<div class="row post-full">
<h1 class="page-title">Some Notes and Errors Encountered After Trying Out Apache Spark </h1>
<div class="col-md12">
<div class="summary">
<span class="date">January 12, 2015</span>
</div>
<div class="content">
<p>I was playing around with <a href="https://spark.apache.org/">Apache Spark</a> a couple of weeks back. For those of you who are not familiar with Apache Spark, they have a really good documentation which you should read <a href="https://spark.apache.org/docs/latest/quick-start.html">here</a>. You should also check out <a href="https://www.cs.berkeley.edu/~matei/papers/2012/nsdi_spark.pdf">UC Berkeley’s paper</a> on RDD which will help you gain a deeper understanding on how Spark works. Don’t be daunted by the paper, it’s actually a good read.</p>
<p>Here are a few things I jotted down while working on it.</p>
<ul>
<li>to assign a name to master, you will need to create <code>conf/spark-env.sh</code> and set that value for SPARK_MASTER. Basically, you just need to add this:
<ul>
<li><code>SPARK_MASTER_IP=local.paolo.com</code></li>
</ul>
</li>
<li>You’ll be able to view the status of your cluster in in <code>http://localhost:8080/</code></li>
</ul>
<p>I have also encountered a few errors when I tried running my application. Here’s a list of the errors I’ve stumbled on together with steps on how I fixed it.</p>
<ul>
<li><em>Initial job has not accepted any resources</em>.
<ul>
<li>Check your cluster UI to ensure that workers are registered and have sufficient memory. I realized that I only have two cores I could connect too, and Spark Shell was already using it up. You can either update your config, or shutdown the other application using the resources. <a href="http://www.datastax.com/dev/blog/common-spark-troubleshooting">Source</a></li>
</ul>
</li>
<li><em>java.lang.IllegalStateException: unread block data</em>.
<ul>
<li>This is most likely caused by versioning issue. In my case, my Mac was running a different version of Scala (v2.11)compared to the one I downloaded (using Scala v2.10). To make this work, I just updated my Mac’s Scala version. I did this through:
<ul>
<li><code>brew info scala</code></li>
<li><code>brew search scala</code> - to view the available taps</li>
<li><code>brew install homebrew/versions/scala210</code></li>
<li>If you encounter this: <code>bash: scala: command not found</code> try running <code>brew link homebrew/versions/scala210</code></li>
<li><code>scala -version</code></li>
</ul>
</li>
</ul>
</li>
<li><em>org.apache.spark.serializer.JavaDeserializationStream$$anon$1.resolveClass spark “Class not found”</em>.
<ul>
<li>I encountered this when I was trying to run my test application via eclipse. I have a running master in the background so I wanted my test to connect to it instead of spawining its own. To make this work I had to create a fat jar containing all the dependencies. Using Shade plugin from maven will help fix the akka issue too. <a href="http://stackoverflow.com/questions/26892389/org-apache-spark-sparkexception-job-aborted-due-to-stage-failure-task-from-app">Source</a></li>
</ul>
</li>
<li><em>ERROR ContextCleaner: Error in cleaning thread java.lang.InterruptedException</em>. This can be safely ignored. <a href="http://apache-spark-user-list.1001560.n3.nabble.com/Error-in-run-spark-ContextCleaner-under-Spark-1-0-0-td8135.html">Source</a></li>
</ul>
<p>Hopefully, this will help someone out there who is also looking into Apache Spark.</p>
</div>
<ul class="tag_box inline">
<li><i class="icon-tags"></i></li>
<li><a href="/tags.html#errors-ref">errors <span>1</span></a></li>
<li><a href="/tags.html#spark-ref">spark <span>1</span></a></li>
<li><a href="/tags.html#apache-ref">apache <span>1</span></a></li>
<li><a href="/tags.html#apache spark-ref">apache spark <span>1</span></a></li>
<li><a href="/tags.html#notes-ref">notes <span>1</span></a></li>
</ul>
<hr>
<ul class="pagination">
<li class="prev"><a href="/2014/12/29/Working-With-Multiple-Storyboards-UITabBarController-Swift" title="Working with Multiple Storyboard in a UITabBarController using Swift">← Previous</a></li>
<li><a href="/archive.html">Archive</a></li>
<li class="next"><a href="/2015/01/28/SSH-Authentication-Issue" title="SSH Authentication Issue">Next →</a></li>
</ul>
<hr>
<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_developer = 1;
var disqus_shortname = 'jpibarra1130'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
</div>
</div>
<script type="text/javascript">
mpq.track("Some Notes and Errors Encountered After Trying Out Apache Spark")
</script>
</div>
</div>
<div class="container">
<footer class="footer">
<div class="container">
<div class="row">
<hr>
<p>© 2014 Paolo Ibarra with help from <a href="http://github.com/dbtek/jekyll-bootstrap-3" target="_blank" title="The Definitive Jekyll Blogging Framework">Jekyll Bootstrap-3</a> and <a href="http://getbootstrap.com" target="_blank">Twitter Bootstrap</a>
</p>
</div>
</div>
</footer>
</div>
</body>
</html>
| {
"content_hash": "be26e04e521b46ece11455c43fbcf912",
"timestamp": "",
"source": "github",
"line_count": 227,
"max_line_length": 561,
"avg_line_length": 40.969162995594715,
"alnum_prop": 0.6520430107526882,
"repo_name": "jpibarra1130/jpibarra1130.github.com",
"id": "3c83428826eeebeac3282c39d3f6652099e372e2",
"size": "9318",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "2015/01/12/Notes-and-Errors-Encountered-After-Trying-Out-Apache-Spark/index.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "HTML",
"bytes": "698068"
}
],
"symlink_target": ""
} |
package org.apache.spark.mllib.random;
import java.io.Serializable;
import java.util.Arrays;
import org.apache.spark.api.java.JavaRDD;
import org.junit.Assert;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.apache.spark.api.java.JavaDoubleRDD;
import org.apache.spark.api.java.JavaSparkContext;
import org.apache.spark.mllib.linalg.Vector;
import static org.apache.spark.mllib.random.RandomRDDs.*;
public class JavaRandomRDDsSuite {
private transient JavaSparkContext sc;
@Before
public void setUp() {
sc = new JavaSparkContext("local", "JavaRandomRDDsSuite");
}
@After
public void tearDown() {
sc.stop();
sc = null;
}
@Test
public void testUniformRDD() {
long m = 1000L;
int p = 2;
long seed = 1L;
JavaDoubleRDD rdd1 = uniformJavaRDD(sc, m);
JavaDoubleRDD rdd2 = uniformJavaRDD(sc, m, p);
JavaDoubleRDD rdd3 = uniformJavaRDD(sc, m, p, seed);
for (JavaDoubleRDD rdd: Arrays.asList(rdd1, rdd2, rdd3)) {
Assert.assertEquals(m, rdd.count());
}
}
@Test
public void testNormalRDD() {
long m = 1000L;
int p = 2;
long seed = 1L;
JavaDoubleRDD rdd1 = normalJavaRDD(sc, m);
JavaDoubleRDD rdd2 = normalJavaRDD(sc, m, p);
JavaDoubleRDD rdd3 = normalJavaRDD(sc, m, p, seed);
for (JavaDoubleRDD rdd: Arrays.asList(rdd1, rdd2, rdd3)) {
Assert.assertEquals(m, rdd.count());
}
}
@Test
public void testLNormalRDD() {
double mean = 4.0;
double std = 2.0;
long m = 1000L;
int p = 2;
long seed = 1L;
JavaDoubleRDD rdd1 = logNormalJavaRDD(sc, mean, std, m);
JavaDoubleRDD rdd2 = logNormalJavaRDD(sc, mean, std, m, p);
JavaDoubleRDD rdd3 = logNormalJavaRDD(sc, mean, std, m, p, seed);
for (JavaDoubleRDD rdd: Arrays.asList(rdd1, rdd2, rdd3)) {
Assert.assertEquals(m, rdd.count());
}
}
@Test
public void testPoissonRDD() {
double mean = 2.0;
long m = 1000L;
int p = 2;
long seed = 1L;
JavaDoubleRDD rdd1 = poissonJavaRDD(sc, mean, m);
JavaDoubleRDD rdd2 = poissonJavaRDD(sc, mean, m, p);
JavaDoubleRDD rdd3 = poissonJavaRDD(sc, mean, m, p, seed);
for (JavaDoubleRDD rdd: Arrays.asList(rdd1, rdd2, rdd3)) {
Assert.assertEquals(m, rdd.count());
}
}
@Test
public void testExponentialRDD() {
double mean = 2.0;
long m = 1000L;
int p = 2;
long seed = 1L;
JavaDoubleRDD rdd1 = exponentialJavaRDD(sc, mean, m);
JavaDoubleRDD rdd2 = exponentialJavaRDD(sc, mean, m, p);
JavaDoubleRDD rdd3 = exponentialJavaRDD(sc, mean, m, p, seed);
for (JavaDoubleRDD rdd: Arrays.asList(rdd1, rdd2, rdd3)) {
Assert.assertEquals(m, rdd.count());
}
}
@Test
public void testGammaRDD() {
double shape = 1.0;
double scale = 2.0;
long m = 1000L;
int p = 2;
long seed = 1L;
JavaDoubleRDD rdd1 = gammaJavaRDD(sc, shape, scale, m);
JavaDoubleRDD rdd2 = gammaJavaRDD(sc, shape, scale, m, p);
JavaDoubleRDD rdd3 = gammaJavaRDD(sc, shape, scale, m, p, seed);
for (JavaDoubleRDD rdd: Arrays.asList(rdd1, rdd2, rdd3)) {
Assert.assertEquals(m, rdd.count());
}
}
@Test
@SuppressWarnings("unchecked")
public void testUniformVectorRDD() {
long m = 100L;
int n = 10;
int p = 2;
long seed = 1L;
JavaRDD<Vector> rdd1 = uniformJavaVectorRDD(sc, m, n);
JavaRDD<Vector> rdd2 = uniformJavaVectorRDD(sc, m, n, p);
JavaRDD<Vector> rdd3 = uniformJavaVectorRDD(sc, m, n, p, seed);
for (JavaRDD<Vector> rdd: Arrays.asList(rdd1, rdd2, rdd3)) {
Assert.assertEquals(m, rdd.count());
Assert.assertEquals(n, rdd.first().size());
}
}
@Test
@SuppressWarnings("unchecked")
public void testNormalVectorRDD() {
long m = 100L;
int n = 10;
int p = 2;
long seed = 1L;
JavaRDD<Vector> rdd1 = normalJavaVectorRDD(sc, m, n);
JavaRDD<Vector> rdd2 = normalJavaVectorRDD(sc, m, n, p);
JavaRDD<Vector> rdd3 = normalJavaVectorRDD(sc, m, n, p, seed);
for (JavaRDD<Vector> rdd: Arrays.asList(rdd1, rdd2, rdd3)) {
Assert.assertEquals(m, rdd.count());
Assert.assertEquals(n, rdd.first().size());
}
}
@Test
@SuppressWarnings("unchecked")
public void testLogNormalVectorRDD() {
double mean = 4.0;
double std = 2.0;
long m = 100L;
int n = 10;
int p = 2;
long seed = 1L;
JavaRDD<Vector> rdd1 = logNormalJavaVectorRDD(sc, mean, std, m, n);
JavaRDD<Vector> rdd2 = logNormalJavaVectorRDD(sc, mean, std, m, n, p);
JavaRDD<Vector> rdd3 = logNormalJavaVectorRDD(sc, mean, std, m, n, p, seed);
for (JavaRDD<Vector> rdd: Arrays.asList(rdd1, rdd2, rdd3)) {
Assert.assertEquals(m, rdd.count());
Assert.assertEquals(n, rdd.first().size());
}
}
@Test
@SuppressWarnings("unchecked")
public void testPoissonVectorRDD() {
double mean = 2.0;
long m = 100L;
int n = 10;
int p = 2;
long seed = 1L;
JavaRDD<Vector> rdd1 = poissonJavaVectorRDD(sc, mean, m, n);
JavaRDD<Vector> rdd2 = poissonJavaVectorRDD(sc, mean, m, n, p);
JavaRDD<Vector> rdd3 = poissonJavaVectorRDD(sc, mean, m, n, p, seed);
for (JavaRDD<Vector> rdd: Arrays.asList(rdd1, rdd2, rdd3)) {
Assert.assertEquals(m, rdd.count());
Assert.assertEquals(n, rdd.first().size());
}
}
@Test
@SuppressWarnings("unchecked")
public void testExponentialVectorRDD() {
double mean = 2.0;
long m = 100L;
int n = 10;
int p = 2;
long seed = 1L;
JavaRDD<Vector> rdd1 = exponentialJavaVectorRDD(sc, mean, m, n);
JavaRDD<Vector> rdd2 = exponentialJavaVectorRDD(sc, mean, m, n, p);
JavaRDD<Vector> rdd3 = exponentialJavaVectorRDD(sc, mean, m, n, p, seed);
for (JavaRDD<Vector> rdd: Arrays.asList(rdd1, rdd2, rdd3)) {
Assert.assertEquals(m, rdd.count());
Assert.assertEquals(n, rdd.first().size());
}
}
@Test
@SuppressWarnings("unchecked")
public void testGammaVectorRDD() {
double shape = 1.0;
double scale = 2.0;
long m = 100L;
int n = 10;
int p = 2;
long seed = 1L;
JavaRDD<Vector> rdd1 = gammaJavaVectorRDD(sc, shape, scale, m, n);
JavaRDD<Vector> rdd2 = gammaJavaVectorRDD(sc, shape, scale, m, n, p);
JavaRDD<Vector> rdd3 = gammaJavaVectorRDD(sc, shape, scale, m, n, p, seed);
for (JavaRDD<Vector> rdd: Arrays.asList(rdd1, rdd2, rdd3)) {
Assert.assertEquals(m, rdd.count());
Assert.assertEquals(n, rdd.first().size());
}
}
@Test
public void testArbitrary() {
long size = 10;
long seed = 1L;
int numPartitions = 0;
StringGenerator gen = new StringGenerator();
JavaRDD<String> rdd1 = randomJavaRDD(sc, gen, size);
JavaRDD<String> rdd2 = randomJavaRDD(sc, gen, size, numPartitions);
JavaRDD<String> rdd3 = randomJavaRDD(sc, gen, size, numPartitions, seed);
for (JavaRDD<String> rdd: Arrays.asList(rdd1, rdd2, rdd3)) {
Assert.assertEquals(size, rdd.count());
Assert.assertEquals(2, rdd.first().length());
}
}
@Test
@SuppressWarnings("unchecked")
public void testRandomVectorRDD() {
UniformGenerator generator = new UniformGenerator();
long m = 100L;
int n = 10;
int p = 2;
long seed = 1L;
JavaRDD<Vector> rdd1 = randomJavaVectorRDD(sc, generator, m, n);
JavaRDD<Vector> rdd2 = randomJavaVectorRDD(sc, generator, m, n, p);
JavaRDD<Vector> rdd3 = randomJavaVectorRDD(sc, generator, m, n, p, seed);
for (JavaRDD<Vector> rdd: Arrays.asList(rdd1, rdd2, rdd3)) {
Assert.assertEquals(m, rdd.count());
Assert.assertEquals(n, rdd.first().size());
}
}
}
// This is just a test generator, it always returns a string of 42
class StringGenerator implements RandomDataGenerator<String>, Serializable {
@Override
public String nextValue() {
return "42";
}
@Override
public StringGenerator copy() {
return new StringGenerator();
}
@Override
public void setSeed(long seed) {
}
}
| {
"content_hash": "a6e95126c1ed860f1963f5545698d329",
"timestamp": "",
"source": "github",
"line_count": 266,
"max_line_length": 80,
"avg_line_length": 29.902255639097746,
"alnum_prop": 0.6437012823736484,
"repo_name": "haowu80s/spark",
"id": "5728df5aeebdc68824edb3fb333f4690f7f16728",
"size": "8754",
"binary": false,
"copies": "3",
"ref": "refs/heads/SparkALR",
"path": "mllib/src/test/java/org/apache/spark/mllib/random/JavaRandomRDDsSuite.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "26907"
},
{
"name": "C",
"bytes": "1493"
},
{
"name": "CSS",
"bytes": "15364"
},
{
"name": "Java",
"bytes": "1912519"
},
{
"name": "JavaScript",
"bytes": "69355"
},
{
"name": "Makefile",
"bytes": "7767"
},
{
"name": "Python",
"bytes": "1685361"
},
{
"name": "R",
"bytes": "545376"
},
{
"name": "Roff",
"bytes": "23332"
},
{
"name": "SQLPL",
"bytes": "3603"
},
{
"name": "Scala",
"bytes": "15781223"
},
{
"name": "Shell",
"bytes": "144056"
},
{
"name": "Thrift",
"bytes": "2016"
}
],
"symlink_target": ""
} |
<TS language="hi_IN" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<source>Copyright</source>
<translation>कापीराइट</translation>
</message>
</context>
<context>
<name>AddressBookPage</name>
<message>
<source>Double-click to edit address or label</source>
<translation>दो बार क्लिक करे पता या लेबल संपादन करने के लिए !</translation>
</message>
<message>
<source>Create a new address</source>
<translation>नया पता लिखिए !</translation>
</message>
<message>
<source>Copy the currently selected address to the system clipboard</source>
<translation>चुनिन्दा पते को सिस्टम क्लिपबोर्ड पर कापी करे !</translation>
</message>
<message>
<source>&Copy Address</source>
<translation>&पता कॉपी करे</translation>
</message>
<message>
<source>&Delete</source>
<translation>&मिटाए !!</translation>
</message>
<message>
<source>Copy &Label</source>
<translation>&लेबल कॉपी करे </translation>
</message>
<message>
<source>&Edit</source>
<translation>&एडिट</translation>
</message>
<message>
<source>Comma separated file (*.csv)</source>
<translation>Comma separated file (*.csv)</translation>
</message>
</context>
<context>
<name>AddressTableModel</name>
<message>
<source>Label</source>
<translation>लेबल</translation>
</message>
<message>
<source>Address</source>
<translation>पता</translation>
</message>
<message>
<source>(no label)</source>
<translation>(कोई लेबल नही !)</translation>
</message>
</context>
<context>
<name>AskPassphraseDialog</name>
<message>
<source>Enter passphrase</source>
<translation>पहचान शब्द/अक्षर डालिए !</translation>
</message>
<message>
<source>New passphrase</source>
<translation>नया पहचान शब्द/अक्षर डालिए !</translation>
</message>
<message>
<source>Repeat new passphrase</source>
<translation>दोबारा नया पहचान शब्द/अक्षर डालिए !</translation>
</message>
<message>
<source>Enter the new passphrase to the wallet.<br/>Please use a passphrase of <b>10 or more random characters</b>, or <b>eight or more words</b>.</source>
<translation>नया पहचान शब्द/अक्षर वॉलेट मे डालिए ! <br/> कृपा करके पहचान शब्द में <br> 10 से ज़्यादा अक्षॉरों का इस्तेमाल करे </b>,या <b>आठ या उससे से ज़्यादा शब्दो का इस्तेमाल करे</b> !</translation>
</message>
<message>
<source>Encrypt wallet</source>
<translation>एनक्रिप्ट वॉलेट !</translation>
</message>
<message>
<source>This operation needs your wallet passphrase to unlock the wallet.</source>
<translation>वॉलेट खोलने के आपका वॉलेट पहचान शब्द्/अक्षर चाईए !</translation>
</message>
<message>
<source>Unlock wallet</source>
<translation>वॉलेट खोलिए</translation>
</message>
<message>
<source>This operation needs your wallet passphrase to decrypt the wallet.</source>
<translation>वॉलेट डीक्रिप्ट( विकोड) करने के लिए आपका वॉलेट पहचान शब्द्/अक्षर चाईए !</translation>
</message>
<message>
<source>Decrypt wallet</source>
<translation> डीक्रिप्ट वॉलेट</translation>
</message>
<message>
<source>Change passphrase</source>
<translation>पहचान शब्द/अक्षर बदलिये !</translation>
</message>
<message>
<source>Enter the old and new passphrase to the wallet.</source>
<translation>कृपा करके पुराना एवं नया पहचान शब्द/अक्षर वॉलेट में डालिए !</translation>
</message>
<message>
<source>Confirm wallet encryption</source>
<translation>वॉलेट एनक्रिपशन को प्रमाणित कीजिए !</translation>
</message>
<message>
<source>Wallet encrypted</source>
<translation>वॉलेट एनक्रिप्ट हो गया !</translation>
</message>
<message>
<source>Wallet encryption failed</source>
<translation>वॉलेट एनक्रिप्ट नही हुआ!</translation>
</message>
<message>
<source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source>
<translation>वॉलेट एनक्रिपशन नाकाम हो गया इंटर्नल एरर की वजह से! आपका वॉलेट एनक्रीपत नही हुआ है!</translation>
</message>
<message>
<source>The supplied passphrases do not match.</source>
<translation>आपके द्वारा डाले गये पहचान शब्द/अक्षर मिलते नही है !</translation>
</message>
<message>
<source>Wallet unlock failed</source>
<translation>वॉलेट का लॉक नही खुला !</translation>
</message>
<message>
<source>The passphrase entered for the wallet decryption was incorrect.</source>
<translation>वॉलेट डीक्रिप्ट करने के लिए जो पहचान शब्द/अक्षर डाले गये है वो सही नही है!</translation>
</message>
<message>
<source>Wallet decryption failed</source>
<translation>वॉलेट का डीक्रिप्ट-ष्ण असफल !</translation>
</message>
</context>
<context>
<name>BarnacoinGUI</name>
<message>
<source>Synchronizing with network...</source>
<translation>नेटवर्क से समकालिक (मिल) रहा है ...</translation>
</message>
<message>
<source>&Overview</source>
<translation>&विवरण</translation>
</message>
<message>
<source>Show general overview of wallet</source>
<translation>वॉलेट का सामानया विवरण दिखाए !</translation>
</message>
<message>
<source>&Transactions</source>
<translation>& लेन-देन
</translation>
</message>
<message>
<source>Browse transaction history</source>
<translation>देखिए पुराने लेन-देन के विवरण !</translation>
</message>
<message>
<source>E&xit</source>
<translation>बाहर जायें</translation>
</message>
<message>
<source>Quit application</source>
<translation>अप्लिकेशन से बाहर निकलना !</translation>
</message>
<message>
<source>Show information about Barnacoin</source>
<translation>बीटकोइन के बारे में जानकारी !</translation>
</message>
<message>
<source>&Options...</source>
<translation>&विकल्प</translation>
</message>
<message>
<source>&Backup Wallet...</source>
<translation>&बैकप वॉलेट</translation>
</message>
<message>
<source>Change the passphrase used for wallet encryption</source>
<translation>पहचान शब्द/अक्षर जो वॉलेट एनक्रिपशन के लिए इस्तेमाल किया है उसे बदलिए!</translation>
</message>
<message>
<source>Barnacoin</source>
<translation>बीटकोइन</translation>
</message>
<message>
<source>Wallet</source>
<translation>वॉलेट</translation>
</message>
<message>
<source>&File</source>
<translation>&फाइल</translation>
</message>
<message>
<source>&Settings</source>
<translation>&सेट्टिंग्स</translation>
</message>
<message>
<source>&Help</source>
<translation>&मदद</translation>
</message>
<message>
<source>Tabs toolbar</source>
<translation>टैबस टूलबार</translation>
</message>
<message>
<source>[testnet]</source>
<translation>[टेस्टनेट]</translation>
</message>
<message numerus="yes">
<source>%n active connection(s) to Barnacoin network</source>
<translation><numerusform>%n सक्रिया संपर्क बीटकोइन नेटवर्क से</numerusform><numerusform>%n सक्रिया संपर्क बीटकोइन नेटवर्क से</numerusform></translation>
</message>
<message numerus="yes">
<source>%n hour(s)</source>
<translation><numerusform>%n घंटा</numerusform><numerusform>%n घंटे</numerusform></translation>
</message>
<message numerus="yes">
<source>%n day(s)</source>
<translation><numerusform>%n दिन</numerusform><numerusform>%n दिनो</numerusform></translation>
</message>
<message numerus="yes">
<source>%n week(s)</source>
<translation><numerusform>%n हफ़्ता</numerusform><numerusform>%n हफ्ते</numerusform></translation>
</message>
<message>
<source>%1 behind</source>
<translation>%1 पीछे</translation>
</message>
<message>
<source>Error</source>
<translation>भूल</translation>
</message>
<message>
<source>Warning</source>
<translation>चेतावनी</translation>
</message>
<message>
<source>Information</source>
<translation>जानकारी</translation>
</message>
<message>
<source>Up to date</source>
<translation>नवीनतम</translation>
</message>
<message>
<source>Sent transaction</source>
<translation>भेजी ट्रांजक्शन</translation>
</message>
<message>
<source>Incoming transaction</source>
<translation>प्राप्त हुई ट्रांजक्शन</translation>
</message>
<message>
<source>Date: %1
Amount: %2
Type: %3
Address: %4
</source>
<translation>तारीख: %1\n
राशि: %2\n
टाइप: %3\n
पता:%4\n</translation>
</message>
<message>
<source>Wallet is <b>encrypted</b> and currently <b>unlocked</b></source>
<translation>वॉलेट एन्क्रिप्टेड है तथा अभी लॉक्ड नहीं है</translation>
</message>
<message>
<source>Wallet is <b>encrypted</b> and currently <b>locked</b></source>
<translation>वॉलेट एन्क्रिप्टेड है तथा अभी लॉक्ड है</translation>
</message>
</context>
<context>
<name>ClientModel</name>
</context>
<context>
<name>CoinControlDialog</name>
<message>
<source>Amount:</source>
<translation>राशि :</translation>
</message>
<message>
<source>Amount</source>
<translation>राशि</translation>
</message>
<message>
<source>Address</source>
<translation>पता</translation>
</message>
<message>
<source>Date</source>
<translation>taareek</translation>
</message>
<message>
<source>Confirmed</source>
<translation>पक्का</translation>
</message>
<message>
<source>Copy address</source>
<translation>पता कॉपी करे</translation>
</message>
<message>
<source>Copy label</source>
<translation>लेबल कॉपी करे </translation>
</message>
<message>
<source>Copy amount</source>
<translation>कॉपी राशि</translation>
</message>
<message>
<source>(no label)</source>
<translation>(कोई लेबल नही !)</translation>
</message>
</context>
<context>
<name>EditAddressDialog</name>
<message>
<source>Edit Address</source>
<translation>पता एडिट करना</translation>
</message>
<message>
<source>&Label</source>
<translation>&लेबल</translation>
</message>
<message>
<source>&Address</source>
<translation>&पता</translation>
</message>
<message>
<source>New receiving address</source>
<translation>नया स्वीकार्य पता</translation>
</message>
<message>
<source>New sending address</source>
<translation>नया भेजने वाला पता</translation>
</message>
<message>
<source>Edit receiving address</source>
<translation>एडिट स्वीकार्य पता </translation>
</message>
<message>
<source>Edit sending address</source>
<translation>एडिट भेजने वाला पता</translation>
</message>
<message>
<source>The entered address "%1" is already in the address book.</source>
<translation>डाला गया पता "%1" एड्रेस बुक में पहले से ही मोजूद है|</translation>
</message>
<message>
<source>Could not unlock wallet.</source>
<translation>वॉलेट को unlock नहीं किया जा सकता|</translation>
</message>
<message>
<source>New key generation failed.</source>
<translation>नयी कुंजी का निर्माण असफल रहा|</translation>
</message>
</context>
<context>
<name>FreespaceChecker</name>
</context>
<context>
<name>HelpMessageDialog</name>
<message>
<source>version</source>
<translation>संस्करण</translation>
</message>
<message>
<source>Usage:</source>
<translation>खपत :</translation>
</message>
</context>
<context>
<name>Intro</name>
<message>
<source>Barnacoin</source>
<translation>बीटकोइन</translation>
</message>
<message>
<source>Error</source>
<translation>भूल</translation>
</message>
</context>
<context>
<name>OpenURIDialog</name>
</context>
<context>
<name>OptionsDialog</name>
<message>
<source>Options</source>
<translation>विकल्प</translation>
</message>
<message>
<source>&OK</source>
<translation>&ओके</translation>
</message>
<message>
<source>&Cancel</source>
<translation>&कैन्सल</translation>
</message>
</context>
<context>
<name>OverviewPage</name>
<message>
<source>Form</source>
<translation>फार्म</translation>
</message>
<message>
<source>Wallet</source>
<translation>वॉलेट</translation>
</message>
<message>
<source><b>Recent transactions</b></source>
<translation><b>हाल का लेन-देन</b></translation>
</message>
</context>
<context>
<name>PaymentServer</name>
</context>
<context>
<name>QObject</name>
<message>
<source>Barnacoin</source>
<translation>बीटकोइन</translation>
</message>
<message>
<source>Enter a Barnacoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Barnacoin एड्रेस लिखें (उदाहरण: 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
</context>
<context>
<name>QRImageWidget</name>
</context>
<context>
<name>RPCConsole</name>
<message>
<source>N/A</source>
<translation>लागू नही
</translation>
</message>
<message>
<source>&Information</source>
<translation>जानकारी</translation>
</message>
</context>
<context>
<name>ReceiveCoinsDialog</name>
<message>
<source>&Label:</source>
<translation>लेबल:</translation>
</message>
<message>
<source>Copy label</source>
<translation>लेबल कॉपी करे </translation>
</message>
<message>
<source>Copy amount</source>
<translation>कॉपी राशि</translation>
</message>
</context>
<context>
<name>ReceiveRequestDialog</name>
<message>
<source>Address</source>
<translation>पता</translation>
</message>
<message>
<source>Amount</source>
<translation>राशि</translation>
</message>
<message>
<source>Label</source>
<translation>लेबल</translation>
</message>
</context>
<context>
<name>RecentRequestsTableModel</name>
<message>
<source>Date</source>
<translation>taareek</translation>
</message>
<message>
<source>Label</source>
<translation>लेबल</translation>
</message>
<message>
<source>Amount</source>
<translation>राशि</translation>
</message>
<message>
<source>(no label)</source>
<translation>(कोई लेबल नही !)</translation>
</message>
</context>
<context>
<name>SendCoinsDialog</name>
<message>
<source>Send Coins</source>
<translation>सिक्के भेजें|</translation>
</message>
<message>
<source>Amount:</source>
<translation>राशि :</translation>
</message>
<message>
<source>Send to multiple recipients at once</source>
<translation>एक साथ कई प्राप्तकर्ताओं को भेजें</translation>
</message>
<message>
<source>Balance:</source>
<translation>बाकी रकम :</translation>
</message>
<message>
<source>Confirm the send action</source>
<translation>भेजने की पुष्टि करें</translation>
</message>
<message>
<source>Confirm send coins</source>
<translation>सिक्के भेजने की पुष्टि करें</translation>
</message>
<message>
<source>Copy amount</source>
<translation>कॉपी राशि</translation>
</message>
<message>
<source>The amount to pay must be larger than 0.</source>
<translation>भेजा गया अमाउंट शुन्य से अधिक होना चाहिए|</translation>
</message>
<message>
<source>(no label)</source>
<translation>(कोई लेबल नही !)</translation>
</message>
</context>
<context>
<name>SendCoinsEntry</name>
<message>
<source>A&mount:</source>
<translation>अमाउंट:</translation>
</message>
<message>
<source>Pay &To:</source>
<translation>प्राप्तकर्ता:</translation>
</message>
<message>
<source>Enter a label for this address to add it to your address book</source>
<translation>आपकी एड्रेस बुक में इस एड्रेस के लिए एक लेबल लिखें</translation>
</message>
<message>
<source>&Label:</source>
<translation>लेबल:</translation>
</message>
<message>
<source>Alt+A</source>
<translation>Alt-A</translation>
</message>
<message>
<source>Paste address from clipboard</source>
<translation>Clipboard से एड्रेस paste करें</translation>
</message>
<message>
<source>Alt+P</source>
<translation>Alt-P</translation>
</message>
</context>
<context>
<name>ShutdownWindow</name>
</context>
<context>
<name>SignVerifyMessageDialog</name>
<message>
<source>Alt+A</source>
<translation>Alt-A</translation>
</message>
<message>
<source>Paste address from clipboard</source>
<translation>Clipboard से एड्रेस paste करें</translation>
</message>
<message>
<source>Alt+P</source>
<translation>Alt-P</translation>
</message>
<message>
<source>Signature</source>
<translation>हस्ताक्षर</translation>
</message>
<message>
<source>Enter a Barnacoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Barnacoin एड्रेस लिखें (उदाहरण: 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
</context>
<context>
<name>SplashScreen</name>
<message>
<source>[testnet]</source>
<translation>[टेस्टनेट]</translation>
</message>
</context>
<context>
<name>TrafficGraphWidget</name>
</context>
<context>
<name>TransactionDesc</name>
<message>
<source>Open until %1</source>
<translation>खुला है जबतक %1</translation>
</message>
<message>
<source>%1/unconfirmed</source>
<translation>%1/अपुष्ट</translation>
</message>
<message>
<source>%1 confirmations</source>
<translation>%1 पुष्टियाँ</translation>
</message>
<message>
<source>Date</source>
<translation>taareek</translation>
</message>
<message>
<source>Transaction ID</source>
<translation>ID</translation>
</message>
<message>
<source>Amount</source>
<translation>राशि</translation>
</message>
<message>
<source>true</source>
<translation>सही</translation>
</message>
<message>
<source>false</source>
<translation>ग़लत</translation>
</message>
<message>
<source>, has not been successfully broadcast yet</source>
<translation>, अभी तक सफलतापूर्वक प्रसारित नहीं किया गया है</translation>
</message>
<message>
<source>unknown</source>
<translation>अज्ञात</translation>
</message>
</context>
<context>
<name>TransactionDescDialog</name>
<message>
<source>Transaction details</source>
<translation>लेन-देन का विवरण</translation>
</message>
<message>
<source>This pane shows a detailed description of the transaction</source>
<translation> ये खिड़की आपको लेन-देन का विस्तृत विवरण देगी !</translation>
</message>
</context>
<context>
<name>TransactionTableModel</name>
<message>
<source>Date</source>
<translation>taareek</translation>
</message>
<message>
<source>Type</source>
<translation>टाइप</translation>
</message>
<message>
<source>Address</source>
<translation>पता</translation>
</message>
<message>
<source>Amount</source>
<translation>राशि</translation>
</message>
<message>
<source>Open until %1</source>
<translation>खुला है जबतक %1</translation>
</message>
<message>
<source>Confirmed (%1 confirmations)</source>
<translation>पक्के ( %1 पक्का करना)</translation>
</message>
<message>
<source>This block was not received by any other nodes and will probably not be accepted!</source>
<translation>यह ब्लॉक किसी भी और नोड को मिला नही है ! शायद यह ब्लॉक कोई भी नोड स्वीकारे गा नही !</translation>
</message>
<message>
<source>Generated but not accepted</source>
<translation>जेनरेट किया गया किंतु स्वीकारा नही गया !</translation>
</message>
<message>
<source>Received with</source>
<translation>स्वीकारा गया</translation>
</message>
<message>
<source>Received from</source>
<translation>स्वीकार्य ओर से</translation>
</message>
<message>
<source>Sent to</source>
<translation>भेजा गया</translation>
</message>
<message>
<source>Payment to yourself</source>
<translation>भेजा खुद को भुगतान</translation>
</message>
<message>
<source>Mined</source>
<translation>माइंड</translation>
</message>
<message>
<source>(n/a)</source>
<translation>(लागू नहीं)</translation>
</message>
<message>
<source>Transaction status. Hover over this field to show number of confirmations.</source>
<translation>ट्रांसेक्शन स्तिथि| पुष्टियों की संख्या जानने के लिए इस जगह पर माउस लायें|</translation>
</message>
<message>
<source>Date and time that the transaction was received.</source>
<translation>तारीख तथा समय जब ये ट्रांसेक्शन प्राप्त हुई थी|</translation>
</message>
<message>
<source>Type of transaction.</source>
<translation>ट्रांसेक्शन का प्रकार|</translation>
</message>
<message>
<source>Destination address of transaction.</source>
<translation>ट्रांसेक्शन की मंजिल का पता|</translation>
</message>
<message>
<source>Amount removed from or added to balance.</source>
<translation>अमाउंट बैलेंस से निकला या जमा किया गया |</translation>
</message>
</context>
<context>
<name>TransactionView</name>
<message>
<source>All</source>
<translation>सभी</translation>
</message>
<message>
<source>Today</source>
<translation>आज</translation>
</message>
<message>
<source>This week</source>
<translation>इस हफ्ते</translation>
</message>
<message>
<source>This month</source>
<translation>इस महीने</translation>
</message>
<message>
<source>Last month</source>
<translation>पिछले महीने</translation>
</message>
<message>
<source>This year</source>
<translation>इस साल</translation>
</message>
<message>
<source>Range...</source>
<translation>विस्तार...</translation>
</message>
<message>
<source>Received with</source>
<translation>स्वीकार करना</translation>
</message>
<message>
<source>Sent to</source>
<translation>भेजा गया</translation>
</message>
<message>
<source>To yourself</source>
<translation>अपनेआप को</translation>
</message>
<message>
<source>Mined</source>
<translation>माइंड</translation>
</message>
<message>
<source>Other</source>
<translation>अन्य</translation>
</message>
<message>
<source>Enter address or label to search</source>
<translation>ढूँदने के लिए कृपा करके पता या लेबल टाइप करे !</translation>
</message>
<message>
<source>Min amount</source>
<translation>लघुत्तम राशि</translation>
</message>
<message>
<source>Copy address</source>
<translation>पता कॉपी करे</translation>
</message>
<message>
<source>Copy label</source>
<translation>लेबल कॉपी करे </translation>
</message>
<message>
<source>Copy amount</source>
<translation>कॉपी राशि</translation>
</message>
<message>
<source>Edit label</source>
<translation>एडिट लेबल</translation>
</message>
<message>
<source>Comma separated file (*.csv)</source>
<translation>Comma separated file (*.csv)</translation>
</message>
<message>
<source>Confirmed</source>
<translation>पक्का</translation>
</message>
<message>
<source>Date</source>
<translation>taareek</translation>
</message>
<message>
<source>Type</source>
<translation>टाइप</translation>
</message>
<message>
<source>Label</source>
<translation>लेबल</translation>
</message>
<message>
<source>Address</source>
<translation>पता</translation>
</message>
<message>
<source>Amount</source>
<translation>राशि</translation>
</message>
<message>
<source>ID</source>
<translation>ID</translation>
</message>
<message>
<source>Range:</source>
<translation>विस्तार:</translation>
</message>
<message>
<source>to</source>
<translation>तक</translation>
</message>
</context>
<context>
<name>WalletFrame</name>
</context>
<context>
<name>WalletModel</name>
<message>
<source>Send Coins</source>
<translation>सिक्के भेजें|</translation>
</message>
</context>
<context>
<name>WalletView</name>
<message>
<source>Backup Wallet</source>
<translation>बैकप वॉलेट</translation>
</message>
<message>
<source>Wallet Data (*.dat)</source>
<translation>वॉलेट डेटा (*.dat)</translation>
</message>
<message>
<source>Backup Failed</source>
<translation>बैकप असफल</translation>
</message>
<message>
<source>Backup Successful</source>
<translation>बैकप सफल</translation>
</message>
</context>
<context>
<name>barnacoin-core</name>
<message>
<source>Usage:</source>
<translation>खपत :</translation>
</message>
<message>
<source>List commands</source>
<translation>commands की लिस्ट बनाएं</translation>
</message>
<message>
<source>Get help for a command</source>
<translation>किसी command के लिए मदद लें</translation>
</message>
<message>
<source>Options:</source>
<translation>विकल्प:</translation>
</message>
<message>
<source>Specify configuration file (default: barnacoin.conf)</source>
<translation>configuraion की फाइल का विवरण दें (default: barnacoin.conf)</translation>
</message>
<message>
<source>Specify pid file (default: barnacoind.pid)</source>
<translation>pid फाइल का विवरण दें (default: barnacoin.pid)</translation>
</message>
<message>
<source>Specify data directory</source>
<translation>डेटा डायरेक्टरी बताएं </translation>
</message>
<message>
<source>Run in the background as a daemon and accept commands</source>
<translation>बैकग्राउंड में डेमॉन बन कर रन करे तथा कमांड्स स्वीकार करें </translation>
</message>
<message>
<source>Use the test network</source>
<translation>टेस्ट नेटवर्क का इस्तेमाल करे </translation>
</message>
<message>
<source>Verifying blocks...</source>
<translation>ब्लॉक्स जाँचे जा रहा है...</translation>
</message>
<message>
<source>Verifying wallet...</source>
<translation>वॉलेट जाँचा जा रहा है...</translation>
</message>
<message>
<source>Information</source>
<translation>जानकारी</translation>
</message>
<message>
<source>Warning</source>
<translation>चेतावनी</translation>
</message>
<message>
<source>version</source>
<translation>संस्करण</translation>
</message>
<message>
<source>Loading addresses...</source>
<translation>पता पुस्तक आ रही है...</translation>
</message>
<message>
<source>Invalid amount</source>
<translation>राशि ग़लत है</translation>
</message>
<message>
<source>Loading block index...</source>
<translation>ब्लॉक इंडेक्स आ रहा है...</translation>
</message>
<message>
<source>Loading wallet...</source>
<translation>वॉलेट आ रहा है...</translation>
</message>
<message>
<source>Rescanning...</source>
<translation>रि-स्केनी-इंग...</translation>
</message>
<message>
<source>Done loading</source>
<translation>लोड हो गया|</translation>
</message>
<message>
<source>Error</source>
<translation>भूल</translation>
</message>
</context>
</TS> | {
"content_hash": "bc7104367d4cb1809461aed235c6f373",
"timestamp": "",
"source": "github",
"line_count": 968,
"max_line_length": 238,
"avg_line_length": 30.792355371900825,
"alnum_prop": 0.5823799778575502,
"repo_name": "FinalHashLLC/Barnacoin",
"id": "a4a6f87d432d3d6512d9c93e359efb9b5b0484bb",
"size": "35645",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/qt/locale/barnacoin_hi_IN.ts",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "175913"
},
{
"name": "C++",
"bytes": "2934769"
},
{
"name": "CSS",
"bytes": "1127"
},
{
"name": "Makefile",
"bytes": "8744"
},
{
"name": "Objective-C++",
"bytes": "6334"
},
{
"name": "Python",
"bytes": "116815"
},
{
"name": "Shell",
"bytes": "42142"
},
{
"name": "TypeScript",
"bytes": "5452409"
}
],
"symlink_target": ""
} |
var add = function (a,b){
return a+b;
}
var minus = function (a,b){
return a-b;
}
//exports.add = add;
//exports = {add:add,minus:minus}
module.exports= {add:add,minus:minus};
| {
"content_hash": "532f250823226debc9084e56f5cca461",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 38,
"avg_line_length": 15.416666666666666,
"alnum_prop": 0.6216216216216216,
"repo_name": "zhufengnodejs/201508ajax",
"id": "86f5fb5305788e4eb851d1d2df2a36814881c52c",
"size": "217",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "1.node介绍/2.math.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "22"
},
{
"name": "HTML",
"bytes": "11707"
},
{
"name": "JavaScript",
"bytes": "30798"
}
],
"symlink_target": ""
} |
@implementation RSDictionary
@end
| {
"content_hash": "615a96e1114176e284ed758fc6a10321",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 28,
"avg_line_length": 11.666666666666666,
"alnum_prop": 0.8285714285714286,
"repo_name": "Sean8694/RSBase",
"id": "3c5648df1471b941a994b54cfb010b1317960c6d",
"size": "178",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Base/BaseClass/RSDictionary.m",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Objective-C",
"bytes": "9986"
},
{
"name": "Ruby",
"bytes": "562"
}
],
"symlink_target": ""
} |
import numpy as np
from matplotlib import pyplot as plt
from sklearn.externals import joblib
from autoencoder import window_size, build_model
if __name__ == '__main__':
test = 0 # 0 - 3
scaler = joblib.load('models/auto_encoder_scaler.dat')
X_test = np.load('data/sin2X_test%d_365.npy' % test)
X_test_scaled = scaler.transform(X_test)
auto_encoder = build_model()
auto_encoder.load_weights('models/auto_encoder.dat')
plt.ion()
fig, (ax1, ax2) = plt.subplots(2, 1)
max_input = np.amax(X_test)
min_input = 0
samples_count = X_test.shape[0]
Xs = []
deltas = []
inputs = []
X_anomalies = []
Y_anomalies = []
for i in range(X_test_scaled.shape[0]):
sample = np.reshape(X_test[i], (1, -1))
sample_scaled = np.reshape(X_test_scaled[i], (1, -1))
predicted = auto_encoder.predict(sample_scaled)
predicted_real = scaler.inverse_transform(predicted)
delta = np.abs(sample - predicted_real)[0, window_size - 1]
deltas.append(delta)
input = X_test[i, window_size - 1]
inputs.append(input)
Xs.append(i)
if delta > 150:
X_anomalies.append(i)
Y_anomalies.append(input)
ax1.clear()
ax1.set_title('Test data')
ax1.plot(Xs, inputs)
ax1.plot(X_anomalies, Y_anomalies, 'ro')
ax2.clear()
ax2.set_title('Absolute error of the representation')
ax2.plot(Xs, deltas)
ax1.set_xlim([0, samples_count + 1])
ax1.set_ylim([min_input, max_input])
ax2.set_xlim([0, samples_count + 1])
ax2.set_ylim([min_input, max_input])
plt.draw()
plt.pause(0.01)
plt.ioff()
plt.show()
| {
"content_hash": "3f20601aabfd04cbd1c56f303e4290d9",
"timestamp": "",
"source": "github",
"line_count": 64,
"max_line_length": 67,
"avg_line_length": 27.15625,
"alnum_prop": 0.5822784810126582,
"repo_name": "salceson/iwium",
"id": "6abc3ab6d602b324d6905850cbb059448ccd4c01",
"size": "1777",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "autoencoder_test.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Python",
"bytes": "8245"
}
],
"symlink_target": ""
} |
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" >
<item
android:id="@+id/share"
android:icon="@drawable/selector_actionbar_share_btn"
android:orderInCategory="100"
android:title="@string/share"
app:showAsAction="always"/>
</menu> | {
"content_hash": "e397d40a6779bc786d9aaf1f9b389ff5",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 64,
"avg_line_length": 32.25,
"alnum_prop": 0.6459948320413437,
"repo_name": "benniaobuguai/android-project-wo2b",
"id": "de30bf7f2438bb79f36e1051afdbd3b19a4c73df",
"size": "387",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "wo2b-common-wrapper/res/menu/common_share.xml",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "HTML",
"bytes": "8505"
},
{
"name": "Java",
"bytes": "2842359"
},
{
"name": "Makefile",
"bytes": "1916"
}
],
"symlink_target": ""
} |
<section class="section" id="header">
<div class="container has-padding-lr-1">
<div class="columns is-mobile is-multiline is-vbaseline">
<div class="column is-4-desktop is-8-mobile">
<h1 class="title is-1"><a href="/">Vinícius Philot</a></h1>
</div>
<div class="column is-3-desktop is-8-mobile">
<p class="has-spacing-sm is-size-7">Front End UI Developer</p>
</div>
<div class="column is-3-desktop is-6-mobile has-spacing-sm">
<a href="mailto:vphilo@gmail.com?subject=Hey%2C%20nice%20site%20you%20have">
<p class="has-spacing-sm is-size-7">vphilot@gmail.com</p>
</a>
</div>
<div class="column is-2-desktop is-12-mobile">
<a
aria-label="check my Linkedin in a new tab"
href="https://www.linkedin.com/in/vphilot/?locale=en_US"
target="_blank"
tabindex="0"
>
<i aria-hidden="true" class="icon icon-linkedin"></i>
</a>
<a
aria-label="check my Twitter in a new tab"
href="https://twitter.com/vphilot"
target="_blank"
tabindex="0"
>
<i aria-hidden="true" class="icon icon-twitter"></i>
</a>
<a
aria-label="check my Instagram in a new tab"
href="https://instagram.com/vphilot"
target="_blank"
tabindex="0"
>
<i aria-hidden="true" class="icon icon-instagram"></i>
</a>
<a
aria-label="check my Github in a new tab"
href="https://github.com/vphilot"
target="_blank"
tabindex="0"
>
<i aria-hidden="true" class="icon icon-github"></i>
</a>
<a
aria-label="check my Codepen in a new tab"
href="https://codepen.io/vphilot/"
target="_blank"
tabindex="0"
>
<i aria-hidden="true" class="icon icon-codepen"></i>
</a>
<a
aria-label="check my Spotify in a new tab"
href="https://open.spotify.com/user/12183629233"
target="_blank"
tabindex="0"
>
<i aria-hidden="true" class="icon icon-spotify"></i>
</a>
</div>
</div>
</div>
</section> | {
"content_hash": "1572b3e5fd0fa7ed425945f292b0bb1f",
"timestamp": "",
"source": "github",
"line_count": 68,
"max_line_length": 92,
"avg_line_length": 40.86764705882353,
"alnum_prop": 0.43684778697373156,
"repo_name": "vphilot/philot",
"id": "78e7734f3c0fe7db47d885b690a3bad82482a10d",
"size": "2780",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "_includes/header.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "253814"
},
{
"name": "HTML",
"bytes": "393278"
},
{
"name": "JavaScript",
"bytes": "8055"
},
{
"name": "Ruby",
"bytes": "1469"
}
],
"symlink_target": ""
} |
package cn.gyyx.framework.mybatis.entity;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import java.io.Serializable;
/**
* @Author : east.Fu
* @Description :
* @Date : Created in 2017/10/23 11:20
*/
public class BaseEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Override
public String toString() {
return ReflectionToStringBuilder.toString(this);
}
}
| {
"content_hash": "cb27e5bf81ada8756ebaf98a1210a3b3",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 66,
"avg_line_length": 23.263157894736842,
"alnum_prop": 0.7239819004524887,
"repo_name": "eastFu/gy4j-framework",
"id": "08f01703be02e84a5898eb99c80c378b5e529494",
"size": "442",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "gy4j-core/src/main/java/cn/gyyx/framework/mybatis/entity/BaseEntity.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "620688"
}
],
"symlink_target": ""
} |
package com.github.lindenb.jvarkit.tools.impactdup;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.List;
import com.github.lindenb.jvarkit.util.picard.cmdline.CommandLineProgram;
import com.github.lindenb.jvarkit.util.picard.cmdline.Option;
import com.github.lindenb.jvarkit.util.picard.cmdline.StandardOptionDefinitions;
import com.github.lindenb.jvarkit.util.picard.cmdline.Usage;
import htsjdk.samtools.util.IOUtil;
import htsjdk.samtools.util.Interval;
import htsjdk.samtools.util.IntervalList;
import htsjdk.samtools.util.Log;
import htsjdk.samtools.util.RuntimeEOFException;
import htsjdk.samtools.util.SamRecordIntervalIteratorFactory;
import htsjdk.samtools.SAMFileHeader;
import htsjdk.samtools.SAMFileReader;
import htsjdk.samtools.SAMRecord;
import htsjdk.samtools.SAMSequenceDictionary;
import htsjdk.samtools.util.BinaryCodec;
import htsjdk.samtools.util.CloseableIterator;
import htsjdk.samtools.util.SortingCollection;
public class ImpactOfDuplicates extends CommandLineProgram
{
private static final Log log = Log.getInstance(ImpactOfDuplicates.class);
@Usage
public String USAGE = getStandardUsagePreamble() + "Impact of Duplicates per BAM.";
@Option(shortName=StandardOptionDefinitions.INPUT_SHORT_NAME, doc="SAM or BAM input file", minElements=1)
public List<File> INPUT = new ArrayList<File>();
@Option(shortName=StandardOptionDefinitions.OUTPUT_SHORT_NAME, doc="Save result as... default is stdout", optional=true)
public File OUTPUT = null;
@Option(shortName="B", doc="BED File", optional=true)
public File BEDFILE = null;
/** sam file dict, to retrieve the sequences names */
private List< SAMSequenceDictionary> samFileDicts=new ArrayList<SAMSequenceDictionary>();
/** buffer for Duplicates */
private List<Duplicate> duplicatesBuffer=new ArrayList<Duplicate>();
/** output */
private PrintStream out=System.out;
/* current index in BAM list */
private int bamIndex;
/* all duplicates, sorted */
private SortingCollection<Duplicate> duplicates;
private class Duplicate implements Comparable<Duplicate>
{
int tid;
int pos;
int size;
int bamIndex;
public String getReferenceName()
{
return samFileDicts.get(this.bamIndex).getSequence(this.tid).getSequenceName();
}
public int compareChromPosSize(final Duplicate o)
{
int i=getReferenceName().compareTo(o.getReferenceName());
if(i!=0) return i;
i=pos-o.pos;
if(i!=0) return i;
i=size-o.size;
return i;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + bamIndex;
result = prime * result + pos;
result = prime * result + size;
result = prime * result + tid;
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
Duplicate other = (Duplicate) obj;
return compareTo(other)==0;
}
@Override
public int compareTo(final Duplicate o)
{
int i=compareChromPosSize(o);
if(i!=0) return i;
return bamIndex-o.bamIndex;
}
@Override
public String toString() {
return "(bamIndex:"+bamIndex+" pos:"+pos+" size:"+size+" tid:"+tid+")";
}
}
private class DuplicateCodec
extends BinaryCodec
implements SortingCollection.Codec<Duplicate >
{
@Override
public void encode(final Duplicate d)
{
this.writeInt(d.tid);
this.writeInt(d.pos);
this.writeInt(d.size);
this.writeInt(d.bamIndex);
}
@Override
public Duplicate decode()
{
Duplicate d=new Duplicate();
try
{
d.tid=this.readInt();
}
catch(RuntimeEOFException err)
{
return null;
}
d.pos=this.readInt();
d.size=this.readInt();
d.bamIndex=this.readInt();
return d;
}
@Override
public DuplicateCodec clone()
{
return new DuplicateCodec();
}
}
private void dumpDuplicatesBuffer()
{
if(this.duplicatesBuffer.isEmpty()) return;
int counts[]=new int[INPUT.size()];
Arrays.fill(counts, 0);
int maxDup=0;
for(int i=0;i< this.duplicatesBuffer.size();++i)
{
Duplicate di=this.duplicatesBuffer.get(i);
counts[di.bamIndex]++;
maxDup=Math.max(maxDup,counts[di.bamIndex]);
}
if(maxDup<10)
{
this.duplicatesBuffer.clear();
return;
}
int total=0;
for(int i:counts) total+=i;
Duplicate front=this.duplicatesBuffer.get(0);
out.print(
front.getReferenceName()+":"+
front.pos+"-"+
(front.pos+front.size)
);
out.print("\t"+maxDup+"\t"+(int)(total/(1.0*counts.length)));
for(int i=0;i< counts.length;++i)
{
out.print('\t');
out.print(counts[i]);
}
out.println();
this.duplicatesBuffer.clear();
}
@Override
protected int doWork()
{
this.duplicates=SortingCollection.newInstance(
Duplicate.class,
new DuplicateCodec(),
new Comparator<Duplicate>()
{
@Override
public int compare(Duplicate o1, Duplicate o2)
{
return o1.compareTo(o2);
}
},
super.MAX_RECORDS_IN_RAM,
super.TMP_DIR
);
CloseableIterator<Duplicate> dupIter=null;
try
{
for(this.bamIndex=0;
this.bamIndex< this.INPUT.size();
this.bamIndex++)
{
int prev_tid=-1;
int prev_pos=-1;
long nLines=0L;
File inFile=this.INPUT.get(this.bamIndex);
log.info("Processing "+inFile);
IOUtil.assertFileIsReadable(inFile);
SAMFileReader samReader=null;
CloseableIterator<SAMRecord> iter=null;
try
{
samReader=new SAMFileReader(inFile);
final SAMFileHeader header=samReader.getFileHeader();
this.samFileDicts.add(header.getSequenceDictionary());
samReader.setValidationStringency(super.VALIDATION_STRINGENCY);
if(BEDFILE==null)
{
iter=samReader.iterator();
}
else
{
IntervalList intervalList=new IntervalList(header);
BufferedReader in=new BufferedReader(new FileReader(BEDFILE));
String line=null;
while((line=in.readLine())!=null)
{
if(line.isEmpty() || line.startsWith("#")) continue;
String tokens[]=line.split("[\t]");
Interval interval=new Interval(tokens[0], 1+Integer.parseInt(tokens[1]), Integer.parseInt(tokens[2]));
intervalList.add(interval);
}
in.close();
intervalList=intervalList.sorted();
List<Interval> uniqueIntervals=IntervalList.getUniqueIntervals(intervalList,false);
SamRecordIntervalIteratorFactory sriif=new SamRecordIntervalIteratorFactory();
iter=sriif.makeSamRecordIntervalIterator(samReader, uniqueIntervals, false);
}
while(iter.hasNext())
{
SAMRecord rec=iter.next();
if(rec.getReadUnmappedFlag()) continue;
if(!rec.getReadPairedFlag()) continue;
if(rec.getReferenceIndex()!=rec.getMateReferenceIndex()) continue;
if(!rec.getProperPairFlag()) continue;
if(!rec.getFirstOfPairFlag()) continue;
if(prev_tid!=-1 )
{
if(prev_tid> rec.getReferenceIndex())
{
throw new IOException("Bad sort order from "+rec);
}
else if(prev_tid==rec.getReferenceIndex() && prev_pos>rec.getAlignmentStart())
{
throw new IOException("Bad sort order from "+rec);
}
else
{
prev_pos=rec.getAlignmentStart();
}
}
else
{
prev_tid=rec.getReferenceIndex();
prev_pos=-1;
}
if((++nLines)%1000000==0)
{
log.info("In "+inFile+" N="+nLines);
}
Duplicate dup=new Duplicate();
dup.bamIndex=this.bamIndex;
dup.pos=Math.min(rec.getAlignmentStart(),rec.getMateAlignmentStart());
dup.tid=rec.getReferenceIndex();
dup.size=Math.abs(rec.getInferredInsertSize());
this.duplicates.add(dup);
}
}
finally
{
if(iter!=null) iter.close();
if(samReader!=null) samReader.close();
}
log.info("done "+inFile);
}
/** loop done, now scan the duplicates */
log.info("doneAdding");
this.duplicates.doneAdding();
if(this.OUTPUT!=null)
{
this.out=new PrintStream(OUTPUT);
}
out.print("#INTERVAL\tMAX\tMEAN");
for(int i=0;i< INPUT.size();++i)
{
out.print('\t');
out.print(INPUT.get(i));
}
out.println();
dupIter=this.duplicates.iterator();
while(dupIter.hasNext())
{
Duplicate dup=dupIter.next();
if( this.duplicatesBuffer.isEmpty() ||
dup.compareChromPosSize(this.duplicatesBuffer.get(0))==0)
{
this.duplicatesBuffer.add(dup);
}
else
{
dumpDuplicatesBuffer();
this.duplicatesBuffer.add(dup);
}
}
dumpDuplicatesBuffer();
log.info("end iterator");
out.flush();
out.close();
}
catch (Exception e) {
log.error(e);
return -1;
}
finally
{
if(dupIter!=null) dupIter.close();
log.info("cleaning duplicates");
this.duplicates.cleanup();
}
return 0;
}
public static void main(final String[] argv)
{
new ImpactOfDuplicates().instanceMainWithExit(argv);
}
}
| {
"content_hash": "c05da1a054524e5b0f605501dac84098",
"timestamp": "",
"source": "github",
"line_count": 382,
"max_line_length": 124,
"avg_line_length": 30.68848167539267,
"alnum_prop": 0.5250362535187238,
"repo_name": "vd4mmind/jvarkit",
"id": "9170ee5dda7a1a65b961806ab746e2b8938bca1a",
"size": "11723",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/main/java/com/github/lindenb/jvarkit/tools/impactdup/ImpactOfDuplicates.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "2878078"
},
{
"name": "Makefile",
"bytes": "38838"
},
{
"name": "XSLT",
"bytes": "29383"
}
],
"symlink_target": ""
} |
/* eslint-disable no-process-exit */
import gulp from "gulp";
import mocha from "gulp-mocha";
import istanbul from "gulp-babel-istanbul";
import paths from "../paths.json";
import chai from "chai";
chai.should(); // This enables should-style syntax
gulp.task("test-cli", ["build"], callback => {
gulp.src(paths.source.cli)
.pipe(istanbul()) // Covering files
.pipe(istanbul.hookRequire()) // Force `require` to return covered files
.on("finish", () => {
gulp.src(paths.source.cliSpec)
.pipe(mocha())
.pipe(istanbul.writeReports({dir: `${__dirname}/../`, reporters: ["text-summary", "lcovonly"]})) // Creating the reports after tests ran
// .pipe(istanbul.enforceThresholds({ thresholds: { global: 100 } })) // Enforce a coverage of 100%
.once("end", error => {
callback(error);
// Required to end the test due to
// interactive CLI testing
process.exit(0);
});
});
});
| {
"content_hash": "1edbfed777408d7769bf6d51447cfc83",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 140,
"avg_line_length": 35.5,
"alnum_prop": 0.6489707475622969,
"repo_name": "FreeAllMedia/stimpak",
"id": "6887c2b44313c4acc9cd3e559d8d5d18b99858d8",
"size": "923",
"binary": false,
"copies": "1",
"ref": "refs/heads/develop",
"path": "tasks/test-cli.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "210137"
}
],
"symlink_target": ""
} |
[](https://travis-ci.org/thehydroimpulse/gossiper) [](https://waffle.io/thehydroimpulse/gossip.rs)
**Note**: This is a work-in-progress. It's not yet usable **at all!**.
Gossip protocol written in Rust.
## Installing Gossip
Gossip is a Cargo package. You can simply include Gossip as a dependency.
```toml
# Cargo.toml
[dependencies.gossip]
git = "https://github.com/thehydroimpulse/gossip.rs"
```
## Getting Started
After adding Gossip as a dependency, you'll want to include the crate within your project:
```rust
extern crate gossip;
```
Now you'll have access to the Gossip system. We'll simply start with a brief example
of creating a single server that listens on a given address. By default, this actually
doesn't include any transport mechanism, so it's purely in-memory. A TCP transport
is shipped with Gossip which we'll get to later on.
```rust
use gossip::{Node};
fn main() {
// Create a new Node.
let mut node = Node::new();
// Bind on a specific host/port.
node.listen("localhost", 5999).unwrap();
// Join an existing cluster, given a peer.
node.peer("localhost", 4555).unwrap();
// Loop through any broadcasts that we receive.
for (broadcast, mut res) in node.incoming() {
// ...
// Send an OK broadcast back, acknowledging the initial
// broadcast.
res.ok();
}
}
```
## What's A Gossip Protocol?
Wikipedia defines it as:
> A gossip protocol is a style of computer-to-computer communication protocol inspired by the form of gossip seen in social networks. Modern distributed systems often use gossip protocols to solve problems that might be difficult to solve in other ways, either because the underlying network has an inconvenient structure, is extremely large, or because gossip solutions are the most efficient ones available.
The concept goes like this:
> You walk into work one morning and Sam (fictional) approaches you. He tells you a secret about Billy. Excited about knowing Billy's secret, you run over to the break room to tell John. At the same time, Sam, the one who first told you, also goes and tells Jimmy. In the afternoon, all of you get together in the meeting room discussing this secret. Then, Amy, who doesn't know it yet, walks in and everybody starts telling her. At first, nobody knows if she knows the secret, so you asked, in which she replied "No?"
That's the basic workflow for gossip protocols, except, we're talking about computers and networks. This is how a network of computers can communicate without having a leader/master node. There are obvious trade-offs here. By achieving the no-leader semantics, you effectively have no control on how effective messages are getting across the network and who hasn't received them. That's the lack of consistency, yet you gain high-availability. It doesn't matter if nodes go down, there aren't any leaders, which means no quorum needs to be held, and no election processes need to happen. On top of that, any node is able to accept requests for information (i.e database queries).
For many systems and tasks, this isn't desireable. There are situations where having a consistent cluster is much simpler and more effective.
## Why Rust?
[Rust](http://www.rust-lang.org/) is Mozilla's new systems programming language that focuses on safety, concurrency and practicality. It doesn't have garbage collection — focusing on safety without sacrificing performance.
While Rust is aimed at being a systems programming language, it has powerful features allowing a high-level of abstractions. With memory safety at it's core, you can have more guarantees about software.
## Papers / Research
* **[Epidemic Broadcast Trees](http://www.gsd.inesc-id.pt/~jleitao/pdf/srds07-leitao.pdf)** (Original Plumtree design)
* [Cassandra's Gossip Protocol](http://www.datastax.com/docs/0.8/cluster_architecture/gossip)
* [How robust are gossip-based communication protocols](https://www.cs.utexas.edu/users/lorenzo/papers/p14-alvisi.pdf)
* [Using Gossip Protocols For Failure Detection, Monitoring, Messaging And Other Good Things](http://highscalability.com/blog/2011/11/14/using-gossip-protocols-for-failure-detection-monitoring-mess.html)
* [GEMS: Gossip-Enabled Monitoring Service for Scalable Heterogeneous Distributed Systems](http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.160.2604)
* [A Gossip-Style Failure Detection Service](http://www.cs.cornell.edu/home/rvr/papers/GossipFD.pdf)
* [Controlled Epidemics: Riak's New Gossip Protocol and Metadata Store (Jordan West)](https://www.youtube.com/watch?v=s4cCUTPU8GI)
* [Spanning Tree](https://en.wikipedia.org/wiki/Spanning_tree)
## Testing
```
make test
```
## Building Gossip.rs
```
cargo build
```
## License
The MIT License (MIT)
Copyright (c) 2014 Daniel Fagnan <dnfagnan@gmail.com>
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.
| {
"content_hash": "9e9fa22d7104679ff5ca062dfbd3d4d0",
"timestamp": "",
"source": "github",
"line_count": 118,
"max_line_length": 679,
"avg_line_length": 51.11864406779661,
"alnum_prop": 0.7652519893899205,
"repo_name": "thehydroimpulse/gossiper",
"id": "34d3ac0f1080b42bd17a554a74d51eb608c36599",
"size": "6044",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "README.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Rust",
"bytes": "19560"
},
{
"name": "Shell",
"bytes": "860"
}
],
"symlink_target": ""
} |
Release Process
====================
* Update translations (ping wumpus, Diapolo or tcatm on IRC) see [translation_process.md](https://github.com/bitcoin/bitcoin/blob/master/doc/translation_process.md#syncing-with-transifex)
* Update [bips.md](bips.md) to account for changes since the last release.
* Update hardcoded [seeds](/contrib/seeds)
* * *
###First time / New builders
Check out the source code in the following directory hierarchy.
cd /path/to/your/toplevel/build
git clone https://github.com/bitcoin/gitian.sigs.git
git clone https://github.com/bitcoin/bitcoin-detached-sigs.git
git clone https://github.com/devrandom/gitian-builder.git
git clone https://github.com/bitcoin/bitcoin.git
###Bitcoin maintainers/release engineers, update (commit) version in sources
pushd ./bitcoin
contrib/verifysfbinaries/verify.sh
configure.ac
doc/README*
doc/Doxyfile
contrib/gitian-descriptors/*.yml
src/clientversion.h (change CLIENT_VERSION_IS_RELEASE to true)
# tag version in git
git tag -s v(new version, e.g. 0.8.0)
# write release notes. git shortlog helps a lot, for example:
git shortlog --no-merges v(current version, e.g. 0.7.2)..v(new version, e.g. 0.8.0)
popd
* * *
###Setup and perform Gitian builds
Setup Gitian descriptors:
pushd ./bitcoin
export SIGNER=(your Gitian key, ie bluematt, sipa, etc)
export VERSION=(new version, e.g. 0.8.0)
git fetch
git checkout v${VERSION}
popd
Ensure your gitian.sigs are up-to-date if you wish to gverify your builds against other Gitian signatures.
pushd ./gitian.sigs
git pull
popd
Ensure gitian-builder is up-to-date to take advantage of new caching features (`e9741525c` or later is recommended).
pushd ./gitian-builder
<<<<<<< HEAD
mkdir -p inputs; cd inputs/
Register and download the Apple SDK (see OSX Readme for details)
visit https://developer.apple.com/downloads/download.action?path=Developer_Tools/xcode_4.6.3/xcode4630916281a.dmg
Using a Mac, create a tarball for the 10.7 SDK
tar -C /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/ -czf MacOSX10.7.sdk.tar.gz MacOSX10.7.sdk
<<<<<<< HEAD
###fetch and build inputs: (first time, or when dependency versions change)
=======
git pull
###Fetch and create inputs: (first time, or when dependency versions change)
>>>>>>> 80d1f2e48364f05b2cdf44239b3a1faa0277e58e
mkdir -p inputs
wget -P inputs https://bitcoincore.org/cfields/osslsigncode-Backports-to-1.7.1.patch
wget -P inputs http://downloads.sourceforge.net/project/osslsigncode/osslsigncode/osslsigncode-1.7.1.tar.gz
Register and download the Apple SDK: see [OS X readme](README_osx.txt) for details.
https://developer.apple.com/devcenter/download.action?path=/Developer_Tools/xcode_6.1.1/xcode_6.1.1.dmg
Using a Mac, create a tarball for the 10.9 SDK and copy it to the inputs directory:
tar -C /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/ -czf MacOSX10.9.sdk.tar.gz MacOSX10.9.sdk
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
Download remaining inputs, and build everything:
wget 'http://miniupnp.free.fr/files/download.php?file=miniupnpc-1.9.tar.gz' -O miniupnpc-1.9.tar.gz
wget 'https://www.openssl.org/source/openssl-1.0.1h.tar.gz'
=======
Fetch and build inputs: (first time, or when dependency versions change)
wget 'http://miniupnp.free.fr/files/download.php?file=miniupnpc-1.9.20140701.tar.gz' -O miniupnpc-1.9.20140701.tar.gz
wget 'https://www.openssl.org/source/openssl-1.0.1i.tar.gz'
>>>>>>> 5b9f78d69ccf189bebe894b1921e34417103a046
wget 'http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz'
wget 'http://zlib.net/zlib-1.2.8.tar.gz'
wget 'ftp://ftp.simplesystems.org/pub/png/src/history/libpng16/libpng-1.6.8.tar.gz'
wget 'https://fukuchi.org/works/qrencode/qrencode-3.4.3.tar.bz2'
wget 'https://downloads.sourceforge.net/project/boost/boost/1.55.0/boost_1_55_0.tar.bz2'
wget 'https://svn.boost.org/trac/boost/raw-attachment/ticket/7262/boost-mingw.patch' -O boost-mingw-gas-cross-compile-2013-03-03.patch
wget 'https://download.qt-project.org/official_releases/qt/5.2/5.2.0/single/qt-everywhere-opensource-src-5.2.0.tar.gz'
wget 'https://download.qt-project.org/official_releases/qt/5.2/5.2.1/single/qt-everywhere-opensource-src-5.2.1.tar.gz'
wget 'https://download.qt-project.org/archive/qt/4.6/qt-everywhere-opensource-src-4.6.4.tar.gz'
wget 'https://protobuf.googlecode.com/files/protobuf-2.5.0.tar.bz2'
wget 'https://github.com/mingwandroid/toolchain4/archive/10cc648683617cca8bcbeae507888099b41b530c.tar.gz'
wget 'http://www.opensource.apple.com/tarballs/cctools/cctools-809.tar.gz'
wget 'http://www.opensource.apple.com/tarballs/dyld/dyld-195.5.tar.gz'
wget 'http://www.opensource.apple.com/tarballs/ld64/ld64-127.2.tar.gz'
wget 'http://pkgs.fedoraproject.org/repo/pkgs/cdrkit/cdrkit-1.1.11.tar.gz/efe08e2f3ca478486037b053acd512e9/cdrkit-1.1.11.tar.gz'
wget 'https://github.com/theuni/libdmg-hfsplus/archive/libdmg-hfsplus-v0.1.tar.gz'
<<<<<<< HEAD
wget 'http://llvm.org/releases/3.2/clang+llvm-3.2-x86-linux-ubuntu-12.04.tar.gz' -O clang-llvm-3.2-x86-linux-ubuntu-12.04.tar.gz
wget 'https://raw.githubusercontent.com/theuni/osx-cross-depends/master/patches/cdrtools/genisoimage.diff' -O cdrkit-deterministic.patch
=======
wget 'http://llvm.org/releases/3.2/clang+llvm-3.2-x86-linux-ubuntu-12.04.tar.gz' -O \
clang-llvm-3.2-x86-linux-ubuntu-12.04.tar.gz
wget 'https://raw.githubusercontent.com/theuni/osx-cross-depends/master/patches/cdrtools/genisoimage.diff' -O \
cdrkit-deterministic.patch
>>>>>>> 5b9f78d69ccf189bebe894b1921e34417103a046
cd ..
./bin/gbuild ../bitcoin/contrib/gitian-descriptors/boost-linux.yml
mv build/out/boost-*.zip inputs/
./bin/gbuild ../bitcoin/contrib/gitian-descriptors/deps-linux.yml
mv build/out/bitcoin-deps-*.zip inputs/
./bin/gbuild ../bitcoin/contrib/gitian-descriptors/qt-linux.yml
mv build/out/qt-*.tar.gz inputs/
./bin/gbuild ../bitcoin/contrib/gitian-descriptors/boost-win.yml
mv build/out/boost-*.zip inputs/
./bin/gbuild ../bitcoin/contrib/gitian-descriptors/deps-win.yml
mv build/out/bitcoin-deps-*.zip inputs/
./bin/gbuild ../bitcoin/contrib/gitian-descriptors/qt-win.yml
mv build/out/qt-*.zip inputs/
./bin/gbuild ../bitcoin/contrib/gitian-descriptors/protobuf-win.yml
mv build/out/protobuf-*.zip inputs/
./bin/gbuild ../bitcoin/contrib/gitian-descriptors/gitian-osx-native.yml
mv build/out/osx-*.tar.gz inputs/
./bin/gbuild ../bitcoin/contrib/gitian-descriptors/gitian-osx-depends.yml
mv build/out/osx-*.tar.gz inputs/
./bin/gbuild ../bitcoin/contrib/gitian-descriptors/gitian-osx-qt.yml
mv build/out/osx-*.tar.gz inputs/
The expected SHA256 hashes of the intermediate inputs are:
<<<<<<< HEAD
f29b7d9577417333fb56e023c2977f5726a7c297f320b175a4108cf7cd4c2d29 boost-linux32-1.55.0-gitian-r1.zip
88232451c4104f7eb16e469ac6474fd1231bd485687253f7b2bdf46c0781d535 boost-linux64-1.55.0-gitian-r1.zip
46710f673467e367738d8806e45b4cb5931aaeea61f4b6b55a68eea56d5006c5 bitcoin-deps-linux32-gitian-r6.zip
f03be39fb26670243d3a659e64d18e19d03dec5c11e9912011107768390b5268 bitcoin-deps-linux64-gitian-r6.zip
=======
b66e8374031adf8d5309c046615fe4f561c3a7e3c1f6885675c13083db0c4d3b bitcoin-deps-linux32-gitian-r8.zip
ec83deb4e81bea5ac1fb5e3f1b88cd02ca665306f0c2290ef4f19b974525005e bitcoin-deps-linux64-gitian-r8.zip
f29b7d9577417333fb56e023c2977f5726a7c297f320b175a4108cf7cd4c2d29 boost-linux32-1.55.0-gitian-r1.zip
88232451c4104f7eb16e469ac6474fd1231bd485687253f7b2bdf46c0781d535 boost-linux64-1.55.0-gitian-r1.zip
>>>>>>> 5b9f78d69ccf189bebe894b1921e34417103a046
57e57dbdadc818cd270e7e00500a5e1085b3bcbdef69a885f0fb7573a8d987e1 qt-linux32-4.6.4-gitian-r1.tar.gz
60eb4b9c5779580b7d66529efa5b2836ba1a70edde2a0f3f696d647906a826be qt-linux64-4.6.4-gitian-r1.tar.gz
60dc2d3b61e9c7d5dbe2f90d5955772ad748a47918ff2d8b74e8db9b1b91c909 boost-win32-1.55.0-gitian-r6.zip
f65fcaf346bc7b73bc8db3a8614f4f6bee2f61fcbe495e9881133a7c2612a167 boost-win64-1.55.0-gitian-r6.zip
<<<<<<< HEAD
70de248cd0dd7e7476194129e818402e974ca9c5751cbf591644dc9f332d3b59 bitcoin-deps-win32-gitian-r13.zip
9eace4c76f639f4f3580a478eee4f50246e1bbb5ccdcf37a158261a5a3fa3e65 bitcoin-deps-win64-gitian-r13.zip
=======
9c2572b021b3b50dc9441f2e96d672ac1da4cb6c9f88a1711aa0234882f353cf bitcoin-deps-win32-gitian-r15.zip
94e9f6d861140d9130a15830eba40eba4c8c830440506ac7cc0d1e3217293c25 bitcoin-deps-win64-gitian-r15.zip
>>>>>>> 5b9f78d69ccf189bebe894b1921e34417103a046
963e3e5e85879010a91143c90a711a5d1d5aba992e38672cdf7b54e42c56b2f1 qt-win32-5.2.0-gitian-r3.zip
751c579830d173ef3e6f194e83d18b92ebef6df03289db13ab77a52b6bc86ef0 qt-win64-5.2.0-gitian-r3.zip
e2e403e1a08869c7eed4d4293bce13d51ec6a63592918b90ae215a0eceb44cb4 protobuf-win32-2.5.0-gitian-r4.zip
a0999037e8b0ef9ade13efd88fee261ba401f5ca910068b7e0cd3262ba667db0 protobuf-win64-2.5.0-gitian-r4.zip
512bc0622c883e2e0f4cbc3fedfd8c2402d06c004ce6fb32303cc2a6f405b6df osx-native-depends-r3.tar.gz
927e4b222be6d590b4bc2fc185872a5d0ca5c322adb983764d3ed84be6bdbc81 osx-depends-r4.tar.gz
ec95abef1df2b096a970359787c01d8c45e2a4475b7ae34e12c022634fbdba8a osx-depends-qt-5.2.1-r4.tar.gz
=======
>>>>>>> 9ff0bc9beb90cf96fb0a9698de22e2bc60fed2f2
Build Bitcoin Core for Linux, Windows, and OS X:
=======
###Optional: Seed the Gitian sources cache
=======
###Optional: Seed the Gitian sources cache and offline git repositories
>>>>>>> 80d1f2e48364f05b2cdf44239b3a1faa0277e58e
By default, Gitian will fetch source files as needed. To cache them ahead of time:
make -C ../bitcoin/depends download SOURCES_PATH=`pwd`/cache/common
Only missing files will be fetched, so this is safe to re-run for each build.
NOTE: Offline builds must use the --url flag to ensure Gitian fetches only from local URLs. For example:
```
./bin/gbuild --url bitcoin=/path/to/bitcoin,signature=/path/to/sigs {rest of arguments}
```
The gbuild invocations below <b>DO NOT DO THIS</b> by default.
###Build and sign Bitcoin Core for Linux, Windows, and OS X:
<<<<<<< HEAD
###Build Bitcoin Core for Linux, Windows, and OS X:
>>>>>>> 9bd8c9b13132d45db4240b2dec256ee1500ce133
=======
>>>>>>> 80d1f2e48364f05b2cdf44239b3a1faa0277e58e
./bin/gbuild --commit bitcoin=v${VERSION} ../bitcoin/contrib/gitian-descriptors/gitian-linux.yml
./bin/gsign --signer $SIGNER --release ${VERSION}-linux --destination ../gitian.sigs/ ../bitcoin/contrib/gitian-descriptors/gitian-linux.yml
mv build/out/bitcoin-*.tar.gz build/out/src/bitcoin-*.tar.gz ../
./bin/gbuild --commit bitcoin=v${VERSION} ../bitcoin/contrib/gitian-descriptors/gitian-win.yml
./bin/gsign --signer $SIGNER --release ${VERSION}-win-unsigned --destination ../gitian.sigs/ ../bitcoin/contrib/gitian-descriptors/gitian-win.yml
mv build/out/bitcoin-*-win-unsigned.tar.gz inputs/bitcoin-win-unsigned.tar.gz
mv build/out/bitcoin-*.zip build/out/bitcoin-*.exe ../
./bin/gbuild --commit bitcoin=v${VERSION} ../bitcoin/contrib/gitian-descriptors/gitian-osx.yml
./bin/gsign --signer $SIGNER --release ${VERSION}-osx-unsigned --destination ../gitian.sigs/ ../bitcoin/contrib/gitian-descriptors/gitian-osx.yml
mv build/out/bitcoin-*-osx-unsigned.tar.gz inputs/bitcoin-osx-unsigned.tar.gz
mv build/out/bitcoin-*.tar.gz build/out/bitcoin-*.dmg ../
Build output expected:
<<<<<<< HEAD
1. linux 32-bit and 64-bit binaries + source (bitcoin-${VERSION}-linux-gitian.zip)
2. windows 32-bit and 64-bit binaries + installer + source (bitcoin-${VERSION}-win-gitian.zip)
3. OSX installer (Bitcoin-Qt.dmg)
<<<<<<< HEAD
4. Gitian signatures (in gitian.sigs/${VERSION}-<linux|win|osx>/(your gitian key)/
=======
4. Gitian signatures (in gitian.sigs/${VERSION}[-win|-osx]/(your gitian key)/
>>>>>>> 5b9f78d69ccf189bebe894b1921e34417103a046
repackage gitian builds for release as stand-alone zip/tar/installer exe
**Linux .tar.gz:**
unzip bitcoin-${VERSION}-linux-gitian.zip -d bitcoin-${VERSION}-linux
tar czvf bitcoin-${VERSION}-linux.tar.gz bitcoin-${VERSION}-linux
rm -rf bitcoin-${VERSION}-linux
**Windows .zip and setup.exe:**
unzip bitcoin-${VERSION}-win-gitian.zip -d bitcoin-${VERSION}-win
mv bitcoin-${VERSION}-win/bitcoin-*-setup.exe .
zip -r bitcoin-${VERSION}-win.zip bitcoin-${VERSION}-win
rm -rf bitcoin-${VERSION}-win
**Mac OS X .dmg:**
mv Bitcoin-Qt.dmg bitcoin-${VERSION}-osx.dmg
=======
1. source tarball (bitcoin-${VERSION}.tar.gz)
<<<<<<< HEAD
2. linux 32-bit and 64-bit binaries dist tarballs (bitcoin-${VERSION}-linux[32|64].tar.gz)
3. windows 32-bit and 64-bit installers and dist zips (bitcoin-${VERSION}-win[32|64]-setup.exe, bitcoin-${VERSION}-win[32|64].zip)
4. OSX unsigned installer (bitcoin-${VERSION}-osx-unsigned.dmg)
5. Gitian signatures (in gitian.sigs/${VERSION}-<linux|win|osx-unsigned>/(your gitian key)/
>>>>>>> 9ff0bc9beb90cf96fb0a9698de22e2bc60fed2f2
=======
2. linux 32-bit and 64-bit dist tarballs (bitcoin-${VERSION}-linux[32|64].tar.gz)
3. windows 32-bit and 64-bit unsigned installers and dist zips (bitcoin-${VERSION}-win[32|64]-setup-unsigned.exe, bitcoin-${VERSION}-win[32|64].zip)
4. OS X unsigned installer and dist tarball (bitcoin-${VERSION}-osx-unsigned.dmg, bitcoin-${VERSION}-osx64.tar.gz)
5. Gitian signatures (in gitian.sigs/${VERSION}-<linux|{win,osx}-unsigned>/(your Gitian key)/
###Verify other gitian builders signatures to your own. (Optional)
Add other gitian builders keys to your gpg keyring
gpg --import ../bitcoin/contrib/gitian-downloader/*.pgp
Verify the signatures
./bin/gverify -v -d ../gitian.sigs/ -r ${VERSION}-linux ../bitcoin/contrib/gitian-descriptors/gitian-linux.yml
./bin/gverify -v -d ../gitian.sigs/ -r ${VERSION}-win-unsigned ../bitcoin/contrib/gitian-descriptors/gitian-win.yml
./bin/gverify -v -d ../gitian.sigs/ -r ${VERSION}-osx-unsigned ../bitcoin/contrib/gitian-descriptors/gitian-osx.yml
popd
>>>>>>> 80d1f2e48364f05b2cdf44239b3a1faa0277e58e
###Next steps:
Commit your signature to gitian.sigs:
pushd gitian.sigs
git add ${VERSION}-linux/${SIGNER}
git add ${VERSION}-win-unsigned/${SIGNER}
git add ${VERSION}-osx-unsigned/${SIGNER}
git commit -a
git push # Assuming you can push to the gitian.sigs tree
popd
Wait for Windows/OS X detached signatures:
Once the Windows/OS X builds each have 3 matching signatures, they will be signed with their respective release keys.
Detached signatures will then be committed to the [bitcoin-detached-sigs](https://github.com/bitcoin/bitcoin-detached-sigs) repository, which can be combined with the unsigned apps to create signed binaries.
Create (and optionally verify) the signed OS X binary:
pushd ./gitian-builder
./bin/gbuild -i --commit signature=v${VERSION} ../bitcoin/contrib/gitian-descriptors/gitian-osx-signer.yml
./bin/gsign --signer $SIGNER --release ${VERSION}-osx-signed --destination ../gitian.sigs/ ../bitcoin/contrib/gitian-descriptors/gitian-osx-signer.yml
./bin/gverify -v -d ../gitian.sigs/ -r ${VERSION}-osx-signed ../bitcoin/contrib/gitian-descriptors/gitian-osx-signer.yml
mv build/out/bitcoin-osx-signed.dmg ../bitcoin-${VERSION}-osx.dmg
popd
Create (and optionally verify) the signed Windows binaries:
pushd ./gitian-builder
./bin/gbuild -i --commit signature=v${VERSION} ../bitcoin/contrib/gitian-descriptors/gitian-win-signer.yml
./bin/gsign --signer $SIGNER --release ${VERSION}-win-signed --destination ../gitian.sigs/ ../bitcoin/contrib/gitian-descriptors/gitian-win-signer.yml
./bin/gverify -v -d ../gitian.sigs/ -r ${VERSION}-win-signed ../bitcoin/contrib/gitian-descriptors/gitian-win-signer.yml
mv build/out/bitcoin-*win64-setup.exe ../bitcoin-${VERSION}-win64-setup.exe
mv build/out/bitcoin-*win32-setup.exe ../bitcoin-${VERSION}-win32-setup.exe
popd
Commit your signature for the signed OS X/Windows binaries:
pushd gitian.sigs
git add ${VERSION}-osx-signed/${SIGNER}
git add ${VERSION}-win-signed/${SIGNER}
git commit -a
git push # Assuming you can push to the gitian.sigs tree
popd
-------------------------------------------------------------------------
### After 3 or more people have gitian-built and their results match:
<<<<<<< HEAD
- Perform code-signing.
- Code-sign Windows -setup.exe (in a Windows virtual machine using signtool)
Note: only Gavin has the code-signing keys currently.
<<<<<<< HEAD
=======
>>>>>>> 80d1f2e48364f05b2cdf44239b3a1faa0277e58e
- Create `SHA256SUMS.asc` for the builds, and GPG-sign it:
```bash
sha256sum * > SHA256SUMS
gpg --digest-algo sha256 --clearsign SHA256SUMS # outputs SHA256SUMS.asc
rm SHA256SUMS
```
(the digest algorithm is forced to sha256 to avoid confusion of the `Hash:` header that GPG adds with the SHA256 used for the files)
<<<<<<< HEAD
=======
- Create `SHA256SUMS.asc` for builds, and PGP-sign it. This is done manually.
Include all the files to be uploaded. The file has `sha256sum` format with a
simple header at the top:
```
Hash: SHA256
0060f7d38b98113ab912d4c184000291d7f026eaf77ca5830deec15059678f54 bitcoin-x.y.z-linux.tar.gz
...
```
>>>>>>> 5b9f78d69ccf189bebe894b1921e34417103a046
=======
Note: check that SHA256SUMS itself doesn't end up in SHA256SUMS, which is a spurious/nonsensical entry.
>>>>>>> 513e0252391688b919f1b08980c5759a515c341b
- Upload zips and installers, as well as `SHA256SUMS.asc` from last step, to the bitcoin.org server
into `/var/www/bin/bitcoin-core-${VERSION}`
- Update bitcoin.org version
- First, check to see if the Bitcoin.org maintainers have prepared a
release: https://github.com/bitcoin-dot-org/bitcoin.org/labels/Releases
- If they have, it will have previously failed their Travis CI
checks because the final release files weren't uploaded.
Trigger a Travis CI rebuild---if it passes, merge.
- If they have not prepared a release, follow the Bitcoin.org release
instructions: https://github.com/bitcoin-dot-org/bitcoin.org#release-notes
- After the pull request is merged, the website will automatically show the newest version within 15 minutes, as well
as update the OS download links. Ping @saivann/@harding (saivann/harding on Freenode) in case anything goes wrong
- Announce the release:
- Release sticky on bitcointalk: https://bitcointalk.org/index.php?board=1.0
- Bitcoin-development mailing list
- Update title of #bitcoin on Freenode IRC
- Optionally reddit /r/Bitcoin, ... but this will usually sort out itself
- Notify BlueMatt so that he can start building [https://launchpad.net/~bitcoin/+archive/ubuntu/bitcoin](the PPAs)
- Add release notes for the new version to the directory `doc/release-notes` in git master
- Celebrate
| {
"content_hash": "1d51e15cf326b782e874596527ccc69f",
"timestamp": "",
"source": "github",
"line_count": 399,
"max_line_length": 208,
"avg_line_length": 46.847117794486216,
"alnum_prop": 0.7514444682216991,
"repo_name": "koharjidan/bitcoin",
"id": "ab5b13617b2b4d2d25edafd9f666fd57822595ca",
"size": "18692",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "doc/release-process.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "781690"
},
{
"name": "C++",
"bytes": "4337273"
},
{
"name": "CSS",
"bytes": "1127"
},
{
"name": "Groff",
"bytes": "3792"
},
{
"name": "HTML",
"bytes": "50621"
},
{
"name": "Java",
"bytes": "2100"
},
{
"name": "Makefile",
"bytes": "72679"
},
{
"name": "Objective-C",
"bytes": "2162"
},
{
"name": "Objective-C++",
"bytes": "7240"
},
{
"name": "Protocol Buffer",
"bytes": "2308"
},
{
"name": "Python",
"bytes": "653364"
},
{
"name": "QMake",
"bytes": "2020"
},
{
"name": "Shell",
"bytes": "26094"
}
],
"symlink_target": ""
} |
import { NgForm } from '@angular/forms';
import { Component, OnInit, ViewChild } from '@angular/core';
import { NavController } from 'ionic-angular';
import { Data } from '../../providers/datatype'
import { EventEmitter } from '@angular/core';
import { SignupPage } from '../signup/signup';
import { TabsPage } from '../tabs/tabs';
import { UserData } from '../../providers/user-data';
import { UserService } from '../../providers/user-server';
import { SocketService } from '../../providers/socket-server';
@Component({ selector: 'rtccom', templateUrl: 'rtccom.component.html' })
export class RtcComponent {
private iceServer = {
"iceServers": [{ "url": "stun:hk.airir.com" },
{
"url": "turn:hk.airir.com",
"username": "123",
"credential": "123"
}]
};
private step = 0;
private socketisonline: boolean;
private pc: any;
private rtcEmitter: EventEmitter<any>;
private myvalue = 0;
private t1t = 0;
private t2t = 0;
private localStream: any;
private soundMeter: any;
private localaudio: any
private AudioContext = (<any>window).AudioContext || (<any>window).webkitAudioContext;
private audioContext = new AudioContext();
private isanswer = true;
constructor(
public socketService: SocketService, public userData: UserData, public userService: UserService
) {
// this.soundMeter = new SoundMeter(this.audioContext);
setInterval(() => {
// this.myvalue = this.soundMeter.instant;
this.t1t++;
console.log(this.t1t);
}, 1000);
this.rtcEmitter = this.socketService.rtcEmitter.subscribe((data: Data) => {
// console.log('收到数据包', data);
if (data.type === 'desc') {
this.setdesc(data.data);
return;
}
if (data.type === 'candidate') {
this.setcandidate(data.data);
return;
}
});
}
public ngOnInit() {
// 123
};
public testmsg() {
// 123
this.socketService.emit(new Data('test', '测试消息'));
};
private async Start() {
let ok = await this.socketService.start()
if (ok) {
this.step = 2;
console.log('初始化');
} else {
console.log('连接服务器失败');
}
}
public setdesc(desc: any) {
console.log('收到desc', desc);
this.pc.setRemoteDescription(new (<any>window).RTCSessionDescription(desc)).then(
() => {
console.log('设置远端desc成功');
if (this.isanswer) {
this.pc.createAnswer().then(
(desc: any) => {
console.log('createAnswer成功');
this.pc.setLocalDescription(desc).then(
() => {
console.log('设置本地desc成功');
this.socketService.emit(new Data('desc', desc));
this.step = 6;
},
(err: any) => console.log('setLocalDesc错误', err));
},
(err: any) => console.log('createAnswer错误', err));
} else { this.step = 6; };
},
(err: any) => console.log('setRemoteDesc错误', err));
}
public setcandidate(candidate: any) {
this.pc.addIceCandidate(candidate).then(
function () {
// console.log('收到candidate', candidate);
},
function (err: any) {
console.log(err);
console.log(candidate);
});
}
private setStream() {
this.step = 1;
console.log('获取本地流');
var mediaOptions = { audio: true, video: false };
if (!navigator.getUserMedia) {
navigator.getUserMedia = (<any>navigator).getUserMedia || (<any>navigator).webkitGetUserMedia || (<any>navigator).mozGetUserMedia || (<any>navigator).msGetUserMedia;;
}
if (!navigator.getUserMedia) {
return alert('getUserMedia not supported in this browser.');
}
navigator.getUserMedia(mediaOptions, (stream: any) => {
console.log(stream);
this.localStream = stream;
let audio = document.querySelector('#localaudio');
console.log("xxxxxxxxxxxxxx", audio);
(<any>audio).src = window.URL.createObjectURL(stream);
this.soundMeter.connectToSource(stream, (e: any) => console.log(e));
}, (e) => console.log(e));
}
private peerconnection() {
if (this.isanswer) {
this.step = 5;
} else {
this.step = 4;
}
this.pc = new (<any>window).RTCPeerConnection(this.iceServer);
console.log(this.pc);
this.pc.onicecandidate = (evt: any) => {
// console.log('获取candidate');
if (evt.candidate) {
this.socketService.emit(new Data('candidate', evt.candidate));
// console.log('send icecandidate');
};
};
console.log('设置待发送stream', this.localStream);
// this.localStream.getTracks().forEach(track => this.pc.addTrack(track, this.localStream));
this.pc.addStream(this.localStream);
this.pc.onaddstream = (e: any) => {
console.log('xxxxxxxxxxxxxxxxxxxxxxxxxxxx绑定远端流');
let rvideo = document.querySelector('#remoteVideo');
(<any>rvideo).src = window.URL.createObjectURL(e.stream);
// this.remoteVideo.nativeElement.src = URL.createObjectURL(e.stream);
};
console.log('当前步骤', this.step);
}
private Call() {
this.isanswer = false;
this.step = 3;
};
private answer() {
this.isanswer = true;
this.step = 3;
};
private end() {
this.pc.close();
this.step = 2;
}
private setoffer() {
this.pc.createOffer().then(
(desc: any) => {
console.log('createOffer成功');
this.pc.setLocalDescription(desc).then(
() => {
console.log('设置本地desc成功', desc);
this.socketService.emit(new Data('desc', desc));
},
(err: any) => {
console.log('setLocalDesc错误', err);
}
);
},
(err: any) => {
console.log('createOffer错误', err);
}
);
};
ngOnDestroy() {
console.log('垃圾清理');
this.rtcEmitter.unsubscribe();
}
test() {
setInterval(() => {
// this.myvalue = this.soundMeter.instant;
this.t2t++;
console.log(this.t2t);
}, 1000);
// console.log('test', document.querySelector('#localaudio'));
// this.setStream()
// this.peerconnection()
}
private setanswer() {
// todo
};
ngAfterViewInit() {
console.log('ngAfterViewInit', document.querySelector('#localaudio'));
}
}
class SoundMeter {
public instant: any;
public clip: any;
public script: any;
public mic: any;
constructor(private context: AudioContext) {
this.instant = 0.0;
this.clip = 0.0;
this.script = this.context.createScriptProcessor(2048, 1, 1);
this.script.onaudioprocess = (event: any) => {
var input = event.inputBuffer.getChannelData(0);
var i;
var sum = 0.0;
var clipcount = 0;
for (i = 0; i < input.length; ++i) {
sum += input[i] * input[i];
if (Math.abs(input[i]) > 0.99) {
clipcount += 1;
}
}
this.instant = Math.sqrt(sum / input.length);
this.clip = clipcount / input.length;
};
}
connectToSource(stream: any, callback: Function) {
console.log('SoundMeter connecting');
try {
this.mic = this.context.createMediaStreamSource(stream);
this.mic.connect(this.script);
// necessary to make sample run, but should not be.
this.script.connect(this.context.destination);
if (typeof callback !== 'undefined') {
callback(null);
}
} catch (e) {
console.error(e);
if (typeof callback !== 'undefined') {
callback(e);
}
}
}
stop() {
this.mic.disconnect();
this.script.disconnect();
}
} | {
"content_hash": "f7a4e7f0e556ca735822f1ec482f7122",
"timestamp": "",
"source": "github",
"line_count": 292,
"max_line_length": 172,
"avg_line_length": 26.017123287671232,
"alnum_prop": 0.5839147031723049,
"repo_name": "xxhgnxx/tionic2",
"id": "23e207e6ddca1d7519402c82bb83ddead817a82e",
"size": "7757",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/pages/rtccom/rtccom.component.ts",
"mode": "33261",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "5937"
},
{
"name": "HTML",
"bytes": "25702"
},
{
"name": "JavaScript",
"bytes": "736"
},
{
"name": "TypeScript",
"bytes": "90095"
}
],
"symlink_target": ""
} |
using System;
using System.Collections.Generic;
using TestStack.BDDfy.Reporters.Writers;
namespace TestStack.BDDfy.Reporters.Diagnostics
{
public class DiagnosticsReporter : IBatchProcessor
{
private readonly IReportBuilder _builder;
private readonly IReportWriter _writer;
public DiagnosticsReporter() : this(new DiagnosticsReportBuilder(), new FileWriter()) { }
public DiagnosticsReporter(IReportBuilder builder, IReportWriter writer)
{
_builder = builder;
_writer = writer;
}
public void Process(IEnumerable<Story> stories)
{
var viewModel = new FileReportModel(stories.ToReportModel());
string report;
try
{
report = _builder.CreateReport(viewModel);
}
catch (Exception ex)
{
report = ex.Message + ex.StackTrace;
}
_writer.OutputReport(report, "Diagnostics.json");
}
}
}
| {
"content_hash": "eeab8a903e8089e691b9579b6fed5bec",
"timestamp": "",
"source": "github",
"line_count": 37,
"max_line_length": 97,
"avg_line_length": 27.83783783783784,
"alnum_prop": 0.596116504854369,
"repo_name": "mwhelan/TestStack.BDDfy",
"id": "dd2a79e9fe6879e5d60b6ef6b71cf16b2fd5b6f4",
"size": "1032",
"binary": false,
"copies": "4",
"ref": "refs/heads/master",
"path": "src/TestStack.BDDfy/Reporters/Diagnostics/DiagnosticsReporter.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C#",
"bytes": "495512"
},
{
"name": "CSS",
"bytes": "26030"
},
{
"name": "JavaScript",
"bytes": "1548"
},
{
"name": "PowerShell",
"bytes": "9657"
}
],
"symlink_target": ""
} |
<#
.SYNOPSIS
Backups a Fortigate configuration to a target location
.DESCRIPTION
This script is written to partially automate the backup process for the FortiGate. This is done using the SSH.NET library (http://sshnet.codeplex.com/) as well as pscp (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html)
The user running this script needs to have the module SSH-Sessions (From SSH.NET Library) available. To find the possible locations to place the module, run the following command in powershell:
$env:PSModulePath -split ';'
Credit to this blog for the idea and basic structure of the script: http://www.powershelladmin.com/wiki/SSH_from_PowerShell_using_the_SSH.NET_library
.EXAMPLE
Backup-FortiGate -Path '\\Server\Share\Backups' -Device '192.168.0.254' -Username 'Tom' -Password 'Jerry'
.INPUTS
None
.OUTPUTS
None
#>
function Backup-FortiGate
{
[CmdletBinding()]
Param
(
[Parameter(Mandatory=$true)]
[String]$Path,
[Parameter(Mandatory=$true)]
[String]$Device,
[Parameter(Mandatory=$true)]
[String]$Username,
[Parameter(Mandatory=$true)]
[String]$Password
)
# Try to load the SSH-Sessions module
Try
{
Import-Module SSH-Sessions
}
Catch
{
Write-Host "Error when attempting to load the SSH-Sessions module. Check to see if you have set it up correctly." -ForegroundColor Red
}
$Date="$(get-date -f MM-dd-yyyy)"
# Create the SSH Session with the target device
New-SSHSession $Device -Username $Username -Password "$Password"
# Get the hostname (This is specific to FortiGate)
$DeviceResult = Invoke-SSHCommand -ComputerName $Device -Command "show system global"
$DeviceArray = $DeviceResult -Split '"'
$DeviceHostname = $DeviceArray[1]
# End the SSH Session
Remove-SSHSession -RemoveAll
# Run the backup command
Start-Process "C:\Program Files (x86)\PUTTY\pscp.exe" -ArgumentList ("$($Username)@$($Device):sys_config C:\Temp") -Wait
$SBresult = Get-Content "C:\Temp\sys_config"
$SBresult | Out-File -FilePath "$Path\$DeviceHostname-Backup-$Date.conf"
Remove-Item "C:\Temp\sys_config"
}
| {
"content_hash": "553d5d6ddcd0b4c80cbb493be9826ef9",
"timestamp": "",
"source": "github",
"line_count": 66,
"max_line_length": 234,
"avg_line_length": 32.60606060606061,
"alnum_prop": 0.7086431226765799,
"repo_name": "SotoDucani/scripts",
"id": "f1afe39ef06e08fb4bee912818d86810c489b106",
"size": "2154",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "HardwareScripts/Backup-FortiGate.psm1",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "PowerShell",
"bytes": "47766"
},
{
"name": "Shell",
"bytes": "817"
}
],
"symlink_target": ""
} |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>V8 API Reference Guide for node.js v9.2.0 - v9.2.1: v8::Debug::EventDetails Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">V8 API Reference Guide for node.js v9.2.0 - v9.2.1
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="classes.html"><span>Class Index</span></a></li>
<li><a href="inherits.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespacev8.html">v8</a></li><li class="navelem"><a class="el" href="classv8_1_1Debug.html">Debug</a></li><li class="navelem"><a class="el" href="classv8_1_1Debug_1_1EventDetails.html">EventDetails</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> |
<a href="classv8_1_1Debug_1_1EventDetails-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">v8::Debug::EventDetails Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div> </div>
</div><!--header-->
<div class="contents">
<p><code>#include <<a class="el" href="v8-debug_8h_source.html">v8-debug.h</a>></code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ac871568e8cfd43bbf2cdac62add34ed0"><td class="memItemLeft" align="right" valign="top">virtual DebugEvent </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1Debug_1_1EventDetails.html#ac871568e8cfd43bbf2cdac62add34ed0">GetEvent</a> () const =0</td></tr>
<tr class="separator:ac871568e8cfd43bbf2cdac62add34ed0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a201fabdd6d81f711c1b8805c94f09d3e"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classv8_1_1Local.html">Local</a>< <a class="el" href="classv8_1_1Object.html">Object</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1Debug_1_1EventDetails.html#a201fabdd6d81f711c1b8805c94f09d3e">GetExecutionState</a> () const =0</td></tr>
<tr class="separator:a201fabdd6d81f711c1b8805c94f09d3e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a073451ff2ea6fc4c2acf46a6738aac69"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a073451ff2ea6fc4c2acf46a6738aac69"></a>
virtual <a class="el" href="classv8_1_1Local.html">Local</a>< <a class="el" href="classv8_1_1Object.html">Object</a> > </td><td class="memItemRight" valign="bottom"><b>GetEventData</b> () const =0</td></tr>
<tr class="separator:a073451ff2ea6fc4c2acf46a6738aac69"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aaa7573eeab71d8c4e914daeccddff77f"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classv8_1_1Local.html">Local</a>< <a class="el" href="classv8_1_1Context.html">Context</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1Debug_1_1EventDetails.html#aaa7573eeab71d8c4e914daeccddff77f">GetEventContext</a> () const =0</td></tr>
<tr class="separator:aaa7573eeab71d8c4e914daeccddff77f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aedd8014bb1bd644e227774d07ed9784d"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classv8_1_1Local.html">Local</a>< <a class="el" href="classv8_1_1Value.html">Value</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1Debug_1_1EventDetails.html#aedd8014bb1bd644e227774d07ed9784d">GetCallbackData</a> () const =0</td></tr>
<tr class="separator:aedd8014bb1bd644e227774d07ed9784d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae663e7607d27c3252049eea077a83e08"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classv8_1_1Debug_1_1ClientData.html">ClientData</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1Debug_1_1EventDetails.html#ae663e7607d27c3252049eea077a83e08">GetClientData</a> () const =0</td></tr>
<tr class="separator:ae663e7607d27c3252049eea077a83e08"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:afdb56707cc08801375d17c7b855e8079"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afdb56707cc08801375d17c7b855e8079"></a>
virtual <a class="el" href="classv8_1_1Isolate.html">Isolate</a> * </td><td class="memItemRight" valign="bottom"><b>GetIsolate</b> () const =0</td></tr>
<tr class="separator:afdb56707cc08801375d17c7b855e8079"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>An event details object passed to the debug event listener. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="aedd8014bb1bd644e227774d07ed9784d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classv8_1_1Local.html">Local</a><<a class="el" href="classv8_1_1Value.html">Value</a>> v8::Debug::EventDetails::GetCallbackData </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Client data passed with the corresponding callback when it was registered. </p>
</div>
</div>
<a class="anchor" id="ae663e7607d27c3252049eea077a83e08"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classv8_1_1Debug_1_1ClientData.html">ClientData</a>* v8::Debug::EventDetails::GetClientData </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>This is now a dummy that returns nullptr. </p>
</div>
</div>
<a class="anchor" id="ac871568e8cfd43bbf2cdac62add34ed0"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual DebugEvent v8::Debug::EventDetails::GetEvent </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Event type. </p>
</div>
</div>
<a class="anchor" id="aaa7573eeab71d8c4e914daeccddff77f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classv8_1_1Local.html">Local</a><<a class="el" href="classv8_1_1Context.html">Context</a>> v8::Debug::EventDetails::GetEventContext </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the context active when the debug event happened. Note this is not the current active context as the JavaScript part of the debugger is running in its own context which is entered at this point. </p>
</div>
</div>
<a class="anchor" id="a201fabdd6d81f711c1b8805c94f09d3e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classv8_1_1Local.html">Local</a><<a class="el" href="classv8_1_1Object.html">Object</a>> v8::Debug::EventDetails::GetExecutionState </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Access to execution state and event data of the debug event. Don't store these cross callbacks as their content becomes invalid. </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>deps/v8/include/<a class="el" href="v8-debug_8h_source.html">v8-debug.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
| {
"content_hash": "b446e2f969324e3c6a8fdf5679ebd0eb",
"timestamp": "",
"source": "github",
"line_count": 255,
"max_line_length": 417,
"avg_line_length": 49.45490196078431,
"alnum_prop": 0.6635476964554754,
"repo_name": "v8-dox/v8-dox.github.io",
"id": "18962dce6b52620b6bf3143a77591628d298d559",
"size": "12611",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "4e9bfdf/html/classv8_1_1Debug_1_1EventDetails.html",
"mode": "33188",
"license": "mit",
"language": [],
"symlink_target": ""
} |
"use strict";
var util = require('util'),
applications = {};
/**
* The Application object holds the information about every application,
* including the config for the component and config directories.
*
* @class Application
* @constructor
*/
function Application() {
this.config = {};
}
/**
* The setConfig method will set the config for the current Application object.
*
* @method setConfig
* @param {Object} config The config object for the Application
* @returns {Application} The application object for chaning purposes.
*/
Application.prototype.setConfig = function(config) {
this.config = config;
return this;
};
/**
* This method will try to find the component and will run it.
* If the component isn't found it will throw a RaddishError.
*
* @method runComponent
* @param {String} component The component to search for.
* @param {Object} req NodeJS request object.
* @param {Object} res NodeJS response object.
*/
Application.prototype.runComponent = function(component, req, res) {
try {
var Component = require(this.config.component + '/' + component + '/' + component);
new Component(req, res);
} catch(error) {
if(error instanceof RaddishError) {
throw error;
}
throw new RaddishError(404, 'Component not found!');
}
};
/**
* This method will try to get the application module and add this to the applications registry.
*
* @method setApplication
* @param {String} alias The alias of the Application.
* @param {String} path The path to the Application file.
* @returns {Application} The application object for chaining purposes.
*/
Application.setApplication = function(alias, path) {
var Obj = require(process.cwd() + '/' + path);
applications[alias] = new Obj();
return this;
};
/**
* This method will teturn application instance bound to the given object.
*
* @method getApplication
* @param {String} alias The alias of the application.
* @returns {Application} The application registred to the alias.
*/
Application.getApplication = function(alias) {
return applications[alias];
};
/**
* This method will try to match an application to the url,
* If no application is found an error will be fired.
* If the application isn't found it will throw a RaddishError.
*
* @method matchApplication
* @param {Object} url The url object of the (parsed) request.
*/
Application.matchApplication = function(url) {
if(applications[url.query.app]) {
return applications[url.query.app];
} else {
throw new RaddishError(404, 'Application not found!');
}
};
module.exports = Application; | {
"content_hash": "155464d10126f45cd3211409f820ed1a",
"timestamp": "",
"source": "github",
"line_count": 94,
"max_line_length": 96,
"avg_line_length": 28.46808510638298,
"alnum_prop": 0.6860986547085202,
"repo_name": "JaspervRijbroek/raddish",
"id": "cf7b2ab72f135bb7d6920ea85aa44d0a3de14825",
"size": "2676",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "lib/application/application.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "HTML",
"bytes": "4663"
},
{
"name": "JavaScript",
"bytes": "233688"
}
],
"symlink_target": ""
} |
using System.Linq;
using Ponics.Aquaponics;
using Ponics.Aquaponics.Commands;
using Ponics.Aquaponics.Queries;
using Ponics.Kernel.Commands;
using Ponics.Kernel.Queries;
namespace Ponics.Components.Commands
{
public class DeleteComponentCommandHandler:ICommandHandler<DeleteComponent>
{
private readonly IDataCommandHandler<UpdateAquaponicSystem> _updateSystemDataCommandHandler;
private readonly IDataQueryHandler<GetAquaponicSystem, AquaponicSystem> _getSystemDataCommandHandler;
public DeleteComponentCommandHandler(
IDataCommandHandler<UpdateAquaponicSystem> updateSystemDataCommandHandler,
IDataQueryHandler<GetAquaponicSystem, AquaponicSystem> getSystemDataCommandHandler)
{
_updateSystemDataCommandHandler = updateSystemDataCommandHandler;
_getSystemDataCommandHandler = getSystemDataCommandHandler;
}
public void Handle(DeleteComponent command)
{
var system = _getSystemDataCommandHandler.Handle(new GetAquaponicSystem
{
SystemId = command.SystemId
});
var component = system.Components.First(c => c.Id == command.ComponentId);
system.Components.Remove(component);
_updateSystemDataCommandHandler.Handle(new UpdateAquaponicSystem
{
System = system,
SystemId = command.SystemId
});
}
}
}
| {
"content_hash": "4bd5583ce1b599f851ffef3f6981ef63",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 109,
"avg_line_length": 36.725,
"alnum_prop": 0.6963921034717495,
"repo_name": "gravypower/Auto.Aquaponics",
"id": "8a35d4faada7d7cb51a457e077dbe80236e003f7",
"size": "1471",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/Ponics/Components/Commands/DeleteComponentCommandHandler.cs",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C#",
"bytes": "92524"
}
],
"symlink_target": ""
} |
package com.hea3ven.tools.mappings;
import javax.annotation.Nonnull;
import java.util.Map;
public class MthdMapping extends ElementMapping {
@Nonnull
private final Desc desc;
public MthdMapping(ClsMapping parent, Map<ObfLevel, String> names, Desc desc) {
super(parent, names);
if (parent == null)
throw new MappingException("null parent");
this.desc = desc;
}
@Override
protected String getParentPathSep() {
return ".";
}
public Desc getDesc() {
return desc;
}
public ClsMapping getParent() {
return (ClsMapping) parent;
}
public boolean matches(ObfLevel level, String parent, String name, String desc) {
return matches(level, parent + "." + name, desc);
}
private boolean matches(ObfLevel level, String path, String desc) {
return getPath(level).equals(path) && this.desc.get(level).equals(desc);
}
@Override
public final boolean equals(Object other) {
if (!super.equals(other))
return false;
if (!(other instanceof MthdMapping))
return false;
MthdMapping otherFld = (MthdMapping) other;
return ((desc == null && otherFld.desc == null) || (desc != null && desc.equals(otherFld.desc)));
}
@Override
public boolean canEqual(Object other) {
return other instanceof MthdMapping;
}
@Override
public final int hashCode() {
int hash = super.hashCode();
hash = hash * 31 + desc.hashCode();
return hash;
}
@Override
public String toString() {
return String.format("<MthdMapping '%s %s' -> '%s %s'>", getPath(ObfLevel.OBF),
desc.get(ObfLevel.OBF),
getPath(ObfLevel.DEOBF), desc.get(ObfLevel.DEOBF));
}
}
| {
"content_hash": "04f64296810afd59e2e4cb811769828f",
"timestamp": "",
"source": "github",
"line_count": 71,
"max_line_length": 99,
"avg_line_length": 22.3943661971831,
"alnum_prop": 0.6937106918238993,
"repo_name": "hea3ven/mappings",
"id": "e0f63b7d26ca6f5473ae8ef4d474c69fd16accbd",
"size": "1590",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/main/java/com/hea3ven/tools/mappings/MthdMapping.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "83812"
}
],
"symlink_target": ""
} |
<?php
namespace HassanAlthaf\Form;
interface FormBuilder
{
public function addForm(Form $form, $formName);
public function removeForm($formName);
public function newForm(Array $formAttributes);
public function addFormAttribute($attributeName, $attributeValue);
public function removeFormAttribute($attributeName);
public function saveForm($formName);
public function addElement(FormElement $formElement, $elementName);
public function removeElement($elementName);
public function edit($formName);
public function buildMarkup($name);
} | {
"content_hash": "8626988f3781b8dea44af75993fb8317",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 71,
"avg_line_length": 23.36,
"alnum_prop": 0.7534246575342466,
"repo_name": "HassanAlthaf/FormBuilderComponent",
"id": "18915296dcaff277773af7d9122284c1ae56d85f",
"size": "584",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/FormBuilder.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "PHP",
"bytes": "20586"
}
],
"symlink_target": ""
} |
using UnityEngine;
using System.Collections;
using System;
public abstract class Notification
{
private bool _Condition;
public virtual bool Condition { get { return _Condition; } protected set{ _Condition = value; } }
public string header;
public string body;
private double secondsToNotification;
public double SecondsToNotification
{
get{ return secondsToNotification; }
set
{
var time = DateTime.Now.TimeOfDay.TotalSeconds + value;
if(time < TimeSpan.FromHours(21).TotalSeconds && time > TimeSpan.FromHours(9).TotalSeconds)
{
secondsToNotification = value;
}else
{
if(time > TimeSpan.FromHours(21).TotalSeconds)
secondsToNotification = TimeSpan.FromHours(24).TotalSeconds - DateTime.Now.TimeOfDay.TotalSeconds + TimeSpan.FromHours(9).TotalSeconds;
if(time < TimeSpan.FromHours(9).TotalSeconds)
secondsToNotification = TimeSpan.FromHours(9).TotalSeconds - DateTime.Now.TimeOfDay.TotalSeconds;
}
}
}
public virtual void InvokeAction()
{
}
}
| {
"content_hash": "645b1d8a2182335cdd1504d12d53553c",
"timestamp": "",
"source": "github",
"line_count": 37,
"max_line_length": 155,
"avg_line_length": 32.16216216216216,
"alnum_prop": 0.6285714285714286,
"repo_name": "DeerGS/Unity-push-notifications",
"id": "85e292cc384a4bb3a9d6ee5279b8e55a5a96c9b3",
"size": "1192",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "notifications/Notification.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C#",
"bytes": "5681"
}
],
"symlink_target": ""
} |
package info.fingo.urlopia.config.authentication;
import lombok.RequiredArgsConstructor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@Configuration
@RequiredArgsConstructor
public class WebConfig implements WebMvcConfigurer {
private final UserIdInterceptor userIdInterceptor;
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedMethods("*");
}
@Override
public void addInterceptors(InterceptorRegistry registry) {
registry.addInterceptor(userIdInterceptor);
WebMvcConfigurer.super.addInterceptors(registry);
}
}
| {
"content_hash": "b2427c860353342fde8907ec65a1aa26",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 77,
"avg_line_length": 34.88,
"alnum_prop": 0.7855504587155964,
"repo_name": "fingo/urlopia",
"id": "53f034e22a829e7206a2a4cf276654ac423f1068",
"size": "872",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/main/java/info/fingo/urlopia/config/authentication/WebConfig.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Dockerfile",
"bytes": "192"
},
{
"name": "Groovy",
"bytes": "279445"
},
{
"name": "HTML",
"bytes": "3130"
},
{
"name": "Handlebars",
"bytes": "4732"
},
{
"name": "Java",
"bytes": "485055"
},
{
"name": "JavaScript",
"bytes": "425423"
},
{
"name": "SCSS",
"bytes": "21661"
},
{
"name": "Shell",
"bytes": "89"
},
{
"name": "TypeScript",
"bytes": "12659"
}
],
"symlink_target": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.