text:
package sn.taskrunner;

/**
 * Created by Sumanth on 17/10/14.
 */
public class GenieMRTaskParameters extends TaskParameters{

    private final HttpServiceParams httpServiceParams;
    private final String userName;
    private final String groupName;

    private String hadoopCommand;
    private String hadoopFiles;

    public GenieMRTaskParameters(HttpServiceParams httpServiceParams, final String userName, final String groupName,
                                 String hadoopCommand, String hadoopFiles, final int taskTimeout, final int retries) {
        super(taskTimeout,retries);
        this.httpServiceParams = httpServiceParams;
        this.userName = userName;
        this.groupName =  groupName;

        this.hadoopCommand = hadoopCommand;
        this.hadoopFiles = hadoopFiles;
    }

    public String getUserName() {
        return userName;
    }

    public String getGroupName() {
        return groupName;
    }

    public HttpServiceParams getHttpServiceParams() {
        return httpServiceParams;
    }

    public String getHadoopCommand() {
        return hadoopCommand;
    }

    public void setHadoopCommand(String hadoopCommand) {
        this.hadoopCommand = hadoopCommand;
    }

    public String getHadoopFiles() {
        return hadoopFiles;
    }

    public void setHadoopFiles(String hadoopFiles) {
        this.hadoopFiles = hadoopFiles;
    }
}

redpajama_set_name: RedPajamaGithub


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

namespace PlayFoos.Core.Services
{
    public interface ITableHeartbeatService
    {
        Task<DateTime?> GetLatestAsync();

        Task UpdateAsync(DateTime timestamp, string error);
    }
}


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
Indian Phytopath. 59(3): 347 (2006)

#### Original name
Meliola pterygotae Hosag., D.K. Agarwal, H. Biju & Archana

### Remarks
null


text:
import os
import rabbitpy
import time
from ch6 import utils

# Open the channel and connection
connection = rabbitpy.Connection()
channel = connection.channel()

# Create the response queue that will automatically delete, is not durable and
# is exclusive to this publisher
queue_name = 'response-queue-%s' % os.getpid()
response_queue = rabbitpy.Queue(channel,
                                queue_name,
                                auto_delete=True,
                                durable=False,
                                exclusive=True)
# Declare the response queue
if response_queue.declare():
    print('Response queue declared')

# Bind the response queue
if response_queue.bind('rpc-replies', queue_name):
    print('Response queue bound')

# Iterate through the images to send RPC requests for
for img_id, filename in enumerate(utils.get_images()):

    print 'Sending request for image #%s: %s' % (img_id, filename)

    # Create the message
    message = rabbitpy.Message(channel,
                               utils.read_image(filename),
                               {'content_type': utils.mime_type(filename),
                                'correlation_id': str(img_id),
                                'reply_to': queue_name},
                               opinionated=True)

    # Pubish the message
    message.publish('fanout-rpc-requests')

    # Loop until there is a response message
    message = None
    while not message:
        time.sleep(0.5)
        message = response_queue.get()

    # Ack the response message
    message.ack()

    # Caculate how long it took from publish to response
    duration = (time.time() -
                time.mktime(message.properties['headers']['first_publish']))

    print('Facial detection RPC call for image %s total duration: %s' %
          (message.properties['correlation_id'], duration))

    # Display the image in the IPython notebook interface
    utils.display_image(message.body, message.properties['content_type'])

print 'RPC requests processed'

# Close the channel and connection
channel.close()
connection.close()


text:
using System;
using System.ComponentModel;
using Plethora.Windows.Forms.Base;

namespace Plethora.Windows.Forms
{
    ///
    /// TextBox which restricts user input to real numeric values.
    ///
    /// <remarks>
    ///  <para>
    ///   When binding to the <see cref="RealTextBox.Value"/> property of a <see cref="RealTextBox"/>
    ///   the 'formattingEnabled' must be specified as true.
    ///   <example>
    ///    textBox.DataBindings.Add("Value", myClass, "InnerValue", true);
    ///   </example>
    ///  </para>
    /// </remarks>
    [CLSCompliant(false)]
    public class RealTextBox : RealTextBoxBase
    {
    }
}

namespace Plethora.Windows.Forms.Base
{
    ///
    /// Intermediate class required to "fool" the designers to construct the <see cref="RealTextBox"/>.
    ///
    [CLSCompliant(false)]
    [Browsable(false)]
    [ToolboxItem(false)]
    public class RealTextBoxBase : NumericTextBox<Double>
    {
        #region Overrides of ComparableTextBox<Double>

        protected override Double MinOfT
        {
            get { return Double.MinValue; }
        }

        protected override Double MaxOfT
        {
            get { return Double.MaxValue; }
        }
        #endregion
    }
}


text:
import React from 'react';
import { storiesOf } from '@storybook/react';
import Bar from '../../components/playerlist/Bar';

storiesOf('Bar', module)
  .add('normal', () =>
    <Bar animDelay={0} position="kant" name="David de Gea" active={false} number={1} />,
  )
  .add('libero', () =>
    <Bar animDelay={0} position="libero" name="Magnus Rodahl" active={false} number={12} />,
  )
  .add('active', () => <Bar animDelay={0} position="kant" name="David de Gea" active number={1} />)
  .add('active libero', () =>
    <Bar animDelay={0} position="libero" name="Magnus Rodahl" active number={12} />,
  );


text:
require 'spec_helper'

describe Travis::Notification::Instrument::Task::Email do
  include Travis::Testing::Stubs

  let(:data)      { Travis::Api.data(build, :for => 'event', :version => 'v2') }
  let(:task)      { Travis::Task::Email.new(data, :recipients => %w(svenfuchs@artweb-design.de)) }
  let(:publisher) { Travis::Notification::Publisher::Memory.new }
  let(:event)     { publisher.events[1] }

  before :each do
    Travis::Notification.publishers.replace([publisher])
    task.stubs(:process)
    task.run
  end

  it 'publishes a payload' do
    event.except(:payload).should == {
      :message => "travis.task.email.run:completed",
            :uuid => Travis.uuid
    }
    event[:payload].except(:data).should == {
      :msg => 'Travis::Task::Email#run for #<Build id=1>',
      :repository => 'svenfuchs/minimal',
      :object_id => 1,
      :object_type => 'Build',
      :email => :finished_email,
      :recipients => %w(svenfuchs@artweb-design.de)
    }
    event[:payload][:data].should_not be_nil
  end
end


text:
package com.microsoftopentechnologies.intellij.components;

import com.google.common.io.ByteStreams;
import com.google.common.io.Files;
import com.intellij.openapi.components.AbstractProjectComponent;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.startup.StartupManager;
import com.microsoftopentechnologies.tooling.msservices.helpers.XmlHelper;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;

import javax.xml.xpath.XPathConstants;
import java.io.*;
import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream;

public class MSOpenTechToolsProject extends AbstractProjectComponent {
    private static final String TEMPLATES_ROOT_DIR = "build/intermediates/exploded-aar/Microsoft/templates/%s";
    private static final String TEMPLATES_RESOURCE_PATH = "/com/microsoftopentechnologies/intellij/templates/MobileServiceTemplate/";
    private static final String TEMPLATE_ZIP_NAME = "templates.zip";
    private static final String CACHED_TEMPLATE_ZIP_NAME = "templates-%s.zip";

    protected MSOpenTechToolsProject(Project project) {
        super(project);
    }

    @Override
    public void projectOpened() {
        StartupManager.getInstance(myProject).registerPostStartupActivity(new Runnable() {
            @Override
            public void run() {
                try {
                    // get project root dir and check if this is an Android project
                    //if (AndroidStudioHelper.isAndroidGradleModule(myProject.getBaseDir())) {
                    if(isAndroidProject()) {
                        createActivityTemplates();
                    }

                } catch (IOException ignored) {}

            }
        });
    }

    private void createActivityTemplates() throws IOException {
        // create the root dir to contain our templates zip if the
        // dir doesn't exist already
        File rootDir = new File(myProject.getBaseDir().getPath(),
                String.format(
                        TEMPLATES_ROOT_DIR,
                        MSOpenTechToolsApplication.getCurrent().getSettings().getPluginVersion()));
        rootDir.mkdirs();

        // we proceed only if "templates.zip" doesn't already exist in the path
        File templatesZip = new File(rootDir, TEMPLATE_ZIP_NAME);
        if(!templatesZip.exists()) {
            File cachedZip = getTemplatesZip();
            Files.copy(cachedZip, templatesZip);
        }
    }

    private File getTemplatesZip() throws IOException {
        // we cache the templates zip for the current version of the plugin
        File cachedZip = new File(System.getProperty("java.io.tmpdir"),
                String.format(
                        CACHED_TEMPLATE_ZIP_NAME,
                        MSOpenTechToolsApplication.getCurrent().getSettings().getPluginVersion()));

        BufferedReader reader = null;
        InputStream inputStream = null;
        ZipOutputStream outputStream = null;

        try {
            if (!cachedZip.exists()) {
                // read list of files to copy to zip and create the zip file
                outputStream = new ZipOutputStream(
                        new BufferedOutputStream(new FileOutputStream(cachedZip)));

                reader = new BufferedReader(
                        new InputStreamReader(
                                MSOpenTechToolsProject.class.getResourceAsStream(
                                        TEMPLATES_RESOURCE_PATH + "fileList.txt")));
                String line = null;
                while ((line = reader.readLine()) != null) {
                    inputStream = MSOpenTechToolsProject.class.getResourceAsStream(
                            TEMPLATES_RESOURCE_PATH + line
                    );

                    ZipEntry entry = new ZipEntry(line);
                    outputStream.putNextEntry(entry);

                    ByteStreams.copy(inputStream, outputStream);
                    inputStream.close();
                    inputStream = null;
                }
                reader.close(); reader = null;
                outputStream.close(); outputStream = null;
            }
        }
        catch (IOException e) {
            // if creation of the zip file fails and leaves a partially
            // created zip file in the file system then we delete it so
            // that we attempt creating it again the next time around
            // which we wouldn't if we discover that the file exists
            // already
            if(cachedZip.exists()) {
                cachedZip.delete();
            }

            throw e;
        }
        finally {
            try {
                if (reader != null) {
                    reader.close();
                }
                if(inputStream != null) {
                    inputStream.close();
                }
                if(outputStream != null) {
                    outputStream.close();
                }
            }
            catch (IOException ignored) {}
        }

        return cachedZip;
    }

    private boolean isAndroidProject() {
        try {
            String projectContent = new String(myProject.getProjectFile().contentsToByteArray());

            Node node = ((NodeList) XmlHelper.getXMLValue(projectContent,
                    "project/component[@name='ProjectType']/option[@name='id']",
                    XPathConstants.NODESET)).item(0);

            return (node != null && XmlHelper.getAttributeValue(node, "value").equals("Android"));

        } catch (Throwable e) {
            return false;
        }
    }
}


text:
package in.twizmwaz.cardinal.module.modules.regions;

import in.twizmwaz.cardinal.GameHandler;
import in.twizmwaz.cardinal.match.Match;
import in.twizmwaz.cardinal.module.BuilderData;
import in.twizmwaz.cardinal.module.ModuleBuilder;
import in.twizmwaz.cardinal.module.ModuleCollection;
import in.twizmwaz.cardinal.module.ModuleLoadTime;
import in.twizmwaz.cardinal.module.modules.regions.parsers.*;
import in.twizmwaz.cardinal.module.modules.regions.parsers.modifiers.CombinationParser;
import in.twizmwaz.cardinal.module.modules.regions.parsers.modifiers.MirrorParser;
import in.twizmwaz.cardinal.module.modules.regions.parsers.modifiers.TranslateParser;
import in.twizmwaz.cardinal.module.modules.regions.type.*;
import in.twizmwaz.cardinal.module.modules.regions.type.combinations.ComplementRegion;
import in.twizmwaz.cardinal.module.modules.regions.type.combinations.IntersectRegion;
import in.twizmwaz.cardinal.module.modules.regions.type.combinations.NegativeRegion;
import in.twizmwaz.cardinal.module.modules.regions.type.combinations.UnionRegion;
import in.twizmwaz.cardinal.module.modules.regions.type.modifications.MirroredRegion;
import in.twizmwaz.cardinal.module.modules.regions.type.modifications.TranslatedRegion;
import org.jdom2.Document;
import org.jdom2.Element;

@BuilderData(load = ModuleLoadTime.EARLIEST)
public class RegionModuleBuilder implements ModuleBuilder {

    @Override
    public ModuleCollection load(Match match) {
        ModuleCollection results = new ModuleCollection();
        for (Element element : match.getDocument().getRootElement().getChildren("regions")) {
            for (Element givenRegion : element.getChildren()) {
                for (Element givenChild : givenRegion.getChildren()) {
                    for (Element givenSubChild : givenChild.getChildren()) {
                        for (Element givenChildRegion : givenSubChild.getChildren()) {
                            getRegion(givenChildRegion);
                        }
                        getRegion(givenSubChild);
                    }
                    getRegion(givenChild);
                }
                if (!givenRegion.getName().equals("apply")) {
                    getRegion(givenRegion);
                }
            }
        }
        return results;
    }

    public static RegionModule getRegion(Element element, Document document) {
        RegionModule region;
        switch (element.getName().toLowerCase()) {
            case "block":
                region = new BlockRegion(new BlockParser(element));
                if (region.getName() != null) GameHandler.getGameHandler().getMatch().getModules().add(region);
                return region;
            case "point":
                region = new PointRegion(new PointParser(element));
                if (region.getName() != null) GameHandler.getGameHandler().getMatch().getModules().add(region);
                return region;
            case "circle":
                region = new CircleRegion(new CircleParser(element));
                if (region.getName() != null) GameHandler.getGameHandler().getMatch().getModules().add(region);
                return region;
            case "cuboid":
                region = new CuboidRegion(new CuboidParser(element));
                if (region.getName() != null) GameHandler.getGameHandler().getMatch().getModules().add(region);
                return region;
            case "cylinder":
                region = new CylinderRegion(new CylinderParser(element));
                if (region.getName() != null) GameHandler.getGameHandler().getMatch().getModules().add(region);
                return region;
            case "empty":
                region = new EmptyRegion(new EmptyParser(element));
                if (region.getName() != null) GameHandler.getGameHandler().getMatch().getModules().add(region);
                return region;
            case "rectangle":
                region = new RectangleRegion(new RectangleParser(element));
                if (region.getName() != null) GameHandler.getGameHandler().getMatch().getModules().add(region);
                return region;
            case "sphere":
                region = new SphereRegion(new SphereParser(element));
                if (region.getName() != null) GameHandler.getGameHandler().getMatch().getModules().add(region);
                return region;
            case "complement":
                region = new ComplementRegion(new CombinationParser(element, document));
                if (region.getName() != null) GameHandler.getGameHandler().getMatch().getModules().add(region);
                return region;
            case "intersect":
                region = new IntersectRegion(new CombinationParser(element, document));
                if (region.getName() != null) GameHandler.getGameHandler().getMatch().getModules().add(region);
                return region;
            case "negative":
                region = new NegativeRegion(new CombinationParser(element, document));
                if (region.getName() != null) GameHandler.getGameHandler().getMatch().getModules().add(region);
                return region;
            case "union":
            case "regions":
                CombinationParser parser = new CombinationParser(element, document);
                for (RegionModule regionChild : parser.getRegions()) {
                    GameHandler.getGameHandler().getMatch().getModules().add(regionChild);
                }
                region = new UnionRegion(parser);
                if (region.getName() != null) GameHandler.getGameHandler().getMatch().getModules().add(region);
                return region;
            case "translate":
                region = new TranslatedRegion(new TranslateParser(element));
                if (region.getName() != null) GameHandler.getGameHandler().getMatch().getModules().add(region);
                return region;
            case "mirror":
                region = new MirroredRegion(new MirrorParser(element));
                if (region.getName() != null) GameHandler.getGameHandler().getMatch().getModules().add(region);
                return region;
            default:
                if (element.getAttributeValue("name") != null) {
                    for (RegionModule regionModule : GameHandler.getGameHandler().getMatch().getModules().getModules(RegionModule.class)) {
                        if (element.getAttributeValue("name").equalsIgnoreCase(regionModule.getName())) {
                            return regionModule;
                        }
                    }
                } else if (element.getAttributeValue("region") != null) {
                    for (RegionModule regionModule : GameHandler.getGameHandler().getMatch().getModules().getModules(RegionModule.class)) {
                        if (element.getAttributeValue("region").equalsIgnoreCase(regionModule.getName())) {
                            return regionModule;
                        }
                    }
                } else {
                    return getRegion(element.getChildren().get(0));
                }
                return null;
        }
    }

    public static RegionModule getRegion(Element element) {
        return getRegion(element, GameHandler.getGameHandler().getMatch().getDocument());
    }

    public static RegionModule getRegion(String string) {
        for (RegionModule regionModule : GameHandler.getGameHandler().getMatch().getModules().getModules(RegionModule.class)) {
            if (string.equalsIgnoreCase(regionModule.getName())) return regionModule;
        }
        return null;
    }
}


text:
'use strict';

const assert = require('../../utils/assert.js');
const Server = require('../../utils/server.js');
const nock = require('nock');
const parse = require('url').parse;

describe('redirects', function () {

    this.timeout(20000);
    const server = new Server();
    before(() => server.start({ maxRedirects: 5 }));
    after(() => server.stop());

    // httpbin no longer live, so just mock its behaviour since all it does here is redirect anyway.
    const redirector = () => {
        nock('https://httpbin.org')
            .get('/redirect-to')
            .query(true)
            .reply((uri) => {
                redirector(); // call again to enable the recursive behaviour below
                return [ 302, undefined, { Location: parse(uri, true).query.url } ];
            });
    };

    beforeEach(() => {
        redirector();
    });

    afterEach(() => {
        nock.cleanAll();
    });

    it('redirect supported', function () {
        return server.query('https://httpbin.org/redirect-to?url=http://www.example.com', 'mediawiki', 'en')
            .then(function (res) {
                assert.status(res, 200);
            });
    });

    it('redir-to-private', function () {
        return server.query('https://httpbin.org/redirect-to?url=http://192.168.1.2', 'mediawiki', 'en')
            .then(function (res) {
                assert.status(res, 400);
            }, function (err) {
                assert.status(err, 400);
            });
    });

    it('redir-to-redir-private', function () {
        return server.query('https://httpbin.org/redirect-to?url=https://httpbin.org/redirect-to?url=http://192.168.1.2', 'mediawiki', 'en')
            .then(function (res) {
                assert.status(res, 400);
            }, function (err) {
                assert.status(err, 400);
            });
    });

    it('redir-to-redir-to-redir-to-private', function () {
        return server.query('https://httpbin.org/redirect-to?url=https://httpbin.org/redirect-to?url=https://httpbin.org/redirect-to?url=http://192.168.1.2', 'mediawiki', 'en')
            .then(function (res) {
                assert.status(res, 400);
            }, function (err) {
                assert.status(err, 400);
            });
    });

    it('five-redirect-max-by-default-under', function () {
        const url = 'https://httpbin.org/redirect-to?url=https://httpbin.org/redirect-to?url=https://httpbin.org/redirect-to?url=https://httpbin.org/redirect-to?url=https://en.wikipedia.org/wiki/Zotero';
        return server.query(url, 'mediawiki', 'en')
            .then(function (res) {
                assert.status(res, 200);
            }, function (err) {
                assert.status(err, 200);
            });
    });

    it('five-redirect-max-by-default-equal', function () {
        const url = 'https://httpbin.org/redirect-to?url=https://httpbin.org/redirect-to?url=https://httpbin.org/redirect-to?url=https://httpbin.org/redirect-to?url=https://httpbin.org/redirect-to?url=https://en.wikipedia.org/wiki/Zotero';
        return server.query(url, 'mediawiki', 'en')
            .then(function (res) {
                assert.status(res, 200);
            }, function (err) {
                assert.status(err, 200);
                assert.deepEqual(err.body.Error, 'Unable to load URL ' + url);
            });
    });

    it('five-redirect-max-by-default-over', function () {
        return server.query('https://httpbin.org/redirect-to?url=https://httpbin.org/redirect-to?url=https://httpbin.org/redirect-to?url=https://httpbin.org/redirect-to?url=https://httpbin.org/redirect-to?url=https://httpbin.org/redirect-to?url=https://en.wikipedia.org/wiki/Zotero', 'mediawiki', 'en')
            .then(function (res) {
                assert.status(res, 400);
            }, function (err) {
                assert.status(err, 400);
            });
    });

});


text:
/*
 * net.js: Test helpers for working with `godot.net`.
 *
 * (C) 2012, Nodejitsu Inc.
 *
 */

var godot = require('../../lib/godot');

//
// ### function createServer (options, callback)
// Creates a `godot` client with the specified `options`.
//
exports.createClient = function (options, callback) {
  options.type = options.type || 'tcp';

  var client = godot.createClient({
    type: options.type,
    producers: options.producers
  });

  client.connect(options.port, options.host || 'localhost', function (err) {
    return err ? callback(err) : callback(null, client);
  });
};

//
// ### function createServer (options, callback)
// Creates a `godot` server with the specified `options`.
//
exports.createServer = function (options, callback) {
  options.type = options.type || 'tcp';

  var server = godot.createServer({
    type: options.type,
    reactors: options.reactors,
    multiplex: options.multiplex
  });

  server.listen(options.port, options.host || 'localhost', function (err) {
    return err ? callback(err) : callback(null, server);
  });
};

//
// ### function getStreams (obj, name)
// #### @obj {godot.net.Client|godot.net.Server} Object holding streams
// #### @names {string|Array} **Optional** Name(s) of streams to find
// Returns the set of instantiated streams on the `godot.net obj` filtering
// for names (if any).
//
exports.getStreams = function (obj, names) {
  if (typeof names === 'string') {
    names = [names];
  }

  if (obj.reactors) {
    //
    // TODO: Support more than one host
    //
    var key = Object.keys(obj.hosts)[0];

    return obj.hosts[key]
      .map(function (pair) {
        return pair.dest;
      })
      .filter(function (stream) {
        return !names || ~names.indexOf(stream.name);
      });
  }
  else if (obj.producers) {
    //
    // TODO: Support producers
    //
  }
};

//
// ### function getStream (obj, name)
// #### @obj {godot.net.Client|godot.net.Server} Object holding streams
// #### @name {string} **Optional** Name(s) of streams to find
// Returns a single instantiated stream on the `godot.net obj` with the
// specified `name`.
//
exports.getStream = function (obj, name) {
  return exports.getStreams(obj, name)[0];
};


text:
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="license_osmdroid" translatable="false">
https://github.com/osmdroid/osmdroid\n
                                Apache License\n
                           Version 2.0, January 2004\n
                        http://www.apache.org/licenses/\n
\n
   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n
\n
   1. Definitions.\n
\n
      "License" shall mean the terms and conditions for use, reproduction,\n
      and distribution as defined by Sections 1 through 9 of this document.\n
\n
      "Licensor" shall mean the copyright owner or entity authorized by\n
      the copyright owner that is granting the License.\n
\n
      "Legal Entity" shall mean the union of the acting entity and all\n
      other entities that control, are controlled by, or are under common\n
      control with that entity. For the purposes of this definition,\n
      "control" means (i) the power, direct or indirect, to cause the\n
      direction or management of such entity, whether by contract or\n
      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n
      outstanding shares, or (iii) beneficial ownership of such entity.\n
\n
      "You" (or "Your") shall mean an individual or Legal Entity\n
      exercising permissions granted by this License.\n
\n
      "Source" form shall mean the preferred form for making modifications,\n
      including but not limited to software source code, documentation\n
      source, and configuration files.\n
\n
      "Object" form shall mean any form resulting from mechanical\n
      transformation or translation of a Source form, including but\n
      not limited to compiled object code, generated documentation,\n
      and conversions to other media types.\n
\n
      "Work" shall mean the work of authorship, whether in Source or\n
      Object form, made available under the License, as indicated by a\n
      copyright notice that is included in or attached to the work\n
      (an example is provided in the Appendix below).\n
\n
      "Derivative Works" shall mean any work, whether in Source or Object\n
      form, that is based on (or derived from) the Work and for which the\n
      editorial revisions, annotations, elaborations, or other modifications\n
      represent, as a whole, an original work of authorship. For the purposes\n
      of this License, Derivative Works shall not include works that remain\n
      separable from, or merely link (or bind by name) to the interfaces of,\n
      the Work and Derivative Works thereof.\n
\n
      "Contribution" shall mean any work of authorship, including\n
      the original version of the Work and any modifications or additions\n
      to that Work or Derivative Works thereof, that is intentionally\n
      submitted to Licensor for inclusion in the Work by the copyright owner\n
      or by an individual or Legal Entity authorized to submit on behalf of\n
      the copyright owner. For the purposes of this definition, "submitted"\n
      means any form of electronic, verbal, or written communication sent\n
      to the Licensor or its representatives, including but not limited to\n
      communication on electronic mailing lists, source code control systems,\n
      and issue tracking systems that are managed by, or on behalf of, the\n
      Licensor for the purpose of discussing and improving the Work, but\n
      excluding communication that is conspicuously marked or otherwise\n
      designated in writing by the copyright owner as "Not a Contribution."\n
\n
      "Contributor" shall mean Licensor and any individual or Legal Entity\n
      on behalf of whom a Contribution has been received by Licensor and\n
      subsequently incorporated within the Work.\n
\n
   2. Grant of Copyright License. Subject to the terms and conditions of\n
      this License, each Contributor hereby grants to You a perpetual,\n
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n
      copyright license to reproduce, prepare Derivative Works of,\n
      publicly display, publicly perform, sublicense, and distribute the\n
      Work and such Derivative Works in Source or Object form.\n
\n
   3. Grant of Patent License. Subject to the terms and conditions of\n
      this License, each Contributor hereby grants to You a perpetual,\n
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n
      (except as stated in this section) patent license to make, have made,\n
      use, offer to sell, sell, import, and otherwise transfer the Work,\n
      where such license applies only to those patent claims licensable\n
      by such Contributor that are necessarily infringed by their\n
      Contribution(s) alone or by combination of their Contribution(s)\n
      with the Work to which such Contribution(s) was submitted. If You\n
      institute patent litigation against any entity (including a\n
      cross-claim or counterclaim in a lawsuit) alleging that the Work\n
      or a Contribution incorporated within the Work constitutes direct\n
      or contributory patent infringement, then any patent licenses\n
      granted to You under this License for that Work shall terminate\n
      as of the date such litigation is filed.\n
\n
   4. Redistribution. You may reproduce and distribute copies of the\n
      Work or Derivative Works thereof in any medium, with or without\n
      modifications, and in Source or Object form, provided that You\n
      meet the following conditions:\n
\n
      (a) You must give any other recipients of the Work or\n
          Derivative Works a copy of this License; and\n
\n
      (b) You must cause any modified files to carry prominent notices\n
          stating that You changed the files; and\n
\n
      (c) You must retain, in the Source form of any Derivative Works\n
          that You distribute, all copyright, patent, trademark, and\n
          attribution notices from the Source form of the Work,\n
          excluding those notices that do not pertain to any part of\n
          the Derivative Works; and\n
\n
      (d) If the Work includes a "NOTICE" text file as part of its\n
          distribution, then any Derivative Works that You distribute must\n
          include a readable copy of the attribution notices contained\n
          within such NOTICE file, excluding those notices that do not\n
          pertain to any part of the Derivative Works, in at least one\n
          of the following places: within a NOTICE text file distributed\n
          as part of the Derivative Works; within the Source form or\n
          documentation, if provided along with the Derivative Works; or,\n
          within a display generated by the Derivative Works, if and\n
          wherever such third-party notices normally appear. The contents\n
          of the NOTICE file are for informational purposes only and\n
          do not modify the License. You may add Your own attribution\n
          notices within Derivative Works that You distribute, alongside\n
          or as an addendum to the NOTICE text from the Work, provided\n
          that such additional attribution notices cannot be construed\n
          as modifying the License.\n
\n
      You may add Your own copyright statement to Your modifications and\n
      may provide additional or different license terms and conditions\n
      for use, reproduction, or distribution of Your modifications, or\n
      for any such Derivative Works as a whole, provided Your use,\n
      reproduction, and distribution of the Work otherwise complies with\n
      the conditions stated in this License.\n
\n
   5. Submission of Contributions. Unless You explicitly state otherwise,\n
      any Contribution intentionally submitted for inclusion in the Work\n
      by You to the Licensor shall be under the terms and conditions of\n
      this License, without any additional terms or conditions.\n
      Notwithstanding the above, nothing herein shall supersede or modify\n
      the terms of any separate license agreement you may have executed\n
      with Licensor regarding such Contributions.\n
\n
   6. Trademarks. This License does not grant permission to use the trade\n
      names, trademarks, service marks, or product names of the Licensor,\n
      except as required for reasonable and customary use in describing the\n
      origin of the Work and reproducing the content of the NOTICE file.\n
\n
   7. Disclaimer of Warranty. Unless required by applicable law or\n
      agreed to in writing, Licensor provides the Work (and each\n
      Contributor provides its Contributions) on an "AS IS" BASIS,\n
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n
      implied, including, without limitation, any warranties or conditions\n
      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n
      PARTICULAR PURPOSE. You are solely responsible for determining the\n
      appropriateness of using or redistributing the Work and assume any\n
      risks associated with Your exercise of permissions under this License.\n
\n
   8. Limitation of Liability. In no event and under no legal theory,\n
      whether in tort (including negligence), contract, or otherwise,\n
      unless required by applicable law (such as deliberate and grossly\n
      negligent acts) or agreed to in writing, shall any Contributor be\n
      liable to You for damages, including any direct, indirect, special,\n
      incidental, or consequential damages of any character arising as a\n
      result of this License or out of the use or inability to use the\n
      Work (including but not limited to damages for loss of goodwill,\n
      work stoppage, computer failure or malfunction, or any and all\n
      other commercial damages or losses), even if such Contributor\n
      has been advised of the possibility of such damages.\n
\n
   9. Accepting Warranty or Additional Liability. While redistributing\n
      the Work or Derivative Works thereof, You may choose to offer,\n
      and charge a fee for, acceptance of support, warranty, indemnity,\n
      or other liability obligations and/or rights consistent with this\n
      License. However, in accepting such obligations, You may act only\n
      on Your own behalf and on Your sole responsibility, not on behalf\n
      of any other Contributor, and only if You agree to indemnify,\n
      defend, and hold each Contributor harmless for any liability\n
      incurred by, or claims asserted against, such Contributor by reason\n
      of your accepting any such warranty or additional liability.\n
\n
   END OF TERMS AND CONDITIONS\n
\n
   APPENDIX: How to apply the Apache License to your work.\n
\n
      To apply the Apache License to your work, attach the following\n
      boilerplate notice, with the fields enclosed by brackets "{}"\n
      replaced with your own identifying information. (Don\'t include\n
      the brackets!)  The text should be enclosed in the appropriate\n
      comment syntax for the file format. We also recommend that a\n
      file or class name and description of purpose be included on the\n
      same "printed page" as the copyright notice for easier\n
      identification within third-party archives.\n
\n
   Copyright {yyyy} {name of copyright owner}\n
\n
   Licensed under the Apache License, Version 2.0 (the "License");\n
   you may not use this file except in compliance with the License.\n
   You may obtain a copy of the License at\n
\n
       http://www.apache.org/licenses/LICENSE-2.0\n
\n
   Unless required by applicable law or agreed to in writing, software\n
   distributed under the License is distributed on an "AS IS" BASIS,\n
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n
   See the License for the specific language governing permissions and\n
   limitations under the License.\n
</string>

    <string name="license_geopackage" translatable="false">\n
        https://github.com/ngageoint/geopackage-android\n
        The MIT License (MIT)\n
\n
Copyright (c) 2015 Bit Systems\n
\n
Permission is hereby granted, free of charge, to any person obtaining a copy\n
of this software and associated documentation files (the "Software"), to deal\n
in the Software without restriction, including without limitation the rights\n
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n
copies of the Software, and to permit persons to whom the Software is\n
furnished to do so, subject to the following conditions:\n
\n
The above copyright notice and this permission notice shall be included in all\n
copies or substantial portions of the Software.\n
\n
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n
SOFTWARE.\n
</string>

    <string name="license_mapsforge" translatable="false">\n
                           GNU LESSER GENERAL PUBLIC LICENSE\n
                       Version 3, 29 June 2007\n
\n
 Copyright (C) 2007 Free Software Foundation, Inc. http://fsf.org/\n
 Everyone is permitted to copy and distribute verbatim copies\n
 of this license document, but changing it is not allowed.\n
\n
\n
  This version of the GNU Lesser General Public License incorporates\n
the terms and conditions of version 3 of the GNU General Public\n
License, supplemented by the additional permissions listed below.\n
\n
  0. Additional Definitions.\n
\n
  As used herein, "this License" refers to version 3 of the GNU Lesser\n
General Public License, and the "GNU GPL" refers to version 3 of the GNU\n
General Public License.\n
\n
  "The Library" refers to a covered work governed by this License,\n
other than an Application or a Combined Work as defined below.\n
\n
  An "Application" is any work that makes use of an interface provided\n
by the Library, but which is not otherwise based on the Library.\n
Defining a subclass of a class defined by the Library is deemed a mode\n
of using an interface provided by the Library.\n
\n
  A "Combined Work" is a work produced by combining or linking an\n
Application with the Library.  The particular version of the Library\n
with which the Combined Work was made is also called the "Linked\n
Version".\n
\n
  The "Minimal Corresponding Source" for a Combined Work means the\n
Corresponding Source for the Combined Work, excluding any source code\n
for portions of the Combined Work that, considered in isolation, are\n
based on the Application, and not on the Linked Version.\n
\n
  The "Corresponding Application Code" for a Combined Work means the\n
object code and/or source code for the Application, including any data\n
and utility programs needed for reproducing the Combined Work from the\n
Application, but excluding the System Libraries of the Combined Work.\n
\n
  1. Exception to Section 3 of the GNU GPL.\n
\n
  You may convey a covered work under sections 3 and 4 of this License\n
without being bound by section 3 of the GNU GPL.\n
\n
  2. Conveying Modified Versions.\n
\n
  If you modify a copy of the Library, and, in your modifications, a\n
facility refers to a function or data to be supplied by an Application\n
that uses the facility (other than as an argument passed when the\n
facility is invoked), then you may convey a copy of the modified\n
version:\n
\n
   a) under this License, provided that you make a good faith effort to\n
   ensure that, in the event an Application does not supply the\n
   function or data, the facility still operates, and performs\n
   whatever part of its purpose remains meaningful, or\n
\n
   b) under the GNU GPL, with none of the additional permissions of\n
   this License applicable to that copy.\n
\n
  3. Object Code Incorporating Material from Library Header Files.\n
\n
  The object code form of an Application may incorporate material from\n
a header file that is part of the Library.  You may convey such object\n
code under terms of your choice, provided that, if the incorporated\n
material is not limited to numerical parameters, data structure\n
layouts and accessors, or small macros, inline functions and templates\n
(ten or fewer lines in length), you do both of the following:\n
\n
   a) Give prominent notice with each copy of the object code that the\n
   Library is used in it and that the Library and its use are\n
   covered by this License.\n
\n
   b) Accompany the object code with a copy of the GNU GPL and this license\n
   document.\n
\n
  4. Combined Works.\n
\n
  You may convey a Combined Work under terms of your choice that,\n
taken together, effectively do not restrict modification of the\n
portions of the Library contained in the Combined Work and reverse\n
engineering for debugging such modifications, if you also do each of\n
the following:\n
\n
   a) Give prominent notice with each copy of the Combined Work that\n
   the Library is used in it and that the Library and its use are\n
   covered by this License.\n
\n
   b) Accompany the Combined Work with a copy of the GNU GPL and this license\n
   document.\n
\n
   c) For a Combined Work that displays copyright notices during\n
   execution, include the copyright notice for the Library among\n
   these notices, as well as a reference directing the user to the\n
   copies of the GNU GPL and this license document.\n
\n
   d) Do one of the following:\n
\n
       0) Convey the Minimal Corresponding Source under the terms of this\n
       License, and the Corresponding Application Code in a form\n
       suitable for, and under terms that permit, the user to\n
       recombine or relink the Application with a modified version of\n
       the Linked Version to produce a modified Combined Work, in the\n
       manner specified by section 6 of the GNU GPL for conveying\n
       Corresponding Source.\n
\n
       1) Use a suitable shared library mechanism for linking with the\n
       Library.  A suitable mechanism is one that (a) uses at run time\n
       a copy of the Library already present on the user\'s computer\n
       system, and (b) will operate properly with a modified version\n
       of the Library that is interface-compatible with the Linked\n
       Version.\n
\n
   e) Provide Installation Information, but only if you would otherwise\n
   be required to provide such information under section 6 of the\n
   GNU GPL, and only to the extent that such information is\n
   necessary to install and execute a modified version of the\n
   Combined Work produced by recombining or relinking the\n
   Application with a modified version of the Linked Version. (If\n
   you use option 4d0, the Installation Information must accompany\n
   the Minimal Corresponding Source and Corresponding Application\n
   Code. If you use option 4d1, you must provide the Installation\n
   Information in the manner specified by section 6 of the GNU GPL\n
   for conveying Corresponding Source.)\n
\n
  5. Combined Libraries.\n
\n
  You may place library facilities that are a work based on the\n
Library side by side in a single library together with other library\n
facilities that are not Applications and are not covered by this\n
License, and convey such a combined library under terms of your\n
choice, if you do both of the following:\n
\n
   a) Accompany the combined library with a copy of the same work based\n
   on the Library, uncombined with any other library facilities,\n
   conveyed under the terms of this License.\n
\n
   b) Give prominent notice with the combined library that part of it\n
   is a work based on the Library, and explaining where to find the\n
   accompanying uncombined form of the same work.\n
\n
  6. Revised Versions of the GNU Lesser General Public License.\n
\n
  The Free Software Foundation may publish revised and/or new versions\n
of the GNU Lesser General Public License from time to time. Such new\n
versions will be similar in spirit to the present version, but may\n
differ in detail to address new problems or concerns.\n
\n
  Each version is given a distinguishing version number. If the\n
Library as you received it specifies that a certain numbered version\n
of the GNU Lesser General Public License "or any later version"\n
applies to it, you have the option of following the terms and\n
conditions either of that published version or of any later version\n
published by the Free Software Foundation. If the Library as you\n
received it does not specify a version number of the GNU Lesser\n
General Public License, you may choose any version of the GNU Lesser\n
General Public License ever published by the Free Software Foundation.\n
\n
  If the Library as you received it specifies that a proxy can decide\n
whether future versions of the GNU Lesser General Public License shall\n
apply, that proxy\'s public statement of acceptance of any version is\n
permanent authorization for you to choose that version for the\n
Library.\n
    </string>

    <string name="license_acra" translatable="false">
https://github.com/ACRA/acra\n
\n
                                 Apache License\n
                           Version 2.0, January 2004\n
                        http://www.apache.org/licenses/\n
\n
   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n
\n
   1. Definitions.\n
\n
      \'License\' shall mean the terms and conditions for use, reproduction,\n
      and distribution as defined by Sections 1 through 9 of this document.\n
\n
      \'Licensor\' shall mean the copyright owner or entity authorized by\n
      the copyright owner that is granting the License.\n
\n
      \'Legal Entity\' shall mean the union of the acting entity and all\n
      other entities that control, are controlled by, or are under common\n
      control with that entity. For the purposes of this definition,\n
      \'control\' means (i) the power, direct or indirect, to cause the\n
      direction or management of such entity, whether by contract or\n
      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n
      outstanding shares, or (iii) beneficial ownership of such entity.\n
\n
      \'You\' (or \'Your\') shall mean an individual or Legal Entity\n
      exercising permissions granted by this License.\n
\n
      \'Source\' form shall mean the preferred form for making modifications,\n
      including but not limited to software source code, documentation\n
      source, and configuration files.\n
\n
      \'Object\' form shall mean any form resulting from mechanical\n
      transformation or translation of a Source form, including but\n
      not limited to compiled object code, generated documentation,\n
      and conversions to other media types.\n
\n
      \'Work\' shall mean the work of authorship, whether in Source or\n
      Object form, made available under the License, as indicated by a\n
      copyright notice that is included in or attached to the work\n
      (an example is provided in the Appendix below).\n
\n
      \'Derivative Works\' shall mean any work, whether in Source or Object\n
      form, that is based on (or derived from) the Work and for which the\n
      editorial revisions, annotations, elaborations, or other modifications\n
      represent, as a whole, an original work of authorship. For the purposes\n
      of this License, Derivative Works shall not include works that remain\n
      separable from, or merely link (or bind by name) to the interfaces of,\n
      the Work and Derivative Works thereof.\n
\n
      \'Contribution\' shall mean any work of authorship, including\n
      the original version of the Work and any modifications or additions\n
      to that Work or Derivative Works thereof, that is intentionally\n
      submitted to Licensor for inclusion in the Work by the copyright owner\n
      or by an individual or Legal Entity authorized to submit on behalf of\n
      the copyright owner. For the purposes of this definition, \'submitted\'\n
      means any form of electronic, verbal, or written communication sent\n
      to the Licensor or its representatives, including but not limited to\n
      communication on electronic mailing lists, source code control systems,\n
      and issue tracking systems that are managed by, or on behalf of, the\n
      Licensor for the purpose of discussing and improving the Work, but\n
      excluding communication that is conspicuously marked or otherwise\n
      designated in writing by the copyright owner as \'Not a Contribution.\'\n
\n
      \'Contributor\' shall mean Licensor and any individual or Legal Entity\n
      on behalf of whom a Contribution has been received by Licensor and\n
      subsequently incorporated within the Work.\n
\n
   2. Grant of Copyright License. Subject to the terms and conditions of\n
      this License, each Contributor hereby grants to You a perpetual,\n
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n
      copyright license to reproduce, prepare Derivative Works of,\n
      publicly display, publicly perform, sublicense, and distribute the\n
      Work and such Derivative Works in Source or Object form.\n
\n
   3. Grant of Patent License. Subject to the terms and conditions of\n
      this License, each Contributor hereby grants to You a perpetual,\n
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n
      (except as stated in this section) patent license to make, have made,\n
      use, offer to sell, sell, import, and otherwise transfer the Work,\n
      where such license applies only to those patent claims licensable\n
      by such Contributor that are necessarily infringed by their\n
      Contribution(s) alone or by combination of their Contribution(s)\n
      with the Work to which such Contribution(s) was submitted. If You\n
      institute patent litigation against any entity (including a\n
      cross-claim or counterclaim in a lawsuit) alleging that the Work\n
      or a Contribution incorporated within the Work constitutes direct\n
      or contributory patent infringement, then any patent licenses\n
      granted to You under this License for that Work shall terminate\n
      as of the date such litigation is filed.\n
\n
   4. Redistribution. You may reproduce and distribute copies of the\n
      Work or Derivative Works thereof in any medium, with or without\n
      modifications, and in Source or Object form, provided that You\n
      meet the following conditions:\n
\n
      (a) You must give any other recipients of the Work or\n
          Derivative Works a copy of this License; and\n
\n
      (b) You must cause any modified files to carry prominent notices\n
          stating that You changed the files; and\n
\n
      (c) You must retain, in the Source form of any Derivative Works\n
          that You distribute, all copyright, patent, trademark, and\n
          attribution notices from the Source form of the Work,\n
          excluding those notices that do not pertain to any part of\n
          the Derivative Works; and\n
\n
      (d) If the Work includes a \'NOTICE\' text file as part of its\n
          distribution, then any Derivative Works that You distribute must\n
          include a readable copy of the attribution notices contained\n
          within such NOTICE file, excluding those notices that do not\n
          pertain to any part of the Derivative Works, in at least one\n
          of the following places: within a NOTICE text file distributed\n
          as part of the Derivative Works; within the Source form or\n
          documentation, if provided along with the Derivative Works; or,\n
          within a display generated by the Derivative Works, if and\n
          wherever such third-party notices normally appear. The contents\n
          of the NOTICE file are for informational purposes only and\n
          do not modify the License. You may add Your own attribution\n
          notices within Derivative Works that You distribute, alongside\n
          or as an addendum to the NOTICE text from the Work, provided\n
          that such additional attribution notices cannot be construed\n
          as modifying the License.\n
\n
      You may add Your own copyright statement to Your modifications and\n
      may provide additional or different license terms and conditions\n
      for use, reproduction, or distribution of Your modifications, or\n
      for any such Derivative Works as a whole, provided Your use,\n
      reproduction, and distribution of the Work otherwise complies with\n
      the conditions stated in this License.\n
\n
   5. Submission of Contributions. Unless You explicitly state otherwise,\n
      any Contribution intentionally submitted for inclusion in the Work\n
      by You to the Licensor shall be under the terms and conditions of\n
      this License, without any additional terms or conditions.\n
      Notwithstanding the above, nothing herein shall supersede or modify\n
      the terms of any separate license agreement you may have executed\n
      with Licensor regarding such Contributions.\n
\n
   6. Trademarks. This License does not grant permission to use the trade\n
      names, trademarks, service marks, or product names of the Licensor,\n
      except as required for reasonable and customary use in describing the\n
      origin of the Work and reproducing the content of the NOTICE file.\n
\n
   7. Disclaimer of Warranty. Unless required by applicable law or\n
      agreed to in writing, Licensor provides the Work (and each\n
      Contributor provides its Contributions) on an \'AS IS\' BASIS,\n
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n
      implied, including, without limitation, any warranties or conditions\n
      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n
      PARTICULAR PURPOSE. You are solely responsible for determining the\n
      appropriateness of using or redistributing the Work and assume any\n
      risks associated with Your exercise of permissions under this License.\n
\n
   8. Limitation of Liability. In no event and under no legal theory,\n
      whether in tort (including negligence), contract, or otherwise,\n
      unless required by applicable law (such as deliberate and grossly\n
      negligent acts) or agreed to in writing, shall any Contributor be\n
      liable to You for damages, including any direct, indirect, special,\n
      incidental, or consequential damages of any character arising as a\n
      result of this License or out of the use or inability to use the\n
      Work (including but not limited to damages for loss of goodwill,\n
      work stoppage, computer failure or malfunction, or any and all\n
      other commercial damages or losses), even if such Contributor\n
      has been advised of the possibility of such damages.\n
\n
   9. Accepting Warranty or Additional Liability. While redistributing\n
      the Work or Derivative Works thereof, You may choose to offer,\n
      and charge a fee for, acceptance of support, warranty, indemnity,\n
      or other liability obligations and/or rights consistent with this\n
      License. However, in accepting such obligations, You may act only\n
      on Your own behalf and on Your sole responsibility, not on behalf\n
      of any other Contributor, and only if You agree to indemnify,\n
      defend, and hold each Contributor harmless for any liability\n
      incurred by, or claims asserted against, such Contributor by reason\n
      of your accepting any such warranty or additional liability.\n
\n
   END OF TERMS AND CONDITIONS\n
\n
   APPENDIX: How to apply the Apache License to your work.\n
\n
      To apply the Apache License to your work, attach the following\n
      boilerplate notice, with the fields enclosed by brackets \'[]\'\n
      replaced with your own identifying information. (Don\'t include\n
      the brackets!)  The text should be enclosed in the appropriate\n
      comment syntax for the file format. We also recommend that a\n
      file or class name and description of purpose be included on the\n
      same \'printed page\' as the copyright notice for easier\n
      identification within third-party archives.\n
\n
   Copyright [yyyy] [name of copyright owner]\n
\n
   Licensed under the Apache License, Version 2.0 (the \'License\');\n
   you may not use this file except in compliance with the License.\n
   You may obtain a copy of the License at\n
\n
       http://www.apache.org/licenses/LICENSE-2.0\n
\n
   Unless required by applicable law or agreed to in writing, software\n
   distributed under the License is distributed on an \'AS IS\' BASIS,\n
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n
   See the License for the specific language governing permissions and\n
   limitations under the License.\n
    </string>

    <string name="license_leakcanary" translatable="false">
        https://github.com/square/leakcanary/blob/master/LICENSE.txt\n
\n
                                 Apache License\n
                           Version 2.0, January 2004\n
                        http://www.apache.org/licenses/\n
\n
   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n
\n
   1. Definitions.\n
\n
      "License" shall mean the terms and conditions for use, reproduction,\n
      and distribution as defined by Sections 1 through 9 of this document.\n
\n
      "Licensor" shall mean the copyright owner or entity authorized by\n
      the copyright owner that is granting the License.\n
\n
      "Legal Entity" shall mean the union of the acting entity and all\n
      other entities that control, are controlled by, or are under common\n
      control with that entity. For the purposes of this definition,\n
      "control" means (i) the power, direct or indirect, to cause the\n
      direction or management of such entity, whether by contract or\n
      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n
      outstanding shares, or (iii) beneficial ownership of such entity.\n
\n
      "You" (or "Your") shall mean an individual or Legal Entity\n
      exercising permissions granted by this License.\n
\n
      "Source" form shall mean the preferred form for making modifications,\n
      including but not limited to software source code, documentation\n
      source, and configuration files.\n
\n
      "Object" form shall mean any form resulting from mechanical\n
      transformation or translation of a Source form, including but\n
      not limited to compiled object code, generated documentation,\n
      and conversions to other media types.\n
\n
      "Work" shall mean the work of authorship, whether in Source or\n
      Object form, made available under the License, as indicated by a\n
      copyright notice that is included in or attached to the work\n
      (an example is provided in the Appendix below).\n
\n
      "Derivative Works" shall mean any work, whether in Source or Object\n
      form, that is based on (or derived from) the Work and for which the\n
      editorial revisions, annotations, elaborations, or other modifications\n
      represent, as a whole, an original work of authorship. For the purposes\n
      of this License, Derivative Works shall not include works that remain\n
      separable from, or merely link (or bind by name) to the interfaces of,\n
      the Work and Derivative Works thereof.\n
\n
      "Contribution" shall mean any work of authorship, including\n
      the original version of the Work and any modifications or additions\n
      to that Work or Derivative Works thereof, that is intentionally\n
      submitted to Licensor for inclusion in the Work by the copyright owner\n
      or by an individual or Legal Entity authorized to submit on behalf of\n
      the copyright owner. For the purposes of this definition, "submitted"\n
      means any form of electronic, verbal, or written communication sent\n
      to the Licensor or its representatives, including but not limited to\n
      communication on electronic mailing lists, source code control systems,\n
      and issue tracking systems that are managed by, or on behalf of, the\n
      Licensor for the purpose of discussing and improving the Work, but\n
      excluding communication that is conspicuously marked or otherwise\n
      designated in writing by the copyright owner as "Not a Contribution."\n
\n
      "Contributor" shall mean Licensor and any individual or Legal Entity\n
      on behalf of whom a Contribution has been received by Licensor and\n
      subsequently incorporated within the Work.\n
\n
   2. Grant of Copyright License. Subject to the terms and conditions of\n
      this License, each Contributor hereby grants to You a perpetual,\n
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n
      copyright license to reproduce, prepare Derivative Works of,\n
      publicly display, publicly perform, sublicense, and distribute the\n
      Work and such Derivative Works in Source or Object form.\n
\n
   3. Grant of Patent License. Subject to the terms and conditions of\n
      this License, each Contributor hereby grants to You a perpetual,\n
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n
      (except as stated in this section) patent license to make, have made,\n
      use, offer to sell, sell, import, and otherwise transfer the Work,\n
      where such license applies only to those patent claims licensable\n
      by such Contributor that are necessarily infringed by their\n
      Contribution(s) alone or by combination of their Contribution(s)\n
      with the Work to which such Contribution(s) was submitted. If You\n
      institute patent litigation against any entity (including a\n
      cross-claim or counterclaim in a lawsuit) alleging that the Work\n
      or a Contribution incorporated within the Work constitutes direct\n
      or contributory patent infringement, then any patent licenses\n
      granted to You under this License for that Work shall terminate\n
      as of the date such litigation is filed.\n
\n
   4. Redistribution. You may reproduce and distribute copies of the\n
      Work or Derivative Works thereof in any medium, with or without\n
      modifications, and in Source or Object form, provided that You\n
      meet the following conditions:\n
\n
      (a) You must give any other recipients of the Work or\n
          Derivative Works a copy of this License; and\n
\n
      (b) You must cause any modified files to carry prominent notices\n
          stating that You changed the files; and\n
\n
      (c) You must retain, in the Source form of any Derivative Works\n
          that You distribute, all copyright, patent, trademark, and\n
          attribution notices from the Source form of the Work,\n
          excluding those notices that do not pertain to any part of\n
          the Derivative Works; and\n
\n
      (d) If the Work includes a "NOTICE" text file as part of its\n
          distribution, then any Derivative Works that You distribute must\n
          include a readable copy of the attribution notices contained\n
          within such NOTICE file, excluding those notices that do not\n
          pertain to any part of the Derivative Works, in at least one\n
          of the following places: within a NOTICE text file distributed\n
          as part of the Derivative Works; within the Source form or\n
          documentation, if provided along with the Derivative Works; or,\n
          within a display generated by the Derivative Works, if and\n
          wherever such third-party notices normally appear. The contents\n
          of the NOTICE file are for informational purposes only and\n
          do not modify the License. You may add Your own attribution\n
          notices within Derivative Works that You distribute, alongside\n
          or as an addendum to the NOTICE text from the Work, provided\n
          that such additional attribution notices cannot be construed\n
          as modifying the License.\n
\n
      You may add Your own copyright statement to Your modifications and\n
      may provide additional or different license terms and conditions\n
      for use, reproduction, or distribution of Your modifications, or\n
      for any such Derivative Works as a whole, provided Your use,\n
      reproduction, and distribution of the Work otherwise complies with\n
      the conditions stated in this License.\n
\n
   5. Submission of Contributions. Unless You explicitly state otherwise,\n
      any Contribution intentionally submitted for inclusion in the Work\n
      by You to the Licensor shall be under the terms and conditions of\n
      this License, without any additional terms or conditions.\n
      Notwithstanding the above, nothing herein shall supersede or modify\n
      the terms of any separate license agreement you may have executed\n
      with Licensor regarding such Contributions.\n
\n
   6. Trademarks. This License does not grant permission to use the trade\n
      names, trademarks, service marks, or product names of the Licensor,\n
      except as required for reasonable and customary use in describing the\n
      origin of the Work and reproducing the content of the NOTICE file.\n
\n
   7. Disclaimer of Warranty. Unless required by applicable law or\n
      agreed to in writing, Licensor provides the Work (and each\n
      Contributor provides its Contributions) on an "AS IS" BASIS,\n
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n
      implied, including, without limitation, any warranties or conditions\n
      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n
      PARTICULAR PURPOSE. You are solely responsible for determining the\n
      appropriateness of using or redistributing the Work and assume any\n
      risks associated with Your exercise of permissions under this License.\n
\n
   8. Limitation of Liability. In no event and under no legal theory,\n
      whether in tort (including negligence), contract, or otherwise,\n
      unless required by applicable law (such as deliberate and grossly\n
      negligent acts) or agreed to in writing, shall any Contributor be\n
      liable to You for damages, including any direct, indirect, special,\n
      incidental, or consequential damages of any character arising as a\n
      result of this License or out of the use or inability to use the\n
      Work (including but not limited to damages for loss of goodwill,\n
      work stoppage, computer failure or malfunction, or any and all\n
      other commercial damages or losses), even if such Contributor\n
      has been advised of the possibility of such damages.\n
\n
   9. Accepting Warranty or Additional Liability. While redistributing\n
      the Work or Derivative Works thereof, You may choose to offer,\n
      and charge a fee for, acceptance of support, warranty, indemnity,\n
      or other liability obligations and/or rights consistent with this\n
      License. However, in accepting such obligations, You may act only\n
      on Your own behalf and on Your sole responsibility, not on behalf\n
      of any other Contributor, and only if You agree to indemnify,\n
      defend, and hold each Contributor harmless for any liability\n
      incurred by, or claims asserted against, such Contributor by reason\n
      of your accepting any such warranty or additional liability.\n
\n
   END OF TERMS AND CONDITIONS\n
\n
   APPENDIX: How to apply the Apache License to your work.\n
\n
      To apply the Apache License to your work, attach the following\n
      boilerplate notice, with the fields enclosed by brackets "[]"\n
      replaced with your own identifying information. (Don\'t include\n
      the brackets!)  The text should be enclosed in the appropriate\n
      comment syntax for the file format. We also recommend that a\n
      file or class name and description of purpose be included on the\n
      same "printed page" as the copyright notice for easier\n
      identification within third-party archives.\n
\n
   Copyright [yyyy] [name of copyright owner]\n
\n
   Licensed under the Apache License, Version 2.0 (the "License");\n
   you may not use this file except in compliance with the License.\n
   You may obtain a copy of the License at\n
\n
       http://www.apache.org/licenses/LICENSE-2.0\n
\n
   Unless required by applicable law or agreed to in writing, software\n
   distributed under the License is distributed on an "AS IS" BASIS,\n
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n
   See the License for the specific language governing permissions and\n
   limitations under the License.\n
    </string>\n
    \n
    <string name="license_ormlite" translatable="false">
dependency of geopackage-android\n
ISC License\n
\n
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby\n
granted, provided that this permission notice appear in all copies.\n
\n
THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING\n
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL,\n
DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,\n
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE\n
USE OR PERFORMANCE OF THIS SOFTWARE.\n
\n
The author may be contacted via http://ormlite.com/\n
    </string>
    \n
    <string name="license_pngj" translatable="false">
dependency of geopackage-android\n
https://github.com/leonbloy/pngj/\n
                                Apache License\n
                           Version 2.0, January 2004\n
                        http://www.apache.org/licenses/\n
\n
   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n
\n
   1. Definitions.\n
\n
      "License" shall mean the terms and conditions for use, reproduction,\n
      and distribution as defined by Sections 1 through 9 of this document.\n
\n
      "Licensor" shall mean the copyright owner or entity authorized by\n
      the copyright owner that is granting the License.\n
\n
      "Legal Entity" shall mean the union of the acting entity and all\n
      other entities that control, are controlled by, or are under common\n
      control with that entity. For the purposes of this definition,\n
      "control" means (i) the power, direct or indirect, to cause the\n
      direction or management of such entity, whether by contract or\n
      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n
      outstanding shares, or (iii) beneficial ownership of such entity.\n
\n
      "You" (or "Your") shall mean an individual or Legal Entity\n
      exercising permissions granted by this License.\n
\n
      "Source" form shall mean the preferred form for making modifications,\n
      including but not limited to software source code, documentation\n
      source, and configuration files.\n
\n
      "Object" form shall mean any form resulting from mechanical\n
      transformation or translation of a Source form, including but\n
      not limited to compiled object code, generated documentation,\n
      and conversions to other media types.\n
\n
      "Work" shall mean the work of authorship, whether in Source or\n
      Object form, made available under the License, as indicated by a\n
      copyright notice that is included in or attached to the work\n
      (an example is provided in the Appendix below).\n
\n
      "Derivative Works" shall mean any work, whether in Source or Object\n
      form, that is based on (or derived from) the Work and for which the\n
      editorial revisions, annotations, elaborations, or other modifications\n
      represent, as a whole, an original work of authorship. For the purposes\n
      of this License, Derivative Works shall not include works that remain\n
      separable from, or merely link (or bind by name) to the interfaces of,\n
      the Work and Derivative Works thereof.\n
\n
      "Contribution" shall mean any work of authorship, including\n
      the original version of the Work and any modifications or additions\n
      to that Work or Derivative Works thereof, that is intentionally\n
      submitted to Licensor for inclusion in the Work by the copyright owner\n
      or by an individual or Legal Entity authorized to submit on behalf of\n
      the copyright owner. For the purposes of this definition, "submitted"\n
      means any form of electronic, verbal, or written communication sent\n
      to the Licensor or its representatives, including but not limited to\n
      communication on electronic mailing lists, source code control systems,\n
      and issue tracking systems that are managed by, or on behalf of, the\n
      Licensor for the purpose of discussing and improving the Work, but\n
      excluding communication that is conspicuously marked or otherwise\n
      designated in writing by the copyright owner as "Not a Contribution."\n
\n
      "Contributor" shall mean Licensor and any individual or Legal Entity\n
      on behalf of whom a Contribution has been received by Licensor and\n
      subsequently incorporated within the Work.\n
\n
   2. Grant of Copyright License. Subject to the terms and conditions of\n
      this License, each Contributor hereby grants to You a perpetual,\n
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n
      copyright license to reproduce, prepare Derivative Works of,\n
      publicly display, publicly perform, sublicense, and distribute the\n
      Work and such Derivative Works in Source or Object form.\n
\n
   3. Grant of Patent License. Subject to the terms and conditions of\n
      this License, each Contributor hereby grants to You a perpetual,\n
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n
      (except as stated in this section) patent license to make, have made,\n
      use, offer to sell, sell, import, and otherwise transfer the Work,\n
      where such license applies only to those patent claims licensable\n
      by such Contributor that are necessarily infringed by their\n
      Contribution(s) alone or by combination of their Contribution(s)\n
      with the Work to which such Contribution(s) was submitted. If You\n
      institute patent litigation against any entity (including a\n
      cross-claim or counterclaim in a lawsuit) alleging that the Work\n
      or a Contribution incorporated within the Work constitutes direct\n
      or contributory patent infringement, then any patent licenses\n
      granted to You under this License for that Work shall terminate\n
      as of the date such litigation is filed.\n
\n
   4. Redistribution. You may reproduce and distribute copies of the\n
      Work or Derivative Works thereof in any medium, with or without\n
      modifications, and in Source or Object form, provided that You\n
      meet the following conditions:\n
\n
      (a) You must give any other recipients of the Work or\n
          Derivative Works a copy of this License; and\n
\n
      (b) You must cause any modified files to carry prominent notices\n
          stating that You changed the files; and\n
\n
      (c) You must retain, in the Source form of any Derivative Works\n
          that You distribute, all copyright, patent, trademark, and\n
          attribution notices from the Source form of the Work,\n
          excluding those notices that do not pertain to any part of\n
          the Derivative Works; and\n
\n
      (d) If the Work includes a "NOTICE" text file as part of its\n
          distribution, then any Derivative Works that You distribute must\n
          include a readable copy of the attribution notices contained\n
          within such NOTICE file, excluding those notices that do not\n
          pertain to any part of the Derivative Works, in at least one\n
          of the following places: within a NOTICE text file distributed\n
          as part of the Derivative Works; within the Source form or\n
          documentation, if provided along with the Derivative Works; or,\n
          within a display generated by the Derivative Works, if and\n
          wherever such third-party notices normally appear. The contents\n
          of the NOTICE file are for informational purposes only and\n
          do not modify the License. You may add Your own attribution\n
          notices within Derivative Works that You distribute, alongside\n
          or as an addendum to the NOTICE text from the Work, provided\n
          that such additional attribution notices cannot be construed\n
          as modifying the License.\n
\n
      You may add Your own copyright statement to Your modifications and\n
      may provide additional or different license terms and conditions\n
      for use, reproduction, or distribution of Your modifications, or\n
      for any such Derivative Works as a whole, provided Your use,\n
      reproduction, and distribution of the Work otherwise complies with\n
      the conditions stated in this License.\n
\n
   5. Submission of Contributions. Unless You explicitly state otherwise,\n
      any Contribution intentionally submitted for inclusion in the Work\n
      by You to the Licensor shall be under the terms and conditions of\n
      this License, without any additional terms or conditions.\n
      Notwithstanding the above, nothing herein shall supersede or modify\n
      the terms of any separate license agreement you may have executed\n
      with Licensor regarding such Contributions.\n
\n
   6. Trademarks. This License does not grant permission to use the trade\n
      names, trademarks, service marks, or product names of the Licensor,\n
      except as required for reasonable and customary use in describing the\n
      origin of the Work and reproducing the content of the NOTICE file.\n
\n
   7. Disclaimer of Warranty. Unless required by applicable law or\n
      agreed to in writing, Licensor provides the Work (and each\n
      Contributor provides its Contributions) on an "AS IS" BASIS,\n
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n
      implied, including, without limitation, any warranties or conditions\n
      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n
      PARTICULAR PURPOSE. You are solely responsible for determining the\n
      appropriateness of using or redistributing the Work and assume any\n
      risks associated with Your exercise of permissions under this License.\n
\n
   8. Limitation of Liability. In no event and under no legal theory,\n
      whether in tort (including negligence), contract, or otherwise,\n
      unless required by applicable law (such as deliberate and grossly\n
      negligent acts) or agreed to in writing, shall any Contributor be\n
      liable to You for damages, including any direct, indirect, special,\n
      incidental, or consequential damages of any character arising as a\n
      result of this License or out of the use or inability to use the\n
      Work (including but not limited to damages for loss of goodwill,\n
      work stoppage, computer failure or malfunction, or any and all\n
      other commercial damages or losses), even if such Contributor\n
      has been advised of the possibility of such damages.\n
\n
   9. Accepting Warranty or Additional Liability. While redistributing\n
      the Work or Derivative Works thereof, You may choose to offer,\n
      and charge a fee for, acceptance of support, warranty, indemnity,\n
      or other liability obligations and/or rights consistent with this\n
      License. However, in accepting such obligations, You may act only\n
      on Your own behalf and on Your sole responsibility, not on behalf\n
      of any other Contributor, and only if You agree to indemnify,\n
      defend, and hold each Contributor harmless for any liability\n
      incurred by, or claims asserted against, such Contributor by reason\n
      of your accepting any such warranty or additional liability.\n
\n
   END OF TERMS AND CONDITIONS\n
\n
   APPENDIX: How to apply the Apache License to your work.\n
\n
      To apply the Apache License to your work, attach the following\n
      boilerplate notice, with the fields enclosed by brackets "[]"\n
      replaced with your own identifying information. (Don\'t include\n
      the brackets!)  The text should be enclosed in the appropriate\n
      comment syntax for the file format. We also recommend that a\n
      file or class name and description of purpose be included on the\n
      same "printed page" as the copyright notice for easier\n
      identification within third-party archives.\n
\n
   Copyright [yyyy] [name of copyright owner]\n
\n
   Licensed under the Apache License, Version 2.0 (the "License");\n
   you may not use this file except in compliance with the License.\n
   You may obtain a copy of the License at\n
\n
       http://www.apache.org/licenses/LICENSE-2.0\n
\n
   Unless required by applicable law or agreed to in writing, software\n
   distributed under the License is distributed on an "AS IS" BASIS,\n
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n
   See the License for the specific language governing permissions and\n
   limitations under the License.\n
    </string>
</resources>


text:
describe("English numbers", function() {
  it("is zero when 0", function() {
    expect(numberInEnglish(0)).toEqual("zero")
  })

  it("is one when 1", function() {
    expect(numberInEnglish(1)).toEqual("one")
  })

  it("is nine when 9", function() {
    expect(numberInEnglish(9)).toEqual("nine")
  })

  it("is minus three when -3", function() {
    expect(numberInEnglish(-3)).toEqual("minus three")
  })

  it("is minus seven when -7", function() {
    expect(numberInEnglish(-7)).toEqual("minus seven")
  })

  it("is ten when 10", function() {
    expect(numberInEnglish(10)).toEqual("ten")
  })

  it("is seventeen when 17", function() {
    expect(numberInEnglish(17)).toEqual("seventeen")
  })

  it("is minus seventeen when -17", function() {
    expect(numberInEnglish(-17)).toEqual("minus seventeen")
  })

  it("is twenty when 20", function() {
    expect(numberInEnglish(20)).toEqual("twenty")
  })

  it("is thirty when 30", function() {
    expect(numberInEnglish(30)).toEqual("thirty")
  })

  it("is minus eighty when -80", function() {
    expect(numberInEnglish(-80)).toEqual("minus eighty")
  })

  it("is twenty-one when 21", function() {
    expect(numberInEnglish(21)).toEqual("twenty-one")
  })

  it("is minus forty-two when -42", function() {
    expect(numberInEnglish(-42)).toEqual("minus forty-two")
  })

  it("is one hundred when 100", function() {
    expect(numberInEnglish(100)).toEqual("one hundred")
  })

  it("is one hundred one when 101", function() {
    expect(numberInEnglish(101)).toEqual("one hundred one")
  })

  it("is one hundred twenty-seven when 127", function() {
    expect(numberInEnglish(127)).toEqual("one hundred twenty-seven")
  })

  it("is two hundred forty-two when 242", function() {
    expect(numberInEnglish(242)).toEqual("two hundred forty-two")
  })

  it("is one thousand when 1000", function() {
    expect(numberInEnglish(1000)).toEqual("one thousand")
  })

  it("is one thousand six hundred forty-three when 1643", function() {
    expect(numberInEnglish(1643)).toEqual("one thousand six hundred forty-three")
  })

  it("is two hundred fifty-seven thousand nine hundred thirty-eight when 257938", function() {
    expect(numberInEnglish(257938)).toEqual("two hundred fifty-seven thousand nine hundred thirty-eight")
  })

  it("is nine hundred ninety-nine million nine hundred ninety-nine thousand nine hundred ninety-nine when 999999999", function() {
    expect(numberInEnglish(999999999)).toEqual("nine hundred ninety-nine million nine hundred ninety-nine thousand nine hundred ninety-nine")
  })
})


text:
char *make_config_path(char *, char *);

#endif


text:
package com.elevenpaths.latchhook.plugins;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Message;
import android.os.Messenger;

import com.elevenpaths.latchhook.plugins.base.Plugin;
import com.elevenpaths.latchhook.services.LatchService;
import com.elevenpaths.latchhook.utils.ConfigurationManager;
import com.elevenpaths.latchhook.utils.LatchServiceHandler;
import com.elevenpaths.latchhook.utils.MessageHandler;
import com.saurik.substrate.MS;

import java.lang.reflect.Method;

public class HandleStartActivityForResultWithBundle extends Plugin {

    @Override
    public String getPluginName() {
        return HandleStartActivityForResultWithBundle.class.getName();
    }

    @Override
    public String getClassNameToHook() {
        return "android.app.Activity";
    }

    @Override
    public Method getMethodNameToHook(Class hookedClass) throws NoSuchMethodException {
        return hookedClass.getMethod("startActivityForResult ", Intent.class, int.class, Bundle.class);
    }

    @Override
    public Object modifyAction(MS.MethodAlteration hookedMethod, Object capturedInstance, Object... args) throws Throwable {

        final MS.MethodAlteration finalMethod = hookedMethod;
        final Context finalContext = (Context) capturedInstance;
        final Intent finalIntent = (Intent) args[0];
        final int finalResponseCode = (int) args[1];
        final Bundle finalBundle = (Bundle) args[2];

        final LatchServiceHandler latchServiceHandler = new LatchServiceHandler(finalContext.getApplicationContext());
        Messenger serviceResponseHandler = new Messenger(new MessageHandler() {
            @Override
            public void handleMessage(Message msg) {
                boolean latchOpen = msg.getData().getBoolean(LatchService.PARAM_OPEN);
                try {
                    if (!latchOpen) {
                        Intent intent = new Intent();
                        intent.setClassName(ConfigurationManager.PACKAGE_NAME, ConfigurationManager.UNATHORIZED_ACTION_ACTIVITY_NAME);
                        finalContext.startActivity(intent);
                    } else {
                        finalMethod.invoke(finalContext, finalIntent, finalResponseCode, finalBundle);
                    }
                }catch (Throwable t){
                    t.printStackTrace();
                }
                latchServiceHandler.unbound();
            }
        });
        latchServiceHandler.setServiceResponseHandler(serviceResponseHandler);
        latchServiceHandler.queryLatchService((Intent) args[0]); // ask to LatchService for the status, the response will be handled by the serviceResponseHandler
        return null; // now the startActivity asked for the Launcher can be dropped
    }
}


text:
/**
 * Created by trnay on 2017/01/12.
 */
'use strict';

angular.module('canvasNewWait').component('canvasNewWait', {
    templateUrl: 'angular_components/canvas/canvasNewWait/canvasNewWait.template.html',
    controller: ['$routeParams', '$scope', '$location', 'socket', 'Alerts', 'CurrentLocationStr', 'sharedCanvasObject'
        , function ($routeParams, $scope, $location, socket, Alerts, CurrentLocationStr, sharedCanvasObject) {
            $scope.sessionId = $routeParams.sessionId;

            socket.on('continueToCanvas', function () {
                $location.path('/canvas/drawing/' + $scope.sharedCanvasObject.uuid);
            });

            this.$onInit = function () {
                $scope.sharedCanvasObject = sharedCanvasObject;

                Alerts.push({
                    type: 'alert-info',
                    strong: 'canvas/new/:sessionId',
                    text: ' current sessionId is ' + $routeParams.sessionId
                });

                CurrentLocationStr.title = 'Waiting to start';

                socket.emit('joinRoom', {value: $scope.sharedCanvasObject.uuid});
            }
        }]
});


text:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="com.thedamfr.android.BleEventAdapter"
          android:versionCode="1"
          android:versionName="1.0">

    <application
            android:label="@string/app_name"
            android:icon="@drawable/ic_launcher">
        <service android:name=".service.discovery.device.DeviceDiscoveryService"/>
        <service android:name=".service.gatt.GattService"/>
    </application>
</manifest>


text:
L.Control.Draw = L.Control.extend({

	options: {
		position: 'topleft',
		draw: {},
		edit: false
	},

	initialize: function (options) {
		if (L.version < '0.7') {
			throw new Error('Leaflet.draw 0.2.3+ requires Leaflet 0.7.0+. Download latest from https://github.com/Leaflet/Leaflet/');
		}

		L.Control.prototype.initialize.call(this, options);

		var toolbar;

		this._toolbars = {};

		// Initialize toolbars
		if (L.DrawToolbar && this.options.draw) {
			toolbar = new L.DrawToolbar(this.options.draw);

			this._toolbars[L.DrawToolbar.TYPE] = toolbar;

			// Listen for when toolbar is enabled
			this._toolbars[L.DrawToolbar.TYPE].on('enable', this._toolbarEnabled, this);
		}

		if (L.EditToolbar && this.options.edit) {
			toolbar = new L.EditToolbar(this.options.edit);

			this._toolbars[L.EditToolbar.TYPE] = toolbar;

			// Listen for when toolbar is enabled
			this._toolbars[L.EditToolbar.TYPE].on('enable', this._toolbarEnabled, this);
		}
		L.toolbar = this; //set global var for editing the toolbar
	},

	onAdd: function (map) {
		var container = L.DomUtil.create('div', 'leaflet-draw'),
			addedTopClass = false,
			topClassName = 'leaflet-draw-toolbar-top',
			toolbarContainer;

		for (var toolbarId in this._toolbars) {
			if (this._toolbars.hasOwnProperty(toolbarId)) {
				toolbarContainer = this._toolbars[toolbarId].addToolbar(map);

				if (toolbarContainer) {
					// Add class to the first toolbar to remove the margin
					if (!addedTopClass) {
						if (!L.DomUtil.hasClass(toolbarContainer, topClassName)) {
							L.DomUtil.addClass(toolbarContainer.childNodes[0], topClassName);
						}
						addedTopClass = true;
					}

					container.appendChild(toolbarContainer);
				}
			}
		}

		return container;
	},

	onRemove: function () {
		for (var toolbarId in this._toolbars) {
			if (this._toolbars.hasOwnProperty(toolbarId)) {
				this._toolbars[toolbarId].removeToolbar();
			}
		}
	},

	setDrawingOptions: function (options) {
		for (var toolbarId in this._toolbars) {
			if (this._toolbars[toolbarId] instanceof L.DrawToolbar) {
				this._toolbars[toolbarId].setOptions(options);
			}
		}
	},

	_toolbarEnabled: function (e) {
		var enabledToolbar = e.target;

		for (var toolbarId in this._toolbars) {
			if (this._toolbars[toolbarId] !== enabledToolbar) {
				this._toolbars[toolbarId].disable();
			}
		}
	}
});

L.Map.mergeOptions({
	drawControlTooltips: true,
	drawControl: false
});

L.Map.addInitHook(function () {
	if (this.options.drawControl) {
		this.drawControl = new L.Control.Draw();
		this.addControl(this.drawControl);
	}
});


text:
angular.module('stockMarketApp', [])
  .controller('MainCtrl', [function() {
    var self = this;
    self.stocks = [
      {name: 'First Stock', price: 100, previous: 220},
      {name: 'Second Stock', price: 140, previous: 120}
    ];
    self.changeAllStocks = function() {
      for (var i = 0; i < 4; i++) {
        self.stocks[i] = {
          name: 'Controller Stock',
          price: 200,
          previous: 250
        };
      }
    };

    self.changeFirstStock = function() {
      self.stocks[0].name = 'Changed First Stock';
    };
  }]);


text:
function plotResults(results)

%% mean
resultsMean = zeros(55,32);
for i = 1:32
    resultsMean(:,i) = sum(results(:,mapping(i,10)),2)/10;
end

xVariables = {'poseSigma','pointSigma','planeSigma','surfaceSigma'};
yVariables = {'initialChiSquaredError','finalChiSquaredError',...,
    'constrainedInitialChiSquaredError','constrainedFinalChiSquaredError',...,
    'finalNormdX','constrainedFinalNormdX',...
    'poseTranslationError0','poseTranslationError0C',...
    'poseTranslationErrorN','poseTranslationErrorNC',...
    'poseRotationError0','poseRotationError0C',...
    'poseRotationErrorN','poseRotationErrorNC',...
    'allPoseTranslationError0','allPoseTranslationError0C',...
    'allPoseTranslationErrorN','allPoseTranslationErrorNC',...
    'allPoseRotationError0','allPoseRotationError0C',...
    'allPoseRotationErrorN','allPoseRotationErrorNC',...
    'pointError0','pointError0C','pointErrorN','pointErrorNC',...
    'allPointError0','allPointError0C','allPointErrorN','allPointErrorNC',...
    'planeNormalError0','planeNormalError0C',...
    'planeNormalErrorN','planeNormalErrorNC',...
    'planeDistanceError0','planeDistanceError0C',...
    'planeDistanceErrorN','planeDistanceErrorNC',...
    'planeFitError0','planeFitError0C','planeFitErrorN','planeFitErrorNC',...
    'planeFitErrorEstimate0','planeFitErrorEstimate0C',...
    'planeFitErrorEstimateN','planeFitErrorEstimateNC',...
    'planeFitErrorGroundTruth0','planeFitErrorGroundTruth0C',...
    'planeFitErrorGroundTruthN','planeFitErrorGroundTruthNC'};

xVars = [1:4];
yVars = [5 7  9 11 12 15 16 19 20 23 24 27 28 31 32 35 36 39 40 43 44 47 48 51 52;
    6 8 10 13 14 17 18 21 22 25 26 29 30 33 34 37 38 41 42 45 46 49 50 53 54] - 4;

for i = 1:size(xVars,2)
    for j = 1:size(yVars,2)
        figure
        subplot(2,1,1)
        plotTesting(xVariables{xVars(i)},yVariables{yVars(1,j)},resultsMean,'b.-')
        xlabel(strcat(xVariables{xVars(i)},' multiplier'))
        ylabel(yVariables{yVars(1,j)})
        title(strcat(xVariables{xVars(i)},' vs',' ',yVariables{yVars(1,j)}))

        subplot(2,1,2)
        plotTesting(xVariables{xVars(i)},yVariables{yVars(2,j)},resultsMean,'b.-')
        xlabel(strcat(xVariables{xVars(i)},' multiplier'))
        ylabel(yVariables{yVars(2,j)})
        title(strcat(xVariables{xVars(i)},' vs',' ',yVariables{yVars(2,j)}))
    end
end

x = 1:320;
figure
subplot(2,1,1)
plot(x,results(2,:))
xlabel('number of trials')
ylabel('solve time in case of no constraints')
title('Number of trials vs solving time with no added constraints')
subplot(2,1,2)
plot(x,results(3,:))
xlabel('number of trials')
ylabel('solve time in case of added constraints')
title('Number of trials vs solving time with added constraints')

figure
subplot(2,1,1)
plot(x,results(4,:))
xlabel('number of trials')
ylabel('number of iterations in case of no constraints')
title('Number of trials vs number of iterations with no added constraints')
subplot(2,1,2)
plot(x,results(5,:))
xlabel('number of trials')
ylabel('number of iterations in case of added constraints')
title('Number of trials vs number of iterations with added constraints')

figlist=findobj('Type','figure');
for i=1:numel(figlist)
    saveas(figlist(i),fullfile('/home/mina/workspace/src/Git/dynamicSLAM/Results',['figure' num2str(i) '.jpg']));
end


text:
namespace v8 {
namespace base {
namespace internal {

// Fast saturation to a destination type.
template <typename Dst, typename Src>
struct SaturateFastAsmOp {
  static constexpr bool is_supported =
      std::is_signed<Src>::value && std::is_integral<Dst>::value &&
      std::is_integral<Src>::value &&
      IntegerBitsPlusSign<Src>::value <= IntegerBitsPlusSign<int32_t>::value &&
      IntegerBitsPlusSign<Dst>::value <= IntegerBitsPlusSign<int32_t>::value &&
      !IsTypeInRangeForNumericType<Dst, Src>::value;

  __attribute__((always_inline)) static Dst Do(Src value) {
    int32_t src = value;
    typename std::conditional<std::is_signed<Dst>::value, int32_t,
                              uint32_t>::type result;
    if (std::is_signed<Dst>::value) {
      asm("ssat %[dst], %[shift], %[src]"
          : [dst] "=r"(result)
          : [src] "r"(src), [shift] "n"(IntegerBitsPlusSign<Dst>::value <= 32
                                            ? IntegerBitsPlusSign<Dst>::value
                                            : 32));
    } else {
      asm("usat %[dst], %[shift], %[src]"
          : [dst] "=r"(result)
          : [src] "r"(src), [shift] "n"(IntegerBitsPlusSign<Dst>::value < 32
                                            ? IntegerBitsPlusSign<Dst>::value
                                            : 31));
    }
    return static_cast<Dst>(result);
  }
};

}  // namespace internal
}  // namespace base
}  // namespace v8

#endif  // V8_BASE_SAFE_CONVERSIONS_ARM_IMPL_H_