text:
namespace phi {

template <typename T, typename Context>
void MaskedSelectGradKernel(const Context& dev_ctx,
                            const DenseTensor& x,
                            const DenseTensor& mask,
                            const DenseTensor& out_grad,
                            DenseTensor* x_grad);

}  // namespace phi


text:
function updateTitleWithMainIP {
	ipFound="no"

	while read line
	do
		ip=$(networksetup -getinfo "$line" | grep "IP" | grep -v "IPv6" |  cut -f2- -d ':' | xargs)
		if [ -n "$ip" ]
		then
			if [[ "$ip" != "169.254.*" ]]
			then
				echo "hitp-title: $ip"
				echo "hitp-state: ok"
				echo "hitp-tooltip: Having an IP address don't mean you've Internet access"
				ipFound="yes"
				break
			fi
		fi
	done < <(networksetup -listnetworkserviceorder | grep "(\d)" | cut -f2- -d ' ')

	if [[ "$ipFound" == "no" ]]
	then
		echo "hitp-title: No IP Address"
		echo "hitp-state: error"
		echo "hitp-tooltip: Please, check your Ethernet or WiFi connection"
	fi
}
echo "hitp-enabled: NO"
updateTitleWithMainIP
echo "hitp-enabled: YES"

exit 0

redpajama_set_name: RedPajamaGithub


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

    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>statsmodels.regression.linear_model.OLSResults — statsmodels 0.9.0 documentation</title>
    <link rel="stylesheet" href="../_static/nature.css" type="text/css" />
    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />

    <link rel="shortcut icon" href="../_static/statsmodels_hybi_favico.ico"/>
    <link rel="author" title="About these documents" href="../about.html" />
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="statsmodels.regression.linear_model.OLSResults.HC0_se" href="statsmodels.regression.linear_model.OLSResults.HC0_se.html" />
    <link rel="prev" title="statsmodels.regression.linear_model.RegressionResults.wresid" href="statsmodels.regression.linear_model.RegressionResults.wresid.html" />
<link rel="stylesheet" href="../_static/examples.css" type="text/css" />
<link rel="stylesheet" href="../_static/facebox.css" type="text/css" />

Navigation

          index

          modules |

          next |

          previous |

Install
  |

Support
  |

Bugs
  |

Develop
  |

Examples
  |

FAQ
  |

Linear Regression |

statsmodels.regression.linear_model.OLSResults¶

class statsmodels.regression.linear_model.OLSResults(model, params, normalized_cov_params=None, scale=1.0, cov_type='nonrobust', cov_kwds=None, use_t=None, **kwargs)[source]¶

Results class for for an OLS model.

Most of the methods and attributes are inherited from RegressionResults.
The special methods that are only available for OLS are:

get_influence

outlier_test

el_test

conf_int_el

See also

RegressionResults

Methods

<colgroup>
<col width="10%" />
<col width="90%" />
</colgroup>

HC0_se()
See statsmodels.RegressionResults

HC1_se()
See statsmodels.RegressionResults

HC2_se()
See statsmodels.RegressionResults

HC3_se()
See statsmodels.RegressionResults

aic()

bic()

bse()

centered_tss()

compare_f_test(restricted)
use F test to test whether restricted model is correct

compare_lm_test(restricted[, demean, use_lr])
Use Lagrange Multiplier test to test whether restricted model is correct

compare_lr_test(restricted[, large_sample])
Likelihood ratio test to test whether restricted model is correct

condition_number()
Return condition number of exogenous matrix.

conf_int([alpha, cols])
Returns the confidence interval of the fitted parameters.

conf_int_el(param_num[, sig, upper_bound, …])
Computes the confidence interval for the parameter given by param_num using Empirical Likelihood

cov_HC0()
See statsmodels.RegressionResults

cov_HC1()
See statsmodels.RegressionResults

cov_HC2()
See statsmodels.RegressionResults

cov_HC3()
See statsmodels.RegressionResults

cov_params([r_matrix, column, scale, cov_p, …])
Returns the variance/covariance matrix.

eigenvals()
Return eigenvalues sorted in decreasing order.

el_test(b0_vals, param_nums[, …])
Tests single or joint hypotheses of the regression parameters using Empirical Likelihood.

ess()

f_pvalue()

f_test(r_matrix[, cov_p, scale, invcov])
Compute the F-test for a joint linear hypothesis.

fittedvalues()

fvalue()

get_influence()
get an instance of Influence with influence and outlier measures

get_prediction([exog, transform, weights, …])
compute prediction results

get_robustcov_results([cov_type, use_t])
create new results instance with robust covariance as default

initialize(model, params, **kwd)

llf()

load(fname)
load a pickle, (class method)

mse_model()

mse_resid()

mse_total()

nobs()

normalized_cov_params()

outlier_test([method, alpha, labels, order, …])
Test observations for outliers according to method

predict([exog, transform])
Call self.model.predict with self.params as the first argument.

pvalues()

remove_data()
remove data arrays, all nobs arrays from result and model

resid()

resid_pearson()
Residuals, normalized to have unit variance.

rsquared()

rsquared_adj()

save(fname[, remove_data])
save a pickle of this instance

scale()

ssr()

summary([yname, xname, title, alpha])
Summarize the Regression Results

summary2([yname, xname, title, alpha, …])
Experimental summary function to summarize the regression results

t_test(r_matrix[, cov_p, scale, use_t])
Compute a t-test for a each linear hypothesis of the form Rb = q

t_test_pairwise(term_name[, method, alpha, …])
perform pairwise t_test with multiple testing corrected p-values

tvalues()
Return the t-statistic for a given parameter estimate.

uncentered_tss()

wald_test(r_matrix[, cov_p, scale, invcov, …])
Compute a Wald-test for a joint linear hypothesis.

wald_test_terms([skip_single, …])
Compute a sequence of Wald tests for terms over multiple columns

wresid()

Attributes

<colgroup>
<col width="10%" />
<col width="90%" />
</colgroup>

use_t

Previous topic

statsmodels.regression.linear_model.RegressionResults.wresid

Next topic

statsmodels.regression.linear_model.OLSResults.HC0_se

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" />
      <input type="submit" value="Go" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>

        © Copyright 2009-2017, Josef Perktold, Skipper Seabold, Jonathan Taylor, statsmodels-developers.
      Created using Sphinx 1.7.4.


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" />
<link rel="stylesheet" type="text/css" href="portfolio.css">
<title>Assignment One</title>

<img src="http://www.trikonnect.com/images/Portfolio_banner.jpg" title="portfolio" height="250" align="middle"

Johnny James' Personal Portfolio

Home

Experience

Skills

About Me

My name is Johnny James Jr. and I am currently a senior at the Univeristy of Albany, majoring in information science with a minor in mathematics.  I was born and raised in Harlem, New York City.

From an early age I didn't really see myself wanting to be a tech guy but I always knew I have a knack for it since I built robots in school. As a young child I wanted to be a pediatrician - it was something about curing and treating kids, at that time my age, that attracted me to that field.  I later found out the amount of schooling needed and quickly switched over to an accountant.  Numbers, and math was my thing.  Then I went to business camp, and realized that wasn't really for me.  However, in that camp, I held a mock position of CTO for Netflix and absolutely loved it.

That led me to actually want to get more into computers.  When I got into UAlbany, my major was computer science for the first two years. I switched over to information science because programming was too tedious.  It took ours of coding to see results.  With web designing, you could see progress within minutes.  That is what attracted me in the first place and why I am still striving for it.


text:
<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<title>登录页面 </title>
		<meta name="keywords" content="" />
		<meta name="description" content="" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />

		<!-- basic styles -->

		<link href="${static_css_uri}/bootstrap.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="${static_css_uri}/font-awesome.min.css" />

		<!--[if IE 7]>
		  <link rel="stylesheet" href="${static_css_uri}/font-awesome-ie7.min.css" />
		<![endif]-->

		<!-- page specific plugin styles -->

		<script src="${static_js_uri}/ace-extra.min.js"></script>
		<!-- ace styles -->

		<link rel="stylesheet" href="${static_css_uri}/ace.min.css" />
		<link rel="stylesheet" href="${static_css_uri}/ace-rtl.min.css" />

		<!--[if lte IE 8]>
		  <link rel="stylesheet" href="${static_css_uri}/ace-ie.min.css" />
		<![endif]-->

		<!-- inline styles related to this page -->

		<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->

		<!--[if lt IE 9]>
		<script src="${static_js_uri}/html5shiv.js"></script>
		<script src="${static_js_uri}/respond.min.js"></script>
		<![endif]-->
	</head>


text:
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<string name="autofill_clear_local_copy_button">"Kopie wissen"</string>
<string name="autofill_cc_amex">"American Express"</string>
<string name="autofill_cc_diners">"Diners Club"</string>
<string name="autofill_cc_discover">"Discover"</string>
<string name="autofill_cc_jcb">"JCB"</string>
<string name="autofill_cc_mastercard">"Mastercard"</string>
<string name="autofill_cc_mir">"Mir"</string>
<string name="autofill_cc_union_pay">"China UnionPay"</string>
<string name="autofill_cc_visa">"Visa"</string>
<string name="autofill_address_summary_separator">", "</string>
<string name="autofill_scan_credit_card">"Nieuwe kaart scannen"</string>
<string name="autofill_card_unmask_prompt_error_try_again_cvc">"Controleer je CVC-code en probeer het opnieuw"</string>
<string name="autofill_card_unmask_prompt_error_try_again_expiration_date">"Controleer de vervaldatum en probeer het opnieuw"</string>
<string name="autofill_card_unmask_prompt_error_try_again_cvc_and_expiration">"Controleer je vervaldatum en CVC-code en probeer het opnieuw"</string>
<string name="autofill_card_unmask_prompt_error_try_again_expiration_month">"Controleer de vervalmaand en probeer het opnieuw"</string>
<string name="autofill_card_unmask_prompt_error_try_again_expiration_year">"Controleer het vervaljaar en probeer het opnieuw"</string>
<string name="autofill_card_unmask_prompt_storage_checkbox">"Een exemplaar van deze kaart op dit apparaat bewaren"</string>
<string name="autofill_card_unmask_prompt_storage_tooltip">"Als deze optie is aangevinkt, bewaart Chromium een exemplaar van je kaart op dit apparaat om formulieren sneller te kunnen invullen."</string>
<string name="autofill_card_unmask_verification_in_progress">"Creditcard bevestigen"</string>
<string name="autofill_card_unmask_verification_success">"Je creditcard is bevestigd"</string>
<string name="autofill_card_unmask_expiration_date_separator">"/"</string>
<string name="autofill_card_unmask_new_card_link">"Nieuwe kaart?"</string>
<string name="http_post_warning">"De pagina die je zoekt, heeft informatie gebruikt die je hebt opgegeven Als je terugkeert naar deze pagina, worden acties die je hebt uitgevoerd, mogelijk herhaald. Wil je doorgaan?"</string>
<string name="http_post_warning_resend">"Doorgaan"</string>
<string name="login_dialog_title">"Verificatie vereist"</string>
<string name="login_dialog_username_field">"Gebruikersnaam:"</string>
<string name="login_dialog_password_field">"Wachtwoord:"</string>
<string name="login_dialog_ok_button_label">"Inloggen"</string>
<string name="sad_tab_title">"Helaas."</string>
<string name="sad_tab_message">"Er is iets misgegaan met het weergeven van deze webpagina."</string>
<string name="sad_tab_oom_message">"Chromium beschikt over onvoldoende geheugen om deze webpagina weer te geven."</string>
<string name="sad_tab_reload_label">"Opnieuw laden"</string>
<string name="sad_tab_send_feedback_label">"Feedback verzenden"</string>
<string name="sad_tab_reload_title">"Kan deze pagina niet openen"</string>
<string name="sad_tab_oom_message_tabs">"Probeer andere tabbladen en programma\'s te sluiten om geheugen vrij te maken."</string>
<string name="sad_tab_oom_message_notabs">"Probeer andere programma\'s af te sluiten om geheugen vrij te maken."</string>
<string name="sad_tab_reload_try">"Probeer de volgende tips:"</string>
<string name="sad_tab_reload_incognito">"De pagina openen in de incognitomodus"</string>
<string name="sad_tab_reload_close_notabs">"Andere apps sluiten"</string>
<string name="sad_tab_reload_restart_browser">"Chromium opnieuw starten"</string>
<string name="sad_tab_reload_restart_device">"Je apparaat opnieuw opstarten"</string>
<string name="sad_tab_reload_learn_more">"Learn more"</string>
<string name="sad_tab_uma_optin">"Automatisch gebruiksstatistieken en crashrapporten naar Google verzenden"</string>
<string name="new_tab_otr_title">"Je bent incognito"</string>
<string name="new_tab_otr_subtitle">"Je kunt nu privé browsen, zodat andere mensen die dit apparaat gebruiken, jouw activiteit niet kunnen zien. Downloads en bladwijzers worden echter wel opgeslagen."</string>
<string name="new_tab_otr_not_saved">"De volgende gegevens worden niet opgeslagen in Chrome:

Je browsegeschiedenis

Cookies en sitegegevens

Informatie die is opgegeven in formulieren

"</string>
<string name="new_tab_otr_visible">"Je activiteit is mogelijk nog wel zichtbaar voor:

Websites die je bezoekt

Je werkgever of school

Je internetprovider

"</string>
<string name="snippets_disabled_signed_out_instructions">"Log in bij Chrome om suggesties met gepersonaliseerde content van Google te ontvangen."</string>
<string name="snippets_disabled_generic_prompt">"Gepersonaliseerde content ontvangen"</string>
<string name="ntp_title_no_suggestions">"Dat is voorlopig alles"</string>
<string name="page_info_permission_subresource_filter_subtitle">"Subresource filter activated"</string>
<string name="payments_name_field_in_contact_details">"Naam"</string>
<string name="payments_save_card_to_device_checkbox">"Deze creditcard opslaan op dit apparaat"</string>
<string name="payments_accepted_cards_label">"Geaccepteerde kaarten"</string>
<string name="payments_method_of_payment_label">"Betaalmethode"</string>
<string name="payments_contact_details_label">"Contactgegevens"</string>
<string name="payments_add_contact_details_label">"Contactgegevens toevoegen"</string>
<string name="payments_edit_contact_details_label">"Contactgegevens bewerken"</string>
<string name="payments_add_card_label">"Kaart toevoegen"</string>
<string name="payments_add_billing_address">"Factuuradres toevoegen"</string>
<string name="payments_add_name_on_card">"Naam op kaart toevoegen"</string>
<string name="payments_add_valid_card_number">"Een geldig kaartnummer toevoegen"</string>
<string name="payments_add_more_information">"Meer informatie toevoegen"</string>
<string name="payments_edit_card">"Kaart bewerken"</string>
<string name="payments_credit_card_expiration_date_abbr">"Verloopt: %1$s/%2$s"</string>
<string name="payments_add_phone_number">"Telnr. toevoegen"</string>
<string name="payments_add_recipient">"Voeg naam toe"</string>
<string name="payments_add_valid_address">"Voeg een geldig adres toe"</string>
<string name="payments_add_email">"E-mailadres toevoegen"</string>
<string name="payments_add_name">"Voeg naam toe"</string>
<string name="payments_order_summary_label">"Besteloverzicht"</string>
<string name="payments_edit_button">"Bewerken"</string>
<string name="payments_pay_button">"Betalen"</string>
<string name="payments_loading_message">"Laden"</string>
<string name="payments_processing_message">"Verwerken"</string>
<string name="payments_error_message">"Er is een fout opgetreden bij het verwerken van je bestelling. Probeer het opnieuw."</string>
<string name="payments_add_contact">"Contactgegevens toevoegen"</string>
<string name="payments_add_card">"Kaart toevoegen"</string>
<string name="payments_add_address">"Adres toevoegen"</string>
<string name="payments_edit_address">"Adres bewerken"</string>
<string name="payments_checking_option">"Controleren"</string>
<string name="payments_updated_label">"Bijgewerkt"</string>
<string name="payments_card_and_address_settings">"Je kunt kaarten en adressen beheren in BEGIN_LINKInstellingenEND_LINK."</string>
<string name="payments_card_and_address_settings_signed_in">"Kaarten en adressen zijn afkomstig uit Chrome en je Google-account (%1$s). Je kunt ze beheren in BEGIN_LINKInstellingenEND_LINK."</string>
<string name="payments_card_and_address_settings_signed_out">"Kaarten en adressen zijn afkomstig uit Chrome. Je kunt ze beheren in BEGIN_LINKInstellingenEND_LINK."</string>
<string name="payments_required_field_message">"* Verplicht veld"</string>
<string name="payments_field_required_validation_message">"Verplicht veld"</string>
<string name="payments_phone_invalid_validation_message">"Geef een geldig telefoonnummer op"</string>
<string name="payments_email_invalid_validation_message">"Geef een geldig e-mailadres op"</string>
<string name="payments_card_number_invalid_validation_message">"Geef een geldig kaartnummer op"</string>
<string name="payments_card_expiration_invalid_validation_message">"Geef een geldige vervaldatum op"</string>
<string name="payments_billing_address_required">"Factuuradres vereist"</string>
<string name="payments_name_on_card_required">"Naam kaarthouder vereist"</string>
<string name="payments_card_billing_address_required">"Card billing address required"</string>
<string name="payments_more_information_required">"Meer informatie vereist"</string>
<string name="payments_phone_number_required">"Telefoonnummer vereist"</string>
<string name="payments_recipient_required">"Naam vereist"</string>
<string name="payments_invalid_address">"Geef een geldig adres op"</string>
<string name="payments_email_required">"E-mailadres vereist"</string>
<string name="payments_name_required">"Naam vereist"</string>
<string name="payments_shipping_summary_label">"Verzendadres"</string>
<string name="payments_shipping_address_label">"Verzendadres"</string>
<string name="payments_shipping_option_label">"Verzendmethode"</string>
<string name="payments_select_shipping_address_for_shipping_methods">"Selecteer een adres om verzendmethoden en vereisten te bekijken"</string>
<string name="payments_unsupported_shipping_address">"Kan niet verzenden naar dit adres. Selecteer een ander adres."</string>
<string name="payments_unsupported_shipping_option">"Deze verzendmethode is niet beschikbaar. Kies een andere methode."</string>
<string name="payments_delivery_summary_label">"Bezorging"</string>
<string name="payments_delivery_address_label">"Afleveradres"</string>
<string name="payments_delivery_option_label">"Bezorgingsmethode"</string>
<string name="payments_select_delivery_address_for_delivery_methods">"Selecteer een adres om bezorgingsmethoden en vereisten te bekijken"</string>
<string name="payments_unsupported_delivery_address">"Kan niet bezorgen op dit adres. Selecteer een ander adres."</string>
<string name="payments_unsupported_delivery_option">"Deze bezorgingsmethode is niet beschikbaar. Kies een andere methode."</string>
<string name="payments_pickup_summary_label">"Ophaaltijd"</string>
<string name="payments_pickup_address_label">"Ophaaladres"</string>
<string name="payments_pickup_option_label">"Ophaalmethode"</string>
<string name="payments_select_pickup_address_for_pickup_methods">"Selecteer een adres om ophaalmethoden en vereisten te bekijken"</string>
<string name="payments_unsupported_pickup_address">"Kan niet ophalen van dit adres. Selecteer een ander adres."</string>
<string name="payments_unsupported_pickup_option">"Deze ophaalmethode is niet beschikbaar. Kies een andere methode."</string>
<string name="payments_android_app_error">"Kan betaal-app niet openen"</string>
<string name="external_payment_app_leave_incognito_warning">"Je verlaat de incognitomodus om te betalen via een externe app. Doorgaan?"</string>
<string name="color_picker_button_more">"Meer"</string>
<string name="color_picker_hue">"Kleurtoon"</string>
<string name="color_picker_saturation">"Verzadiging"</string>
<string name="color_picker_value">"Waarde"</string>
<string name="color_picker_button_set">"Instellen"</string>
<string name="color_picker_button_cancel">"Annuleren"</string>
<string name="color_picker_dialog_title">"Kleur selecteren"</string>
<string name="color_picker_button_red">"Rood"</string>
<string name="color_picker_button_cyan">"Cyaan"</string>
<string name="color_picker_button_blue">"Blauw"</string>
<string name="color_picker_button_green">"Groen"</string>
<string name="color_picker_button_magenta">"Magenta"</string>
<string name="color_picker_button_yellow">"Geel"</string>
<string name="color_picker_button_black">"Zwart"</string>
<string name="color_picker_button_white">"Wit"</string>
<string name="choose">"Kiezen"</string>
</resources>


text:
package com.ordus.wiseviewer.domain;

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

public class Station {

    private String name;
    private String image;
    private String url;
    private String referer;
    private String subtitle;
    private String info;
    private Boolean isHost;
    private Boolean parental;
    private Map<String, Object> additionalProperties = new HashMap<>();

    /**
     * @return The name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name The name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return The image
     */
    public String getImage() {
        return image;
    }

    /**
     * @param image The image
     */
    public void setImage(String image) {
        this.image = image;
    }

    /**
     * @return The url
     */
    public String getUrl() {
        return url;
    }

    /**
     * @param url The url
     */
    public void setUrl(String url) {
        this.url = url;
    }

    public String getReferer() {
        return referer;
    }

    public void setReferer(String referer) {
        this.referer = referer;
    }

    public String getSubtitle() {
        return subtitle;
    }

    public void setSubtitle(String subtitle) {
        this.subtitle = subtitle;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    /**
     * @return The isHost
     */
    public Boolean getIsHost() {
        return isHost;
    }

    /**
     * @param isHost The isHost
     */
    public void setIsHost(Boolean isHost) {
        this.isHost = isHost;
    }

    public Boolean getParental() {
        return parental;
    }

    public void setParental(Boolean parental) {
        this.parental = parental;
    }

    public Map<String, Object> getAdditionalProperties() {
        return this.additionalProperties;
    }

    public void setAdditionalProperties(Map<String, Object> additionalProperties) {
        this.additionalProperties = additionalProperties;
    }

    public void setAdditionalProperty(String name, Object value) {
        this.additionalProperties.put(name, value);
    }

    @Override public String toString() {
        return "Station{" +
                "name='" + name + '\'' +
                ", image='" + image + '\'' +
                ", url='" + url + '\'' +
                ", referer='" + referer + '\'' +
                ", subtitle='" + subtitle + '\'' +
                ", info='" + info +'\'' +
                ", isHost=" + isHost +
                ", parental=" + parental +
                ", additionalProperties=" + additionalProperties +
                '}';
    }
}


text:
package web

import (
	"crypto/x509"
	"encoding/json"
	"fmt"
	"io"
	"net"
	"net/http"
	"net/http/httptest"
	"net/url"
	"os/exec"
	"runtime"
	"strings"
	"time"

	log "github.com/Sirupsen/logrus"
	"github.com/gravitational/roundtrip"
	"github.com/gravitational/trace"
	"github.com/mailgun/lemma/secret"

	"github.com/tstranex/u2f"
)

const (
	// HTTPS is https prefix
	HTTPS = "https"
	// WSS is secure web sockets prefix
	WSS = "wss"
)

type sealData struct {
	Value []byte `json:"value"`
	Nonce []byte `json:"nonce"`
}

// SSHAgentOIDCLogin is used by SSH Agent to login using OpenID connect
func SSHAgentOIDCLogin(proxyAddr, connectorID string, pubKey []byte, ttl time.Duration, insecure bool, pool *x509.CertPool) (*SSHLoginResponse, error) {
	clt, proxyURL, err := initClient(proxyAddr, insecure, pool)
	if err != nil {
		return nil, trace.Wrap(err)
	}

	// create one time encoding secret that we will use to verify
	// callback from proxy that is received over untrusted channel (HTTP)
	keyBytes, err := secret.NewKey()
	if err != nil {
		return nil, trace.Wrap(err)
	}

	decryptor, err := secret.New(&secret.Config{KeyBytes: keyBytes})
	if err != nil {
		return nil, trace.Wrap(err)
	}

	waitC := make(chan *SSHLoginResponse, 1)
	errorC := make(chan error, 1)
	proxyURL.Path = "/web/msg/error/login_failed"
	redirectErrorURL := proxyURL.String()
	proxyURL.Path = "/web/msg/info/login_success"
	redirectSuccessURL := proxyURL.String()

	makeHandler := func(fn func(http.ResponseWriter, *http.Request) (*SSHLoginResponse, error)) http.Handler {
		return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
			response, err := fn(w, r)
			if err != nil {
				if trace.IsNotFound(err) {
					http.NotFound(w, r)
					return
				}
				errorC <- err
				http.Redirect(w, r, redirectErrorURL, http.StatusFound)
				return
			}
			waitC <- response
			http.Redirect(w, r, redirectSuccessURL, http.StatusFound)
		})
	}

	server := httptest.NewServer(makeHandler(func(w http.ResponseWriter, r *http.Request) (*SSHLoginResponse, error) {
		if r.URL.Path != "/callback" {
			return nil, trace.NotFound("path not found")
		}
		encrypted := r.URL.Query().Get("response")
		if encrypted == "" {
			return nil, trace.BadParameter("missing required query parameters in %v", r.URL.String())
		}

		var encryptedData *secret.SealedBytes
		err := json.Unmarshal([]byte(encrypted), &encryptedData)
		if err != nil {
			return nil, trace.BadParameter("failed to decode response in %v", r.URL.String())
		}

		out, err := decryptor.Open(encryptedData)
		if err != nil {
			return nil, trace.BadParameter("failed to decode response: in %v, err: %v", r.URL.String(), err)
		}

		var re *SSHLoginResponse
		err = json.Unmarshal([]byte(out), &re)
		if err != nil {
			return nil, trace.BadParameter("failed to decode response: in %v, err: %v", r.URL.String(), err)
		}
		return re, nil
	}))
	defer server.Close()

	u, err := url.Parse(server.URL + "/callback")
	if err != nil {
		return nil, trace.Wrap(err)
	}
	query := u.Query()
	query.Set("secret", secret.KeyToEncodedString(keyBytes))
	u.RawQuery = query.Encode()

	out, err := clt.PostJSON(clt.Endpoint("webapi", "oidc", "login", "console"), oidcLoginConsoleReq{
		RedirectURL: u.String(),
		PublicKey:   pubKey,
		CertTTL:     ttl,
		ConnectorID: connectorID,
	})
	if err != nil {
		return nil, trace.Wrap(err)
	}

	var re *oidcLoginConsoleResponse
	err = json.Unmarshal(out.Bytes(), &re)
	if err != nil {
		return nil, trace.Wrap(err)
	}

	fmt.Printf("If browser window does not open automatically, open it by clicking on the link:\n %v\n", re.RedirectURL)

	var command = "sensible-browser"
	if runtime.GOOS == "darwin" {
		command = "open"
	}
	path, err := exec.LookPath(command)
	if err == nil {
		exec.Command(path, re.RedirectURL).Start()
	}

	log.Infof("waiting for response on %v", server.URL)

	select {
	case err := <-errorC:
		log.Debugf("got error: %v", err)
		return nil, trace.Wrap(err)
	case response := <-waitC:
		log.Debugf("got response")
		return response, nil
	case <-time.After(60 * time.Second):
		log.Debugf("got timeout waiting for callback")
		return nil, trace.Wrap(trace.Errorf("timeout waiting for callback"))
	}

}

// Ping is used to validate HTTPS endpoing of Teleport proxy. This leads to better
// user experience: they get connection errors before being asked for passwords
func Ping(proxyAddr string, insecure bool, pool *x509.CertPool) error {
	clt, _, err := initClient(proxyAddr, insecure, pool)
	if err != nil {
		return trace.Wrap(err)
	}
	_, err = clt.Get(clt.Endpoint("webapi"), url.Values{})
	if err != nil {
		return trace.Wrap(err)
	}
	return nil
}

// SSHAgentLogin issues call to web proxy and receives temp certificate
// if credentials are valid
//
// proxyAddr must be specified as host:port
func SSHAgentLogin(proxyAddr, user, password, hotpToken string, pubKey []byte, ttl time.Duration, insecure bool, pool *x509.CertPool) (*SSHLoginResponse, error) {
	clt, _, err := initClient(proxyAddr, insecure, pool)
	if err != nil {
		return nil, trace.Wrap(err)
	}
	re, err := clt.PostJSON(clt.Endpoint("webapi", "ssh", "certs"), createSSHCertReq{
		User:      user,
		Password:  password,
		HOTPToken: hotpToken,
		PubKey:    pubKey,
		TTL:       ttl,
	})
	if err != nil {
		return nil, trace.Wrap(err)
	}

	var out *SSHLoginResponse
	err = json.Unmarshal(re.Bytes(), &out)
	if err != nil {
		return nil, trace.Wrap(err)
	}

	return out, nil
}

// SSHAgentU2FLogin requests a U2F sign request (authentication challenge) via the proxy.
// If the credentials are valid, the proxy wiil return a challenge.
// We then call the official u2f-host binary to perform the signing and pass the signature to the proxy.
// If the authentication succeeds, we will get a temporary certificate back
func SSHAgentU2FLogin(proxyAddr, user, password string, pubKey []byte, ttl time.Duration, insecure bool, pool *x509.CertPool) (*SSHLoginResponse, error) {
	clt, _, err := initClient(proxyAddr, insecure, pool)
	if err != nil {
		return nil, trace.Wrap(err)
	}

	u2fSignRequest, err := clt.PostJSON(clt.Endpoint("webapi", "u2f", "signrequest"), u2fSignRequestReq{
		User: user,
		Pass: password,
	})
	if err != nil {
		return nil, trace.Wrap(err)
	}

	// Pass the JSON-encoded data undecoded to the u2f-host binary
	facet := "https://" + strings.ToLower(proxyAddr)
	cmd := exec.Command("u2f-host", "-aauthenticate", "-o", facet)
	stdin, err := cmd.StdinPipe()
	if err != nil {
		return nil, trace.Wrap(err)
	}
	stdout, err := cmd.StdoutPipe()
	if err != nil {
		return nil, trace.Wrap(err)
	}
	stderr, err := cmd.StderrPipe()
	if err != nil {
		return nil, trace.Wrap(err)
	}

	cmd.Start()
	stdin.Write(u2fSignRequest.Bytes())
	stdin.Close()
	fmt.Println("Please press the button on your U2F key")

	// The origin URL is passed back base64-encoded and the keyHandle is passed back as is.
	// A very long proxy hostname or keyHandle can overflow a fixed-size buffer.
	signResponseLen := 500 + len(u2fSignRequest.Bytes()) + len(proxyAddr)*4/3
	signResponseBuf := make([]byte, signResponseLen)
	signResponseLen, err = io.ReadFull(stdout, signResponseBuf)
	// unexpected EOF means we have read the data completely.
	if err == nil {
		return nil, trace.LimitExceeded("u2f sign response exceeded buffer size")
	}

	// Read error message (if any). 100 bytes is more than enough for any error message u2f-host outputs
	errMsgBuf := make([]byte, 100)
	errMsgLen, err := io.ReadFull(stderr, errMsgBuf)
	if err == nil {
		return nil, trace.LimitExceeded("u2f error message exceeded buffer size")
	}

	err = cmd.Wait()
	if err != nil {
		return nil, trace.AccessDenied("u2f-host returned error: " + string(errMsgBuf[:errMsgLen]))
	} else if signResponseLen == 0 {
		return nil, trace.NotFound("u2f-host returned no error and no sign response")
	}

	var u2fSignResponse *u2f.SignResponse
	err = json.Unmarshal(signResponseBuf[:signResponseLen], &u2fSignResponse)
	if err != nil {
		return nil, trace.Wrap(err)
	}

	re, err := clt.PostJSON(clt.Endpoint("webapi", "u2f", "certs"), createSSHCertWithU2FReq{
		User:            user,
		U2FSignResponse: *u2fSignResponse,
		PubKey:          pubKey,
		TTL:             ttl,
	})
	if err != nil {
		return nil, trace.Wrap(err)
	}

	var out *SSHLoginResponse
	err = json.Unmarshal(re.Bytes(), &out)
	if err != nil {
		return nil, trace.Wrap(err)
	}

	return out, nil
}

// initClient creates and initializes HTTPS client for talking to teleport proxy HTTPS
// endpoint.
func initClient(proxyAddr string, insecure bool, pool *x509.CertPool) (*webClient, *url.URL, error) {
	log.Debugf("HTTPS client init(insecure=%v)", insecure)

	// validate proxyAddr:
	host, port, err := net.SplitHostPort(proxyAddr)
	if err != nil || host == "" || port == "" {
		if err != nil {
			log.Error(err)
		}
		return nil, nil, trace.BadParameter("'%v' is not a valid proxy address", proxyAddr)
	}
	proxyAddr = "https://" + net.JoinHostPort(host, port)
	u, err := url.Parse(proxyAddr)
	if err != nil {
		return nil, nil, trace.BadParameter("'%v' is not a valid proxy address", proxyAddr)
	}

	var opts []roundtrip.ClientParam

	if insecure {
		// skip https cert verification, oh no!
		fmt.Printf("WARNING: You are using insecure connection to SSH proxy %v\n", proxyAddr)
		opts = append(opts, roundtrip.HTTPClient(newInsecureClient()))
	} else if pool != nil {
		// use custom set of trusted CAs
		opts = append(opts, roundtrip.HTTPClient(newClientWithPool(pool)))
	}

	clt, err := newWebClient(proxyAddr, opts...)
	if err != nil {
		return nil, nil, trace.Wrap(err)
	}
	return clt, u, nil
}


text:
package org.simplity.rule;

import org.simplity.rule.InvalidRuleException;
/**
 * generated class for rule set itr1
 * generated at 2019-04-09T19:18:40Z
 **/
public class Itr1 extends AbstractCalculator {
	private static final String[] GLOBALS = {"incomeFromHouseProperty", "houseValueAfterStandardDeduction", "assesseeCategory"};
	private static final int NBR_GLOBALS = 3;
	private static final long[] C = {0, 0, 0, 0, 0, 0, 150000, 140000, 0, 0, 0, 0, 0, 0, 0, 0, 50000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 200000, 0, 0, 0};

	private static final String[] CONSTANTS = {"deductedMeedicalExpense", "deducted80ddbType", "IncomeAfterDeduction", "educationalCess", "deducted80ee", "deducted80gg", "max80c", "max80ccd2", "lateFilingFee", "deducted80ccd1b", "deducted80tta", "balancePayable", "deducted80ddb", "deducted80rrb", "totalTaxPlusInterest", "totalInterest", "max80ccd1b", "deducted80ccdEmployer", "totalTaxPayable", "deductedPreventiveExpense", "deducted80g", "interest234c", "deducted80ccdEmployee", "taxPayableAfterRebate", "interest234b", "interest234a", "totalDeducted", "totalPaid", "maxHousingInterestForSenior", "deducted80ddType", "deducted80e", "taxPayableWithCess", "deducted80dd", "refundDue", "deductedHealthInsurance", "grossTotalIncome", "deducted80gga", "deducted80u", "deducted80ccc", "deducted80ggc", "maxHousingInterestForNonSenior", "deducted80qqb", "netTaxLiability", "deducted80ccg"};
	private static final String[] INPUTS = {"age", "gender", "employerCategory", "PortugeseSectionApplicable", "salary", "allowanceNonExempt", "perquisite", "profitDeemedAsSalary", "deduction16", "housePropertyType", "rentReceived", "proprtyTaxPaid", "annualRentalValue", "interestOnHousingLoan", "otherIncome", "deduction80c", "deduction80ccc", "deduction80ccdEmployee", "deduction80ccd1b", "deduction80ccdEmployer", "deductionHealthInsuranceType", "deductionHealthInsurance", "deductionMedicalExpenseType", "deductionMeedicalExpense", "deductionPreventiveExpenseType", "deductionPreventiveExpense", "deduction80ddType", "deduction80dd", "deduction80ddbType", "deduction80ddb", "deduction80e", "deduction80ee", "deduction80g", "deduction80gg", "deduction80gga", "deduction80ggc", "deduction80u", "deduction80rrb", "deduction80qqb", "deduction80ccg", "deduction80tta", "rebate87a", "section89", "tdsPaid", "tcsPaid", "selfAssessmentPaid"};
	private static final String[] OUTPUTS = {"grossTotalIncome", "houseValueAfterStandardDeduction", "incomeFromHouseProperty", "deducted80ccc", "deducted80ccdEmployee", "deducted80ccd1b", "deducted80ccdEmployer", "deductedHealthInsurance", "deductedMeedicalExpense", "deductedPreventiveExpense", "deducted80ddType", "deducted80dd", "deducted80ddbType", "deducted80ddb", "deducted80e", "deducted80ee", "deducted80g", "deducted80gg", "deducted80gga", "deducted80ggc", "deducted80u", "deducted80rrb", "deducted80qqb", "deducted80ccg", "deducted80tta", "totalDeducted", "IncomeAfterDeduction", "totalTaxPayable", "taxPayableAfterRebate", "educationalCess", "taxPayableWithCess", "netTaxLiability", "lateFilingFee", "interest234a", "interest234b", "interest234c", "totalInterest", "totalTaxPlusInterest", "totalPaid", "balancePayable", "refundDue"};
	@Override
	public String[] getInputParameters(){
		return INPUTS;
	}
	@Override
	public String[] getOutputParameters(){
		return OUTPUTS;
	}
	@Override
	public String[] getConstants(){
		return CONSTANTS;
	}
	@Override
	public String[] getGlobalParameters(){
		return GLOBALS;
	}
	@Override
	public long[] getConstantValues(){
		return C;
	}
	@Override
	protected void init(long[] constValues, long[]inputValues){
		this.cVal = constValues;
		this.iVal = inputValues;
		this.gVal = new long[NBR_GLOBALS];
		this.isReady = new boolean[NBR_GLOBALS];
		this.isLooping = new boolean[NBR_GLOBALS];
	}
	@Override
	public long[] doCalculate(long[] inp) throws InvalidRuleException{
		this.init(C, inp);
		long[] _r = {0, this.f1(), this.f0(), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
		return _r;
	}

	private  void calced(int idx){
		this.isReady[idx] = true;
		this.isLooping[idx] = false;
	}
	private  long f0() throws InvalidRuleException{
		if (this.isReady[0]){
			return this.gVal[0];
		}
		if (this.isLooping[0]){
			throw new InvalidRuleException("Rule for calculating incomeFromHouseProperty is recursively dependant on itself. This leads to infinite loop.");
		}
		this.isLooping[0] = true;
		long _r = 0;
		long _maxInterest = 0;
		if(this.f2() == 2 || this.f2() == 3){
			_maxInterest = this.cVal[28];
		} else {
			_maxInterest = this.cVal[40];
		}
		long _self = 0;
		if(this.iVal[9] != 0){
			_self = 0;
		} else if(this.iVal[13] > _maxInterest){
			_self = -_maxInterest;
		} else {
			_self = -this.iVal[13];
		}
		long _rented = 0;
		if(this.iVal[9] != 1){
			_rented = 0;
		} else if(this.iVal[12] <= this.iVal[11]){
			_rented = 0;
		} else {
			_rented = this.f1() - this.iVal[13];
		}
		if(this.iVal[9] != 0){
			_r = _self;
		} else {
			_r = _rented;
		}
		this.gVal[0] = _r;
		this.calced(0);
		return _r;
	}
	private  long f1() throws InvalidRuleException{
		if (this.isReady[1]){
			return this.gVal[1];
		}
		if (this.isLooping[1]){
			throw new InvalidRuleException("Rule for calculating houseValueAfterStandardDeduction is recursively dependant on itself. This leads to infinite loop.");
		}
		this.isLooping[1] = true;
		long _r = 0;
		if(this.iVal[9] != 1){
			_r = 0;
		} else if(this.iVal[12] <= this.iVal[11]){
			_r = 0;
		} else {
			_r = ((this.iVal[12] - this.iVal[11]) * 7) / 10;
		}
		this.gVal[1] = _r;
		this.calced(1);
		return _r;
	}
	private  long f2() throws InvalidRuleException{
		if (this.isReady[2]){
			return this.gVal[2];
		}
		if (this.isLooping[2]){
			throw new InvalidRuleException("Rule for calculating assesseeCategory is recursively dependant on itself. This leads to infinite loop.");
		}
		this.isLooping[2] = true;
		long _r = 0;
		if(this.iVal[0] > 79){
			_r = 3;
		} else if(this.iVal[0] > 59){
			_r = 2;
		} else if(this.iVal[1] == 0){
			_r = 0;
		} else {
			_r = 1;
		}
		this.gVal[2] = _r;
		this.calced(2);
		return _r;
	}
}


text:
/*********************************************************************
 * Maxeler Technologies: BrainNetwork                                *
 *                                                                   *
 * Version: 1.2                                                      *
 * Date:    05 July 2013                                             *
 *                                                                   *
 * DFE code source file                                              *
 *                                                                   *
 *********************************************************************/

package com.maxeler.publicdemos.brainnetwork;

import com.maxeler.maxcompiler.v2.build.EngineParameters;
import com.maxeler.maxcompiler.v2.managers.DFEModel;

/**
 * Parameters that control the hardware build.
 *

Notes

 *

 *
 Builds have been created successfully for 8 and 12 pipes on Maia and Coria.

 *
 If the "window" size is changed from the default 30, then
 *      the BrainNetworkGUI code will need to be modified accordingly.

 *
 The "enableECC" parameter must be set to true for Maia builds.

 *

 */
public class BrainNetworkParams extends EngineParameters {

	//Constructor
	public BrainNetworkParams(String[] args) {
		super(args);
	}

	//Get methods for reading the various parameters
	public int getNumPipes() {
		return getParam("numPipes");
	}

	public int getFrequency() {
		return getParam("frequency");
	}

	public int getWindow() {
		return getParam("window");
	}

	public boolean isSimulation() {
		return getParam("target") == Target.DFE_SIM;
	}

	public boolean enableECC() {
		return getParam("enableECC");
	}

	public String getSuffix() {
		return getParam("suffix");
	}

	public int getCENumPartitions() {
		return getParam("ceNumPartitions");
	}

	//Implement abstract method to declare the various parame
	@Override
	protected void declarations() {
		declareParam("target",          Target.class,           Target.DFE);
		declareParam("DFEModel",        DataType.DFEMODEL,      DFEModel.VECTIS);
		declareParam("maxFileName",     DataType.STRING,        "BrainNetwork");
		declareParam("numPipes",        DataType.INT,           8);
		declareParam("frequency",       DataType.INT,           150);
		declareParam("window",          DataType.INT,           30);
		declareParam("simulate",        DataType.BOOL,          false);
		declareParam("enableECC",       DataType.BOOL,          false);
		declareParam("ceNumPartitions", DataType.INT,           3);
		declareParam("suffix",          DataType.STRING,        "");
	}

	//Implement abstract method
	@Override
	protected void deriveParameters() {

	}

	//Implement abstract method to construct the name of the build
	@Override
	public String getBuildName() {

		//Base prefix
		StringBuilder buildName = new StringBuilder(getMaxFileName());

		//Append the pipe number
		buildName.append("_p"+getNumPipes());

		buildName.append("_" + getTarget().toString());

		//Append the kernel frequency number
		buildName.append("_f"+getFrequency());

		//Append the CE partitions
		buildName.append("_ce"+getCENumPartitions());

		//Append the board name
		buildName.append("_" + getDFEModel().toString());

		//Append window size
		buildName.append("_w" + getWindow());

		//Append optional suffix
		String suffix = getSuffix();
		if(!suffix.equals("")) {
			buildName.append("_" + suffix);
		}

		return buildName.toString();
	}

	@Override
	protected void validate() { }

}


text:
using strange.extensions.command.impl;
using strange.extensions.context.api;
using UnityEngine;

namespace VisualiseR.Presentation
{
    /// <summary>
    /// Command to show the time.
    /// </summary>
    public class ShowTimeCommand : Command
    {
        private static readonly JCsLogger Logger = new JCsLogger(typeof(ShowTimeCommand));

        [Inject]
        public bool _show { get; set; }

        [Inject(ContextKeys.CONTEXT_VIEW)]
        public GameObject _contextView { get; set; }

        public override void Execute()
        {
            ShowTime();
        }

        private void ShowTime()
        {
            var timerView = _contextView.transform.Find("Timer").gameObject;
            timerView.SetActive(_show);
            Logger.InfoFormat("Time shown: {0}", _show);
        }
    }
}


text:
$(function() {
    $('.editable').focus(function() {
        $(this).data('initialValue', $(this).html());
    }).blur(function() {
        var text = $(this).html();
        if ($(this).data('initialValue') !== text) {
            $.ajax({
                type: 'PUT',
                url: '/item/' + $(this).attr('for-item'),
                contentType: 'application/json; charset=uft-8',
                data: JSON.stringify({
                    text: text.replace(/^\s+|\s+$/g, '')
                }),
                success: function(result) {
                    console.info('Success: ', result);
                },
                error: function(result) {
                    console.error('Error: ', result);
                }
            });
        }
    });
});


text:
'use strict';

var path = require('path'),
    root = path.dirname(require.main.filename),
    view = require(root + '/vendor/view');

module.exports = function (method) {
    var methods = {
        index: index
    };

    return methods[method]();

    function index() {
        return function (req, res, next) {
            if (req.route.methods.get) {
                view('index', res);
            }
        }
    }
};


text:
function f = fix(f)
%FIX   Round a CHEBTECH pointwise toward zero.
%   G = FIX(F) returns the CHEBTECH G such that G(x) = FIX(F(x)) for each x in
%   [-1, 1].
%
%   If F is complex, then the G = FIX(REAL(F)) + 1i*FIX(IMAG(F)).
%
%   Note that FIX() assumes the output G(X) is a constant. If it is not, then
%   garbage is returned with no warning.
%
% See also ROUND, CEIL, FLOOR.

% Copyright 2015 by The University of Oxford and The Chebfun Developers.
% See http://www.chebfun.org/ for Chebfun information.

% Evaluate at the two end points, and an arbitrary interior point:
arbitraryPoint = 0.1273881594;
fx = feval(f, [-1 ; arbitraryPoint ; 1]);
% Take the mean:
meanfx = mean(fx, 1);
% Compute the fix:
f.coeffs = fix(meanfx);
f.epslevel = 0*f.coeffs + eps;

end


text:
package LeetCode;

import java.util.ArrayList;

public class InsertInterval {

    public static class Interval {
        public int start;
        public int end;

        public Interval() {
            start = 0;
            end = 0;
        }

        public Interval(int s, int e) {
            start = s;
            end = e;
        }

        public String toString() {
            return "[" + start + "," + end + "]";
        }
    }

    // study
    public ArrayList<Interval> insert1(ArrayList<Interval> intervals,
                                       Interval newInterval) {
        // the start and end index of the intervals to be removed
        int s = -1, e = -1;
        for (int i = 0; i < intervals.size(); i++) {
            if (s == -1 && intervals.get(i).end >= newInterval.start) {
                // find the first interval that new interval start inside
                s = i;
            } // special case: intervals.get(i).end is always <
            // newInterval.start.
            // i.e. newInterval should be inserted at the end
            if (intervals.get(i).start <= newInterval.end) {
                // find the last interval that the new interval end inside
                e = i;
            } // special case: intervals.get(i).start is always >
            // newInterval.end.
            // i.e. newIntervals should be inserted at the start
        }

        // handle special cases of s and e
        if (s == -1) // insert in the end
        {
            intervals.add(newInterval);
            return intervals;
        }
        if (e == -1) // insert in the start
        {
            intervals.add(0, newInterval);
            return intervals;
        }

        // now s and e are in the range of [0, intervals.size()-1]
        int start = Math.min(intervals.get(s).start, newInterval.start);
        int end = Math.max(intervals.get(e).end, newInterval.end);

        intervals.subList(s, e + 1).clear(); // inclusive, exclusive
        intervals.add(s, new Interval(start, end));
        return intervals;
    }

    // Working!!!
    public static ArrayList<Interval> insert(ArrayList<Interval> intervals,
                                             Interval newInterval) {
        // Start typing your Java solution below
        // DO NOT write main() function
        ArrayList<Interval> result = new ArrayList<Interval>();
        boolean inprev = false;
        boolean done = false;
        int start = 0;
        for (Interval inte : intervals) {
            if (!inprev && !done) {
                if (newInterval.start < inte.start) {
                    if (newInterval.end < inte.start) {
                        // newinterval outside and infront of inte
                        result.add(newInterval);
                        result.add(inte);
                        done = true;
                    } else if (newInterval.end <= inte.end) {
                        // newinterval start + inte end
                        newInterval.end = inte.end;
                        result.add(newInterval);
                        done = true;
                    } else if (newInterval.end > inte.end) {
                        // inte inside newinterval
                        start = newInterval.start;
                        inprev = true;
                    }
                } else {
                    if (newInterval.start > inte.end) {
                        result.add(inte);
                    } else if (newInterval.end <= inte.end) {
                        // newinterval inside inte
                        result.add(inte);
                        done = true;
                    } else if (newInterval.end > inte.end) {
                        start = inte.start;
                        inprev = true;
                    }
                }
            } else if (inprev) {
                if (newInterval.end < inte.start) {
                    newInterval.start = start;
                    result.add(newInterval);
                    result.add(inte);
                    done = true;
                    inprev = false;
                } else if (newInterval.end < inte.end) {
                    newInterval.start = start;
                    newInterval.end = inte.end;
                    result.add(newInterval);
                    done = true;
                    inprev = false;
                }
            } else if (done)
                result.add(inte);
        }

        if (inprev && !done) {
            newInterval.start = start;
            result.add(newInterval);
        } else if (!done) {
            result.add(newInterval);
        }

        return result;
    }

    /**
     * @param args
     */
    public static void main(String[] args) {
        // TODO Auto-generated method stub

        // [[2,4],[6,8],[18,18]], [6,11]
        Interval i = new Interval(2, 4);
        Interval i1 = new Interval(6, 8);
        Interval i2 = new Interval(18, 18);
        // Interval i3 = new Interval(11,13);
        Interval newi = new Interval(6, 11);
        ArrayList<Interval> intervals = new ArrayList<Interval>();
        intervals.add(i);
        intervals.add(i1);
        intervals.add(i2);
        // intervals.add(i3);
        insert(intervals, newi);

    }

}


text:
import React, {Component} from 'react';
import DeckGL from '@deck.gl/react';
import {View} from '@deck.gl/core';

export default class DeckWithMapboxMaps extends Component {
  render() {
    const {views = []} = this.props;

    const maps = [];
    for (const view of views) {
      if (view.props.map || view.props.mapStyle) {
        maps.push(
          <View id={view.props.id} key={view.props.id}>
            <this.props.Map
              reuseMap
              mapStyle={view.props.mapStyle}
              mapboxApiAccessToken={view.props.mapToken || this.props.mapboxApiAccessToken}
            />
          </View>
        );
      }
    }

    return (
      <DeckGL id="json-deck" {...this.props}>
        {maps}
      </DeckGL>
    );
  }
}


text:
namespace SpirvNet.Spirv.Ops.Group
{
    public abstract class GroupInstruction : Instruction
    {
        // intentionally empty
    }
}


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<TITLE>
HeadResponseListener (RabbIT/4)
</TITLE>

<META NAME="date" CONTENT="2012-02-16">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">

      Overview
      Package
    Class
      Use
      Tree
      Deprecated
      Index
      Help

 PREV CLASS
 NEXT CLASS

  FRAMES
 NO FRAMES

  All Classes

  SUMMARY: NESTED | FIELD | CONSTR | METHOD

DETAIL: FIELD | CONSTR | METHOD

rabbit.client.sample

Interface HeadResponseListener

All Known Implementing Classes:
LogHeadToSystemOut

public interface HeadResponseListener

A handler of http HEAD responses.

Author:

Robert Olofsson

Method Summary

 void
response(HttpHeader request,
         HttpHeader response)

          Handle a http response.

Method Detail

response

void response(HttpHeader request,
              HttpHeader response)

Handle a http response.

Parameters:
request - the request that has was sent
response - the response that was recieved

      Overview
      Package
    Class
      Use
      Tree
      Deprecated
      Index
      Help

 PREV CLASS
 NEXT CLASS

  FRAMES
 NO FRAMES

  All Classes

  SUMMARY: NESTED | FIELD | CONSTR | METHOD

DETAIL: FIELD | CONSTR | METHOD


text:
/**
 * Checks if the transformed page has indeed output and an outputPath
 * that ends in HTML. Pages that are actually not emitted (because they
 * have set permalink: false for example) have an undefined outputPath
 * and hence do not need to be transformed.
 * for
 * @param {string} output
 * @param {string} outputPath
 */
module.exports = function isTransformable(output, outputPath) {
  if (!outputPath || !outputPath.endsWith('.html')) {
    return false;
  }

  if (!output) {
    return false;
  }

  return true;
};


text:
@interface UIImage (Blending)

- (UIImage *)operateOn:(void (^)(CGContextRef context, CGRect rect))block;
- (UIImage *)blendMode:(CGBlendMode)blendMode color:(CGColorRef)color;
- (UIImage *)blendMode:(CGBlendMode)blendMode image:(CGImageRef)image;
- (UIImage *)blendMode:(CGBlendMode)blendMode color:(CGColorRef)color reverse:(BOOL)reverse;

@end

@interface UIImage (Colors)

+ (UIImage *)imageFromSize:(CGSize)size block:(void(^)(CGContextRef))block;
+ (UIImage *)imageFromColor:(UIColor *)color;
+ (UIImage *)imageFromColor:(UIColor *)color toColor:(UIColor *)toColor size:(CGSize)size cornerRadius:(CGFloat)cornerRadius;
+ (UIImage *)imageFromColors:(NSArray *)colors verticalLocations:(NSArray *)locationsObjects size:(CGSize)size cornerRadius:(CGFloat)cornerRadius;
+ (UIImage *)imageFromColors:(NSArray *)colors horizontalLocations:(NSArray *)locationsObjects size:(CGSize)size cornerRadius:(CGFloat)cornerRadius;

@end

@interface UIImage (Mask)

- (UIImage *)maskedWithImage:(UIImage *)mask;
- (UIImage *)maskedWithMaskName:(NSString *)maskName;
- (UIImage *)maskAndOverlayWithMaskName:(NSString *)maskName;
- (UIImage *)clippingMask:(CGColorRef)clippingMask;

@end

@interface UIImage (Resizing)

- (UIImage *)wrap:(UIImage *)newImage;
- (UIImage *)resizedImageFitSize:(CGSize)frameSize;
- (UIImage *)resizedImageFitSize:(CGSize)frameSize edgeInsets:(UIEdgeInsets)insets;
- (UIImage *)resizedImage:(CGFloat)ratio;
- (UIImage *)resizedImage:(CGFloat)ratio edgeInsets:(UIEdgeInsets)insets;

- (CGImageRef)imageWithAlphaChannel;

@end

@interface UIImage (Shadow)

- (UIImage *)addShadowSize:(CGSize)shadowSize shadowBlur:(CGFloat)blur shadowColor:(CGColorRef)shadowColor;
- (UIImage *)addShadowSize:(CGSize)shadowSize shadowBlur:(CGFloat)blur shadowColor:(CGColorRef)shadowColor clippingMask:(CGColorRef)clippingMask;

@end


text:
> Algorithm Visualizer for Jupyter/IPython Notebook

> Inspired by parkjs814's [AlgorithmVisualizer](https://github.com/parkjs814/AlgorithmVisualizer).

Master | Latest(0.2.2)
-------|-------
[![tv-master-img][]][tv-site]|[![tv-latest-img][]][tv-site]

[tv-master-img]: https://travis-ci.org/sn0wle0pard/ipytracer.svg?branch=master
[tv-latest-img]: https://travis-ci.org/sn0wle0pard/ipytracer.svg?branch=latest
[tv-site]: https://travis-ci.org/sn0wle0pard/ipytracer

![pypi](https://anaconda.org/sn0wle0pard/tracer.py/badges/installer/pypi.svg)
![anaconda](https://anaconda.org/sn0wle0pard/tracer.py/badges/version.svg)

Algorithm Visualizer for Jupyter/IPython Notebook.

It was inspired by parkjs814's [AlgorithmVisualizer](https://github.com/parkjs814/AlgorithmVisualizer).

You can see how your Python code works.

If you use the `display(TracerObject)` code from where you want to see, you can use it without any special modification.

Supports built-in list methods.

# Development Status
Pre-Alpha

# Todo
- Add more tracer api
- Support non-built-in data type in python

# Installation
Requirement
- Jupyter/IPython Notebook (Python3.x)

To install use pip:
```console
$ pip install ipytracer
$ jupyter nbextension enable --py --sys-prefix ipytracer
```

For a development installation (requires npm),

Pre installation
```console
$ npm install -g webpack
```
Installation
```console
$ git clone https://github.com/sn0wle0pard/ipytracer.git
$ cd ipytracer
$ pip install -e .
$ jupyter nbextension install --py --symlink --sys-prefix ipytracer
$ jupyter nbextension enable --py --sys-prefix ipytracer
```
# Demo
## Youtube Video
[![Alt text](https://img.youtube.com/vi/vZQJ0Y3GtIs/0.jpg)](https://www.youtube.com/watch?v=vZQJ0Y3GtIs)

https://youtu.be/vZQJ0Y3GtIs

## Tracers
### List1DTracer

Display | Get Item | Set Item
--------|----------|---------
![List1DBasic](src/list1d-basic.png) | ![List1DGet](src/list1d-getitem.png) | ![list1DSet](src/list1d-setitem.png)

### List2DTracer

Get Item | Set Item
---------|---------
![List2DRowGet](src/list2d-row-get.png)| ![List2DRowSet](src/list2d-row-set.png)
![List2DColGet](src/list2d-col-get.png)| ![List2DColSet](src/list2d-col-set.png)
### ChartTracer

Display | Get Item | Set Item
--------|----------|---------
![ChartBasic](src/chart-basic.png) | ![ChartGet](src/chart-get.png) | ![ChartSet](src/chart-set.png)
## Bubble Sort

```python
import ipytracer
from IPython.core.display import display

def bubble_sort(unsorted_list):
    x = ipytracer.ChartTracer(unsorted_list)
    display(x)
    length = len(x)-1
    for i in range(length):
        for j in range(length-i):
            if x[j] > x[j+1]:
                x[j], x[j+1] = x[j+1], x[j]
    return x.tolist()

bubble_sort([6,4,7,9,3,5,1,8,2])
```

![BubbleSortWork](src/bubble_chart.gif)

You can see more example [here](https://github.com/sn0wle0pard/tracer/tree/master/example)

Third Party Libraries
-----
* Chart.js - http://www.chartjs.org
* IPython - https://ipython.org
* ipywidgets - https://ipywidgets.readthedocs.io
* traitlets - https://traitlets.readthedocs.io/
* Underscore - http://underscorejs.org
* Webpack - https://webpack.github.io

See Also [NOTICE.md](NOTICE.md)

Author
------

Han Lee / [@sn0wle0pard](https://github.com/sn0wle0pard)

License
-------
```
The Clear BSD License

Copyright (c) 2015-2017, Han Lee
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted (subject to the limitations in the disclaimer
below) provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
  list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
  this list of conditions and the following disclaimer in the documentation
  and/or other materials provided with the distribution.

* Neither the name of the copyright holder nor the names of its contributors may be used
  to endorse or promote products derived from this software without specific
  prior written permission.

NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY THIS
LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.
```


text:
// <copyright file="DummyPage.xaml.cs" company="Colin C. Williams">
// Copyright (c) Colin C. Williams. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
// </copyright>

/*
    At least one page required in the project being run, even if it isn't used,
    otherwise Frame.Navigate fails with an AccessViolationException.

    Please ignore this file.

    Source of reasoning: http://danielvaughan.org/post/UWP-AccessViolationException-when-Navigating-to-a-Page-in-Another-Assembly.aspx
*/

namespace Sample
{
    using Windows.UI.Xaml.Controls;

    /// <summary>
    /// An empty page that can be used on its own or navigated to within a Frame.
    /// </summary>
    public sealed partial class DummyPage : Page
    {
        public DummyPage()
        {
            this.InitializeComponent();
        }
    }
}


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
Lich. Scand. (Uppsala) 1: 617 (1874)

#### Original name
Rhizocarpon polycarpum var. polycarpum

### Remarks
null


text:
package congress;

import java.io.BufferedWriter;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.OutputStreamWriter;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;

import model.*;

import org.apache.poi.xwpf.usermodel.XWPFDocument;
import org.apache.poi.xwpf.usermodel.XWPFParagraph;
import org.apache.poi.xwpf.usermodel.XWPFRun;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ObjectWriter;

public class ParseCongress {

	static ArrayList<Congress> notes = new ArrayList<Congress>();

	static Congress currentCongress;
	static Session currentSession;
	static State currentState;
	static Chamber currentChamber;

	static boolean nextLineCongressDate = false;
	static boolean nextLineSessionDate = false;

	static String currentString = null;
	static String lastString = null;

	static ArrayList<String> states = new ArrayList<String>();

	public static void main(String... args) throws Exception {
		XWPFDocument document = new XWPFDocument(new FileInputStream("c:/users/karl/downloads/GPO-CDOC-108hdoc222-3.docx"));

		StringBuilder builder = new StringBuilder();

		addStates();

		int line = 1;
		BufferedWriter  debugFile = new BufferedWriter(
				new OutputStreamWriter(
					new FileOutputStream("c:/users/karl/downloads/debugfile.txt"), Charset.forName("UTF-8") ) );
		Iterator<XWPFParagraph> i = document.getParagraphsIterator();
		while(i.hasNext()) {
			XWPFParagraph paragraph = i.next();

			// Do the paragraph text
			for(XWPFRun run : paragraph.getRuns()) {
				String str = run.toString();
				if ( str.length() == 0 ) continue;
				builder.append(str);
				if ( !str.endsWith(",") && !str.endsWith(", ") && !str.equals(" ")  ) {
					lastString = currentString;
					currentString = builder.toString();
					String debugString = currentString;
					if ( !searchCurrents(currentString) ) {
						if ( !allUpper(str)) {
							debugFile.write(line + ": " + debugString);
							debugFile.newLine();
							line++;
							builder = new StringBuilder();
						}
					} else {
						debugFile.write(line + ": " + debugString);
						debugFile.newLine();
						line++;
						builder = new StringBuilder();
					}
				}
			}

			// Do endnotes and footnotes
			String footnameText = paragraph.getFootnoteText();
			if(footnameText != null && footnameText.length() > 0) {
//				note.footnote = footnameText;
//				String[] splits = footnameText.split("\\[[0-9][0-9][0-9][0-9]:");
				String[] splits = footnameText.split("\\[?[0-9]*:");

				if ( splits.length > 2 ) {
//					System.out.println("** DOUBLE **" + splits.length +":" + lastString);
					int start0 = 0;
					int start1 = footnameText.indexOf( splits[splits.length-2] )
							+ splits[splits.length-2].length();

					Note note = new Note(
						lastString,
						footnameText.substring(
							start0, start1
						),
						line
					);
					addNote( note);
					note = new Note(
						currentString,
						footnameText.substring(
							start1
						),
						line
					);
					addNote( note);
				} else {
					Note note = new Note(
						currentString,
						footnameText,
						line
					);
					addNote( note);
				}
			}

		}

	    BufferedWriter bWriter = new BufferedWriter( new OutputStreamWriter(new FileOutputStream("c:/users/karl/downloads/congress.json"), Charset.forName("UTF-8")));
		// write out json
		ObjectMapper mapper = new ObjectMapper();
		ObjectWriter writer = mapper.writer(); //.withDefaultPrettyPrinter();
		bWriter.write( writer.writeValueAsString(notes) );
//		mapper.writeValue(new File("c:/users/karl/downloads/congress.json"), notes);
		bWriter.close();
		debugFile.close();
	}

	private static void addNote(Note note) {
		Congress lCongress = null;
		if ( notes.size() != 0 ) lCongress = notes.get(notes.size()-1);
		if ( lCongress != currentCongress || lCongress == null) {
			currentCongress.sessions = new ArrayList<Session>();
			lCongress = currentCongress;
			notes.add(lCongress);
		}

		Session lSession = null;
		if ( lCongress.sessions.size() != 0 ) lSession = lCongress.sessions.get(lCongress.sessions.size()-1);
		if ( lSession != currentSession || lSession == null ) {
			if ( currentSession == null ) currentSession = new Session(null);
			currentSession.states = new ArrayList<State>();
			lSession = currentSession;
			lCongress.sessions.add(lSession);
		}

		State lState = null;
		if ( lSession.states.size() != 0 ) lState = lSession.states.get(lSession.states.size()-1);
		if ( lState != currentState || lState == null ) {
			if ( currentState == null ) currentState = new State(null);
			currentState.chambers = new ArrayList<Chamber>();
			lState = currentState;
			lSession.states.add(lState);
		}

		Chamber lChamber = null;
		if ( lState.chambers.size() != 0 ) lChamber = lState.chambers.get(lState.chambers.size()-1);
		if ( lChamber != currentChamber || lChamber == null ) {
			if ( currentChamber == null ) currentChamber = new Chamber(null);
			currentChamber.notes = new ArrayList<Note>();
			lChamber = currentChamber;
			lState.chambers.add(lChamber);
		}

		lChamber.notes.add(note);
	}

	private static boolean allUpper(String str) {
		for ( int i=0, j=str.length(); i<j; ++i ) {
			char ch = str.charAt(i);
			if ( Character.isLowerCase(ch) ) return false;
		}
		return true;
	}

	private static boolean searchCurrents(String str ) {
		int idx;
		str = str.trim();
		if ( str.endsWith("CONGRESS")) {
			if ( currentCongress== null || !str.equals(currentCongress.congress) ) {
				currentCongress = new Congress(str);
				currentSession = null;
				currentState = null;
				currentChamber = null;
				currentString = "";

				nextLineCongressDate = true;
			}
			return true;
		} else if ( nextLineCongressDate ) {
			currentCongress.date = str;
			nextLineCongressDate = false;
			return true;
		} else if ( str.contains("SESSION—")) {
			currentSession = new Session(str);
			currentState = null;
			currentChamber = null;
			currentString = "";

			nextLineSessionDate = true;
			return true;
		} else if ( nextLineSessionDate ) {
			currentSession.date = str;
			nextLineSessionDate = false;
			return true;
		} else if ( (idx = Collections.binarySearch(states, str)) >= 0 ) {
			currentState = new State(states.get(idx));
			currentChamber = null;
			currentString = "";
			return true;
		} else if ( str.contains("REPRESENTATIVES") && !str.contains("REPRESENTATIVES AT LARGE") && !str.contains("HOUSE OF REPRESENTATIVES") && !str.contains("—Continued")) {
			currentChamber = new Chamber(str);
			currentString = "";
			return true;
		} else if ( str.contains("SENATORS") && !str.contains("—Continued")) {
			currentChamber = new Chamber(str);
			currentString = "";
			return true;
		} else if ( str.contains("DELEGATE")) {
			currentChamber = new Chamber(str);
			currentString = "";
			return true;
		} else if ( str.contains("RESIDENT COMMISSIONER")) {
			currentChamber = new Chamber(str);
			currentString = "";
			return true;
		}
		return false;
	}
	private static void addStates() {
		states.add("ALABAMA");
		states.add("ALASKA");
		states.add("ARIZONA");
		states.add("ARKANSAS");
		states.add("CALIFORNIA");
		states.add("COLORADO");
		states.add("CONNECTICUT");
		states.add("DELAWARE");
		states.add("FLORIDA");
		states.add("GEORGIA");
		states.add("HAWAII");
		states.add("IDAHO");
		states.add("ILLINOIS");
		states.add("INDIANA");
		states.add("IOWA");
		states.add("KANSAS");
		states.add("KENTUCKY");
		states.add("LOUISIANA");
		states.add("MAINE");
		states.add("MARYLAND");
		states.add("MASSACHUSETTS");
		states.add("MICHIGAN");
		states.add("MINNESOTA");
		states.add("MISSISSIPPI");
		states.add("MISSOURI");
		states.add("MONTANA");
		states.add("NEBRASKA");
		states.add("NEVADA");
		states.add("NEW HAMPSHIRE");
		states.add("NEW JERSEY");
		states.add("NEW MEXICO");
		states.add("NEW YORK");
		states.add("NORTH CAROLINA");
		states.add("NORTH DAKOTA");
		states.add("OHIO");
		states.add("OKLAHOMA");
		states.add("OREGON");
		states.add("PENNSYLVANIA");
		states.add("RHODE ISLAND");
		states.add("SOUTH CAROLINA");
		states.add("SOUTH DAKOTA");
		states.add("TENNESSEE");
		states.add("TEXAS");
		states.add("UTAH");
		states.add("VERMONT");
		states.add("VIRGINIA");
		states.add("WASHINGTON");
		states.add("WEST VIRGINIA");
		states.add("WISCONSIN");
		states.add("WYOMING");
		states.add("AMERICAN SAMOA");
		states.add("DISTRICT OF COLUMBIA");
		states.add("GUAM");
		states.add("PUERTO RICO");
		states.add("VIRGIN ISLANDS");
		Collections.sort(states);
	}

}


text:
<?php
/**
 * view/my404/index.php
 *
 * view page for generic 404 controller
 *
 * Used to TEST GigCentral
 *
 * @package ITC260
 * @subpackage my404
 * @author
 * @version 1.0 2015/5/14
 * @link
 * @license http://www.apache.org/licenses/LICENSE-2.0
 * @see controllers/My404.php
 * @see models/My404_model.php
 * @todo none
 */
?>

<?php
$this->load->view($this->config->item('theme') . 'header');
?>

404 Page

Oops! We all make mistakes. The page you are looking for does not exist.

<?php
$this->load->view($this->config->item('theme') . 'footer');
?>


text:
package ch.znerol.pdftickbox;

import java.io.InputStream;
import java.io.OutputStream;

public interface FormFiller {
	public String getContentType();

	public void fill(InputStream template, OutputStream result, String values) throws FormFillerException;
}


text:
layout: post
title: HBase Security
tags:  [HBase]
categories: [NoSQL]
author: liheng
excerpt: "hbase Security"
---

###


text:
Videos of {{userOfVideo.displayName}}

				Image
				Title
				User
				View
				Extension
				Delete

					 Loading...

				{{ item.title|| "empty" }}
				{{ item.user.displayName || 'Guest' }} 0">({{item.user.publishedVideo}} videos) (0 videos)
				{{item.countView}}
				{{item.extension}}

limit">
			<pagination
				class="pagination-sm"
				total-items="total"
				previous-text ="«"
				next-text ="»"
				max-size="5"
				items-per-page= "limit"
				align="true"
				ng-model="curPage"
				ng-change="getVideoList()"
				boundary-links="true">
			</pagination>


text:
package org.apache.sshd.client.session;

import java.io.IOException;
import java.net.SocketAddress;

import org.apache.sshd.client.config.hosts.HostConfigEntry;
import org.apache.sshd.client.future.ConnectFuture;

/**
 * @author Apache MINA SSHD Project
 */
public interface ClientSessionCreator {
    /**
     * Resolves the effective {@link HostConfigEntry} and connects to it
     *
     * @param username The intended username
     * @param host The target host name/address - never {@code null}/empty
     * @param port The target port
     * @return A {@link ConnectFuture}
     * @throws IOException If failed to resolve the effective target or
     * connect to it
     * @see #connect(HostConfigEntry)
     */
    ConnectFuture connect(String username, String host, int port) throws IOException;

    /**
     * Resolves the effective {@link HostConfigEntry} and connects to it
     *
     * @param username The intended username
     * @param address The intended {@link SocketAddress] - never {@code null}. If
     * this is an {@link java.net.InetSocketAddress} then the effective {@link HostConfigEntry}
     * is resolved and used.
     * @return A {@link ConnectFuture}
     * @throws IOException If failed to resolve the effective target or
     * connect to it
     * @see #connect(HostConfigEntry)
     */
    ConnectFuture connect(String username, SocketAddress address) throws IOException;

    /**
     * @param hostConfig The effective {@link HostConfigEntry} to connect to - never {@code null}
     * @return A {@link ConnectFuture}
     * @throws IOException If failed to create the connection future
     */
    ConnectFuture connect(HostConfigEntry hostConfig) throws IOException;
}


text:
<?php

// Define path to application directory
defined('APPLICATION_PATH')
    || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../app'));

// Define application environment
defined('APPLICATION_ENV')
    || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));

// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(
    realpath(APPLICATION_PATH . '/../lib'),
    get_include_path(),
)));

/** Load Const */
require_once APPLICATION_PATH . '/consts/app.php';

/** Use autoloader */
require_once 'Zend/Loader/Autoloader.php';
Zend_Loader_Autoloader::getInstance()->setFallbackAutoloader(true);

// Create application, bootstrap, and run
require_once 'Zend/Application.php';
$application = new Zend_Application(
    APPLICATION_ENV,
    array(
        'config' => array(
            APPLICATION_PATH . '/configs/application.ini',
            APPLICATION_PATH . '/configs/application.svr.ini',
        )
    )
);

Zyon::launch();

$application->bootstrap()
            ->run();


text:
package org.activiti.web.simple.webapp.controller.simple;

import java.io.UnsupportedEncodingException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * 该控制器在spring容器中标识为SimpleUrlController 采用了org.springframework.web.servlet.handler.SimpleUrlHandlerMapping来进行标配
 * 详见spring-mvc-servlet.xml中 <bean class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
 * 中<prop key="/SimpleUrl">SimpleUrlController</prop>的配置
 * 下面各方法的请求路径为
 * /simpleUrl/jsp
 * /simpleUrl/velocity
 * /simpleUrl/freemarker
 * @author fengjing
 *
 */
@Controller(value="SimpleUrlController")
@RequestMapping(value="/simpleurl")
public class SimpleUrlController {

	@RequestMapping(value="/jsp")
	public ModelAndView jsp(HttpServletRequest servletRequest,
			HttpServletResponse servletResponse) throws Exception {
		ModelAndView modelAndView=new ModelAndView("welcome");
		modelAndView.addObject("message", "Hello,SpringMVC!");
		return modelAndView;
	}

	@RequestMapping(value="/velocity")
	public ModelAndView velocity(HttpServletRequest servletRequest,
			HttpServletResponse servletResponse) throws Exception {
		ModelAndView modelAndView=new ModelAndView("velocity");
		modelAndView.addObject("message", "Hello,SpringMVC!");
		return modelAndView;
	}

	@RequestMapping(value="/freemarker")
	public ModelAndView freemarker(HttpServletRequest servletRequest,
			HttpServletResponse servletResponse) throws Exception {
		ModelAndView modelAndView=new ModelAndView("freemarker");
		modelAndView.addObject("message", "Hello,SpringMVC!");
		return modelAndView;
	}

	/**
	 * 从地址栏接受参数  /simpleUrl/showUser/admin/admin name为admin pwd为admin 请求转发到showuser.jsp
	 * @param username
	 * @param password
	 * @param map
	 * @return
	 */
	@RequestMapping(value="/showUser/{name}/{pwd}")
	public String showUserName(@PathVariable(value="name")String username,@PathVariable(value="pwd")String password,ModelMap map){
		try {
			map.addAttribute("username", new String(username.getBytes("iso-8859-1"),"utf-8"));
			map.addAttribute("pwd", password);
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
		return "showuser";
	}

}


text:
using Machine.Specifications;
using SnakeBattleNet.Core;
using SnakeBattleNet.Core.Contract;

namespace SnakeBattleNet.Test.Core.BattleFieldTests
{
    [Subject(typeof(BattleField))]
    internal class When_RelativeCell_is_called_and_direction_is_east
    {
        Establish context = () =>
        {
            field = new BattleField();
        };

        It should_return_wall_at_left = () =>
        {
            for (var y = 0; y < 3; y++)
                field.RelativeCell(Direction.East,
                   new Position { X = 25, Y = 25 },
                   new Position { X = 1, Y = 1 },
                   new Position { X = 0, Y = y })
                   .Content.ShouldEqual(Content.Wall);
        };

        It should_return_wall_at_top = () =>
        {
            for (var x = 0; x < 3; x++)
                field.RelativeCell(Direction.East,
                   new Position { X = 25, Y = 25 },
                   new Position { X = 1, Y = 1 },
                   new Position { X = x, Y = 2 })
                   .Content.ShouldEqual(Content.Wall);
        };

        private static BattleField field;
    }
}


text:
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.compute.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.compute.models.RunCommandInputParameter;
import com.azure.resourcemanager.compute.models.VirtualMachineRunCommandInstanceView;
import com.azure.resourcemanager.compute.models.VirtualMachineRunCommandScriptSource;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Map;

/** Describes a Virtual Machine run command. */
@Fluent
public final class VirtualMachineRunCommandInner extends Resource {
    @JsonIgnore private final ClientLogger logger = new ClientLogger(VirtualMachineRunCommandInner.class);

    /*
     * Describes the properties of a Virtual Machine run command.
     */
    @JsonProperty(value = "properties")
    private VirtualMachineRunCommandProperties innerProperties;

    /**
     * Get the innerProperties property: Describes the properties of a Virtual Machine run command.
     *
     * @return the innerProperties value.
     */
    private VirtualMachineRunCommandProperties innerProperties() {
        return this.innerProperties;
    }

    /** {@inheritDoc} */
    @Override
    public VirtualMachineRunCommandInner withLocation(String location) {
        super.withLocation(location);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public VirtualMachineRunCommandInner withTags(Map<String, String> tags) {
        super.withTags(tags);
        return this;
    }

    /**
     * Get the source property: The source of the run command script.
     *
     * @return the source value.
     */
    public VirtualMachineRunCommandScriptSource source() {
        return this.innerProperties() == null ? null : this.innerProperties().source();
    }

    /**
     * Set the source property: The source of the run command script.
     *
     * @param source the source value to set.
     * @return the VirtualMachineRunCommandInner object itself.
     */
    public VirtualMachineRunCommandInner withSource(VirtualMachineRunCommandScriptSource source) {
        if (this.innerProperties() == null) {
            this.innerProperties = new VirtualMachineRunCommandProperties();
        }
        this.innerProperties().withSource(source);
        return this;
    }

    /**
     * Get the parameters property: The parameters used by the script.
     *
     * @return the parameters value.
     */
    public List<RunCommandInputParameter> parameters() {
        return this.innerProperties() == null ? null : this.innerProperties().parameters();
    }

    /**
     * Set the parameters property: The parameters used by the script.
     *
     * @param parameters the parameters value to set.
     * @return the VirtualMachineRunCommandInner object itself.
     */
    public VirtualMachineRunCommandInner withParameters(List<RunCommandInputParameter> parameters) {
        if (this.innerProperties() == null) {
            this.innerProperties = new VirtualMachineRunCommandProperties();
        }
        this.innerProperties().withParameters(parameters);
        return this;
    }

    /**
     * Get the protectedParameters property: The parameters used by the script.
     *
     * @return the protectedParameters value.
     */
    public List<RunCommandInputParameter> protectedParameters() {
        return this.innerProperties() == null ? null : this.innerProperties().protectedParameters();
    }

    /**
     * Set the protectedParameters property: The parameters used by the script.
     *
     * @param protectedParameters the protectedParameters value to set.
     * @return the VirtualMachineRunCommandInner object itself.
     */
    public VirtualMachineRunCommandInner withProtectedParameters(List<RunCommandInputParameter> protectedParameters) {
        if (this.innerProperties() == null) {
            this.innerProperties = new VirtualMachineRunCommandProperties();
        }
        this.innerProperties().withProtectedParameters(protectedParameters);
        return this;
    }

    /**
     * Get the asyncExecution property: Optional. If set to true, provisioning will complete as soon as the script
     * starts and will not wait for script to complete.
     *
     * @return the asyncExecution value.
     */
    public Boolean asyncExecution() {
        return this.innerProperties() == null ? null : this.innerProperties().asyncExecution();
    }

    /**
     * Set the asyncExecution property: Optional. If set to true, provisioning will complete as soon as the script
     * starts and will not wait for script to complete.
     *
     * @param asyncExecution the asyncExecution value to set.
     * @return the VirtualMachineRunCommandInner object itself.
     */
    public VirtualMachineRunCommandInner withAsyncExecution(Boolean asyncExecution) {
        if (this.innerProperties() == null) {
            this.innerProperties = new VirtualMachineRunCommandProperties();
        }
        this.innerProperties().withAsyncExecution(asyncExecution);
        return this;
    }

    /**
     * Get the runAsUser property: Specifies the user account on the VM when executing the run command.
     *
     * @return the runAsUser value.
     */
    public String runAsUser() {
        return this.innerProperties() == null ? null : this.innerProperties().runAsUser();
    }

    /**
     * Set the runAsUser property: Specifies the user account on the VM when executing the run command.
     *
     * @param runAsUser the runAsUser value to set.
     * @return the VirtualMachineRunCommandInner object itself.
     */
    public VirtualMachineRunCommandInner withRunAsUser(String runAsUser) {
        if (this.innerProperties() == null) {
            this.innerProperties = new VirtualMachineRunCommandProperties();
        }
        this.innerProperties().withRunAsUser(runAsUser);
        return this;
    }

    /**
     * Get the runAsPassword property: Specifies the user account password on the VM when executing the run command.
     *
     * @return the runAsPassword value.
     */
    public String runAsPassword() {
        return this.innerProperties() == null ? null : this.innerProperties().runAsPassword();
    }

    /**
     * Set the runAsPassword property: Specifies the user account password on the VM when executing the run command.
     *
     * @param runAsPassword the runAsPassword value to set.
     * @return the VirtualMachineRunCommandInner object itself.
     */
    public VirtualMachineRunCommandInner withRunAsPassword(String runAsPassword) {
        if (this.innerProperties() == null) {
            this.innerProperties = new VirtualMachineRunCommandProperties();
        }
        this.innerProperties().withRunAsPassword(runAsPassword);
        return this;
    }

    /**
     * Get the timeoutInSeconds property: The timeout in seconds to execute the run command.
     *
     * @return the timeoutInSeconds value.
     */
    public Integer timeoutInSeconds() {
        return this.innerProperties() == null ? null : this.innerProperties().timeoutInSeconds();
    }

    /**
     * Set the timeoutInSeconds property: The timeout in seconds to execute the run command.
     *
     * @param timeoutInSeconds the timeoutInSeconds value to set.
     * @return the VirtualMachineRunCommandInner object itself.
     */
    public VirtualMachineRunCommandInner withTimeoutInSeconds(Integer timeoutInSeconds) {
        if (this.innerProperties() == null) {
            this.innerProperties = new VirtualMachineRunCommandProperties();
        }
        this.innerProperties().withTimeoutInSeconds(timeoutInSeconds);
        return this;
    }

    /**
     * Get the outputBlobUri property: Specifies the Azure storage blob where script output stream will be uploaded.
     *
     * @return the outputBlobUri value.
     */
    public String outputBlobUri() {
        return this.innerProperties() == null ? null : this.innerProperties().outputBlobUri();
    }

    /**
     * Set the outputBlobUri property: Specifies the Azure storage blob where script output stream will be uploaded.
     *
     * @param outputBlobUri the outputBlobUri value to set.
     * @return the VirtualMachineRunCommandInner object itself.
     */
    public VirtualMachineRunCommandInner withOutputBlobUri(String outputBlobUri) {
        if (this.innerProperties() == null) {
            this.innerProperties = new VirtualMachineRunCommandProperties();
        }
        this.innerProperties().withOutputBlobUri(outputBlobUri);
        return this;
    }

    /**
     * Get the errorBlobUri property: Specifies the Azure storage blob where script error stream will be uploaded.
     *
     * @return the errorBlobUri value.
     */
    public String errorBlobUri() {
        return this.innerProperties() == null ? null : this.innerProperties().errorBlobUri();
    }

    /**
     * Set the errorBlobUri property: Specifies the Azure storage blob where script error stream will be uploaded.
     *
     * @param errorBlobUri the errorBlobUri value to set.
     * @return the VirtualMachineRunCommandInner object itself.
     */
    public VirtualMachineRunCommandInner withErrorBlobUri(String errorBlobUri) {
        if (this.innerProperties() == null) {
            this.innerProperties = new VirtualMachineRunCommandProperties();
        }
        this.innerProperties().withErrorBlobUri(errorBlobUri);
        return this;
    }

    /**
     * Get the provisioningState property: The provisioning state, which only appears in the response.
     *
     * @return the provisioningState value.
     */
    public String provisioningState() {
        return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
    }

    /**
     * Get the instanceView property: The virtual machine run command instance view.
     *
     * @return the instanceView value.
     */
    public VirtualMachineRunCommandInstanceView instanceView() {
        return this.innerProperties() == null ? null : this.innerProperties().instanceView();
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
        if (innerProperties() != null) {
            innerProperties().validate();
        }
    }
}


text:
package com.example.administrator.ggcode.Fragment;

import android.content.Context;
import android.graphics.Color;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.RequiresApi;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;
import android.support.v4.view.ViewPager;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.util.TypedValue;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

import com.blankj.utilcode.utils.SPUtils;
import com.example.administrator.ggcode.Activity.MainActivity;
import com.example.administrator.ggcode.R;

import net.lucode.hackware.magicindicator.MagicIndicator;
import net.lucode.hackware.magicindicator.ViewPagerHelper;
import net.lucode.hackware.magicindicator.buildins.commonnavigator.CommonNavigator;
import net.lucode.hackware.magicindicator.buildins.commonnavigator.abs.CommonNavigatorAdapter;
import net.lucode.hackware.magicindicator.buildins.commonnavigator.abs.IPagerIndicator;
import net.lucode.hackware.magicindicator.buildins.commonnavigator.abs.IPagerTitleView;
import net.lucode.hackware.magicindicator.buildins.commonnavigator.indicators.LinePagerIndicator;
import net.lucode.hackware.magicindicator.buildins.commonnavigator.indicators.TriangularPagerIndicator;
import net.lucode.hackware.magicindicator.buildins.commonnavigator.titles.ColorTransitionPagerTitleView;

import butterknife.BindView;
import butterknife.ButterKnife;

public class NewsFragment extends BaseFragment {

    @BindView(R.id.main_viewpager)
    ViewPager main_viewpager;
//    @BindView(R.id.news_toolbar)
//    Toolbar toolbar;
    int theme_id;
    @BindView(R.id.ic_menu)
    ImageView ic_menu;
    private String[]             types;         //顶部 tab 英文内容数组
    private String[]             typesCN;       //顶部 tab 中文内容数组
    private NewsViewPagerAadpter newsViewPagerAadpter;    //ViewPager 适配器
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View view=inflater.inflate(R.layout.fragment_news, container, false);
        ButterKnife.bind(this, view);//每个界面都需要绑定View否则@BindView标签将无效
        types=getResources().getStringArray(R.array.news_type_cn);
        typesCN=getResources().getStringArray(R.array.news_type_en);
        //初始化ViewPager,设置适配器
        newsViewPagerAadpter=new NewsViewPagerAadpter(getActivity().getSupportFragmentManager());
        main_viewpager.setAdapter(newsViewPagerAadpter);
//        ((AppCompatActivity) getActivity()).setSupportActionBar(toolbar);
//        ActionBar actionBar=((AppCompatActivity) getActivity()).getSupportActionBar();
//        if (actionBar!=null){
//            actionBar.setDisplayHomeAsUpEnabled(true);
//            actionBar.setHomeAsUpIndicator(R.drawable.ic_menu);
//        }
        SPUtils spUtils=new SPUtils("theme_id");
        theme_id=spUtils.getInt("theme_id");
        MainActivity activity= (MainActivity) getActivity();
        final DrawerLayout drawerLayout= (DrawerLayout) activity.findViewById(R.id.dl_activity_main);
        ic_menu.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                if (drawerLayout.isDrawerOpen(Gravity.LEFT)){
                    drawerLayout.closeDrawers();
                }else {
                    drawerLayout.openDrawer(Gravity.LEFT);
                }
            }
        });
        /*************************** 顶部指示器数据加载 ***************************/
        MagicIndicator magicIndicator  = (MagicIndicator) view.findViewById(R.id.magic_indicator);
        final MainActivity activity1= (MainActivity) getActivity();
        final TypedValue typedValue = new  TypedValue();
        activity1.getTheme().resolveAttribute(R.attr.colorPrimary, typedValue, true);
        CommonNavigator commonNavigator = new CommonNavigator(getActivity());

        commonNavigator.setAdapter(new CommonNavigatorAdapter() {
            @Override
            public int getCount() {
                return types==null ?0:types.length;
            }

            @Override
            public IPagerTitleView getTitleView(Context context, final int i) {
                ColorTransitionPagerTitleView colorTransitionPagerTitleView
                        = new ColorTransitionPagerTitleView(context);
                colorTransitionPagerTitleView.setNormalColor(Color.BLACK);
                colorTransitionPagerTitleView.setSelectedColor(Color.RED);

                colorTransitionPagerTitleView.setText(typesCN[i]);
                colorTransitionPagerTitleView.setOnClickListener(new View.OnClickListener() {
                    @Override
                    public void onClick(View view) {
                        main_viewpager.setCurrentItem(i);
                    }
                });
                return colorTransitionPagerTitleView;
            }

            @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
            @Override
            public IPagerIndicator getIndicator(Context context) {
                LinePagerIndicator indicator=new LinePagerIndicator(context);
                indicator.setColors(typedValue.data);
                indicator.setMode(LinePagerIndicator.MODE_WRAP_CONTENT);
                return indicator;

            }
        });
        magicIndicator.setNavigator(commonNavigator);
        ViewPagerHelper.bind(magicIndicator,main_viewpager);
        return view;
    }
//    /**
//     * 获取主题颜色
//     * @return
//     */
//    public int getColorPrimary(){
//        TypedValue typedValue = new  TypedValue();
//        getTheme().resolveAttribute(R.attr.colorPrimary, typedValue, true);
//        return typedValue.data;
//    }
    @Override
    public void fetchData() {

    }

    class NewsViewPagerAadpter extends FragmentStatePagerAdapter{

        public NewsViewPagerAadpter(FragmentManager fm) {
            super(fm);
        }

        @Override
        public Fragment getItem(int position) {
            return new NewsDetailFragment(types[position]);
        }

        @Override
        public int getCount() {
            return types.length;
        }
    }
}


text:
/* THIS FILE IS GENERATED. DO NOT EDIT */
package seph.lang.structure;

import seph.lang.*;
import seph.lang.persistent.*;

public class SephObject_n_4 extends SephObjectStructure {
    public final IPersistentVector parents;

    public final String selector0;
    public final SephObject cell0;
    public final String selector1;
    public final SephObject cell1;
    public final String selector2;
    public final SephObject cell2;
    public final String selector3;
    public final SephObject cell3;

    public SephObject_n_4(IPersistentMap meta, IPersistentVector parents, String selector0, SephObject cell0, String selector1, SephObject cell1, String selector2, SephObject cell2, String selector3, SephObject cell3) {
        super(meta);
        this.parents = parents;

        this.selector0 = selector0.intern();
        this.cell0 = cell0;
        this.selector1 = selector1.intern();
        this.cell1 = cell1;
        this.selector2 = selector2.intern();
        this.cell2 = cell2;
        this.selector3 = selector3.intern();
        this.cell3 = cell3;
    }

    public final SephObject get(String name) {
        name = name.intern();

        if(name == this.selector0) return this.cell0;
        if(name == this.selector1) return this.cell1;
        if(name == this.selector2) return this.cell2;
        if(name == this.selector3) return this.cell3;
        SephObject result;
        for(ISeq s = this.parents.seq(); s != null; s = s.next()) {
            result = ((SephObject)s.first()).get(name);
            if(result != null) return result;
        }
        return null;
    }
}


text:
{% extends "backbone_base.html" %}
{% block title %}Posts matching {{ terms }}{% endblock %}
{% block content %}

Results matching "{{ terms }}":

{% if posts %}

	{% include "post_list.html" %}

	{% if posts|length < total_posts %}
		{% include "load_more_posts.html" with page="search" %}
	{% endif %}
{% else %}

Sorry, no posts match that query.

{% endif %}
{% endblock %}


text:
lgtm,codescanning
* Support for `d3` has improved. The XSS queries now recognize HTML injection sinks
  from the `d3` API.
  Affected packages are
    [d3](https://npmjs.com/package/d3),
    [d3-selection](https://npmjs.com/package/d3-selection).