text:
use resources::*;
use resources::web_resource::*;
use resources::common::*;
use caches::common::*;

pub struct ShowResource<'a, T: 'a + Cache> {
    wr: &'a mut WebResource,
    cache: &'a mut Box<T>
}

impl<'a, T: 'a + Cache> ShowResource<'a, T> {
    pub fn new(wr: &'a mut WebResource, cache: &'a mut Box<T>) -> Self {
        ShowResource {
            wr: wr,
            cache: cache
        }
    }
    fn post_url(&self, postid: &String, page: usize) -> String {
        let base_url = "http://forum1.hkgolden.com/view.aspx";
        let posturl = format!("{base_url}?type=BW&message={postid}&page={page}",
                              base_url = base_url,
                              postid = postid,
                              page = page);
        posturl
    }

}

impl<'a, T: 'a + Cache> Resource for ShowResource<'a, T> {
    fn fetch(&mut self, item: &ChannelItem) -> ChannelItem {
        info!("show resource #fetch");
        match item.extra.clone() {
            Some(o) => {
                match o {
                    ChannelItemType::Show(extra) => {
                        let html_path = format!("data/cache/html/{postid}/", postid = extra.postid);
                        let show_file_name = format!("show_{page}.html", page = extra.page);

                        let postid = extra.postid.clone();

                        let (from_cache, result) = match self.cache.read(&html_path, &show_file_name) {
                            Ok(result) => (true, result),
                            Err(_) => {
                                let posturl = self.post_url(&extra.postid, extra.page);
                                let result = self.wr.get(&posturl);
                                (false, result.into_bytes())
                            }
                        };

                        if !from_cache {
                            let result2 = result.clone();
                            self.cache.write(&html_path, &show_file_name, result2).expect("fail to write cache");
                        }

                        let result_item = ChannelItem {
                            extra: Some(ChannelItemType::Show(ChannelShowItem { postid: postid, page: extra.page })),
                            result: String::from_utf8(result).expect("fail to build result item, reason: invalid string"),
                        };
                        result_item
                    },
                    _ => Default::default()
                }
            }
            None => Default::default()

        }
    }
}

redpajama_set_name: RedPajamaGithub


text:
newparam(:b_test) do
end


text:
"""Splinter plugin for pytest.

Provides easy interface for the browser from your tests providing the `browser` fixture
which is an object of splinter Browser class.
"""
import functools  # pragma: no cover
try:
    from httplib import HTTPException
except ImportError:
    from http.client import HTTPException
import mimetypes  # pragma: no cover
import os.path
import re

import pytest  # pragma: no cover
import splinter  # pragma: no cover
from _pytest import junitxml
from _pytest.tmpdir import tmpdir

from selenium.webdriver.support import wait

from .webdriver_patches import patch_webdriver  # pragma: no cover
from .splinter_patches import patch_webdriverelement  # pragma: no cover

import logging
LOGGER = logging.getLogger(__name__)

NAME_RE = re.compile(r'[\W]')

def _visit(self, url):
    """Override splinter's visit to avoid unnecessary checks and add wait_until instead."""
    self.__dict__.pop('status_code', None)
    self.driver.get(url)
    self.wait_for_condition(self.visit_condition, timeout=self.visit_condition_timeout)

def _wait_for_condition(self, condition=None, timeout=None, poll_frequency=0.5, ignored_exceptions=None):
    """Wait for given javascript condition."""
    condition = functools.partial(condition or self.visit_condition, self)

    timeout = timeout or self.visit_condition_timeout

    return wait.WebDriverWait(
        self.driver, timeout, poll_frequency=poll_frequency, ignored_exceptions=ignored_exceptions
    ).until(
        lambda browser: condition()
    )

def _get_status_code(self):
    """Lazy status code get."""
    inst_status_code = self.__dict__.get('status_code')
    if inst_status_code:
        return inst_status_code
    self.connect(self.url)
    return self.status_code

def _set_status_code(self, value):
    """Lazy status code set."""
    self.__dict__['status_code'] = value

def Browser(*args, **kwargs):
    """Emulate splinter's Browser."""
    visit_condition = kwargs.pop('visit_condition')
    visit_condition_timeout = kwargs.pop('visit_condition_timeout')
    browser = splinter.Browser(*args, **kwargs)
    browser.wait_for_condition = functools.partial(_wait_for_condition, browser)
    if hasattr(browser, 'driver'):
        browser.visit_condition = visit_condition
        browser.visit_condition_timeout = visit_condition_timeout
        browser.visit = functools.partial(_visit, browser)
        browser.__class__.status_code = property(_get_status_code, _set_status_code)
    browser.__splinter_browser__ = True
    return browser

@pytest.fixture(scope='session')  # pragma: no cover
def splinter_close_browser():
    """Close browser fixture."""
    return True

@pytest.fixture(scope='session')  # pragma: no cover
def splinter_webdriver(request):
    """Webdriver fixture."""
    return request.config.option.splinter_webdriver

@pytest.fixture(scope='session')  # pragma: no cover
def splinter_remote_url(request):
    """Remote webdriver url.

    :return: URL of remote webdriver.
    """
    return request.config.option.splinter_remote_url

@pytest.fixture(scope='session')  # pragma: no cover
def splinter_selenium_socket_timeout(request):
    """Internal Selenium socket timeout (communication between webdriver and the browser).

    :return: Seconds.
    """
    return request.config.option.splinter_webdriver_socket_timeout

@pytest.fixture(scope='session')  # pragma: no cover
def splinter_selenium_implicit_wait(request):
    """Selenium implicit wait timeout.

    :return: Seconds.
    """
    return request.config.option.splinter_webdriver_implicit_wait

@pytest.fixture(scope='session')  # pragma: no cover
def splinter_selenium_speed(request):
    """Selenium speed.

    :return: Seconds.
    """
    return request.config.option.splinter_webdriver_speed

@pytest.fixture(scope='session')  # pragma: no cover
def splinter_browser_load_condition():
    """The condition that has to be `True` to assume that the page is fully loaded.

    One example is to wait for jQuery, then the condition could be::

        @pytest.fixture
        def splinter_browser_load_condition():

            def condition(browser):
                return browser.evaluate_script('typeof $ === "undefined" || !$.active')

            return condition
    """
    return lambda browser: True

@pytest.fixture(scope='session')  # pragma: no cover
def splinter_browser_load_timeout():
    """The timeout in seconds in which the page is expected to be fully loaded."""
    return 10

@pytest.fixture(scope='session')  # pragma: no cover
def splinter_file_download_dir(session_tmpdir):
    """Browser file download directory."""
    return session_tmpdir.ensure('splinter', 'download', dir=True).strpath

@pytest.fixture(scope='session')  # pragma: no cover
def splinter_download_file_types():
    """Browser file types to download. Comma-separated."""
    return ','.join(mimetypes.types_map.values())

@pytest.fixture(scope='session')
def splinter_firefox_profile_preferences():
    """Firefox profile preferences."""
    return {
        'browser.cache.memory.enable': False,
        'browser.sessionhistory.max_total_viewers': 0,
        'network.http.pipelining': True,
        'network.http.pipelining.maxrequests': 8
    }

@pytest.fixture(scope='session')
def splinter_firefox_profile_directory():
    """Firefox profile directory."""
    return os.path.join(os.path.dirname(__file__), 'profiles', 'firefox')

@pytest.fixture(scope='session')
def splinter_driver_kwargs():
    """Webdriver kwargs."""
    return {}

@pytest.fixture(scope='session')
def splinter_window_size():
    """Browser window size. (width, height)."""
    return (1366, 768)

@pytest.fixture(scope='session')
def splinter_session_scoped_browser(request):
    """Flag to keep single browser per test session."""
    return request.config.option.splinter_session_scoped_browser == 'true'

@pytest.fixture(scope='session')
def splinter_make_screenshot_on_failure(request):
    """Flag to make browser screenshot on test failure."""
    return request.config.option.splinter_make_screenshot_on_failure == 'true'

@pytest.fixture(scope='session')  # pragma: no cover
def splinter_screenshot_dir(request):
    """Browser screenshot directory."""
    return os.path.abspath(request.config.option.splinter_screenshot_dir)

@pytest.fixture(scope='session')
def splinter_webdriver_executable(request):
    """Webdriver executable directory."""
    executable = request.config.option.splinter_webdriver_executable
    return os.path.abspath(executable) if executable else None

@pytest.fixture(scope='session')
def browser_pool(request, splinter_close_browser):
    """Browser 'pool' to emulate session scope but with possibility to recreate browser."""
    pool = {}

    def fin():
        for browser in pool.values():
            try:
                browser.quit()
            except (IOError, OSError):
                pass

    if splinter_close_browser:
        request.addfinalizer(fin)

    return pool

@pytest.fixture(scope='session')
def browser_patches(splinter_selenium_socket_timeout):
    """Browser monkey patches."""
    patch_webdriver(splinter_selenium_socket_timeout)
    patch_webdriverelement()

@pytest.fixture(scope='session')
def session_tmpdir(request):
    """pytest tmpdir which is session-scoped."""
    return tmpdir(request)

@pytest.fixture(scope='session')
def splinter_browser_class(request):
    """Browser class to use for browser instance creation."""
    return Browser

def get_args(driver=None,
             download_dir=None,
             download_ftypes=None,
             firefox_pref=None,
             firefox_prof_dir=None,
             remote_url=None,
             executable=None,
             driver_kwargs=None):
    """Construct arguments to be passed to webdriver on initialization."""
    kwargs = {}

    if driver == 'firefox':
        kwargs['profile_preferences'] = dict({
            'browser.download.folderList': 2,
            'browser.download.manager.showWhenStarting': False,
            'browser.download.dir': download_dir,
            'browser.helperApps.neverAsk.saveToDisk': download_ftypes,
            'browser.helperApps.alwaysAsk.force': False,
            'pdfjs.disabled': True,  # disable internal ff pdf viewer to allow auto pdf download
        }, **firefox_pref)
        kwargs['profile'] = firefox_prof_dir
    elif driver == 'remote':
        kwargs['url'] = remote_url
    elif driver in ('phantomjs', 'chrome'):
        if executable:
            kwargs['executable_path'] = executable
    if driver_kwargs:
        kwargs.update(driver_kwargs)

    return kwargs

@pytest.fixture(scope='session')
def browser_instance_getter(
        browser_patches,
        splinter_session_scoped_browser,
        splinter_browser_load_condition,
        splinter_browser_load_timeout,
        splinter_download_file_types,
        splinter_driver_kwargs,
        splinter_file_download_dir,
        splinter_firefox_profile_preferences,
        splinter_firefox_profile_directory,
        splinter_make_screenshot_on_failure,
        splinter_remote_url,
        splinter_screenshot_dir,
        splinter_selenium_implicit_wait,
        splinter_selenium_socket_timeout,
        splinter_selenium_speed,
        splinter_webdriver,
        splinter_webdriver_executable,
        splinter_window_size,
        splinter_browser_class,
        session_tmpdir,
        browser_pool,
):
    """Splinter browser instance getter. To be used for getting of plugin.Browser's instances.

    :return: function(parent). Each time this function will return new instance of plugin.Browser class.
    """
    def get_browser():
        kwargs = get_args(driver=splinter_webdriver,
                          download_dir=splinter_file_download_dir,
                          download_ftypes=splinter_download_file_types,
                          firefox_pref=splinter_firefox_profile_preferences,
                          firefox_prof_dir=splinter_firefox_profile_directory,
                          remote_url=splinter_remote_url,
                          executable=splinter_webdriver_executable,
                          driver_kwargs=splinter_driver_kwargs)
        return splinter_browser_class(
            splinter_webdriver, visit_condition=splinter_browser_load_condition,
            visit_condition_timeout=splinter_browser_load_timeout,
            wait_time=splinter_selenium_implicit_wait, **kwargs
        )

    def prepare_browser(request, parent):
        browser_key = id(parent)
        browser = browser_pool.get(browser_key)
        if not splinter_session_scoped_browser:
            browser = get_browser()
            if splinter_close_browser:
                request.addfinalizer(browser.quit)
        elif not browser:
            browser = browser_pool[browser_key] = get_browser()
        try:
            if splinter_webdriver not in browser.driver_name.lower():
                raise IOError('webdriver does not match')
            if hasattr(browser, 'driver'):
                browser.driver.implicitly_wait(splinter_selenium_implicit_wait)
                browser.driver.set_speed(splinter_selenium_speed)
                if splinter_window_size:
                    browser.driver.set_window_size(*splinter_window_size)
            browser.cookies.delete()
            if hasattr(browser, 'driver'):
                browser.visit_condition = splinter_browser_load_condition
                browser.visit_condition_timeout = splinter_browser_load_timeout
                browser.visit('about:blank')
        except (IOError, HTTPException):
            # we lost browser, try to restore the justice
            try:
                browser.quit()
            except Exception:  # NOQA
                pass
            browser = browser_pool[browser_key] = get_browser()
            prepare_browser(request, parent)

        return browser

    return prepare_browser

@pytest.yield_fixture(autouse=True)
def browser_screenshot(request, splinter_screenshot_dir, session_tmpdir):
    """Make browser screenshot on test failure."""
    yield
    for name, value in request._funcargs.items():
        if hasattr(value, '__splinter_browser__'):
            browser = value
            if splinter_make_screenshot_on_failure and request.node.splinter_failure:
                slaveoutput = getattr(request.config, 'slaveoutput', None)
                names = junitxml.mangle_testnames(request.node.nodeid.split("::"))
                classname = '.'.join(names[:-1])
                screenshot_dir = os.path.join(splinter_screenshot_dir, classname)
                screenshot_file_name = '{0}-{1}.png'.format(
                    names[-1][:128 - len(name) - 5], name)
                if not slaveoutput:
                    if not os.path.exists(screenshot_dir):
                        os.makedirs(screenshot_dir)
                else:
                    screenshot_dir = session_tmpdir.ensure('screenshots', dir=True).strpath
                screenshot_path = os.path.join(screenshot_dir, screenshot_file_name)
                LOGGER.info('Saving screenshot to %s', screenshot_path)
                try:
                    browser.driver.save_screenshot(screenshot_path)
                    with open(screenshot_path) as fd:
                        if slaveoutput is not None:
                            slaveoutput.setdefault('screenshots', []).append({
                                'class_name': classname,
                                'file_name': screenshot_file_name,
                                'content': fd.read()
                            })
                except Exception as e:  # NOQA
                    request.config.warn('SPL504', "Could not save screenshot: {0}".format(e))

@pytest.mark.tryfirst
def pytest_runtest_makereport(item, call, __multicall__):
    """Assign the report to the item for futher usage."""
    rep = __multicall__.execute()
    if rep.outcome != 'passed':
        item.splinter_failure = rep
    else:
        item.splinter_failure = None
    return rep

@pytest.fixture
def browser(request, browser_instance_getter):
    """Browser fixture."""
    return browser_instance_getter(request, browser)

@pytest.fixture(scope='session')
def session_browser(request, browser_instance_getter):
    """Session scoped browser fixture."""
    return browser_instance_getter(request, session_browser)

class SplinterXdistPlugin(object):

    """Plugin class to defer pytest-xdist hook handler."""

    def pytest_testnodedown(self, node, error):
        """Copy screenshots back from remote nodes to have them on the master."""
        config_screenshot_dir = splinter_screenshot_dir(node)
        for screenshot in getattr(node, 'slaveoutput', {}).get('screenshots', []):
            screenshot_dir = os.path.join(config_screenshot_dir, screenshot['class_name'])
            if not os.path.exists(screenshot_dir):
                os.makedirs(screenshot_dir)
            with open(os.path.join(screenshot_dir, screenshot['file_name']), 'w') as fd:
                fd.write(screenshot['content'])

def pytest_configure(config):
    """Register pytest-splinter's deferred plugin."""
    if config.pluginmanager.getplugin('xdist'):
        config.pluginmanager.register(SplinterXdistPlugin())

def pytest_addoption(parser):  # pragma: no cover
    """Pytest hook to add custom command line option(s)."""
    group = parser.getgroup("splinter", "splinter integration for browser testing")
    group.addoption(
        "--splinter-webdriver",
        help="pytest-splinter webdriver", type="choice", choices=list(splinter.browser._DRIVERS.keys()),
        dest='splinter_webdriver', metavar="DRIVER", default='firefox')
    group.addoption(
        "--splinter-remote-url",
        help="pytest-splinter remote webdriver url ", metavar="URL", dest='splinter_remote_url', default=None)
    group.addoption(
        "--splinter-implicit-wait",
        help="pytest-splinter selenium implicit wait, seconds", type="int",
        dest='splinter_webdriver_implicit_wait', metavar="SECONDS", default=5)
    group.addoption(
        "--splinter-speed",
        help="pytest-splinter selenium speed, seconds", type="int",
        dest='splinter_webdriver_speed', metavar="SECONDS", default=0)
    group.addoption(
        "--splinter-socket-timeout",
        help="pytest-splinter socket timeout, seconds", type="int",
        dest='splinter_webdriver_socket_timeout', metavar="SECONDS", default=120)
    group.addoption(
        "--splinter-session-scoped-browser",
        help="pytest-splinter should use a single browser instance per test session. Defaults to true.", action="store",
        dest='splinter_session_scoped_browser', metavar="false|true", type="choice", choices=['false', 'true'],
        default='true')
    group.addoption(
        "--splinter-make-screenshot-on-failure",
        help="pytest-splinter should take browser screenshots on test failure. Defaults to true.", action="store",
        dest='splinter_make_screenshot_on_failure', metavar="false|true", type="choice", choices=['false', 'true'],
        default='true')
    group.addoption(
        "--splinter-screenshot-dir",
        help="pytest-splinter browser screenshot directory. Defaults to the current directory.", action="store",
        dest='splinter_screenshot_dir', metavar="DIR", default='.')
    group.addoption(
        "--splinter-webdriver-executable",
        help="pytest-splinter webdrive executable path. Defaults to unspecified in which case it is taken from PATH",
        action="store",
        dest='splinter_webdriver_executable', metavar="DIR", default='')


text:
from enum import Enum
import re

version_update_start_marker = re.compile(r'\{x-version-update-start;([^;]+);([^}]+)\}')
version_update_end_marker = re.compile(r'\{x-version-update-end\}')
version_update_marker = re.compile(r'\{x-version-update;([^;]+);([^}]+)\}')

# regex for the version string is suggested one directly from semver.org
# it's worth noting that both regular expressions on that page have start
# of line (^) and end of line ($) anchors which need to be removed since
# what's being matched is in the middle of the string
# https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string
version_regex_str_no_anchor = r'(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?'

# External dependency versions do not have to match semver format and the semver regular expressions
# will partially match and produce some hilarious results.
external_dependency_version_regex = r'(?<=<version>).+?(?=</version>)'

# This is the original regular expression for semver. This differs from the
# previous one in that start of line and end of line anchors are left in place.
# This is the regex that would be used to ensure the entire string matches
# semver format
# https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string
version_regex_str_with_names_anchored = r'^(?P<major>0|[1-9]\d*)\.(?P<minor>0|[1-9]\d*)\.(?P<patch>0|[1-9]\d*)(?:-(?P<prerelease>(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?P<buildmetadata>[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$'

# This is specific to our revision which, if there is one, needs to have the format of beta.X
prerelease_version_regex_with_name = r'^beta\.(?P<revision>0|[1-9]\d*)$'

class UpdateType(Enum):
    external_dependency = 'external_dependency'
    library = 'library'
    all = 'all'

    # defining string is necessary to get ArgumentParser's help output to produce
    # human readable values of UpdateType
    def __str__(self):
        return self.value

class BuildType(Enum):
    client = 'client'
    data = 'data'
    management = 'management'
    none = 'none' # in the case where only external dependencies is being updated

    # defining string is necessary to get ArgumentParser's help output to produce
    # human readable values of BuildType
    def __str__(self):
        return self.value

class CodeModule:
    def __init__(self, module_str):
        # For library versions there will be up to 3 items resulting from the split
        # which will be module name, dependency version and current version. For
        # external dependency versions there should only be 2 items resulting from
        # the split which will be module name and external dependency version.
        items = module_str.split(';')

        self.name = items[0]
        self.group_id = items[0].split(':')[0]
        self.artifact_id = items[0].split(':')[1]

        if len(items) == 2:
            if self.group_id.startswith('unreleased_'):
                self.dependency = items[1].strip()
                self.update_type = UpdateType.library
            else:
                self.external_dependency = items[1].strip()
                self.update_type = UpdateType.external_dependency
        elif len(items) == 3:
            if self.group_id.startswith('unreleased_'):
                raise ValueError('Unreleased dependency entries should not have a current version, they should only a dependency version')
            self.dependency = items[1]
            self.current = items[2].strip()
            self.update_type = UpdateType.library
        else:
            raise ValueError('unable to parse module string: ' + module_str)

    # overridden string primarily used for error reporting
    def __str__(self):
        # current may or may not exist
        if hasattr(self, 'external_dependency'):
            return self.name + ': External Dependency version=' + self.external_dependency
        try:
            return self.name + ': Dependency version=' + self.dependency + ': Current version=' + self.current
        except AttributeError:
            return self.name + ': Dependency version=' + self.dependency

    # return the CodeModule string formatted for a version file
    def string_for_version_file(self):
        try:
            return self.name + ';' + self.dependency + ';' + self.current + '\n'
        except AttributeError:
            return self.name + ';' + self.dependency + '\n'


text:
package com.lab.servlet;

import java.util.ArrayList;
import java.util.List;
import java.util.UUID;

import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import com.google.gson.Gson;
import com.google.gson.JsonObject;

@Path("/tom")
public class TomService
{

    @POST
    @Path("/")
    @Produces(MediaType.APPLICATION_JSON)
    @Consumes(MediaType.APPLICATION_JSON)
    public String test()
    {
    	JsonObject json = new JsonObject();
    	json.addProperty("name", "tom");
        return json.toString();
    }

}


text:
using AtleX.CommandLineArguments.Configuration;

namespace AtleX.CommandLineArguments.Benchmarks.Benches
{
  public sealed class CommandLineArgumentsBenchmarkConfiguration
  {
    public string[] Arguments { get; set; }

    public CommandLineArgumentsConfiguration Configuration { get; set; }

    public override string ToString()
    {
      var result = this.Configuration.GetType().Name;

      return result;
    }
  }
}


text:
<?php

use yii\db\Schema;
use yii\db\Migration;

class m150420_211630_add_session extends Migration
{
    public function up()
    {
        $this->createTable('session', [
            'id' => 'pk',
        ]);

        $this->insert('session', ['id' => 1]);

        $this->addColumn('view', 'session_id', Schema::TYPE_INTEGER . ' NOT NULL DEFAULT 1');

        $this->addForeignKey('fk_view_session',
            'view', 'session_id',
            'session', 'id'
        );
    }

    public function down()
    {
        $this->dropForeignKey('fk_view_session', 'view');
        $this->dropColumn('view', 'session_id');
        $this->dropTable('session');
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}


text:
* [
      dalu93
      /
      Each
](https://github.com/dalu93/Each):
      Elegant ⏱ interface for Swift apps

* [
      exyte
      /
      Macaw
](https://github.com/exyte/Macaw):
      Powerful and easy-to-use vector graphics Swift library with SVG support

* [
      ustwo
      /
      formvalidator-swift
](https://github.com/ustwo/formvalidator-swift):
* [
      wayfair
      /
      brickkit-ios
](https://github.com/wayfair/brickkit-ios):
      BrickKit For IOS

* [
      BohdanOrlov
      /
      BouncyPageViewController
](https://github.com/BohdanOrlov/BouncyPageViewController):
      Page view controller with bounce effect

* [
      raywenderlich
      /
      swift-algorithm-club
](https://github.com/raywenderlich/swift-algorithm-club):
      Algorithms and data structures in Swift, with explanations!

* [
      PerfectlySoft
      /
      Perfect
](https://github.com/PerfectlySoft/Perfect):
      Server-side Swift. The Perfect library, application server, connectors and example apps. (For mobile back-end development, website and web app development, and more...)

* [
      itsmeichigo
      /
      DateTimePicker
](https://github.com/itsmeichigo/DateTimePicker):
      A nicer iOS UI component for picking date and time

* [
      vapor
      /
      vapor
](https://github.com/vapor/vapor):
      A web framework and server for Swift that works on macOS and Ubuntu.

* [
      qvacua
      /
      vimr
](https://github.com/qvacua/vimr):
      Project VimR — Refined NeoVim experience for macOS

* [
      MillmanY
      /
      MMCardView
](https://github.com/MillmanY/MMCardView):
      Custom CollectionView like Wallet App

* [
      Alamofire
      /
      Alamofire
](https://github.com/Alamofire/Alamofire):
      Elegant HTTP Networking in Swift

* [
      ReactiveX
      /
      RxSwift
](https://github.com/ReactiveX/RxSwift):
      Reactive Programming in Swift

* [
      danielgindi
      /
      Charts
](https://github.com/danielgindi/Charts):
      Beautiful charts for iOS/tvOS/OSX! The Apple side of the crossplatform MPAndroidChart.

* [
      Clean-Swift
      /
      CleanStore
](https://github.com/Clean-Swift/CleanStore):
      A sample iOS app built using the Clean Swift architecture. Clean Swift is Uncle Bob's Clean Architecture applied to iOS and Mac projects. CleanStore demonstrates Clean Swift by implementing the create order use case described by in Uncle Bob's talks.

* [
      SwiftyJSON
      /
      SwiftyJSON
](https://github.com/SwiftyJSON/SwiftyJSON):
      The better way to deal with JSON data in Swift

* [
      mas-cli
      /
      mas
](https://github.com/mas-cli/mas):

📦 Mac App Store command line interface

* [
      fancymax
      /
      12306ForMac
](https://github.com/fancymax/12306ForMac):
      An unofficial 12306 Client for Mac

* [
      MengTo
      /
      Spring
](https://github.com/MengTo/Spring):
      A library to simplify iOS animations in Swift.

* [
      realm
      /
      SwiftLint
](https://github.com/realm/SwiftLint):
      A tool to enforce Swift style and conventions.

* [
      matteocrippa
      /
      awesome-swift
](https://github.com/matteocrippa/awesome-swift):
      A collaborative list of awesome swift resources. Feel free to contribute!

* [
      Ramotion
      /
      folding-cell
](https://github.com/Ramotion/folding-cell):
      FoldingCell is an expanding content cell inspired by folding paper material

* [
      vadymmarkov
      /
      Beethoven
](https://github.com/vadymmarkov/Beethoven):

🎸 A maestro of pitch detection.

* [
      jaredsinclair
      /
      AsyncOperations
](https://github.com/jaredsinclair/AsyncOperations):
      A toolbox of NSOperation subclasses for a variety of asynchronous programming needs.

* [
      cemolcay
      /
      ImageFreeCut
](https://github.com/cemolcay/ImageFreeCut):
      A UIView subclass lets you draw a path over an image and crops that part.

#### objective-c
* [
      cyanzhong
      /
      retriver
](https://github.com/cyanzhong/retriver):
      Retrive InfoPlist file without Jailbreak on iOS Devices

* [
      Bupterambition
      /
      AwesomeIntroguideView
](https://github.com/Bupterambition/AwesomeIntroguideView):

🏆An awesome view for Introduce

* [
      Instagram
      /
      IGListKit
](https://github.com/Instagram/IGListKit):
      A data-driven UICollectionView framework for building fast and flexible lists.

* [
      ViewDeck
      /
      ViewDeck
](https://github.com/ViewDeck/ViewDeck):
      An implementation of the sliding menu found in various iOS apps.

* [
      realm
      /
      realm-cocoa
](https://github.com/realm/realm-cocoa):
      Realm is a mobile database: a replacement for Core Data & SQLite

* [
      rs
      /
      SDWebImage
](https://github.com/rs/SDWebImage):
      Asynchronous image downloader with cache support as a UIImageView category

* [
      jxjgssylsg
      /
      YLUtilityDemos
](https://github.com/jxjgssylsg/YLUtilityDemos):
      iOS Demos, iOS Samples

* [
      hackiftekhar
      /
      IQKeyboardManager
](https://github.com/hackiftekhar/IQKeyboardManager):
      Codeless drop-in universal library allows to prevent issues of keyboard sliding up and cover UITextField/UITextView. Neither need to write any code nor any setup required and much more.

* [
      spotify
      /
      HubFramework
](https://github.com/spotify/HubFramework):
      Spotify's component-driven UI framework for iOS

* [
      facebook
      /
      AsyncDisplayKit
](https://github.com/facebook/AsyncDisplayKit):
      Smooth asynchronous user interfaces for iOS apps.

* [
      BradLarson
      /
      GPUImage
](https://github.com/BradLarson/GPUImage):
      An open source iOS framework for GPU-based image and video processing

* [
      jdg
      /
      MBProgressHUD
](https://github.com/jdg/MBProgressHUD):
      MBProgressHUD + Customizations

* [
      azheng51714
      /
      MACProject
](https://github.com/azheng51714/MACProject):
      这是一个用 Objective-C 写的 iOS 轻量级框架,旨在快速构建 iOS App,欢迎 Star

* [
      wordpress-mobile
      /
      WordPress-iOS
](https://github.com/wordpress-mobile/WordPress-iOS):
      WordPress for iOS - Official repository

* [
      360Controller
      /
      360Controller
](https://github.com/360Controller/360Controller):
      TattieBogle Xbox 360 Driver (with improvements)

* [
      firebase
      /
      quickstart-ios
](https://github.com/firebase/quickstart-ios):
      Firebase Quickstart Samples for iOS

* [
      RepairShopr
      /
      react-native-signature-capture
](https://github.com/RepairShopr/react-native-signature-capture):
      A simple modular component for react native (iOS) to capture a signature as an image

* [
      mapsplugin
      /
      cordova-plugin-googlemaps
](https://github.com/mapsplugin/cordova-plugin-googlemaps):
      Google Maps plugin for Cordova

* [
      Yalantis
      /
      FoldingTabBar.iOS
](https://github.com/Yalantis/FoldingTabBar.iOS):
      Folding Tab Bar and Tab Bar Controller

* [
      ParsePlatform
      /
      Parse-SDK-iOS-OSX
](https://github.com/ParsePlatform/Parse-SDK-iOS-OSX):
      Parse SDK for iOS/OS X/watchOS/tvOS

* [
      dogo
      /
      SCLAlertView
](https://github.com/dogo/SCLAlertView):
      Beautiful animated Alert View. Written in Objective-C

* [
      AFNetworking
      /
      AFNetworking
](https://github.com/AFNetworking/AFNetworking):
      A delightful networking framework for iOS, OS X, watchOS, and tvOS.

* [
      SnapKit
      /
      Masonry
](https://github.com/SnapKit/Masonry):
      Harness the power of AutoLayout NSLayoutConstraints with a simplified, chainable and expressive syntax. Supports iOS and OSX Auto Layout

* [
      ccgus
      /
      fmdb
](https://github.com/ccgus/fmdb):
      A Cocoa / Objective-C wrapper around SQLite

* [
      Mantle
      /
      Mantle
](https://github.com/Mantle/Mantle):
      Model framework for Cocoa and Cocoa Touch

#### go
* [
      ryhanson
      /
      phishery
](https://github.com/ryhanson/phishery):
      An SSL Enabled Basic Auth Credential Harvester with a Word Document Template URL Injector

* [
      nim4
      /
      DBShield
](https://github.com/nim4/DBShield):
      Database firewall written in Go

* [
      Netflix
      /
      chaosmonkey
](https://github.com/Netflix/chaosmonkey):
      Chaos Monkey is a resiliency tool that helps applications tolerate random instance failures.

* [
      google
      /
      netstack
](https://github.com/google/netstack):
* [
      arachnys
      /
      athenapdf
](https://github.com/arachnys/athenapdf):
      Drop-in replacement for wkhtmltopdf built on Go, Electron and Docker

* [
      docker
      /
      docker
](https://github.com/docker/docker):
      Docker - the open-source application container engine

* [
      kubernetes
      /
      kubernetes
](https://github.com/kubernetes/kubernetes):
      Production-Grade Container Scheduling and Management

* [
      avelino
      /
      awesome-go
](https://github.com/avelino/awesome-go):
      A curated list of awesome Go frameworks, libraries and software

* [
      vesche
      /
      lonely-shell
](https://github.com/vesche/lonely-shell):
      minimal https reverse shell

* [
      gogits
      /
      gogs
](https://github.com/gogits/gogs):
      Gogs (Go Git Service) is a painless self-hosted Git service.

* [
      golang
      /
      go
](https://github.com/golang/go):
      The Go programming language

* [
      syncthing
      /
      syncthing
](https://github.com/syncthing/syncthing):
      Open Source Continuous File Synchronization

* [
      attic-labs
      /
      noms
](https://github.com/attic-labs/noms):
      The versioned, forkable, syncable database

* [
      containous
      /
      traefik
](https://github.com/containous/traefik):
      Træfɪk, a modern reverse proxy

* [
      ipfs
      /
      go-ipfs
](https://github.com/ipfs/go-ipfs):
      IPFS implementation in go

* [
      therecipe
      /
      qt
](https://github.com/therecipe/qt):
      Qt binding for Go (Golang) which supports Windows / macOS / Linux / Android / iOS / Sailfish OS / Raspberry Pi

* [
      spf13
      /
      hugo
](https://github.com/spf13/hugo):
      A Fast and Flexible Static Site Generator built with love in GoLang

* [
      julienschmidt
      /
      httprouter
](https://github.com/julienschmidt/httprouter):
      A high performance HTTP request router that scales well

* [
      mholt
      /
      caddy
](https://github.com/mholt/caddy):
      Fast, cross-platform HTTP/2 web server with automatic HTTPS

* [
      kataras
      /
      iris
](https://github.com/kataras/iris):
      The fastest web framework for Go in (THIS) Earth.

* [
      astaxie
      /
      build-web-application-with-golang
](https://github.com/astaxie/build-web-application-with-golang):
      A golang ebook intro how to build a web with golang

* [
      xtaci
      /
      kcptun
](https://github.com/xtaci/kcptun):
      A Simple UDP Tunnel Based On KCP

* [
      openshift
      /
      origin
](https://github.com/openshift/origin):
      Enterprise-Ready Kubernetes for Developers

* [
      minio
      /
      minio
](https://github.com/minio/minio):
      Minio is an Amazon S3 compatible object storage server.

* [
      campoy
      /
      go-web-workshop
](https://github.com/campoy/go-web-workshop):
      Build Web Applications with Go on App Engine

#### javascript
* [
      FreeCodeCamp
      /
      FreeCodeCamp
](https://github.com/FreeCodeCamp/FreeCodeCamp):
      The https://FreeCodeCamp.com open source codebase and curriculum. Learn to code and help nonprofits.

* [
      yarnpkg
      /
      yarn
](https://github.com/yarnpkg/yarn):

📦🐈 Fast, reliable, and secure dependency management.

* [
      vuejs
      /
      vue
](https://github.com/vuejs/vue):
      Simple yet powerful library for building modern web interfaces.

* [
      naptha
      /
      tesseract.js
](https://github.com/naptha/tesseract.js):
      Pure Javascript OCR for 62 Languages 📖🎉🖥

* [
      DevExpress
      /
      testcafe
](https://github.com/DevExpress/testcafe):
      Automated browser testing for the modern web development stack.

* [
      facebook
      /
      react
](https://github.com/facebook/react):
      A declarative, efficient, and flexible JavaScript library for building user interfaces.

* [
      facebookincubator
      /
      create-react-app
](https://github.com/facebookincubator/create-react-app):
      Create React apps with no build configuration.

* [
      guerrerocarlos
      /
      CacheP2P
](https://github.com/guerrerocarlos/CacheP2P):
      "More users = More capacity"

* [
      getify
      /
      You-Dont-Know-JS
](https://github.com/getify/You-Dont-Know-JS):
      A book series on JavaScript. @YDKJS on twitter.

* [
      webpack
      /
      webpack
](https://github.com/webpack/webpack):
      A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows to load parts for the application on demand. Through "loaders," modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.

* [
      twbs
      /
      bootstrap
](https://github.com/twbs/bootstrap):
      The most popular HTML, CSS, and JavaScript framework for developing responsive, mobile first projects on the web.

* [
      fzninja
      /
      hAdmin
](https://github.com/fzninja/hAdmin):
      后台模版 html5后台模版 bootstrap后台模版 Free Bootstrap 3 Admin Template

* [
      jxnblk
      /
      ejsx
](https://github.com/jxnblk/ejsx):
      Pure JSX templates for rendering static HTML

* [
      fritz-c
      /
      react-sortable-tree
](https://github.com/fritz-c/react-sortable-tree):
      Drag-and-drop sortable representation of hierarchical data

* [
      feross
      /
      electron-workshop
](https://github.com/feross/electron-workshop):
      Workshop: Build cross-platform desktop apps with Electron

* [
      airbnb
      /
      javascript
](https://github.com/airbnb/javascript):
      JavaScript Style Guide

* [
      reactjs
      /
      redux
](https://github.com/reactjs/redux):
      Predictable state container for JavaScript apps

* [
      nodejs
      /
      node
](https://github.com/nodejs/node):
      Node.js JavaScript runtime ✨🐢🚀✨

* [
      vuejs
      /
      vuex
](https://github.com/vuejs/vuex):
      Centralized State Management for Vue.js.

* [
      Semantic-Org
      /
      Semantic-UI
](https://github.com/Semantic-Org/Semantic-UI):
      Semantic is a UI component framework based around useful principles from natural language.

* [
      vuejs
      /
      vue-hackernews-2.0
](https://github.com/vuejs/vue-hackernews-2.0):
      HackerNews clone built with Vue 2.0, vue-router & vuex, with server-side rendering

* [
      cfsghost
      /
      Shijing
](https://github.com/cfsghost/Shijing):
      Document editing engine

* [
      FineUploader
      /
      react-fine-uploader
](https://github.com/FineUploader/react-fine-uploader):
      Easily integrate Fine Uploader into a React app. Drop-in high-level components for a turn-key UI. Use small focused components to build a more custom UI.

* [
      serverless
      /
      serverless
](https://github.com/serverless/serverless):
      Serverless Framework – Build web, mobile and IoT applications with serverless architectures using AWS Lambda, Azure Functions, Google CloudFunctions & more! –

* [
      jquery
      /
      jquery
](https://github.com/jquery/jquery):
      jQuery JavaScript Library

#### ruby
* [
      adamcooke
      /
      procodile
](https://github.com/adamcooke/procodile):

🐊 Run Ruby/Rails processes in the background on Linux servers with ease

* [
      Homebrew
      /
      brew
](https://github.com/Homebrew/brew):

🍺 The missing package manager for macOS

* [
      rails
      /
      rails
](https://github.com/rails/rails):
      Ruby on Rails

* [
      heckpsi-lab
      /
      em-midori
](https://github.com/heckpsi-lab/em-midori):
      Lightweight, Flexible and Fast Ruby Web Framework

* [
      Thibaut
      /
      devdocs
](https://github.com/Thibaut/devdocs):
      API Documentation Browser

* [
      discourse
      /
      discourse
](https://github.com/discourse/discourse):
      A platform for community discussion. Free, open, simple.

* [
      jekyll
      /
      jekyll
](https://github.com/jekyll/jekyll):

🌐 Jekyll is a blog-aware, static site generator in Ruby

* [
      jondot
      /
      awesome-react-native
](https://github.com/jondot/awesome-react-native):
      An "awesome" type curated list of React Native components, news, tools, and learning material

* [
      rapid7
      /
      metasploit-framework
](https://github.com/rapid7/metasploit-framework):
      Metasploit Framework

* [
      plataformatec
      /
      devise
](https://github.com/plataformatec/devise):
      Flexible authentication solution for Rails with Warden.

* [
      ruby
      /
      ruby
](https://github.com/ruby/ruby):
      The Ruby Programming Language

* [
      fastlane
      /
      fastlane
](https://github.com/fastlane/fastlane):
      The easiest way to automate building and releasing your iOS and Android apps

* [
      gitlabhq
      /
      gitlabhq
](https://github.com/gitlabhq/gitlabhq):
      GitLab CE | Please open new issues in our issue tracker on GitLab.com

* [
      skywinder
      /
      github-changelog-generator
](https://github.com/skywinder/github-changelog-generator):
      Automatically generate change log from your tags, issues, labels and pull requests on GitHub.

* [
      sinatra
      /
      sinatra
](https://github.com/sinatra/sinatra):
      Classy web-development dressed in a DSL (official / canonical repo)

* [
      CocoaPods
      /
      CocoaPods
](https://github.com/CocoaPods/CocoaPods):
      The Cocoa Dependency Manager.

* [
      michenriksen
      /
      birdwatcher
](https://github.com/michenriksen/birdwatcher):
      Data analysis and OSINT framework for Twitter

* [
      ReadyResponder
      /
      ReadyResponder
](https://github.com/ReadyResponder/ReadyResponder):
      Local Incident Management System - This is used for tracking resources for Local Emergency Management

* [
      deadlyvipers
      /
      dojo_rules
](https://github.com/deadlyvipers/dojo_rules):
* [
      sistemacode
      /
      code
](https://github.com/sistemacode/code):

📖 C.O.D.E - Controle de ocorrências e desempenho escolar

* [
      thoughtbot
      /
      factory_girl
](https://github.com/thoughtbot/factory_girl):
      A library for setting up Ruby objects as test data.

* [
      expertiza
      /
      expertiza
](https://github.com/expertiza/expertiza):
      Expertiza is a web application where students can submit and peer-review learning objects (articles, code, web sites, etc). The Expertiza project is supported by the National Science Foundation.

* [
      julianguyen
      /
      ifme
](https://github.com/julianguyen/ifme):
      Open source app to share mental health experiences with loved ones

* [
      Homebrew
      /
      homebrew-science
](https://github.com/Homebrew/homebrew-science):

🔬 Scientific formulae for the Homebrew package manager

* [
      thumbor
      /
      ruby-thumbor
](https://github.com/thumbor/ruby-thumbor):
      ruby-thumbor is the client library to thumbor.


text:
/* AUTO-GENERATED FILE.  DO NOT MODIFY.
 *
 * This class was automatically generated by the
 * aapt tool from the resource data it found.  It
 * should not be modified by hand.
 */

package com.laimiux.rxmaps;

public final class R {
    public static final class attr {
        /**
Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
         */
        public static int ambientEnabled=0x7f010013;
        /**
Must be a floating point value, such as "1.2".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
         */
        public static int cameraBearing=0x7f010004;
        /**
Must be a floating point value, such as "1.2".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
         */
        public static int cameraTargetLat=0x7f010005;
        /**
Must be a floating point value, such as "1.2".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
         */
        public static int cameraTargetLng=0x7f010006;
        /**
Must be a floating point value, such as "1.2".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
         */
        public static int cameraTilt=0x7f010007;
        /**
Must be a floating point value, such as "1.2".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
         */
        public static int cameraZoom=0x7f010008;
        /**
Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
         */
        public static int circleCrop=0x7f010002;
        /**
Must be a floating point value, such as "1.2".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
         */
        public static int imageAspectRatio=0x7f010001;
        /**
Must be one of the following constant values.

<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />

Constant	Value	Description

none	0

adjust_width	1

adjust_height	2

         */
        public static int imageAspectRatioAdjust=0x7f010000;
        /**
Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
         */
        public static int liteMode=0x7f010009;
        /**
Must be one of the following constant values.

<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />

Constant	Value	Description

none	0

normal	1

satellite	2

terrain	3

hybrid	4

         */
        public static int mapType=0x7f010003;
        /**
Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
         */
        public static int uiCompass=0x7f01000a;
        /**
Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
         */
        public static int uiMapToolbar=0x7f010012;
        /**
Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
         */
        public static int uiRotateGestures=0x7f01000b;
        /**
Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
         */
        public static int uiScrollGestures=0x7f01000c;
        /**
Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
         */
        public static int uiTiltGestures=0x7f01000d;
        /**
Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
         */
        public static int uiZoomControls=0x7f01000e;
        /**
Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
         */
        public static int uiZoomGestures=0x7f01000f;
        /**
Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
         */
        public static int useViewLifecycle=0x7f010010;
        /**
Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
         */
        public static int zOrderOnTop=0x7f010011;
    }
    public static final class color {
        public static int common_action_bar_splitter=0x7f040000;
        public static int common_signin_btn_dark_text_default=0x7f040001;
        public static int common_signin_btn_dark_text_disabled=0x7f040002;
        public static int common_signin_btn_dark_text_focused=0x7f040003;
        public static int common_signin_btn_dark_text_pressed=0x7f040004;
        public static int common_signin_btn_default_background=0x7f040005;
        public static int common_signin_btn_light_text_default=0x7f040006;
        public static int common_signin_btn_light_text_disabled=0x7f040007;
        public static int common_signin_btn_light_text_focused=0x7f040008;
        public static int common_signin_btn_light_text_pressed=0x7f040009;
        public static int common_signin_btn_text_dark=0x7f04000a;
        public static int common_signin_btn_text_light=0x7f04000b;
    }
    public static final class drawable {
        public static int common_full_open_on_phone=0x7f020000;
        public static int common_ic_googleplayservices=0x7f020001;
        public static int common_signin_btn_icon_dark=0x7f020002;
        public static int common_signin_btn_icon_disabled_dark=0x7f020003;
        public static int common_signin_btn_icon_disabled_focus_dark=0x7f020004;
        public static int common_signin_btn_icon_disabled_focus_light=0x7f020005;
        public static int common_signin_btn_icon_disabled_light=0x7f020006;
        public static int common_signin_btn_icon_focus_dark=0x7f020007;
        public static int common_signin_btn_icon_focus_light=0x7f020008;
        public static int common_signin_btn_icon_light=0x7f020009;
        public static int common_signin_btn_icon_normal_dark=0x7f02000a;
        public static int common_signin_btn_icon_normal_light=0x7f02000b;
        public static int common_signin_btn_icon_pressed_dark=0x7f02000c;
        public static int common_signin_btn_icon_pressed_light=0x7f02000d;
        public static int common_signin_btn_text_dark=0x7f02000e;
        public static int common_signin_btn_text_disabled_dark=0x7f02000f;
        public static int common_signin_btn_text_disabled_focus_dark=0x7f020010;
        public static int common_signin_btn_text_disabled_focus_light=0x7f020011;
        public static int common_signin_btn_text_disabled_light=0x7f020012;
        public static int common_signin_btn_text_focus_dark=0x7f020013;
        public static int common_signin_btn_text_focus_light=0x7f020014;
        public static int common_signin_btn_text_light=0x7f020015;
        public static int common_signin_btn_text_normal_dark=0x7f020016;
        public static int common_signin_btn_text_normal_light=0x7f020017;
        public static int common_signin_btn_text_pressed_dark=0x7f020018;
        public static int common_signin_btn_text_pressed_light=0x7f020019;
    }
    public static final class id {
        public static int adjust_height=0x7f060000;
        public static int adjust_width=0x7f060001;
        public static int hybrid=0x7f060003;
        public static int none=0x7f060002;
        public static int normal=0x7f060004;
        public static int satellite=0x7f060005;
        public static int terrain=0x7f060006;
    }
    public static final class integer {
        public static int google_play_services_version=0x7f050000;
    }
    public static final class string {
        public static int app_name=0x7f03001e;
        public static int auth_google_play_services_client_facebook_display_name=0x7f03001f;
        public static int auth_google_play_services_client_google_display_name=0x7f030020;
        public static int common_android_wear_notification_needs_update_text=0x7f030000;
        public static int common_android_wear_update_text=0x7f030001;
        public static int common_android_wear_update_title=0x7f030002;
        public static int common_google_play_services_api_unavailable_text=0x7f030003;
        public static int common_google_play_services_enable_button=0x7f030004;
        public static int common_google_play_services_enable_text=0x7f030005;
        public static int common_google_play_services_enable_title=0x7f030006;
        public static int common_google_play_services_error_notification_requested_by_msg=0x7f030007;
        public static int common_google_play_services_install_button=0x7f030008;
        public static int common_google_play_services_install_text_phone=0x7f030009;
        public static int common_google_play_services_install_text_tablet=0x7f03000a;
        public static int common_google_play_services_install_title=0x7f03000b;
        public static int common_google_play_services_invalid_account_text=0x7f03000c;
        public static int common_google_play_services_invalid_account_title=0x7f03000d;
        public static int common_google_play_services_needs_enabling_title=0x7f03000e;
        public static int common_google_play_services_network_error_text=0x7f03000f;
        public static int common_google_play_services_network_error_title=0x7f030010;
        public static int common_google_play_services_notification_needs_update_title=0x7f030011;
        public static int common_google_play_services_notification_ticker=0x7f030012;
        public static int common_google_play_services_sign_in_failed_text=0x7f030013;
        public static int common_google_play_services_sign_in_failed_title=0x7f030014;
        public static int common_google_play_services_unknown_issue=0x7f030015;
        public static int common_google_play_services_unsupported_text=0x7f030016;
        public static int common_google_play_services_unsupported_title=0x7f030017;
        public static int common_google_play_services_update_button=0x7f030018;
        public static int common_google_play_services_update_text=0x7f030019;
        public static int common_google_play_services_update_title=0x7f03001a;
        public static int common_google_play_services_updating_text=0x7f03001b;
        public static int common_google_play_services_updating_title=0x7f03001c;
        public static int common_open_on_phone=0x7f03001d;
        public static int common_signin_button_text=0x7f030021;
        public static int common_signin_button_text_long=0x7f030022;
    }
    public static final class styleable {
        /** Attributes that can be used with a LoadingImageView.

Includes the following attributes:

           <colgroup align="left" />
           <colgroup align="left" />

Attribute	Description

{@link #LoadingImageView_circleCrop com.laimiux.rxmaps:circleCrop}

{@link #LoadingImageView_imageAspectRatio com.laimiux.rxmaps:imageAspectRatio}

{@link #LoadingImageView_imageAspectRatioAdjust com.laimiux.rxmaps:imageAspectRatioAdjust}

           @see #LoadingImageView_circleCrop
           @see #LoadingImageView_imageAspectRatio
           @see #LoadingImageView_imageAspectRatioAdjust
         */
        public static final int[] LoadingImageView = {
            0x7f010000, 0x7f010001, 0x7f010002
        };
        /**

This symbol is the offset where the {@link com.laimiux.rxmaps.R.attr#circleCrop}
          attribute's value can be found in the {@link #LoadingImageView} array.

Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
          @attr name com.laimiux.rxmaps:circleCrop
        */
        public static int LoadingImageView_circleCrop = 2;
        /**

This symbol is the offset where the {@link com.laimiux.rxmaps.R.attr#imageAspectRatio}
          attribute's value can be found in the {@link #LoadingImageView} array.

Must be a floating point value, such as "1.2".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
          @attr name com.laimiux.rxmaps:imageAspectRatio
        */
        public static int LoadingImageView_imageAspectRatio = 1;
        /**

This symbol is the offset where the {@link com.laimiux.rxmaps.R.attr#imageAspectRatioAdjust}
          attribute's value can be found in the {@link #LoadingImageView} array.

Must be one of the following constant values.

<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />

Constant	Value	Description

none	0

adjust_width	1

adjust_height	2

          @attr name com.laimiux.rxmaps:imageAspectRatioAdjust
        */
        public static int LoadingImageView_imageAspectRatioAdjust = 0;
        /** Attributes that can be used with a MapAttrs.

Includes the following attributes:

           <colgroup align="left" />
           <colgroup align="left" />

Attribute	Description

{@link #MapAttrs_ambientEnabled com.laimiux.rxmaps:ambientEnabled}

{@link #MapAttrs_cameraBearing com.laimiux.rxmaps:cameraBearing}

{@link #MapAttrs_cameraTargetLat com.laimiux.rxmaps:cameraTargetLat}

{@link #MapAttrs_cameraTargetLng com.laimiux.rxmaps:cameraTargetLng}

{@link #MapAttrs_cameraTilt com.laimiux.rxmaps:cameraTilt}

{@link #MapAttrs_cameraZoom com.laimiux.rxmaps:cameraZoom}

{@link #MapAttrs_liteMode com.laimiux.rxmaps:liteMode}

{@link #MapAttrs_mapType com.laimiux.rxmaps:mapType}

{@link #MapAttrs_uiCompass com.laimiux.rxmaps:uiCompass}

{@link #MapAttrs_uiMapToolbar com.laimiux.rxmaps:uiMapToolbar}

{@link #MapAttrs_uiRotateGestures com.laimiux.rxmaps:uiRotateGestures}

{@link #MapAttrs_uiScrollGestures com.laimiux.rxmaps:uiScrollGestures}

{@link #MapAttrs_uiTiltGestures com.laimiux.rxmaps:uiTiltGestures}

{@link #MapAttrs_uiZoomControls com.laimiux.rxmaps:uiZoomControls}

{@link #MapAttrs_uiZoomGestures com.laimiux.rxmaps:uiZoomGestures}

{@link #MapAttrs_useViewLifecycle com.laimiux.rxmaps:useViewLifecycle}

{@link #MapAttrs_zOrderOnTop com.laimiux.rxmaps:zOrderOnTop}

           @see #MapAttrs_ambientEnabled
           @see #MapAttrs_cameraBearing
           @see #MapAttrs_cameraTargetLat
           @see #MapAttrs_cameraTargetLng
           @see #MapAttrs_cameraTilt
           @see #MapAttrs_cameraZoom
           @see #MapAttrs_liteMode
           @see #MapAttrs_mapType
           @see #MapAttrs_uiCompass
           @see #MapAttrs_uiMapToolbar
           @see #MapAttrs_uiRotateGestures
           @see #MapAttrs_uiScrollGestures
           @see #MapAttrs_uiTiltGestures
           @see #MapAttrs_uiZoomControls
           @see #MapAttrs_uiZoomGestures
           @see #MapAttrs_useViewLifecycle
           @see #MapAttrs_zOrderOnTop
         */
        public static final int[] MapAttrs = {
            0x7f010003, 0x7f010004, 0x7f010005, 0x7f010006,
            0x7f010007, 0x7f010008, 0x7f010009, 0x7f01000a,
            0x7f01000b, 0x7f01000c, 0x7f01000d, 0x7f01000e,
            0x7f01000f, 0x7f010010, 0x7f010011, 0x7f010012,
            0x7f010013
        };
        /**

This symbol is the offset where the {@link com.laimiux.rxmaps.R.attr#ambientEnabled}
          attribute's value can be found in the {@link #MapAttrs} array.

Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
          @attr name com.laimiux.rxmaps:ambientEnabled
        */
        public static int MapAttrs_ambientEnabled = 16;
        /**

This symbol is the offset where the {@link com.laimiux.rxmaps.R.attr#cameraBearing}
          attribute's value can be found in the {@link #MapAttrs} array.

Must be a floating point value, such as "1.2".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
          @attr name com.laimiux.rxmaps:cameraBearing
        */
        public static int MapAttrs_cameraBearing = 1;
        /**

This symbol is the offset where the {@link com.laimiux.rxmaps.R.attr#cameraTargetLat}
          attribute's value can be found in the {@link #MapAttrs} array.

Must be a floating point value, such as "1.2".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
          @attr name com.laimiux.rxmaps:cameraTargetLat
        */
        public static int MapAttrs_cameraTargetLat = 2;
        /**

This symbol is the offset where the {@link com.laimiux.rxmaps.R.attr#cameraTargetLng}
          attribute's value can be found in the {@link #MapAttrs} array.

Must be a floating point value, such as "1.2".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
          @attr name com.laimiux.rxmaps:cameraTargetLng
        */
        public static int MapAttrs_cameraTargetLng = 3;
        /**

This symbol is the offset where the {@link com.laimiux.rxmaps.R.attr#cameraTilt}
          attribute's value can be found in the {@link #MapAttrs} array.

Must be a floating point value, such as "1.2".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
          @attr name com.laimiux.rxmaps:cameraTilt
        */
        public static int MapAttrs_cameraTilt = 4;
        /**

This symbol is the offset where the {@link com.laimiux.rxmaps.R.attr#cameraZoom}
          attribute's value can be found in the {@link #MapAttrs} array.

Must be a floating point value, such as "1.2".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
          @attr name com.laimiux.rxmaps:cameraZoom
        */
        public static int MapAttrs_cameraZoom = 5;
        /**

This symbol is the offset where the {@link com.laimiux.rxmaps.R.attr#liteMode}
          attribute's value can be found in the {@link #MapAttrs} array.

Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
          @attr name com.laimiux.rxmaps:liteMode
        */
        public static int MapAttrs_liteMode = 6;
        /**

This symbol is the offset where the {@link com.laimiux.rxmaps.R.attr#mapType}
          attribute's value can be found in the {@link #MapAttrs} array.

Must be one of the following constant values.

<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />

Constant	Value	Description

none	0

normal	1

satellite	2

terrain	3

hybrid	4

          @attr name com.laimiux.rxmaps:mapType
        */
        public static int MapAttrs_mapType = 0;
        /**

This symbol is the offset where the {@link com.laimiux.rxmaps.R.attr#uiCompass}
          attribute's value can be found in the {@link #MapAttrs} array.

Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
          @attr name com.laimiux.rxmaps:uiCompass
        */
        public static int MapAttrs_uiCompass = 7;
        /**

This symbol is the offset where the {@link com.laimiux.rxmaps.R.attr#uiMapToolbar}
          attribute's value can be found in the {@link #MapAttrs} array.

Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
          @attr name com.laimiux.rxmaps:uiMapToolbar
        */
        public static int MapAttrs_uiMapToolbar = 15;
        /**

This symbol is the offset where the {@link com.laimiux.rxmaps.R.attr#uiRotateGestures}
          attribute's value can be found in the {@link #MapAttrs} array.

Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
          @attr name com.laimiux.rxmaps:uiRotateGestures
        */
        public static int MapAttrs_uiRotateGestures = 8;
        /**

This symbol is the offset where the {@link com.laimiux.rxmaps.R.attr#uiScrollGestures}
          attribute's value can be found in the {@link #MapAttrs} array.

Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
          @attr name com.laimiux.rxmaps:uiScrollGestures
        */
        public static int MapAttrs_uiScrollGestures = 9;
        /**

This symbol is the offset where the {@link com.laimiux.rxmaps.R.attr#uiTiltGestures}
          attribute's value can be found in the {@link #MapAttrs} array.

Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
          @attr name com.laimiux.rxmaps:uiTiltGestures
        */
        public static int MapAttrs_uiTiltGestures = 10;
        /**

This symbol is the offset where the {@link com.laimiux.rxmaps.R.attr#uiZoomControls}
          attribute's value can be found in the {@link #MapAttrs} array.

Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
          @attr name com.laimiux.rxmaps:uiZoomControls
        */
        public static int MapAttrs_uiZoomControls = 11;
        /**

This symbol is the offset where the {@link com.laimiux.rxmaps.R.attr#uiZoomGestures}
          attribute's value can be found in the {@link #MapAttrs} array.

Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
          @attr name com.laimiux.rxmaps:uiZoomGestures
        */
        public static int MapAttrs_uiZoomGestures = 12;
        /**

This symbol is the offset where the {@link com.laimiux.rxmaps.R.attr#useViewLifecycle}
          attribute's value can be found in the {@link #MapAttrs} array.

Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
          @attr name com.laimiux.rxmaps:useViewLifecycle
        */
        public static int MapAttrs_useViewLifecycle = 13;
        /**

This symbol is the offset where the {@link com.laimiux.rxmaps.R.attr#zOrderOnTop}
          attribute's value can be found in the {@link #MapAttrs} array.

Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
          @attr name com.laimiux.rxmaps:zOrderOnTop
        */
        public static int MapAttrs_zOrderOnTop = 14;
    };
}


text:
using content::Manifest;

// static
void ShortcutHelper::AddShortcutInBackgroundWithSkBitmap(
    const ShortcutInfo& info,
    const std::string& webapp_id,
    const SkBitmap& icon_bitmap) {
  DCHECK_CURRENTLY_ON(content::BrowserThread::IO);

  // Send the data to the Java side to create the shortcut.
  JNIEnv* env = base::android::AttachCurrentThread();
  ScopedJavaLocalRef<jstring> java_webapp_id =
      base::android::ConvertUTF8ToJavaString(env, webapp_id);
  ScopedJavaLocalRef<jstring> java_url =
      base::android::ConvertUTF8ToJavaString(env, info.url.spec());
  ScopedJavaLocalRef<jstring> java_user_title =
      base::android::ConvertUTF16ToJavaString(env, info.user_title);
  ScopedJavaLocalRef<jstring> java_name =
      base::android::ConvertUTF16ToJavaString(env, info.name);
  ScopedJavaLocalRef<jstring> java_short_name =
      base::android::ConvertUTF16ToJavaString(env, info.short_name);
  ScopedJavaLocalRef<jobject> java_bitmap;
  if (icon_bitmap.getSize())
    java_bitmap = gfx::ConvertToJavaBitmap(&icon_bitmap);

  Java_ShortcutHelper_addShortcut(
      env,
      base::android::GetApplicationContext(),
      java_webapp_id.obj(),
      java_url.obj(),
      java_user_title.obj(),
      java_name.obj(),
      java_short_name.obj(),
      java_bitmap.obj(),
      info.display == blink::WebDisplayModeStandalone,
      info.orientation,
      info.source,
      info.theme_color,
      info.background_color);
}

// static
void ShortcutHelper::FetchSplashScreenImage(
    content::WebContents* web_contents,
    const GURL& image_url,
    const int ideal_splash_image_size_in_dp,
    const std::string& webapp_id) {
  // This is a fire and forget task. It is not vital for the splash screen image
  // to be downloaded so if the downloader returns false there is no fallback.
  ManifestIconDownloader::Download(
      web_contents,
      image_url,
      ideal_splash_image_size_in_dp,
      base::Bind(&ShortcutHelper::StoreWebappData, webapp_id));
}

// static
void ShortcutHelper::StoreWebappData(
    const std::string& webapp_id,
    const SkBitmap& splash_image) {
  if (splash_image.drawsNothing())
    return;

  JNIEnv* env = base::android::AttachCurrentThread();
  ScopedJavaLocalRef<jstring> java_webapp_id =
      base::android::ConvertUTF8ToJavaString(env, webapp_id);
  ScopedJavaLocalRef<jobject> java_splash_image =
      gfx::ConvertToJavaBitmap(&splash_image);

  Java_ShortcutHelper_storeWebappData(
      env,
      base::android::GetApplicationContext(),
      java_webapp_id.obj(),
      java_splash_image.obj());
}

bool ShortcutHelper::RegisterShortcutHelper(JNIEnv* env) {
  return RegisterNativesImpl(env);
}


text:
module NewsStaysHelper
end


text:
// +build windows

package ole

import (
	"syscall"
	"time"
	"unsafe"
)

type IDispatch struct {
	IUnknown
}

type IDispatchVtbl struct {
	IUnknownVtbl
	GetTypeInfoCount uintptr
	GetTypeInfo      uintptr
	GetIDsOfNames    uintptr
	Invoke           uintptr
}

func (v *IDispatch) VTable() *IDispatchVtbl {
	return (*IDispatchVtbl)(unsafe.Pointer(v.RawVTable))
}

func (v *IDispatch) GetIDsOfName(names []string) (dispid []int32, err error) {
	dispid, err = getIDsOfName(v, names)
	return
}

func (v *IDispatch) Invoke(dispid int32, dispatch int16, params ...interface{}) (result *VARIANT, err error) {
	result, err = invoke(v, dispid, dispatch, params...)
	return
}

func (v *IDispatch) GetTypeInfoCount() (c uint32, err error) {
	c, err = getTypeInfoCount(v)
	return
}

func (v *IDispatch) GetTypeInfo() (tinfo *ITypeInfo, err error) {
	tinfo, err = getTypeInfo(v)
	return
}

func getIDsOfName(disp *IDispatch, names []string) (dispid []int32, err error) {
	wnames := make([]*uint16, len(names))
	for i := 0; i < len(names); i++ {
		wnames[i] = syscall.StringToUTF16Ptr(names[i])
	}
	dispid = make([]int32, len(names))
	namelen := uint32(len(names))
	hr, _, _ := syscall.Syscall6(
		disp.VTable().GetIDsOfNames,
		6,
		uintptr(unsafe.Pointer(disp)),
		uintptr(unsafe.Pointer(IID_NULL)),
		uintptr(unsafe.Pointer(&wnames[0])),
		uintptr(namelen),
		uintptr(GetUserDefaultLCID()),
		uintptr(unsafe.Pointer(&dispid[0])))
	if hr != 0 {
		err = NewError(hr)
	}
	return
}

func getTypeInfoCount(disp *IDispatch) (c uint32, err error) {
	hr, _, _ := syscall.Syscall(
		disp.VTable().GetTypeInfoCount,
		2,
		uintptr(unsafe.Pointer(disp)),
		uintptr(unsafe.Pointer(&c)),
		0)
	if hr != 0 {
		err = NewError(hr)
	}
	return
}

func getTypeInfo(disp *IDispatch) (tinfo *ITypeInfo, err error) {
	hr, _, _ := syscall.Syscall(
		disp.VTable().GetTypeInfo,
		3,
		uintptr(unsafe.Pointer(disp)),
		uintptr(GetUserDefaultLCID()),
		uintptr(unsafe.Pointer(&tinfo)))
	if hr != 0 {
		err = NewError(hr)
	}
	return
}

func invoke(disp *IDispatch, dispid int32, dispatch int16, params ...interface{}) (result *VARIANT, err error) {
	var dispparams DISPPARAMS

	if dispatch&DISPATCH_PROPERTYPUT != 0 {
		dispnames := [1]int32{DISPID_PROPERTYPUT}
		dispparams.rgdispidNamedArgs = uintptr(unsafe.Pointer(&dispnames[0]))
		dispparams.cNamedArgs = 1
	}
	var vargs []VARIANT
	if len(params) > 0 {
		vargs = make([]VARIANT, len(params))
		for i, v := range params {
			//n := len(params)-i-1
			n := len(params) - i - 1
			VariantInit(&vargs[n])
			switch vv := v.(type) {
			case bool:
				if vv {
					vargs[n] = NewVariant(VT_BOOL, 0xffff)
				} else {
					vargs[n] = NewVariant(VT_BOOL, 0)
				}
			case *bool:
				vargs[n] = NewVariant(VT_BOOL|VT_BYREF, int64(uintptr(unsafe.Pointer(v.(*bool)))))
			case byte:
				vargs[n] = NewVariant(VT_I1, int64(v.(byte)))
			case *byte:
				vargs[n] = NewVariant(VT_I1|VT_BYREF, int64(uintptr(unsafe.Pointer(v.(*byte)))))
			case int16:
				vargs[n] = NewVariant(VT_I2, int64(v.(int16)))
			case *int16:
				vargs[n] = NewVariant(VT_I2|VT_BYREF, int64(uintptr(unsafe.Pointer(v.(*int16)))))
			case uint16:
				vargs[n] = NewVariant(VT_UI2, int64(v.(uint16)))
			case *uint16:
				vargs[n] = NewVariant(VT_UI2|VT_BYREF, int64(uintptr(unsafe.Pointer(v.(*uint16)))))
			case int, int32:
				vargs[n] = NewVariant(VT_I4, int64(v.(int)))
			case *int, *int32:
				vargs[n] = NewVariant(VT_I4|VT_BYREF, int64(uintptr(unsafe.Pointer(v.(*int)))))
			case uint, uint32:
				vargs[n] = NewVariant(VT_UI4, int64(v.(uint)))
			case *uint, *uint32:
				vargs[n] = NewVariant(VT_UI4|VT_BYREF, int64(uintptr(unsafe.Pointer(v.(*uint)))))
			case int64:
				vargs[n] = NewVariant(VT_I8, int64(v.(int64)))
			case *int64:
				vargs[n] = NewVariant(VT_I8|VT_BYREF, int64(uintptr(unsafe.Pointer(v.(*int64)))))
			case uint64:
				vargs[n] = NewVariant(VT_UI8, v.(int64))
			case *uint64:
				vargs[n] = NewVariant(VT_UI8|VT_BYREF, int64(uintptr(unsafe.Pointer(v.(*uint64)))))
			case float32:
				vargs[n] = NewVariant(VT_R4, *(*int64)(unsafe.Pointer(&vv)))
			case *float32:
				vargs[n] = NewVariant(VT_R4|VT_BYREF, int64(uintptr(unsafe.Pointer(v.(*float32)))))
			case float64:
				vargs[n] = NewVariant(VT_R8, *(*int64)(unsafe.Pointer(&vv)))
			case *float64:
				vargs[n] = NewVariant(VT_R8|VT_BYREF, int64(uintptr(unsafe.Pointer(v.(*float64)))))
			case string:
				vargs[n] = NewVariant(VT_BSTR, int64(uintptr(unsafe.Pointer(SysAllocStringLen(v.(string))))))
			case *string:
				vargs[n] = NewVariant(VT_BSTR|VT_BYREF, int64(uintptr(unsafe.Pointer(v.(*string)))))
			case time.Time:
				s := vv.Format("2006-01-02 15:04:05")
				vargs[n] = NewVariant(VT_BSTR, int64(uintptr(unsafe.Pointer(SysAllocStringLen(s)))))
			case *time.Time:
				s := vv.Format("2006-01-02 15:04:05")
				vargs[n] = NewVariant(VT_BSTR|VT_BYREF, int64(uintptr(unsafe.Pointer(&s))))
			case *IDispatch:
				vargs[n] = NewVariant(VT_DISPATCH, int64(uintptr(unsafe.Pointer(v.(*IDispatch)))))
			case **IDispatch:
				vargs[n] = NewVariant(VT_DISPATCH|VT_BYREF, int64(uintptr(unsafe.Pointer(v.(**IDispatch)))))
			case nil:
				vargs[n] = NewVariant(VT_NULL, 0)
			case *VARIANT:
				vargs[n] = NewVariant(VT_VARIANT|VT_BYREF, int64(uintptr(unsafe.Pointer(v.(*VARIANT)))))
			case []byte:
				safeByteArray := safeArrayFromByteSlice(v.([]byte))
				vargs[n] = NewVariant(VT_ARRAY|VT_UI1, int64(uintptr(unsafe.Pointer(safeByteArray))))
				defer VariantClear(&vargs[n])
			default:
				panic("unknown type")
			}
		}
		dispparams.rgvarg = uintptr(unsafe.Pointer(&vargs[0]))
		dispparams.cArgs = uint32(len(params))
	}

	result = new(VARIANT)
	var excepInfo EXCEPINFO
	VariantInit(result)
	hr, _, _ := syscall.Syscall9(
		disp.VTable().Invoke,
		9,
		uintptr(unsafe.Pointer(disp)),
		uintptr(dispid),
		uintptr(unsafe.Pointer(IID_NULL)),
		uintptr(GetUserDefaultLCID()),
		uintptr(dispatch),
		uintptr(unsafe.Pointer(&dispparams)),
		uintptr(unsafe.Pointer(result)),
		uintptr(unsafe.Pointer(&excepInfo)),
		0)
	if hr != 0 {
		err = NewErrorWithSubError(hr, BstrToString(excepInfo.bstrDescription), excepInfo)
	}
	for _, varg := range vargs {
		if varg.VT == VT_BSTR && varg.Val != 0 {
			SysFreeString(((*int16)(unsafe.Pointer(uintptr(varg.Val)))))
		}
		/*
			if varg.VT == (VT_BSTR|VT_BYREF) && varg.Val != 0 {
				*(params[n].(*string)) = LpOleStrToString((*uint16)(unsafe.Pointer(uintptr(varg.Val))))
				println(*(params[n].(*string)))
				fmt.Fprintln(os.Stderr, *(params[n].(*string)))
			}
		*/
	}
	return
}


text:
<?php

require_once("partials/functions.php");

$title = $nav["top"]->title;
$description = $nav["top"]->description;

require_once("partials/templates.php");
require_once("Mustache/Autoloader.php");
Mustache_Autoloader::register();
$m = new Mustache_Engine;

connect();
//$lastTrack = getLastTrack();
$topTracks = getTrendingTracks();
disconnect();

// $lastTrack->className=" now-playing";
// $lastTrack->title="Now playing: ";

// $topTracks[0]->className=" most-played";
// $topTracks[0]->title="Most played track: ";

$shuffledTracks = $topTracks;

//array_push($shuffledTracks, $lastTrack);

shuffle ( $shuffledTracks);

?><!doctype html>
<html lang="en" itemscope itemtype="http://schema.org/Website">
<head>
	<?php /*Header */ ?>
	<?php require_once("partials/header.php"); ?>
	<?php /*CSS */ ?>
	<style type="text/css" media="all">
		<?php require_once("css/top_inline.css"); ?>
	</style>
</head>
<?php flush(); ?>
<body id="top" class="no-js">
	<?php
	echo $m->render($templates["topgrid"], array("tracks" => $shuffledTracks, "id"=>"grid"));
	echo $m->render($templates["toplisting"], array("tracks" => $topTracks));
	require_once("partials/copy.php");
	?>
	<script>
		<?php
		echo "var cacheBuster = '". $cacheBuster . "';";
		require_once("js/inline-top.min.js");
		?>
	</script>
	<script type="text/javascript" async src="js/script.min.<?php echo $cacheBuster; ?>.js"></script>
	<?php require_once("partials/footer.php"); ?>
</body>
</html>


text:
<?php

namespace App\Classes;

use App\Log;

class Logs {

    const ACTION_ADD = "ADD";
    const ACTION_EDIT = "EDIT";
    const ACTION_DEL = "DELETE";

    public function __construct() {

    }

    public function add($action, $message, $user = null) {
	$log = new Log();
	$log->message = "$action : $message";
	if (is_object($user) && hasEntry("id", $user)) {
	    $log->user_id = $user->id;
	}
	$log->save();
    }

    public function debug($type, $message, $user = null) {
	if (env('APP_DEBUG', false) == true) {
	    $this->add("DEBUG $type", $message, $user);
	}
    }

}


text:
include(Platform/Windows-PGI)
__windows_compiler_pgi(Fortran)


text:
#if !defined(CETTY_CHANNEL_EVENTLOOPPTR_H)
#define CETTY_CHANNEL_EVENTLOOPPTR_H

#include <boost/intrusive_ptr.hpp>

namespace cetty {
namespace channel {

class EventLoop;
typedef boost::intrusive_ptr<EventLoop> EventLoopPtr;

}
}

#endif //#if !defined(CETTY_CHANNEL_EVENTLOOPPTR_H)

// Local Variables:
// mode: c++
// End:


text:
<?php

namespace Everon\Test;

class ResponseTest extends \Everon\TestCase
{

    public function testConstructor()
    {
        $HeadersMock = $this->getMock('Everon\Http\HeaderCollection', [], [], '', false);
        $Response = new \Everon\Response('RequestIdentifier', $HeadersMock);
        $this->assertInstanceOf('\Everon\Interfaces\Response', $Response);
    }

    /**
     * @dataProvider dataProvider
     */
    public function testToJson(\Everon\Interfaces\Response $Response)
    {
        $Response->setData(['test'=>'yes']);
        $json = $Response->toJson();

        $this->assertInternalType('string', $json);
        $this->assertEquals('{"test":"yes"}', $json);
    }

    /**
     * @dataProvider dataProvider
     */
    public function testToText(\Everon\Interfaces\Response $Response)
    {
        $Response->setData('this is a test');
        $text = $Response->toText();

        $this->assertInternalType('string', $text);
        $this->assertEquals('this is a test', $text);
    }

    public function dataProvider()
    {
        /**
         * @var \Everon\Interfaces\Factory $Factory
         */
        $Factory = $this->buildFactory();
        $Response = $Factory->buildResponse('guid');

        return [
            [$Response]
        ];
    }
}


text:
package com.thoughtworks.go.server.messaging.plugin;

import com.thoughtworks.go.plugin.access.notification.NotificationExtension;
import com.thoughtworks.go.plugin.access.notification.NotificationPluginRegistry;
import com.thoughtworks.go.plugin.api.response.Result;
import com.thoughtworks.go.serverhealth.HealthStateScope;
import com.thoughtworks.go.serverhealth.HealthStateType;
import com.thoughtworks.go.serverhealth.ServerHealthService;
import com.thoughtworks.go.serverhealth.ServerHealthState;
import com.thoughtworks.go.util.ListUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.Set;

@Component
public class PluginNotificationService {
    private static final Logger LOGGER = LoggerFactory.getLogger(PluginNotificationService.class);

    private final NotificationExtension notificationExtension;
    private final NotificationPluginRegistry notificationPluginRegistry;
    private final ServerHealthService serverHealthService;

    @Autowired
    public PluginNotificationService(NotificationExtension notificationExtension, NotificationPluginRegistry notificationPluginRegistry, ServerHealthService serverHealthService) {
        this.notificationExtension = notificationExtension;
        this.notificationPluginRegistry = notificationPluginRegistry;
        this.serverHealthService = serverHealthService;
    }

    public <T> void notifyPlugins(PluginNotificationMessage<T> pluginNotificationMessage) throws Exception {
        Set<String> interestedPlugins = notificationPluginRegistry.getPluginsInterestedIn(pluginNotificationMessage.getRequestName());

        if (interestedPlugins != null && !interestedPlugins.isEmpty()) {
            for (String interestedPlugin : interestedPlugins) {
                notifyPlugin(interestedPlugin, pluginNotificationMessage);
            }
        }
    }

    private <T> void notifyPlugin(String pluginId, PluginNotificationMessage<T> pluginNotificationMessage) {
        HealthStateScope scope = HealthStateScope.forPlugin(pluginId);
        try {
            Result result = notificationExtension.notify(pluginId, pluginNotificationMessage.getRequestName(), pluginNotificationMessage.getData());

            if (result.isSuccessful()) {
                serverHealthService.removeByScope(scope);
            } else {
                String errorDescription = result.getMessages() == null ? null : ListUtil.join(result.getMessages());
                handlePluginNotifyError(pluginId, scope, errorDescription, null);
            }
        } catch (Exception e) {
            String errorDescription = e.getMessage() == null ? "Unknown error" : e.getMessage();
            handlePluginNotifyError(pluginId, scope, errorDescription, e);
        }
    }

    private void handlePluginNotifyError(String pluginId, HealthStateScope scope, String errorDescription, Exception e) {
        String message = "Notification update failed for plugin: " + pluginId;
        serverHealthService.update(ServerHealthState.error(message, errorDescription, HealthStateType.general(scope)));
        LOGGER.warn(message, e);
    }
}


text:
<?php
defined('C5_EXECUTE') or die("Access Denied.");
$form = Loader::helper('form');

$cParentID = 0;
$selectorFormFactor = '';
if (is_object($pagetype) && $pagetype->getPageTypePublishTargetTypeID() == $type->getPageTypePublishTargetTypeID()) {
    $configuredTarget = $pagetype->getPageTypePublishTargetObject();
    $cID = $configuredTarget->getParentPageID();
}

?>

		<?php echo $form->label('cParentID', t('Publish Beneath Page'))?>

			<?php
            $pf = Loader::helper('form/page_selector');
            echo $pf->selectPage('cParentID', $cID);
            ?>


text:
<?php

if (!class_exists('Object')) {
	require LIBS . 'object.php';
}
if (!class_exists('File')) {
	require LIBS . 'file.php';
}

/**
 * A class to parse and use the MagicDb for file type analysis
 *
 * @package       cake.tests
 * @subpackage    cake.tests.cases.libs
 */
class MagicDb extends Object {

/**
 * Holds the parsed MagicDb for this class instance
 *
 * @var array
 */
	var $db = array();

/**
 * Reads a MagicDb from various formats
 *
 * @var $magicDb mixed Can be an array containing the db, a magic db as a string, or a filename pointing to a magic db in .db or magic.db.php format
 * @return boolean Returns false if reading / validation failed or true on success.
 * @author        Felix
 */
	function read($magicDb = null) {
		if (!is_string($magicDb) && !is_array($magicDb)) {
			return false;
		}
		if (is_array($magicDb) || strpos($magicDb, '# FILE_ID DB') === 0) {
			$data = $magicDb;
		} else {
			$File =& new File($magicDb);
			if (!$File->exists()) {
				return false;
			}
			if ($File->ext() == 'php') {
				include($File->pwd());
				$data = $magicDb;
			} else {
				// @TODO: Needs test coverage
				$data = $File->read();
			}
		}

		$magicDb = $this->toArray($data);
		if (!$this->validates($magicDb)) {
			return false;
		}
		return !!($this->db = $magicDb);
	}

/**
 * Parses a MagicDb $data string into an array or returns the current MagicDb instance as an array
 *
 * @param string $data A MagicDb string to turn into an array
 * @return array A parsed MagicDb array or an empty array if the $data param was invalid. Returns the db property if $data is not set.
 * @access public
 */
	function toArray($data = null) {
		if (is_array($data)) {
			return $data;
		}
		if ($data === null) {
			return $this->db;
		}

		if (strpos($data, '# FILE_ID DB') !== 0) {
			return array();
		}

		$lines = explode("\r\n", $data);
		$db = array();

		$validHeader = count($lines) > 3
					&& preg_match('/^# Date:([0-9]{4}-[0-9]{2}-[0-9]{2})$/', $lines[1], $date)
					&& preg_match('/^# Source:(.+)$/', $lines[2], $source)
					&& strlen($lines[3]) == 0;
		if (!$validHeader) {
			return $db;
		}

		$db = array('header' => array('Date' => $date[1], 'Source' => $source[1]), 'database' => array());
		$lines = array_splice($lines, 3);

		$format = array();
		while (!empty($lines)) {
			$line = array_shift($lines);
			if (isset($line[0]) && $line[0] == '#' || empty($line)) {
				continue;
			}

			$columns = explode("\t", $line);
			if (in_array($columns[0]{0}, array('>', '&'))) {
				$format[] = $columns;
			} elseif (!empty($format)) {
				$db['database'][] = $format;
				$format = array($columns);
			} else {
				$format = array($columns);
			}
		}

		return $db;
	}

/**
 * Returns true if the MagicDb instance or the passed $magicDb is valid
 *
 * @param mixed $magicDb A $magicDb string / array to validate (optional)
 * @return boolean True if the $magicDb / instance db validates, false if not
 * @access public
 */
	function validates($magicDb = null) {
		if (is_null($magicDb)) {
			$magicDb = $this->db;
		} elseif (!is_array($magicDb)) {
			$magicDb = $this->toArray($magicDb);
		}

		return isset($magicDb['header'], $magicDb['database']) && is_array($magicDb['header']) && is_array($magicDb['database']);
	}

/**
 * Analyzes a given $file using the currently loaded MagicDb information based on the desired $options
 *
 * @param string $file Absolute path to the file to analyze
 * @param array $options TBT
 * @return mixed
 * @access public
 */
	function analyze($file, $options = array()) {
		if (!is_string($file)) {
			return false;
		}

		$matches = array();
		$MagicFileResource =& new MagicFileResource($file);
		foreach ($this->db['database'] as $format) {
			$magic = $format[0];
			$match = $MagicFileResource->test($magic);
			if ($match === false) {
				continue;
			}
			$matches[] = $magic;
		}

		return $matches;
	}
}

/**
 * undocumented class
 *
 * @package       cake.tests
 * @subpackage    cake.tests.cases.libs
 */
class MagicFileResource extends Object{

/**
 * undocumented variable
 *
 * @var unknown
 * @access public
 */
	var $resource = null;

/**
 * undocumented variable
 *
 * @var unknown
 * @access public
 */
	var $offset = 0;

/**
 * undocumented function
 *
 * @param unknown $file
 * @return void
 * @access public
 */
	function __construct($file) {
		if (file_exists($file)) {
			$this->resource =& new File($file);
		} else {
			$this->resource = $file;
		}
	}

/**
 * undocumented function
 *
 * @param unknown $magic
 * @return void
 * @access public
 */
	function test($magic) {
		$offset = null;
		$type = null;
		$expected = null;
		$comment = null;
		if (isset($magic[0])) {
			$offset = $magic[0];
		}
		if (isset($magic[1])) {
			$type = $magic[1];
		}
		if (isset($magic[2])) {
			$expected = $magic[2];
		}
		if (isset($magic[3])) {
			$comment = $magic[3];
		}
		$val = $this->extract($offset, $type, $expected);
		return $val == $expected;
	}

/**
 * undocumented function
 *
 * @param unknown $type
 * @param unknown $length
 * @return void
 * @access public
 */
	function read($length = null) {
		if (!is_object($this->resource)) {
			return substr($this->resource, $this->offset, $length);
		}
		return $this->resource->read($length);
	}

/**
 * undocumented function
 *
 * @param unknown $type
 * @param unknown $expected
 * @return void
 * @access public
 */
	function extract($offset, $type, $expected) {
		switch ($type) {
			case 'string':
				$this->offset($offset);
				$val = $this->read(strlen($expected));
				if ($val === $expected) {
					return true;
				}
				break;
		}
	}

/**
 * undocumented function
 *
 * @param unknown $offset
 * @param unknown $whence
 * @return void
 * @access public
 */
	function offset($offset = null) {
		if (is_null($offset)) {
			if (!is_object($this->resource)) {
				return $this->offset;
			}
			return $this->offset;
		}

		if (!ctype_digit($offset)) {
			return false;
		}
		if (is_object($this->resource)) {
			$this->resource->offset($offset);
		} else {
			$this->offset = $offset;
		}
	}
}

?>


text:
import angular from 'angular';
import component from './ngbCytoscapeToolbarPanel.component';

import controller from './ngbCytoscapeToolbarPanel.controller';
import './ngbCytoscapeToolbarPanel.scss';

export default angular.module('ngbCytoscapeToolbarPanelModule',[])
    .controller(controller.UID, controller)
    .component('ngbCytoscapeToolbarPanel', component)
    .name;


text:
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

[assembly: AssemblyTitle("ESolutions.Web.Ui.Tests")]
[assembly: AssemblyDescription("Tools for ASP.WebForms including an URL/Object-Mapper (like O/R for Urls), URL-Generation and error handling for masterpages")]
#if DEBUG
[assembly: AssemblyConfiguration("Debug")]
#else
[assembly: AssemblyConfiguration("Release")]
#endif
[assembly: AssemblyCompany("Tobias Mundt - everyday Solutions")]
[assembly: AssemblyProduct("ESolutions.Web")]
[assembly: AssemblyCopyright("Copyright © Tobias Mundt - everyday Solutions 2014")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("en-US")]
[assembly: ComVisible(false)]
[assembly: Guid("b032f3b3-befc-46dc-ac06-9709c48bd5ad")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]


text:
This is a basic set of replacement library implementations sufficient to get simple applications
running on your computer (Raspberry Pi OS, Linux, macOS or Windows using Cygwin or Windows Subsystem for Linux).
It is selected by `PICO_PLATFORM=host` in your CMake build

This can be extremely useful for testing and debugging higher level application code, or porting code which is not yet small enough
to run on the RP2040 device itself.

This base level host library provides a minimal environment to compile programs, but is likely sufficient for programs
that don't access hardware directly.

It is possible however to inject additional SDK library implementations/simulations to provide
more complete functionality. For an example of this see the [pico-host-sdl](https://github.com/raspberrypi/pico-host-sdl)
which uses the SDL2 library to add additional library support for pico_multicore, timers/alarms in pico-time and
pico-audio/pico-scanvideo from [pico-extras](https://github.com/raspberrypi/pico-extras)