text:
define({
  "builder": {
    "layouts": {
      "mainStage": "Centralni deo",
      "sideTitle": "Bočni panel",
      "sideDescr": "Raspored za priču bogatu tekstom koja se odlikuje kombinovanjem vaših fotografija, video zapisa i mapa u poruku sa jasnim fokusom.",
      "floatTitle": "Plutajući panel",
      "floatDescr": "Raspored koji ima fokus na kartografiji dok providan tekst kratke forme potpomaže pričanje priče."
    },
    "common": {
      "lblStatus1": "Objavljeno",
      "lblStatus2": "Nacrt",
      "lblStatus3": "Sakriveno"
    },
    "settingsLayoutOptions": {
      "title": "Opcije rasporeda",
      "cfgLeft": "Levo",
      "cfgRight": "Desno",
      "cfgSmall": "Malo",
      "cfgMedium": "Srednje",
      "cfgLarge": "Veliko",
      "socialLinksLabel": "Prikažite veze za deljenje na dnu svakog odeljka",
      "socialLinksDescr": "Ovo omogućava čitaocima da povežu i promovišu određene odeljke %TPL_NAME%. Na primer, ako koristite ikonicu deljenja odeljaka, čitaoci će se naći na tom posebnom %TPL_NAME% odeljku umesto na početku priče. Čitaoci mogu da koriste vezu društvenih medija u odeljku naslova da promovišu celu %TPL_NAME% (karticu zaglavlja) i da se nađu na početku %TPL_NAME%.",
      "socialDisabled": "Ova funkcionalnost je dostupna samo uz raspored plutajućeg panela",
      "socialWarning": "Vaša priča koristi raspored bočnog panela, ali mi sada preporučujemo korišćenje ove opcije samo sa rasporedom plutajućeg panela, kako bi se izbegao problem gde panel ne može da se postavi na željeni odeljak kod narativa sa slikama. Možete da nastavite sa korišćenjem ove opcije, ali ako je onemogućite, tada će biti dostupna samo pri korišćenju rasporeda plutajućeg panela."
    },
    "settingsLayoutFonts": {
      "title": "Fontovi",
      "defaultLbl": "Podrazumevano",
      "sectionTitleLbl": "Naslov odeljka",
      "sectionContentLbl": "Sadržaj odeljka"
    },
    "settingsThemeOptions": {
      "lblOrgTheme": "Tema organizacije",
      "lblModTheme": "Trenutna tema"
    },
    "initPopup": {
      "title": "Dobrodošli na"
    },
    "addEditPopup": {
      "disabled": "Dodavanje odeljka je onemogućeno jer je maksimalan broj dozvoljenih odeljaka dostignut.",
      "titleAdd": "Dodaj odeljak",
      "titleAddHome": "Dodaj matični odeljak",
      "titleEdit": "Uredi odeljak",
      "step": "Korak",
      "stepMainStageExplain": "Sadržaj centralnog dela",
      "stepPanelExplain": "Sadržaj",
      "stepMainStageNextTooltip": "Unesite naslov odeljka i izaberite sadržaj centralnog dela",
      "stepMainStageNextTooltip2": "Izaberite sadržaj centralnog dela",
      "step2NextTooltip": "Unesite naslov odeljka i %LAYOUT-TYPE% sadržaj",
      "stepNextTooltipNext": "da odete na sledeći korak",
      "stepNextTooltipAdd": "da dodate odeljak",
      "firstAddExplain": "Ovaj prvi odeljak je vaš matični odeljak, tako da možete da ga smatrate "naslovnom stranom" vaše priče. Naslov koji ste upravo definisali će biti ispisan velikim slovima.",
      "firstAddLeanMore": "Saznaj više",
      "titlePlaceholder": "Odeljak naslova..."
    },
    "addEditViewText": {
      "editorPlaceholder": "Dodajte tekst, linkove i male grafičke prikaze ovde.",
      "editorActionsTitle": "Radnje priče",
      "editorActionsHelpDescr": "Kreirajte linkove u narativu koji vam pomažu da ispričate priču. Radnja priče može da upućuje na drugi odeljak ili da promeni centralni deo. Na primer, možete da konfigurišete radnju za premeštanje mape na drugu lokaciju, uključivanje/isključivanje slojeva mape ili promenu medija za centralni deo na drugu sliku, video, mapu ili veb stranicu.",
      "mainStageDisabled": "Radnje priče su onemogućene kada je uređivač maksimalno uveličan"
    },
    "organizePopup": {
      "title": "Organizujte",
      "lblHeader": "odeljke "prevuci i otpusti" da organizujete priču.",
      "lblColTitle": "Naslov",
      "lblColPubDate": "Datum objave",
      "lblColStatus": "Status",
      "checkDisplayReverse": "Prikaži odeljke obrnutim redosledom",
      "btnApplyWarning": "Potvrdi brisanje %NB% odeljka/odeljaka",
      "deleteTooltip": "Obriši",
      "firstSectionExplain": "(matični odeljak ne može da bude pomeren)",
      "exportMainStage": "Sadržaj centralnog dela",
      "exportPanel": "Sadržaj panela",
      "exportActions": "Radnje priče"
    },
    "exportData": {
      "btn": "Izvezi sadržaj",
      "tooltip": "Izvoz sadržaja omogućava da vidite i kreirate rezervnu kopiju sadržaja ako ga slučajno obrišete. Jednostavno kopirajte i nalepite sadržaj sa stranice u program za obradu teksta."
    },
    "help": {
      "lblHelp": "Pomoć",
      "lblAdd": "Dodaj odeljak",
      "lblSettings": "Postavke",
      "lblOrga": "Organizuj sadržaj",
      "lblEdit": "Izmene",
      "lblPublish": "Podeli",
      "lblTips": "Saveti",
      "lblMore": "Želite više?",
      "lblLink": "Posetite veb stranicu Esri Story Maps.",
      "content1Div1": "Možete da integrišete raznovrsne stilove kada izrađujete priču. %LAYOUT_TITLE% obično drži tekst, snimke i video zapise dok se mapa fokusira na centralni deo. Međutim,%TPL_NAME% omogućava da istaknete snimke, dijagrame i video zapise unutar centralnog dela.",
      "content1Div2": "Dodavanje odeljaka vam omogućava da prilagodite iskustvo pričanja priče. Dok se čitaoci pomeraju kroz tekst %LAYOUT_TITLE%, mapa na centralnom delu može da se pomera, da uveliča ključne tačke, ili nova mapa i snimci mogu automatski da se preklope da podrže poruku.",
      "content2Div1": "U dijalogu postavki možete da promenite izgled %TPL_NAME%. Možete da promenite raspored, odaberete drugu šemu boje, da promenite font teksta, itd.",
      "content2Div2": "Takođe, možete da zamenite Esri logotip sopstvenim logotipom, da biste predstavili vaš brend. Takođe možete da navedete veb stranicu koja će da bude pokrenuta ako čitaoci kliknu na logotip, tako da mogu da dobiju više informacija.",
      "content3Div1": "Sadržaj je organizovan po odeljcima. Možete da imate koliko god želite odeljaka (posmatrajte ih kao poglavlja). Redosled tih poglavlja je važan, unutar opcije "Organizuj" možete da preuredite ili obrišete odeljke kako želite.",
      "content4Div1": "Pronašli ste grešku ili želite da promenite materijal? Bez brige. Potražite ikonicu uređivanja u aplikaciji da biste napravili izmene u sadržaju. Funkciju uređivanja ćete koristiti mnogo puta dok razvijate %TPL_NAME%!",
      "content5Div1": "Kada sačuvate %TPL_NAME% u početku je privatnog karaktera. Koristite dugme "Podeli" da podelite da drugima. Možete da podelite %TPL_NAME% javno tako da svako može da pristupi.",
      "content5Div2": "U zavisnosti od naloga, možete takođe da imate opciju da podelite %TPL_NAME% samo sa ljudima unutar organizacije, tako da drugi nemaju pristup.",
      "content6Div1": "Naslov matičnog odeljka je naslov dnevnika; posmatrajte matični odeljak kao "naslovnu stranu" priče. Naslov matičnog odeljka ostaje vidljiv kada se čitaoci kreću kroz dnevnik.",
      "content6Div2": "%LAYOUT_TITLE% ne mora da bude samo tekst, razmotrite da uključite fotografije i video zapise kako biste pomogli da priča "oživi" i da biste "razbili" duge odeljke teksta."
    },
    "landing": {
      "lblAdd": "Kako želite da nazovete dnevnik mape?",
      "phAdd": "Unesite naslov...",
      "lblOR": "ili",
      "lblHelp": "Krenite na turu"
    },
    "firstAddSplash": {
      "thisis": "Ovo je",
      "lblMain": "Ovo je %BR% centralni odeljak"
    }
  }
});


text:
package com.example.uilistviewtest;

import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.widget.ImageView;

public class MyImageView extends ImageView {

	public MyImageView(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	@Override
	protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
		super.onLayout(changed, left, top, right, bottom);
		Log.d("TAG", "image view onlayout");
	}

}

redpajama_set_name: RedPajamaGithub


text:
package farmsim.particle;

import javafx.scene.image.Image;

import org.junit.Assert;
import org.junit.Test;

import javafx.scene.image.Image;

/**
 * Particle Element Tests.
 */
public class ParticleElementTest {

    /**
     * Can we move the particle.
     */
    @Test
    public void testMove() {
        ParticleElement particle = new ParticleElement(
                new ParticleVector(),
                new ParticleVector(1, 1),
                20,
                20,
                null);

        particle.move();
        Assert.assertEquals(new ParticleVector(1, 1), particle.getLocation());
        particle.move();
        Assert.assertEquals(new ParticleVector(2, 2), particle.getLocation());
    }

    /**
     * Can we get the texture of the particle.
     */
    @Test
    public void testGetTexture() {
        ParticleElement particle = new ParticleElement(
                new ParticleVector(),
                new ParticleVector(1, 1),
                20,
                20,
                null);
        Assert.assertNull(particle.getTexture());

        Image nyanDuck = new Image("/nyanDuck.png");
        particle = new ParticleElement(
                new ParticleVector(),
                new ParticleVector(1, 1),
                20,
                20,
                nyanDuck);
        Assert.assertEquals(nyanDuck, particle.getTexture());
    }

    /**
     * Can the particle figure out when its out of bounds.
     */
    @Test
    public void testIsDeadBounds() {
        ParticleElement particle = new ParticleElement(
                new ParticleVector(10, 10),
                new ParticleVector(1, 1),
                20,
                20,
                null);
        Assert.assertTrue(particle.isDead(1, 1));
        Assert.assertTrue(!particle.isDead(20, 20));

        particle = new ParticleElement(
                new ParticleVector(-10, 1),
                new ParticleVector(1, 1),
                20,
                20,
                null);
        Assert.assertTrue(particle.isDead(1, 1));

        particle = new ParticleElement(
                new ParticleVector(1, -1),
                new ParticleVector(1, 1),
                20,
                20,
                null);
        Assert.assertTrue(particle.isDead(1, 1));

        particle = new ParticleElement(
                new ParticleVector(2, 1),
                new ParticleVector(1, 1),
                20,
                20,
                null);
        Assert.assertTrue(particle.isDead(1, 1));

        particle = new ParticleElement(
                new ParticleVector(1, 2),
                new ParticleVector(1, 1),
                20,
                20,
                null);
        Assert.assertTrue(particle.isDead(1, 1));
    }

    /**
     * Can particle figure out when its too old.
     */
    @Test
    public void testIsDeadAge() {
        ParticleElement particle = new ParticleElement(
                new ParticleVector(),
                new ParticleVector(),
                0,
                0,
                null);
        particle.age();
        particle.age();
        particle.age();
        Assert.assertTrue(particle.isDead(2));
        Assert.assertTrue(!particle.isDead(20));
    }

    /**
     * Particle elements should not be resizable.
     */
    @Test
    public void testIsResizable() {
        ParticleElement particle = new ParticleElement(
                new ParticleVector(),
                new ParticleVector(),
                20,
                20,
                null);

        Assert.assertFalse(particle.isResizable());
    }
}


text:
package com.netflix.spinnaker.halyard.cli.command.v1.config.artifacts.maven;

import com.beust.jcommander.Parameter;
import com.beust.jcommander.Parameters;
import com.netflix.spinnaker.halyard.cli.command.v1.config.artifacts.account.AbstractAddArtifactAccountCommand;
import com.netflix.spinnaker.halyard.config.model.v1.artifacts.maven.MavenArtifactAccount;
import com.netflix.spinnaker.halyard.config.model.v1.node.ArtifactAccount;

@Parameters(separators = "=")
public class MavenAddArtifactAccountCommand extends AbstractAddArtifactAccountCommand {
  @Parameter(
      names = "--repository-url",
      required = true,
      description = MavenArtifactCommandProperties.REPOSITORY_URL_DESCRIPTION)
  private String repositoryUrl;

  @Override
  protected ArtifactAccount buildArtifactAccount(String accountName) {
    return new MavenArtifactAccount().setName(accountName).setRepositoryUrl(repositoryUrl);
  }

  @Override
  protected ArtifactAccount emptyArtifactAccount() {
    return new MavenArtifactAccount();
  }

  @Override
  protected String getArtifactProviderName() {
    return "maven";
  }
}


text:
package cz.jiripinkas.abcvids.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Service;

import cz.jiripinkas.abcvids.entity.Settings;
import cz.jiripinkas.abcvids.repository.SettingsRepository;

@Service
public class SettingsService {

	@Autowired
	private SettingsRepository settingsRepository;

	@Cacheable("settings")
	public List<Settings> findAll() {
		return settingsRepository.findAll(new Sort("id"));
	}

	@CacheEvict(value = "settings", allEntries = true)
	public Settings save(Settings settings) {
		return settingsRepository.save(settings);
	}

	@CacheEvict(value = "settings", allEntries = true)
	public void delete(Settings settings) {
		settingsRepository.delete(settings);
	}

	@Cacheable("settings")
	public Settings findOne(String key) {
		return settingsRepository.findByKey(key);
	}
}


text:
require 'spec_helper'

describe SickBeard::Show, vcr: {
  cassette_name: 'sickbeard',
  record: :new_episodes,
  match_requests_on: [:uri]
} do
  let(:sickbeard) { SickBeard::Client.new(server: api_uri, api_key: api_key) }
  let(:show) { SickBeard::Show.new(server: sickbeard, tvdbid: 70522) }

  describe "#seasons" do
    it "should get all seasons if no season is supplied" do
      result = show.seasons
      result.keys.should == ['0', '1', '2', '3', '4', '5']
    end

    it "should get the specified season if one is provided" do
      result = show.seasons(1)
      result.keys.should == ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22']
    end
  end

  describe "#get_banner" do
    it "should fetch the banner for this show" do
      show.get_banner.should == "show.get_banner returns a JPEG file directly.\n"
    end
  end

  describe "#get_poster" do
    it "should fetch the poster for this show" do
      show.get_poster.should == "show.get_poster returns a JPEG file directly.\n"
    end
  end

  describe "#pause" do
    it "should set the show's paused state in SickBeard to be paused" do
      show.pause.should == 'Farscape has been paused'
    end
  end

  describe "#unpause" do
    it "should set the show's paused state in SickBeard to be unpaused" do
      show.unpause.should == 'Farscape has been unpaused'
    end
  end

  describe "#paused?" do
    it "should return false if the show is not currently paused in SickBeard" do
      show.should_not be_paused
    end
  end

  describe "#set_quality" do
    it "should set the quality of a show given a list of initial quality settings" do
      show.set_quality(initial: ['sdtv', 'hdtv']).should == 'Farscape quality has been changed to Custom'
    end
    it "should set the quality of a show given a single initial quality setting" do
      show.set_quality(initial: 'sdtv').should == 'Farscape quality has been changed to Custom'
    end
    it "should set the quality of a show given a list of archive quality settings" do
      show.set_quality(archive: ['sdtv', 'hdtv']).should == 'Farscape quality has been changed to Custom'
    end
    it "should set the quality of a show given a single archive quality setting" do
      show.set_quality(archive: 'sdtv').should == 'Farscape quality has been changed to Custom'
    end
    it "should set the quality of a show given both an initial and archive quality setting" do
      show.set_quality(archive: 'sdtv', initial: 'hdtv').should == 'Farscape quality has been changed to Custom'
    end
  end

  describe "#season_list" do
    it "should return the season list if it was already populated" do
      new_show = SickBeard::Show.new(server: sickbeard, tvdbid: 70522, season_list: [3, 2, 1, 0])
      new_show.season_list.should == [0, 1, 2, 3]
    end
    it "should fetch the season list if it is unknown" do
      new_show = SickBeard::Show.new(server: sickbeard, tvdbid: 70522)
      new_show.season_list.should == [0, 1, 2, 3, 4, 5]
    end
  end

  describe "#show_stats" do
    it "should get the stats for the show" do
      response = show.stats
      response['total'].should == 92
    end
  end

  describe "#cached_banner?" do
    it "should return true if the banner image cache is valid for this show" do
      show.should have_cached_banner
    end
  end

  describe "#cached_poster?" do
    it "should return true if the banner image cache is valid for this show" do
      show.should have_cached_poster
    end
  end

  describe "#update" do
    it "should update a show in SickBeard by pulling down information from TVDB and rescan local files." do
      show.update.should == 'Farscape has queued to be updated'
    end
  end

  describe "#refresh" do
    it "should refresh a show in SickBeard by pulling down information from TVDB and rescan local files." do
      show.refresh.should == 'Farscape has queued to be refreshed'
    end
  end

  describe "#addnew" do
    it "should add a show to SickBeard." do
      show.addnew.should == 'Farscape has been queued to be added'
    end
    it "should pass the season_folder option if provided." do
      show.addnew(season_folder: 1).should == 'Farscape has been queued to be added'
    end
    it "should pass the location option if provided." do
      show.addnew(location: '/storage/videos/').should == 'Farscape has been queued to be added'
    end
    it "should pass the status option if provided" do
      show.addnew(status: 'wanted').should == 'Farscape has been queued to be added'
    end
    it "should pass the lang option if provided" do
      show.addnew(lang: 'nl').should == 'Farscape has been queued to be added'
    end
    it "should correctly pass initial options if provided." do
      show.addnew(initial: ['sdtv','hdtv']).should == 'Farscape has been queued to be added'
    end
    it "should correctly pass archive options if provided." do
      show.addnew(archive: ['sdtv','hdtv']).should == 'Farscape has been queued to be added'
    end
  end

  describe "#delete" do
    it "should remove a show from SickBeard." do
      show.delete.should == 'Farscape has been deleted'
    end
  end
end


text:
<?php

declare(strict_types=1);

namespace App\Models\Order;

use App\Models\Order;
use App\Models\Product;
use Illuminate\Database\Eloquent\Model;

final class Item extends Model
{
    protected $table = 'order_item';

    private ?int $order_id;

    /**
     * Get the order that owns the item.
     */
    public function order()
    {
        return $this->belongsTo(Order::class);
    }

    public function product()
    {
        return $this->hasOne(Product::class, 'id', 'product_id');
    }
}


text:
module MindBreaker
  class Tree
    attr_accessor :root

    def initialize(attrs)
      @root = Node.new(attrs[:root])
    end

    def show
      puts "depth: #{@root.depth} function: #{@root.function.inspect} state: #{@root.problem.state.inspect}"
      @root.children.each do |child|
        puts "depth: #{child.depth} function: #{child.function.inspect} state: #{child.problem.state.inspect}"
        show_children(child)
      end
    end

    def show_children(child)
      child.children.each do |child|
        puts "depth: #{child.depth} function: #{child.function.inspect} state: #{child.problem.state.inspect}"
        show_children(child)
      end
    end
  end
end


text:
class AddAuthenticationTokenToUsers < ActiveRecord::Migration
  def change
    add_column :users, :auth_token, :string, default: "", unique: true
    add_column :users, :password, :string
    add_index :users, :auth_token
  end
end


text:
#include "LzmaSDKObjCTypes.h"

/**
 @brief Compress non-empty buffer object with LZMA2.
 @warning First byte of the return data is LZMA2 properties.
 @warning Input buffer should be less or equal to 4Gb.
 @param dataForCompress Non-empty buffer to compress.
 @param compressionRatio Compression ratio in range [0.0f; 1.0f]
 @return Compressed data or nil on error.
 */
LZMASDKOBJC_EXTERN NSData * _Nullable LzmaSDKObjCBufferCompressLZMA2(NSData * _Nonnull dataForCompress, const float compressionRatio);

/**
 @brief Compress non-empty buffer object with LZMA.
 @warning First 13 bytes of return data is LZMA header: properties (5 bytes) & uncompressed data size (8 bytes)
 @warning Input buffer should be less or equal to 4Gb.
 @param dataForCompress Non-empty buffer to compress.
 @param lc Number of "literal context" bits
 @param lp Number of "literal pos" bits
 @param pb Number of "pos" bits
 @param dictSize Dictionary size
 @return Compressed data or nil on error.
 */
LZMASDKOBJC_EXTERN NSData * _Nullable LzmaSDKObjCBufferCompressLZMA(NSData * _Nonnull dataForCompress, int lc, int lp, int pb, UInt32 dictSize);

/**
 @brief Decompress non-empty buffer object compressed with LZMA2 and have first byte as properties.
 @warning First byte of input data should be is LZMA2 properties.
 @warning Input buffer should be less or equal to 4Gb.
 @param dataForDecompress Non-empty compressed buffer.
 @return Decompressed data or nil on error.
 */
LZMASDKOBJC_EXTERN NSData * _Nullable LzmaSDKObjCBufferDecompressLZMA2(NSData * _Nonnull dataForDecompress);

/**
 @brief Decompress non-empty buffer object compressed with LZMA.
 @warning First 13 of input data should be LZMA header: properties (5 bytes) & uncompressed data size (8 bytes)
 @warning Input buffer should be less or equal to 4Gb.
 @param dataForDecompress Non-empty compressed buffer.
 @return Decompressed data or nil on error.
 */
LZMASDKOBJC_EXTERN NSData * _Nullable LzmaSDKObjCBufferDecompressLZMA(NSData * _Nonnull dataForDecompress);


text:
namespace FloridSword.SystemService.Configuration.Configurators.ShoreWall
{
    internal class ShoreWallConfiguration
    {
        public Init Init { get; set; } = new Init();
        public Interfaces Interfaces { get; set; } = new Interfaces();
        public Zones Zones { get; set; } = new Zones();
        public Policy Policy { get; set; } = new Policy();
        public Rules Rules { get; set; } = new Rules();
        public Masq Masq { get; set; } = new Masq();
    }
}


text:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.countmein.countmein"
    android:installLocation="preferExternal">

    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.VIBRATE" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

    <application
        android:name=".CountMeInApp_"
        android:allowBackup="true"
        android:icon="@drawable/logo_white"
        android:label="@string/app_name"
        android:roundIcon="@drawable/logo_white"
        android:supportsRtl="true"
        android:theme="@style/AppTheme"
        android:windowSoftInputMode="adjustPan|adjustResize">
        <service android:name=".services.MyAndroidFirebaseMessagingService">
            <intent-filter>
                <action android:name="com.google.firebase.MESSAGING_EVENT" />
            </intent-filter>
        </service>
        <service android:name=".services.MyAndroidFirebaseInstanceIDService">
            <intent-filter>
                <action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
            </intent-filter>
        </service>

        <meta-data
            android:name="com.google.firebase.messaging.default_notification_icon"
            android:resource="@drawable/logo"/>
        <meta-data
            android:name="com.google.firebase.messaging.default_notification_color"
            android:resource="@color/white" />
        <meta-data
            android:name="com.facebook.sdk.ApplicationId"
            android:value="@string/facebook_app_id" />
        <meta-data
            android:name="com.google.android.gms.version"
            android:value="@integer/google_play_services_version" />
        <meta-data
            android:name="com.google.android.geo.API_KEY"
            android:value="AIzaSyCYQ_CFHK4okU2vvwYsf7RcUp6ICj05r_s" />

        <activity android:name=".activities.MainActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name=".activities.SelectedActivity"
            android:theme="@style/AppTheme.NoActionBar"
            android:parentActivityName=".activities.HomeActivity_"
            android:windowSoftInputMode="adjustResize" />
        <activity android:name=".activities.EmailPasswordActivity" />
        <activity android:name=".activities.GoogleSignInActivity" />
        <activity
            android:name=".activities.HomeActivity_"
            android:label="@string/title_activity_nav_drawer"
            android:theme="@style/AppTheme.NoActionBar" />

        <meta-data
            android:name="com.bugsnag.android.API_KEY"
            android:value=" AIzaSyDIxMZBk5_5rM3OWbX6j4VN7LX-uJg44_c" />

        <activity
            android:name=".activities.NewActivityActivity_"
            android:parentActivityName=".activities.HomeActivity_"
            android:theme="@style/AppTheme.NoActionBar" />
        <activity
            android:name=".activities.NewGroupActivity"
            android:parentActivityName=".activities.HomeActivity_"
            android:theme="@style/AppTheme.NoActionBar" />
        <activity
            android:name="com.facebook.FacebookActivity"
            android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
            android:label="@string/app_name" />
        <activity
            android:name="com.facebook.CustomTabActivity"
            android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />

                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />

                <data android:scheme="@string/fb_login_protocol_scheme" />
            </intent-filter>
        </activity>
        <activity
            android:name=".activities.FacebookLoginActivity"
            android:label="@string/title_activity_facebook_login"
            android:theme="@style/AppTheme.NoActionBar" />
    </application>

</manifest>


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Cats.Web.Administration.Helpers
{
    // TODO: This class is only for demo purposes and by no means supposed to replicate or replace user authorization
    public class UserRoleHelper
    {
        public static string GetUserRole(string userName)
        {
            var role = "GU";
            switch (userName.ToUpper())
            {
                case "ADMIN":
                    role = "SU";
                    break;
                case "LOGISTICS":
                    role = "LG";
                    break;
                case "EARLYWARNING":
                    role = "EW";
                    break;
                case "PROCUREMENT":
                    role = "PC";
                    break;
            }
            return role;
        }
    }
}


text:
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.30319.42000
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

//
// This source code was auto-generated by Microsoft.VSDesigner, Version 4.0.30319.42000.
//
#pragma warning disable 1591

namespace ContosoDemoNAV.Tenant.CompanyInformation {
    using System;
    using System.Web.Services;
    using System.Diagnostics;
    using System.Web.Services.Protocols;
    using System.Xml.Serialization;
    using System.ComponentModel;

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1038.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Web.Services.WebServiceBindingAttribute(Name="CompanyInformation_Binding", Namespace="urn:microsoft-dynamics-schemas/page/companyinformation")]
    public partial class CompanyInformation_Service : System.Web.Services.Protocols.SoapHttpClientProtocol {

        private System.Threading.SendOrPostCallback ReadByRecIdOperationCompleted;

        private System.Threading.SendOrPostCallback ReadMultipleOperationCompleted;

        private System.Threading.SendOrPostCallback IsUpdatedOperationCompleted;

        private System.Threading.SendOrPostCallback GetRecIdFromKeyOperationCompleted;

        private System.Threading.SendOrPostCallback UpdateOperationCompleted;

        private System.Threading.SendOrPostCallback UpdateMultipleOperationCompleted;

        private bool useDefaultCredentialsSetExplicitly;

        /// <remarks/>
        public CompanyInformation_Service() {
            this.Url = global::ContosoDemoNAV.Properties.Settings.Default.ContosoDemoNAV_Tenant_CompanyInformation_CompanyInformation_Service;
            if ((this.IsLocalFileSystemWebService(this.Url) == true)) {
                this.UseDefaultCredentials = true;
                this.useDefaultCredentialsSetExplicitly = false;
            }
            else {
                this.useDefaultCredentialsSetExplicitly = true;
            }
        }

        public new string Url {
            get {
                return base.Url;
            }
            set {
                if ((((this.IsLocalFileSystemWebService(base.Url) == true)
                            && (this.useDefaultCredentialsSetExplicitly == false))
                            && (this.IsLocalFileSystemWebService(value) == false))) {
                    base.UseDefaultCredentials = false;
                }
                base.Url = value;
            }
        }

        public new bool UseDefaultCredentials {
            get {
                return base.UseDefaultCredentials;
            }
            set {
                base.UseDefaultCredentials = value;
                this.useDefaultCredentialsSetExplicitly = true;
            }
        }

        /// <remarks/>
        public event ReadByRecIdCompletedEventHandler ReadByRecIdCompleted;

        /// <remarks/>
        public event ReadMultipleCompletedEventHandler ReadMultipleCompleted;

        /// <remarks/>
        public event IsUpdatedCompletedEventHandler IsUpdatedCompleted;

        /// <remarks/>
        public event GetRecIdFromKeyCompletedEventHandler GetRecIdFromKeyCompleted;

        /// <remarks/>
        public event UpdateCompletedEventHandler UpdateCompleted;

        /// <remarks/>
        public event UpdateMultipleCompletedEventHandler UpdateMultipleCompleted;

        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("urn:microsoft-dynamics-schemas/page/companyinformation:ReadByRecId", RequestNamespace="urn:microsoft-dynamics-schemas/page/companyinformation", ResponseElementName="ReadByRecId_Result", ResponseNamespace="urn:microsoft-dynamics-schemas/page/companyinformation", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        [return: System.Xml.Serialization.XmlElementAttribute("CompanyInformation")]
        public CompanyInformation ReadByRecId(string recId) {
            object[] results = this.Invoke("ReadByRecId", new object[] {
                        recId});
            return ((CompanyInformation)(results[0]));
        }

        /// <remarks/>
        public void ReadByRecIdAsync(string recId) {
            this.ReadByRecIdAsync(recId, null);
        }

        /// <remarks/>
        public void ReadByRecIdAsync(string recId, object userState) {
            if ((this.ReadByRecIdOperationCompleted == null)) {
                this.ReadByRecIdOperationCompleted = new System.Threading.SendOrPostCallback(this.OnReadByRecIdOperationCompleted);
            }
            this.InvokeAsync("ReadByRecId", new object[] {
                        recId}, this.ReadByRecIdOperationCompleted, userState);
        }

        private void OnReadByRecIdOperationCompleted(object arg) {
            if ((this.ReadByRecIdCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.ReadByRecIdCompleted(this, new ReadByRecIdCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("urn:microsoft-dynamics-schemas/page/companyinformation:ReadMultiple", RequestNamespace="urn:microsoft-dynamics-schemas/page/companyinformation", ResponseElementName="ReadMultiple_Result", ResponseNamespace="urn:microsoft-dynamics-schemas/page/companyinformation", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        [return: System.Xml.Serialization.XmlArrayAttribute("ReadMultiple_Result")]
        [return: System.Xml.Serialization.XmlArrayItemAttribute(IsNullable=false)]
        public CompanyInformation[] ReadMultiple([System.Xml.Serialization.XmlElementAttribute("filter")] CompanyInformation_Filter[] filter, string bookmarkKey, int setSize) {
            object[] results = this.Invoke("ReadMultiple", new object[] {
                        filter,
                        bookmarkKey,
                        setSize});
            return ((CompanyInformation[])(results[0]));
        }

        /// <remarks/>
        public void ReadMultipleAsync(CompanyInformation_Filter[] filter, string bookmarkKey, int setSize) {
            this.ReadMultipleAsync(filter, bookmarkKey, setSize, null);
        }

        /// <remarks/>
        public void ReadMultipleAsync(CompanyInformation_Filter[] filter, string bookmarkKey, int setSize, object userState) {
            if ((this.ReadMultipleOperationCompleted == null)) {
                this.ReadMultipleOperationCompleted = new System.Threading.SendOrPostCallback(this.OnReadMultipleOperationCompleted);
            }
            this.InvokeAsync("ReadMultiple", new object[] {
                        filter,
                        bookmarkKey,
                        setSize}, this.ReadMultipleOperationCompleted, userState);
        }

        private void OnReadMultipleOperationCompleted(object arg) {
            if ((this.ReadMultipleCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.ReadMultipleCompleted(this, new ReadMultipleCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("urn:microsoft-dynamics-schemas/page/companyinformation:IsUpdated", RequestNamespace="urn:microsoft-dynamics-schemas/page/companyinformation", ResponseElementName="IsUpdated_Result", ResponseNamespace="urn:microsoft-dynamics-schemas/page/companyinformation", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        [return: System.Xml.Serialization.XmlElementAttribute("IsUpdated_Result")]
        public bool IsUpdated(string Key) {
            object[] results = this.Invoke("IsUpdated", new object[] {
                        Key});
            return ((bool)(results[0]));
        }

        /// <remarks/>
        public void IsUpdatedAsync(string Key) {
            this.IsUpdatedAsync(Key, null);
        }

        /// <remarks/>
        public void IsUpdatedAsync(string Key, object userState) {
            if ((this.IsUpdatedOperationCompleted == null)) {
                this.IsUpdatedOperationCompleted = new System.Threading.SendOrPostCallback(this.OnIsUpdatedOperationCompleted);
            }
            this.InvokeAsync("IsUpdated", new object[] {
                        Key}, this.IsUpdatedOperationCompleted, userState);
        }

        private void OnIsUpdatedOperationCompleted(object arg) {
            if ((this.IsUpdatedCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.IsUpdatedCompleted(this, new IsUpdatedCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("urn:microsoft-dynamics-schemas/page/companyinformation:GetRecIdFromKey", RequestNamespace="urn:microsoft-dynamics-schemas/page/companyinformation", ResponseElementName="GetRecIdFromKey_Result", ResponseNamespace="urn:microsoft-dynamics-schemas/page/companyinformation", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        [return: System.Xml.Serialization.XmlElementAttribute("GetRecIdFromKey_Result")]
        public string GetRecIdFromKey(string Key) {
            object[] results = this.Invoke("GetRecIdFromKey", new object[] {
                        Key});
            return ((string)(results[0]));
        }

        /// <remarks/>
        public void GetRecIdFromKeyAsync(string Key) {
            this.GetRecIdFromKeyAsync(Key, null);
        }

        /// <remarks/>
        public void GetRecIdFromKeyAsync(string Key, object userState) {
            if ((this.GetRecIdFromKeyOperationCompleted == null)) {
                this.GetRecIdFromKeyOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetRecIdFromKeyOperationCompleted);
            }
            this.InvokeAsync("GetRecIdFromKey", new object[] {
                        Key}, this.GetRecIdFromKeyOperationCompleted, userState);
        }

        private void OnGetRecIdFromKeyOperationCompleted(object arg) {
            if ((this.GetRecIdFromKeyCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetRecIdFromKeyCompleted(this, new GetRecIdFromKeyCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("urn:microsoft-dynamics-schemas/page/companyinformation:Update", RequestNamespace="urn:microsoft-dynamics-schemas/page/companyinformation", ResponseElementName="Update_Result", ResponseNamespace="urn:microsoft-dynamics-schemas/page/companyinformation", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public void Update(ref CompanyInformation CompanyInformation) {
            object[] results = this.Invoke("Update", new object[] {
                        CompanyInformation});
            CompanyInformation = ((CompanyInformation)(results[0]));
        }

        /// <remarks/>
        public void UpdateAsync(CompanyInformation CompanyInformation) {
            this.UpdateAsync(CompanyInformation, null);
        }

        /// <remarks/>
        public void UpdateAsync(CompanyInformation CompanyInformation, object userState) {
            if ((this.UpdateOperationCompleted == null)) {
                this.UpdateOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateOperationCompleted);
            }
            this.InvokeAsync("Update", new object[] {
                        CompanyInformation}, this.UpdateOperationCompleted, userState);
        }

        private void OnUpdateOperationCompleted(object arg) {
            if ((this.UpdateCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.UpdateCompleted(this, new UpdateCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("urn:microsoft-dynamics-schemas/page/companyinformation:UpdateMultiple", RequestNamespace="urn:microsoft-dynamics-schemas/page/companyinformation", ResponseElementName="UpdateMultiple_Result", ResponseNamespace="urn:microsoft-dynamics-schemas/page/companyinformation", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public void UpdateMultiple([System.Xml.Serialization.XmlArrayItemAttribute(IsNullable=false)] ref CompanyInformation[] CompanyInformation_List) {
            object[] results = this.Invoke("UpdateMultiple", new object[] {
                        CompanyInformation_List});
            CompanyInformation_List = ((CompanyInformation[])(results[0]));
        }

        /// <remarks/>
        public void UpdateMultipleAsync(CompanyInformation[] CompanyInformation_List) {
            this.UpdateMultipleAsync(CompanyInformation_List, null);
        }

        /// <remarks/>
        public void UpdateMultipleAsync(CompanyInformation[] CompanyInformation_List, object userState) {
            if ((this.UpdateMultipleOperationCompleted == null)) {
                this.UpdateMultipleOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateMultipleOperationCompleted);
            }
            this.InvokeAsync("UpdateMultiple", new object[] {
                        CompanyInformation_List}, this.UpdateMultipleOperationCompleted, userState);
        }

        private void OnUpdateMultipleOperationCompleted(object arg) {
            if ((this.UpdateMultipleCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.UpdateMultipleCompleted(this, new UpdateMultipleCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        public new void CancelAsync(object userState) {
            base.CancelAsync(userState);
        }

        private bool IsLocalFileSystemWebService(string url) {
            if (((url == null)
                        || (url == string.Empty))) {
                return false;
            }
            System.Uri wsUri = new System.Uri(url);
            if (((wsUri.Port >= 1024)
                        && (string.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) == 0))) {
                return true;
            }
            return false;
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.6.1038.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:microsoft-dynamics-schemas/page/companyinformation")]
    public partial class CompanyInformation {

        private string keyField;

        private string nameField;

        private string addressField;

        private string address_2Field;

        private string post_CodeField;

        private string cityField;

        private string country_Region_CodeField;

        private string phone_NoField;

        private string vAT_Registration_NoField;

        private string gLNField;

        private string industrial_ClassificationField;

        private string fax_NoField;

        private string e_MailField;

        private string home_PageField;

        private string iC_Partner_CodeField;

        private IC_Inbox_Type iC_Inbox_TypeField;

        private bool iC_Inbox_TypeFieldSpecified;

        private string iC_Inbox_DetailsField;

        private bool allow_Blank_Payment_InfoField;

        private bool allow_Blank_Payment_InfoFieldSpecified;

        private string bank_NameField;

        private string bank_Branch_NoField;

        private string bank_Account_NoField;

        private string payment_Routing_NoField;

        private string giro_NoField;

        private string sWIFT_CodeField;

        private string iBANField;

        private string ship_to_NameField;

        private string ship_to_AddressField;

        private string ship_to_Address_2Field;

        private string ship_to_Post_CodeField;

        private string ship_to_CityField;

        private string ship_to_Country_Region_CodeField;

        private string ship_to_ContactField;

        private string location_CodeField;

        private string responsibility_CenterField;

        private string check_Avail_Period_CalcField;

        private Check_Avail_Time_Bucket check_Avail_Time_BucketField;

        private bool check_Avail_Time_BucketFieldSpecified;

        private string base_Calendar_CodeField;

        private string customized_CalendarField;

        private string cal_Convergence_Time_FrameField;

        private System_Indicator system_IndicatorField;

        private bool system_IndicatorFieldSpecified;

        private System_Indicator_Style system_Indicator_StyleField;

        private bool system_Indicator_StyleFieldSpecified;

        private string system_Indicator_TextField;

        /// <remarks/>
        public string Key {
            get {
                return this.keyField;
            }
            set {
                this.keyField = value;
            }
        }

        /// <remarks/>
        public string Name {
            get {
                return this.nameField;
            }
            set {
                this.nameField = value;
            }
        }

        /// <remarks/>
        public string Address {
            get {
                return this.addressField;
            }
            set {
                this.addressField = value;
            }
        }

        /// <remarks/>
        public string Address_2 {
            get {
                return this.address_2Field;
            }
            set {
                this.address_2Field = value;
            }
        }

        /// <remarks/>
        public string Post_Code {
            get {
                return this.post_CodeField;
            }
            set {
                this.post_CodeField = value;
            }
        }

        /// <remarks/>
        public string City {
            get {
                return this.cityField;
            }
            set {
                this.cityField = value;
            }
        }

        /// <remarks/>
        public string Country_Region_Code {
            get {
                return this.country_Region_CodeField;
            }
            set {
                this.country_Region_CodeField = value;
            }
        }

        /// <remarks/>
        public string Phone_No {
            get {
                return this.phone_NoField;
            }
            set {
                this.phone_NoField = value;
            }
        }

        /// <remarks/>
        public string VAT_Registration_No {
            get {
                return this.vAT_Registration_NoField;
            }
            set {
                this.vAT_Registration_NoField = value;
            }
        }

        /// <remarks/>
        public string GLN {
            get {
                return this.gLNField;
            }
            set {
                this.gLNField = value;
            }
        }

        /// <remarks/>
        public string Industrial_Classification {
            get {
                return this.industrial_ClassificationField;
            }
            set {
                this.industrial_ClassificationField = value;
            }
        }

        /// <remarks/>
        public string Fax_No {
            get {
                return this.fax_NoField;
            }
            set {
                this.fax_NoField = value;
            }
        }

        /// <remarks/>
        public string E_Mail {
            get {
                return this.e_MailField;
            }
            set {
                this.e_MailField = value;
            }
        }

        /// <remarks/>
        public string Home_Page {
            get {
                return this.home_PageField;
            }
            set {
                this.home_PageField = value;
            }
        }

        /// <remarks/>
        public string IC_Partner_Code {
            get {
                return this.iC_Partner_CodeField;
            }
            set {
                this.iC_Partner_CodeField = value;
            }
        }

        /// <remarks/>
        public IC_Inbox_Type IC_Inbox_Type {
            get {
                return this.iC_Inbox_TypeField;
            }
            set {
                this.iC_Inbox_TypeField = value;
            }
        }

        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool IC_Inbox_TypeSpecified {
            get {
                return this.iC_Inbox_TypeFieldSpecified;
            }
            set {
                this.iC_Inbox_TypeFieldSpecified = value;
            }
        }

        /// <remarks/>
        public string IC_Inbox_Details {
            get {
                return this.iC_Inbox_DetailsField;
            }
            set {
                this.iC_Inbox_DetailsField = value;
            }
        }

        /// <remarks/>
        public bool Allow_Blank_Payment_Info {
            get {
                return this.allow_Blank_Payment_InfoField;
            }
            set {
                this.allow_Blank_Payment_InfoField = value;
            }
        }

        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool Allow_Blank_Payment_InfoSpecified {
            get {
                return this.allow_Blank_Payment_InfoFieldSpecified;
            }
            set {
                this.allow_Blank_Payment_InfoFieldSpecified = value;
            }
        }

        /// <remarks/>
        public string Bank_Name {
            get {
                return this.bank_NameField;
            }
            set {
                this.bank_NameField = value;
            }
        }

        /// <remarks/>
        public string Bank_Branch_No {
            get {
                return this.bank_Branch_NoField;
            }
            set {
                this.bank_Branch_NoField = value;
            }
        }

        /// <remarks/>
        public string Bank_Account_No {
            get {
                return this.bank_Account_NoField;
            }
            set {
                this.bank_Account_NoField = value;
            }
        }

        /// <remarks/>
        public string Payment_Routing_No {
            get {
                return this.payment_Routing_NoField;
            }
            set {
                this.payment_Routing_NoField = value;
            }
        }

        /// <remarks/>
        public string Giro_No {
            get {
                return this.giro_NoField;
            }
            set {
                this.giro_NoField = value;
            }
        }

        /// <remarks/>
        public string SWIFT_Code {
            get {
                return this.sWIFT_CodeField;
            }
            set {
                this.sWIFT_CodeField = value;
            }
        }

        /// <remarks/>
        public string IBAN {
            get {
                return this.iBANField;
            }
            set {
                this.iBANField = value;
            }
        }

        /// <remarks/>
        public string Ship_to_Name {
            get {
                return this.ship_to_NameField;
            }
            set {
                this.ship_to_NameField = value;
            }
        }

        /// <remarks/>
        public string Ship_to_Address {
            get {
                return this.ship_to_AddressField;
            }
            set {
                this.ship_to_AddressField = value;
            }
        }

        /// <remarks/>
        public string Ship_to_Address_2 {
            get {
                return this.ship_to_Address_2Field;
            }
            set {
                this.ship_to_Address_2Field = value;
            }
        }

        /// <remarks/>
        public string Ship_to_Post_Code {
            get {
                return this.ship_to_Post_CodeField;
            }
            set {
                this.ship_to_Post_CodeField = value;
            }
        }

        /// <remarks/>
        public string Ship_to_City {
            get {
                return this.ship_to_CityField;
            }
            set {
                this.ship_to_CityField = value;
            }
        }

        /// <remarks/>
        public string Ship_to_Country_Region_Code {
            get {
                return this.ship_to_Country_Region_CodeField;
            }
            set {
                this.ship_to_Country_Region_CodeField = value;
            }
        }

        /// <remarks/>
        public string Ship_to_Contact {
            get {
                return this.ship_to_ContactField;
            }
            set {
                this.ship_to_ContactField = value;
            }
        }

        /// <remarks/>
        public string Location_Code {
            get {
                return this.location_CodeField;
            }
            set {
                this.location_CodeField = value;
            }
        }

        /// <remarks/>
        public string Responsibility_Center {
            get {
                return this.responsibility_CenterField;
            }
            set {
                this.responsibility_CenterField = value;
            }
        }

        /// <remarks/>
        public string Check_Avail_Period_Calc {
            get {
                return this.check_Avail_Period_CalcField;
            }
            set {
                this.check_Avail_Period_CalcField = value;
            }
        }

        /// <remarks/>
        public Check_Avail_Time_Bucket Check_Avail_Time_Bucket {
            get {
                return this.check_Avail_Time_BucketField;
            }
            set {
                this.check_Avail_Time_BucketField = value;
            }
        }

        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool Check_Avail_Time_BucketSpecified {
            get {
                return this.check_Avail_Time_BucketFieldSpecified;
            }
            set {
                this.check_Avail_Time_BucketFieldSpecified = value;
            }
        }

        /// <remarks/>
        public string Base_Calendar_Code {
            get {
                return this.base_Calendar_CodeField;
            }
            set {
                this.base_Calendar_CodeField = value;
            }
        }

        /// <remarks/>
        public string Customized_Calendar {
            get {
                return this.customized_CalendarField;
            }
            set {
                this.customized_CalendarField = value;
            }
        }

        /// <remarks/>
        public string Cal_Convergence_Time_Frame {
            get {
                return this.cal_Convergence_Time_FrameField;
            }
            set {
                this.cal_Convergence_Time_FrameField = value;
            }
        }

        /// <remarks/>
        public System_Indicator System_Indicator {
            get {
                return this.system_IndicatorField;
            }
            set {
                this.system_IndicatorField = value;
            }
        }

        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool System_IndicatorSpecified {
            get {
                return this.system_IndicatorFieldSpecified;
            }
            set {
                this.system_IndicatorFieldSpecified = value;
            }
        }

        /// <remarks/>
        public System_Indicator_Style System_Indicator_Style {
            get {
                return this.system_Indicator_StyleField;
            }
            set {
                this.system_Indicator_StyleField = value;
            }
        }

        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool System_Indicator_StyleSpecified {
            get {
                return this.system_Indicator_StyleFieldSpecified;
            }
            set {
                this.system_Indicator_StyleFieldSpecified = value;
            }
        }

        /// <remarks/>
        public string System_Indicator_Text {
            get {
                return this.system_Indicator_TextField;
            }
            set {
                this.system_Indicator_TextField = value;
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.6.1038.0")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:microsoft-dynamics-schemas/page/companyinformation")]
    public enum IC_Inbox_Type {

        /// <remarks/>
        File_Location,

        /// <remarks/>
        Database,
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.6.1038.0")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:microsoft-dynamics-schemas/page/companyinformation")]
    public enum Check_Avail_Time_Bucket {

        /// <remarks/>
        Day,

        /// <remarks/>
        Week,

        /// <remarks/>
        Month,

        /// <remarks/>
        Quarter,

        /// <remarks/>
        Year,
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.6.1038.0")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:microsoft-dynamics-schemas/page/companyinformation")]
    public enum System_Indicator {

        /// <remarks/>
        None,

        /// <remarks/>
        Custom_Text,

        /// <remarks/>
        Company_Information,

        /// <remarks/>
        Company,

        /// <remarks/>
        Database,

        /// <remarks/>
        Company_x002B_Database,
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.6.1038.0")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:microsoft-dynamics-schemas/page/companyinformation")]
    public enum System_Indicator_Style {

        /// <remarks/>
        Standard,

        /// <remarks/>
        Accent1,

        /// <remarks/>
        Accent2,

        /// <remarks/>
        Accent3,

        /// <remarks/>
        Accent4,

        /// <remarks/>
        Accent5,

        /// <remarks/>
        Accent6,

        /// <remarks/>
        Accent7,

        /// <remarks/>
        Accent8,

        /// <remarks/>
        Accent9,
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.6.1038.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:microsoft-dynamics-schemas/page/companyinformation")]
    public partial class CompanyInformation_Filter {

        private CompanyInformation_Fields fieldField;

        private string criteriaField;

        /// <remarks/>
        public CompanyInformation_Fields Field {
            get {
                return this.fieldField;
            }
            set {
                this.fieldField = value;
            }
        }

        /// <remarks/>
        public string Criteria {
            get {
                return this.criteriaField;
            }
            set {
                this.criteriaField = value;
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.6.1038.0")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:microsoft-dynamics-schemas/page/companyinformation")]
    public enum CompanyInformation_Fields {

        /// <remarks/>
        Name,

        /// <remarks/>
        Address,

        /// <remarks/>
        Address_2,

        /// <remarks/>
        Post_Code,

        /// <remarks/>
        City,

        /// <remarks/>
        Country_Region_Code,

        /// <remarks/>
        Phone_No,

        /// <remarks/>
        VAT_Registration_No,

        /// <remarks/>
        GLN,

        /// <remarks/>
        Industrial_Classification,

        /// <remarks/>
        Fax_No,

        /// <remarks/>
        E_Mail,

        /// <remarks/>
        Home_Page,

        /// <remarks/>
        IC_Partner_Code,

        /// <remarks/>
        IC_Inbox_Type,

        /// <remarks/>
        IC_Inbox_Details,

        /// <remarks/>
        Allow_Blank_Payment_Info,

        /// <remarks/>
        Bank_Name,

        /// <remarks/>
        Bank_Branch_No,

        /// <remarks/>
        Bank_Account_No,

        /// <remarks/>
        Payment_Routing_No,

        /// <remarks/>
        Giro_No,

        /// <remarks/>
        SWIFT_Code,

        /// <remarks/>
        IBAN,

        /// <remarks/>
        Ship_to_Name,

        /// <remarks/>
        Ship_to_Address,

        /// <remarks/>
        Ship_to_Address_2,

        /// <remarks/>
        Ship_to_Post_Code,

        /// <remarks/>
        Ship_to_City,

        /// <remarks/>
        Ship_to_Country_Region_Code,

        /// <remarks/>
        Ship_to_Contact,

        /// <remarks/>
        Location_Code,

        /// <remarks/>
        Responsibility_Center,

        /// <remarks/>
        Check_Avail_Period_Calc,

        /// <remarks/>
        Check_Avail_Time_Bucket,

        /// <remarks/>
        Base_Calendar_Code,

        /// <remarks/>
        Customized_Calendar,

        /// <remarks/>
        Cal_Convergence_Time_Frame,

        /// <remarks/>
        System_Indicator,

        /// <remarks/>
        System_Indicator_Style,

        /// <remarks/>
        System_Indicator_Text,
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1038.0")]
    public delegate void ReadByRecIdCompletedEventHandler(object sender, ReadByRecIdCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1038.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class ReadByRecIdCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {

        private object[] results;

        internal ReadByRecIdCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
                base(exception, cancelled, userState) {
            this.results = results;
        }

        /// <remarks/>
        public CompanyInformation Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((CompanyInformation)(this.results[0]));
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1038.0")]
    public delegate void ReadMultipleCompletedEventHandler(object sender, ReadMultipleCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1038.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class ReadMultipleCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {

        private object[] results;

        internal ReadMultipleCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
                base(exception, cancelled, userState) {
            this.results = results;
        }

        /// <remarks/>
        public CompanyInformation[] Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((CompanyInformation[])(this.results[0]));
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1038.0")]
    public delegate void IsUpdatedCompletedEventHandler(object sender, IsUpdatedCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1038.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class IsUpdatedCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {

        private object[] results;

        internal IsUpdatedCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
                base(exception, cancelled, userState) {
            this.results = results;
        }

        /// <remarks/>
        public bool Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((bool)(this.results[0]));
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1038.0")]
    public delegate void GetRecIdFromKeyCompletedEventHandler(object sender, GetRecIdFromKeyCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1038.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetRecIdFromKeyCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {

        private object[] results;

        internal GetRecIdFromKeyCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
                base(exception, cancelled, userState) {
            this.results = results;
        }

        /// <remarks/>
        public string Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((string)(this.results[0]));
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1038.0")]
    public delegate void UpdateCompletedEventHandler(object sender, UpdateCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1038.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class UpdateCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {

        private object[] results;

        internal UpdateCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
                base(exception, cancelled, userState) {
            this.results = results;
        }

        /// <remarks/>
        public CompanyInformation CompanyInformation {
            get {
                this.RaiseExceptionIfNecessary();
                return ((CompanyInformation)(this.results[0]));
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1038.0")]
    public delegate void UpdateMultipleCompletedEventHandler(object sender, UpdateMultipleCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1038.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class UpdateMultipleCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {

        private object[] results;

        internal UpdateMultipleCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
                base(exception, cancelled, userState) {
            this.results = results;
        }

        /// <remarks/>
        public CompanyInformation[] CompanyInformation_List {
            get {
                this.RaiseExceptionIfNecessary();
                return ((CompanyInformation[])(this.results[0]));
            }
        }
    }
}

#pragma warning restore 1591


text:
@implementation SimpleHTTPClientViewController

@end


text:
package com.google.errorprone.matchers;

import com.google.errorprone.VisitorState;
import com.google.errorprone.util.ASTHelpers;

import com.sun.source.tree.Tree;
import com.sun.tools.javac.code.Symbol;

/**
 * Matches static symbols.
 *
 * @author Liam Miller-Cushon (cushon@google.com)
 */
public class IsStatic implements Matcher<Tree> {

  @Override
  public boolean matches(Tree tree, VisitorState state) {
    Symbol sym = ASTHelpers.getSymbol(tree);
    return sym != null && sym.isStatic();
  }

}


text:
package io.atomix.copycat.server.protocol;

/**
 * Server join configuration change request.
 *

 * The join request is the mechanism by which new servers join a cluster. When a server wants to
 * join a cluster, it must submit a join request to the leader. The leader will attempt to commit
 * the configuration change and, if successful, respond to the join request with the updated configuration.
 *
 * @author Jordan Halterman
 */
public class JoinRequest extends ConfigurationRequest {

  /**
   * Returns a new join request builder.
   *
   * @return A new join request builder.
   */
  public static Builder builder() {
    return new Builder(new JoinRequest());
  }

  /**
   * Returns an join request builder for an existing request.
   *
   * @param request The request to build.
   * @return The join request builder.
   */
  public static Builder builder(JoinRequest request) {
    return new Builder(request);
  }

  /**
   * Join request builder.
   */
  public static class Builder extends ConfigurationRequest.Builder<Builder, JoinRequest> {
    protected Builder(JoinRequest request) {
      super(request);
    }
  }

}


text:
import React from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import fetch from 'isomorphic-fetch';
import * as mapActions from '@boundlessgeo/sdk/actions/map';

/** Component for user to upload a mapbox style doc
 * or enter a URL.
 */
class ContextSelector extends React.PureComponent {
  constructor(props) {
    super(props);
    this.state = {
      value: '',
      error: false,
      message: '',
      badurl: '',
    };
    this.handleChange = this.handleChange.bind(this);
    this.handleSubmit = this.handleSubmit.bind(this);
    this.clearError = this.clearError.bind(this);
    this.dropFiles = this.dropFiles.bind(this);
  }

  clearError() {
    this.setState({error: false, message: '', badurl: ''});
  }

  setError(msg) {
    this.setState({error: true, message: msg});
  }

  addMap(context) {
    this.clearError();
    this.props.setContext(context);
  }

  dropFiles(event) {
    this.clearError();
    const files = event.target.files;
    if (files.length === 1) {
      const r = new FileReader();
      const file = files[0];
      let result;
      r.onload = () => {
        try {
          result = JSON.parse(r.result);
          this.addMap({json: result});
        } catch (e) {
          this.setError(e.message);
        }
      };
      r.onerror = () => {
        this.setError(r.error);
      };
      r.readAsText(file);
    }
    event.preventDefault();
  }

  handleChange(event) {
    this.clearError();
    this.setState({value: event.target.value});
  }

  handleSubmit(event) {
    this.clearError();
    fetch (this.state.value)
      .then(
        response => {
          if (response.status >= 400) {
            this.setState({badurl: response.url});
            const msg = `${response.status} (${response.statusText})`;
            this.setError(msg);
          } else {
            response.json().then(json => {
              this.addMap({json});
            }).catch((e) => {
              this.setError(e);
            });
          }
        }).catch((e) => {
        this.setError(e);
      });
    event.preventDefault();
  }

  render() {
    let errormsg;
    if (this.state.error === true) {
      errormsg = (
Error uploading map: {this.state.badurl} {this.state.message}
);
    }
    return (

Upload a Map

          { errormsg }

Via URL:

            <form onSubmit={this.handleSubmit}>
              <input className='urlinput' id='urlField' placeholder='Provide a URL to render the map above' type='text' value={this.state.value} onChange={this.handleChange} />
              <button className='sdk-btn' type='submit'>Update Map</button>
            </form>

Via File Upload:

            Choose a file to upload (.json)
            <input id='file_upload' type='file' accept='.json' onChange={this.dropFiles}/>

    );
  }
}

ContextSelector.propTypes = {
  setContext: PropTypes.func,
};

ContextSelector.defaultProps = {
  setContext: () => { },
};

function mapDispatch(dispatch) {
  return {
    setContext: (context) => {
      dispatch(mapActions.fetchContext(context));
    },
  };
}

export default connect(null, mapDispatch)(ContextSelector);


text:
<!DOCTYPE html>

    <meta charschartset="UTF-8">
    <title>Lavabench</title>

    @linechart('Space Title', 'chart')


text:
#ifndef SourceProviderCacheItem_h
#define SourceProviderCacheItem_h

#include "ParserTokens.h"
#include <wtf/Vector.h>
#include <wtf/text/WTFString.h>

namespace JSC {

class SourceProviderCacheItem {
    WTF_MAKE_FAST_ALLOCATED;
public:
    SourceProviderCacheItem(int closeBraceLine, int closeBracePos)
        : closeBraceLine(closeBraceLine)
        , closeBracePos(closeBracePos)
    {
    }
    unsigned approximateByteSize() const
    {
        // The identifiers are uniqued strings so most likely there are few names that actually use any additional memory.
        static const unsigned assummedAverageIdentifierSize = sizeof(RefPtr<StringImpl>) + 2;
        unsigned size = sizeof(*this);
        size += usedVariables.size() * assummedAverageIdentifierSize;
        size += writtenVariables.size() * assummedAverageIdentifierSize;
        return size;
    }
    JSToken closeBraceToken() const
    {
        JSToken token;
        token.m_type = CLOSEBRACE;
        token.m_data.intValue = closeBracePos;
        token.m_location.startOffset = closeBracePos;
        token.m_location.endOffset = closeBracePos + 1;
        token.m_location.line = closeBraceLine;
        return token;
    }

    int closeBraceLine;
    int closeBracePos;
    bool usesEval;
    bool strictMode;
    bool needsFullActivation;
    Vector<RefPtr<StringImpl> > usedVariables;
    Vector<RefPtr<StringImpl> > writtenVariables;
};

}

#endif // SourceProviderCacheItem_h


text:
using System.Collections.Generic;
using CustomerManagement.Shared.Model;
using MonoCross.WPF;

namespace CustomerManagement.WPF.Views
{
  /// <summary>
  /// This class is used to simplify using a generic class in XAML
  /// </summary>
  public abstract class ListViewGlue : MXPageView<List<Customer>> { }
}


text:
=========
CBugzilla
=========

CLI and C api to get data from `Bugzilla <http://www.bugzilla.org/>`_.

Written specificaly for `Gentoo bugzilla <https://bugs.gentoo.org/>`_ but (in
theory) should work with any bugzilla (patches may be needed for different
versions or deploy with extensions).

The primary purpose of this tool is querying data for bug "Queue" length monitoring and graphing.

Usage
======

Set your authentication data in ~/.config/cbugzilla/auth (see cbugzilla -h for the format). And then you can just run

::

    cbugzilla <YourSavedQueryName>

And you get the number of records on STDOUT.

Alternately, you can link with `<libcbugzilla/cb.h>` and use `cbi_t` to get the data.

example::

    % cbugzilla python-herd
    428
    % cbugzilla "yac cc'd"
    17

for example library usage see `main.c <./src/main.c>`_

Install
=======

gentoo::

    emerge cbugzilla

Source download
===============

You can the tarballs from http://dev.gentoo.org/~yac/distfiles/

signing key: F97A36A1

Tests
=====
::

    make check


text:
package com.univpm.s1055802.faceplusplustester.Detect;

import android.graphics.Bitmap;
import android.graphics.Matrix;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.widget.Toast;

import com.facepp.error.FaceppParseException;
import com.facepp.http.HttpRequests;
import com.facepp.http.PostParameters;
import com.univpm.s1055802.faceplusplustester.FppTester;
import com.univpm.s1055802.faceplusplustester.R;
import com.univpm.s1055802.faceplusplustester.Utils.CallbackActions;

import org.json.JSONObject;

import java.io.ByteArrayOutputStream;

public class DetectActions {

    public static class Detect extends CallbackActions {

        public Detect(AppCompatActivity activity){super(activity);}

        /**
         * Avvia la procedura di "detect"
         * @param img il bitmap sul quale effettuare il detect
         */
        public void detect(final Bitmap img) {
            Log.v("Detect", "Start");
            new Thread(new Runnable() {

                public void run() {

                    FppTester fppTester = (FppTester)activity.getApplication();
                    HttpRequests httpRequests = new HttpRequests(fppTester.getApiKey(), fppTester.getApiSecret(), fppTester.isCN(), fppTester.isDebug());

                    //Log.v(TAG, "image size : " + img.getWidth() + " " + img.getHeight());

                    ByteArrayOutputStream stream = new ByteArrayOutputStream();
                    float scale = Math.min(1, Math.min(600f / img.getWidth(), 600f / img.getHeight()));
                    Matrix matrix = new Matrix();
                    matrix.postScale(scale, scale);

                    Bitmap imgSmall = Bitmap.createBitmap(img, 0, 0, img.getWidth(), img.getHeight(), matrix, false);
                    //Log.v(TAG, "imgSmall size : " + imgSmall.getWidth() + " " + imgSmall.getHeight());

                    imgSmall.compress(Bitmap.CompressFormat.JPEG, 100, stream);
                    byte[] array = stream.toByteArray();

                    try {
                        //detect
                        JSONObject result = httpRequests.detectionDetect(new PostParameters().setImg(array));
                        //finished , then call the callback function
                        if (callback != null) {

                            callback.processResult(result);
                        }
                    } catch (FaceppParseException e) {
                        e.printStackTrace();
                        getActivity().runOnUiThread(new Runnable() {
                            @Override
                            public void run() {
                                Toast toast = Toast.makeText(getContext(), "Failed", Toast.LENGTH_SHORT);
                                toast.show();
                            }
                        });
                    }

                }
            }).start();
        }
    }

}


text:
'use strict';

angular.module('main')

.factory('Map', function(Geolocation, leafletData) {

	var watchId;

    function startWatchingUserPosition() {
        return Geolocation.watchUserPosition({
            frequency : 1000,
            timeout : 3000,
            enableHighAccuracy: true
        });
    };

	function initMap(positionSuccess, positionError, mapData, mapEvents) {
	    this.watchId = startWatchingUserPosition();
	    this.watchId
	    .then(null, positionError, positionSuccess)
	    .then(initMapSettings(mapData, mapEvents));
	};

    function initMapSettings(mapData, mapEvents) {
        leafletData.getMap("map")
        .then(function(map) {
            mapData();
            mapEvents(map);
        });
    };

	function Viewport() {
        Viewport.prototype.latitude;
        Viewport.prototype.longitude;
        Viewport.prototype.distance;
    };

    function getCurrentViewport(map) {
        var v = new Viewport();
        var coords = map.getCenter();
        var ne = map.getBounds().getNorthEast();
        var sw = map.getBounds().getSouthWest();
        var dist = Math.max(Math.abs(ne.lat - sw.lat), Math.abs(ne.lng - sw.lng));
        v.latitude = coords.lat;
        v.longitude = coords.lng;
        v.distance = dist;

        return v;
    };

    function getCenterObject(latitude, longitude, zoom) {
        return  {
            lat: latitude,
            lng: longitude,
            zoom: zoom
        };
    };

	return {
		watchId : watchId,
		initMap : initMap,
		getCenterObject: getCenterObject,
		getCurrentViewport: getCurrentViewport
	};
});


text:
package me.phoboslabs.illuminati.esconsumer.listener;

import me.phoboslabs.illuminati.common.constant.IlluminatiConstant;
import me.phoboslabs.illuminati.common.util.StringObjectUtils;
import me.phoboslabs.illuminati.elasticsearch.infra.EsClient;
import me.phoboslabs.illuminati.esconsumer.config.model.SampleEsTemplateInterfaceModelImpl;
import lombok.RequiredArgsConstructor;
import org.apache.http.HttpResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.cloud.stream.annotation.StreamListener;
import org.springframework.cloud.stream.messaging.Sink;
import org.springframework.messaging.Message;

import javax.inject.Inject;
import javax.validation.constraints.NotNull;

@EnableBinding(Sink.class)
@RequiredArgsConstructor(onConstructor_ = @Inject)
public class SubscribeListener {

    private static final Logger SUB_LOGGER = LoggerFactory.getLogger(SubscribeListener.class);

    private final @NotNull EsClient esClient;

    @Value("${elasticsearchInfo.master.user:}")
    private String esUserName;
    @Value("${elasticsearchInfo.master.pass:}")
    private String esUserPass;

    @StreamListener(Sink.INPUT)
    public void subscribe (Message<?> message) {
        SampleEsTemplateInterfaceModelImpl sampleBuyEsModel = null;

        try {
            String jsonString = (String) message.getPayload();
            sampleBuyEsModel = IlluminatiConstant.ILLUMINATI_GSON_OBJ.fromJson(jsonString, SampleEsTemplateInterfaceModelImpl.class);
        } catch (Exception ex) {
            SUB_LOGGER.error("Sorry. something is wrong in Parsing received dto. ({})", ex.getMessage(), ex);
            return;
        }

        if (sampleBuyEsModel != null) {
            if (StringObjectUtils.isValid(esUserName) && StringObjectUtils.isValid(esUserPass)) {
                sampleBuyEsModel.setEsUserAuth(this.esUserName, this.esUserPass);
            }

            sampleBuyEsModel.customData();
            try {
                HttpResponse result = (HttpResponse) this.esClient.save(sampleBuyEsModel);

                if ("2".equals(String.valueOf(result.getStatusLine().getStatusCode()).substring(0, 1))) {
                    SUB_LOGGER.info("successfully transferred dto to Elasticsearch.");
                } else {
                    SUB_LOGGER.error("Sorry. something is wrong in send to Elasticsearch. (code : "+result.getStatusLine().getStatusCode()+")");
                }
            } catch (Exception ex) {
                SUB_LOGGER.error("Sorry. something is wrong in send to Elasticsearch. (code : {})", ex.getMessage(), ex);
            }
        }
    }
}


text:
<?php

namespace Symfony\Component\DependencyInjection\Compiler;

use Symfony\Component\DependencyInjection\ContainerBuilder;

class RemoveAbstractDefinitionsPass implements CompilerPassInterface
{
    public function process(ContainerBuilder $container)
    {
        foreach ($container->getDefinitions() as $id => $definition) {
            if ($definition->isAbstract()) {
                $container->remove($id);
            }
        }
    }
}


text:
require 'spec_helper'

describe 'Typedocs.typedef' do
  before(:each) do
    @ns = Module.new
    ::TypedocsSpecSandbox = @ns
  end
  after(:each) do
    Object.instance_eval { remove_const :TypedocsSpecSandbox }
    Typedocs.initialize!
  end
  describe 'spec itself' do
    it('Object::TypeDocsSpecSandBox exists') do
      ::TypedocsSpecSandbox.should_not be_nil
      ::TypedocsSpecSandbox.name.should == 'TypedocsSpecSandbox'
    end
  end

  describe 'basic usage' do
    before(:each) do
      class @ns::A
        include Typedocs::DSL
      end
    end
    let(:klass) { @ns::A }
    describe 'defining custom type @ConfigHash' do
      before(:each) do
        klass.class_eval do
          tdoc.typedef :@ConfigHash, "{:hoge => Integer}"
        end
      end
      it 'should referable from definede class' do
        klass.class_eval {
          tdoc "@ConfigHash"
          def legal
            {hoge: 10}
          end
          tdoc "@ConfigHash"
          def illegal
            {hoge: 'hoge'}
          end
        }
        klass.new.legal.should == {hoge: 10}
        expect { klass.new.illegal }.to raise_error Typedocs::RetValError
      end
      it 'should referable from inner type' do
        expect {
          class @ns::B
            include Typedocs::DSL
            tdoc "@ConfigHash"
            def illegal; {}; end
          end
          Typedocs.context(@ns::B).defined_type!("@ConfigHash")
        }.to raise_error Typedocs::NoSuchType
      end
      it 'should not referable from other type' do
        class klass::InnerType
          include Typedocs::DSL
          tdoc "@ConfigHash"
          def illegal; {}; end
        end
        expect { klass::InnerType.new.illegal }.to raise_error Typedocs::RetValError
      end
      it 'should not referable from inherited type' do
        expect {
          class @ns::C < klass
            include Typedocs::DSL
            tdoc "@ConfigHash"
            def illegal; {}; end
          end
          Typedocs.context(@ns::C).defined_type!("@ConfigHash")
        }.to raise_error Typedocs::NoSuchType
      end
    end
  end
end


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Security.Principal;
using IdentityModel;
using Kachuwa.Core;
using Kachuwa.Web;
using Microsoft.AspNetCore.Http;

namespace Kachuwa.IdentityServer.Extension
{
    public static class IdentityExtensions
    {

        public static string GetSessionId(this IIdentity identity)
        {
            try
            {
                var _context = ContextResolver.Context;
                if (_context.User.Identity.IsAuthenticated)
                {

                    IEnumerable<Claim> claims = ((ClaimsIdentity)identity).Claims;
                    foreach (var claim in claims)
                    {
                        if (claim.Type == ApplicationClaim.SessionCode)
                            return claim.Value;
                    }

                }
                else
                {
                    var cookie = "";
                    _context.Request.Cookies.TryGetValue(ApplicationClaim.SessionCode, out cookie);
                    if (cookie != null)
                    {
                        return cookie;

                    }
                    else
                    {
                        var guid = Guid.NewGuid().ToString();

                        CookieOptions option = new CookieOptions
                        {
                            HttpOnly = true,
                            Expires = DateTime.Now.AddMinutes(20)
                        };

                        _context.Response.Cookies.Append(ApplicationClaim.SessionCode, guid, option);
                        return guid;
                    }
                }
                return "";
            }
            catch (Exception ex)
            {

                throw ex;
            }

        }
        public static long GetIdentityUserId(this IIdentity identity)
        {
            var claim = ((ClaimsIdentity)identity).FindFirst("IdUid");
            // Test for null to avoid issues during local testing
            return (claim != null) ? Convert.ToInt64(claim.Value) : 0;
        }
        public static string GetUserName(this IIdentity identity)
        {
            var claim = ((ClaimsIdentity)identity).FindFirst(JwtClaimTypes.Name);
            return (claim != null) ? claim.Value : "";
        }
        public static IEnumerable<string> GetRoles(this IIdentity identity)
        {
            var roles = ((ClaimsIdentity)identity).Claims
                .Where(c => c.Type == JwtClaimTypes.Role || c.Type == ClaimTypes.Role)
                .Select(c => c.Value);
            return roles;
        }
        public static string GetFullName(this IIdentity identity)
        {
            var fn = ((ClaimsIdentity)identity).FindFirst("fn");

            return (fn != null) ? fn.Value : "";
        }
        public static string GetPicture(this IIdentity identity)
        {
            var picture = ((ClaimsIdentity)identity).FindFirst("picture");

            return picture == null ? "" : picture.Value;
        }

        public static long GetAppUserUserId(this IIdentity identity)
        {
            //TODO: AppUser ID
            var claim = ((ClaimsIdentity)identity).FindFirst("appuserid");
            // Test for null to avoid issues during local testing
            return (claim != null) ? Convert.ToInt64(claim.Value) : 0;
        }

    }

    public static class UserHelper
    {

        public static string UserName
        {
            get
            {
                string name = GetClaimsValue(ClaimTypes.Name);
                if (string.IsNullOrEmpty(name))
                    return "guestuser";
                return name;
            }
        }

        public static bool IsAdmin => ContextResolver.Context.User.IsInRole("Admin");

        public static string GetClaimsValue(string key)
        {
            try
            {
                var _context = ContextResolver.Context;
                if (_context.User.Identity.IsAuthenticated)
                {
                    var identity = (ClaimsIdentity)_context.User.Identity;
                    IEnumerable<Claim> claims = identity.Claims;
                    foreach (var claim in claims)
                    {
                        if (claim.Type == key)
                            return claim.Value;
                    }

                }
                return "";
            }
            catch (Exception ex)
            {

                throw ex;
            }

        }

        public static string GetClaimsValue(Claim customClaim)
        {
            try
            {
                var _context = ContextResolver.Context;
                if (_context.User.Identity.IsAuthenticated)
                {
                    var identity = (ClaimsIdentity)_context.User.Identity;
                    IEnumerable<Claim> claims = identity.Claims;
                    foreach (var claim in claims)
                    {
                        if (claim.Type == customClaim.Type)
                            return claim.Value;
                    }

                }
                return "";
            }
            catch (Exception ex)
            {

                throw ex;
            }

        }

        public static IEnumerable<Claim> GetClaims()
        {
            try
            {
                var _context = ContextResolver.Context;
                if (_context.User.Identity.IsAuthenticated)
                {
                    var identity = (ClaimsIdentity)_context.User.Identity;
                    return identity.Claims;

                }
                return null;
            }
            catch (Exception ex)
            {

                throw ex;
            }

        }
        private static Claim FindClaim(string value)
        {
            try
            {
                var _context = ContextResolver.Context;
                var user = _context.User as ClaimsPrincipal;
                var claim = (from c in user.Claims
                             where c.Value == value
                             select c).Single();
                return claim;
            }
            catch (InvalidOperationException)
            {
                return null;
            }
        }
        public static void AddRole(string role)
        {
            if (FindClaim(role) != null)
                return;
            var _context = ContextResolver.Context;
            var user = _context.User as ClaimsPrincipal;
            if (user == null) return;

            var claimId = new ClaimsIdentity();
            claimId.AddClaim(new Claim(ClaimTypes.Role, role));
            user.AddIdentity(claimId);
        }

        public static void AddClaim(string claimtype, string value)
        {
            var _context = ContextResolver.Context;
            var user = _context.User as ClaimsPrincipal;
            if (user == null) return;
            var claimId = new ClaimsIdentity();
            claimId.AddClaim(new Claim(claimtype, value));
            user.AddIdentity(claimId);
        }

        public static void RemoveClaim(string value)
        {
            var _context = ContextResolver.Context;
            var user = _context.User as ClaimsPrincipal;
            var identity = user.Identity as ClaimsIdentity;
            var claim = (from c in user.Claims
                         where c.Value == value
                         select c).Single();
            identity.RemoveClaim(claim);
        }

        public static int GetCustomerId()
        {
            try
            {
                var _context = ContextResolver.Context;
                if (_context.User.Identity.IsAuthenticated)
                {
                    var identity = (ClaimsIdentity)_context.User.Identity;
                    IEnumerable<Claim> claims = identity.Claims;
                    foreach (var claim in claims)
                    {
                        if (claim.Type == ApplicationClaim.CustomerId)
                            return Int32.Parse(claim.Value);
                    }

                }
                return 0;
            }
            catch (Exception ex)
            {

                throw ex;
            }

        }
    }

}


text:
'use strict';

module.exports = {
  up: function (queryInterface, Sequelize) {
    /*
      Add altering commands here.
      Return a promise to correctly handle asynchronicity.

      Example:
      return queryInterface.createTable('users', { id: Sequelize.INTEGER });
    */
    return queryInterface.createTable('posts_content', {
      // secondary keys
      post_id: {
        type: Sequelize.INTEGER,
        references: {
          key: 'id',
          model: 'posts'
        }
      },
      rating: {
        defaultValue: 0,
        type: Sequelize.FLOAT
      },
      price: {
        defaultValue: 0,
        type: Sequelize.INTEGER
      }
    })
  },

  down: function (queryInterface, Sequelize) {
    /*
      Add reverting commands here.
      Return a promise to correctly handle asynchronicity.

      Example:
      return queryInterface.dropTable('users');
    */
  }
};


text:
<template name="message">

			{{date}}

		{{#if avatar}}
			{{#if avatarFromUsername}}
				<button class="thumb user-card-message" data-username="{{u.username}}" tabindex="1">{{> avatar username=avatarFromUsername}}</button>
			{{else}}
				<button class="thumb user-card-message" data-username="{{u.username}}" tabindex="1">

				</button>
			{{/if}}
		{{else}}
			{{#if emoji}}
				<button class="thumb user-card-message" data-username="{{u.username}}" tabindex="1">

						{{{getEmoji emoji}}}

				</button>
			{{else}}
				<button class="thumb user-card-message" data-username="{{u.username}}" tabindex="1">{{> avatar username=u.username}}</button>
			{{/if}}
		{{/if}}
		{{#if alias}}
			<button type="button" class="user user-card-message" data-username="{{u.username}}" tabindex="1">{{alias}} @{{u.username}}</button>
		{{else}}
			<button type="button" class="user user-card-message" data-username="{{u.username}}" tabindex="1">{{u.username}}</button>
		{{/if}}

			{{#each roleTags}}
				{{description}}
			{{/each}}
			{{#if isBot}}
				BOT
			{{/if}}
			{{#if edited}}

					{{time}}

					{{_ "by"}}
					<button class="thumb thumb-small user-card-message" data-username="{{editedBy}}" tabindex="1">
						{{> avatar username=editedBy}}
					</button>

			{{else}}
				{{time}}
			{{/if}}
			{{#if private}}
				{{_ "Only_you_can_see_this_message"}}
			{{/if}}

			{{{body}}}
			{{#if hasOembed}}
				{{#each urls}}
					{{injectIndex . @index}}
					{{> oembedBaseWidget}}
				{{/each}}
			{{/if}}
			{{#each attachments}}
				{{injectIndex . @index}}
				{{> messageAttachment}}
			{{/each}}

			{{#each actionLink in actionLinks}}

						{{#if actionLink.icon}}

						{{/if}}
						{{actionLink.label}}

			{{/each}}

			{{#each reaction in reactions}}

					{{> renderEmoji reaction.emoji}}
					{{reaction.count}}

							{{reaction.usernames}} {{reaction.reaction}}

			{{/each}}

</template>