text:
/*
 * NAME
 *	shmctl02.c
 *
 * DESCRIPTION
 *	shmctl02 - check for EACCES, EFAULT and EINVAL errors
 *
 * ALGORITHM
 *	create a shared memory segment without read or write permissions
 *	create a shared memory segment with read & write permissions
 *	loop if that option was specified
 *	  call shmctl() using five different invalid cases
 *	  check the errno value
 *	    issue a PASS message if we get EACCES, EFAULT or EINVAL
 *	  otherwise, the tests fails
 *	    issue a FAIL message
 *	call cleanup
 *
 * USAGE:  <for command-line>
 *  shmctl02 [-c n] [-e] [-i n] [-I x] [-P x] [-t]
 *     where,  -c n : Run n copies concurrently.
 *             -e   : Turn on errno logging.
 *	       -i n : Execute test n times.
 *	       -I x : Execute test for x seconds.
 *	       -P x : Pause for x seconds between iterations.
 *	       -t   : Turn on syscall timing.
 *
 * HISTORY
 *	03/2001 - Written by Wayne Boyer
 *
 * RESTRICTIONS
 *	none
 */

#include "ipcshm.h"
#include <pwd.h>

char *TCID = "shmctl02";
extern int Tst_count;
char nobody_uid[] = "nobody";
struct passwd *ltpuser;

int exp_enos[] = {EPERM, EACCES, EFAULT, EINVAL, 0};  /* 0 terminated list  */
						      /* of expected errnos */
int shm_id_1 = -1;
int shm_id_2 = -1;
int shm_id_3 = -1;

struct shmid_ds buf;

struct test_case_t {
	int *shmid;
	int cmd;
	struct shmid_ds *sbuf;
	int error;
} TC[] = {
	/* EACCES - segment has no read or write permissions */
	{&shm_id_1, IPC_STAT, &buf, EACCES},

	/* EFAULT - IPC_SET & buf isn't valid */
	{&shm_id_2, IPC_SET, (struct shmid_ds *)-1, EFAULT},

	/* EFAULT - IPC_STAT & buf isn't valid */
	{&shm_id_2, IPC_STAT, (struct shmid_ds *)-1, EFAULT},

	/* EINVAL - the shmid is not valid */
	{&shm_id_3, IPC_STAT, &buf, EINVAL},

	/* EINVAL - the command is not valid */
	{&shm_id_2, -1, &buf, EINVAL},

};

int TST_TOTAL = (sizeof(TC) / sizeof(*TC));

int main(int ac, char **av)
{
	int lc;				/* loop counter */
	char *msg;			/* message returned from parse_opts */
	int i;

	/* parse standard options */
	if ((msg = parse_opts(ac, av, (option_t *)NULL, NULL)) != (char *)NULL){
		tst_brkm(TBROK, cleanup, "OPTION PARSING ERROR - %s", msg);
	}

	setup();			/* global setup */

	/* The following loop checks looping state if -i option given */

	for (lc = 0; TEST_LOOPING(lc); lc++) {
		/* reset Tst_count in case we are looping */
		Tst_count = 0;

		/* loop through the test cases */
		for (i=0; i<TST_TOTAL; i++) {
			/*
			 * use the TEST() macro to make the call
			 */

			TEST(shmctl(*(TC[i].shmid), TC[i].cmd, TC[i].sbuf));

			if ((TEST_RETURN != -1)&&(i < 5)) {
				tst_resm(TFAIL, "call succeeded unexpectedly");
				continue;
			}

			TEST_ERROR_LOG(TEST_ERRNO);

			if (TEST_ERRNO == TC[i].error) {
				tst_resm(TPASS, "expected failure - errno = "
					 "%d : %s", TEST_ERRNO,
					 strerror(TEST_ERRNO));
			} else {
				if (i >= 5)
					tst_resm(TCONF,"shmctl() did not fail for non-root user."
                                                 "This may be okay for your distribution.");
				else
					tst_resm(TFAIL, "call failed with an "
						 "unexpected error - %d : %s",
					 	TEST_ERRNO, strerror(TEST_ERRNO));
			}
		}
	}

	cleanup();

	/*NOTREACHED*/
	return(0);
}

/*
 * setup() - performs all the ONE TIME setup for this test.
 */
void
setup(void)
{
	/* Switch to nobody user for correct error code collection */
        if (geteuid() != 0) {
                tst_brkm(TBROK, tst_exit, "Test must be run as root");
        }
	/* capture signals */
	tst_sig(NOFORK, DEF_HANDLER, cleanup);

	/* Set up the expected error numbers for -e option */
	TEST_EXP_ENOS(exp_enos);

	/* Pause if that option was specified */
	TEST_PAUSE;

	/*
	 * Create a temporary directory and cd into it.
	 * This helps to ensure that a unique msgkey is created.
	 * See ../lib/libipc.c for more information.
	 */
	tst_tmpdir();

         ltpuser = getpwnam(nobody_uid);
         if (seteuid(ltpuser->pw_uid) == -1) {
                tst_resm(TINFO, "setuid failed to "
                         "to set the effective uid to %d",
                         ltpuser->pw_uid);
                perror("seteuid");
         }

	/* get an IPC resource key */
	shmkey = getipckey();

	/* create a shared memory segment without read or write permissions */
	if ((shm_id_1 = shmget(shmkey, SHM_SIZE, IPC_CREAT | IPC_EXCL)) == -1) {
		tst_brkm(TBROK, cleanup, "couldn't create shared memory "
			 "segment #1 in setup()");
	}

	/* create a shared memory segment with read and write permissions */
	if ((shm_id_2 = shmget(shmkey + 1, SHM_SIZE, IPC_CREAT | IPC_EXCL |
	     SHM_RW)) == -1) {
		tst_brkm(TBROK, cleanup, "couldn't create shared memory "
			 "segment #2 in setup()");
	}
}

/*
 * cleanup() - performs all the ONE TIME cleanup for this test at completion
 * 	       or premature exit.
 */
void
cleanup(void)
{
	/* if they exist, remove the shared memory resources */
	rm_shm(shm_id_1);
	rm_shm(shm_id_2);

	if (seteuid(0) == -1) {
		tst_resm(TINFO, "setuid failed to "
				"to set the effective uid to %d",
				ltpuser->pw_uid);
		perror("seteuid");
	}

	/* Remove the temporary directory */
	tst_rmdir();

	/*
	 * print timing stats if that option was specified.
	 * print errno log if that option was specified.
	 */
	TEST_CLEANUP;

	/* exit with return code appropriate for results */
	tst_exit();
}


text:
// Copyright (c) Microsoft.  All Rights Reserved.  Licensed under the Apache License, Version 2.0.  See License.txt in the project root for license information.

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Diagnostics;
using EnvDTE;
using Microsoft.CodeAnalysis;
using Roslyn.Utilities;

namespace Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem
{
    using Workspace = Microsoft.CodeAnalysis.Workspace;

    internal partial class MiscellaneousFilesWorkspace
    {
        private sealed class HostProject : IVisualStudioHostProject
        {
            public ProjectId Id { get; }
            public string Language { get; }

            internal IVisualStudioHostDocument Document { get; set; }

            private readonly string _assemblyName;
            private readonly ParseOptions _parseOptionsOpt;
            private readonly CompilationOptions _compilationOptionsOpt;
            private readonly IEnumerable<MetadataReference> _metadataReferences;
            private readonly VersionStamp _version;
            private readonly Workspace _workspace;

            public HostProject(Workspace workspace, SolutionId solutionId, string languageName, ParseOptions parseOptionsOpt, CompilationOptions compilationOptionsOpt, IEnumerable<MetadataReference> metadataReferences)
            {
                Debug.Assert(workspace != null);
                Debug.Assert(languageName != null);
                Debug.Assert(metadataReferences != null);

                _workspace = workspace;
                _parseOptionsOpt = parseOptionsOpt;
                _compilationOptionsOpt = compilationOptionsOpt;

                Id = ProjectId.CreateNewId(debugName: "Miscellaneous Files");
                Language = languageName;

                // the assembly name must be unique for each collection of loose files.  since the name doesn't matter
                // a random GUID can be used.
                _assemblyName = Guid.NewGuid().ToString("N");

                _version = VersionStamp.Create();
                _metadataReferences = metadataReferences;
            }

            public ProjectInfo CreateProjectInfoForCurrentState()
            {
                var info = ProjectInfo.Create(
                    Id,
                    _version,
                    name: ServicesVSResources.Miscellaneous_Files,
                    assemblyName: _assemblyName,
                    language: Language,
                    filePath: null,
                    compilationOptions: _compilationOptionsOpt,
                    parseOptions: _parseOptionsOpt,
                    documents: SpecializedCollections.EmptyEnumerable<DocumentInfo>(),
                    projectReferences: SpecializedCollections.EmptyEnumerable<ProjectReference>(),
                    metadataReferences: _metadataReferences,
                    isSubmission: false,
                    hostObjectType: null);

                // misc project will never be fully loaded since, by defintion, it won't know
                // what the full set of information is.
                return info.WithHasAllInformation(hasAllInformation: false);
            }

            public Microsoft.VisualStudio.Shell.Interop.IVsHierarchy Hierarchy => null;

            public Guid Guid => Guid.Empty;

            public string ProjectType => Constants.vsProjectKindMisc;

            public Workspace Workspace => _workspace;

            public string DisplayName => "MiscellaneousFiles";
            public string ProjectSystemName => DisplayName;

            public IVisualStudioHostDocument GetDocumentOrAdditionalDocument(DocumentId id)
            {
                if (id == this.Document.Id)
                {
                    return this.Document;
                }
                else
                {
                    return null;
                }
            }

            public IVisualStudioHostDocument GetCurrentDocumentFromPath(string filePath)
            {
                if (Document == null || !filePath.Equals(Document.Key.Moniker, StringComparison.OrdinalIgnoreCase))
                {
                    return null;
                }

                return Document;
            }

            public bool ContainsFile(string moniker)
            {
                // We may have created our project but haven't created the document yet for it
                if (Document == null)
                {
                    return false;
                }

                return moniker.Equals(Document.Key.Moniker, StringComparison.OrdinalIgnoreCase);
            }
        }
    }
}

redpajama_set_name: RedPajamaGithub


text:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">

    <View
        android:layout_width="match_parent"
        android:layout_height="1dp"
        android:background="?attr/threadIdentationColor" />

    <LinearLayout
        android:id="@+id/comment_item_row"
        android:orientation="horizontal"
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <View
            android:id="@+id/indentation"
            android:background="?attr/threadIdentationColor"
            android:layout_width="@dimen/comment_indentation_margin"
            android:layout_height="match_parent" />

        <TextView
            android:id="@+id/comment_more"
            android:layout_width="fill_parent"
            android:layout_height="@dimen/comment_data_height"
            android:gravity="center|center"
            android:textColor="?attr/textColorSecondary"
            android:textSize="@dimen/comment_more_text_size"
            android:background="?attr/contentPrimaryBackgroundColor"
            android:maxLines="1"
            tools:text="view 10 more comments" />

    </LinearLayout>

</LinearLayout>


text:
/**---------------------------------------------------------------------------------------------------------------------
 * tgi-interface-bootstrap/test/html-play.js
 **/
var tgi = TGI.CORE();
var bs = new (TGI.INTERFACE.BOOTSTRAP().BootstrapInterface)({vendor: Date}); // no vendor function TODO wtf
var app = new tgi.Application({interface: bs});
var nav = new tgi.Presentation();
app.setInterface(bs);
app.set('brand', 'TGI Play');
app.setPresentation(nav);

/**
 * Commands
 */
var name,
  isDude,
  color;
var userQueryCommand = new tgi.Command({
  name: 'User Queries', type: 'Procedure', contents: new tgi.Procedure({
    tasks: [
      function () {
        var task = this;
        app.ask('What is first your name?', new tgi.Attribute({name: 'name', value: 'John Doe'}), function (reply) {
          if (!reply)
            userQueryCommand.abort();
          else {
            name = reply;
            task.complete();
          }
        });
      },
      function () {
        var task = this;
        app.yesno(name + ' are you a dude?', function (reply) {
          isDude = reply;
          task.complete();
        });
      },
      function () {
        var task = this;
        app.choose('OK ' + (isDude ? 'mr. ' : 'ms. ') + name + ', please pick a color.\nany color..\n\nplease pick one now', ['red', 'green', 'blue', 'black', 'white'], function (choice) {
          if (!choice)
            userQueryCommand.abort();
          else {
            color = choice;
            task.complete();
          }
        });
      },
      function () {
        var task = this;
        app.ok(name + ' is a ' + color + (isDude ? ' dude.' : ' chick.') + '\n\n*** THE END ***', function () {
          task.complete();
        });
      }
    ]
  })
});
userQueryCommand.onEvent('*', function (event) {
  if (event == 'Aborted') {
    app.info('ok fine be that way');
  }
});
// Create a function command
var funcCommand = new tgi.Command({name: 'Function', type: 'Function', contents: function () {
  window.alert("Hello! I am an alert box!!");
}});

// Create a procedure command
var procCommand = new tgi.Command({name: 'Procedure', type: 'Procedure', contents: new tgi.Procedure()});

// Stub commands
var stubMoe = new tgi.Command({name: 'Moe', description: 'Moses Horwitz', theme: 'primary', icon: 'fa-coffee'});
var stubLarry = new tgi.Command({name: 'Larry', description: 'Louis Fienberg', theme: 'info', icon: 'fa-beer'});
var stubCurly = new tgi.Command({name: 'Curly', description: 'Jerome Lester Horwitz', theme: 'warning', icon: 'fa-glass'});

// Create sample presentation
var pres = new tgi.Presentation();
pres.set('contents', [
  '####INSTRUCTIONS\n\n' +
  'Enter some stuff then push some buttons.',
  '-',
  new tgi.Attribute({name: 'firstName', label: 'First Name', type: 'String(20)', value: 'John'}),
  new tgi.Attribute({name: 'lastName', label: 'Last Name', type: 'String(25)', value: 'Doe'}),
  new tgi.Attribute({name: 'address', label: 'Address', type: 'String(50)'}),
  new tgi.Attribute({name: 'city', label: 'City', type: 'String(35)'}),
  new tgi.Attribute({name: 'state', label: 'State', type: 'String(2)'}),
  new tgi.Attribute({name: 'zip', label: 'Zip Code', type: 'String(10)', placeHolder: '#####-####'}),
  new tgi.Attribute({name: 'birthDate', label: 'Birth Date', type: 'Date', value: new Date()}),
  new tgi.Attribute({name: 'drink', type: 'String(25)', quickPick:['Water','Coke','Coffee']}),
  new tgi.Attribute({name: 'sex', type: 'Boolean', value: true}),
  new tgi.Attribute({name: 'drugs', type: 'Boolean', value: false}),
  new tgi.Attribute({name: 'IQ', type: 'Number', value: 100}),
  '-',
  funcCommand,
  procCommand,
  stubMoe,
  stubLarry,
  stubCurly

]);
var presCommand = new tgi.Command({name: 'Presentation', type: 'Presentation', contents: pres});
var commands =   new tgi.Command({name: 'Commands', type: 'Menu', contents: [
  'Command Types',
  '-',
  new tgi.Command({name: 'Stub', type: 'Stub'}),
  presCommand,
  funcCommand,
  procCommand
]});

/**
 * Navigation
 */
nav.set('contents', [
  new tgi.Command({name: 'Stooges', type: 'Menu', theme: 'info', icon: 'fa-info-circle', contents: [
    'The Three Stooges',
    '-',
    stubMoe,
    stubLarry,
    stubCurly
  ]}),
  commands,
  userQueryCommand,
  new tgi.Command({name: 'Info', type: 'Function', theme: 'info', icon: 'fa-info-circle', contents: function () {
    app.info('The current date and time is ' + new Date());
  }}),
  new tgi.Command({name: 'Done', type: 'Function', theme: 'success', icon: 'fa-check', contents: function () {
    app.done('Soups Done!');
  }}),
  new tgi.Command({name: 'Warning', type: 'Function', theme: 'warning', icon: 'fa-exclamation-circle', contents: function () {
    app.warn('Do not try this at home.');
  }}),
  new tgi.Command({name: 'Error', type: 'Function', theme: 'danger', icon: 'fa-exclamation-triangle', contents: function () {
    app.err('You broke it now!');
  }}),
  '-',
  new tgi.Command({name: 'Account'})
]);

/**
 * Start the app
 */
app.start(function (request) {
  app.info('' + request);
});


text:
'''Module to retrieve coordinates of a given settlement'''

from pkg_resources import resource_filename

from whoosh import index
from whoosh.qparser import MultifieldParser
from whoosh.query import Term

# load the index and create the settlement/alpha2 query parser
ixPath = resource_filename(__name__, 'data/geoindex')
ix = index.open_dir(ixPath)
parser = MultifieldParser(['lower', 'asci', 'alias',], ix.schema)

def geocodeAll(settlement, alpha2=None):
	'''
	Yield all geographical coordinates of a given settlement name,
	optionally restricting search results to a specified country.

	:param settlement: the settlement name to search for
	:param alpha2: the country to restrict search results to
	'''
	if not settlement:
		return
	lower = settlement.lower()
	text = "'" + lower + "' OR '" + lower.replace(' ', '-') + "'"
	query = parser.parse(text)
	filterTerm = Term('alpha2', alpha2) if alpha2 else None
	with ix.searcher() as searcher:
		results = searcher.search(query, limit=None, filter=filterTerm)
		for hit in results:
			yield {
				'lat': float(hit['lat']),
				'lon': float(hit['lon']),
				'locality': hit['name'],
			}

def geocode(settlement, alpha2=None):
	'''
	Get the most accurate geographical coordinate of a given settlement
	name, optionally restricting search results to a specified country.

	:param settlement: the settlement name to search for
	:param alpha2: the country to restrict search results to
	'''
	try:
		return next(geocodeAll(settlement, alpha2))
	except StopIteration:
		return


text:
var events = require("events"),
    util = require("../util"),
    hiredis = require("hiredis");

exports.debug_mode = false;
exports.name = "hiredis";

function HiredisReplyParser(options) {
    this.name = exports.name;
    this.options = options || {};
    this.reset();
    events.EventEmitter.call(this);
}

util.inherits(HiredisReplyParser, events.EventEmitter);

exports.Parser = HiredisReplyParser;

HiredisReplyParser.prototype.reset = function () {
    this.reader = new hiredis.Reader({
        return_buffers: this.options.return_buffers || false
    });
};

HiredisReplyParser.prototype.execute = function (data) {
    var reply;
    this.reader.feed(data);
    while (true) {
        try {
            reply = this.reader.get();
        } catch (err) {
            this.emit("error", err);
            break;
        }

        if (reply === undefined) {
            break;
        }

        if (reply && reply.constructor === Error) {
            this.emit("reply error", reply);
        } else {
            this.emit("reply", reply);
        }
    }
};


text:
.class Lcom/htc/weather/animations/Anim21$3;
.super Lcom/htc/weather/animations/ImageViewAndAnimationSets;
.source "Anim21.java"

# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/htc/weather/animations/Anim21;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

# instance fields
.field final synthetic this$0:Lcom/htc/weather/animations/Anim21;

# direct methods
.method constructor <init>(Lcom/htc/weather/animations/Anim21;)V
    .locals 0
    .parameter

    .prologue
    .line 220
    iput-object p1, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    invoke-direct {p0}, Lcom/htc/weather/animations/ImageViewAndAnimationSets;-><init>()V

    return-void
.end method

# virtual methods
.method protected initialImageView()Landroid/widget/ImageView;
    .locals 6

    .prologue
    const/high16 v3, 0x3f80

    const/4 v5, -0x2

    .line 224
    new-instance v0, Landroid/widget/ImageView;

    iget-object v1, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget-object v1, v1, Lcom/htc/weather/animations/WeatherAnimationData;->mContext:Landroid/content/Context;

    invoke-direct {v0, v1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    .line 225
    .local v0, imageView:Landroid/widget/ImageView;
    iget-object v1, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget-object v1, v1, Lcom/htc/weather/animations/WeatherAnimationData;->mContext:Landroid/content/Context;

    const v2, 0x20803d4

    invoke-static {v1, v2}, Lcom/htc/weather/AnimImages;->getResBitmap(Landroid/content/Context;I)Landroid/graphics/Bitmap;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    .line 227
    iget-object v1, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget-object v1, v1, Lcom/htc/weather/animations/WeatherAnimationData;->mEnv:Lcom/htc/weather/EnvSetting$Env;

    iget v1, v1, Lcom/htc/weather/EnvSetting$Env;->scale_x_:F

    cmpl-float v1, v1, v3

    if-nez v1, :cond_0

    iget-object v1, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget-object v1, v1, Lcom/htc/weather/animations/WeatherAnimationData;->mEnv:Lcom/htc/weather/EnvSetting$Env;

    iget v1, v1, Lcom/htc/weather/EnvSetting$Env;->scale_y_:F

    cmpl-float v1, v1, v3

    if-nez v1, :cond_0

    .line 228
    new-instance v1, Landroid/widget/AbsoluteLayout$LayoutParams;

    iget-object v2, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget v2, v2, Lcom/htc/weather/animations/WeatherAnimationData;->shift_x_:I

    add-int/lit8 v2, v2, 0x1e

    iget-object v3, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget-object v3, v3, Lcom/htc/weather/animations/WeatherAnimationData;->mEnv:Lcom/htc/weather/EnvSetting$Env;

    iget v3, v3, Lcom/htc/weather/EnvSetting$Env;->offset_x_:I

    add-int/2addr v2, v3

    iget-object v3, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget v3, v3, Lcom/htc/weather/animations/WeatherAnimationData;->shift_y_:I

    add-int/lit8 v3, v3, 0x32

    iget-object v4, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget-object v4, v4, Lcom/htc/weather/animations/WeatherAnimationData;->mEnv:Lcom/htc/weather/EnvSetting$Env;

    iget v4, v4, Lcom/htc/weather/EnvSetting$Env;->offset_y_:I

    add-int/2addr v3, v4

    invoke-direct {v1, v5, v5, v2, v3}, Landroid/widget/AbsoluteLayout$LayoutParams;-><init>(IIII)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 238
    :goto_0
    return-object v0

    .line 233
    :cond_0
    new-instance v1, Landroid/widget/AbsoluteLayout$LayoutParams;

    iget-object v2, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget v2, v2, Lcom/htc/weather/animations/WeatherAnimationData;->shift_x_:I

    add-int/lit8 v2, v2, 0x1e

    iget-object v3, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget-object v3, v3, Lcom/htc/weather/animations/WeatherAnimationData;->mEnv:Lcom/htc/weather/EnvSetting$Env;

    iget v3, v3, Lcom/htc/weather/EnvSetting$Env;->offset_x_:I

    add-int/2addr v2, v3

    int-to-float v2, v2

    iget-object v3, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget-object v3, v3, Lcom/htc/weather/animations/WeatherAnimationData;->mEnv:Lcom/htc/weather/EnvSetting$Env;

    iget v3, v3, Lcom/htc/weather/EnvSetting$Env;->scale_x_:F

    mul-float/2addr v2, v3

    float-to-int v2, v2

    iget-object v3, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget v3, v3, Lcom/htc/weather/animations/WeatherAnimationData;->shift_y_:I

    add-int/lit8 v3, v3, 0x32

    iget-object v4, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget-object v4, v4, Lcom/htc/weather/animations/WeatherAnimationData;->mEnv:Lcom/htc/weather/EnvSetting$Env;

    iget v4, v4, Lcom/htc/weather/EnvSetting$Env;->offset_y_:I

    add-int/2addr v3, v4

    int-to-float v3, v3

    iget-object v4, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget-object v4, v4, Lcom/htc/weather/animations/WeatherAnimationData;->mEnv:Lcom/htc/weather/EnvSetting$Env;

    iget v4, v4, Lcom/htc/weather/EnvSetting$Env;->scale_y_:F

    mul-float/2addr v3, v4

    float-to-int v3, v3

    invoke-direct {v1, v5, v5, v2, v3}, Landroid/widget/AbsoluteLayout$LayoutParams;-><init>(IIII)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    goto :goto_0
.end method

.method protected initialInAnimationSet()Landroid/view/animation/AnimationSet;
    .locals 14

    .prologue
    const/high16 v1, 0x3f80

    const v13, 0x3f4ccccd

    const-wide/16 v5, 0x3de

    const-wide/16 v11, 0x21

    const/high16 v3, 0x4234

    .line 243
    new-instance v10, Landroid/view/animation/AnimationSet;

    const/4 v0, 0x0

    invoke-direct {v10, v0}, Landroid/view/animation/AnimationSet;-><init>(Z)V

    .line 244
    .local v10, inAnimationSet:Landroid/view/animation/AnimationSet;
    iget-object v0, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget-object v0, v0, Lcom/htc/weather/animations/WeatherAnimationData;->mEnv:Lcom/htc/weather/EnvSetting$Env;

    iget v0, v0, Lcom/htc/weather/EnvSetting$Env;->scale_x_:F

    cmpl-float v0, v0, v1

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget-object v0, v0, Lcom/htc/weather/animations/WeatherAnimationData;->mEnv:Lcom/htc/weather/EnvSetting$Env;

    iget v0, v0, Lcom/htc/weather/EnvSetting$Env;->scale_y_:F

    cmpl-float v0, v0, v1

    if-nez v0, :cond_0

    .line 245
    new-instance v0, Lcom/htc/weather/animations/WeatherTranslateAnimation;

    iget-object v1, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget v1, v1, Lcom/htc/weather/animations/WeatherAnimationData;->shift_x_:I

    int-to-float v1, v1

    add-float/2addr v1, v3

    iget-object v2, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget v2, v2, Lcom/htc/weather/animations/WeatherAnimationData;->shift_x_:I

    int-to-float v2, v2

    add-float/2addr v2, v3

    const/high16 v3, 0x41f0

    iget-object v4, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget v4, v4, Lcom/htc/weather/animations/WeatherAnimationData;->shift_y_:I

    int-to-float v4, v4

    add-float/2addr v3, v4

    const/high16 v4, 0x428c

    iget-object v7, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget v7, v7, Lcom/htc/weather/animations/WeatherAnimationData;->shift_y_:I

    int-to-float v7, v7

    add-float/2addr v4, v7

    new-instance v7, Landroid/view/animation/LinearInterpolator;

    invoke-direct {v7}, Landroid/view/animation/LinearInterpolator;-><init>()V

    iget-object v8, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget-wide v8, v8, Lcom/htc/weather/animations/WeatherAnimationData;->delay_:J

    mul-long/2addr v8, v11

    invoke-direct/range {v0 .. v9}, Lcom/htc/weather/animations/WeatherTranslateAnimation;-><init>(FFFFJLandroid/view/animation/Interpolator;J)V

    invoke-virtual {v10, v0}, Landroid/view/animation/AnimationSet;->addAnimation(Landroid/view/animation/Animation;)V

    .line 255
    :goto_0
    new-instance v0, Lcom/htc/weather/animations/WeatherScaleAnimation;

    iget-object v1, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget v1, v1, Lcom/htc/weather/animations/WeatherAnimationData;->scale_x_:F

    mul-float/2addr v1, v13

    iget-object v2, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget v2, v2, Lcom/htc/weather/animations/WeatherAnimationData;->scale_x_:F

    iget-object v3, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget v3, v3, Lcom/htc/weather/animations/WeatherAnimationData;->scale_y_:F

    mul-float/2addr v3, v13

    iget-object v4, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget v4, v4, Lcom/htc/weather/animations/WeatherAnimationData;->scale_y_:F

    new-instance v7, Landroid/view/animation/DecelerateInterpolator;

    invoke-direct {v7}, Landroid/view/animation/DecelerateInterpolator;-><init>()V

    iget-object v8, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget-wide v8, v8, Lcom/htc/weather/animations/WeatherAnimationData;->delay_:J

    mul-long/2addr v8, v11

    invoke-direct/range {v0 .. v9}, Lcom/htc/weather/animations/WeatherScaleAnimation;-><init>(FFFFJLandroid/view/animation/Interpolator;J)V

    invoke-virtual {v10, v0}, Landroid/view/animation/AnimationSet;->addAnimation(Landroid/view/animation/Animation;)V

    .line 259
    new-instance v2, Lcom/htc/weather/animations/WeatherAlphaAnimation;

    const/4 v3, 0x0

    iget-object v0, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget v4, v0, Lcom/htc/weather/animations/WeatherAnimationData;->alpha_:F

    new-instance v7, Landroid/view/animation/DecelerateInterpolator;

    invoke-direct {v7}, Landroid/view/animation/DecelerateInterpolator;-><init>()V

    iget-object v0, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget-wide v0, v0, Lcom/htc/weather/animations/WeatherAnimationData;->delay_:J

    mul-long v8, v0, v11

    invoke-direct/range {v2 .. v9}, Lcom/htc/weather/animations/WeatherAlphaAnimation;-><init>(FFJLandroid/view/animation/Interpolator;J)V

    invoke-virtual {v10, v2}, Landroid/view/animation/AnimationSet;->addAnimation(Landroid/view/animation/Animation;)V

    .line 263
    const/4 v0, 0x1

    invoke-virtual {v10, v0}, Landroid/view/animation/AnimationSet;->setFillAfter(Z)V

    .line 265
    return-object v10

    .line 250
    :cond_0
    new-instance v0, Lcom/htc/weather/animations/WeatherTranslateAnimation;

    iget-object v1, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget v1, v1, Lcom/htc/weather/animations/WeatherAnimationData;->shift_x_:I

    int-to-float v1, v1

    add-float/2addr v1, v3

    iget-object v2, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget-object v2, v2, Lcom/htc/weather/animations/WeatherAnimationData;->mEnv:Lcom/htc/weather/EnvSetting$Env;

    iget v2, v2, Lcom/htc/weather/EnvSetting$Env;->scale_x_:F

    mul-float/2addr v1, v2

    iget-object v2, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget v2, v2, Lcom/htc/weather/animations/WeatherAnimationData;->shift_x_:I

    int-to-float v2, v2

    add-float/2addr v2, v3

    iget-object v3, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget-object v3, v3, Lcom/htc/weather/animations/WeatherAnimationData;->mEnv:Lcom/htc/weather/EnvSetting$Env;

    iget v3, v3, Lcom/htc/weather/EnvSetting$Env;->scale_x_:F

    mul-float/2addr v2, v3

    const/high16 v3, 0x41f0

    iget-object v4, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget v4, v4, Lcom/htc/weather/animations/WeatherAnimationData;->shift_y_:I

    int-to-float v4, v4

    add-float/2addr v3, v4

    iget-object v4, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget-object v4, v4, Lcom/htc/weather/animations/WeatherAnimationData;->mEnv:Lcom/htc/weather/EnvSetting$Env;

    iget v4, v4, Lcom/htc/weather/EnvSetting$Env;->scale_y_:F

    mul-float/2addr v3, v4

    const/high16 v4, 0x428c

    iget-object v7, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget v7, v7, Lcom/htc/weather/animations/WeatherAnimationData;->shift_y_:I

    int-to-float v7, v7

    add-float/2addr v4, v7

    iget-object v7, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget-object v7, v7, Lcom/htc/weather/animations/WeatherAnimationData;->mEnv:Lcom/htc/weather/EnvSetting$Env;

    iget v7, v7, Lcom/htc/weather/EnvSetting$Env;->scale_y_:F

    mul-float/2addr v4, v7

    new-instance v7, Landroid/view/animation/LinearInterpolator;

    invoke-direct {v7}, Landroid/view/animation/LinearInterpolator;-><init>()V

    iget-object v8, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget-wide v8, v8, Lcom/htc/weather/animations/WeatherAnimationData;->delay_:J

    mul-long/2addr v8, v11

    invoke-direct/range {v0 .. v9}, Lcom/htc/weather/animations/WeatherTranslateAnimation;-><init>(FFFFJLandroid/view/animation/Interpolator;J)V

    invoke-virtual {v10, v0}, Landroid/view/animation/AnimationSet;->addAnimation(Landroid/view/animation/Animation;)V

    goto/16 :goto_0
.end method

.method protected initialOutAnimationSet()Landroid/view/animation/AnimationSet;
    .locals 14

    .prologue
    const/high16 v4, 0x428c

    const-wide/16 v5, 0x294

    const-wide/16 v12, 0x21

    const/high16 v3, 0x4234

    const/high16 v11, 0x3f80

    .line 270
    new-instance v10, Landroid/view/animation/AnimationSet;

    const/4 v0, 0x0

    invoke-direct {v10, v0}, Landroid/view/animation/AnimationSet;-><init>(Z)V

    .line 271
    .local v10, outAnimationSet:Landroid/view/animation/AnimationSet;
    iget-object v0, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget-object v0, v0, Lcom/htc/weather/animations/WeatherAnimationData;->mEnv:Lcom/htc/weather/EnvSetting$Env;

    iget v0, v0, Lcom/htc/weather/EnvSetting$Env;->scale_x_:F

    cmpl-float v0, v0, v11

    if-nez v0, :cond_2

    iget-object v0, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget-object v0, v0, Lcom/htc/weather/animations/WeatherAnimationData;->mEnv:Lcom/htc/weather/EnvSetting$Env;

    iget v0, v0, Lcom/htc/weather/EnvSetting$Env;->scale_y_:F

    cmpl-float v0, v0, v11

    if-nez v0, :cond_2

    .line 272
    new-instance v0, Lcom/htc/weather/animations/WeatherTranslateAnimation;

    iget-object v1, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget v1, v1, Lcom/htc/weather/animations/WeatherAnimationData;->shift_x_:I

    int-to-float v1, v1

    add-float/2addr v1, v3

    iget-object v2, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget v2, v2, Lcom/htc/weather/animations/WeatherAnimationData;->shift_x_:I

    int-to-float v2, v2

    add-float/2addr v2, v3

    iget-object v3, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget v3, v3, Lcom/htc/weather/animations/WeatherAnimationData;->shift_y_:I

    int-to-float v3, v3

    add-float/2addr v3, v4

    const/high16 v4, 0x42dc

    iget-object v7, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget v7, v7, Lcom/htc/weather/animations/WeatherAnimationData;->shift_y_:I

    int-to-float v7, v7

    add-float/2addr v4, v7

    new-instance v7, Landroid/view/animation/LinearInterpolator;

    invoke-direct {v7}, Landroid/view/animation/LinearInterpolator;-><init>()V

    iget-object v8, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget-wide v8, v8, Lcom/htc/weather/animations/WeatherAnimationData;->delay_:J

    mul-long/2addr v8, v12

    invoke-direct/range {v0 .. v9}, Lcom/htc/weather/animations/WeatherTranslateAnimation;-><init>(FFFFJLandroid/view/animation/Interpolator;J)V

    invoke-virtual {v10, v0}, Landroid/view/animation/AnimationSet;->addAnimation(Landroid/view/animation/Animation;)V

    .line 282
    :goto_0
    iget-object v0, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget v0, v0, Lcom/htc/weather/animations/WeatherAnimationData;->scale_x_:F

    cmpl-float v0, v0, v11

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget v0, v0, Lcom/htc/weather/animations/WeatherAnimationData;->scale_y_:F

    cmpl-float v0, v0, v11

    if-eqz v0, :cond_1

    .line 283
    :cond_0
    new-instance v0, Lcom/htc/weather/animations/WeatherScaleAnimation;

    iget-object v1, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget v1, v1, Lcom/htc/weather/animations/WeatherAnimationData;->scale_x_:F

    iget-object v2, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget v2, v2, Lcom/htc/weather/animations/WeatherAnimationData;->scale_x_:F

    iget-object v3, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget v3, v3, Lcom/htc/weather/animations/WeatherAnimationData;->scale_y_:F

    iget-object v4, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget v4, v4, Lcom/htc/weather/animations/WeatherAnimationData;->scale_y_:F

    new-instance v7, Landroid/view/animation/AccelerateInterpolator;

    invoke-direct {v7}, Landroid/view/animation/AccelerateInterpolator;-><init>()V

    iget-object v8, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget-wide v8, v8, Lcom/htc/weather/animations/WeatherAnimationData;->delay_:J

    mul-long/2addr v8, v12

    invoke-direct/range {v0 .. v9}, Lcom/htc/weather/animations/WeatherScaleAnimation;-><init>(FFFFJLandroid/view/animation/Interpolator;J)V

    invoke-virtual {v10, v0}, Landroid/view/animation/AnimationSet;->addAnimation(Landroid/view/animation/Animation;)V

    .line 288
    :cond_1
    new-instance v2, Lcom/htc/weather/animations/WeatherAlphaAnimation;

    iget-object v0, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget v3, v0, Lcom/htc/weather/animations/WeatherAnimationData;->alpha_:F

    const/4 v4, 0x0

    new-instance v7, Landroid/view/animation/AccelerateInterpolator;

    invoke-direct {v7}, Landroid/view/animation/AccelerateInterpolator;-><init>()V

    iget-object v0, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget-wide v0, v0, Lcom/htc/weather/animations/WeatherAnimationData;->delay_:J

    mul-long v8, v0, v12

    invoke-direct/range {v2 .. v9}, Lcom/htc/weather/animations/WeatherAlphaAnimation;-><init>(FFJLandroid/view/animation/Interpolator;J)V

    invoke-virtual {v10, v2}, Landroid/view/animation/AnimationSet;->addAnimation(Landroid/view/animation/Animation;)V

    .line 292
    const/4 v0, 0x1

    invoke-virtual {v10, v0}, Landroid/view/animation/AnimationSet;->setFillAfter(Z)V

    .line 294
    return-object v10

    .line 277
    :cond_2
    new-instance v0, Lcom/htc/weather/animations/WeatherTranslateAnimation;

    iget-object v1, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget v1, v1, Lcom/htc/weather/animations/WeatherAnimationData;->shift_x_:I

    int-to-float v1, v1

    add-float/2addr v1, v3

    iget-object v2, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget-object v2, v2, Lcom/htc/weather/animations/WeatherAnimationData;->mEnv:Lcom/htc/weather/EnvSetting$Env;

    iget v2, v2, Lcom/htc/weather/EnvSetting$Env;->scale_x_:F

    mul-float/2addr v1, v2

    iget-object v2, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget v2, v2, Lcom/htc/weather/animations/WeatherAnimationData;->shift_x_:I

    int-to-float v2, v2

    add-float/2addr v2, v3

    iget-object v3, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget-object v3, v3, Lcom/htc/weather/animations/WeatherAnimationData;->mEnv:Lcom/htc/weather/EnvSetting$Env;

    iget v3, v3, Lcom/htc/weather/EnvSetting$Env;->scale_x_:F

    mul-float/2addr v2, v3

    iget-object v3, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget v3, v3, Lcom/htc/weather/animations/WeatherAnimationData;->shift_y_:I

    int-to-float v3, v3

    add-float/2addr v3, v4

    iget-object v4, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget-object v4, v4, Lcom/htc/weather/animations/WeatherAnimationData;->mEnv:Lcom/htc/weather/EnvSetting$Env;

    iget v4, v4, Lcom/htc/weather/EnvSetting$Env;->scale_y_:F

    mul-float/2addr v3, v4

    const/high16 v4, 0x42dc

    iget-object v7, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget v7, v7, Lcom/htc/weather/animations/WeatherAnimationData;->shift_y_:I

    int-to-float v7, v7

    add-float/2addr v4, v7

    iget-object v7, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget-object v7, v7, Lcom/htc/weather/animations/WeatherAnimationData;->mEnv:Lcom/htc/weather/EnvSetting$Env;

    iget v7, v7, Lcom/htc/weather/EnvSetting$Env;->scale_y_:F

    mul-float/2addr v4, v7

    new-instance v7, Landroid/view/animation/LinearInterpolator;

    invoke-direct {v7}, Landroid/view/animation/LinearInterpolator;-><init>()V

    iget-object v8, p0, Lcom/htc/weather/animations/Anim21$3;->this$0:Lcom/htc/weather/animations/Anim21;

    iget-wide v8, v8, Lcom/htc/weather/animations/WeatherAnimationData;->delay_:J

    mul-long/2addr v8, v12

    invoke-direct/range {v0 .. v9}, Lcom/htc/weather/animations/WeatherTranslateAnimation;-><init>(FFFFJLandroid/view/animation/Interpolator;J)V

    invoke-virtual {v10, v0}, Landroid/view/animation/AnimationSet;->addAnimation(Landroid/view/animation/Animation;)V

    goto/16 :goto_0
.end method

.method protected initialRestAnimationSet()Landroid/view/animation/AnimationSet;
    .locals 1

    .prologue
    .line 300
    const/4 v0, 0x0

    return-object v0
.end method


text:
Article 407
----
La tutelle est une charge personnelle.

Elle ne se transmet pas aux héritiers du tuteur.


text:
/**
 * Chatterbox is wsc's default UI library.
 *
 * @module Chatterbox
 */
var Chatterbox = {};

Chatterbox.VERSION = '0.20.110';
Chatterbox.STATE = 'beta';

Chatterbox._gum = function(  ) {};

// jQuery hook.

( function( $ ) {
    $.fn.chatterbox = function( method, client, options ) {

        var ui = $(window).data('chatterbox');

        if( method == 'init' || ui === undefined ) {
            if( ui == undefined ) {
                ui = new Chatterbox.UI( $(this), client, options, ($.browser.mozilla || false) );
                $(window).resize(function() { ui.resize(); });
                setInterval(function(  ) { ui.loop(); }, 120000);
                ui.build();
            }
            $(window).data('chatterbox', ui);
        }

        if( method != 'init' && method != undefined ) {
            method = 'jq_' + method;
            if( method in ui )
                ui[method]( $(this), options);
        }

        return ui;

    };

} )( jQuery );

/**
 * This object is the platform for the wsc UI. Everything can be used and
 * loaded from here.
 *
 * @class Chatterbox.UI
 * @constructor
 * @param client {Object} The client that this UI is attached to.
 * @param view {Object} Base jQuery object to use for the UI. Any empty div will do.
 * @param options {Object} Custom settings to use for the UI.
 * @param mozilla {Boolean} Is the browser in use made by Mozilla?
 * @param [events] {Object} EventEmitter object.
 **/
Chatterbox.UI = function( view, client, options, mozilla, events ) {

    this.client = client;
    this.events = events || new EventEmitter();
    this.mozilla = mozilla;
    this.umuted = [];
    this.viewing = true;
    this.settings = {
        'themes': [ 'wsct_dAmn', 'wsct_dark' ],
        'theme': 'wsct_dark',
        'monitor': ['~Monitor', true],
        'username': '',
        'domain': 'website.com',
        'clock': true,
        'tabclose': true,
        'developer': false,
        'media': '/static/'
    };

    this.settings = view.extend( this.settings, options );

    this.settings.monitor = client.settings.monitor || this.settings.monitor;
    this.settings.username = client.settings.username || this.settings.username;
    this.settings.domain = client.settings.domain || this.settings.domain;
    this.settings.developer = client.settings.developer || this.settings.developer;

    var ui = this;

    // Monkey patch the agent string.
    client.settings.agent = 'Chatterbox/' + Chatterbox.VERSION + ' ' + client.settings.agent;

    /**
     * Sound bank.
     *
     * Play and manage UI sounds. So far, Chatterbox includes these sounds:
     *
     *      * click
     *
     * To play a sound clip, call the method of the same name. For example, to
     * play the `click` sound, call `ui.sound.click()`.
     *
     * Note that the sound methods are not documented as they are created on
     * the fly by the `add` method.
     * @class Chatterbox.UI.sound
     */
    this.sound = {

        /**
         * Holds references to audio objects.
         * @property bank
         * @type Object
         */
        bank: {
            m: null
        },

        /**
         * Add a sound to the sound bank.
         * @method add
         * @param name {String} Name to use for the sound and corresponding method
         * @param sound {Object} Audio DOM object
         * @return {Boolean} Success or fail
         */
        add: function( name, sound ) {
            if( ui.sound.hasOwnProperty( name ) )
                return false;

            ui.sound.bank[name] = sound;
            sound.load();

            ui.sound[name] = function(  ) {
                ui.sound.play( ui.sound.bank[name] );
            };

            return true;
        },

        /**
         * Play an audio file.
         *
         * Do not use this method directly.
         * @method play
         * @param sound {Object} Audio DOM object
         */
        play: function( sound ) {
            sound.pause();
            sound.currentTime = 0;
            sound.play();
        },

        /**
         * Mute or unmute the UI.
         * @method toggle
         * @param state {Boolean} True is muted, false is unmuted
         */
        toggle: function( state ) {
            for( var s in ui.sound.bank ) {
                if( !ui.sound.bank.hasOwnProperty( s ) )
                    continue;
                ui.sound.bank[s].muted = state;
            }
        },

        /**
         * Shortcut for `sound.toggle( true )`
         * @method mute
         */
        mute: function(  ) { ui.sound.toggle( true ); },

        /**
         * Shortcut for `sound.toggle( false )`
         * @method unmute
         */
        unmute: function(  ) { ui.sound.toggle( false ); },
    };

    view.append('

');

    this.protocol = new Chatterbox.Protocol();
    this.mw = new wsc.Middleware();

    this.view = view.find('.wsc');
    this.mns = this.format_ns(this.settings['monitor'][0]);
    this.lun = this.settings["username"].toLowerCase();
    this.monitoro = null;

    this.swidth = ( function() {
        if ( $.browser.msie ) {
            var $textarea1 = $('<textarea cols="10" rows="2"></textarea>')
                    .css({ position: 'absolute', top: -1000, left: -1000 }).appendTo('body'),
                $textarea2 = $('<textarea cols="10" rows="2" style="overflow: hidden;"></textarea>')
                    .css({ position: 'absolute', top: -1000, left: -1000 }).appendTo('body');
            scrollbarWidth = $textarea1.width() - $textarea2.width();
            $textarea1.add($textarea2).remove();
        } else {
            var $div = $('
')
                .css({ width: 100, height: 100, overflow: 'auto', position: 'absolute', top: -1000, left: -1000 })
                .prependTo('body').append('
').find('div')
                    .css({ width: '100%', height: 200 });
            scrollbarWidth = 100 - $div.width();
            $div.parent().remove();
        }
        return scrollbarWidth;
    } ) ();

    // Get user media methods.

    if( window.mozRTCPeerConnection ) {
        Chatterbox._gum = function( options, success, error ) {

            return navigator.mozGetUserMedia( options, success, error );

        };
    }

    if( window.webkitRTCPeerConnection ) {
        Chatterbox._gum = function( options, success, error ) {

            return navigator.webkitGetUserMedia( options, success, error );

        };
    }

    if( window.RTCPeerConnection && !window.mozRTCPeerConnection ) {
        Chatterbox._gum = function( options, success, error ) {

            return navigator.getUserMedia( options, success, error );

        };
    }

    this.LIB = 'Chatterbox';
    this.VERSION = Chatterbox.VERSION;
    this.STATE = Chatterbox.STATE;
    this.ext = {};

};

wsc.defaults.UI = Chatterbox.UI;

/**
 * Used to trigger events.
 *
 * @method trigger
 * @for Chatterbox.UI
 * @param event {String} Name of the event to trigger.
 * @param data {Object} Event data.
 **/
Chatterbox.UI.prototype.trigger = function( event, data ) {

    this.events.emit( event, data, this );

};

/**
 * Bind an event thingy.
 *
 * @method on
 * @param event {String} The event name to listen for.
 * @param handler {Method} The event handler.
 */
Chatterbox.UI.prototype.on = function( event, handler ) {

    this.events.addListener( event, handler );

};

/**
 * Add a piece of middleware for something.
 *
 * @method middle
 */
Chatterbox.UI.prototype.middle = function( event, callback ) {

    return this.mw.add( event, callback );

};

/**
 * Run a method with middleware.
 *
 * @method cascade
 */
Chatterbox.UI.prototype.cascade = function( event, method, data ) {

    this.mw.run( event, method, data );

};

/**
 * Remove all of the event bindings.
 *
 * @method remove_listeners
 */
Chatterbox.UI.prototype.remove_listeners = function(  ) {

    this.events.removeListeners();

};

/**
 * Deform a channel namespace.
 *
 * @method deform_ns
 * @param namespace {String} Channel namespace to deform.
 * @return {String} The deformed namespace.
 **/
Chatterbox.UI.prototype.deform_ns = function( namespace ) {

    var sym = namespace[0];

    if( sym == '#'
        || sym == '@'
        || sym == '~'
        || sym == '+' )
            return namespace;

    if( namespace.indexOf("chat:") == 0 )
        return '#' + namespace.slice(5);

    if( namespace.indexOf("server:") == 0 )
        return '~' + namespace.slice(7);

    if( namespace.indexOf("feed:") == 0 )
        return '#' + namespace.slice(5);

    if( namespace.indexOf('login:') == 0 )
        return '@' + namespace.slice(6);

    if( namespace.indexOf("pchat:") == 0 ) {
        var names = namespace.split(":");
        names.shift();
        for(i in names) {
            name = names[i];
            if(name.toLowerCase() != this.lun) {
                return '@' + name;
            }
        }
    }

    return '#' + namespace;

};

/**
 * Format a channel namespace.
 *
 * @method format_ns
 * @param namespace {String} Channel namespace to format.
 * @return {String} namespace formatted as a channel namespace.
 */
Chatterbox.UI.prototype.format_ns = function( namespace ) {

    var n = namespace.slice( 1 );

    switch( namespace[0] ) {

        case '@':
            var names = [n, this.lun];
            names.sort(caseInsensitiveSort)
            names.unshift("pchat");
            namespace = names.join(':');
            break;

        case '~':
            namespace = "server:" + n;
            break;

        case '+':
            namespace = 'feed:' + n
            break;

        case '#':
            namespace = 'chat:' + n;
            break;

        default:
            if( namespace.indexOf('chat:') == 0
                || namespace.indexOf('pchat:') == 0
                || namespace.indexOf('server:') == 0
                || namespace.indexOf('feed:') == 0 )
                    break;
            namespace = 'chat:' + namespace;
            break;
    }

    return namespace;

};

/**
 * Set the event emitter object in use by the UI lib.
 *
 * @method set_events
 * @param events {Object} EventEmitter object.
 */
Chatterbox.UI.prototype.set_events = function( events ) {
    this.events = events || this.events;
};

/**
 * Set the clock to 24 hour or 12 hour. Or get the current mode.
 * True means 24 hour, false means 12 hour.
 *
 * @method clock
 * @param [mode] {Boolean} What mode to set the clock to.
 * @return {Boolean} The mode of the clock.
 */
Chatterbox.UI.prototype.clock = function( mode ) {

    if( mode === undefined || mode == this.settings.clock )
        return this.settings.clock;

    this.settings.clock = mode;
    this.chatbook.retime();

    return this.settings.clock;

};

/**
 * Get user media streams.
 * @method get_user_media
 * @param options {Object} Options for the media streams
 * @param [success] {Function}  Callback fired when media streams have been retrieved
 * @param [error] {Function} Callback fired when an error occurs
 */
Chatterbox.UI.prototype.get_user_media = function( options, success, error ) {

    Chatterbox._gum( options, success, error );

};

/**
 * Build the GUI.
 *
 * @method build
 * @param [control=Chatterbox.Control] {Class} UI control panel class.
 * @param [navigation=Chatterbox.Navigation] {Class} UI navigation panel
 *   class.
 * @param [chatbook=Chatterbox.Chatbook] {Class} Chatbook panel class.
 */
Chatterbox.UI.prototype.build = function( control, navigation, chatbook ) {

    this.view.append( Chatterbox.render('ui', this.settings) );

    // UI Components.
    this.control = new ( control || Chatterbox.Control )( this );
    this.nav = new ( navigation || Chatterbox.Navigation )( this );
    this.chatbook = new ( chatbook || Chatterbox.Chatbook )( this );
    this.pager = new Chatterbox.Pager( this );

    // The monitor channel is essentially our console for the chat.
    this.monitoro = this.chatbook.create_channel(this.mns, this.settings.monitor[1], true);
    this.monitoro.show();

    //this.control.setInput();
    this.control.focus();

    // Sound bank
    this.sound.bank.m = this.view.find('div.soundbank');
    this.sound.add( 'click', this.sound.bank.m.find('audio.click')[0] );

    var sound = this.sound;

    // Mute button.
    var muted = false;
    var mute = this.nav.add_button({
        'label': '',
        'icon': 'volume',
        'href': '#mute',
        'title': 'Mute the client',
        'handler': function(  ) {
            if( !muted ) {
                sound.mute();
                mute.removeClass( 'volume' );
                mute.addClass('volume_mute' );
                mute.prop('title', 'Unmute the client');
                muted = true;
                return false;
            }
            sound.unmute();
            mute.removeClass( 'volume_mute' );
            mute.addClass( 'volume' );
            mute.prop('title', 'Mute the client');
            muted = false;
            return false;
        }
    });

    this.ext.defaults = Chatterbox.Extension( this, this.client );

    // Focusing stuff?
    var ui = this;
    $(window).focus( function(  ) {
        ui.viewing = true;
    } );

    $(window).blur( function(  ) {
        ui.viewing = false;
    } );

    // Events for logging output.
    this.client.bind( 'pkt', function( event, client ) {

        ui.packet( event, client );

    } );

    this.client.bind( 'log', function( event, client ) {

        ui.packet( event, client );

    } );

    this.client.bind( 'pkt.whois', function( event, client ) {

        ui.chatbook.current.log_whois( event.info );

    } );

    // Channel removed from client.
    this.client.middle(
        'ns.remove',
        function( data, done ) {
            ui.remove_channel( data.ns );
            done( data );
        }
    );

    this.client.bind(
        'ns.create',
        function( event, client ) {
            ui.create_channel(event.chan.raw, event.chan.hidden);
        }
    );

    this.client.bind(
        'ns.user.list',
        function( event ) {
            ui.channel(event.ns).set_user_list( event.users );
        }
    );

    this.client.middle(
        'ns.user.privchg',
        function( data, done ) {
            ui.channel(data.ns).privchg( data, done );
        }
    );

    this.client.bind(
        'ns.user.remove',
        function( event, client ) {
            ui.channel(event.ns).remove_one_user( event.user );
        }
    );

    this.client.bind(
        'ns.user.registered',
        function( event ) {
            ui.channel(event.ns).register_user( event.user );
        }
    );

};

/**
 * Resize the UI to fit the containing element.
 *
 * @method resize
 */
Chatterbox.UI.prototype.resize = function() {

    this.control.resize();
    this.view.height( this.view.parent().height() );
    //this.view.width( '100%' );
    this.nav.resize(  );
    this.chatbook.resize( ((this.view.parent().height() - this.nav.height()) - this.control.height()) - 5 );

};

/**
 * Called every now and then.
 * Does stuff like clear channels of excess log messages.
 * Maybe this is something that the UI lib should handle.
 *
 * @method loop
 */
Chatterbox.UI.prototype.loop = function(  ) {

    this.chatbook.loop();

};

/**
 * Handle a packet being received.
 * @method packet
 * @param event {Object} Event data
 * @param client {Object} Reference to the client
 */
Chatterbox.UI.prototype.packet = function( event, client ) {

    var ui = this;
    var msg = this.protocol.log( event );

    if( msg ) {

        if( this.settings.developer ) {
            console.log( '>>>', event.sns, '|', msg.text() );
        }

        if( event.name == 'log' && event.sns == '~current' ) {
            event.ns = ui.chatbook.current.raw;
            event.sns = ui.chatbook.current.namespace;
        }

        // If the event is -shownotice, don't display it!
        if( event.hasOwnProperty( 's' ) && event.s == '0' ) {
            this.chatbook.handle( event, client );
            return;
        }

        event.html = msg.html();

        this.cascade(
            'log_message',
            function( data, done ) {
                ui.chatbook.log_message( data.message, data.event );
            }, {
                message: msg,
                event: event
            }
        );

    }

    this.chatbook.handle( event, client );

};

/**
 * Create a screen for channel `ns` in the UI, and initialise data
 * structures or some shit idk.
 *
 * @method create_channel
 * @param ns {String} Short name for the channel.
 * @param hidden {Boolean} Should this channel's tab be hidden?
 */
Chatterbox.UI.prototype.create_channel = function( ns, toggle ) {
    this.chatbook.create_channel( ns, toggle );
};

/**
 * Remove a channel from the GUI.
 * We do this when we leave a channel for any reason.
 * Note: last channel is never removed and when removing a channel
 * we switch to the last channel in the list before doing so.
 *
 * @method remove_channel
 * @param ns {String} Name of the channel to remove.
 */
Chatterbox.UI.prototype.remove_channel = function( ns ) {
    this.chatbook.remove_channel(ns);
};

/**
 * Select which channel is currently being viewed.
 *
 * @method toggle_channel
 * @param ns {String} Name of the channel to select.
 */
Chatterbox.UI.prototype.toggle_channel = function( ns ) {
    return this.chatbook.toggle_channel(ns);
};

/**
 * Get or set the channel object associated with the given namespace.
 *
 * @method channel
 * @param namespace {String} The namespace to set or get.
 * @param [chan] {Object} A wsc channel object representing the channel specified.
 * @return {Object} The channel object representing the channel defined by `namespace`
 */
Chatterbox.UI.prototype.channel = function( namespace, chan ) {
    return this.chatbook.channel( namespace, chan );
};

/**
 * Determine how many channels the ui has open. Hidden channels are
 * not included in this, and we don't include the first channel because
 * there should always be at least one non-hidden channel present in the
 * ui.
 *
 * @method channels
 * @return {Integer} Number of channels open in the ui.
 */
Chatterbox.UI.prototype.channels = function( ) {
    return this.chatbook.channels();
};

/**
 * Switch to the channel left of the current channel.
 *
 * @method channel_left
 */
Chatterbox.UI.prototype.channel_left = function(  ) {

    this.chatbook.channel_left();

};

/**
 * Switch to the channel right of the current channel.
 *
 * @method channel_right
 */
Chatterbox.UI.prototype.channel_right = function(  ) {

    this.chatbook.channel_right();

};

/**
 * Display a log message in the monitor channel.
 *
 * @method monitor
 * @param msg {String} Message to display.
 * @param [info] {String} Additional data to display.
 */
Chatterbox.UI.prototype.monitor = function( msg, info ) {

    this.monitoro.server_message(msg, info);

};

/**
 * Display a server message across all open channels.
 *
 * @method server_message
 * @param msg {String} Message to display.
 * @param [info] {String} Additional data to display.
 */
Chatterbox.UI.prototype.server_message = function( msg, info ) {

    this.chatbook.server_message(msg, info);

};

/**
 * Display a log item across all open channels.
 *
 * @method log_item
 * @param item {Object} Item to display.
 */
Chatterbox.UI.prototype.log_item = function( item ) {

    this.chatbook.log_item(item);

};

/**
 * Display a log message across all open channels.
 *
 * @method log
 * @param msg {String} Message to display.
 */
Chatterbox.UI.prototype.log = function( msg ) {

    this.chatbook.log(msg);

};

/**
 * Mute a user.
 *
 * @method mute_user
 * @param user {String} User to mute.
 */
Chatterbox.UI.prototype.mute_user = function( user ) {

    if( !user )
        return false;

    user = user.toLowerCase();
    if( this.umuted.indexOf( user ) != -1 )
        return false;

    this.umuted.push( user );
    this.chatbook.each( function( ns, chan ) {
        chan.mute_user( user );
    } );

    return true;

};

/**
 * Unmute a user.
 *
 * @method unmute_user
 * @param user {String} User to unmute.
 */
Chatterbox.UI.prototype.unmute_user = function( user ) {

    if( !user )
        return false;

    user = user.toLowerCase();
    var usri = this.umuted.indexOf( user );
    if( usri == -1 )
        return false;

    this.umuted.splice( usri, 1 );
    this.chatbook.each( function( ns, chan ) {
        chan.unmute_user( user );
    } );

    return true;

};

/**
 * Clear a user's messages from all channels.
 *
 * @method clear_user
 * @param user {String} User to remove messages for.
 */
Chatterbox.UI.prototype.clear_user = function( user ) {

    this.chatbook.each( function( ns, chan ) {
        chan.clear_user( user );
    } );

};

/**
 * Set the theme for the UI.
 *
 * @method theme
 * @param theme {String} Name of the theme.
 */
Chatterbox.UI.prototype.theme = function( theme ) {
    if( this.settings.theme == theme )
        return this.settings.theme;

    if( this.settings.themes.indexOf(theme) == -1 ) {
        theme = 'wsct_' + theme;
        if( this.settings.themes.indexOf(theme) == -1 )
            return this.settings.theme;
    }

    this.view.removeClass( this.settings.theme ).addClass( theme );
    this.settings.theme = theme;

    this.trigger('theme.set', { name: 'theme.set', theme: theme });

    return this.settings.theme;
};

/**
 * Add a new theme to the client.
 *
 * @method add_theme
 * @param theme {String} Name of the theme to add.
 */
Chatterbox.UI.prototype.add_theme = function( theme ) {

    if( this.settings.themes.indexOf(theme) > -1 )
        return;

    this.settings.themes.push(theme);

};

/**
 * Toggle developer mode for the UI.
 *
 * @method developer
 */
Chatterbox.UI.prototype.developer = function( mode ) {
    this.settings.developer = mode;
    this.chatbook.developer();
};


text:
@interface NonHierarchicalDistanceBasedAlgorithm : GClusterAlgorithm

@property (nonatomic, readwrite, assign) NSInteger maxDistanceAtZoom;

- (id)initWithMaxDistanceAtZoom:(NSInteger)maxDistanceAtZoom;

@end


text:
Imports Microsoft.VisualBasic
Imports System
Namespace AccelerationMeasurement
	Partial Public Class Form1
		''' <summary>
		''' Required designer variable.
		''' </summary>
		Private components As System.ComponentModel.IContainer = Nothing

		''' <summary>
		''' Clean up any resources being used.
		''' </summary>
		''' <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
		Protected Overrides Sub Dispose(ByVal disposing As Boolean)
			If disposing AndAlso (components IsNot Nothing) Then
				components.Dispose()
			End If
			MyBase.Dispose(disposing)
		End Sub

		#Region "Windows Form Designer generated code"

		''' <summary>
		''' Required method for Designer support - do not modify
		''' the contents of this method with the code editor.
		''' </summary>
		Private Sub InitializeComponent()
			Me.accelX = New AccelerationMeasurement.AccelerationBar()
			Me.accelY = New AccelerationMeasurement.AccelerationBar()
			Me.accelZ = New AccelerationMeasurement.AccelerationBar()
			Me.label1 = New System.Windows.Forms.Label()
			Me.label2 = New System.Windows.Forms.Label()
			Me.label3 = New System.Windows.Forms.Label()
			Me.availabilityLabel = New System.Windows.Forms.Label()
			Me.SuspendLayout()
			'
			' accelX
			'
			Me.accelX.Acceleration = 0F
			Me.accelX.BackColor = System.Drawing.Color.White
			Me.accelX.Location = New System.Drawing.Point(50, 28)
			Me.accelX.Name = "accelX"
			Me.accelX.Size = New System.Drawing.Size(213, 28)
			Me.accelX.TabIndex = 0
			Me.accelX.Text = "accelerationBar1"
			'
			' accelY
			'
			Me.accelY.Acceleration = 0F
			Me.accelY.BackColor = System.Drawing.Color.White
			Me.accelY.Location = New System.Drawing.Point(50, 62)
			Me.accelY.Name = "accelY"
			Me.accelY.Size = New System.Drawing.Size(213, 28)
			Me.accelY.TabIndex = 1
			Me.accelY.Text = "accelerationBar1"
			'
			' accelZ
			'
			Me.accelZ.Acceleration = 0F
			Me.accelZ.BackColor = System.Drawing.Color.White
			Me.accelZ.Location = New System.Drawing.Point(50, 96)
			Me.accelZ.Name = "accelZ"
			Me.accelZ.Size = New System.Drawing.Size(213, 28)
			Me.accelZ.TabIndex = 2
			Me.accelZ.Text = "accelerationBar1"
			'
			' label1
			'
			Me.label1.AutoSize = True
			Me.label1.Location = New System.Drawing.Point(12, 37)
			Me.label1.Name = "label1"
			Me.label1.Size = New System.Drawing.Size(14, 13)
			Me.label1.TabIndex = 6
			Me.label1.Text = "X"
			'
			' label2
			'
			Me.label2.AutoSize = True
			Me.label2.Location = New System.Drawing.Point(12, 71)
			Me.label2.Name = "label2"
			Me.label2.Size = New System.Drawing.Size(14, 13)
			Me.label2.TabIndex = 7
			Me.label2.Text = "Y"
			'
			' label3
			'
			Me.label3.AutoSize = True
			Me.label3.Location = New System.Drawing.Point(12, 105)
			Me.label3.Name = "label3"
			Me.label3.Size = New System.Drawing.Size(14, 13)
			Me.label3.TabIndex = 8
			Me.label3.Text = "Z"
			'
			' availabilityLabel
			'
			Me.availabilityLabel.AutoSize = True
			Me.availabilityLabel.Location = New System.Drawing.Point(47, 9)
			Me.availabilityLabel.Name = "availabilityLabel"
			Me.availabilityLabel.Size = New System.Drawing.Size(143, 13)
			Me.availabilityLabel.TabIndex = 9
			Me.availabilityLabel.Text = "Accelerometers available = 0"
			'
			' Form1
			'
			Me.AutoScaleDimensions = New System.Drawing.SizeF(6F, 13F)
			Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
			Me.ClientSize = New System.Drawing.Size(289, 139)
			Me.Controls.Add(Me.availabilityLabel)
			Me.Controls.Add(Me.label3)
			Me.Controls.Add(Me.label2)
			Me.Controls.Add(Me.label1)
			Me.Controls.Add(Me.accelZ)
			Me.Controls.Add(Me.accelY)
			Me.Controls.Add(Me.accelX)
			Me.Name = "Form1"
			Me.Text = "Acceleration Measurement"
'			Me.Shown += New System.EventHandler(Me.Form1_Shown)
			Me.ResumeLayout(False)
			Me.PerformLayout()

		End Sub

		#End Region

		Private accelX As AccelerationBar
		Private accelY As AccelerationBar
		Private accelZ As AccelerationBar
		Private label1 As System.Windows.Forms.Label
		Private label2 As System.Windows.Forms.Label
		Private label3 As System.Windows.Forms.Label
		Private availabilityLabel As System.Windows.Forms.Label

	End Class
End Namespace


text:
class ReserveMailerPreview < ActionMailer::Preview

end


text:
<?php

use yii\helpers\Url;
use app\messages\Common;
?>
<form class="form-ajax p20" action="<?= Url::to(['my-password']); ?>" method="post" onsubmit="return false;">
    <input name="_csrf" type="hidden" value="<?= Yii::$app->request->csrfToken ?>">

                用户名
                <?= Yii::$app->user->identity->c_username; ?>

                原始密码
                <input data-check="required,minSize[6],maxSize[20]" class="form-control" type="password" name="User[oldPassword]" maxlength="20" data-errormessage="<?= Yii::t('common', Common::PASSWORD_OLD_ERROR); ?>" placeholder="<?= Yii::t('common', Common::PASSWORD_OLD_ERROR); ?>">

                密码
                <input data-check="required,minSize[6],maxSize[20]" id="password" class="form-control" type="password" name="User[newPassword]" maxlength="20" data-errormessage="<?= Yii::t('common', Common::PASSWORD_FORMAT_ERROR); ?>" placeholder="<?= Yii::t('common', Common::PASSWORD_FORMAT_ERROR); ?>">

                确认密码
                <input data-check="condRequired[password],equals[password]" class="form-control" type="password" name="User[confirmPassword]" maxlength="20" data-errormessage="<?= Yii::t('common', Common::PASSWORD_CONFIRM_ERROR); ?>" placeholder="<?= Yii::t('common', Common::PASSWORD_CONFIRM_ERROR); ?>">

                <button class="btn btn-primary" type="submit">提交</button>

</form>


text:
package com.hyrax.client.email.api.response;

import lombok.Builder;
import lombok.Data;

@Data
@Builder
public class BoardEventSubscriptionResponse {

    private final String username;

    private final boolean boardCreationAction;

    private final boolean boardRemovalAction;

    private final boolean boardMemberAdditionAction;

    private final boolean boardMemberRemovalAction;
}


text:
using base::StringPiece;

namespace net {
namespace test {

TEST(NullEncrypterTest, Encrypt) {
  unsigned char expected[] = {
    // fnv hash
    0xa0, 0x6f, 0x44, 0x8a,
    0x44, 0xf8, 0x18, 0x3b,
    0x47, 0x91, 0xb2, 0x13,
    0x6b, 0x09, 0xbb, 0xae,
    // payload
    'g',  'o',  'o',  'd',
    'b',  'y',  'e',  '!',
  };
  NullEncrypter encrypter;
  scoped_ptr<QuicData> encrypted(
      encrypter.EncryptPacket(0, "hello world!", "goodbye!"));
  ASSERT_TRUE(encrypted.get());
  test::CompareCharArraysWithHexError(
      "encrypted data", encrypted->data(), encrypted->length(),
      reinterpret_cast<const char*>(expected), arraysize(expected));
}

TEST(NullEncrypterTest, GetMaxPlaintextSize) {
  NullEncrypter encrypter;
  EXPECT_EQ(1000u, encrypter.GetMaxPlaintextSize(1016));
  EXPECT_EQ(100u, encrypter.GetMaxPlaintextSize(116));
  EXPECT_EQ(10u, encrypter.GetMaxPlaintextSize(26));
}

TEST(NullEncrypterTest, GetCiphertextSize) {
  NullEncrypter encrypter;
  EXPECT_EQ(1016u, encrypter.GetCiphertextSize(1000));
  EXPECT_EQ(116u, encrypter.GetCiphertextSize(100));
  EXPECT_EQ(26u, encrypter.GetCiphertextSize(10));
}

}  // namespace test
}  // namespace net


text:
class Image < ActiveRecord::Base
  belongs_to :viewable, :polymorphic => true
  acts_as_list :scope => :parent
  has_attachment :content_type => :image,
                 :max_size => 500.kilobyte,
                 :resize_to => [360,360],
                 :thumbnails => {:product => [240,240], :small => [100,100], :mini => [48,48]},
                 :path_prefix => 'public/images/products',
                 :storage => :file_system,
                 :processor => :MiniMagick

  validates_as_attachment
end


text:
var test = require('tape')
var kainan = require('..')

test('description', function (t) {
    t.end()
})


text:
package org.apache.batik.svggen;

import java.util.HashMap;
import java.util.Map;

import org.apache.batik.ext.awt.g2d.GraphicContext;
import org.apache.batik.ext.awt.g2d.TransformStackElement;
import org.w3c.dom.Element;

/**
 * This class is used by the Graphics2D SVG Generator to manage
 * a group of Nodes that can later be added to the SVG DOM Tree
 * managed by the DOMTreeManager.
 *
 * There are two rules that control how children nodes are
 * added to the group managed by this class:
 *
 * + Children node are added to the group as long as
 *   there is no more than n graphic context overrides needed to
 *   describe the children style. A graphic context override
 *   happens when style attributes need to be added to a child
 *   node to reflect the state of the graphic context at the
 *   time the child was added. Note that the opacity is never
 *   reflected in a group node and therefore, is not accounted
 *   for in the number of overrides. The number of overrides can
 *   be configured and defaults to 2.
 * + Children nodes are added to the current group as long as
 *   the associated GraphicContext's transform stack is valid.
 *
 * When children nodes can no longer be added, the group is considered
 * complete and the associated DOMTreeManager is notified of the
 * availability of a completed group. Then, a new group is started.
 *

 * The DOMTreeManager is also notified every thime a new element
 * is added to the current group. This is needed to let the
 * DOMTreeManager handle group managers that would be used concurrently.
 *
 * @author Christophe Jolif
 * @author Vincent Hardy
 * @version $Id$
 */
public class DOMGroupManager implements SVGSyntax, ErrorConstants {
    public static final short DRAW = 0x01;
    public static final short FILL = 0x10;

    /**
     * Reference to the GraphicContext this manager will use to
     * reflect style attributes in the tree nodes.
     */
    protected GraphicContext gc;

    /**
     * DOMTreeManager that this group manager cooperates with
     */
    protected DOMTreeManager domTreeManager;

    /**
     * Current group's SVG GraphicContext state
     */
    protected SVGGraphicContext groupGC;

    /**
     * Current group node
     */
    protected Element currentGroup;

    /**
     * Constructor
     * @param gc graphic context whose state will be reflected in the
     *           element's style attributes.
     * @param domTreeManager DOMTreeManager instance this group manager
     *        cooperates with.
     */
    public DOMGroupManager(GraphicContext gc, DOMTreeManager domTreeManager) {
        if (gc == null)
            throw new SVGGraphics2DRuntimeException(ERR_GC_NULL);

        if (domTreeManager == null)
            throw new SVGGraphics2DRuntimeException(ERR_DOMTREEMANAGER_NULL);

        this.gc = gc;
        this.domTreeManager = domTreeManager;

        // Start with a new Top Level Group
        recycleCurrentGroup();

        // Build the default GC descriptor
        groupGC = domTreeManager.gcConverter.toSVG(gc);
    }

    /**
     * Reset the state of this object to handle a new currentGroup
     */
    void recycleCurrentGroup() {
        // Create new initial current group node
        currentGroup = domTreeManager.getDOMFactory().
            createElementNS(SVG_NAMESPACE_URI, SVG_G_TAG);
    }

    /**
     * Adds a node to the current group, if possible
     * @param element child Element to add to the group
     */
    public void addElement(Element element) {
        addElement(element, (short)(DRAW|FILL));
    }

    /**
     * Adds a node to the current group, if possible
     * @param element child Element to add to the group
     */
    public void addElement(Element element, short method) {
        //
        // If this is the first child to be added to the
        // currentGroup, 'freeze' the style attributes.
        //
        if (!currentGroup.hasChildNodes()) {
            currentGroup.appendChild(element);

            groupGC = domTreeManager.gcConverter.toSVG(gc);
            SVGGraphicContext deltaGC;
            deltaGC = processDeltaGC(groupGC,
                                     domTreeManager.defaultGC);
            domTreeManager.getStyleHandler().
                setStyle(currentGroup, deltaGC.getGroupContext(),
                         domTreeManager.getGeneratorContext());
            if ((method & DRAW) == 0) {
                // force stroke:none
                deltaGC.getGraphicElementContext().put(SVG_STROKE_ATTRIBUTE,
                                                       SVG_NONE_VALUE);
            }
            if ((method & FILL) == 0) {
                // force fill:none
                deltaGC.getGraphicElementContext().put(SVG_FILL_ATTRIBUTE,
                                                       SVG_NONE_VALUE);
            }
            domTreeManager.getStyleHandler().
                setStyle(element, deltaGC.getGraphicElementContext(),
                         domTreeManager.getGeneratorContext());
            setTransform(currentGroup, deltaGC.getTransformStack());
            domTreeManager.appendGroup(currentGroup, this);
        } else {
            if(gc.isTransformStackValid()) {
                //
                // There are children nodes already. Find
                // out delta between current gc and group
                // context
                //
                SVGGraphicContext elementGC =
                    domTreeManager.gcConverter.toSVG(gc);
                SVGGraphicContext deltaGC = processDeltaGC(elementGC, groupGC);

                // If there are less than the maximum number
                // of differences, then add the node to the current
                // group and set its attributes
                trimContextForElement(deltaGC, element);
                if (countOverrides(deltaGC) <= domTreeManager.maxGCOverrides) {
                    currentGroup.appendChild(element);
                    // as there already are children we put all
                    // attributes (group + element) on the element itself.
                    if ((method & DRAW) == 0) {
                        // force stroke:none
                        deltaGC.getContext().
                            put(SVG_STROKE_ATTRIBUTE, SVG_NONE_VALUE);
                    }
                    if ((method & FILL) == 0) {
                        // force fill:none
                        deltaGC.getContext().
                            put(SVG_FILL_ATTRIBUTE, SVG_NONE_VALUE);
                    }
                    domTreeManager.getStyleHandler().
                        setStyle(element, deltaGC.getContext(),
                                 domTreeManager.getGeneratorContext());
                    setTransform(element, deltaGC.getTransformStack());
                } else {
                    //
                    // Need to create a new current group
                    //
                    currentGroup =
                        domTreeManager.getDOMFactory().
                        createElementNS(SVG_NAMESPACE_URI, SVG_G_TAG);
                    addElement(element, method);
                }
            } else {
                //
                // Transform stack is invalid. Create a new current
                // group and validate the stack
                //
                currentGroup =
                    domTreeManager.getDOMFactory().
                    createElementNS(SVG_NAMESPACE_URI, SVG_G_TAG);
                gc.validateTransformStack();
                addElement(element, method);
            }
        }
    }

    /**
     * Analyses the Map to define how many attributes constitute
     * overrides. Only differences in the group context are considered
     * overrides.
     */
    protected int countOverrides(SVGGraphicContext deltaGC) {
        return deltaGC.getGroupContext().size();
    }

    /**
     * Removes properties that do not apply for a specific element
     */
    protected void trimContextForElement(SVGGraphicContext svgGC, Element element) {
        String tag = element.getTagName();
        Map groupAttrMap = svgGC.getGroupContext();
        if (tag != null) {
            // For each attribute, check if there is an attribute
            // descriptor. If there is, check if the attribute
            // applies to the input element. If there is none,
            // assume the attribute applies to the element.
            for (Object o : groupAttrMap.keySet()) {
                String attrName = (String) o;
                SVGAttribute attr = SVGAttributeMap.get(attrName);
                if (attr != null && !attr.appliesTo(tag))
                    groupAttrMap.remove(attrName);
            }
        }
    }

    /**
     * Processes the transform attribute value corresponding to a
     * given transform stack
     */
    protected void setTransform(Element element,
                              TransformStackElement[] transformStack) {
        String transform = domTreeManager.gcConverter.
            toSVG(transformStack).trim();
        if (transform.length() > 0)
            element.setAttributeNS(null, SVG_TRANSFORM_ATTRIBUTE, transform);
    }

    /**
     * Processes the difference between two graphic contexts. The values
     * in gc that are different from the values in referenceGc will be
     * present in the delta. Other values will no.
     */
    static SVGGraphicContext processDeltaGC(SVGGraphicContext gc,
                                            SVGGraphicContext referenceGc) {
        Map groupDelta = processDeltaMap(gc.getGroupContext(),
                                         referenceGc.getGroupContext());
        Map graphicElementDelta = gc.getGraphicElementContext();

        TransformStackElement[] gcTransformStack = gc.getTransformStack();
        TransformStackElement[] referenceStack = referenceGc.getTransformStack();
        int deltaStackLength = gcTransformStack.length - referenceStack.length;
        TransformStackElement[] deltaTransformStack =
            new TransformStackElement[deltaStackLength];

        System.arraycopy(gcTransformStack, referenceStack.length,
                         deltaTransformStack, 0, deltaStackLength);

        /**
           System.err.println("gc transform stack length: " +
           gc.getTransformStack().length);
           System.err.println("reference stack length   : " +
           referenceGc.getTransformStack().length);
           System.err.println("delta stack length       : " +
           deltaTransformStack.length);
        */

        /*
          TransformStackElement gcStack[] = gc.getTransformStack();
          for(int i=0; i<gcStack.length; i++)
          System.err.println("gcStack[" + i + "] = " + gcStack[i].toString());

          TransformStackElement refStack[] = referenceGc.getTransformStack();
          for(int i=0; i<refStack.length; i++)
          System.err.println("refStack[" + i + "] = " + refStack[i].toString());

          for(int i=0; i<deltaTransformStack.length; i++)
          System.err.println("deltaStack[" + i + "] = " +
          deltaTransformStack[i].toString());
        */

        SVGGraphicContext deltaGC = new SVGGraphicContext(groupDelta,
                                                          graphicElementDelta,
                                                          deltaTransformStack);

        return deltaGC;
    }

    /**
     * Processes the difference between two Maps. The code assumes
     * that the input Maps have the same key sets. Values in map that
     * are different from values in referenceMap are place in the
     * returned delta Map.
     */
    static Map processDeltaMap(Map map, Map referenceMap) {
        // no need to be synch => HashMap
        Map mapDelta = new HashMap();
        for (Object o : map.keySet()) {
            String key = (String) o;
            String value = (String) map.get(key);
            String refValue = (String) referenceMap.get(key);
            if (!value.equals(refValue)) {
                /*if(key.equals(SVG_TRANSFORM_ATTRIBUTE)){
                  // Special handling for the transform attribute.
                  // At this point in the processing, the transform
                  // in map has to be a substring of the one in
                  // referenceMap. see the addElement member.
                  value = value.substring(refValue.length()).trim();
                  }*/
                mapDelta.put(key, value);
            }
        }
        return mapDelta;
    }
}


text:
import React from "react";
import { StyleSheet } from "react-native";

import EventsContainer from '../containers/EventsContainer';
import ContactsContainer from '../containers/ContactsContainer';
import SingleEventContainer from '../containers/SingleEventContainer';
import SingleContactContainer from '../containers/SingleContactContainer';

import SettingsView from './SettingsView';
import MealToggleView from './MealToggleView';
import ContactsView from './ContactsView';
import EventsView from './EventsView';
import SingleContactView from './SingleContactView';
import SingleEventView from './SingleEventView';

import SearchButton from '../components/SearchButton';

import colors from "../config/colors";

const styles = StyleSheet.create({
  header: {
    backgroundColor: colors.primary,
  },
  headerTitle: {
    color: "white",
  },
  headerBack: {
    color: "white",
  },
});

const navigatorConfig = {
  headerStyle: styles.header,
  headerTitleStyle: styles.headerTitle,
  headerBackTitleStyle: styles.headerBack,
  headerTintColor: "white",
  gesturesEnabled: true,
};

const StackViews = {
  EventsView: {
    screen: EventsContainer(EventsView),
    navigationOptions: {
      title: "Events",
      ...navigatorConfig,
    },
  },
  SingleEventView: {
    screen: SingleEventContainer(SingleEventView),
    navigationOptions: ({ navigation }) => ({
      title: "Repas " + navigation.state.params.name,
      ...navigatorConfig,
    }),
  },
  SingleContactView: {
    screen: SingleContactContainer(SingleContactView),
    navigationOptions: ({ navigation }) => ({
      title:
        navigation.state.params.firstName +
        " " +
        navigation.state.params.lastName,
      ...navigatorConfig,
    }),
  },
  ContactsView: {
    screen: ContactsContainer(ContactsView),
    navigationOptions: ({ navigation }) => {
      const { state, setParams } = navigation;
      const { params } = state;
      return {
        title: "Contacts",
        headerRight: (
          <SearchButton handlePress={() => setParams({ showModal: true })} />
        ),
        ...navigatorConfig,
      };
    },
  },
  SettingsView: {
    screen: SettingsView,
    navigationOptions: {
      title: "Settings",
      ...navigatorConfig,
    },
  },
  MealToggleView: {
    screen: EventsContainer(MealToggleView),
    navigationOptions: {
      title: 'Choisir les repas',
      ...navigatorConfig,
    },
  },
};

export default StackViews;


text:
package de.tudarmstadt.ukp.jwktl.api.entry;

import de.tudarmstadt.ukp.jwktl.api.IWiktionaryWordForm;
import de.tudarmstadt.ukp.jwktl.api.util.GrammaticalAspect;
import de.tudarmstadt.ukp.jwktl.api.util.GrammaticalCase;
import de.tudarmstadt.ukp.jwktl.api.util.GrammaticalDegree;
import de.tudarmstadt.ukp.jwktl.api.util.GrammaticalGender;
import de.tudarmstadt.ukp.jwktl.api.util.GrammaticalMood;
import de.tudarmstadt.ukp.jwktl.api.util.GrammaticalNumber;
import de.tudarmstadt.ukp.jwktl.api.util.GrammaticalPerson;
import de.tudarmstadt.ukp.jwktl.api.util.GrammaticalTense;
import de.tudarmstadt.ukp.jwktl.api.util.NonFiniteForm;

/**
 * Implementation of the {@link IWiktionaryWordForm} interface. Instances
 * of this class represent inflected word forms.
 * @author Christian M. Meyer
 */
public class WiktionaryWordForm implements IWiktionaryWordForm {

	protected String wordForm;
	protected GrammaticalNumber grammaticalNumber;
	protected GrammaticalCase grammaticalCase;
	protected GrammaticalGender grammaticalGender;
	protected GrammaticalPerson grammaticalPerson;
	protected GrammaticalTense grammaticalTense;
	protected GrammaticalMood grammaticalMood;
	protected GrammaticalDegree grammaticalDegree;
	protected GrammaticalAspect grammaticalAspect;
	protected NonFiniteForm nonFiniteForm;

	/** Instanciates a new, empty word form. */
	public WiktionaryWordForm() {}

	/** Instanciates a new word form with the given written form. */
	public WiktionaryWordForm(final String wordForm) {
		this.wordForm = wordForm;
	}

	public String getWordForm() {
		return wordForm;
	}

	/** Assign the given written form to this instance. */
	public void setWordForm(String wordForm) {
		this.wordForm = wordForm;
	}

	public GrammaticalNumber getNumber() {
		return grammaticalNumber;
	}

	/** Assign the given grammatical number to this word form. */
	public void setNumber(final GrammaticalNumber grammaticalNumber) {
		this.grammaticalNumber = grammaticalNumber;
	}

	public GrammaticalCase getCase() {
		return grammaticalCase;
	}

	/** Assign the given grammatical case to this word form. */
	public void setCase(final GrammaticalCase grammaticalCase) {
		this.grammaticalCase = grammaticalCase;
	}

	public GrammaticalGender getGender() {
		return grammaticalGender;
	}

	/** Assign the given grammatical gender to this word form. */
	public void setGender(final GrammaticalGender grammaticalGender) {
		this.grammaticalGender = grammaticalGender;
	}

	public GrammaticalPerson getPerson() {
		return grammaticalPerson;
	}

	/** Assign the given grammatical person to this word form. */
	public void setPerson(final GrammaticalPerson grammaticalPerson) {
		this.grammaticalPerson = grammaticalPerson;
	}

	public GrammaticalTense getTense() {
		return grammaticalTense;
	}

	/** Assign the given grammatical tense to this word form. */
	public void setTense(final GrammaticalTense grammaticalTense) {
		this.grammaticalTense = grammaticalTense;
	}

	public GrammaticalMood getMood() {
		return grammaticalMood;
	}

	/** Assign the given grammatical mood to this word form. */
	public void setMood(final GrammaticalMood grammaticalMood) {
		this.grammaticalMood = grammaticalMood;
	}

	public GrammaticalDegree getDegree() {
		return grammaticalDegree;
	}

	/** Assign the given grammatical degree to this word form. */
	public void setDegree(final GrammaticalDegree grammaticalDegree) {
		this.grammaticalDegree = grammaticalDegree;
	}

	public GrammaticalAspect getAspect() {
		return grammaticalAspect;
	}

	/** Assign the given grammatical aspect to this word form. */
	public void setAspect(final GrammaticalAspect grammaticalAspect) {
		this.grammaticalAspect = grammaticalAspect;
	}

	public NonFiniteForm getNonFiniteForm() {
		return nonFiniteForm;
	}

	/** Assign the given type of non finite word form. */
	public void setNonFiniteForm(final NonFiniteForm nonFiniteForm) {
		this.nonFiniteForm = nonFiniteForm;
	}

}


text:
using ArkSavegameToolkitNet.Structs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ArkSavegameToolkitNet.Data
{
    public class ExtraDataFoliage : IExtraData, INameContainer
    {
        public IList<IDictionary<string, StructPropertyList>> StructMapList { get; set; }

        //public int calculateSize(bool nameTable)
        //{
        //    var size = /* integer size */ 4 * 2;

        //    size += /* integer size */ 4 * structMapList.Count;
        //    foreach (IDictionary<string, StructPropertyList> structMap in structMapList)
        //    {
        //        foreach (KeyValuePair<string, StructPropertyList> entry in structMap)
        //        {
        //            size += ArkArchive.getStringLength(entry.Key);
        //            size += entry.Value.getSize(nameTable);
        //            size += /* integer size */ 4;
        //        }
        //    }

        //    return size;
        //}

        //public void CollectNames(ISet<string> nameTable)
        //{
        //    foreach (IDictionary<string, StructPropertyList> structMap in StructMapList)
        //    {
        //        foreach (KeyValuePair<string, StructPropertyList> entry in structMap)
        //        {
        //            entry.Value.CollectNames(nameTable);
        //        }
        //    }
        //}
    }
}


text:
from .moon_info import MoonInfo
from .observing_site import ObservingSite

class ObservingInfo(object):
    '''
    This class is responsible for keeping the observing site information and
    the moon information object together. It will be responsible for updating
    any of the observing site information that then affects the moon
    information.
    '''
    __shared_state = {"obs_site": ObservingSite(),
                      "moon_info": MoonInfo()}

    def __init__(self):
        '''
        Constructor
        '''
        self.__dict__ = self.__shared_state

    def update(self):
        self.moon_info.compute(self.obs_site.getObserver())

if __name__ == "__main__":
    oi = ObservingInfo()
    oi.update()
    print oi.obs_site
    import time
    time.sleep(2)
    oi2 = ObservingInfo()
    oi2.update()
    print oi2.obs_site


text:
package com.microsoft.azure.management.network.v2018_04_01;

import rx.Observable;
import com.microsoft.azure.management.network.v2018_04_01.implementation.LoadBalancerBackendAddressPoolsInner;
import com.microsoft.azure.arm.model.HasInner;

/**
 * Type representing LoadBalancerBackendAddressPools.
 */
public interface LoadBalancerBackendAddressPools extends HasInner<LoadBalancerBackendAddressPoolsInner> {
    /**
     * Gets load balancer backend address pool.
     *
     * @param resourceGroupName The name of the resource group.
     * @param loadBalancerName The name of the load balancer.
     * @param backendAddressPoolName The name of the backend address pool.
     * @throws IllegalArgumentException thrown if parameters fail the validation
     * @return the observable for the request
     */
    Observable<BackendAddressPool> getAsync(String resourceGroupName, String loadBalancerName, String backendAddressPoolName);

    /**
     * Gets all the load balancer backed address pools.
     *
     * @param resourceGroupName The name of the resource group.
     * @param loadBalancerName The name of the load balancer.
     * @throws IllegalArgumentException thrown if parameters fail the validation
     * @return the observable for the request
     */
    Observable<BackendAddressPool> listAsync(final String resourceGroupName, final String loadBalancerName);

}