text:
class Hes_Cpu {
public:
	typedef BOOST::uint8_t byte;
	typedef int time_t;
	typedef int addr_t;
	enum { future_time = INT_MAX/2 + 1 };

	void reset();

	enum { page_bits = 13 };
	enum { page_size = 1 << page_bits };
	enum { page_count = 0x10000 / page_size };
	void set_mmr( int reg, int bank, void const* code );

	byte const* get_code( addr_t );

	// NOT kept updated during emulation.
	struct registers_t {
		BOOST::uint16_t pc;
		byte a;
		byte x;
		byte y;
		byte flags;
		byte sp;
	};
	registers_t r;

	// page mapping registers
	byte mmr [page_count + 1];

	// Time of beginning of next instruction to be executed
	time_t time() const             { return cpu_state->time + cpu_state->base; }
	void set_time( time_t t )       { cpu_state->time = t - cpu_state->base; }
	void adjust_time( int delta )   { cpu_state->time += delta; }

	// Clocks past end (negative if before)
	int time_past_end() const           { return cpu_state->time; }

	// Time of next IRQ
	time_t irq_time() const         { return irq_time_; }
	void set_irq_time( time_t );

	// Emulation stops once time >= end_time
	time_t end_time() const         { return end_time_; }
	void set_end_time( time_t );

	// Subtracts t from all times
	void end_frame( time_t t );

	// Can read this many bytes past end of a page
	enum { cpu_padding = 8 };

private:
	// noncopyable
	Hes_Cpu( const Hes_Cpu& );
	Hes_Cpu& operator = ( const Hes_Cpu& );

// Implementation
public:
	Hes_Cpu() { cpu_state = &cpu_state_; }
	enum { irq_inhibit_mask = 0x04 };

	struct cpu_state_t {
		byte const* code_map [page_count + 1];
		time_t base;
		int time;
	};
	cpu_state_t* cpu_state; // points to cpu_state_ or a local copy
	cpu_state_t cpu_state_;
	time_t irq_time_;
	time_t end_time_;

private:
	void set_code_page( int, void const* );
	inline void update_end_time( time_t end, time_t irq );
};

#define HES_CPU_PAGE( addr ) ((unsigned) (addr) >> Hes_Cpu::page_bits)

#if BLARGG_NONPORTABLE
	#define HES_CPU_OFFSET( addr ) (addr)
#else
	#define HES_CPU_OFFSET( addr ) ((addr) & (Hes_Cpu::page_size - 1))
#endif

inline BOOST::uint8_t const* Hes_Cpu::get_code( addr_t addr )
{
	return cpu_state_.code_map [HES_CPU_PAGE( addr )] + HES_CPU_OFFSET( addr );
}

inline void Hes_Cpu::update_end_time( time_t end, time_t irq )
{
	if ( end > irq && !(r.flags & irq_inhibit_mask) )
		end = irq;

	cpu_state->time += cpu_state->base - end;
	cpu_state->base = end;
}

inline void Hes_Cpu::set_irq_time( time_t t )
{
	irq_time_ = t;
	update_end_time( end_time_, t );
}

inline void Hes_Cpu::set_end_time( time_t t )
{
	end_time_ = t;
	update_end_time( t, irq_time_ );
}

inline void Hes_Cpu::end_frame( time_t t )
{
	assert( cpu_state == &cpu_state_ );
	cpu_state_.base -= t;
	if ( irq_time_ < future_time ) irq_time_ -= t;
	if ( end_time_ < future_time ) end_time_ -= t;
}

inline void Hes_Cpu::set_mmr( int reg, int bank, void const* code )
{
	assert( (unsigned) reg <= page_count ); // allow page past end to be set
	assert( (unsigned) bank < 0x100 );
	mmr [reg] = bank;
	byte const* p = STATIC_CAST(byte const*,code) - HES_CPU_OFFSET( reg << page_bits );
	cpu_state->code_map [reg] = p;
	cpu_state_.code_map [reg] = p;
}

#endif


text:
import { ManifestDetectionResult, Manifest } from "~/store/modules/generator/generator.state";

/**
 * Fetches web manifests from a URL. Wraps up logic that uses multiple services to find the manifest.
 */
export class ManifestFetcher {
    private readonly apiUrl = `${process.env.apiUrl}/manifests`;

    constructor (private url: string, private axios: any) {

    }

    async fetch(): Promise<ManifestDetectionResult> {

        // Manifest detection is surprisingly tricky due to redirects, dynamic code generation, SSL problems, and other issues.
        // We have 3 techniques to detect the manifest:
        // 1. The legacy PWABuilder API
        // 2. An Azure function that uses Chrome Puppeteer to fetch the manifest
        // 3. An Azure function that parses the HTML to find the manifest.
        // This fetch() function runs all 3 manifest detection schemes concurrently and returns the first one that succeeds.

        const manifestDetectors = [
            this.getManifestViaApi(),
            this.getManifestViaFilePost(),
            this.getManifestViaHtmlParse()
        ];

        // We want to use Promise.any(...), but browser support is too low at the time of this writing: https://caniuse.com/mdn-javascript_builtins_promise_any
        // Use our polyfill if needed.
        const promiseAnyOrPolyfill: (promises: Promise<ManifestDetectionResult>[]) => Promise<ManifestDetectionResult> =
            (promises) => Promise["any"] ? Promise["any"](promises) : this.promiseAny(promises);

        try {
            return await promiseAnyOrPolyfill(manifestDetectors);
        } catch (manifestDetectionError) {
            console.error("All manifest detectors failed.", manifestDetectionError);

            // Well, we sure tried.
            throw manifestDetectionError;
        }
    }

    // This is a polyfill for Promise.any(...), which isn't well supported yet at the time of this writing: https://caniuse.com/mdn-javascript_builtins_promise_any
    private promiseAny(promises: Promise<ManifestDetectionResult>[]): Promise<ManifestDetectionResult> {
        if (promises.length === 0) {
            return Promise.reject("No promises supplied");
        }
        let errors: unknown[] = [];

        return new Promise<ManifestDetectionResult>((resolve, reject) => {
            let completedCount = 0;
            let hasSucceeded = false;

            for (let promise of promises) {
                promise.then(result => {
                    if (!hasSucceeded) {
                        hasSucceeded = true;
                        resolve(result);
                    }
                });
                promise.catch(error => errors.push(error));
                promise.finally(() => {
                    completedCount++;
                    if (completedCount === promises.length && !hasSucceeded) {
                        reject("All promises failed: " + errors.join("\n"))
                    }
                })
            }
        });
    }

    // Uses PWABuilder API to fetch the manifest
    private getManifestViaApi(): Promise<ManifestDetectionResult> {
        const options = {
          siteUrl: this.url,
        };

        const postResult = this.axios.$post(this.apiUrl, options);
        postResult.then((r: ManifestDetectionResult) => console.info("Fetching manifest via API succeeded", r));
        return postResult;
    }

    // Uses Azure manifest Puppeteer service to fetch the manifest, then POSTS it to the API.
    private async getManifestViaFilePost(): Promise<ManifestDetectionResult> {
        const manifestTestUrl = `${process.env.testAPIUrl}/WebManifest?site=${encodeURIComponent(this.url)}`;
        const response = await fetch(manifestTestUrl, {
            method: "POST"
        });
        if (!response.ok) {
            console.warn("Fetching manifest via API v2 file POST failed", response.statusText);
            throw new Error(`Unable to fetch response using ${manifestTestUrl}. Response status  ${response}`);
        }
        const responseData = await response.json();
        if (!responseData) {
            console.warn("Fetching manifest via API v2 file POST failed due to no response data", response);
            throw new Error(`Unable to get JSON from ${manifestTestUrl}`);
        }

        const manifestFile = new File([JSON.stringify(responseData.content)], 'test.json');

        const formData = new FormData();
        formData.append("file", manifestFile);

        const filePostTask: Promise<ManifestDetectionResult> = this.axios.$post(this.apiUrl, formData);
        filePostTask.then(r => console.info("Manifest detection succeeded via API v2 file POST.", r));
        const filePostResult = await filePostTask;
        return await this.syncRedis(filePostResult);
    }

    // Uses Azurez HTML parsing microservice to fetch the manifest, then hands it to the API.
    private async getManifestViaHtmlParse(): Promise<ManifestDetectionResult> {
        type ManifestFinderResult = {
            manifestUrl: string | null,
            manifestContents: Manifest | null,
            error: string | null
        };

        const manifestTestUrl = `${process.env.manifestFinderUrl}?url=${encodeURIComponent(this.url)}`;
        const response = await fetch(manifestTestUrl);
        if (!response.ok) {
            console.warn("Fetching manifest via HTML parsing service failed", response);
            throw new Error(`Error fetching from ${manifestTestUrl}`);
        }
        const responseData: ManifestFinderResult = await response.json();
        if (responseData.error || !responseData.manifestContents) {
            console.warn("Fetching manifest via HTML parsing service failed due to no response data", response);
            throw new Error(responseData.error || "Manifest couldn't be fetched");
        }
        console.info(
          "Manifest detection succeeded via HTML parse service",
          responseData
        );

        return await this.syncRedis({
          content: responseData.manifestContents,
          format: "w3c",
          generatedUrl: responseData.manifestUrl || this.url,
          default: {
            short_name: responseData.manifestContents.short_name || "",
          },
          id: "",
          errors: [],
          suggestions: [],
          warnings: [],
        });
    }

    private async syncRedis(manifestData: ManifestDetectionResult): Promise<ManifestDetectionResult> {
        const fetchResult = await fetch(this.apiUrl, {
           method: "POST",
           body: JSON.stringify(manifestData),
           headers: new Headers({ "content-type": "application/json" }),
        });

        if (!fetchResult.ok) {
            throw new Error(`Unable to sync redis, status code ${fetchResult.status}, status text ${fetchResult.statusText}`);
        }

        const manifestResult: ManifestDetectionResult = await fetchResult.json();
        return manifestResult;
    }
}

redpajama_set_name: RedPajamaGithub


text:
<?php

namespace App\Controller;

use App\Service\TwitterService;
use InvalidArgumentException;
use LogicException;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\HttpException;

/**
 * Class TwitterController
 *
 * @package App\Controller
 */
class TwitterController
{
    /** @var TwitterService */
    protected $twitterService;

    /**
     * TwitterController constructor.
     *
     * @param TwitterService $twitterService
     */
    public function __construct(TwitterService $twitterService)
    {
        $this->twitterService = $twitterService;
    }

    /**
     * @param Request $request
     *
     * @return Response
     * @throws HttpException
     * @throws LogicException
     * @throws InvalidArgumentException
     */
    public function tweetAction(Request $request)
    {
        $json = json_decode($request->getContent(), true);
        if (!isset($json['text']) || !$json['text']) {
            throw new HttpException(Response::HTTP_PRECONDITION_FAILED);
        }

        $this->twitterService->sendTweet($json['text']);

        return new Response('', Response::HTTP_NO_CONTENT);
    }
}


text:
class CreateScores < ActiveRecord::Migration
  def change
    create_table :scores do |t|
      t.references :user
      t.references :course
      t.integer    :strokes

      t.timestamps null:false
    end
  end
end


text:
@class MWKSection;

typedef NS_ENUM(NSInteger, WikiTextFetcherErrorType) {
    WIKITEXT_FETCHER_ERROR_UNKNOWN = 0,
    WIKITEXT_FETCHER_ERROR_API = 1,
    WIKITEXT_FETCHER_ERROR_INCOMPLETE = 2
};

@class AFHTTPSessionManager;

@interface WikiTextSectionFetcher : FetcherBase

@property (strong, nonatomic, readonly) MWKSection *section;

// Kick-off method. Results are reported to "delegate" via the FetchFinishedDelegate protocol method.
- (instancetype)initAndFetchWikiTextForSection:(MWKSection *)section
                                   withManager:(AFHTTPSessionManager *)manager
                            thenNotifyDelegate:(id<FetchFinishedDelegate>)delegate;
@end


text:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title>Statistics of flat:name in UD_Belarusian</title>
    <link rel="root" href=""/>
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
    <link rel="stylesheet" type="text/css" href="../../css/jquery-ui-redmond.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/style.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/style-vis.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/hint.css"/>

          home

          edit page
          issue tracker

          <gcse:search></gcse:search>

        This page pertains to UD version 2.

            It appears that you have Javascript disabled.
            Please consider enabling Javascript for this page to see the visualizations.

Treebank Statistics: UD_Belarusian: Relations: flat:name

This relation is a language-specific subtype of <tt>flat</tt>.

14 nodes (0%) are attached to their parents as flat:name.

14 instances of flat:name (100%) are left-to-right (parent precedes child).
Average distance between parent and child is 1.

The following 2 pairs of parts of speech are connected with flat:name: <tt>PROPN</tt>-<tt>PROPN</tt> (13; 93% instances), <tt>NOUN</tt>-<tt>NOUN</tt> (1; 7% instances).

# visual-style 16	bgColor:blue
# visual-style 16	fgColor:white
# visual-style 15	bgColor:blue
# visual-style 15	fgColor:white
# visual-style 15 16 flat:name	color:blue
1	Трэцяе	трэцi	ADJ	_	Case=Nom|Degree=Pos|Gender=Neut|Number=Sing	2	amod	_	_
2	месяца	месяц	NOUN	_	Animacy=Inan|Case=Nom|Gender=Neut|Number=Sing	10	nsubj	_	_
3	і	і	CCONJ	_	_	4	cc	_	_
4	тытул	тытул	NOUN	_	Animacy=Inan|Case=Nom|Gender=Masc|Number=Sing	2	conj	_	_
5	"	"	PUNCT	_	_	7	punct	_	SpaceAfter=No
6	Другая	другi	ADJ	_	Case=Nom|Degree=Pos|Gender=Fem|Number=Sing	7	amod	_	_
7	віцэ-Каралева	віцэ-каралева	NOUN	_	Animacy=Anim|Case=Nom|Gender=Fem|Number=Sing	4	appos	_	_
8	Вясна	вясна	NOUN	_	Animacy=Inan|Case=Nom|Gender=Fem|Number=Sing	7	appos	_	SpaceAfter=No
9	"	"	PUNCT	_	_	7	punct	_	_
10	дасталася	дастацца	VERB	_	Aspect=Perf|Gender=Neut|Mood=Ind|Number=Sing|Tense=Past|VerbForm=Fin|Voice=Mid	0	root	_	_
11	прадстаўніцы	прадстаўніца	NOUN	_	Animacy=Anim|Case=Loc|Gender=Fem|Number=Sing	10	iobj	_	_
12	Полацкага	полацкi	ADJ	_	Case=Gen|Degree=Pos|Gender=Masc|Number=Sing	14	amod	_	_
13	дзяржаўнага	дзяржаўны	ADJ	_	Case=Gen|Degree=Pos|Gender=Masc|Number=Sing	14	amod	_	_
14	ўніверсітэта	універсітэт	NOUN	_	Animacy=Inan|Case=Gen|Gender=Masc|Number=Sing	11	nmod	_	_
15	Хрысціне	Хрысціна	PROPN	_	Animacy=Anim|Case=Nom|Gender=Masc|Number=Sing	11	appos	_	_
16	Нікіфаравай	Нікіфарава	PROPN	_	Animacy=Anim|Case=Nom|Gender=Masc|Number=Sing	15	flat:name	_	SpaceAfter=No
17	.	.	PUNCT	_	_	10	punct	_	_

# visual-style 20	bgColor:blue
# visual-style 20	fgColor:white
# visual-style 19	bgColor:blue
# visual-style 19	fgColor:white
# visual-style 19 20 flat:name	color:blue
1	Але	але	CCONJ	_	_	3	cc	_	_
2	галоўнымі	галоўны	ADJ	_	Case=Ins|Degree=Pos|Number=Plur	3	amod	_	_
3	гераінямі	гераіня	NOUN	_	Animacy=Anim|Case=Ins|Gender=Fem|Number=Plur	0	root	_	_
4	былі	быць	AUX	_	Aspect=Imp|Mood=Ind|Number=Plur|Tense=Past|VerbForm=Fin|Voice=Act	3	cop	_	_
5	пятнаццаць	пятнаццаць	NUM	_	Case=Nom	6	nummod:gov	_	_
6	дзяўчат	дзяўчына	NOUN	_	Animacy=Anim|Case=Gen|Gender=Fem|Number=Plur	3	nsubj	_	_
7	—	—	PUNCT	_	_	6	punct	_	_
8	удзельніц	удзельніца	NOUN	_	Animacy=Anim|Case=Gen|Gender=Fem|Number=Plur	6	parataxis	_	_
9	нацыянальнага	нацыянальны	ADJ	_	Case=Gen|Degree=Pos|Gender=Masc|Number=Sing	10	amod	_	_
10	фіналу	фінал	NOUN	_	Animacy=Inan|Case=Gen|Gender=Masc|Number=Sing	8	nmod	_	_
11	Міжнароднага	міжнародны	ADJ	_	Case=Gen|Degree=Pos|Gender=Masc|Number=Sing	13	amod	_	_
12	міжуніверсітэцкага	міжуніверсітэцкi	ADJ	_	Case=Gen|Degree=Pos|Gender=Masc|Number=Sing	13	amod	_	_
13	конкурсу	конкурс	NOUN	_	Animacy=Inan|Case=Gen|Gender=Masc|Number=Sing	8	nmod	_	_
14	грацыі	грацыя	NOUN	_	Animacy=Inan|Case=Gen|Gender=Fem|Number=Sing	13	nmod	_	_
15	і	і	CCONJ	_	_	17	cc	_	_
16	артыстычнага	артыстычны	ADJ	_	Case=Gen|Degree=Pos|Gender=Neut|Number=Sing	17	amod	_	_
17	майстэрства	майстэрства	NOUN	_	Animacy=Inan|Case=Gen|Gender=Neut|Number=Sing	14	conj	_	_
18	"	"	PUNCT	_	_	19	punct	_	SpaceAfter=No
19	Каралева	каралева	NOUN	_	Animacy=Anim|Case=Nom|Gender=Fem|Number=Sing	17	nmod	_	_
20	Вясна	вясна	NOUN	_	Animacy=Inan|Case=Nom|Gender=Fem|Number=Sing	19	flat:name	_	_
21	—	—	PUNCT	_	_	22	punct	_	_
22	2017	2017	NUM	_	_	19	appos	_	SpaceAfter=No
23	"	"	PUNCT	_	_	19	punct	_	SpaceAfter=No
24	.	.	PUNCT	_	_	3	punct	_	_

© 2014–2021
            Universal Dependencies contributors.
            Site powered by Annodoc and brat
.


text:
package org.openehealth.ipf.commons.ihe.hl7v2;

import ca.uhn.hl7v2.ErrorCode;
import ca.uhn.hl7v2.Version;
import lombok.AllArgsConstructor;
import lombok.Getter;
import org.openehealth.ipf.commons.ihe.core.IntegrationProfile;
import org.openehealth.ipf.commons.ihe.core.InteractionId;
import org.openehealth.ipf.commons.ihe.hl7v2.audit.iti64.Iti64AuditDataset;
import org.openehealth.ipf.commons.ihe.hl7v2.audit.iti64.Iti64AuditStrategy;
import org.openehealth.ipf.commons.ihe.hl7v2.definitions.CustomModelClassUtils;
import org.openehealth.ipf.commons.ihe.hl7v2.definitions.HapiContextFactory;
import org.openehealth.ipf.gazelle.validation.profile.pixpdq.PixPdqTransactions;

import java.util.Arrays;
import java.util.List;

/**
 * @author Christian Ohr
 * @since 3.2
 */
public class XPID implements IntegrationProfile {

    @AllArgsConstructor
    public enum Interactions implements Hl7v2InteractionId<Iti64AuditDataset> {
        ITI_64(ITI_64_CONFIGURATION, ITI_64_NAK_FACTORY);

        @Getter private final Hl7v2TransactionConfiguration<Iti64AuditDataset> hl7v2TransactionConfiguration;
        @Getter private final NakFactory<Iti64AuditDataset> nakFactory;
    }

    @Override
    public List<InteractionId> getInteractionIds() {
        return Arrays.asList(Interactions.values());
    }

    private static final Hl7v2TransactionConfiguration<Iti64AuditDataset> ITI_64_CONFIGURATION =
            new Hl7v2TransactionConfiguration<>(
                    "xpid-iti64",
                    "XAD-PID Change Management",
                    false,
                    new Iti64AuditStrategy(false),
                    new Iti64AuditStrategy(true),
                    new Version[] {Version.V25},
                    "XPID adapter",
                    "IPF",
                    ErrorCode.APPLICATION_INTERNAL_ERROR,
                    ErrorCode.APPLICATION_INTERNAL_ERROR,
                    new String[] {"ADT"},
                    new String[] {"A43"},
                    new String[] {"ACK"},
                    new String[] {"*"},
                    new boolean[] {true},
                    new boolean[] {false},
                    HapiContextFactory.createHapiContext(
                            CustomModelClassUtils.createFactory("xpid", "2.5"),
                            PixPdqTransactions.ITI64));

    private static final NakFactory ITI_64_NAK_FACTORY = new NakFactory(ITI_64_CONFIGURATION);
}


text:
	<title>Rain Pryor's panel show appearances</title>

	<link rel="stylesheet" media="all" href="../style.css" type="text/css"/>

Rain Pryor's panel show appearances

Rain Pryor (born 1969-07-16[ref]) has appeared in 1 episodes between 2007-2007.  Rain Pryor on IMDB. Rain Pryor on Wikipedia. Rain Pryor on Chortle.

2007

2007-04-25 / Loose Women


text:
require 'rails_helper'

RSpec.describe Streamer, type: :model do
  it { should validate_presence_of(:handle) }
  # it { should validate_presence_of(:profile) }
  it { should validate_presence_of(:games) }
  it { should validate_presence_of(:twitch) }
end


text:
/**
 * @author André König <andre.koenig@posteo.de>
 *
 */

'use strict';

/**
 * Creates a CSS selector.
 *
 * @param  {[type]} prefix The class prefix.
 * @param  {string} name The class name.
 * @param  {object} properties A map with all the properties.
 *
 * @return {string} The CSS selector.
 *
 */
exports.constructSelector = function constructSelector (prefix, name, properties) {
    var selector = '';
    var prop;

    // Creating cascade: e.g. .imacss.imacss-foobar {...}
    selector = '.' + prefix + '.' + prefix + '-' + name + '{';

    for (prop in properties) {
        if (properties.hasOwnProperty(prop)) {
            selector = selector + prop + ':' + properties[prop] + ';';
        }
    }

    selector = selector + '}';

    return selector;
};


text:
<!DOCTYPE HTML>

		<meta charset="utf-8">
		<title>
			UsabLog Help
		</title>

In addition to logging notes, you can use these commands to do a few other things.

/t {Task Name}

Log the beginning of a new task.

/e {Error Description}

Log an 'error' committed by the participant.

/a {Assistance Description}

Log assistance required of the facilitator by the participant.

/q {Quote Description}

Log a quote from the participant.

/erase

Remove the last log entry. Be warned, though: you erase it, it's gone, and there isn't any confirmation.

/reset

Erase all entries and reset the timer.

/nuke

Blow away all localStorage data. This is useful for returning to a complete state. If you do this, you will lose ALL sessions you've logged, and you won't be able to recover them.


text:
layout: post
title: Custom icon for terminal application in gnome-shell
description: Custom icon for terminal application in gnome-shell
---

Hey,

## The problem

Recently I wanted to create separated "window" for my weechat
so I can easily alt-tab to it.

I've wrote the .desktop file and place it to `~/.local/share/applications` so
gnome-shell (I'm on ubuntu 17.10) will show me it.

And it did, BUT when I start the weechat the icon turned to "terminal-like".

Hm...

## play with terminal icon

Ok, there is terminals like `xfce4-terminal` that allows to set custom icon
when terminal is starting... so let's try

```
xfce4-terminal -I /the/icon/i/need -e /usr/bin/weechat
```
<br/>

...aaaand nothing!

There are other temrinals allows us to set custom icon but non of them was working.

## The reason

It turned out the gnome-shell overrides everything it thinks is a terminal with the icon from theme currently used.

## Solution

Discarding some guesses I decided that gnome-shell determines that app belongs to "terminal family" based on WM\_CLASS
window property (you can see them using `xprop`). Thanks god (or gnome developers) the gnome-terminal has `--class` option
that overrides the WM\_CLASS property. After that my .desktop file just works.

Here is an example:

```
[Desktop Entry]
Version=1.9.1
Name=Weechat
Comment=Weechat the IRC client
Exec=gnome-terminal --role=weechat --class=weechat -- /usr/bin/weechat
Icon=/usr/share/icons/hicolor/32x32/apps/weechat.png
Terminal=False
Type=Application
Categories=Chat;Development;
```

See `Exec` value with `--role` and `--class` options.


text:
DROP TABLE IF EXISTS documents;
DROP TABLE IF EXISTS document_types;

-- -----------------------------------------------------
-- Table document_types
-- -----------------------------------------------------

CREATE TABLE IF NOT EXISTS document_types (
  id INT UNSIGNED NOT NULL AUTO_INCREMENT,
  entity_id INT UNSIGNED NOT NULL,
  name VARCHAR(45) NOT NULL,
  alias VARCHAR(45) NOT NULL,
  is_multiple TINYINT(1) NOT NULL,
  use_user_id TINYINT(1) NOT NULL,
  PRIMARY KEY (id),
  KEY fk_doc_typ_ent (entity_id)
) ENGINE=InnoDB  ;

ALTER TABLE document_types ADD INDEX doctyp_ent_idx (entity_id ASC);

-- -----------------------------------------------------
-- Table documents
-- -----------------------------------------------------

CREATE TABLE IF NOT EXISTS documents (
  id INT UNSIGNED NOT NULL AUTO_INCREMENT,
  document_type_id INT UNSIGNED NOT NULL,
  language_id INT UNSIGNED NOT NULL,
  user_id INT UNSIGNED DEFAULT NULL,
  parent_entityid INT UNSIGNED NOT NULL,
  title VARCHAR(100) NOT NULL,
  excerpt VARCHAR(255) NOT NULL,
  content TEXT NOT NULL,
  created DATETIME NOT NULL,
  modified DATETIME NOT NULL,
  published DATETIME NOT NULL,
  deleted DATETIME NOT NULL,
  PRIMARY KEY (id)
) ENGINE=InnoDB;

ALTER TABLE documents ADD INDEX doc_doctyp_idx (document_type_id ASC);
ALTER TABLE documents ADD INDEX doc_lan_idx (language_id ASC);
ALTER TABLE documents ADD INDEX doc_use_idx (user_id ASC);

-- -----------------------------------------------------
-- Constraints
-- -----------------------------------------------------

ALTER TABLE documents
ADD CONSTRAINT doc_doctyp_fk FOREIGN KEY (document_type_id) REFERENCES document_types (id) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT doc_lan_fk FOREIGN KEY (language_id) REFERENCES languages (id) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT doc_use_fk FOREIGN KEY (user_id) REFERENCES users (id) ON DELETE NO ACTION ON UPDATE NO ACTION;

ALTER TABLE document_types
ADD CONSTRAINT doctyp_ent_fk FOREIGN KEY (entity_id) REFERENCES entities (id) ON DELETE NO ACTION ON UPDATE NO ACTION;

-- -----------------------------------------------------
-- View view_cms_documents
-- -----------------------------------------------------

CREATE OR REPLACE VIEW view_cms_documents AS
SELECT
Document.id AS document_id, Document.title, Document.excerpt, Document.content, Document.published,
Document.created, Document.parent_entityid AS parent_id,
DocumentType.id AS document_type_id, DocumentType.alias AS document_type_alias, DocumentType.is_multiple,
Entity.alias AS entity_alias,
Language.id AS language_id, Language.code, Language.code2
FROM documents Document
LEFT JOIN document_types DocumentType ON Document.document_type_id = DocumentType.id
LEFT JOIN entities Entity ON DocumentType.entity_id = Entity.id
LEFT JOIN languages Language ON Document.language_id = Language.id
WHERE Document.deleted = '0000-00-00 00:00:00' AND Document.published > '0000-00-00 00:00:00'
AND DocumentType.use_user_id = 0 AND Document.user_id IS NULL
ORDER BY Document.published DESC;


text:
package com.vaadin.tests.layouts.layouttester.GridLayout;

import com.vaadin.tests.layouts.layouttester.BaseCaptionTest;

/**
 *
 * @since
 * @author Vaadin Ltd
 */
public class GridCaptionTest extends BaseCaptionTest {

}


text:
namespace search {

class IntegerAttribute : public NumericAttribute
{
public:
    ~IntegerAttribute() override;
    bool update(DocId doc, largeint_t v) {
        return AttributeVector::update(_changes, doc, NumericChangeData<largeint_t>(v));
    }
    template<typename Accessor>
    bool append(DocId doc, Accessor & ac) {
        return AttributeVector::append(_changes, doc, ac);
    }
    bool append(DocId doc, largeint_t v, int32_t weight) {
        return AttributeVector::append(_changes, doc, NumericChangeData<largeint_t>(v), weight);
    }
    bool remove(DocId doc, largeint_t v, int32_t weight) {
        return AttributeVector::remove(_changes, doc, NumericChangeData<largeint_t>(v), weight);
    }
    bool apply(DocId doc, const ArithmeticValueUpdate & op);
    bool applyWeight(DocId doc, const FieldValue & fv, const ArithmeticValueUpdate & wAdjust) override;
    bool applyWeight(DocId doc, const FieldValue& fv, const document::AssignValueUpdate& wAdjust) override;
    uint32_t clearDoc(DocId doc) override;
    vespalib::MemoryUsage getChangeVectorMemoryUsage() const override;
protected:
    IntegerAttribute(const vespalib::string & name, const Config & c);
    using Change = ChangeTemplate<NumericChangeData<largeint_t>>;
    using ChangeVector = ChangeVectorT<Change>;
    ChangeVector _changes;
private:
    const char * getString(DocId doc, char * s, size_t sz) const override;
    uint32_t get(DocId doc, vespalib::string * v, uint32_t sz) const override;
    uint32_t get(DocId doc, const char ** v, uint32_t sz) const override;
    uint32_t get(DocId doc, WeightedString * v, uint32_t sz) const override;
    uint32_t get(DocId doc, WeightedConstChar * v, uint32_t sz) const override;
};

template<typename T>
class IntegerAttributeTemplate : public IntegerAttribute
{
public:
    using Weighted = WeightedType<T>;
protected:
    using EnumEntryType = T;
    using LoadedNumericValueT = attribute::LoadedNumericValue<T>;
public:
    using BaseType = T;
    using LoadedValueType = T;
    using LoadedVector = SequentialReadModifyWriteInterface<LoadedNumericValueT>;
    virtual T get(DocId doc) const = 0;
    virtual T getFromEnum(EnumHandle e) const = 0;
    T defaultValue() const { return isMutable() ? 0 : attribute::getUndefined<T>(); }
    bool isUndefined(DocId doc) const override { return attribute::isUndefined(get(doc)); }
protected:
    IntegerAttributeTemplate(const vespalib::string & name);
    IntegerAttributeTemplate(const vespalib::string & name, const Config & c);
    IntegerAttributeTemplate(const vespalib::string & name, const Config & c, const BasicType &realType);
    ~IntegerAttributeTemplate() override;
    virtual bool findEnum(T v, EnumHandle & e) const = 0;
    virtual void load_enum_store(LoadedVector&) {}
    virtual void fillValues(LoadedVector &) {}
    virtual void load_posting_lists(LoadedVector&) {}
    const Change _defaultValue;
private:
    bool findEnum(const char *value, EnumHandle &e) const override;
    std::vector<EnumHandle> findFoldedEnums(const char *value) const override;

    long onSerializeForAscendingSort(DocId doc, void * serTo, long available, const common::BlobConverter * bc) const override;
    long onSerializeForDescendingSort(DocId doc, void * serTo, long available, const common::BlobConverter * bc) const override;
};

}


text:
/*DOMinate {{ VERSION }} by Adrian Sieber (adriansieber.com)*/

DOMinate = function dom(array, //Array containing the DOM fragment in JsonML
                  namespace, //Namespace
                  returnObject) { //Contains elements identified by their id

	var doc = document,
		i,
		b;

	//Set on first iteration
	returnObject = returnObject || {}

	//Set default namespace to XHTML namespace
	namespace = namespace || 'http://www.w3.org/1999/xhtml'

	//Create DOM element from syntax sugar string
	function createElement(sugarString) {

		var element = doc.createElementNS(namespace, sugarString.match(/^\w+/)[0]), //Create element
			id,
			ref,
			classNames

		//Assign id if is set
		if (id = sugarString.match(/#([\w-]+)/)) {

			element.id = id[1]

			//Add element to the return object
			returnObject[id[1]] = element
		}

		//Create reference to the element and add it to the return object
		if (ref = sugarString.match(/\$([\w-]+)/))
			returnObject[ref[1]] = element

		//Assign class if is set
		if (classNames = sugarString.match(/\.[\w-]+/g))
			element.setAttribute('class', classNames.join(' ').replace(/\./g, ''))

		//Return DOM element
		return element
	}

	//If is string create DOM element else is already a DOM element
	if (array[0].big)
		array[0] = createElement(array[0])

	//For each in the element array (except the first)
	for (i = 1; i < array.length; i++) {

		//If is string has to be content so set it
		if (array[i].big)
			array[0].appendChild(doc.createTextNode(array[i]));

		//If is array has to be child element
		else if (array[i].pop) {

			//Use DOMinate recursively for all child elements
			dom(array[i], namespace, returnObject)

			//Append the element to its parent element
			array[0].appendChild(array[i][0])
		}

		//If is function call with current element as first argument
		else if (array[i].call)
			array[i](array[0])

		//If is element append it
		else if (array[i] instanceof Element)
			array[0].appendChild(array[i])

		//Else must be object with attributes
		else
		//For each attribute
			for (b in array[i])
				array[0].setAttribute(b, array[i][b])

	}

	//Return root element on index 0
	returnObject[0] = array[0]

	//returns object containing all elements with an id and the root element
	return returnObject
}


text:
<?php

use yii\bootstrap\Nav;
use yii\helpers\Html;
use yii\bootstrap\BootstrapPluginAsset;

BootstrapPluginAsset::register($this);

echo Nav::widget([
    'items' => [
        "
".$model->name.'
'.
        $model->email . '
' .
		'Степень: '.$model->degree.'

',

        Html::tag("li", " Мои курсы",
            ['class' => ($current == 'courses') ? 'active' : '']),

        Html::tag("li", " Статистика курсов",
            ['class' => ($current == 'statistics') ? 'active' : '']),

        Html::tag("li", " Запросы на подписку",
            ['class' => ($current == 'requests') ? 'active' : '']),

        Html::tag("li", " Тесты (ответы)",
            ['class' => ($current == 'results') ? 'active' : '']),

        Html::tag("li", " Редактировать профиль
",
            ['class' => ($current == 'profile-update') ? 'active' : '']),

        Html::tag("li", " Обратная связь"),

        Html::tag("li", " Выйти"),

    ],
    'options' => ['class' => 'nav-pills nav-stacked',
    				 'style' => 'margin:0 20px 20px 10px; padding:5px; border-radius: 4px; border:1px solid #DDDDDD; background:#fff'],
]);?>
<a href='<?=Yii::$app->request->BaseUrl."/site/logout";?>' data-method='post' style="visibility:none;height:0px;" id="logout_href">

                <button type="button" class="close" data-dismiss="modal">×Close</button>

                <textarea rows=5 class="form-control" placeholder='Опишите свой вопрос или проблему' id='problem'></textarea>

                <button id='sendMailButton' type="button" class="btn btn-primary">Отправить</button>


text:
package com.holdenkarau.spark.testing

import scala.util.Random

import org.apache.spark.rdd.RDD
import org.scalatest.funsuite.AnyFunSuite

class SampleRDDTest extends AnyFunSuite with SharedSparkContext with RDDComparisons {
  test("really simple transformation") {
    val input = List("hi", "hi holden", "bye")
    val expected = List(List("hi"), List("hi", "holden"), List("bye"))

    assert(tokenize(sc.parallelize(input)).collect().toList === expected)
  }
  def tokenize(f: RDD[String]) = {
    f.map(_.split(" ").toList)
  }

  test("really simple transformation with rdd - rdd comparision") {
    val inputList = List("hi", "hi holden", "bye")
    val inputRDD = tokenize(sc.parallelize(inputList))

    val expectedList = List(List("hi"), List("hi", "holden"), List("bye"))
    val expectedRDD = sc.parallelize(expectedList)

    assert(None === compareRDD(expectedRDD, inputRDD))
  }

  test("RDD comparision with order same partitioner") {
    val inputList = List("hi", "hi holden", "byez")
    val inputRDD = sc.parallelize(inputList)
    val tokenizedRDD = tokenize(inputRDD)
    val ordered1 = tokenizedRDD.sortBy(x => x.headOption)
    val ordered2 = tokenizedRDD.sortBy(x => x.headOption)

    assert(None === compareRDDWithOrder(ordered1, ordered2))
  }

  test("RDD comparision with order without known partitioner") {
    val inputList = List("hi", "hi holden", "byez", "cheet oz", "murh bots bots")
    val inputRDD = sc.parallelize(inputList, 10)
    val tokenizedRDD = tokenize(inputRDD)
    val ordered = tokenizedRDD.sortBy(x => x.headOption)

    val expectedList = List(
      List("hi"), List("hi", "holden"), List("byez"), List("cheet", "oz"),
      List("murh", "bots", "bots"))
    val expectedRDD = sc.parallelize(expectedList).sortBy(x => x.headOption)
    val diffExpectedRDD = sc.parallelize(expectedList).sortBy(x => x.headOption.map(_.reverse))

    assert(ordered.partitioner.isEmpty && expectedRDD.partitioner.isEmpty)
    assert(None === compareRDDWithOrder(expectedRDD, ordered))
    // Different order
    assert(compareRDDWithOrder(diffExpectedRDD, ordered).isDefined)
    // Different sizes
    val fakeTokenized = inputRDD.map(x => List(x))
    assert(compareRDDWithOrder(diffExpectedRDD, fakeTokenized).isDefined)
    assert(compareRDDWithOrder(expectedRDD, fakeTokenized).isDefined)
  }

  test("empty RDD compare") {
    val inputList = List[String]()
    val inputRDD = sc.parallelize(inputList)

    assert(None === compareRDD(inputRDD, inputRDD))
  }

  test("simple equal compare") {
    val inputList = List("ab", "bc", "bc", "cd")
    val inputRDD = sc.parallelize(inputList)

    val expected = Random.shuffle(inputList)
    val expectedRDD = sc.parallelize(expected)

    assert(None === compareRDD(expectedRDD, inputRDD))
  }

  test("complex equal compare") {
    val inputList = List(("ab", 4), "bc", "bc", ("cd", 6), ("ab", 4), "hanafy", 55)
    val inputRDD = sc.parallelize(inputList)

    val expected = Random.shuffle(inputList)
    val expectedRDD = sc.parallelize(expected)

    assert(None === compareRDD(expectedRDD, inputRDD))
  }

  test("not equal compare") {
    val inputList = List("ab", 1)
    val inputRDD = sc.parallelize(inputList)

    val expectedList = List("ab", -1)
    val expectedRDD = sc.parallelize(expectedList)

    assert(None !== compareRDD(expectedRDD, inputRDD))
  }

  test("empty RDD compareWithOrder") {
    val inputList = List[String]()
    val inputRDD = sc.parallelize(inputList)

    assert(None === compareRDDWithOrder(inputRDD, inputRDD))
  }

  test("equal compareWithOrder") {
    val inputList = List("ab", "bc", "holden", (1, "wxyz"), 22, "abo trika")
    val inputRDD = sc.parallelize(inputList)

    val expectedRDD = sc.parallelize(inputList)

    assert(None === compareRDDWithOrder(inputRDD, expectedRDD))
  }

  test("not equal compareWithOrder") {
    val inputList = List(1, 2, 3, 4)
    val inputRDD = sc.parallelize(inputList)

    val expectedList = List(2, 1, 3, 4)
    val expectedRDD = sc.parallelize(expectedList)

    assert(None !== compareRDDWithOrder(inputRDD, expectedRDD))
  }

  test("assertEqualsWithOrder Success") {
    val rdd = sc.parallelize(List(1, 2, 3, 4))
    assertRDDEqualsWithOrder(rdd, rdd)
  }

  test("assertEqualsWithoutOrder Success") {
    val rdd1 = sc.parallelize(List(1, 2, 3, 4))
    val rdd2 = sc.parallelize(List(4, 3, 2, 1))

    assertRDDEquals(rdd1, rdd2)
  }

  test("assertEqualsWithOrder Failure") {
    val rdd1 = sc.parallelize(List(1, 2, 3, 4))
    val rdd2 = sc.parallelize(List(2, 2, 3, 4))
    intercept[org.scalatest.exceptions.TestFailedException] {
      assertRDDEqualsWithOrder(rdd1, rdd2)
    }
  }

  test("assertEqualsWithoutOrder Failure") {
    val rdd1 = sc.parallelize(List(1, 2, 3, 4))
    val rdd2 = sc.parallelize(List(1, 2, 3, 5))

    intercept[org.scalatest.exceptions.TestFailedException] {
      assertRDDEquals(rdd1, rdd2)
    }
  }

}


text:
namespace TweetGazer.Models.ShowDialogs
{
    public class SearchRepliesProperties
    {
        public string ScreenName;
        public long? Id;
        public long? MaxId;
        public long? SinceId;
    }
}


text:
import rb from './global-rb';

const escapeMap = {
    '&': '&',
    '<': '<',
    '>': '>',
    '"': '"',
    "'": ''',
    '`': '`',
};

// Functions for escaping and unescaping strings to/from HTML interpolation.
const createEscaper = function (map) {
    const escaper = function (match) {
        return map[match];
    };
    // Regexes for identifying a key that needs to be escaped
    const source = '(?:' + Object.keys(map).join('|') + ')';
    const testRegexp = new RegExp(source);
    const replaceRegexp = new RegExp(source, 'g');

    return function (string) {
        string = string == null ? '' : '' + string;
        return testRegexp.test(string) ? string.replace(replaceRegexp, escaper) : string;
    };
};

/**
 * Converts the characters "&", "<", ">", '"', "'", and "\`" in `string` to
 * their corresponding HTML entities.
 *
 * @static
 * @memberOf rb
 * @category String
 * @param {string} [string=''] The string to escape.
 * @returns {string} Returns the escaped string.
 * @example
 *
 * rb.escape('fred, barney, & pebbles');
 * // => 'fred, barney, & pebbles'
 */
rb.escape = createEscaper(escapeMap);

/* eslint-disable no-undef */
if (!window._) {
    window._ = {};
}
if (!_.escape) {
    _.escape = rb.escape;
}
/* eslint-enable no-undef */

export default rb.escape;


text:
package sample;

public class Sample {
    public static void main(String args[]) {
        System.out.println("Hello, world!");
        System.out.println(Sample.class.getClassLoader());
    }
}


text:
<?php

namespace TestSupport\Helper;

use DvsaCommon\UrlBuilder\UrlBuilder;

/**
 * Temporarily copied from Fitnesse (TestShared.php) until OpenAM is in.
 */
class TestSupportAccessTokenManager
{
    private $tokenCache = [];

    private $apiUrl;
    public function __construct($apiUrl)
    {
        $this->apiUrl = $apiUrl;
    }

    public function getToken($username, $password)
    {
        $curlHandle = curl_init($this->apiUrl.UrlBuilder::of()->session()->toString());

        self::setupCurlOptions($curlHandle);
        $postFields = [
            'username' => $username,
            'password' => $password,
        ];
        self::setCurlPost($curlHandle, $postFields);

        $jsonResult = self::execCurlForJson($curlHandle);

        $accessToken = null;

        if (array_key_exists('errors', $jsonResult)) {
            $error = http_build_query($jsonResult);
            throw new \Exception("Could not login to system with credentials $username:$password, result: $error");
        }
        $accessToken = $jsonResult->{'data'}->{'accessToken'};

        $this->tokenCache[$username.';'.$password] = $accessToken;

        return $accessToken;
    }

    public static function addSchemeManagerAsRequestorIfNecessary(&$data)
    {
        if (!isset($data['requestor'])) {
            $data['requestor'] = ['username' => 'schememgt', 'password' => 'Password1'];
        }
    }

    public function invalidateTokens()
    {
        $curlHandle = curl_init($this->apiUrl.UrlBuilder::of()->session()->toString());

        foreach ($this->tokenCache as $token) {
            curl_setopt($curlHandle, CURLOPT_CUSTOMREQUEST, 'DELETE');
            $this->setupCurlOptions($curlHandle);
            curl_setopt($curlHandle, CURLOPT_HTTPHEADER,
                ['Content-Type: application/json',
                 'Authorization: Bearer '.$token, ]);
            $this->execCurlForJson($curlHandle);
        }
    }

    private function execCurlForJson($curlHandle, $shouldClose = true)
    {
        $curlResult = curl_exec($curlHandle);

        $curlInfo = curl_getinfo($curlHandle);

        $curlError = curl_error($curlHandle);
        if ($curlError != '') {
            throw new \Exception("Curl exception: [$curlError]");
        }

        if ($shouldClose) {
            curl_close($curlHandle);
        }

        $contentType = null;
        if (array_key_exists('content_type', $curlInfo)) {
            $contentType = $curlInfo['content_type'];
        }

        if (!strstr($contentType, 'application/json')) {
            error_log("Unexpected response: [$curlResult]");
            throw new \Exception("Expected to get JSON, got [$contentType]; response body: [$curlResult]");
        }

        $jsonResult = json_decode($curlResult);

        if (!$jsonResult) {
            error_log("Unable to parse response: [$curlResult]");
            throw new \Exception("Unable to parse response: [$curlResult]");
        }

        return $jsonResult;
    }

    private function setupCurlOptions($curlHandle)
    {
        curl_setopt($curlHandle, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($curlHandle, CURLOPT_FOLLOWLOCATION, 1);
        curl_setopt($curlHandle, CURLOPT_SSL_VERIFYPEER, false);
        curl_setopt($curlHandle, CURLOPT_TIMEOUT, 30);
        curl_setopt($curlHandle, CURLOPT_HEADER, false);
        curl_setopt($curlHandle, CURLOPT_USERAGENT, 'testsupport;phpcurl;DVSA-MOT');
    }

    private static function setCurlPost($curlHandle, $data)
    {
        curl_setopt($curlHandle, CURLOPT_POST, 1);
        curl_setopt($curlHandle, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);
        curl_setopt($curlHandle, CURLOPT_POSTFIELDS, json_encode($data));
    }
}


text:
.class public Lcom/samsung/wfd/WfdManager$Channel;
.super Ljava/lang/Object;
.source "WfdManager.java"

# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/samsung/wfd/WfdManager;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x9
    name = "Channel"
.end annotation

.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/samsung/wfd/WfdManager$Channel$WfdHandler;
    }
.end annotation

# instance fields
.field mAsyncChannel:Lcom/android/internal/util/AsyncChannel;

.field private mChannelListener:Lcom/samsung/wfd/WfdManager$ChannelListener;

.field mHandler:Lcom/samsung/wfd/WfdManager$Channel$WfdHandler;

.field private mListenerKey:I

.field private mListenerMap:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/Integer;",
            "Ljava/lang/Object;",
            ">;"
        }
    .end annotation
.end field

.field private mListenerMapLock:Ljava/lang/Object;

# direct methods
.method constructor <init>(Landroid/os/Looper;Lcom/samsung/wfd/WfdManager$ChannelListener;)V
    .locals 1
    .parameter "looper"
    .parameter "l"

    .prologue
    .line 403
    invoke-direct/range {p0 .. p0}, Ljava/lang/Object;-><init>()V

    .line 409
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lcom/samsung/wfd/WfdManager$Channel;->mListenerMap:Ljava/util/HashMap;

    .line 410
    new-instance v0, Ljava/lang/Object;

    invoke-direct/range {v0 .. v0}, Ljava/lang/Object;-><init>()V

    iput-object v0, p0, Lcom/samsung/wfd/WfdManager$Channel;->mListenerMapLock:Ljava/lang/Object;

    .line 411
    const/4 v0, 0x0

    iput v0, p0, Lcom/samsung/wfd/WfdManager$Channel;->mListenerKey:I

    .line 404
    new-instance v0, Lcom/android/internal/util/AsyncChannel;

    invoke-direct {v0}, Lcom/android/internal/util/AsyncChannel;-><init>()V

    iput-object v0, p0, Lcom/samsung/wfd/WfdManager$Channel;->mAsyncChannel:Lcom/android/internal/util/AsyncChannel;

    .line 405
    new-instance v0, Lcom/samsung/wfd/WfdManager$Channel$WfdHandler;

    invoke-direct {v0, p0, p1}, Lcom/samsung/wfd/WfdManager$Channel$WfdHandler;-><init>(Lcom/samsung/wfd/WfdManager$Channel;Landroid/os/Looper;)V

    iput-object v0, p0, Lcom/samsung/wfd/WfdManager$Channel;->mHandler:Lcom/samsung/wfd/WfdManager$Channel$WfdHandler;

    .line 406
    iput-object p2, p0, Lcom/samsung/wfd/WfdManager$Channel;->mChannelListener:Lcom/samsung/wfd/WfdManager$ChannelListener;

    .line 407
    return-void
.end method

.method static synthetic access$000(Lcom/samsung/wfd/WfdManager$Channel;)Lcom/samsung/wfd/WfdManager$ChannelListener;
    .locals 1
    .parameter "x0"

    .prologue
    .line 402
    iget-object v0, p0, Lcom/samsung/wfd/WfdManager$Channel;->mChannelListener:Lcom/samsung/wfd/WfdManager$ChannelListener;

    return-object v0
.end method

.method static synthetic access$002(Lcom/samsung/wfd/WfdManager$Channel;Lcom/samsung/wfd/WfdManager$ChannelListener;)Lcom/samsung/wfd/WfdManager$ChannelListener;
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 402
    iput-object p1, p0, Lcom/samsung/wfd/WfdManager$Channel;->mChannelListener:Lcom/samsung/wfd/WfdManager$ChannelListener;

    return-object p1
.end method

# virtual methods
.method getListener(I)Ljava/lang/Object;
    .locals 3
    .parameter "key"

    .prologue
    .line 448
    iget-object v1, p0, Lcom/samsung/wfd/WfdManager$Channel;->mListenerMapLock:Ljava/lang/Object;

    monitor-enter v1

    .line 449
    :try_start_0
    iget-object v0, p0, Lcom/samsung/wfd/WfdManager$Channel;->mListenerMap:Ljava/util/HashMap;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/util/HashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    monitor-exit v1

    return-object v0

    .line 450
    :catchall_0
    move-exception v0

    monitor-exit v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v0
.end method

.method putListener(Ljava/lang/Object;)I
    .locals 4
    .parameter "listener"

    .prologue
    .line 438
    if-nez p1, :cond_0

    const/4 v0, 0x0

    .line 444
    :goto_0
    return v0

    .line 440
    :cond_0
    iget-object v2, p0, Lcom/samsung/wfd/WfdManager$Channel;->mListenerMapLock:Ljava/lang/Object;

    monitor-enter v2

    .line 441
    :try_start_0
    iget v0, p0, Lcom/samsung/wfd/WfdManager$Channel;->mListenerKey:I

    add-int/lit8 v1, v0, 0x1

    iput v1, p0, Lcom/samsung/wfd/WfdManager$Channel;->mListenerKey:I

    .line 442
    .local v0, key:I
    iget-object v1, p0, Lcom/samsung/wfd/WfdManager$Channel;->mListenerMap:Ljava/util/HashMap;

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v1, v3, p1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 443
    monitor-exit v2

    goto :goto_0

    .end local v0           #key:I
    :catchall_0
    move-exception v1

    monitor-exit v2
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v1
.end method


text:
namespace Content.Server.Xenoarchaeology.XenoArtifacts.Triggers.Components;

/// <summary>
/// Triggers when an artifact is anchored
/// </summary>
/// <remarks>
/// Not every trigger can be a winner
/// </remarks>
[RegisterComponent]
public sealed class ArtifactAnchorTriggerComponent : Component
{

}


text:
![alt-text](http://inori.s-ul.eu/bQYRsBk1.png)

**Table of Contents**
 * [ddrsn3-theme](#ddrsn3-theme)
 * [Installation](#installation)
 * [Announcers](#announcers)
 * [DDR SN3](#ddr-sn3)
 * [Contributors:](#contributors)
 * [Copyright](#copyright)

ddrsn3-theme
============
Contains SN3 theme files

z-i-v thread [Here!](https://zenius-i-vanisher.com/v5.2/thread?threadid=7660)

dev blog (tumblr) [Here!](http://sn3next.tumblr.com)

============

Installation
============
Current Working Copy
--
1. Click the ***Download as zip*** button.
2. ???
3. Profit.

Alpha/Beta/Release Candidate Builds
--
1. Click the ***Releases*** tab
2. Download **source code (.zip)** from the most recent release. (It'll be at the top)
3. ???
4. Profit.

============

Announcers
============
TAZ = DDRMAX through SN2

THOMAS = 1st through 5th

DDR SN3
============
The Theme.
**The SM5 theme is still being built from the ground up. Please keep your git copy updated regularly if you plan to push any changes.**

============

Contributors:
============

Metrics/Lua
--
Inorizushi

FlameyBoy

hypnoticmarten77

**Special thanks to KENp, Kyzentun, and holidia.**

Graphics
--
Inorizushi

hypnoticmarten77

JunkoXXX

SoulEdge5000

Dreamland200

riskofsoundingnerdy

**Special thanks to Konami and Google Images for inspiration.**

===========

Copyright
============
We are **in no way affiliated with Konami.** Any references made to the DanceDanceRevolution franchise is strictly for continuity purposes.

Do not use any graphical elements from this project **without explicit permission from the Graphics Team.**

**A list of files exempt from these rules can be found in [this file.]**
[this file.]: https://github.com/MidflightDigital/ddrsn3-theme/blob/master/permissible-elements.md

You are allowed to borrow code/metrics **if you ask the Metrics/Lua team or if credit is given.** *Our team has spent many months developing this theme and coming up with newer implementations for several elements. Please respect our work, it'll only take a couple of keystrokes.*

You are allowed to edit this theme for ***PERSONAL USE ONLY***.

You are allowed to run this theme in a public setting **only with permission from the Midflight Digital SuperNOVA3 team.** This includes everyone in the *Metrics/Lua* and *Graphics* list.


text:
#pragma once

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

namespace WebCore {

class AsyncFileStream;
class BlobData;
class FileStream;
class ResourceHandleClient;
class ResourceRequest;
class BlobDataItem;

class BlobResourceHandle final : public FileStreamClient, public ResourceHandle  {
public:
    static Ref<BlobResourceHandle> createAsync(BlobData*, const ResourceRequest&, ResourceHandleClient*);

    static void loadResourceSynchronously(BlobData*, const ResourceRequest&, ResourceError&, ResourceResponse&, Vector<char>& data);

    void start();
    int readSync(char*, int);

    bool aborted() const { return m_aborted; }

    enum class Error {
        NoError = 0,
        NotFoundError = 1,
        SecurityError = 2,
        RangeError = 3,
        NotReadableError = 4,
        MethodNotAllowed = 5
    };

private:
    BlobResourceHandle(BlobData*, const ResourceRequest&, ResourceHandleClient*, bool async);
    virtual ~BlobResourceHandle();

    // FileStreamClient methods.
    void didGetSize(long long) override;
    void didOpen(bool) override;
    void didRead(int) override;

    // ResourceHandle methods.
    void cancel() override;
    void continueDidReceiveResponse() override;

    void doStart();
    void getSizeForNext();
    void seek();
    void consumeData(const char* data, int bytesRead);
    void failed(Error);

    void readAsync();
    void readDataAsync(const BlobDataItem&);
    void readFileAsync(const BlobDataItem&);

    int readDataSync(const BlobDataItem&, char*, int);
    int readFileSync(const BlobDataItem&, char*, int);

    void notifyResponse();
    void notifyResponseOnSuccess();
    void notifyResponseOnError();
    void notifyReceiveData(const char*, int);
    void notifyFail(Error);
    void notifyFinish();

    bool erroredOrAborted() const { return m_aborted || m_errorCode != Error::NoError; }

    enum { kPositionNotSpecified = -1 };

    RefPtr<BlobData> m_blobData;
    bool m_async;
    std::unique_ptr<AsyncFileStream> m_asyncStream; // For asynchronous loading.
    std::unique_ptr<FileStream> m_stream; // For synchronous loading.
    Vector<char> m_buffer;
    Vector<long long> m_itemLengthList;
    Error m_errorCode { Error::NoError };
    bool m_aborted { false };
    long long m_rangeOffset { kPositionNotSpecified };
    long long m_rangeEnd { kPositionNotSpecified };
    long long m_rangeSuffixLength { kPositionNotSpecified };
    long long m_totalSize { 0 };
    long long m_totalRemainingSize { 0 };
    long long m_currentItemReadSize { 0 };
    unsigned m_sizeItemCount { 0 };
    unsigned m_readItemCount { 0 };
    bool m_fileOpened { false };
};

} // namespace WebCore


text:
@interface PodsDummy_Pods_MSInputScrollViewController_DZGeometryTools : NSObject
@end
@implementation PodsDummy_Pods_MSInputScrollViewController_DZGeometryTools
@end


text:
using System;
using System.Collections.Generic;
using System.IO;
using System.Security.Cryptography;
using System.Text;
using Cvv.WebUtility.Components;
using Cvv.WebUtility.Core.Cache;
using Cvv.WebUtility.Mvc;
using Cvv.WebUtility.Mvc.Provider;
using Cvv.WebUtility.Net.Client;

namespace Cvv.WebUtility.Mini
{
    public class MiniSecurity : ISecurityProvider
    {
        private static ISecurityProvider _instance;

        public static ISecurityProvider CreateInstance()
        {
            if (_instance == null)
                _instance = new MiniSecurity();

            return _instance;
        }

        private Dictionary<string, long> _methods = new Dictionary<string, long>();
        private SmartCache<bool> _cache = new SmartCache<bool>(1024);

        private MiniSecurity()
        {
            string[] methods = WebAppConfig.GetSecurityMethods();

            foreach (string m in methods)
            {
                _methods.Add(m, 0);
            }
        }

        public void SignIn(string returnUrl)
        {
            WebAppContext.Response.Redirect(string.Format("{0}?client_id={1}&response_type=code&redirect_uri={2}", WebAppConfig.OAuthUri, WebAppConfig.AppKey, returnUrl));
        }

        public void SignIn(long userId, long[] right)
        {
            WebAppContext.Session.UserId = userId;
            WebAppContext.Session.Right = CalculateRight(right);
        }

        public void SignIn(long userId, long right)
        {
            WebAppContext.Session.UserId = userId;
            WebAppContext.Session.Right = right;
        }

        public int Authorize(string code)
        {
            int rval = 0;

            HttpClient client = new HttpClient();

            string responseText;

            client.GetData(string.Format("{0}/Authorize?client_id={1}&code={2}", WebAppConfig.OAuthUri, WebAppConfig.AppKey, code), out responseText);

            UserData userData = WebAppConfig.DeserializeProvider.Parse(responseText, typeof(UserData)) as UserData;

            if (!userData.IsNull())
            {
                DateTime limit = new DateTime(userData.Ticks);

                if (limit > WebAppConfig.TimeProvider.Now)
                {
                    string signature = StringHelper.Sha256String(string.Concat(userData.UserId, userData.FirstName, userData.LastName, userData.Username, userData.Email, userData.Right, userData.Status, WebAppConfig.AppSecret, userData.Ticks));

                    if (signature == userData.Signature)
                    {
                        rval = 1;
                        SignIn(userData.UserId, userData.Right);
                    }
                    else
                    {
                        rval = -1;
                    }
                }
                else
                {
                    rval = -2;
                }
            }
            else
            {
                rval = -3;
            }

            return rval;
        }

        public void Logout(string returnUrl)
        {
            RemoveCache(WebAppContext.Session.UserId);

            WebAppContext.Session.UserId = 0;
            WebAppContext.Session.Right = 0;

            long ticks = WebAppConfig.TimeProvider.Now.AddMinutes(2).Ticks;

            string token = StringHelper.Sha256String(string.Concat(WebAppConfig.AppSecret, ticks));

            WebAppContext.Response.Redirect(string.Format("{0}/Logout?client_id={1}&ticks={2}&token={3}&redirect_uri={4}", WebAppConfig.OAuthUri, WebAppConfig.AppKey, ticks, token, returnUrl));
        }

        public void Logout()
        {
            RemoveCache(WebAppContext.Session.UserId);

            WebAppContext.Session.UserId = 0;
            WebAppContext.Session.Right = 0;
        }

        public long CalculateRight(long[] right)
        {
            long val = 0;

            foreach (long r in right)
            {
                val = val | r;
            }

            return val;
        }

        public bool Check(string controllerName, string actionMethod)
        {
            return CheckPermission(controllerName, actionMethod);
        }

        public bool Check(long rightSrc, long rightDist)
        {
            long val = rightSrc & rightDist;

            return val > 0;
        }

        public bool Check(long rightSrc, long rightDist1, long rightDist2)
        {
            return (rightSrc & rightDist1) > 0 || (rightSrc & rightDist2) > 0;
        }

        public bool CheckPermission(string controllerName, string actionMethod)
        {
            string key = string.Concat(controllerName, "$", actionMethod);

            long value;

            if (_methods.TryGetValue(key, out value))
            {
                long userId = WebAppContext.Session.UserId;

                string cacheKey = string.Concat(userId, ":", key);

                bool pass;

                if (!_cache.TryGetValue(cacheKey, out pass))
                {
                    long right = WebAppContext.Session.Right;

                    if (value == 0)
                    {
                        value = SecurityManager.GetSecurity(key);
                        _methods[key] = value;
                    }

                    pass = (right & value) > 0;

                    _cache.Add(key, pass);
                }

                return pass;
            }
            else
            {
                return true;
            }
        }

        public void RemoveCache(string key)
        {
            _cache.Remove(key);
        }

        public void RemoveCache(long userId)
        {
            foreach (string key in _methods.Keys)
            {
                _cache.Remove(string.Concat(userId, ":", key));
            }
        }

        public void ClearCache()
        {
            _cache.ClearCache();
        }

        public string Encrypt(string data, string publicKey)
        {
            UnicodeEncoding byteConverter = new UnicodeEncoding();

            CspParameters csp = new CspParameters();
            csp.Flags = CspProviderFlags.UseMachineKeyStore;

            StringBuilder sb = new StringBuilder();

            using (RSACryptoServiceProvider rsa = new RSACryptoServiceProvider(2048, csp))
            {
                byte[] key = Convert.FromBase64String(publicKey);
                rsa.ImportCspBlob(key);

                byte[] dataToEncrypt = byteConverter.GetBytes(data);

                using (MemoryStream ms = new MemoryStream(dataToEncrypt))
                {
                    int bytes = 0;

                    do
                    {
                        byte[] buffer = new byte[128];
                        bytes = ms.Read(buffer, 0, 128);
                        sb.AppendLine(Convert.ToBase64String(rsa.Encrypt(buffer, false)));

                    } while (bytes > 0);
                }
            }

            return sb.ToString();
        }

        public string Decrypt(string data, string privateKey)
        {
            UnicodeEncoding byteConverter = new UnicodeEncoding();

            StringBuilder sb = new StringBuilder();

            CspParameters csp = new CspParameters();
            csp.Flags = CspProviderFlags.UseMachineKeyStore;

            using (RSACryptoServiceProvider rsa = new RSACryptoServiceProvider(2048, csp))
            {
                byte[] key = Convert.FromBase64String(privateKey);
                rsa.ImportCspBlob(key);

                using (StringReader sr = new StringReader(data))
                {
                    do
                    {
                        string line = sr.ReadLine();

                        if (string.IsNullOrEmpty(line))
                            break;

                        byte[] dataToDecrypt = Convert.FromBase64String(line);

                        sb.Append(byteConverter.GetString(rsa.Decrypt(dataToDecrypt, false)));

                    } while (true);
                }
            }

            return sb.ToString();
        }
    }
}


text:
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

package org.chromium.chrome.browser.customtabs;

import android.view.View;

import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;

import org.chromium.base.jank_tracker.DummyJankTracker;
import org.chromium.base.supplier.BooleanSupplier;
import org.chromium.base.supplier.ObservableSupplier;
import org.chromium.base.supplier.OneShotCallback;
import org.chromium.base.supplier.OneshotSupplier;
import org.chromium.base.supplier.OneshotSupplierImpl;
import org.chromium.base.supplier.Supplier;
import org.chromium.chrome.R;
import org.chromium.chrome.browser.ActivityTabProvider;
import org.chromium.chrome.browser.app.reengagement.ReengagementActivity;
import org.chromium.chrome.browser.bookmarks.BookmarkBridge;
import org.chromium.chrome.browser.browserservices.intents.BrowserServicesIntentDataProvider;
import org.chromium.chrome.browser.compositor.CompositorViewHolder;
import org.chromium.chrome.browser.compositor.layouts.LayoutManagerImpl;
import org.chromium.chrome.browser.compositor.layouts.OverviewModeBehavior;
import org.chromium.chrome.browser.compositor.layouts.content.TabContentManager;
import org.chromium.chrome.browser.contextualsearch.ContextualSearchManager;
import org.chromium.chrome.browser.customtabs.content.CustomTabActivityNavigationController;
import org.chromium.chrome.browser.customtabs.features.toolbar.CustomTabToolbar;
import org.chromium.chrome.browser.customtabs.features.toolbar.CustomTabToolbarCoordinator;
import org.chromium.chrome.browser.feature_engagement.TrackerFactory;
import org.chromium.chrome.browser.flags.ActivityType;
import org.chromium.chrome.browser.fullscreen.BrowserControlsManager;
import org.chromium.chrome.browser.fullscreen.FullscreenManager;
import org.chromium.chrome.browser.lifecycle.ActivityLifecycleDispatcher;
import org.chromium.chrome.browser.multiwindow.MultiWindowModeStateDispatcher;
import org.chromium.chrome.browser.profiles.Profile;
import org.chromium.chrome.browser.reengagement.ReengagementNotificationController;
import org.chromium.chrome.browser.share.ShareDelegate;
import org.chromium.chrome.browser.tabmodel.TabCreatorManager;
import org.chromium.chrome.browser.tabmodel.TabModelSelector;
import org.chromium.chrome.browser.ui.RootUiCoordinator;
import org.chromium.chrome.browser.ui.appmenu.AppMenuBlocker;
import org.chromium.chrome.browser.ui.appmenu.AppMenuDelegate;
import org.chromium.chrome.browser.ui.messages.snackbar.SnackbarManager;
import org.chromium.chrome.browser.ui.system.StatusBarColorController.StatusBarColorProvider;
import org.chromium.components.browser_ui.widget.MenuOrKeyboardActionController;
import org.chromium.components.feature_engagement.Tracker;
import org.chromium.ui.base.ActivityWindowAndroid;
import org.chromium.ui.base.IntentRequestTracker;
import org.chromium.ui.modaldialog.ModalDialogManager;

/**
 * A {@link RootUiCoordinator} variant that controls UI for {@link BaseCustomTabActivity}.
 */
public class BaseCustomTabRootUiCoordinator extends RootUiCoordinator {
    private final Supplier<CustomTabToolbarCoordinator> mToolbarCoordinator;
    private final Supplier<CustomTabActivityNavigationController> mNavigationController;
    private final Supplier<BrowserServicesIntentDataProvider> mIntentDataProvider;
    private final MultiWindowModeStateDispatcher mMultiWindowModeStateDispatcher;

    private CustomTabHeightStrategy mCustomTabHeightStrategy;

    /**
     * Construct a new BaseCustomTabRootUiCoordinator.
     * @param activity The activity whose UI the coordinator is responsible for.
     * @param shareDelegateSupplier Supplies the {@link ShareDelegate}.
     * @param tabProvider The {@link ActivityTabProvider} to get current tab of the activity.
     * @param profileSupplier Supplier of the currently applicable profile.
     * @param bookmarkBridgeSupplier Supplier of the bookmark bridge for the current profile.
     * @param contextualSearchManagerSupplier Supplier of the {@link ContextualSearchManager}.
     * @param tabModelSelectorSupplier Supplies the {@link TabModelSelector}.
     * @param browserControlsManager Manages the browser controls.
     * @param windowAndroid The current {@link WindowAndroid}.
     * @param activityLifecycleDispatcher Allows observation of the activity lifecycle.
     * @param layoutManagerSupplier Supplies the {@link LayoutManager}.
     * @param menuOrKeyboardActionController Controls the menu or keyboard action controller.
     * @param activityThemeColorSupplier Supplies the activity color theme.
     * @param modalDialogManagerSupplier Supplies the {@link ModalDialogManager}.
     * @param appMenuBlocker Controls the app menu blocking.
     * @param supportsAppMenuSupplier Supplies the support state for the app menu.
     * @param supportsFindInPage Supplies the support state for find in page.
     * @param tabCreatorManagerSupplier Supplies the {@link TabCreatorManager}.
     * @param fullscreenManager Manages the fullscreen state.
     * @param compositorViewHolderSupplier Supplies the {@link CompositorViewHolder}.
     * @param tabContentManagerSupplier Supplies the {@link TabContentManager}.
     * @param overviewModeBehaviorSupplier Supplier of the overview mode manager.
     * @param snackbarManagerSupplier Supplies the {@link SnackbarManager}.
     * @param activityType The {@link ActivityType} for the activity.
     * @param isInOverviewModeSupplier Supplies whether the app is in overview mode.
     * @param shouldShowOverviewPageOnStartSupplier Supplies whether the overview page should be
     *         shown on start.
     * @param isWarmOnResumeSupplier Supplies whether the app was warm on resume.
     * @param appMenuDelegate The app menu delegate.
     * @param statusBarColorProvider Provides the status bar color.
     * @param intentRequestTracker Tracks intent requests.
     * @param customTabToolbarCoordinator Coordinates the custom tab toolbar.
     * @param customTabNavigationController Controls the custom tab navigation.
     * @param intentDataProvider Contains intent information used to start the Activity.
     * @param multiWindowModeStateDispatcher Required to register for multi-window mode changes.
     */
    public BaseCustomTabRootUiCoordinator(@NonNull AppCompatActivity activity,
            @NonNull ObservableSupplier<ShareDelegate> shareDelegateSupplier,
            @NonNull ActivityTabProvider tabProvider,
            @NonNull ObservableSupplier<Profile> profileSupplier,
            @NonNull ObservableSupplier<BookmarkBridge> bookmarkBridgeSupplier,
            @NonNull Supplier<ContextualSearchManager> contextualSearchManagerSupplier,
            @NonNull ObservableSupplier<TabModelSelector> tabModelSelectorSupplier,
            @NonNull BrowserControlsManager browserControlsManager,
            @NonNull ActivityWindowAndroid windowAndroid,
            @NonNull ActivityLifecycleDispatcher activityLifecycleDispatcher,
            @NonNull ObservableSupplier<LayoutManagerImpl> layoutManagerSupplier,
            @NonNull MenuOrKeyboardActionController menuOrKeyboardActionController,
            @NonNull Supplier<Integer> activityThemeColorSupplier,
            @NonNull ObservableSupplier<ModalDialogManager> modalDialogManagerSupplier,
            @NonNull AppMenuBlocker appMenuBlocker,
            @NonNull BooleanSupplier supportsAppMenuSupplier,
            @NonNull BooleanSupplier supportsFindInPage,
            @NonNull Supplier<TabCreatorManager> tabCreatorManagerSupplier,
            @NonNull FullscreenManager fullscreenManager,
            @NonNull Supplier<CompositorViewHolder> compositorViewHolderSupplier,
            @NonNull Supplier<TabContentManager> tabContentManagerSupplier,
            @NonNull OneshotSupplier<OverviewModeBehavior> overviewModeBehaviorSupplier,
            @NonNull Supplier<SnackbarManager> snackbarManagerSupplier,
            @ActivityType int activityType, @NonNull Supplier<Boolean> isInOverviewModeSupplier,
            @NonNull Supplier<Boolean> shouldShowOverviewPageOnStartSupplier,
            @NonNull Supplier<Boolean> isWarmOnResumeSupplier,
            @NonNull AppMenuDelegate appMenuDelegate,
            @NonNull StatusBarColorProvider statusBarColorProvider,
            @NonNull IntentRequestTracker intentRequestTracker,
            @NonNull Supplier<CustomTabToolbarCoordinator> customTabToolbarCoordinator,
            @NonNull Supplier<CustomTabActivityNavigationController> customTabNavigationController,
            @NonNull Supplier<BrowserServicesIntentDataProvider> intentDataProvider,
            @NonNull MultiWindowModeStateDispatcher multiWindowModeStateDispatcher) {
        // clang-format off
        super(activity, null, shareDelegateSupplier, tabProvider, profileSupplier,
                bookmarkBridgeSupplier, contextualSearchManagerSupplier, tabModelSelectorSupplier,
                new OneshotSupplierImpl<>(), new OneshotSupplierImpl<>(),
                new OneshotSupplierImpl<>(), () -> null,
                browserControlsManager, windowAndroid, new DummyJankTracker(),
                activityLifecycleDispatcher, layoutManagerSupplier, menuOrKeyboardActionController,
                activityThemeColorSupplier, modalDialogManagerSupplier, appMenuBlocker,
                supportsAppMenuSupplier, supportsFindInPage, tabCreatorManagerSupplier,
                fullscreenManager, compositorViewHolderSupplier, tabContentManagerSupplier,
                overviewModeBehaviorSupplier, snackbarManagerSupplier, activityType,
                isInOverviewModeSupplier, shouldShowOverviewPageOnStartSupplier,
                isWarmOnResumeSupplier, appMenuDelegate, statusBarColorProvider,
                intentRequestTracker, new OneshotSupplierImpl<>(), false);
        // clang-format on
        mToolbarCoordinator = customTabToolbarCoordinator;
        mNavigationController = customTabNavigationController;
        mIntentDataProvider = intentDataProvider;
        mMultiWindowModeStateDispatcher = multiWindowModeStateDispatcher;
    }

    @Override
    protected void initializeToolbar() {
        super.initializeToolbar();

        mToolbarCoordinator.get().onToolbarInitialized(mToolbarManager);
        mNavigationController.get().onToolbarInitialized(mToolbarManager);

        CustomTabToolbar toolbar = mActivity.findViewById(R.id.toolbar);
        View coordinator = mActivity.findViewById(R.id.coordinator);
        mCustomTabHeightStrategy.onToolbarInitialized(coordinator, toolbar);
    }

    @Override
    public void onFinishNativeInitialization() {
        super.onFinishNativeInitialization();
        if (!ReengagementNotificationController.isEnabled()) return;
        new OneShotCallback<>(mProfileSupplier, mCallbackController.makeCancelable(profile -> {
            assert profile != null : "Unexpectedly null profile from TabModel.";
            if (profile == null) return;
            Tracker tracker = TrackerFactory.getTrackerForProfile(profile);
            ReengagementNotificationController controller = new ReengagementNotificationController(
                    mActivity, tracker, ReengagementActivity.class);
            controller.tryToReengageTheUser();
        }));
    }

    @Override
    protected boolean shouldAllowThemingInNightMode() {
        return mActivityType == ActivityType.TRUSTED_WEB_ACTIVITY
                || mActivityType == ActivityType.WEB_APK;
    }

    @Override
    protected boolean shouldAllowBrightThemeColors() {
        return mActivityType == ActivityType.TRUSTED_WEB_ACTIVITY
                || mActivityType == ActivityType.WEB_APK;
    }

    @Override
    public void onPreInflationStartup() {
        super.onPreInflationStartup();

        BrowserServicesIntentDataProvider intentDataProvider = mIntentDataProvider.get();
        assert intentDataProvider
                != null : "IntentDataProvider needs to be non-null after preInflationStartup";

        mCustomTabHeightStrategy = CustomTabHeightStrategy.createStrategy(mActivity,
                intentDataProvider.getInitialActivityHeight(), mMultiWindowModeStateDispatcher,
                CustomTabsConnection.getInstance(), intentDataProvider.getSession(),
                mActivityLifecycleDispatcher);
    }

    /**
     * Delegates changing the background color to the {@link CustomTabHeightStrategy}.
     * Returns {@code true} if any action were taken, {@code false} if not.
     */
    public boolean changeBackgroundColorForResizing() {
        if (mCustomTabHeightStrategy == null) return false;

        return mCustomTabHeightStrategy.changeBackgroundColorForResizing();
    }
}


text:
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/linearLayout"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <TextView
        android:id="@+id/messageTextView"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="8dp"
        android:layout_marginLeft="8dp"
        android:layout_marginTop="8dp"
        android:layout_marginEnd="8dp"
        android:layout_marginRight="8dp"
        android:layout_marginBottom="8dp"
        android:gravity="center|center_horizontal"
        android:text="TextView"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <Button
        android:id="@+id/btnFragment1"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="8dp"
        android:layout_marginLeft="8dp"
        android:layout_marginTop="8dp"
        android:layout_marginEnd="8dp"
        android:layout_marginRight="8dp"
        android:text="Go To Fragment1"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/btnFragmentHome" />

    <Button
        android:id="@+id/btnFragmentHome"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="8dp"
        android:layout_marginLeft="8dp"
        android:layout_marginTop="8dp"
        android:layout_marginEnd="8dp"
        android:layout_marginRight="8dp"
        android:text="Go to Home"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/messageTextView" />

    <Button
        android:id="@+id/btnFragment2"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="8dp"
        android:layout_marginLeft="8dp"
        android:layout_marginTop="8dp"
        android:layout_marginEnd="8dp"
        android:layout_marginRight="8dp"
        android:text="Go To Fragment2"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/btnFragment1" />

    <Button
        android:id="@+id/btnFragment3"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="8dp"
        android:layout_marginLeft="8dp"
        android:layout_marginTop="8dp"
        android:layout_marginEnd="8dp"
        android:layout_marginRight="8dp"
        android:text="Go To Fragment3"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/btnFragment2" />

    <Button
        android:id="@+id/btnPopup"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="8dp"
        android:layout_marginLeft="8dp"
        android:layout_marginTop="8dp"
        android:layout_marginEnd="8dp"
        android:layout_marginRight="8dp"
        android:text="Pop to Home"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/btnFragment3" />
</androidx.constraintlayout.widget.ConstraintLayout>


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.example.android.BluetoothChat;

public final class R {
    public static final class attr {
    }
    public static final class drawable {
        public static final int app_icon=0x7f020000;
    }
    public static final class id {
        public static final int bar_X=0x7f060008;
        public static final int bar_Y=0x7f06000a;
        public static final int bar_Z=0x7f06000c;
        public static final int button_blueDown=0x7f060012;
        public static final int button_blueUp=0x7f060011;
        public static final int button_greenDown=0x7f060010;
        public static final int button_greenUp=0x7f06000f;
        public static final int button_redDown=0x7f06000e;
        public static final int button_redUp=0x7f06000d;
        public static final int button_request=0x7f060013;
        public static final int button_scan=0x7f060006;
        public static final int discoverable=0x7f060015;
        public static final int insecure_connect_scan=0x7f060014;
        public static final int lX=0x7f060007;
        public static final int lY=0x7f060009;
        public static final int lZ=0x7f06000b;
        public static final int new_devices=0x7f060005;
        public static final int paired_devices=0x7f060003;
        public static final int title_left_text=0x7f060000;
        public static final int title_new_devices=0x7f060004;
        public static final int title_paired_devices=0x7f060002;
        public static final int title_right_text=0x7f060001;
    }
    public static final class layout {
        public static final int custom_title=0x7f030000;
        public static final int device_list=0x7f030001;
        public static final int device_name=0x7f030002;
        public static final int main=0x7f030003;
        public static final int message=0x7f030004;
    }
    public static final class menu {
        public static final int option_menu=0x7f050000;
    }
    public static final class string {
        public static final int app_name=0x7f040000;
        public static final int bt_not_enabled_leaving=0x7f040003;
        public static final int button_scan=0x7f04000d;
        public static final int discoverable=0x7f040010;
        public static final int insecure_connect=0x7f04000f;
        public static final int none_found=0x7f04000a;
        public static final int none_paired=0x7f040009;
        public static final int not_connected=0x7f040002;
        /**   DeviceListActivity
         */
        public static final int scanning=0x7f040007;
        /**  Options Menu
         */
        public static final int secure_connect=0x7f04000e;
        public static final int select_device=0x7f040008;
        /**   BluetoothChat
         */
        public static final int send=0x7f040001;
        public static final int title_connected_to=0x7f040005;
        public static final int title_connecting=0x7f040004;
        public static final int title_not_connected=0x7f040006;
        public static final int title_other_devices=0x7f04000c;
        public static final int title_paired_devices=0x7f04000b;
    }
}


text:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

        <link rel="stylesheet" href="style.css" />
        <title>Clouseau - Java Session Inspector</title>

Clouseau - Java Session Inspector


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

    <com.shanbay.widget.IndicatorWrapper
        android:id="@id/indicator_wrapper"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:padding="0.0dip"
        app:drawable="@drawable/ic_spinner" >

        <ListView
            android:id="@id/broadcast_list"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:clipToPadding="false"
            android:divider="@android:color/transparent"
            android:dividerHeight="@dimen/height4"
            android:fadingEdge="none"
            android:footerDividersEnabled="false"
            android:paddingBottom="@dimen/padding10"
            android:paddingLeft="@dimen/broadcast_padding"
            android:paddingRight="@dimen/broadcast_padding"
            android:paddingTop="@dimen/new_feedback_padding_topbottom"
            android:scrollbarStyle="outsideOverlay" />
    </com.shanbay.widget.IndicatorWrapper>

</LinearLayout>


text:
export const makeBothArrayTheSameLength = (arrayA, arrayB) => {
  while (arrayA.length > arrayB.length) {
    arrayB.push(0);
  }
  while (arrayB.length > arrayA.length) {
    arrayA.push(0);
  }
};


text:
/**
 * ImageCreative.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
 */

package com.google.api.ads.dfp.v201302;

/**
 * A {@code Creative} that displays an image.
 */
public class ImageCreative  extends com.google.api.ads.dfp.v201302.BaseImageCreative  implements java.io.Serializable {
    /* Alternative text to be rendered along with the creative used
     * mainly for accessibility.
     *                     This field is optional and has a maximum length
     * of 500 characters. */
    private java.lang.String altText;

    /* An impression tracking URL to ping when this creative is displayed.
     * This field is optional has
     *                     a maximum length of 1024 characters. */
    private java.lang.String thirdPartyImpressionUrl;

    public ImageCreative() {
    }

    public ImageCreative(
           java.lang.Long advertiserId,
           java.lang.Long id,
           java.lang.String name,
           com.google.api.ads.dfp.v201302.Size size,
           java.lang.String previewUrl,
           com.google.api.ads.dfp.v201302.AppliedLabel[] appliedLabels,
           com.google.api.ads.dfp.v201302.DateTime lastModifiedDateTime,
           com.google.api.ads.dfp.v201302.BaseCustomFieldValue[] customFieldValues,
           java.lang.String creativeType,
           java.lang.String destinationUrl,
           java.lang.Boolean overrideSize,
           com.google.api.ads.dfp.v201302.CreativeAsset primaryImageAsset,
           java.lang.String altText,
           java.lang.String thirdPartyImpressionUrl) {
        super(
            advertiserId,
            id,
            name,
            size,
            previewUrl,
            appliedLabels,
            lastModifiedDateTime,
            customFieldValues,
            creativeType,
            destinationUrl,
            overrideSize,
            primaryImageAsset);
        this.altText = altText;
        this.thirdPartyImpressionUrl = thirdPartyImpressionUrl;
    }

    /**
     * Gets the altText value for this ImageCreative.
     *
     * @return altText   * Alternative text to be rendered along with the creative used
     * mainly for accessibility.
     *                     This field is optional and has a maximum length
     * of 500 characters.
     */
    public java.lang.String getAltText() {
        return altText;
    }

    /**
     * Sets the altText value for this ImageCreative.
     *
     * @param altText   * Alternative text to be rendered along with the creative used
     * mainly for accessibility.
     *                     This field is optional and has a maximum length
     * of 500 characters.
     */
    public void setAltText(java.lang.String altText) {
        this.altText = altText;
    }

    /**
     * Gets the thirdPartyImpressionUrl value for this ImageCreative.
     *
     * @return thirdPartyImpressionUrl   * An impression tracking URL to ping when this creative is displayed.
     * This field is optional has
     *                     a maximum length of 1024 characters.
     */
    public java.lang.String getThirdPartyImpressionUrl() {
        return thirdPartyImpressionUrl;
    }

    /**
     * Sets the thirdPartyImpressionUrl value for this ImageCreative.
     *
     * @param thirdPartyImpressionUrl   * An impression tracking URL to ping when this creative is displayed.
     * This field is optional has
     *                     a maximum length of 1024 characters.
     */
    public void setThirdPartyImpressionUrl(java.lang.String thirdPartyImpressionUrl) {
        this.thirdPartyImpressionUrl = thirdPartyImpressionUrl;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof ImageCreative)) return false;
        ImageCreative other = (ImageCreative) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = super.equals(obj) &&
            ((this.altText==null && other.getAltText()==null) ||
             (this.altText!=null &&
              this.altText.equals(other.getAltText()))) &&
            ((this.thirdPartyImpressionUrl==null && other.getThirdPartyImpressionUrl()==null) ||
             (this.thirdPartyImpressionUrl!=null &&
              this.thirdPartyImpressionUrl.equals(other.getThirdPartyImpressionUrl())));
        __equalsCalc = null;
        return _equals;
    }

    private boolean __hashCodeCalc = false;
    public synchronized int hashCode() {
        if (__hashCodeCalc) {
            return 0;
        }
        __hashCodeCalc = true;
        int _hashCode = super.hashCode();
        if (getAltText() != null) {
            _hashCode += getAltText().hashCode();
        }
        if (getThirdPartyImpressionUrl() != null) {
            _hashCode += getThirdPartyImpressionUrl().hashCode();
        }
        __hashCodeCalc = false;
        return _hashCode;
    }

    // Type metadata
    private static org.apache.axis.description.TypeDesc typeDesc =
        new org.apache.axis.description.TypeDesc(ImageCreative.class, true);

    static {
        typeDesc.setXmlType(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201302", "ImageCreative"));
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("altText");
        elemField.setXmlName(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201302", "altText"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("thirdPartyImpressionUrl");
        elemField.setXmlName(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201302", "thirdPartyImpressionUrl"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
    }

    /**
     * Return type metadata object
     */
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
        return typeDesc;
    }

    /**
     * Get Custom Serializer
     */
    public static org.apache.axis.encoding.Serializer getSerializer(
           java.lang.String mechType,
           java.lang.Class _javaType,
           javax.xml.namespace.QName _xmlType) {
        return
          new  org.apache.axis.encoding.ser.BeanSerializer(
            _javaType, _xmlType, typeDesc);
    }

    /**
     * Get Custom Deserializer
     */
    public static org.apache.axis.encoding.Deserializer getDeserializer(
           java.lang.String mechType,
           java.lang.Class _javaType,
           javax.xml.namespace.QName _xmlType) {
        return
          new  org.apache.axis.encoding.ser.BeanDeserializer(
            _javaType, _xmlType, typeDesc);
    }

}


text:
export * from './polls-mockup.service';
export * from './polls.service';
export * from './poll';