text:
    This example demonstartes a new filterToolbar method. When we call this method the search

    is placed above the header columns. This method is similar to filterGrid, but resolves the issue

	related when we resize the coulmns.

 HTML
<XMP>

Search Invoices

</XMP>
Java Scrpt code
<XMP>
...
var mygrid = jQuery("#s3list").jqGrid({
   	url:'search.php?q=1',
	datatype: "json",
	width: 700,
   	colNames:['Inv No','Date', 'Client', 'Amount','Tax','Total','Notes'],
   	colModel:[
   		{name:'id',index:'id', width:65},
   		{name:'invdate',index:'invdate', width:90,searchoptions:{dataInit:function(el){$(el).datepicker({dateFormat:'yy-mm-dd'});} }},
   		{name:'name',index:'name', width:100},
   		{name:'amount',index:'amount', width:80, align:"right"},
   		{name:'tax',index:'tax', width:80, align:"right", stype:'select', editoptions:{value:":All;0.00:0.00;12:12.00;20:20.00;40:40.00;60:60.00;120:120.00"}},
   		{name:'total',index:'total', width:80,align:"right"},
   		{name:'note',index:'note', width:150, sortable:false}
   	],
   	rowNum:10,
   	mtype: "POST",
   	rowList:[10,20,30],
   	pager: '#s3pager',
   	sortname: 'id',
    viewrecords: true,
	rownumbers: true,
    sortorder: "desc",
	gridview : true,
    caption:"Toolbar Search Example"
});
jQuery("#s3list").jqGrid('navGrid','#s3pager',{edit:false,add:false,del:false,search:false,refresh:false});
jQuery("#s3list").jqGrid('navButtonAdd',"#s3pager",{caption:"Toggle",title:"Toggle Search Toolbar", buttonicon :'ui-icon-pin-s',
	onClickButton:function(){
		mygrid[0].toggleToolbar()
	}
});
jQuery("#s3list").jqGrid('navButtonAdd',"#s3pager",{caption:"Clear",title:"Clear Search",buttonicon :'ui-icon-refresh',
	onClickButton:function(){
		mygrid[0].clearToolbar()
	}
});
jQuery("#s3list").jqGrid('filterToolbar');

</XMP>
PHP with MySQL
<XMP>
See Multiple search in What is new in 3.3 version.
</XMP>


text:
#include "MovingDots.h"

BEGIN_NAMESPACE_MW

class MovingDotsPlugin : public Plugin {
	void registerComponents(boost::shared_ptr<ComponentRegistry> registry) override {
        registry->registerFactory<StandardStimulusFactory, MovingDots>();
    }
};

extern "C" Plugin* getPlugin() {
    return new MovingDotsPlugin();
}

END_NAMESPACE_MW

redpajama_set_name: RedPajamaGithub


text:
import PDF from '../lib/pdf'

export default class App extends React.Component {
	render () {
		return (

Documark

PDF generator for scripted documents.

						Learn more

					<PDF file="/pdf/example.pdf" page="1" />

		)
	}
}


text:
using Content.Shared.Clothing.EntitySystems;

namespace Content.Shared.Clothing.Components;

/// <summary>
///     This component indicates that this clothing is attached to some other entity with a <see
///     cref="ToggleableClothingComponent"/>. When unequipped, this entity should be returned to the entity that it is
///     attached to, rather than being dumped on the floor or something like that. Intended for use with hardsuits and
///     hardsuit helmets.
/// </summary>
[Access(typeof(ToggleableClothingSystem))]
[RegisterComponent]
public sealed class AttachedClothingComponent : Component
{
    /// <summary>
    ///     The Id of the piece of clothing that this entity belongs to.
    /// </summary>
    [DataField("AttachedUid")]
    public EntityUid AttachedUid = default!;
}


text:
#pragma once

#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif

/** Group: Interrupt registers */
/** Type of int_raw register
 *  ECC interrupt raw register, valid in level.
 */
typedef union {
    struct {
        /** calc_done_int_raw : RO/WTC/SS; bitpos: [0]; default: 0;
         *  The raw interrupt status bit  for the ecc calculate done interrupt
         */
        uint32_t calc_done_int_raw:1;
        uint32_t reserved_1:31;
    };
    uint32_t val;
} ecc_mult_int_raw_reg_t;

/** Type of int_st register
 *  ECC interrupt status register.
 */
typedef union {
    struct {
        /** calc_done_int_st : RO; bitpos: [0]; default: 0;
         *  The masked interrupt status bit  for the ecc calculate done interrupt
         */
        uint32_t calc_done_int_st:1;
        uint32_t reserved_1:31;
    };
    uint32_t val;
} ecc_mult_int_st_reg_t;

/** Type of int_ena register
 *  ECC interrupt enable register.
 */
typedef union {
    struct {
        /** calc_done_int_ena : R/W; bitpos: [0]; default: 0;
         *  The interrupt enable bit  for the ecc calculate done interrupt
         */
        uint32_t calc_done_int_ena:1;
        uint32_t reserved_1:31;
    };
    uint32_t val;
} ecc_mult_int_ena_reg_t;

/** Type of int_clr register
 *  ECC interrupt clear register.
 */
typedef union {
    struct {
        /** calc_done_int_clr : WT; bitpos: [0]; default: 0;
         *  Set this bit to clear the ecc calculate done interrupt
         */
        uint32_t calc_done_int_clr:1;
        uint32_t reserved_1:31;
    };
    uint32_t val;
} ecc_mult_int_clr_reg_t;

/** Group: Configuration registers */
/** Type of conf register
 *  ECC configure register
 */
typedef union {
    struct {
        /** start : R/W/SC; bitpos: [0]; default: 0;
         *  Set this bit to start a ECC operation.
         */
        uint32_t start:1;
        /** reset : WT; bitpos: [1]; default: 0;
         *  Set this bit to reset ECC
         */
        uint32_t reset:1;
        /** key_length : R/W; bitpos: [2]; default: 0;
         *  0:192bit key length mode. 1:256bit key length mode
         */
        uint32_t key_length:1;
        /** security_mode : R/W; bitpos: [3]; default: 0;
         *  Reserved
         */
        uint32_t security_mode:1;
        /** clk_en : R/W; bitpos: [4]; default: 0;
         *  clk gate
         */
        uint32_t clk_en:1;
        /** work_mode : R/W; bitpos: [7:5]; default: 0;
         *  ECC operation mode register.
         */
        uint32_t work_mode:3;
        /** verification_result : RO/SS; bitpos: [8]; default: 0;
         *  ECC verification result register.
         */
        uint32_t verification_result:1;
        uint32_t reserved_9:23;
    };
    uint32_t val;
} ecc_mult_conf_reg_t;

/** Group: Version register */
/** Type of date register
 *  Version control register
 */
typedef union {
    struct {
        /** date : R/W; bitpos: [27:0]; default: 34636176;
         *  ECC mult version control register
         */
        uint32_t date:28;
        uint32_t reserved_28:4;
    };
    uint32_t val;
} ecc_mult_date_reg_t;

typedef struct {
    uint32_t reserved_000[3];
    volatile ecc_mult_int_raw_reg_t int_raw;
    volatile ecc_mult_int_st_reg_t int_st;
    volatile ecc_mult_int_ena_reg_t int_ena;
    volatile ecc_mult_int_clr_reg_t int_clr;
    volatile ecc_mult_conf_reg_t conf;
    uint32_t reserved_020[55];
    volatile ecc_mult_date_reg_t date;
} ecc_mult_dev_t;

#ifndef __cplusplus
_Static_assert(sizeof(ecc_mult_dev_t) == 0x100, "Invalid size of ecc_mult_dev_t structure");
#endif

#ifdef __cplusplus
}
#endif


text:
package main

import (
	"bufio"
	"bytes"
	"fmt"
	"io"
	"log"
	"os"
	"path/filepath"
	"regexp"
	"runtime"
)

var workers = runtime.NumCPU()

type Result struct {
	filename string
	lino int
	line string
}

type Job struct {
	filename string
	results chan<- Result
}

func (job Job) Do(lineRx *regexp.Regexp) {
	file, err := os.Open(job.filename)
	if err != nil {
		log.Printf("error: %s", err)
		return
	}
	defer func() {
		_ = file.Close()
	}()
	reader := bufio.NewReader(file)
	for lino := 1; ; lino++ {
		line, err := reader.ReadBytes('\n')
		line = bytes.TrimRight(line, "\n\r")
		if lineRx.Match(line) {
			job.results <- Result{job.filename, lino, string(line)}
		}
		if err != nil {
			if err != io.EOF {
				log.Printf("error:%d: %s\n", lino, err)
			}
			break
		}
	}

}

func minimum(x int, ys ...int) int {
	for _, y := range ys {
		if y < x {
			x = y
		}
	}
	return x
}

func addJobs(jobs chan<- Job, filenames []string, results chan<- Result) {
	for _, filename := range filenames {
		jobs <- Job{filename, results}
	}
	close(jobs)
}

func doJobs(done chan<- struct{}, lineRx *regexp.Regexp, jobs <-chan Job) {
	for job := range jobs {
		job.Do(lineRx)
	}
	done <- struct{}{}
}

func awaitCompletion(done <-chan struct{}, results chan Result) {
	for i := 0; i < workers; i++ {
		<-done
	}
	close(results)
}

func processResults(results <-chan Result) {
	for result := range results {
		fmt.Printf("%s:%d:%s\n", result.filename, result.lino, result.line)
	}
}

func grep(lineRx *regexp.Regexp, filenames []string) {
	jobs := make(chan Job, workers)
	results := make(chan Result, minimum(1000, len(filenames)))
	done := make(chan struct{}, workers)

	go addJobs(jobs, filenames, results)

	for i :=0; i < workers; i++ {
		go doJobs(done, lineRx, jobs)
	}

	go awaitCompletion(done, results)

	processResults(results)
}

func main() {
	runtime.GOMAXPROCS(runtime.NumCPU())

	if len(os.Args) < 3 || os.Args[1] == "-h" || os.Args[1] == "--help" {
		fmt.Printf("usage: %s <regexp> <files>\n",
			filepath.Base(os.Args[0]))
		os.Exit(1)
	}

	if lineRx, err := regexp.Compile(os.Args[1]); err != nil {
		log.Fatalf("invalid regexp: %s\n", err)
	} else {
		grep(lineRx, os.Args[2:])
	}
}


text:
package com.redislabs.provider.redis.df.cluster

import com.redislabs.provider.redis.df.SparkSqlSuite
import com.redislabs.provider.redis.env.RedisClusterEnv

/**
  * @author The Viet Nguyen
  */
class SparkSqlClusterSuite extends SparkSqlSuite with RedisClusterEnv


text:
var mongoose = require('mongoose');
var mockgoose = require('mockgoose');
mockgoose(mongoose);

mongoose.connect('mongodb://localhost/test');


text:
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class AddForeignKeysToRegVocabularyTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::table('reg_vocabulary', function(Blueprint $table)
		{
			$table->foreign('created_user_id', 'reg_vocabulary_ibfk_1')->references('id')->on('reg_user')->onUpdate('NO ACTION')->onDelete('SET NULL');
			$table->foreign('updated_user_id', 'reg_vocabulary_ibfk_2')->references('id')->on('reg_user')->onUpdate('NO ACTION')->onDelete('SET NULL');
			$table->foreign('child_updated_user_id', 'reg_vocabulary_ibfk_3')->references('id')->on('reg_user')->onUpdate('NO ACTION')->onDelete('SET NULL');
			$table->foreign('profile_id', 'reg_vocabulary_ibfk_4')->references('id')->on('profile')->onUpdate('NO ACTION')->onDelete('NO ACTION');
			$table->foreign('agent_id', 'reg_vocabulary_ibfk_5')->references('id')->on('reg_agent')->onUpdate('NO ACTION')->onDelete('RESTRICT');
			$table->foreign('status_id', 'reg_vocabulary_ibfk_6')->references('id')->on('reg_status')->onUpdate('RESTRICT')->onDelete('RESTRICT');
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::table('reg_vocabulary', function(Blueprint $table)
		{
			$table->dropForeign('reg_vocabulary_ibfk_1');
			$table->dropForeign('reg_vocabulary_ibfk_2');
			$table->dropForeign('reg_vocabulary_ibfk_3');
			$table->dropForeign('reg_vocabulary_ibfk_4');
			$table->dropForeign('reg_vocabulary_ibfk_5');
			$table->dropForeign('reg_vocabulary_ibfk_6');
		});
	}

}


text:
template: post.html
title: Correlations Between States in Presidential Election Forecasts
title: Election Forecast Correlations
date: 2020-10-25
permalink: /forecast-correlation
shareimg: https://i.imgur.com/MqUH9IT.png
---

<link rel='stylesheet' type='text/css' href='style.css'>

[538](https://projects.fivethirtyeight.com/2020-election-forecast/) and the [Economist](https://projects.economist.com/us-2020-forecast/president) have both released detailed data from their election forecasts, listing how each state votes in 40,000 simulations of the presidential election. To understand some unusual scenarios from the 538 model, like every state [voting for Biden but New Jersey](https://twitter.com/gelliottmorris/status/1300480869082292225), Andrew Gelman [examined the correlation](https://statmodeling.stat.columbia.edu/2020/10/24/reverse-engineering-the-problematic-tail-behavior-of-the-fivethirtyeight-presidential-election-forecast/) in the Trump vote share between pairs of several states.

I was curious what the whole universe of pairwise correlations looked like; you can click on a grid cell below to see voting patterns in two states in more detail along with the electoral maps from individual simulation scenarios. In the 538 model, 242 pairs of states are negatively correlated!

Mousing around the edges of the scatter plot pulls out more unusual scenarios, like Trump losing everywhere but `CA-HI-VT`.

On the correlation matrices, it appears that both models have identified similar groups of states. A scatter plot shows this directly:

Outside of the `CA-DC-VT-WA` and `LA-MS-ND-KY` clusters, where the 538 correlation dips below 0, the models are mostly aligned. Glancing over the outliers, it looks like the Economist might not have an equivalent to 538's regional regression that groups states in the same geographic region together; the Economist has `HI` at 0.2 correlation with `WA` & `OR`  while 538 has it around 0.7.

Stepping back from the funky correlation charts, comparing the Trump vote share state by state clearly shows a bigger difference between the models: the Economist model considers really surprising outcomes, like Trump decisively winning `CA`, less likely than the 538 model.

I haven't followed the extensive discussion around election modeling closely enough to have a strong opinion on what all of this means, but it does look like the 538 model is allowing for the [possibility](https://twitter.com/Nate_Cohn/status/1320043524771991560) of a broad [realignment in politics](https://twitter.com/NateSilver538/status/1300825856072454145)--something you'd want to incorporate when modeling 2024 today, but not plausible for an election next week with [sixty million ballots](https://www.nytimes.com/interactive/2020/us/elections/absentee-ballot-early-voting.html) already cast.

Only 5,000 scenarios are shown on the scatter plots; the scenarios are a snapshot from 2020-10-25 and not updated (looking at the correlations over time might be interesting though!). The rendered electoral college scenarios ignore the possibility of `NE` or `ME` spliting their votes.

The correlations matrix orders states by clustering on 538's correlations. Sorting using the Economist correlations [splits up](https://i.imgur.com/JH9FC8I.png) the negative 538 correlations.

chart code


text:
@implementation YearCal

@synthesize year;

-(id)initWithYear:(NSInteger)y {
    if(self=[super init]){
        year=y;
    }
    return self;
}

-(void) outputYear {
    for (int i=1; i<=12; ) {
        MonthCal *cal1=[[MonthCal alloc]initWithYear:year AndMonth:i++];
        NSArray *mon1=[cal1 calOneMonth:1];
        MonthCal *cal2=[[MonthCal alloc]initWithYear:year AndMonth:i++];
        NSArray *mon2=[cal2 calOneMonth:1];
        MonthCal *cal3=[[MonthCal alloc]initWithYear:year AndMonth:i++];
        NSArray *mon3=[cal3 calOneMonth:1];
        for (int j=0; j<8; j++) {
            NSLog(@"%@  %@  %@",[mon1 objectAtIndex:j],[mon2 objectAtIndex:j],[mon3 objectAtIndex:j]);
        }
    }
}

@end


text:
import pytest
from flask import json

from tests.app.db import create_organisation, create_service

@pytest.mark.parametrize("path", ["/", "/_status"])
def test_get_status_all_ok(client, notify_db_session, path):
    response = client.get(path)
    assert response.status_code == 200
    resp_json = json.loads(response.get_data(as_text=True))
    assert resp_json["status"] == "ok"
    assert resp_json["db_version"]
    assert resp_json["git_commit"]
    assert resp_json["build_time"]

def test_empty_live_service_and_organisation_counts(admin_request):
    assert admin_request.get("status.live_service_and_organisation_counts") == {
        "organisations": 0,
        "services": 0,
    }

def test_populated_live_service_and_organisation_counts(admin_request):

    # Org 1 has three real live services and one fake, for a total of 3
    org_1 = create_organisation("org 1")
    live_service_1 = create_service(service_name="1")
    live_service_1.organisation = org_1
    live_service_2 = create_service(service_name="2")
    live_service_2.organisation = org_1
    live_service_3 = create_service(service_name="3")
    live_service_3.organisation = org_1
    fake_live_service_1 = create_service(service_name="f1", count_as_live=False)
    fake_live_service_1.organisation = org_1
    inactive_service_1 = create_service(service_name="i1", active=False)
    inactive_service_1.organisation = org_1

    # This service isn't associated to an org, but should still be counted as live
    create_service(service_name="4")

    # Org 2 has no real live services
    org_2 = create_organisation("org 2")
    trial_service_1 = create_service(service_name="t1", restricted=True)
    trial_service_1.organisation = org_2
    fake_live_service_2 = create_service(service_name="f2", count_as_live=False)
    fake_live_service_2.organisation = org_2
    inactive_service_2 = create_service(service_name="i2", active=False)
    inactive_service_2.organisation = org_2

    # Org 2 has no services at all
    create_organisation("org 3")

    # This service isn't associated to an org, and should not be counted as live
    # because it's marked as not counted
    create_service(service_name="f3", count_as_live=False)

    # This service isn't associated to an org, and should not be counted as live
    # because it's in trial mode
    create_service(service_name="t", restricted=True)
    create_service(service_name="i", restricted=False, active=False)

    assert admin_request.get("status.live_service_and_organisation_counts") == {
        "organisations": 1,
        "services": 4,
    }


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<title>IAuthData</title>
<meta name="date" content="2014-01-24">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">

JavaScript is disabled on your browser.

Overview

Package

Class

Use

Tree

Deprecated

Index

Help

Prev Class

Next Class

Frames

No Frames

All Classes

Summary:

Nested |

Field |

Constr |

Method

Detail:

Field |

Constr |

Method

com.box.boxjavalibv2.interfaces

Interface IAuthData

All Known Implementing Classes:

BoxAndroidOAuthData, BoxOAuthToken

public interface IAuthData

Method Summary

Methods

Modifier and Type
Method and Description

java.lang.String
getAccessToken()

java.lang.String
getRefreshToken()

Method Detail

getAccessToken

java.lang.String getAccessToken()

getRefreshToken

java.lang.String getRefreshToken()

Overview

Package

Class

Use

Tree

Deprecated

Index

Help

Prev Class

Next Class

Frames

No Frames

All Classes

Summary:

Nested |

Field |

Constr |

Method

Detail:

Field |

Constr |

Method


text:
Tanz mal drüber nach!

            Der Klimawandel ist leise, aber er passiert. Genau in diesem Moment.
            Und er bedroht unsere Zukunft.

            Die Silent Climate Parade ist eine klimafreundliche, bunte Parade durch die Stadt mit einer Silent Disco.
            Am Samstag, den 13. Mai 2017 sind wir tanzend durch die Straßen Hannovers gezogen, um auf den Klimawandel und dessen Folgen aufmerksam zu machen und einen konsequenten Klimaschutz einzufordern.

            Die Stimmung war grandios! Gemeinsam haben wir Open Air zu Musik aus Funkkopfhörern getanzt, die das DJ-Duo Stina und Gina und DJ Margodt live auflegen. Wir haben gezeigt: Klimaschutz kann riesigen Spaß machen!
            Von außen scheinbar leise haben wir mit Schildern, Flyern und Choreographien für Aufmerksamkeit gesorgt und so symbolisch auf das im Alltag kaum wahrgenommene, jedoch allgegenwärtige Problem des Klimawandels hingewiesen.

            Am Ende der Route gab es am Lindener Marktplatz eine feurige Abschlussrede, arabische Kreistänze, vegane Verpflegung von den "klugbeissern" und einen gemütlichen Ausklang mit Musik.

         <md-whiteframe class="md-whiteframe-z2 card corner-top">
            <md-button style="float: right" href="https://www.facebook.com/events/1674640799476257/" target="_blank">
               <ng-md-icon style="fill: #0288d1" icon="facebook"></ng-md-icon>
            </md-button>

Silent Climate Parade Hannover

                     Wann:

                     13. Mai 2017 um 13 Uhr

                     Ort:

                     Hannover, Steintorplatz

                     Organisation:

                     Ihr könnt euch vor Ort Kopfhörer kostenlos ausleihen, gegen einen Lichtbildausweis von euch als Pfand.

                     Kosten:

                     Die Veranstaltung ist kostenfrei! Wir freuen uns über kleine Spenden für die Kopfhörer.

                     Veranstalter*innen:

                     Klima-Challenge, JANUN e.V.

                     Unterstützer*innen:

                     VEN - Verband Entwicklungspolitik Niedersachsen, VELOGOLD: ein besonderer Dank für die Bereitstellung der zwei fantastischen Musketier-Lastenräder für unserer DJs!!

         </md-whiteframe>


text:
title: Some Thoughts About Relationships
author: Colin Wright
category: relationships
tags:
- relationships
description: >
  Relationships are hard, and cultural knowledge and archetypes aren't helping.
  Talks about relationships in a rational way. Even though it might sound
  distant or cold, the way it's written makes complete sense. The ideas are
  pragmatic and, in most cases, actionable.
rating: 4
date: 2016-03-19
amazon: https://amzn.to/2JyeTr8
---

All relationships are different. These guidelines should serve as ideas on which
to build your own guidelines. Figure out what makes sense to you, and commit on
a daily basis.

Develop the habit of questioning the pre-established notions about
relationships. Never play a predetermined role.

Stress test your relationship by traveling together. The randomness and
uncertainty of traveling brings up the best and worst of everyone.

## Be Rational

Believe in cause and effect, continuous improvement, and looking for solutions
to problems. Relationships doesn't grow just by wanting them to. Even if you
really, really want them to.

Be intentional and conscious in your relationships. Relationships doesn't depend
on circumstances or luck.

Build trust. If someone makes a mistake unintentionally, then you'll have the
trust to discuss the problem and look for solutions.

## Communicate Well

Communicate what you are thinking and feeling. By communicating you make your
relationships rational.

Always consider that everyone assumes different things while communicating.
Words can have slightly different meanings to different people.

Make an effort to develop a clear communication channel. Make sure the language
you're using is not misinterpreted. Try to make it a habit rather than something
that requires too much effort.

Develop the habit of telling your partner when something is wrong. It's better
to assume everything's fine until something is brought up, than always feeling
something is wrong.

Don't rely on your partner reading your mind. Don't secretly hope they do
exactly what you want them to without telling them.

Always reflect on your relationships, and discuss these reflections. It'll
generate an instance to reinforce positive behaviour or talk about problems
before being emotionally involved.

Pick your battles. Not all concerns are created equal. Not everything needs a
solution.

## Expectations

Focus on making friendship the basis of your relationships, both professional
and romantic. It'll reduce the anxiety and stress associated to getting to know
someone new. Communicate this approach if you feel it can help the relationship.

Communicate your goals and expectations early on. Don't hide important
expectations that might shake your relationships in the future.

Identify the needs of each one, and try to adjust for everyone in the
relationships to get what they want.

It's not your responsibility to fulfill every need your partner has.

Be willing to try new things, but only if they makes sense to you.

## Romance

Learn enough about your partner to know what makes them feel special.

Try to consistently increase the level of happiness of your partner. Do it on a
daily basis instead of once a year.

## Allies

Consider your partner an ally. Whatever you do, it's for the benefit of
everyone. Everyone wins, or nobody wins.

Don't focus on your partner or yourself separately. Start focusing on both of
you together. Discuss situations so that everyone is closer to what they want.

Carry your own weight, and motivate your partner to carry their own weight.

Don't tell negative jokes aimed at your partner. Enhance the good things and
build your partner up. Don't put them down with jokes or criticism.

## Space

Learn to balance the presence of someone else with your own life. A relationship
doesn't need for you to be all the time together and doing everything together.
It means sharing aspects of each other's lives, while still having space, time,
and privacy for your own life.

Silence is not a bad thing. It's not your responsibility to keep your partner
entertained at all times.

You're entitled to have privacy. Don't hide important things from your partner.
But you are entitled to your own thoughts, projects, or whatever you want to
keep private.

## Happiness

Focus on what makes you happy now. Happiness is subjective and evolves through
time. Don't get stuck on outdated ideas.

Don't search for someone that completes you. The idea that you need someone to
make you feel fulfilled is irrational. Be happy by yourself instead of looking
for someone to make you happy.

> You are The One. You are the only person in the world who can complete and
> fulfill you, and ensure your happiness. Everyone else is a potential,
> hopefully wonderful, addition to that fated situation. — Colin Wright

Don't look for someone to change. Look for someone whose personality, wants and
lifestyle you already accept and value.

Encourage growth. This is not the same as changing someone. Growth allows
everyone in the relationship to achieve better things over time.


text:
package com.tuenti.buttonmenu.viewmodel.button;

/**
 * Interface created to work as a listener for ButtonVM. This interface contains some methods called when the client
 * code interacts with a ButtonVM.
 *
 * @author "Pedro Vicente Gómez Sánchez" <pgomez@tuenti.com>
 */
public interface ButtonVMListener {

	/**
	 * Method executed when the enable() or disable() method it's executed in a ButtonVM.
	 *
	 * @param enabled boolean represents the new ButtonVM state.
	 * @param buttonVM that has suffer the change.
	 */
	void onEnablePropertyChanged(final boolean enabled, final ButtonVM buttonVM);

	/**
	 * Method executed when the counter value has changed in a CounterButtonVM.
	 *
	 * @param counterValue new counterValue change in the view model.
	 * @param buttonVM that has suffer the change.
	 */
	void onCounterValueChanged(final int counterValue, final CounterButtonVM buttonVM);

	/**
	 * Method executed when the image resource has changed in a ImageResourceChangeVM.
	 *
	 * @param imageResourceId new image identifier.
	 * @param buttonVM that has suffer the change.
	 */
	void onImageResourceChanged(final int imageResourceId, final MutableResourceButtonVM buttonVM);

	/**
	 * Method executed when the subject value change in the view model.
	 *
	 * @param subject new subject value.
	 * @param buttonVm that has suffer the change.
	 */
	void onSubjectChanged(final String subject, final MutableSubjectButtonVM buttonVm);

	/**
	 * Method executed when the progress value change in the view model.
	 *
	 * @param loading  new state of progressbar loading
	 * @param buttonVm that has suffer the change.
	 */
	void onProgressValueChanged(boolean loading, final ButtonWithProgressVM buttonVm);
}


text:
<Alloy>
	<Window id="mainWindow" class="container">
		<Require type="widget" src="toggleButton" id="buttonWidget"></Require>
	</Window>
</Alloy>


text:
module Runby
  module RunTypes
    # Your mile race pace, which is also useful for running repetitions at this pace
    class MileRaceRun < RunType
      def description
        'Mile Race Pace'
      end

      def explanation
        'Repetitions run at a pace you would use to race one mile can increase the stroke volume of your heart, strengthen your lungs, increase the number of capillaries around your intermediate and fast twitch fibers, and increase mitochondrial densities around the same.'
      end

      def lookup_pace(five_k_time, distance_units = :km)
        five_k_time = RunbyTime.new(five_k_time)
        mile = Distance.new('1 mile')
        mile_time = RunMath.predict_race_time('5K', five_k_time, mile)
        pace = Pace.new(mile_time, mile).convert_to(distance_units)
        PaceRange.new(pace, pace)
      end
    end
  end
end


text:
package com.woodblockwithoutco.quickcontroldock.ui.view.drag;

import android.view.View.OnTouchListener;

public interface OnDragViewTouchListener extends OnTouchListener {
	public void close();
	public void open();
}


text:
import sbt._
import sbt.Keys._
import scala.xml.NodeSeq

object CalliopeBuild extends Build {

  lazy val USE_CASV2 = System.getenv("USE_CASV2") != null && System.getenv("USE_CASV2").equalsIgnoreCase("true")

  lazy val VERSION = "0.9.0-U1-" + (if (USE_CASV2) "C2-EA" else "EA")

  lazy val CAS_VERSION = if (USE_CASV2) "2.0.5" else "1.2.16"

  lazy val THRIFT_VERSION = if (USE_CASV2) "0.9.1" else "0.7.0"

  lazy val SCALA_VERSION = "2.10.3"

  lazy val DS_DRIVER_VERSION = "2.0.1"

  def sparkDependency(scalaVer: String) =
    scalaVer match {
      case "2.10.3" =>
        Seq("org.apache.spark" %% "spark-core" % "0.9.0-incubating",
          "org.apache.spark" %% "spark-streaming" % "0.9.0-incubating" % "provided")

      case x =>
        Seq("org.apache.spark" %% "spark-core" % "0.9.0-incubating",
          "org.apache.spark" %% "spark-streaming" % "0.9.0-incubating" % "provided")
    }

  lazy val calliope = {
    val dependencies = Seq(
      "org.apache.cassandra" % "cassandra-all" % CAS_VERSION intransitive(),
      "org.apache.cassandra" % "cassandra-thrift" % CAS_VERSION intransitive(),
      "org.apache.thrift" % "libthrift" % THRIFT_VERSION exclude("org.slf4j", "slf4j-api") exclude("javax.servlet", "servlet-api"),
      "com.datastax.cassandra" % "cassandra-driver-core" % DS_DRIVER_VERSION,
      "org.slf4j" % "slf4j-jdk14" % "1.7.5",
      "org.scalatest" %% "scalatest" % "1.9.1" % "test"
    )

    val pom = {
      <scm>
        <url>git@github.com:tuplejump/calliope.git</url>
        <connection>scm:git:git@github.com:tuplejump/calliope.git</connection>
      </scm>
        <developers>
          <developer>
            <id>milliondreams</id>
            <name>Rohit Rai</name>
            <url>https://twitter.com/milliondreams</url>
          </developer>
        </developers>
    }

    val calliopeSettings = Seq(
      name := "calliope",

      organization := "com.tuplejump",

      version := VERSION,

      scalaVersion := SCALA_VERSION,

      crossScalaVersions := Seq("2.10.3"),

      scalacOptions <<= scalaVersion map {
        v: String =>
          val default = "-deprecation" :: "-unchecked" :: Nil
          if (v.startsWith("2.9.")) default else default :+ "-feature"
      },

      libraryDependencies ++= dependencies,

      libraryDependencies <++= (scalaVersion)(sparkDependency),

      parallelExecution in Test := false,

      pomExtra := pom,

      publishArtifact in Test := false,

      pomIncludeRepository := {
        _ => false
      },

      publishMavenStyle := true,

      retrieveManaged := true,

      publishTo <<= version {
        (v: String) =>
          val nexus = "https://oss.sonatype.org/"
          if (v.trim.endsWith("SNAPSHOT"))
            Some("snapshots" at nexus + "content/repositories/snapshots")
          else
            Some("releases" at nexus + "service/local/staging/deploy/maven2")
      },

      licenses := Seq("Apache License, Version 2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),

      homepage := Some(url("https://tuplejump.github.io/calliope")),

      organizationName := "Tuplejump, Inc.",

      organizationHomepage := Some(url("http://www.tuplejump.com")),

      resolvers ++= Seq("Akka Repository" at "http://repo.akka.io/releases/")
    )

    Project(
      id = "calliope",
      base = file("."),
      settings = Project.defaultSettings ++ calliopeSettings ++ net.virtualvoid.sbt.graph.Plugin.graphSettings
    )
  }
}


text:
package de.leanovate.dose.cart.model

case class CartItems(
                      items: Seq[CartItem],
                      valid: Boolean,
                      totalCents: Int
                      )

object CartItems {
  def apply(items: Seq[CartItem]): CartItems = {
    CartItems(
      items = items,
      valid = items.forall(item => item.product.isDefined && item.priceInCent.isDefined),
      totalCents = items.foldLeft(0) {
        (total, item) => total + item.priceInCent.getOrElse(0)
      }
    )
  }
}


text:
TEST(FileReadPointer, CannotOpenInvalidFileName) {
    FileReadPointer reader("data/hogehoge");
    ASSERT_EQ(NULL, static_cast<FILE*>(reader));
}

TEST(FileReadPointer, CannotOpenInvalidFileName_fp) {
    FileReadPointer reader("data/hogehoge");
    ASSERT_EQ(NULL, reader.fp());
}

TEST(FileReadPointer, FileAccess) {
    {
        FileReadPointer reader("../LICENSE");
        ASSERT_EQ(0, fseeko(reader, 0, SEEK_SET));
    }
}

TEST(FileWritePointer, CannotOpenReadOnlyFile) {
    FileWritePointer writer("data/ro_data");
    ASSERT_EQ(NULL, static_cast<FILE*>(writer));
}

TEST(FileWritePointer, CannotOpenReadOnlyFile_fp) {
    FileWritePointer writer("data/ro_data");
    ASSERT_EQ(NULL, writer.fp());
}

// int main(int argc, char **argv) {
//     testing::InitGoogleTest(&argc, argv);
//     return RUN_ALL_TESTS();
// }


text:
package cloud::azure::database::sqldatabase::plugin;

use strict;
use warnings;
use base qw(centreon::plugins::script_custom);

sub new {
    my ( $class, %options ) = @_;
    my $self = $class->SUPER::new( package => __PACKAGE__, %options );
    bless $self, $class;

    $self->{version} = '0.1';
    %{ $self->{modes} } = (
        'app-resources' => 'cloud::azure::database::sqldatabase::mode::appresources',
        'connections'   => 'cloud::azure::database::sqldatabase::mode::connections',
        'discovery'     => 'cloud::azure::database::sqldatabase::mode::discovery',
        'deadlocks'     => 'cloud::azure::database::sqldatabase::mode::deadlocks',
        'health'        => 'cloud::azure::database::sqldatabase::mode::health',
        'sessions'      => 'cloud::azure::database::sqldatabase::mode::sessions',
        'storage'       => 'cloud::azure::database::sqldatabase::mode::storage',
        'workers'       => 'cloud::azure::database::sqldatabase::mode::workers'
    );

    $self->{custom_modes}->{azcli} = 'cloud::azure::custom::azcli';
    $self->{custom_modes}->{api} = 'cloud::azure::custom::api';
    return $self;
}

sub init {
    my ($self, %options) = @_;

    $self->{options}->add_options(arguments => {
        'api-version:s'  => { name => 'api_version', default => '2018-01-01' },
    });

    $self->SUPER::init(%options);
}

1;

__END__

=head1 PLUGIN DESCRIPTION

Check Microsoft Azure SQL Databases (Microsoft.Sql/Servers/Databases).

=cut


text:
<?php

namespace Drupal\Tests\quickedit\Kernel;

use Drupal\Component\Serialization\Json;
use Drupal\Core\EventSubscriber\AjaxResponseSubscriber;
use Drupal\Core\Language\LanguageInterface;
use Drupal\editor\Entity\Editor;
use Drupal\entity_test\Entity\EntityTest;
use Drupal\quickedit\MetadataGenerator;
use Drupal\quickedit_test\MockQuickEditEntityFieldAccessCheck;
use Drupal\editor\EditorController;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\Event\ResponseEvent;
use Symfony\Component\HttpKernel\HttpKernelInterface;
use Drupal\filter\Entity\FilterFormat;

/**
 * Tests Edit module integration (Editor module's inline editing support).
 *
 * @group quickedit
 */
class EditorIntegrationTest extends QuickEditTestBase {

  /**
   * {@inheritdoc}
   */
  protected static $modules = ['editor', 'editor_test'];

  /**
   * The manager for editor plug-ins.
   *
   * @var \Drupal\Component\Plugin\PluginManagerInterface
   */
  protected $editorManager;

  /**
   * The metadata generator object to be tested.
   *
   * @var \Drupal\quickedit\MetadataGeneratorInterface
   */
  protected $metadataGenerator;

  /**
   * The editor selector object to be used by the metadata generator object.
   *
   * @var \Drupal\quickedit\EditorSelectorInterface
   */
  protected $editorSelector;

  /**
   * The access checker object to be used by the metadata generator object.
   *
   * @var \Drupal\quickedit\Access\QuickEditEntityFieldAccessCheckInterface
   */
  protected $accessChecker;

  /**
   * The name of the field ued for tests.
   *
   * @var string
   */
  protected $fieldName;

  protected function setUp(): void {
    parent::setUp();

    // Install the Filter module.

    // Create a field.
    $this->fieldName = 'field_textarea';
    $this->createFieldWithStorage(
      $this->fieldName, 'text', 1, 'Long text field',
      // Instance settings.
      [],
      // Widget type & settings.
      'text_textarea',
      ['size' => 42],
      // 'default' formatter type & settings.
      'text_default',
      []
    );

    // Create text format.
    $full_html_format = FilterFormat::create([
      'format' => 'full_html',
      'name' => 'Full HTML',
      'weight' => 1,
      'filters' => [],
    ]);
    $full_html_format->save();

    // Associate text editor with text format.
    $editor = Editor::create([
      'format' => $full_html_format->id(),
      'editor' => 'unicorn',
    ]);
    $editor->save();

    // Also create a text format without an associated text editor.
    FilterFormat::create([
      'format' => 'no_editor',
      'name' => 'No Text Editor',
      'weight' => 2,
      'filters' => [],
    ])->save();
  }

  /**
   * Returns the in-place editor that quickedit selects.
   *
   * @param int $entity_id
   *   An entity ID.
   * @param string $field_name
   *   A field name.
   * @param string $view_mode
   *   A view mode.
   *
   * @return string
   *   Returns the selected in-place editor.
   */
  protected function getSelectedEditor($entity_id, $field_name, $view_mode = 'default') {
    $storage = $this->container->get('entity_type.manager')->getStorage('entity_test');
    $storage->resetCache([$entity_id]);
    $entity = $storage->load($entity_id);
    $items = $entity->get($field_name);
    $options = \Drupal::service('entity_display.repository')
      ->getViewDisplay('entity_test', 'entity_test', $view_mode)
      ->getComponent($field_name);
    return $this->editorSelector->getEditor($options['type'], $items);
  }

  /**
   * Tests editor selection when the Editor module is present.
   *
   * Tests a textual field, with text filtering, with cardinality 1 and >1,
   * always with a ProcessedTextEditor plug-in present, but with varying text
   * format compatibility.
   */
  public function testEditorSelection() {
    $this->editorManager = $this->container->get('plugin.manager.quickedit.editor');
    $this->editorSelector = $this->container->get('quickedit.editor.selector');

    // Create an entity with values for this text field.
    $entity = EntityTest::create();
    $entity->{$this->fieldName}->value = 'Hello, world!';
    $entity->{$this->fieldName}->format = 'filtered_html';
    $entity->save();

    // Editor selection w/ cardinality 1, text format w/o associated text editor.
    $this->assertEquals('form', $this->getSelectedEditor($entity->id(), $this->fieldName), "With cardinality 1, and the filtered_html text format, the 'form' editor is selected.");

    // Editor selection w/ cardinality 1, text format w/ associated text editor.
    $entity->{$this->fieldName}->format = 'full_html';
    $entity->save();
    $this->assertEquals('editor', $this->getSelectedEditor($entity->id(), $this->fieldName), "With cardinality 1, and the full_html text format, the 'editor' editor is selected.");

    // Editor selection with text processing, cardinality >1
    $this->fields->field_textarea_field_storage->setCardinality(2);
    $this->fields->field_textarea_field_storage->save();
    $this->assertEquals('form', $this->getSelectedEditor($entity->id(), $this->fieldName), "With cardinality >1, and both items using the full_html text format, the 'form' editor is selected.");
  }

  /**
   * Tests (custom) metadata when the formatted text editor is used.
   */
  public function testMetadata() {
    $this->editorManager = $this->container->get('plugin.manager.quickedit.editor');
    $this->accessChecker = new MockQuickEditEntityFieldAccessCheck();
    $this->editorSelector = $this->container->get('quickedit.editor.selector');
    $this->metadataGenerator = new MetadataGenerator($this->accessChecker, $this->editorSelector, $this->editorManager);

    // Create an entity with values for the field.
    $entity = EntityTest::create();
    $entity->{$this->fieldName}->value = 'Test';
    $entity->{$this->fieldName}->format = 'full_html';
    $entity->save();
    $entity = EntityTest::load($entity->id());

    // Verify metadata.
    $items = $entity->get($this->fieldName);
    \Drupal::state()->set('quickedit_test_field_access', 'forbidden');
    $this->assertSame(['access' => FALSE], $this->metadataGenerator->generateFieldMetadata($items, 'default'));
    \Drupal::state()->set('quickedit_test_field_access', 'neutral');
    $this->assertSame(['access' => FALSE], $this->metadataGenerator->generateFieldMetadata($items, 'default'));
    \Drupal::state()->set('quickedit_test_field_access', 'allowed');
    $metadata = $this->metadataGenerator->generateFieldMetadata($items, 'default');
    $expected = [
      'access' => TRUE,
      'label' => 'Long text field',
      'editor' => 'editor',
      'custom' => [
        'format' => 'full_html',
        'formatHasTransformations' => FALSE,
      ],
    ];
    $this->assertEquals($expected, $metadata, 'The correct metadata (including custom metadata) is generated.');
  }

  /**
   * Tests in-place editor attachments when the Editor module is present.
   */
  public function testAttachments() {
    $this->editorSelector = $this->container->get('quickedit.editor.selector');

    $editors = ['editor'];
    $attachments = $this->editorSelector->getEditorAttachments($editors);
    $this->assertSame(['library' => ['editor/quickedit.inPlaceEditor.formattedText']], $attachments, "Expected attachments for Editor module's in-place editor found.");
  }

  /**
   * Tests GetUntransformedTextCommand AJAX command.
   */
  public function testGetUntransformedTextCommand() {
    // Create an entity with values for the field.
    $entity = EntityTest::create();
    $entity->{$this->fieldName}->value = 'Test';
    $entity->{$this->fieldName}->format = 'full_html';
    $entity->save();
    $entity = EntityTest::load($entity->id());

    // Verify AJAX response.
    $controller = new EditorController();
    $request = new Request();
    $response = $controller->getUntransformedText($entity, $this->fieldName, LanguageInterface::LANGCODE_DEFAULT, 'default');
    $expected = [
      [
        'command' => 'editorGetUntransformedText',
        'data' => 'Test',
      ],
    ];

    $ajax_response_attachments_processor = \Drupal::service('ajax_response.attachments_processor');
    $subscriber = new AjaxResponseSubscriber($ajax_response_attachments_processor);
    $event = new ResponseEvent(
      \Drupal::service('http_kernel'),
      $request,
      HttpKernelInterface::MASTER_REQUEST,
      $response
    );
    $subscriber->onResponse($event);

    $this->assertEquals(Json::encode($expected), $response->getContent(), 'The GetUntransformedTextCommand AJAX command works correctly.');
  }

}


text:
package org.allenai.plugins.archetypes

import org.allenai.plugins.CoreSettingsPlugin
import org.allenai.plugins.Ai2ReleasePlugin

import sbt.{ AutoPlugin, Plugins }

object LibraryPlugin extends AutoPlugin {
  override def requires: Plugins = CoreSettingsPlugin && Ai2ReleasePlugin
}


text:
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                    Toggle navigation

                </button>

                        Portfolio

                        About

                        Contact


text:
(function () {
  'use strict';

  function wrap (fn) {
    if (typeof exportFunction !== 'function') {
      return fn;
    }
    return exportFunction(fn, unsafeWindow, {
      allowCrossOriginArguments: true,
    });
  }

  var nop = wrap(function () {
    console.info(arguments);
  });

  unsafeWindow.open = nop;

  document.addEventListener('DOMContentLoaded', function () {
    unsafeWindow.document.body.addEventListener = nop;
  });

})();


text:
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Web;
using System.Web.Hosting;
using System.Web.Mvc;
using Microsoft.AspNet.Identity;

namespace KhoHocBong.Controllers
{
    public class StoreController : Controller
    {

        public ActionResult UploadFile()
        {
            return new FilePathResult("filename", "file type");
        }

        public FileResult GetFile(string filename)
        {
            var filePath = Path.GetFullPath(Server.MapPath(filename)); ;
            byte[] fileBytes = System.IO.File.ReadAllBytes(filePath);
            return File(fileBytes, System.Net.Mime.MediaTypeNames.Application.Octet, Path.GetFileName(filePath));
        }
        // GET: Store
        public ActionResult GetImage(string name)
        {
            byte[] imageData = ReturnImage(name);

            //instead of what augi wrote using the binarystreamresult this was the closest thing i found so i am assuming that this is what it evolved into
            return new FileStreamResult(new System.IO.MemoryStream(imageData), "image/jpeg");
        }

        public byte[] ReturnImageFromDb(int id)
        {
            // i tried his way of selecting the right record and preforming the toArray method in the return statment
            // but it kept giving me an error about converting linq.binary to byte[] tried a cast that didnt work so i came up with this
            byte[] imageData = new byte[0];
            return imageData;
        }

        public byte[] ReturnImage(string name)
        {
            // i tried his way of selecting the right record and preforming the toArray method in the return statment
            // but it kept giving me an error about converting linq.binary to byte[] tried a cast that didnt work so i came up with this
            var path = Path.GetFullPath(Server.MapPath(string.Format("~/Store/{0}", name)));
            byte[] imageData = System.IO.File.ReadAllBytes(path);
            return imageData;
        }
    }
}


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<title>R.id</title>
<meta name="date" content="2017-04-03">
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">

JavaScript is disabled on your browser.

Skip navigation links

Overview

Package

Class

Tree

Deprecated

Index

Help

Prev Class

Next Class

Frames

No Frames

All Classes

Summary:

Nested |

Field |

Constr |

Method

Detail:

Field |

Constr |

Method

com.example.moodmobile

Class R.id

java.lang.Object

com.example.moodmobile.R.id

Enclosing class:

R

public static final class R.id
extends java.lang.Object

Field Summary

Fields

Modifier and Type
Field and Description

static int
action_bar

static int
action_bar_activity_content

static int
action_bar_container

static int
action_bar_root

static int
action_bar_spinner

static int
action_bar_subtitle

static int
action_bar_title

static int
action_container

static int
action_context_bar

static int
action_divider

static int
action_filter

static int
action_friend

static int
action_image

static int
action_menu_divider

static int
action_menu_presenter

static int
action_mode_bar

static int
action_mode_bar_stub

static int
action_mode_close_button

static int
action_mood

static int
action_text

static int
action0

static int
actions

static int
activity_chooser_view_content

static int
activity_friends

static int
activity_main

static int
activity_view_friend_requests

static int
add

static int
add_new_friend

static int
addImage

static int
adjust_height

static int
adjust_width

static int
alertTitle

static int
all

static int
always

static int
auto

static int
basic

static int
beginning

static int
bottom

static int
bubble_description

static int
bubble_image

static int
bubble_moreinfo

static int
bubble_subdescription

static int
bubble_title

static int
buttonPanel

static int
cancel_action

static int
cancelButton

static int
center

static int
center_horizontal

static int
center_vertical

static int
chains

static int
checkbox

static int
checkBox

static int
chronometer

static int
clip_horizontal

static int
clip_vertical

static int
collapseActionView

static int
contentPanel

static int
custom

static int
customPanel

static int
dark

static int
dateEditText

static int
dateLayout

static int
dateText

static int
decor_content_parent

static int
default_activity_button

static int
design_bottom_sheet

static int
design_menu_item_action_area

static int
design_menu_item_action_area_stub

static int
design_menu_item_text

static int
design_navigation_view

static int
disableHome

static int
drawer_layout

static int
edit_photo

static int
edit_query

static int
editMoodTitle

static int
emoticon

static int
emotionFilter

static int
emotionLayout

static int
emotionSpinner

static int
end

static int
end_padder

static int
enterAlways

static int
enterAlwaysCollapsed

static int
exitUntilCollapsed

static int
expand_activities_button

static int
expanded_menu

static int
fill

static int
fill_horizontal

static int
fill_vertical

static int
filterButton

static int
fixed

static int
following

static int
FollowRequestsCount

static int
FriendsListView

static int
gender

static int
GetFriendRequests

static int
GuestAcceptRequest

static int
GuestDenyRequest

static int
GuestLatestLocationTextview

static int
GuestLatestMoodTextview

static int
GuestProfileName

static int
home

static int
homeAsUp

static int
hybrid

static int
icon

static int
icon_group

static int
icon_only

static int
ifRoom

static int
image

static int
imageView

static int
imageView2

static int
info

static int
item_touch_helper_previous_elevation

static int
ivCamera

static int
ivGallery

static int
largeLabel

static int
left

static int
light

static int
line1

static int
line3

static int
list_item

static int
listContents

static int
listMode

static int
location

static int
locationEditText

static int
locationText

static int
login_screen

static int
loginBot

static int
map

static int
masked

static int
media_actions

static int
middle

static int
mini

static int
moodImage

static int
moodList

static int
moodReasonEdittext

static int
moodSaveButton

static int
moodSituationSpinner

static int
moodSpinner

static int
multiply

static int
myMood

static int
nav_following

static int
nav_logout

static int
nav_map

static int
nav_moods

static int
nav_requests

static int
nav_view

static int
navigation_header_container

static int
navImage

static int
navText

static int
nearby

static int
never

static int
nickname

static int
none

static int
normal

static int
notification_background

static int
notification_main_column

static int
notification_main_column_container

static int
NumberFriendsTextView

static int
packed

static int
parallax

static int
parent

static int
parentPanel

static int
picture

static int
pin

static int
profileImage

static int
progress_circular

static int
progress_horizontal

static int
publish

static int
radio

static int
radioGroup

static int
reason

static int
reasonFilter

static int
reasonLayout

static int
reasonText

static int
region

static int
RequestsList

static int
right

static int
right_icon

static int
right_side

static int
satellite

static int
SaveBot

static int
saveProfile

static int
screen

static int
scroll

static int
scrollable

static int
scrollIndicatorDown

static int
scrollIndicatorUp

static int
scrollView

static int
search_badge

static int
search_bar

static int
search_button

static int
search_close_btn

static int
search_edit_frame

static int
search_go_btn

static int
search_mag_icon

static int
search_plate

static int
search_src_text

static int
search_voice_btn

static int
select_dialog_listview

static int
SendFriendRequestButto

static int
SendRequest

static int
shortcut

static int
showCustom

static int
showHome

static int
showTitle

static int
sitSpinner

static int
smallLabel

static int
snackbar_action

static int
snackbar_text

static int
snap

static int
spacer

static int
split_action_bar

static int
spread

static int
spread_inside

static int
src_atop

static int
src_in

static int
src_over

static int
ssSpinner

static int
standard

static int
start

static int
status_bar_latest_event_content

static int
submenuarrow

static int
submit_area

static int
tabMode

static int
terrain

static int
test

static int
text

static int
text_input_password_toggle

static int
text2

static int
textinput_counter

static int
textinput_error

static int
textSpacerNoButtons

static int
textSpacerNoTitle

static int
textView

static int
textView11

static int
textView18

static int
textView20

static int
textView3

static int
textView5

static int
textView6

static int
textView7

static int
textView8

static int
time

static int
title

static int
title_template

static int
titleDividerNoCustom

static int
toolbar

static int
top

static int
topPanel

static int
touch_outside

static int
transition_current_scene

static int
transition_scene_layoutid_cache

static int
up

static int
useLogo

static int
user_profile

static int
username

static int
usernameSearch

static int
userView

static int
view_offset_helper

static int
visible

static int
weekBox

static int
weekFilter

static int
welcomeText

static int
wide

static int
withText

static int
wrap

static int
wrap_content

Constructor Summary

Constructors

Constructor and Description

id()

Method Summary

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

FollowRequestsCount

public static final int FollowRequestsCount

See Also:

Constant Field Values

FriendsListView

public static final int FriendsListView

See Also:

Constant Field Values

GetFriendRequests

public static final int GetFriendRequests

See Also:

Constant Field Values

GuestAcceptRequest

public static final int GuestAcceptRequest

See Also:

Constant Field Values

GuestDenyRequest

public static final int GuestDenyRequest

See Also:

Constant Field Values

GuestLatestLocationTextview

public static final int GuestLatestLocationTextview

See Also:

Constant Field Values

GuestLatestMoodTextview

public static final int GuestLatestMoodTextview

See Also:

Constant Field Values

GuestProfileName

public static final int GuestProfileName

See Also:

Constant Field Values

NumberFriendsTextView

public static final int NumberFriendsTextView

See Also:

Constant Field Values

RequestsList

public static final int RequestsList

See Also:

Constant Field Values

SaveBot

public static final int SaveBot

See Also:

Constant Field Values

SendFriendRequestButto

public static final int SendFriendRequestButto

See Also:

Constant Field Values

SendRequest

public static final int SendRequest

See Also:

Constant Field Values

action0

public static final int action0

See Also:

Constant Field Values

action_bar

public static final int action_bar

See Also:

Constant Field Values

action_bar_activity_content

public static final int action_bar_activity_content

See Also:

Constant Field Values

action_bar_container

public static final int action_bar_container

See Also:

Constant Field Values

action_bar_root

public static final int action_bar_root

See Also:

Constant Field Values

action_bar_spinner

public static final int action_bar_spinner

See Also:

Constant Field Values

action_bar_subtitle

public static final int action_bar_subtitle

See Also:

Constant Field Values

action_bar_title

public static final int action_bar_title

See Also:

Constant Field Values

action_container

public static final int action_container

See Also:

Constant Field Values

action_context_bar

public static final int action_context_bar

See Also:

Constant Field Values

action_divider

public static final int action_divider

See Also:

Constant Field Values

action_filter

public static final int action_filter

See Also:

Constant Field Values

action_friend

public static final int action_friend

See Also:

Constant Field Values

action_image

public static final int action_image

See Also:

Constant Field Values

action_menu_divider

public static final int action_menu_divider

See Also:

Constant Field Values

action_menu_presenter

public static final int action_menu_presenter

See Also:

Constant Field Values

action_mode_bar

public static final int action_mode_bar

See Also:

Constant Field Values

action_mode_bar_stub

public static final int action_mode_bar_stub

See Also:

Constant Field Values

action_mode_close_button

public static final int action_mode_close_button

See Also:

Constant Field Values

action_mood

public static final int action_mood

See Also:

Constant Field Values

action_text

public static final int action_text

See Also:

Constant Field Values

actions

public static final int actions

See Also:

Constant Field Values

activity_chooser_view_content

public static final int activity_chooser_view_content

See Also:

Constant Field Values

activity_friends

public static final int activity_friends

See Also:

Constant Field Values

activity_main

public static final int activity_main

See Also:

Constant Field Values

activity_view_friend_requests

public static final int activity_view_friend_requests

See Also:

Constant Field Values

add

public static final int add

See Also:

Constant Field Values

addImage

public static final int addImage

See Also:

Constant Field Values

add_new_friend

public static final int add_new_friend

See Also:

Constant Field Values

adjust_height

public static final int adjust_height

See Also:

Constant Field Values

adjust_width

public static final int adjust_width

See Also:

Constant Field Values

alertTitle

public static final int alertTitle

See Also:

Constant Field Values

all

public static final int all

See Also:

Constant Field Values

always

public static final int always

See Also:

Constant Field Values

auto

public static final int auto

See Also:

Constant Field Values

basic

public static final int basic

See Also:

Constant Field Values

beginning

public static final int beginning

See Also:

Constant Field Values

bottom

public static final int bottom

See Also:

Constant Field Values

bubble_description

public static final int bubble_description

See Also:

Constant Field Values

bubble_image

public static final int bubble_image

See Also:

Constant Field Values

bubble_moreinfo

public static final int bubble_moreinfo

See Also:

Constant Field Values

bubble_subdescription

public static final int bubble_subdescription

See Also:

Constant Field Values

bubble_title

public static final int bubble_title

See Also:

Constant Field Values

buttonPanel

public static final int buttonPanel

See Also:

Constant Field Values

cancelButton

public static final int cancelButton

See Also:

Constant Field Values

cancel_action

public static final int cancel_action

See Also:

Constant Field Values

center

public static final int center

See Also:

Constant Field Values

center_horizontal

public static final int center_horizontal

See Also:

Constant Field Values

center_vertical

public static final int center_vertical

See Also:

Constant Field Values

chains

public static final int chains

See Also:

Constant Field Values

checkBox

public static final int checkBox

See Also:

Constant Field Values

checkbox

public static final int checkbox

See Also:

Constant Field Values

chronometer

public static final int chronometer

See Also:

Constant Field Values

clip_horizontal

public static final int clip_horizontal

See Also:

Constant Field Values

clip_vertical

public static final int clip_vertical

See Also:

Constant Field Values

collapseActionView

public static final int collapseActionView

See Also:

Constant Field Values

contentPanel

public static final int contentPanel

See Also:

Constant Field Values

custom

public static final int custom

See Also:

Constant Field Values

customPanel

public static final int customPanel

See Also:

Constant Field Values

dark

public static final int dark

See Also:

Constant Field Values

dateEditText

public static final int dateEditText

See Also:

Constant Field Values

dateLayout

public static final int dateLayout

See Also:

Constant Field Values

dateText

public static final int dateText

See Also:

Constant Field Values

decor_content_parent

public static final int decor_content_parent

See Also:

Constant Field Values

default_activity_button

public static final int default_activity_button

See Also:

Constant Field Values

design_bottom_sheet

public static final int design_bottom_sheet

See Also:

Constant Field Values

design_menu_item_action_area

public static final int design_menu_item_action_area

See Also:

Constant Field Values

design_menu_item_action_area_stub

public static final int design_menu_item_action_area_stub

See Also:

Constant Field Values

design_menu_item_text

public static final int design_menu_item_text

See Also:

Constant Field Values

design_navigation_view

public static final int design_navigation_view

See Also:

Constant Field Values

disableHome

public static final int disableHome

See Also:

Constant Field Values

drawer_layout

public static final int drawer_layout

See Also:

Constant Field Values

editMoodTitle

public static final int editMoodTitle

See Also:

Constant Field Values

edit_photo

public static final int edit_photo

See Also:

Constant Field Values

edit_query

public static final int edit_query

See Also:

Constant Field Values

emoticon

public static final int emoticon

See Also:

Constant Field Values

emotionFilter

public static final int emotionFilter

See Also:

Constant Field Values

emotionLayout

public static final int emotionLayout

See Also:

Constant Field Values

emotionSpinner

public static final int emotionSpinner

See Also:

Constant Field Values

end

public static final int end

See Also:

Constant Field Values

end_padder

public static final int end_padder

See Also:

Constant Field Values

enterAlways

public static final int enterAlways

See Also:

Constant Field Values

enterAlwaysCollapsed

public static final int enterAlwaysCollapsed

See Also:

Constant Field Values

exitUntilCollapsed

public static final int exitUntilCollapsed

See Also:

Constant Field Values

expand_activities_button

public static final int expand_activities_button

See Also:

Constant Field Values

expanded_menu

public static final int expanded_menu

See Also:

Constant Field Values

fill

public static final int fill

See Also:

Constant Field Values

fill_horizontal

public static final int fill_horizontal

See Also:

Constant Field Values

fill_vertical

public static final int fill_vertical

See Also:

Constant Field Values

filterButton

public static final int filterButton

See Also:

Constant Field Values

fixed

public static final int fixed

See Also:

Constant Field Values

following

public static final int following

See Also:

Constant Field Values

gender

public static final int gender

See Also:

Constant Field Values

home

public static final int home

See Also:

Constant Field Values

homeAsUp

public static final int homeAsUp

See Also:

Constant Field Values

hybrid

public static final int hybrid

See Also:

Constant Field Values

icon

public static final int icon

See Also:

Constant Field Values

icon_group

public static final int icon_group

See Also:

Constant Field Values

icon_only

public static final int icon_only

See Also:

Constant Field Values

ifRoom

public static final int ifRoom

See Also:

Constant Field Values

image

public static final int image

See Also:

Constant Field Values

imageView

public static final int imageView

See Also:

Constant Field Values

imageView2

public static final int imageView2

See Also:

Constant Field Values

info

public static final int info

See Also:

Constant Field Values

item_touch_helper_previous_elevation

public static final int item_touch_helper_previous_elevation

See Also:

Constant Field Values

ivCamera

public static final int ivCamera

See Also:

Constant Field Values

ivGallery

public static final int ivGallery

See Also:

Constant Field Values

largeLabel

public static final int largeLabel

See Also:

Constant Field Values

left

public static final int left

See Also:

Constant Field Values

light

public static final int light

See Also:

Constant Field Values

line1

public static final int line1

See Also:

Constant Field Values

line3

public static final int line3

See Also:

Constant Field Values

listContents

public static final int listContents

See Also:

Constant Field Values

listMode

public static final int listMode

See Also:

Constant Field Values

list_item

public static final int list_item

See Also:

Constant Field Values

location

public static final int location

See Also:

Constant Field Values

locationEditText

public static final int locationEditText

See Also:

Constant Field Values

locationText

public static final int locationText

See Also:

Constant Field Values

loginBot

public static final int loginBot

See Also:

Constant Field Values

login_screen

public static final int login_screen

See Also:

Constant Field Values

map

public static final int map

See Also:

Constant Field Values

masked

public static final int masked

See Also:

Constant Field Values

media_actions

public static final int media_actions

See Also:

Constant Field Values

middle

public static final int middle

See Also:

Constant Field Values

mini

public static final int mini

See Also:

Constant Field Values

moodImage

public static final int moodImage

See Also:

Constant Field Values

moodList

public static final int moodList

See Also:

Constant Field Values

moodReasonEdittext

public static final int moodReasonEdittext

See Also:

Constant Field Values

moodSaveButton

public static final int moodSaveButton

See Also:

Constant Field Values

moodSituationSpinner

public static final int moodSituationSpinner

See Also:

Constant Field Values

moodSpinner

public static final int moodSpinner

See Also:

Constant Field Values

multiply

public static final int multiply

See Also:

Constant Field Values

myMood

public static final int myMood

See Also:

Constant Field Values

navImage

public static final int navImage

See Also:

Constant Field Values

navText

public static final int navText

See Also:

Constant Field Values

nav_following

public static final int nav_following

See Also:

Constant Field Values

nav_logout

public static final int nav_logout

See Also:

Constant Field Values

nav_map

public static final int nav_map

See Also:

Constant Field Values

nav_moods

public static final int nav_moods

See Also:

Constant Field Values

nav_requests

public static final int nav_requests

See Also:

Constant Field Values

nav_view

public static final int nav_view

See Also:

Constant Field Values

navigation_header_container

public static final int navigation_header_container

See Also:

Constant Field Values

nearby

public static final int nearby

See Also:

Constant Field Values

never

public static final int never

See Also:

Constant Field Values

nickname

public static final int nickname

See Also:

Constant Field Values

none

public static final int none

See Also:

Constant Field Values

normal

public static final int normal

See Also:

Constant Field Values

notification_background

public static final int notification_background

See Also:

Constant Field Values

notification_main_column

public static final int notification_main_column

See Also:

Constant Field Values

notification_main_column_container

public static final int notification_main_column_container

See Also:

Constant Field Values

packed

public static final int packed

See Also:

Constant Field Values

parallax

public static final int parallax

See Also:

Constant Field Values

parent

public static final int parent

See Also:

Constant Field Values

parentPanel

public static final int parentPanel

See Also:

Constant Field Values

picture

public static final int picture

See Also:

Constant Field Values

pin

public static final int pin

See Also:

Constant Field Values

profileImage

public static final int profileImage

See Also:

Constant Field Values

progress_circular

public static final int progress_circular

See Also:

Constant Field Values

progress_horizontal

public static final int progress_horizontal

See Also:

Constant Field Values

publish

public static final int publish

See Also:

Constant Field Values

radio

public static final int radio

See Also:

Constant Field Values

radioGroup

public static final int radioGroup

See Also:

Constant Field Values

reason

public static final int reason

See Also:

Constant Field Values

reasonFilter

public static final int reasonFilter

See Also:

Constant Field Values

reasonLayout

public static final int reasonLayout

See Also:

Constant Field Values

reasonText

public static final int reasonText

See Also:

Constant Field Values

region

public static final int region

See Also:

Constant Field Values

right

public static final int right

See Also:

Constant Field Values

right_icon

public static final int right_icon

See Also:

Constant Field Values

right_side

public static final int right_side

See Also:

Constant Field Values

satellite

public static final int satellite

See Also:

Constant Field Values

saveProfile

public static final int saveProfile

See Also:

Constant Field Values

screen

public static final int screen

See Also:

Constant Field Values

scroll

public static final int scroll

See Also:

Constant Field Values

scrollIndicatorDown

public static final int scrollIndicatorDown

See Also:

Constant Field Values

scrollIndicatorUp

public static final int scrollIndicatorUp

See Also:

Constant Field Values

scrollView

public static final int scrollView

See Also:

Constant Field Values

scrollable

public static final int scrollable

See Also:

Constant Field Values

search_badge

public static final int search_badge

See Also:

Constant Field Values

search_bar

public static final int search_bar

See Also:

Constant Field Values

search_button

public static final int search_button

See Also:

Constant Field Values

search_close_btn

public static final int search_close_btn

See Also:

Constant Field Values

search_edit_frame

public static final int search_edit_frame

See Also:

Constant Field Values

search_go_btn

public static final int search_go_btn

See Also:

Constant Field Values

search_mag_icon

public static final int search_mag_icon

See Also:

Constant Field Values

search_plate

public static final int search_plate

See Also:

Constant Field Values

search_src_text

public static final int search_src_text

See Also:

Constant Field Values

search_voice_btn

public static final int search_voice_btn

See Also:

Constant Field Values

select_dialog_listview

public static final int select_dialog_listview

See Also:

Constant Field Values

shortcut

public static final int shortcut

See Also:

Constant Field Values

showCustom

public static final int showCustom

See Also:

Constant Field Values

showHome

public static final int showHome

See Also:

Constant Field Values

showTitle

public static final int showTitle

See Also:

Constant Field Values

sitSpinner

public static final int sitSpinner

See Also:

Constant Field Values

smallLabel

public static final int smallLabel

See Also:

Constant Field Values

snackbar_action

public static final int snackbar_action

See Also:

Constant Field Values

snackbar_text

public static final int snackbar_text

See Also:

Constant Field Values

snap

public static final int snap

See Also:

Constant Field Values

spacer

public static final int spacer

See Also:

Constant Field Values

split_action_bar

public static final int split_action_bar

See Also:

Constant Field Values

spread

public static final int spread

See Also:

Constant Field Values

spread_inside

public static final int spread_inside

See Also:

Constant Field Values

src_atop

public static final int src_atop

See Also:

Constant Field Values

src_in

public static final int src_in

See Also:

Constant Field Values

src_over

public static final int src_over

See Also:

Constant Field Values

ssSpinner

public static final int ssSpinner

See Also:

Constant Field Values

standard

public static final int standard

See Also:

Constant Field Values

start

public static final int start

See Also:

Constant Field Values

status_bar_latest_event_content

public static final int status_bar_latest_event_content

See Also:

Constant Field Values

submenuarrow

public static final int submenuarrow

See Also:

Constant Field Values

submit_area

public static final int submit_area

See Also:

Constant Field Values

tabMode

public static final int tabMode

See Also:

Constant Field Values

terrain

public static final int terrain

See Also:

Constant Field Values

test

public static final int test

See Also:

Constant Field Values

text

public static final int text

See Also:

Constant Field Values

text2

public static final int text2

See Also:

Constant Field Values

textSpacerNoButtons

public static final int textSpacerNoButtons

See Also:

Constant Field Values

textSpacerNoTitle

public static final int textSpacerNoTitle

See Also:

Constant Field Values

textView

public static final int textView

See Also:

Constant Field Values

textView11

public static final int textView11

See Also:

Constant Field Values

textView18

public static final int textView18

See Also:

Constant Field Values

textView20

public static final int textView20

See Also:

Constant Field Values

textView3

public static final int textView3

See Also:

Constant Field Values

textView5

public static final int textView5

See Also:

Constant Field Values

textView6

public static final int textView6

See Also:

Constant Field Values

textView7

public static final int textView7

See Also:

Constant Field Values

textView8

public static final int textView8

See Also:

Constant Field Values

text_input_password_toggle

public static final int text_input_password_toggle

See Also:

Constant Field Values

textinput_counter

public static final int textinput_counter

See Also:

Constant Field Values

textinput_error

public static final int textinput_error

See Also:

Constant Field Values

time

public static final int time

See Also:

Constant Field Values

title

public static final int title

See Also:

Constant Field Values

titleDividerNoCustom

public static final int titleDividerNoCustom

See Also:

Constant Field Values

title_template

public static final int title_template

See Also:

Constant Field Values

toolbar

public static final int toolbar

See Also:

Constant Field Values

top

public static final int top

See Also:

Constant Field Values

topPanel

public static final int topPanel

See Also:

Constant Field Values

touch_outside

public static final int touch_outside

See Also:

Constant Field Values

transition_current_scene

public static final int transition_current_scene

See Also:

Constant Field Values

transition_scene_layoutid_cache

public static final int transition_scene_layoutid_cache

See Also:

Constant Field Values

up

public static final int up

See Also:

Constant Field Values

useLogo

public static final int useLogo

See Also:

Constant Field Values

userView

public static final int userView

See Also:

Constant Field Values

user_profile

public static final int user_profile

See Also:

Constant Field Values

username

public static final int username

See Also:

Constant Field Values

usernameSearch

public static final int usernameSearch

See Also:

Constant Field Values

view_offset_helper

public static final int view_offset_helper

See Also:

Constant Field Values

visible

public static final int visible

See Also:

Constant Field Values

weekBox

public static final int weekBox

See Also:

Constant Field Values

weekFilter

public static final int weekFilter

See Also:

Constant Field Values

welcomeText

public static final int welcomeText

See Also:

Constant Field Values

wide

public static final int wide

See Also:

Constant Field Values

withText

public static final int withText

See Also:

Constant Field Values

wrap

public static final int wrap

See Also:

Constant Field Values

wrap_content

public static final int wrap_content

See Also:

Constant Field Values

Constructor Detail

id

public id()

Skip navigation links

Overview

Package

Class

Tree

Deprecated

Index

Help

Prev Class

Next Class

Frames

No Frames

All Classes

Summary:

Nested |

Field |

Constr |

Method

Detail:

Field |

Constr |

Method


text:
define({
  "_widgetLabel": "Llegenda"
});


text:
namespace TeraPacketParser.Messages
{
    public enum UserStatus
    {
        Normal = 0,
        InCombat = 1,
        Campfire = 2,
        OnPegasus = 3
    }
    public class S_PLAYER_STAT_UPDATE : ParsedMessage
    {
        public long CurrentHP { get; }
        public int CurrentMP { get; }
        public int CurrentST { get; }
        public long MaxHP { get; }
        public int MaxMP { get; }
        public int BonusHP { get; }
        public int BonusMP { get; }
        public int MaxST { get; }
        public int BonusST { get; }
        public int Level { get; }
        public float Ilvl { get; }
        public int Edge { get; }
        public float TotalCritFactor { get; }
        public UserStatus Status { get; set; }
        public int TotalMagicalResistance { get; set; }
        public bool Fire { get; set; }
        public bool Ice { get; set; }
        public bool Arcane { get; set; }
        public uint MaxCoins { get; set; }
        public uint Coins { get; set; }

        public S_PLAYER_STAT_UPDATE(TeraMessageReader reader) : base(reader)
        {
            CurrentHP = reader.ReadInt64();
            CurrentMP = reader.ReadInt32();
            reader.Skip(8); // drain
            MaxHP = reader.ReadInt64();
            MaxMP = reader.ReadInt32();

            reader.Skip(4); // power
            reader.Skip(4); // endurance

            var baseCrit = reader.ReadSingle();

            reader.Skip(4); // critRes
            reader.Skip(4); // critPower
            reader.Skip(4); // critPowerPhy
            reader.Skip(4); // critPowerMag

            reader.Skip(2); // atkSpd
            reader.Skip(2); // runSpd
            reader.Skip(2); // wlkSpd

            reader.Skip(4); // impactFac
            reader.Skip(4); // balanceFac
            reader.Skip(4); // atkMin
            reader.Skip(4); // atkMax
            reader.Skip(4); // atkPhyMin
            reader.Skip(4); // atkPhyMax
            reader.Skip(4); // atkMagMin
            reader.Skip(4); // atkMagMax

            reader.Skip(4); // def
            reader.Skip(4); // defPhy
            var defMag = reader.ReadInt32();

            if (reader.Factory.ReleaseVersion / 100 >= 93)
            {
                reader.Skip(4); // defenseReductionPhysical
                reader.Skip(4); // defenseReductionMagical

                reader.Skip(4); // piercingPhysical
                reader.Skip(4); // piercingMagical

                reader.Skip(4); // healValue
            }
            else
            {
                reader.Skip(4); // impact
                reader.Skip(4); // balance
            }

            reader.Skip(4); // resWeak
            reader.Skip(4); // resPeriodic
            reader.Skip(4); // resStun

            reader.Skip(4); // powerBonus
            reader.Skip(4); // enduranceBonus
            reader.Skip(4); // impactFacBonus
            reader.Skip(4); // balanceFacBonus

            reader.Skip(2); // runSpdBonus
            reader.Skip(2); // wlkSpdBonus
            reader.Skip(2); // atkSpdBonus

            var critRateBonus = reader.ReadSingle();
            TotalCritFactor = critRateBonus + baseCrit;

            reader.Skip(4); // critResBonus
            reader.Skip(4); // critPowBonus
            reader.Skip(4); // critPowPhyBonus
            reader.Skip(4); // critPowMagBonus

            reader.Skip(4); // atkMinBonus
            reader.Skip(4); // atkMaxBonus
            reader.Skip(4); // defBonus

            reader.Skip(4); // atkPhyMinBonus
            reader.Skip(4); // atkPhyMaxBonus
            reader.Skip(4); // defPhyBonus

            reader.Skip(4); // atkMagMinBonus
            reader.Skip(4); // atkMagMaxBonus
            var defMagBonus = reader.ReadInt32();
            TotalMagicalResistance = defMag + defMagBonus;

            if (reader.Factory.ReleaseVersion / 100 >= 93)
            {
                reader.Skip(4); // defenseReductionPhysicalBonus
                reader.Skip(4); // defenseReductionMagicalBonus
                reader.Skip(4); // piercingPhysicalBonus
                reader.Skip(4); // piercingMagicalBonus
            }
            else
            {
                reader.Skip(4); // impactBonus
                reader.Skip(4); // balanceBonus
            }

            reader.Skip(4); // resWeakBonus
            reader.Skip(4); // resPeriodicBonus
            reader.Skip(4); // resStunBonus

            Level = reader.ReadInt16();
            Status = (UserStatus)reader.ReadInt16();

            reader.Skip(2); // conditionLevel
            reader.Skip(1); // alive

            BonusHP = reader.ReadInt32();
            BonusMP = reader.ReadInt32();

            reader.Skip(4); // condition
            reader.Skip(4); // conditionMax

            CurrentST = reader.ReadInt32();
            MaxST = reader.ReadInt32();
            BonusST = reader.ReadInt32();

            reader.Skip(4); // infamy

            reader.Skip(4); // ilvlInventory
            Ilvl = reader.ReadSingle();

            Edge = reader.ReadInt32();
            reader.Skip(4); // edgePerc
            reader.Skip(4); // edgeTimeRemaining
            reader.Skip(4); // edgeMin

            reader.Skip(4); // trueLevel

            reader.Skip(4); // flightEnergy
            reader.Skip(4); // flightId
            reader.Skip(4); // flightSpeedMul

            Fire = reader.ReadUInt32() == 4;
            Ice = reader.ReadUInt32() == 4;
            Arcane = reader.ReadUInt32() == 4;

            Coins = reader.ReadUInt32();
            MaxCoins = reader.ReadUInt32();
        }

    }
}


text:
<?php

namespace Wei;

/**
 * Check if the input contains only Chinese characters
 *
 * @author      Twin Huang <twinhuang@qq.com>
 */
class IsChinese extends IsRegex
{
    protected $patternMessage = '%name% must contain only Chinese characters';

    protected $negativeMessage = '%name% must not contain only Chinese characters';

    protected $pattern = '/^[\x{4e00}-\x{9fa5}]+$/u';
}


text:
package com.sequenceiq.cloudbreak.service.cluster;

import com.sequenceiq.cloudbreak.service.CloudbreakServiceException;

public class AmbariOperationFailedException extends CloudbreakServiceException {

    public AmbariOperationFailedException(String message) {
        super(message);
    }

    public AmbariOperationFailedException(String message, Throwable cause) {
        super(message, cause);
    }

}


text:
/*PLEASE DO NOT EDIT THIS CODE*/
/*This code was generated using the UMPLE 1.21.0.4666 modeling language!*/

import java.util.*;

// line 26 "PoliticalEntities.ump"
// line 41 "PoliticalEntities.ump"
public class StateOrProvince extends Territory
{

  //------------------------
  // MEMBER VARIABLES
  //------------------------

  //StateOrProvince Associations
  private Country country;

  //------------------------
  // CONSTRUCTOR
  //------------------------

  public StateOrProvince(String aName, Country aCountry)
  {
    super(aName);
    boolean didAddCountry = setCountry(aCountry);
    if (!didAddCountry)
    {
      throw new RuntimeException("Unable to create stateOrProvince due to country");
    }
  }

  //------------------------
  // INTERFACE
  //------------------------

  public Country getCountry()
  {
    return country;
  }

  public boolean setCountry(Country aCountry)
  {
    boolean wasSet = false;
    if (aCountry == null)
    {
      return wasSet;
    }

    Country existingCountry = country;
    country = aCountry;
    if (existingCountry != null && !existingCountry.equals(aCountry))
    {
      existingCountry.removeStateOrProvince(this);
    }
    country.addStateOrProvince(this);
    wasSet = true;
    return wasSet;
  }

  public void delete()
  {
    Country placeholderCountry = country;
    this.country = null;
    placeholderCountry.removeStateOrProvince(this);
    super.delete();
  }

}


text:
   Copyright © Dmitry Shechtman 2015

   Licensed under the Apache License, Version 2.0 (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.


text:
package com.siyeh.ig.bugs;

import com.intellij.psi.*;
import com.intellij.psi.util.PsiTreeUtil;
import com.siyeh.HardcodedMethodConstants;
import org.jetbrains.annotations.NotNull;

class ParameterClassCheckVisitor extends JavaRecursiveElementWalkingVisitor {

  private final PsiParameter parameter;

  private boolean checked;

  ParameterClassCheckVisitor(@NotNull PsiParameter parameter) {
    this.parameter = parameter;
  }

  @Override
  public void visitElement(@NotNull PsiElement element) {
    if (!checked) {
      super.visitElement(element);
    }
  }

  @Override
  public void visitMethodCallExpression(
    @NotNull PsiMethodCallExpression expression) {
    if (checked) {
      return;
    }
    super.visitMethodCallExpression(expression);
    if (isGetClassCall(expression) || isGetInstanceCall(expression) || isCallToSuperEquals(expression)) {
      checked = true;
    }
  }

  private boolean isGetInstanceCall(PsiMethodCallExpression methodCallExpression) {
    final PsiReferenceExpression methodExpression = methodCallExpression.getMethodExpression();
    final String methodName = methodExpression.getReferenceName();
    if (!HardcodedMethodConstants.IS_INSTANCE.equals(methodName)) {
      return false;
    }
    final PsiMethod method = methodCallExpression.resolveMethod();
    if (method == null) {
      return false;
    }
    final PsiClass aClass = method.getContainingClass();
    if (aClass == null) {
      return false;
    }
    final String className = aClass.getQualifiedName();
    if (!CommonClassNames.JAVA_LANG_CLASS.equals(className)) {
      return false;
    }
    final PsiExpressionList argumentList = methodCallExpression.getArgumentList();
    final PsiExpression[] expressions = argumentList.getExpressions();
    if (expressions.length != 1) {
      return false;
    }
    final PsiExpression expression = expressions[0];
    return isParameterReference(expression);
  }

  private boolean isGetClassCall(PsiMethodCallExpression methodCallExpression) {
    final PsiReferenceExpression methodExpression = methodCallExpression.getMethodExpression();
    final String methodName = methodExpression.getReferenceName();
    if (!HardcodedMethodConstants.GET_CLASS.equals(methodName)) {
      return false;
    }
    final PsiExpressionList argumentList = methodCallExpression.getArgumentList();
    final PsiExpression[] arguments = argumentList.getExpressions();
    if (arguments.length != 0) {
      return false;
    }
    final PsiMethod method = methodCallExpression.resolveMethod();
    if (method == null) {
      return false;
    }
    final PsiClass aClass = method.getContainingClass();
    if (aClass == null) {
      return false;
    }
    final String className = aClass.getQualifiedName();
    if (!CommonClassNames.JAVA_LANG_OBJECT.equals(className)) {
      return false;
    }
    final PsiExpression qualifier = methodExpression.getQualifierExpression();
    return isParameterReference(qualifier);
  }

  private boolean isCallToSuperEquals(PsiMethodCallExpression methodCallExpression) {
    final PsiReferenceExpression methodExpression = methodCallExpression.getMethodExpression();
    final PsiExpression qualifierExpression = methodExpression.getQualifierExpression();
    if (!(qualifierExpression instanceof PsiSuperExpression)) {
      return false;
    }
    final String name = methodExpression.getReferenceName();
    if (!HardcodedMethodConstants.EQUALS.equals(name)) {
      return false;
    }
    final PsiExpressionList argumentList = methodCallExpression.getArgumentList();
    final PsiExpression[] arguments = argumentList.getExpressions();
    if (arguments.length != 1) {
      return false;
    }
    final PsiExpression argument = arguments[0];
    if (!(argument instanceof PsiReferenceExpression)) {
      return false;
    }
    final PsiReferenceExpression referenceExpression = (PsiReferenceExpression)argument;
    final PsiElement target = referenceExpression.resolve();
    return parameter.equals(target);
  }

  @Override
  public void visitInstanceOfExpression(@NotNull PsiInstanceOfExpression expression) {
    if (checked) {
      return;
    }
    super.visitInstanceOfExpression(expression);
    final PsiExpression operand = expression.getOperand();
    if (isParameterReference(operand)) {
      checked = true;
    }
  }

  @Override
  public void visitTypeCastExpression(
    PsiTypeCastExpression expression) {
    if (checked) {
      return;
    }
    super.visitTypeCastExpression(expression);
    final PsiExpression operand = expression.getOperand();
    if (!isParameterReference(operand)) {
      return;
    }
    final PsiTryStatement statement = PsiTreeUtil.getParentOfType(expression, PsiTryStatement.class);
    if (statement == null) {
      return;
    }
    final PsiParameter[] parameters = statement.getCatchBlockParameters();
    if (parameters.length < 2) {
      return;
    }
    boolean nullPointerExceptionFound = false;
    boolean classCastExceptionFound = false;
    for (PsiParameter parameter : parameters) {
      final PsiType type = parameter.getType();
      if (type.equalsToText("java.lang.NullPointerException")) {
        nullPointerExceptionFound = true;
        if (classCastExceptionFound) {
          break;
        }
      }
      else if (type.equalsToText("java.lang.ClassCastException")) {
        classCastExceptionFound = true;
        if (nullPointerExceptionFound) {
          break;
        }
      }
    }
    if (classCastExceptionFound && nullPointerExceptionFound) {
      checked = true;
    }
  }

  private boolean isParameterReference(PsiExpression operand) {
    if (operand == null) {
      return false;
    }
    if (!(operand instanceof PsiReferenceExpression)) {
      return false;
    }
    final PsiReferenceExpression expression = (PsiReferenceExpression)operand;
    final PsiElement referent = expression.resolve();
    return referent != null && referent.equals(parameter);
  }

  public boolean isChecked() {
    return checked;
  }
}


text:
module DiscountOperations
  class Read < SkinnyControllers::Operation::Base
    def run
      model
    end
  end

  class RefundPayment < SkinnyControllers::Operation::Base
    def run
      model
    end
  end
end


text:
/**
 * Ukrainian translation for bootstrap-markdown
 * by Oleg Vivtash <o@vivtash.net>
 */
;(function($){
  $.fn.markdown.messages['ua'] = {
    'Bold': "Жирний",
    'Italic': "Курсів",
    'Heading': "Заголовок",
    'URL/Link': "Вставте посилання",
    'Image': "Зображення",
    'List': "Список",
    'Preview': "Попередній перегляд",
    'strong text': "виділений текст",
    'emphasized text': "нахилений текст",
    'heading text': "текст заголовку",
    'enter link description here': "введіть опис посилання",
    'Insert Hyperlink': "Введіть гіперпосилання",
    'enter image description here': "Введіть опис зображення",
    'Insert Image Hyperlink': "Вставте посилання на зображення",
    'enter image title here': "Введіть назву зображення",
    'list text here': "текст списку"
  };
}(jQuery))


text:
from __future__ import unicode_literals

from django.db import migrations, models

class Migration(migrations.Migration):

    dependencies = [
        ('mediaviewer', '0019_usersettings_binge_mode'),
    ]

    operations = [
        migrations.AlterField(
            model_name='file',
            name='size',
            field=models.BigIntegerField(blank=True, null=True),
        ),
    ]


text:
package com.microsoft.azure.management.datalake.analytics.models;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * Defines values for SeverityTypes.
 */
public enum SeverityTypes {
    /** Enum value Warning. */
    WARNING("Warning"),

    /** Enum value Error. */
    ERROR("Error"),

    /** Enum value Info. */
    INFO("Info"),

    /** Enum value SevereWarning. */
    SEVERE_WARNING("SevereWarning"),

    /** Enum value Deprecated. */
    DEPRECATED("Deprecated"),

    /** Enum value UserWarning. */
    USER_WARNING("UserWarning");

    /** The actual serialized value for a SeverityTypes instance. */
    private String value;

    SeverityTypes(String value) {
        this.value = value;
    }

    /**
     * Parses a serialized value to a SeverityTypes instance.
     *
     * @param value the serialized value to parse.
     * @return the parsed SeverityTypes object, or null if unable to parse.
     */
    @JsonCreator
    public static SeverityTypes fromString(String value) {
        SeverityTypes[] items = SeverityTypes.values();
        for (SeverityTypes item : items) {
            if (item.toString().equalsIgnoreCase(value)) {
                return item;
            }
        }
        return null;
    }

    @JsonValue
    @Override
    public String toString() {
        return this.value;
    }
}


text:
namespace ccb { namespace csv
{
    class CsvRowWriter
    {
    private:

        std::vector<std::string>& values;

    private:

        CsvRowWriter(std::vector<std::string>& values)
            : values(values)
        {
        }

    public:

        CsvRowWriter(const CsvRowWriter& other)
            : values(other.values)
        {
        }

        CsvRowWriter(CsvRowWriter&& other)
            : values(other.values)
        {
        }

        CsvRowWriter& operator = (const CsvRowWriter& other)
        {
            this->values = other.values;
            return *this;
        }

        CsvRowWriter& operator = (CsvRowWriter&& other)
        {
            this->values = other.values;
            return *this;
        }

    public:

        template<typename T>
        CsvRowWriter& operator << (const T& value)
        {
            std::ostringstream stream;
            stream << value;

            this->values.push_back(stream.str());

            return *this;
        }

    friend class CsvFile;
    };
} }


text:
package org.chromium;

import com.google.android.gms.gcm.GoogleCloudMessaging;

import android.app.IntentService;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import org.json.JSONObject;

public class GcmIntentService extends IntentService {
    String LOG_TAG ="GcmIntentService";
    public GcmIntentService() {
        super("GcmIntentService");
    }

    @Override
    protected void onHandleIntent(Intent intent) {
        JSONObject payload = new JSONObject();
        try {
            for (String key : intent.getExtras().keySet()) {
            	if(!(
                  key.startsWith("google") ||
                  key.equals("android.support.content.wakelockid") ||
                  key.equals("collapse_key") ||
                  key.equals("from"))){
                     payload.put(key, intent.getStringExtra(key));
                }
            }
        } catch (Exception e) {
            Log.e(LOG_TAG, "Error parsing GCM payload: " + e);
            return;
        }
        String payloadString = payload.toString();

        GoogleCloudMessaging gcm = GoogleCloudMessaging.getInstance(this);
        String messageType = gcm.getMessageType(intent);

        ChromeGcm.startApp(this);
        if (GoogleCloudMessaging.MESSAGE_TYPE_SEND_ERROR.equals(messageType)) {
            ChromeGcm.handleSendError( payloadString);
        } else if (GoogleCloudMessaging.MESSAGE_TYPE_DELETED.equals(messageType)) {
            ChromeGcm.handleDeletedMessages( payloadString);
        } else if (GoogleCloudMessaging.MESSAGE_TYPE_MESSAGE.equals(messageType)) {
            ChromeGcm.handleRxMessage( payloadString);
        } else {
//        	Log.w(LOG_TAG, "got msgtype: "+messageType);
        }
        GcmReceiver.completeWakefulIntent(intent);
    }
}