text:
description("createElementNS tests from mozilla, attached to webkit bug 16833");

function assert(c, m)
{
    if (!c)
        testFailed(m);
    else
        testPassed(m);
}

function stringForExceptionCode(c)
{
    var exceptionName;
    switch(c) {
        case DOMException.INVALID_CHARACTER_ERR:
            exceptionName = "INVALID_CHARACTER_ERR";
            break;
        case DOMException.NAMESPACE_ERR:
            exceptionName = "NAMESPACE_ERR";
    }
    if (exceptionName)
        return exceptionName; // + "(" + c + ")";
    return c;
}

function assertEquals(actual, expect, m)
{
    if (actual !== expect) {
        m += "; expected " + stringForExceptionCode(expect) + ", threw " + stringForExceptionCode(actual);
        testFailed(m);
    } else {
        m += "; threw " + stringForExceptionCode(actual);;
        testPassed(m);
    }
}

var allNSTests = [
   { args: [undefined, undefined] },
   { args: [null, undefined] },
   { args: [undefined, null] },
   { args: [null, null] },
   { args: [null, ""], code: 5 },
   { args: ["", null] },
   { args: ["", ""], code: 5 },
   { args: [null, "<div>"], code: 5 },
   { args: [null, "0div"], code: 5 },
   { args: [null, "di v"], code: 5 },
   { args: [null, "di<v"], code: 5 },
   { args: [null, "-div"], code: 5 },
   { args: [null, ".div"], code: 5 },
   { args: ["http://example.com/", "<div>"], code: 5 },
   { args: ["http://example.com/", "0div"], code: 5 },
   { args: ["http://example.com/", "di<v"], code: 5 },
   { args: ["http://example.com/", "-div"], code: 5 },
   { args: ["http://example.com/", ".div"], code: 5 },
   { args: [null, ":div"], code: 14 },
   { args: [null, "div:"], code: 14 },
   { args: ["http://example.com/", ":div"], code: 14 },
   { args: ["http://example.com/", "div:"], code: 14 },
   { args: [null, "d:iv"], code: 14 },
   { args: [null, "a:b:c"], code: 14, message: "valid XML name, invalid QName" },
   { args: ["http://example.com/", "a:b:c"], code: 14, message: "valid XML name, invalid QName" },
   { args: [null, "a::c"], code: 14, message: "valid XML name, invalid QName" },
   { args: ["http://example.com/", "a::c"], code: 14, message: "valid XML name, invalid QName" },
   { args: ["http://example.com/", "a:0"], code: 5, message: "valid XML name, not a valid QName" },
   { args: ["http://example.com/", "0:a"], code: 5, message: "0 at start makes it not a valid XML name" },
   { args: ["http://example.com/", "a:_"] },
   { args: ["http://example.com/", "a:\u0BC6"], code: 14,
     message: "non-ASCII character after colon is CombiningChar, which is " +
              "NCNameChar but not (Letter | \"_\") so invalid at start of " +
              "NCName (but still a valid XML name, hence not INVALID_CHARACTER_ERR)" },
   { args: ["http://example.com/", "\u0BC6:a"], code: 5,
     message: "non-ASCII character after colon is CombiningChar, which is " +
              "NCNameChar but not (Letter | \"_\") so invalid at start of " +
              "NCName (Gecko chooses to throw NAMESPACE_ERR here, but either is valid " +
              "as this is both an invalid XML name and an invalid QName)" },
   { args: ["http://example.com/", "a:a\u0BC6"] },
   { args: ["http://example.com/", "a\u0BC6:a"] },
   { args: ["http://example.com/", "xml:test"], code: 14, message: "binding xml prefix wrong" },
   { args: ["http://example.com/", "xmlns:test"], code: 14, message: "binding xmlns prefix wrong" },
   { args: ["http://www.w3.org/2000/xmlns/", "x:test"], code: 14, message: "binding namespace namespace to wrong prefix" },
   { args: ["http://www.w3.org/2000/xmlns/", "xmlns:test"] },
   { args: ["http://www.w3.org/XML/1998/namespace", "xml:test"] },
   { args: ["http://www.w3.org/XML/1998/namespace", "x:test"] },
];

var allNoNSTests = [
   { args: [undefined] },
   { args: [null] },
   { args: [""], code: 5 },
   { args: ["<div>"], code: 5 },
   { args: ["0div"], code: 5 },
   { args: ["di v"], code: 5 },
   { args: ["di<v"], code: 5 },
   { args: ["-div"], code: 5 },
   { args: [".div"], code: 5 },
   { args: [":"], message: "valid XML name, invalid QName" },
   { args: [":div"], message: "valid XML name, invalid QName" },
   { args: ["div:"], message: "valid XML name, invalid QName" },
   { args: ["d:iv"] },
   { args: ["a:b:c"], message: "valid XML name, invalid QName" },
   { args: ["a::c"], message: "valid XML name, invalid QName" },
   { args: ["a::c:"], message: "valid XML name, invalid QName" },
   { args: ["a:0"], message: "valid XML name, not a valid QName" },
   { args: ["0:a"], code: 5, message: "0 at start makes it not a valid XML name" },
   { args: ["a:_"] },
   { args: ["a:\u0BC6"],
     message: "non-ASCII character after colon is CombiningChar, which is " +
              "valid in pre-namespace XML" },
   { args: ["\u0BC6:a"], code: 5, message: "not a valid start character" },
   { args: ["a:a\u0BC6"] },
   { args: ["a\u0BC6:a"] },
   { args: ["xml:test"] },
   { args: ["xmlns:test"] },
   { args: ["x:test"] },
   { args: ["xmlns:test"] },
   { args: ["SOAP-ENV:Body"] }, // From Yahoo Mail Beta
];

function sourceify(v)
{
    switch (typeof v) {
        case "undefined":
            return v;
        case "string":
            return '"' + v.replace('"', '\\"') + '"';
        default:
            return String(v);
    }
}

function sourceifyArgs(args)
{
    var copy = new Array(args.length);
    for (var i = 0, sz = args.length; i < sz; i++)
        copy[i] = sourceify(args[i]);

    return copy.join(", ");
}

function runNSTests(tests, doc, createFunctionName)
{
    for (var i = 0, sz = tests.length; i < sz; i++) {
        var test = tests[i];

        var code = -1;
        var argStr = sourceifyArgs(test.args);
        var msg = createFunctionName + "(" + argStr + ")";
        if ("message" in test)
            msg += "; " + test.message;
        try {
            doc[createFunctionName].apply(doc, test.args);
            assert(!("code" in test), msg);
        } catch (e) {
            assertEquals(e.code, test.code || "expected no exception", msg);
        }
    }
}

debug("HTML tests:")
runNSTests(allNSTests, document, "createElementNS");
runNSTests(allNoNSTests, document, "createElement");

debug("XHTML createElement tests:")
var xhtmlDoc = document.implementation.createDocument("http://www.w3.org/1999/xhtml", "html", null);
runNSTests(allNoNSTests, xhtmlDoc, "createElement");

debug("XML createElement tests:")
var xmlDoc = document.implementation.createDocument("http://www.example.com/foo", "example", null);
runNSTests(allNoNSTests, xmlDoc, "createElement");


text:
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">

<meta http-equiv="Content-Language" content="en-us">
<title>Web Services Addressing 1.0 Core and SOAP Binding Test Cases</title>

 Web Services Addressing 1.0 Core and SOAP Binding Test Cases

Test cases from Arun Gupta (Sun) interleaved with Mark's features ticked off against the Web Services Addressing Test Suite Testcases

 Core

"none" URI (2.1) - REQUIRED

For a request-response primitive using SOAP/HTTP, a service endpoint
        receives a message with wsa:ReplyTo set to "none" URI.
        The service endpoint MUST not send a protocol response back and generate
        an HTTP 202 response only.

t1200

Endpoint Reference Infoset Representation (2.2) - REQUIRED

Create an EPR "eprReply" as given below
<wsa:EndpointReference>

            <wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>

        </wsa:EndpointReference>
The client sets [reply endpoint]
        to "eprReply" and invokes the service endpoint. Verify that
        the wsa:Reply-To is set to
<wsa:Reply-To xmlns:wsa="http://www.w3.org/2005/08/addressing/">

            <wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>

        </wsa:Reply-To>

t1202

Add "eprFault"

t1203

Create an EPR "eprReply" as given below
<wsa:EndpointReference>

            <wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>

            <wsa:ReferenceParameters>

                <fabrikam:CustomerKey>123456789</fabrikam:CustomerKey>

            </wsa:ReferenceParameters>

        </wsa:EndpointReference>
The client sets [reply endpoint]
        to "eprReply" and invokes the service endpoint. Verify that
        the wsa:Reply-To is set to
<wsa:Reply-To xmlns:wsa="http://www.w3.org/2005/08/addressing/">

            <wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>

            <wsa:ReferenceParameters>

                <fabrikam:CustomerKey>123456789</fabrikam:CustomerKey>

            </wsa:ReferenceParameters>

        </wsa:Reply-To>

t1206

Create an EPR "eprReply" as given below
<wsa:EndpointReference>

            <wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>

            <wsa:ReferenceParameters>

                <fabrikam:CustomerKey>123456789</fabrikam:CustomerKey>

            </wsa:ReferenceParameters>

            <wsa:Metadata>

                <wsdl:definitions>

                    ...

                </wsdl:definitions>

            </wsa:Metadata>

        </wsa:EndpointReference>
The client sets [reply endpoint]
        to "eprReply" and invokes the service endpoint. Verify that
        the wsa:Reply-To is set to
<wsa:Reply-To xmlns:wsa="http://www.w3.org/2005/08/addressing/">

            <wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>

            <wsa:ReferenceParameters>

                <fabrikam:CustomerKey>123456789</fabrikam:CustomerKey>

            </wsa:ReferenceParameters>

            <wsa:Metadata>

                <wsdl:definitions>

                    ...

                </wsdl:definitions>

            </wsa:Metadata>

        </wsa:Reply-To>

t1207

Endpoint Reference Extensibility (2.5) - REQUIRED

Create an EPR "eprReply" as given below
<wsa:EndpointReference
        xmlns:fabrikam="..." fabrikam:name="reply endpoint">

            <wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>

            <wsa:ReferenceParameters fabrikam:total="1">

                <fabrikam:CustomerKey>123456789</fabrikam:CustomerKey>

            </wsa:ReferenceParameters>

            <wsa:Metadata fabrikam:total="1">

                <wsdl:definitions>

                    ...

                </wsdl:definitions>

            </wsa:Metadata>

            <fabrikam:otherMetadata>

            </fabrikam:otherMetadata>

        </wsa:EndpointReference>

The client sets [reply endpoint] to "eprReply" and invokes
        the service endpoint. Verify that
    service endpoint is able to process the [reply endpoint] EPR correctly.

t1208

XML Infoset Representation of Message Addressing Properties (3.2) -  REQUIRED

To Be Defined

wsa:To defaulting (3.2) - REQUIRED

 For a request/response primitive using SOAP/HTTP, configure the service
        endpoint such that wsa:To is not generated in the response message. The client should receive
        the response using the channel specified by the SOAP protocol binding.
        For instance, SOAP 1.1/1.2 puts the reply message in HTTP response.

t1230

wsa:ReplyTo defaulting (3.2) - REQUIRED

For a request/response primitive using SOAP/HTTP, configure the client such
        that wsa:Reply-To is not generated (this may not be easy unless a
        hand-crafted message is used). The client should receive the response
        using the channel specified by the SOAP protocol binding. For instance,
        SOAP 1.1/1.2 puts the reply message in HTTP response.

t1230

wsa:RelatesTo/@RelationshipType defaulting (3.2) - REQUIRED

To Be Defined

Comparing IRIs (3.2.1) - REQUIRED

To Be Defined

Formulating a normal Reply (3.3) - REQUIRED

Create an EPR "eprReply" as given below

<wsa:EndpointReference xmlns:fabrikam="..." >

            <wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>

            <wsa:ReferenceParameters>

                <fabrikam:success
        wsa:isReferenceParameter="true">123456789<fabrikam:success>

            </wsa:ReferenceParameters>

        </wsa:EndpointReference>

The client sets [reply endpoint] to "eprReply" and invokes
        the service endpoint. The expected behavior is:

Service endpoint sends the normal response back to the client in the
        HTTP response.

On the client, validate the reference
        parameter received is <fabrikam:success
        wsa:isReferenceParameter="true">123456789<fabrikam:success>.

t1232

Formulating a Fault Reply (3.3) - REQUIRED

Create an EPR "eprFault" with

<wsa:EndpointReference xmlns:fabrikam="..." >

            <wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>

            <wsa:ReferenceParameters>

                <fabrikam:failure>123456789<fabrikam:failure>

            </wsa:ReferenceParameters>

        </wsa:EndpointReference>

The client sets [fault
        endpoint] to "eprFault" and invokes the service endpoint. The
        expected behavior is:

Service endpoint sends a fault response back to the client in the
            HTTP response.

On the client, validate the reference parameter
        received is <fabrikam:failure wsa:isReferenceParameter="true">123456789<fabrikam:failure>.

t1233

Create an EPR "eprReply" with

<wsa:EndpointReference xmlns:fabrikam="..." >

            <wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>

            <wsa:ReferenceParameters>

                <fabrikam:success
        wsa:isReferenceParameter="true">123456789<fabrikam:success>

            </wsa:ReferenceParameters>

        </wsa:EndpointReference>

The client sets [reply endpoint] to "eprReply", does not
        set [fault endpoint] and invokes the service endpoint. The expected
        behavior is:

Service endpoint sends a fault response back to the client in the HTTP
        response.

On the client, validate the reference
        parameter received is <fabrikam:success
        wsa:isReferenceParameter="true">123456789<fabrikam:success>.

t1234

 SOAP Binding

 SOAP 1.2 Feature interaction with Action (2.4) - REQUIRED

From the client, generate a SOAP 1.2 message where http://www.w3.org/2003/05/soap/features/action/Action
    feature has a non-null value. On the service endpoint, http://www.w3.org/20050/08/addressing/features/Action
    feature should exactly match that value.

t1201

SOAP 1.2 Message Addressing Property binding (3.4) - REQUIRED

To Be Defined

SOAP 1.2 Anonymous Address (3.5) - REQUIRED

Create an EPR "eprReply" as given below

<wsa:EndpointReference>

            <wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>

        </wsa:EndpointReference>

The client sets [reply endpoint] to "eprReply" and invokes
        the service endpoint. The expected behavior is:

Service endpoint sends the normal response back to the client in the
        HTTP response.

t1231

Create an EPR "eprFault" as given below

<wsa:EndpointReference>

            <wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>

        </wsa:EndpointReference>

The client sets [fault endpoint] to "eprFault" and invokes
        the service endpoint. The expected behavior is:

Service endpoint sends the fault response back to the client in the
        HTTP response.

t1233

SOAP 1.1 Message Addressing Property binding (4.2) - REQUIRED

To Be Defined

SOAP 1.1 interaction with Action (4.2) - REQUIRED

From the client, generate a SOAP 1.1 message with non-null [action] message addressing property. On the service endpoint, SOAPAction HTTP header
    must match the [action] property value.

From the client, generate a SOAP 1.1 message with empty [action]
    message addressing property. On the service endpoint, SOAPAction HTTP header
    must match the [action] property value. (??)

SOAP 1.1 Anonymous Address (3.5) - REQUIRED

Create an EPR "eprReply" as given below

<wsa:EndpointReference>

            <wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>

        </wsa:EndpointReference>

The client sets [reply endpoint] to "eprReply" and invokes
        the service endpoint. The expected behavior is:

Service endpoint sends the normal response back to the client in the
        HTTP response.

To Be Defined

Create an EPR "eprFault" as given below

<wsa:EndpointReference>

            <wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>

        </wsa:EndpointReference>

The client sets [fault endpoint] to "eprFault" and invokes
        the service endpoint. The expected behavior is:

Service endpoint sends the fault response back to the client in the
        HTTP response.

To Be Defined

Faults (5) - OPTIONAL (except as below)
To Be Defined

InvalidAddressingFailure Fault (5, 3.2) - REQUIRED

 Generate request messages with exactly one of
            the following properties duplicate in each message:

[source endpoint]

[destination]

[reply endpoint]

[fault endpoint]

[action]

[message id]

In each case, the service endpoint must generate a fault with
            following properties:

[Code] S:Sender

            [Subcode] wsa:InvalidAddressingHeader

            [Subsubcode] wsa:InvalidCardinality

            [Reason] "A header representing a Message Addressing Property is not valid and the message cannot be processed"

            [Details] <wsa:ProblemHeader> element that
            conveys a copy of the offending header

To Be Defined

Last updated: October 14, 2005 02:54 PM
 - pdowney

redpajama_set_name: RedPajamaGithub


text:
<?php

namespace app\models;

use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use app\models\Medical;

/**
 * MedicalSearch represents the model behind the search form about `app\models\Medical`.
 */
class MedicalSearch extends Medical
{
    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id'], 'integer'],
            [['name', 'city', 'state', 'address', 'url', 'about', 'inst_type', 'campus_set', 'campus_house', 'stud_popul', 'grad_rate', 'transfer_out_rate'], 'safe'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function scenarios()
    {
        // bypass scenarios() implementation in the parent class
        return Model::scenarios();
    }

    /**
     * Creates data provider instance with search query applied
     *
     * @param array $params
     *
     * @return ActiveDataProvider
     */
    public function search($params)
    {
        $query = Medical::find();

        $dataProvider = new ActiveDataProvider([
            'query' => $query,
        ]);

        $this->load($params);

        if (!$this->validate()) {
            // uncomment the following line if you do not want to return any records when validation fails
            // $query->where('0=1');
            return $dataProvider;
        }

        $query->andFilterWhere([
            'id' => $this->id,
        ]);

        $query->andFilterWhere(['like', 'name', $this->name])
            ->andFilterWhere(['like', 'city', $this->city])
            ->andFilterWhere(['like', 'state', $this->state])
            ->andFilterWhere(['like', 'address', $this->address])
            ->andFilterWhere(['like', 'url', $this->url])
            ->andFilterWhere(['like', 'about', $this->about])
            ->andFilterWhere(['like', 'inst_type', $this->inst_type])
            ->andFilterWhere(['like', 'campus_set', $this->campus_set])
            ->andFilterWhere(['like', 'campus_house', $this->campus_house])
            ->andFilterWhere(['like', 'stud_popul', $this->stud_popul])
            ->andFilterWhere(['like', 'grad_rate', $this->grad_rate])
            ->andFilterWhere(['like', 'transfer_out_rate', $this->transfer_out_rate]);

        return $dataProvider;
    }
}


text:
using System;
using System.Collections.Generic;

namespace DoFactory.GangOfFour.Visitor.RealWorld
{
    /// <summary>
    /// MainApp startup class for Real-World
    /// Visitor Design Pattern.
    /// </summary>
    class MainApp
    {
        /// <summary>
        /// Entry point into console application.
        /// </summary>
        static void Main()
        {
            // Setup employee collection
            Employees employee = new Employees();
            employee.Attach(new Clerk());
            employee.Attach(new Director());
            employee.Attach(new President());

            // Employees are 'visited'
            employee.Accept(new IncomeVisitor());
            employee.Accept(new VacationVisitor());

            // Wait for user
            Console.ReadKey();
        }
    }

    /// <summary>
    /// The 'Visitor' interface
    /// </summary>
    interface IVisitor
    {
        void Visit(Element element);
    }

    /// <summary>
    /// A 'ConcreteVisitor' class
    /// </summary>
    class IncomeVisitor : IVisitor
    {
        public void Visit(Element element)
        {
            Employee employee = element as Employee;

            // Provide 10% pay raise
            employee.Income *= 1.10;
            Console.WriteLine("{0} {1}'s new income: {2:C}",
                employee.GetType().Name, employee.Name,
                employee.Income);
        }
    }

    /// <summary>
    /// A 'ConcreteVisitor' class
    /// </summary>
    class VacationVisitor : IVisitor
    {
        public void Visit(Element element)
        {
            Employee employee = element as Employee;

            // Provide 3 extra vacation days
            Console.WriteLine("{0} {1}'s new vacation days: {2}",
                employee.GetType().Name, employee.Name,
                employee.VacationDays);
        }
    }

    /// <summary>
    /// The 'Element' abstract class
    /// </summary>
    abstract class Element
    {
        public abstract void Accept(IVisitor visitor);
    }

    /// <summary>
    /// The 'ConcreteElement' class
    /// </summary>
    class Employee : Element
    {
        string name;
        double income;
        int vacationDays;

        // Constructor
        public Employee(string name, double income,
            int vacationDays)
        {
            this.name = name;
            this.income = income;
            this.vacationDays = vacationDays;
        }

        // Gets or sets the name
        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        // Gets or sets income
        public double Income
        {
            get { return income; }
            set { income = value; }
        }

        // Gets or sets number of vacation days
        public int VacationDays
        {
            get { return vacationDays; }
            set { vacationDays = value; }
        }

        public override void Accept(IVisitor visitor)
        {
            visitor.Visit(this);
        }
    }

    /// <summary>
    /// The 'ObjectStructure' class
    /// </summary>
    class Employees
    {
        List<Employee> employees = new List<Employee>();

        public void Attach(Employee employee)
        {
            employees.Add(employee);
        }

        public void Detach(Employee employee)
        {
            employees.Remove(employee);
        }

        public void Accept(IVisitor visitor)
        {
            foreach (Employee employee in employees)
            {
                employee.Accept(visitor);
            }
            Console.WriteLine();
        }
    }

    // Three employee types

    class Clerk : Employee
    {
        // Constructor
        public Clerk()
            : base("Hank", 25000.0, 14)
        {
        }
    }

    class Director : Employee
    {
        // Constructor
        public Director()
            : base("Elly", 35000.0, 16)
        {
        }
    }

    class President : Employee
    {
        // Constructor
        public President()
            : base("Dick", 45000.0, 21)
        {
        }
    }
}


text:
@extends('iep.layouts.default')

@section('title', 'IEP: SpEd 1')

@section('stylesheet')
    @parent

@endsection

@section('content')

                Your District/School

                {{ config('iep.district.name') }}

            SpEd 1 01.11

                Your City

                {{ $student->getSchoolCity() }}

Regular Education Interventions/At Risk Documentation

                Student

                {{ $student->lastfirst }}

                DOB

                {{ $student->dob->format('m/d/Y') }}

                Date

                {{ $responses->get('date') }}

                Teacher

                {{ $responses->get('teacher') }}

                Grade

                {{ $student->getGrade() }}

                Parents notified of concerns on:

                {{ $responses->get('parents-notified-on') }}

                By:

                {{ $responses->get('parents-notified-by') }}

                Primary language in home

                {{ $responses->get('primary-home-language') }}

                Student's language proficiency (IPT)

                {{ $responses->get('student-ipt') }}

                    @include('iep.html._partials.checkbox', ['haystack' => $responses->get('doesnt exist'), 'needle' => 'not here'])
                    If primary home language is other than English, attach completed language proficiency documentation, including IPT results.

            Area(s) of Concern (check all that apply):

            Academic

                    @include('iep.html._partials.checkbox', ['haystack' => $responses->get('academic'), 'needle' => 'Written Expression/Sentence structure']) Written Expression

Sentence structure

                    @include('iep.html._partials.checkbox', ['haystack' => $responses->get('academic'), 'needle' => 'Mathematics/Basic mathematics or problem solving']) Mathematics

Basic mathematics

Problem solving

                    @include('iep.html._partials.checkbox', ['haystack' => $responses->get('academic'), 'needle' => 'Reading fluency/decoding']) Reading

Fluency

Decoding

                    @include('iep.html._partials.checkbox', ['haystack' => $responses->get('academic'), 'needle' => 'Pre-Academics letter/number/color identification']) Pre-academics

Letter/number/color identification

                        @include('iep.html._partials.checkbox', ['haystack' => $responses->get('academic'), 'needle' => 'Other']) Other

                        {{ $responses->get('academic-other') }}

            Communication

                    @include('iep.html._partials.checkbox', ['haystack' => $responses->get('communication'), 'needle' => 'Articulation and/or phonological awareness']) Articulation and/or phonological awareness

                    @include('iep.html._partials.checkbox', ['haystack' => $responses->get('communication'), 'needle' => 'Language']) Language

                    @include('iep.html._partials.checkbox', ['haystack' => $responses->get('communication'), 'needle' => 'Voice']) Voice

                    @include('iep.html._partials.checkbox', ['haystack' => $responses->get('communication'), 'needle' => 'Listening Skills']) Listening Skills

                    @include('iep.html._partials.checkbox', ['haystack' => $responses->get('communication'), 'needle' => 'Stuttering']) Stuttering

                        @include('iep.html._partials.checkbox', ['haystack' => $responses->get('communication'), 'needle' => 'Other']) Other

                        {{ $responses->get('communication-other') }}

            Social / Emotional

                    @include('iep.html._partials.checkbox', ['haystack' => $responses->get('social-emotional'), 'needle' => 'Attention']) Attention

                    @include('iep.html._partials.checkbox', ['haystack' => $responses->get('social-emotional'), 'needle' => 'Task Completion']) Task Completion

                    @include('iep.html._partials.checkbox', ['haystack' => $responses->get('social-emotional'), 'needle' => 'Following Directions']) Following Directions

                    @include('iep.html._partials.checkbox', ['haystack' => $responses->get('social-emotional'), 'needle' => 'Withdrawn']) Withdrawn

                    @include('iep.html._partials.checkbox', ['haystack' => $responses->get('social-emotional'), 'needle' => 'Acting Out']) Acting Out

                    @include('iep.html._partials.checkbox', ['haystack' => $responses->get('social-emotional'), 'needle' => 'Peer Relationships']) Peer Relationships

                        @include('iep.html._partials.checkbox', ['haystack' => $responses->get('social-emotional'), 'needle' => 'Other']) Other

                        {{ $responses->get('social-emotional-other') }}

            Sensory / Motor

                    @include('iep.html._partials.checkbox', ['haystack' => $responses->get('sensory-motor'), 'needle' => 'Hearing']) Hearing

                    @include('iep.html._partials.checkbox', ['haystack' => $responses->get('sensory-motor'), 'needle' => 'Vision']) Vision

                    @include('iep.html._partials.checkbox', ['haystack' => $responses->get('sensory-motor'), 'needle' => 'Fine Motor']) Fine Motor

                    @include('iep.html._partials.checkbox', ['haystack' => $responses->get('sensory-motor'), 'needle' => 'Gross Motor']) Gross Motor

                    @include('iep.html._partials.checkbox', ['haystack' => $responses->get('sensory-motor'), 'needle' => 'Self Help/Adaptive']) Self Help / Adaptive

                        @include('iep.html._partials.checkbox', ['haystack' => $responses->get('sensory-motor'), 'needle' => 'Other']) Other

                        {{ $responses->get('sensory-motor-other') }}

            Other Information

                Previous assessments (formal/informal)

                {{ $responses->get('previous-assessments') }}

                Date(s)

                {{ $responses->get('previous-assessments-date') }}

                Results

                {{ $responses->get('results') }}

            Has this student ever received special education?{{ str_repeat(' ', 3) }}
            @include('iep.html._partials.checkbox', ['haystack' => $responses->get('received-special-education'), 'needle' => 'Yes']) Yes{{ str_repeat(' ', 3) }}
            @include('iep.html._partials.checkbox', ['haystack' => $responses->get('received-special-education'), 'needle' => 'No']) No{{ str_repeat(' ', 3) }}

                If yes, when

                {{ $responses->get('sped-when') }}

                Date of vision screening

                {{ $responses->get('date-of-vision-screening') }}

                @include('iep.html._partials.checkbox', ['haystack' => $responses->get('vision'), 'needle' => 'Pass']) Pass{{ str_repeat(' ', 3) }}
                @include('iep.html._partials.checkbox', ['haystack' => $responses->get('vision'), 'needle' => 'Fail']) Fail

                Action

                {{ $responses->get('vision-action') }}

                Date of hearing screening

                {{ $responses->get('date-of-hearing-screening') }}

                @include('iep.html._partials.checkbox', ['haystack' => $responses->get('hearing'), 'needle' => 'Pass']) Pass{{ str_repeat(' ', 3) }}
                @include('iep.html._partials.checkbox', ['haystack' => $responses->get('hearing'), 'needle' => 'Fail']) Fail

                Action

                {{ $responses->get('hearing-action') }}

            Attendance:
            @include('iep.html._partials.checkbox', ['haystack' => $responses->get('attendance'), 'needle' => 'Problem']) Problem
            @include('iep.html._partials.checkbox', ['haystack' => $responses->get('attendance'), 'needle' => 'No Problem']) No Problem

                Comments:

                {{ $responses->get('attendance-comments') }}

            Health:

            @include('iep.html._partials.checkbox', ['haystack' => $responses->get('health'), 'needle' => 'Problem']) Problem{{ str_repeat(' ', 3) }}
            @include('iep.html._partials.checkbox', ['haystack' => $responses->get('health'), 'needle' => 'No Problem']) No Problem

                Comments:

                {{ $responses->get('health-comments') }}

            Documentation must be attached for at least two interventions

                        INTERVENTIONS
                        Date Started
                        Date Ended
                        Effective

                        Utilized Adaptive Equipment

                                {{ $responses->get('utilized-adaptive-equipment-started') }}

                                {{ $responses->get('utilized-adaptive-equipment-ended') }}

                            @include('iep.html._partials.checkbox', ['haystack' => $responses->get('utilized-adaptive-equipment'), 'needle' => 'Yes']) Yes

                            @include('iep.html._partials.checkbox', ['haystack' => $responses->get('utilized-adaptive-equipment'), 'needle' => 'No']) No

                        Changed Instructor Schedule

                                {{ $responses->get('changed-instructor-schedule-started') }}

                                {{ $responses->get('changed-instructor-schedule-ended') }}

                            @include('iep.html._partials.checkbox', ['haystack' => $responses->get('changed-instructor-schedule'), 'needle' => 'Yes']) Yes

                            @include('iep.html._partials.checkbox', ['haystack' => $responses->get('changed-instructor-schedule'), 'needle' => 'No']) No

                        Differentiated Instruction: i.e. Products, Process, Pace Time, Content, Environment

                                {{ $responses->get('differentiated-instruction-started') }}

                                {{ $responses->get('differentiated-instruction-ended') }}

                            @include('iep.html._partials.checkbox', ['haystack' => $responses->get('differentiated-instruction'), 'needle' => 'Yes']) Yes

                            @include('iep.html._partials.checkbox', ['haystack' => $responses->get('differentiated-instruction'), 'needle' => 'No']) No

                        Utilized Supplemental/Intervention Materials

                                {{ $responses->get('utilized-supplemental-materials-started') }}

                                {{ $responses->get('utilized-supplemental-materials-ended') }}

                            @include('iep.html._partials.checkbox', ['haystack' => $responses->get('utilized-supplemental-materials'), 'needle' => 'Yes']) Yes

                            @include('iep.html._partials.checkbox', ['haystack' => $responses->get('utilized-supplemental-materials'), 'needle' => 'No']) No

                        Progress monitoring data on targeted skill

                                {{ $responses->get('progress-monitoring-data-started') }}

                                {{ $responses->get('progress-monitoring-data-ended') }}

                            @include('iep.html._partials.checkbox', ['haystack' => $responses->get('progress-monitoring-data'), 'needle' => 'Yes']) Yes

                            @include('iep.html._partials.checkbox', ['haystack' => $responses->get('progress-monitoring-data'), 'needle' => 'No']) No

                        Implemented Contracts (Academic/behavior)

                                {{ $responses->get('implemented-contracts-started') }}

                                {{ $responses->get('implemented-contracts-ended') }}

                            @include('iep.html._partials.checkbox', ['haystack' => $responses->get('implemented-contracts'), 'needle' => 'Yes']) Yes

                            @include('iep.html._partials.checkbox', ['haystack' => $responses->get('implemented-contracts'), 'needle' => 'No']) No

                        Differentiated Assignments

                                {{ $responses->get('differentiated-assignments-started') }}

                                {{ $responses->get('differentiated-assignments-ended') }}

                            @include('iep.html._partials.checkbox', ['haystack' => $responses->get('differentiated-assignments'), 'needle' => 'Yes']) Yes

                            @include('iep.html._partials.checkbox', ['haystack' => $responses->get('differentiated-assignments'), 'needle' => 'No']) No

                        Utilized Systematic Consequences, Reinforcement

                                {{ $responses->get('utilized-systematic-consequences-started') }}

                                {{ $responses->get('utilized-systematic-consequences-ended') }}

                            @include('iep.html._partials.checkbox', ['haystack' => $responses->get('utilized-systematic-consequences'), 'needle' => 'Yes']) Yes

                            @include('iep.html._partials.checkbox', ['haystack' => $responses->get('utilized-systematic-consequences'), 'needle' => 'No']) No

                        Used Computer-Assisted Supplementary Instruction

                                {{ $responses->get('used-computer-assisted-instruction-started') }}

                                {{ $responses->get('used-computer-assisted-instruction-ended') }}

                            @include('iep.html._partials.checkbox', ['haystack' => $responses->get('used-computer-assisted-instruction'), 'needle' => 'Yes']) Yes

                            @include('iep.html._partials.checkbox', ['haystack' => $responses->get('used-computer-assisted-instruction'), 'needle' => 'No']) No

                        Provided Direct Teaching of a Skill / Concept

                                {{ $responses->get('provided-direct-teaching-started') }}

                                {{ $responses->get('provided-direct-teaching-ended') }}

                            @include('iep.html._partials.checkbox', ['haystack' => $responses->get('provided-direct-teaching'), 'needle' => 'Yes']) Yes

                            @include('iep.html._partials.checkbox', ['haystack' => $responses->get('provided-direct-teaching'), 'needle' => 'No']) No

                        Modeled Desired Behavior

                                {{ $responses->get('modeled-desired-behavior-started') }}

                                {{ $responses->get('modeled-desired-behavior-ended') }}

                            @include('iep.html._partials.checkbox', ['haystack' => $responses->get('modeled-desired-behavior'), 'needle' => 'Yes']) Yes

                            @include('iep.html._partials.checkbox', ['haystack' => $responses->get('modeled-desired-behavior'), 'needle' => 'No']) No

                        Shared data with Parent(s) i.e. CBM, assessments (formal & Informal)

                                {{ $responses->get('shared-data-with-parents-started') }}

                                {{ $responses->get('shared-data-with-parents-ended') }}

                            @include('iep.html._partials.checkbox', ['haystack' => $responses->get('shared-data-with-parents'), 'needle' => 'Yes']) Yes

                            @include('iep.html._partials.checkbox', ['haystack' => $responses->get('shared-data-with-parents'), 'needle' => 'No']) No

                        Provided Practice i.e. independent, guided

                                {{ $responses->get('provided-practice-started') }}

                                {{ $responses->get('provided-practice-ended') }}

                            @include('iep.html._partials.checkbox', ['haystack' => $responses->get('provided-practice'), 'needle' => 'Yes']) Yes

                            @include('iep.html._partials.checkbox', ['haystack' => $responses->get('provided-practice'), 'needle' => 'No']) No

                        Provided Peer Tutoring

                                {{ $responses->get('provided-peer-tutoring-started') }}

                                {{ $responses->get('provided-peer-tutoring-ended') }}

                            @include('iep.html._partials.checkbox', ['haystack' => $responses->get('provided-peer-tutoring'), 'needle' => 'Yes']) Yes

                            @include('iep.html._partials.checkbox', ['haystack' => $responses->get('provided-peer-tutoring'), 'needle' => 'No']) No

                        Modified Classwide Discipline Plan

                                {{ $responses->get('modified-classwide-discipline-plan-started') }}

                                {{ $responses->get('modified-classwide-discipline-plan-ended') }}

                            @include('iep.html._partials.checkbox', ['haystack' => $responses->get('modified-classwide-discipline-plan'), 'needle' => 'Yes']) Yes

                            @include('iep.html._partials.checkbox', ['haystack' => $responses->get('modified-classwide-discipline-plan'), 'needle' => 'No']) No

                                Other evidence based interventions/supplementary instruction/programs

                                {{ str_repeat(' ', 5) }}{{ $responses->get('other-evidence-based-interventions') }}

To be completed by Local Education Agent (LEA) or designee:

                Refer for:

                        @include('iep.html._partials.checkbox', ['haystack' => $responses->get('refer-for'), 'needle' => '504 Evaluation'])
                        {{ str_repeat(' ', 3) }}504 Evaluation

                        @include('iep.html._partials.checkbox', ['haystack' => $responses->get('refer-for'), 'needle' => 'Alternative language porgram'])
                        {{ str_repeat(' ', 3) }}Alternative language program

                        @include('iep.html._partials.checkbox', ['haystack' => $responses->get('refer-for'), 'needle' => 'Special education evaluation'])
                        {{ str_repeat(' ', 3) }}Special education evaluation

                        @include('iep.html._partials.checkbox', ['haystack' => $responses->get('refer-for'), 'needle' => 'Referred to school problem solving team for further interventions(s) and all data transferred to student\'s classroom teacher(s)'])
                        {{ str_repeat(' ', 3) }}Referred to school problem solving team for further intervention(s) and all data transferred to student's classroom teacher(s)

                        {{ $responses->get('date-signed') }}

                        Signature of LEA or Designee

                        {{ $responses->get('sig-of-lea-designee') }}

                        Date

@endsection


text:
class Test {
  public <U> Integer meth(Integer p) {
    return p;
  }
}


text:
using System.Threading;

namespace dotless.Core.Parser.Functions
{
    using System;
    using System.Collections.Generic;
    using System.Drawing;
    using System.Drawing.Drawing2D;
    using System.Drawing.Imaging;
    using System.IO;
    using System.Linq;
    using Exceptions;
    using Infrastructure;
    using Infrastructure.Nodes;
    using Tree;
    using Utils;
    using Color = Tree.Color;

    /// <summary>
    /// Outputs <see cref="Url"/> node with gradient image implemented as described in RFC-2397 (The "data" URL scheme, http://tools.ietf.org/html/rfc2397)
    /// </summary>
    /// <remarks>
    /// Acepts color point definitions and outputs image data URL. Usage:
    /// <c>gradient(#color1, #color2[, position2][, #color3[, position3]]...)</c>
    /// Position is a zero-based offset of the color stop. If omitted, it is increased by 50 (px) or by the previous offset, if any.
    ///
    /// Currently only vertical 1px width gradients with many color stops are supported.
    /// Image data URLs are not supported by IE7 and below. IE8 restricts the size of URL to 32k.
    /// See details here: http://en.wikipedia.org/wiki/Data_URI_scheme.
    /// <example>
    /// The following example shows how to render a gradient (.less file):
    /// <code>
    /// .ui-widget-header { background: @headerBgColor gradientImage(@headerBgColor, desaturate(lighten(@headerBgColor, 30), 30)) 50% 50% repeat-x; }
    /// </code>
    /// </example>
    /// </remarks>
    public class GradientImageFunction : Function
    {
        /*
         * TODO:
         * 1. Add URI length check for IE8: max 0x8000 - needs access to config and Context.Request.Browser
         * 2. Add fallback for IE7 and lower - dump the image to disk and refer it as ordinal url(...) - needs access to config and Context.Request.Browser + disk write permissions.
         * 3. Implement horisontal gradients (1px height)
         *
         * Open questions:
         * 1. PNG 32bpp - is it ok for all cases?
         */

        #region Nested classes
        private class ColorPoint
        {
            public ColorPoint(System.Drawing.Color color, int position)
            {
                Color = color;
                Position = position;
            }

            public static string Stringify(IEnumerable<ColorPoint> points)
            {
                return points.Aggregate(
                    "", (s, point) => string.Format("{0}{1}#{2:X2}{3:X2}{4:X2}{5:X2},{6}", s, s == "" ? "" : ",",
                                                    point.Color.A, point.Color.R, point.Color.G, point.Color.B, point.Position));
            }

            public System.Drawing.Color Color { get; private set; }
            public int Position { get; private set; }
        }

        private class CacheItem
        {
            public readonly string _def;
            public readonly string _url;

            public CacheItem(string def, string url)
            {
                _def = def;
                _url = url;
            }
        }
        #endregion Nested classes

        #region Fields
        public const int DEFAULT_COLOR_OFFSET = 50;

        private const int CACHE_LIMIT = 50;
        private static readonly ReaderWriterLockSlim _cacheLock = new ReaderWriterLockSlim();
        private static readonly List<CacheItem> _cache = new List<CacheItem>();
        #endregion Fields

        protected override Node Evaluate(Env env)
        {
            ColorPoint[] points = GetColorPoints();

            WarnNotSupportedByLessJS("gradientImage(color, color[, position])");

            string colorDefs = ColorPoint.Stringify(points);
            string imageUrl = GetFromCache(colorDefs);
            if (imageUrl == null)
            {
                imageUrl = "data:image/png;base64," + Convert.ToBase64String(GetImageData(points));
                AddToCache(colorDefs, imageUrl);
            }

            return new Url(new TextNode(imageUrl));
        }

        private byte[] GetImageData(ColorPoint[] points)
        {
            ColorPoint last = points.Last();
            int size = last.Position + 1;

            using (var ms = new MemoryStream())
            {
                using (var bmp = new Bitmap(1, size, PixelFormat.Format32bppArgb))
                {
                    using (Graphics g = Graphics.FromImage(bmp))
                    {
                        for (int i = 1; i < points.Length; i++)
                        {
                            var rect = new Rectangle(0, points[i - 1].Position, 1, points[i].Position);
                            var brush = new LinearGradientBrush(
                                rect,
                                points[i - 1].Color,
                                points[i].Color,
                                LinearGradientMode.Vertical);
                            g.FillRectangle(brush, rect);
                        }

                        bmp.SetPixel(0, last.Position, last.Color);
                        bmp.Save(ms, ImageFormat.Png);
                    }
                }
                return ms.ToArray();
            }
        }

        private ColorPoint[] GetColorPoints()
        {
            int argCount = Arguments.Count;
            Guard.ExpectMinArguments(2, argCount, this, Location);
            Guard.ExpectAllNodes<Color>(Arguments.Take(2), this, Location);
            var first = (Color) Arguments[0];
            var points = new List<ColorPoint>
                {
                    new ColorPoint((System.Drawing.Color) first, 0)
                };

            int prevPos = 0;
            int prevOffset = DEFAULT_COLOR_OFFSET;

            for (int i = 1; i < argCount; i++)
            {
                Node arg = Arguments[i];
                Guard.ExpectNode<Color>(arg, this, Location);
                var color = arg as Color;
                int pos = prevPos + prevOffset;
                if (i < argCount - 1)
                {
                    var numberArg = Arguments[i + 1] as Number;
                    if (numberArg)
                    {
                        pos = Convert.ToInt32(numberArg.Value);
                        if (pos <= prevPos)
                        {
                            throw new ParsingException(
                                string.Format("Incrementing color point position expected, at least {0}, found {1}", prevPos + 1, numberArg.Value), Location);
                        }
                        prevOffset = pos - prevPos;
                        i++;
                    }
                }
                points.Add(new ColorPoint((System.Drawing.Color) color, pos));
                prevPos = pos;
            }

            return points.ToArray();
        }

        private static string GetFromCache(string colorDefs)
        {
            _cacheLock.EnterReadLock();
            try
            {
                var cached = _cache.FirstOrDefault(item => item._def == colorDefs);
                return cached != null ? cached._url : null;
            }
            finally
            {
                _cacheLock.ExitReadLock();
            }
        }

        private static void AddToCache(string colorDefs, string imageUrl)
        {
            _cacheLock.EnterUpgradeableReadLock();
            try
            {
                if (_cache.All(item => item._def != colorDefs))
                {
                    _cacheLock.EnterWriteLock();
                    try
                    {
                        if (_cache.Count >= CACHE_LIMIT)
                            _cache.RemoveRange(0, CACHE_LIMIT / 2);
                        var item = new CacheItem(colorDefs, imageUrl);
                        _cache.Add(item);
                    }
                    finally
                    {
                        _cacheLock.ExitWriteLock();
                    }
                }
            }
            finally
            {
                _cacheLock.ExitUpgradeableReadLock();
            }
        }
    }
}


text:
using System;
using System.Collections.Generic;
using System.Linq;

using Foundation;
using UIKit;
using ImageCircle.Forms.Plugin.iOS;
using Com.OneSignal;

namespace GDG_SP.iOS
{
    // The UIApplicationDelegate for the application. This class is responsible for launching the
    // User Interface of the application, as well as listening (and optionally responding) to
    // application events from iOS.
    [Register("AppDelegate")]
    public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
    {
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();
			Xamarin.Forms.DependencyService.Register<Dependencies_iOS>();

            ImageCircleRenderer.Init();
            UIApplication.SharedApplication.SetStatusBarStyle(UIStatusBarStyle.LightContent, false);

            LoadApplication(new App());

            OneSignal.Init((message, additionalData, isActivity) => {
                    MainPage.openEvent = (int)additionalData["eventid"];
                });

            return base.FinishedLaunching(app, options);
        }
    }
}


text:
#pragma checksum "..\..\BallerStatus.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "9D07BD97623B3D1C53CF4B0B636A1702"
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.30319.18444
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Automation;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Effects;
using System.Windows.Media.Imaging;
using System.Windows.Media.Media3D;
using System.Windows.Media.TextFormatting;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Shell;

namespace wpf_test {

    /// <summary>
    /// MainWindow
    /// </summary>
    public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {

        #line 7 "..\..\BallerStatus.xaml"
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
        internal System.Windows.Controls.RadioButton Radio1;

        #line default
        #line hidden

        #line 8 "..\..\BallerStatus.xaml"
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
        internal System.Windows.Controls.RadioButton Radio2;

        #line default
        #line hidden

        private bool _contentLoaded;

        /// <summary>
        /// InitializeComponent
        /// </summary>
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
        public void InitializeComponent() {
            if (_contentLoaded) {
                return;
            }
            _contentLoaded = true;
            System.Uri resourceLocater = new System.Uri("/wpf_test;component/ballerstatus.xaml", System.UriKind.Relative);

            #line 1 "..\..\BallerStatus.xaml"
            System.Windows.Application.LoadComponent(this, resourceLocater);

            #line default
            #line hidden
        }

        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
            switch (connectionId)
            {
            case 1:
            this.Radio1 = ((System.Windows.Controls.RadioButton)(target));
            return;
            case 2:
            this.Radio2 = ((System.Windows.Controls.RadioButton)(target));
            return;
            case 3:

            #line 9 "..\..\BallerStatus.xaml"
            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
            return;
            }
            this._contentLoaded = true;
        }
    }
}


text:
import React from 'react';
import { Component } from 'react';
import ConfirmEmailContainer from '../containers/ConfirmEmailContainer';

export default class ConfirmEmail extends Component {
    render() {
        return (
            <ConfirmEmailContainer />
        );
    }
}


text:
import json
import os
import time
import pytest

from .md_conf import MDConf, MDConf
from .md_env import MDTestEnv

@pytest.mark.skipif(condition=not MDTestEnv.has_acme_server(),
                    reason="no ACME test server configured")
class TestMessage:

    @pytest.fixture(autouse=True, scope='class')
    def _class_scope(self, env, acme):
        env.APACHE_CONF_SRC = "data/test_auto"
        acme.start(config='default')
        env.check_acme()
        env.clear_store()
        MDConf(env).install()
        assert env.apache_restart() == 0

    @pytest.fixture(autouse=True, scope='function')
    def _method_scope(self, env, request):
        env.clear_store()
        self.test_domain = env.get_request_domain(request)
        self.mcmd = os.path.join(env.test_dir, "../modules/md/message.py")
        self.mlog = os.path.join(env.gen_dir, "message.log")
        if os.path.isfile(self.mlog):
            os.remove(self.mlog)

    # test: signup with configured message cmd that is invalid
    def test_md_901_001(self, env):
        domain = self.test_domain
        domains = [domain, "www." + domain]
        conf = MDConf(env)
        conf.add("MDMessageCmd blablabla")
        conf.add_drive_mode("auto")
        conf.add_md(domains)
        conf.add_vhost(domains)
        conf.install()
        assert env.apache_restart() == 0
        assert env.await_file(env.store_staged_file(domain, 'job.json'))
        stat = env.get_md_status(domain)
        # this command should have failed and logged an error
        assert stat["renewal"]["last"]["problem"] == "urn:org:apache:httpd:log:AH10109:"

    # test: signup with configured message cmd that is valid but returns != 0
    def test_md_901_002(self, env):
        mcmd = os.path.join(env.test_dir, "../modules/md/notifail.py")
        domain = self.test_domain
        domains = [domain, "www." + domain]
        conf = MDConf(env)
        conf.add(f"MDMessageCmd {mcmd} {self.mlog}")
        conf.add_drive_mode("auto")
        conf.add_md(domains)
        conf.add_vhost(domains)
        conf.install()
        assert env.apache_restart() == 0
        assert env.await_error(domain)
        stat = env.get_md_status(domain)
        # this command should have failed and logged an error
        assert stat["renewal"]["last"]["problem"] == "urn:org:apache:httpd:log:AH10109:"

    # test: signup with working message cmd and see that it logs the right things
    def test_md_901_003(self, env):
        domain = self.test_domain
        domains = [domain, "www." + domain]
        conf = MDConf(env)
        conf.add(f"MDMessageCmd {self.mcmd} {self.mlog}")
        conf.add_drive_mode("auto")
        conf.add_md(domains)
        conf.add_vhost(domains)
        conf.install()
        assert env.apache_restart() == 0
        assert env.await_completion([domain], restart=False)
        time.sleep(1)
        stat = env.get_md_status(domain)
        # this command did not fail and logged itself the correct information
        assert stat["renewal"]["last"]["status"] == 0
        assert stat["renewal"]["log"]["entries"]
        assert stat["renewal"]["log"]["entries"][0]["type"] == "message-renewed"
        # shut down server to make sure that md has completed
        assert env.apache_stop() == 0
        nlines = open(self.mlog).readlines()
        assert 3 == len(nlines)
        nlines = [s.strip() for s in nlines]
        assert "['{cmd}', '{logfile}', 'challenge-setup:http-01:{dns}', '{mdomain}']".format(
            cmd=self.mcmd, logfile=self.mlog, mdomain=domain, dns=domains[0]) in nlines
        assert "['{cmd}', '{logfile}', 'challenge-setup:http-01:{dns}', '{mdomain}']".format(
            cmd=self.mcmd, logfile=self.mlog, mdomain=domain, dns=domains[1]) in nlines
        assert nlines[2].strip() == "['{cmd}', '{logfile}', 'renewed', '{mdomain}']".format(
            cmd=self.mcmd, logfile=self.mlog, mdomain=domain)

    # test issue #145:
    # - a server renews a valid certificate and is not restarted when recommended
    # - the job did not clear its next_run and was run over and over again
    # - the job logged the re-verifications again and again. which was saved.
    # - this eventually flushed out the "message-renew" log entry
    # - which caused the renew message handling to trigger again and again
    # the fix does:
    # - reset the next run
    # - no longer adds the re-validations to the log
    # - messages only once
    @pytest.mark.skipif(MDTestEnv.is_pebble(), reason="ACME server certs valid too long")
    def test_md_901_004(self, env):
        domain = self.test_domain
        domains = [domain, "www." + domain]
        conf = MDConf(env)
        conf.add_md(domains)
        conf.add_vhost(domains)
        conf.install()
        assert env.apache_restart() == 0
        assert env.await_completion([domain])
        # force renew
        conf = MDConf(env)
        conf.add(f"MDMessageCmd {self.mcmd} {self.mlog}")
        conf.add("MDRenewWindow 120d")
        conf.add("MDActivationDelay -7d")
        conf.add_md(domains)
        conf.add_vhost(domains)
        conf.install()
        assert env.apache_restart() == 0
        assert env.await_completion([domain], restart=False)
        env.get_md_status(domain)
        assert env.await_file(self.mlog)
        nlines = open(self.mlog).readlines()
        assert len(nlines) == 1
        assert nlines[0].strip() == f"['{self.mcmd}', '{self.mlog}', 'renewed', '{domain}']"

    def test_md_901_010(self, env):
        #  MD with static cert files, lifetime in renewal window, no message about renewal
        domain = self.test_domain
        domains = [domain, 'www.%s' % domain]
        testpath = os.path.join(env.gen_dir, 'test_901_010')
        # cert that is only 10 more days valid
        env.create_self_signed_cert(domains, {"notBefore": -70, "notAfter": 20},
                                    serial=901010, path=testpath)
        cert_file = os.path.join(testpath, 'pubcert.pem')
        pkey_file = os.path.join(testpath, 'privkey.pem')
        assert os.path.exists(cert_file)
        assert os.path.exists(pkey_file)
        conf = MDConf(env)
        conf.add(f"MDMessageCmd {self.mcmd} {self.mlog}")
        conf.start_md(domains)
        conf.add(f"MDCertificateFile {cert_file}")
        conf.add(f"MDCertificateKeyFile {pkey_file}")
        conf.end_md()
        conf.add_vhost(domain)
        conf.install()
        assert env.apache_restart() == 0
        assert not os.path.isfile(self.mlog)

    def test_md_901_011(self, env):
        # MD with static cert files, lifetime in warn window, check message
        domain = self.test_domain
        domains = [domain, f'www.{domain}']
        testpath = os.path.join(env.gen_dir, 'test_901_011')
        # cert that is only 10 more days valid
        env.create_self_signed_cert(domains, {"notBefore": -85, "notAfter": 5},
                                    serial=901011, path=testpath)
        cert_file = os.path.join(testpath, 'pubcert.pem')
        pkey_file = os.path.join(testpath, 'privkey.pem')
        assert os.path.exists(cert_file)
        assert os.path.exists(pkey_file)
        conf = MDConf(env)
        conf.add(f"MDMessageCmd {self.mcmd} {self.mlog}")
        conf.start_md(domains)
        conf.add(f"MDCertificateFile {cert_file}")
        conf.add(f"MDCertificateKeyFile {pkey_file}")
        conf.end_md()
        conf.add_vhost(domain)
        conf.install()
        assert env.apache_restart() == 0
        assert env.await_file(self.mlog)
        nlines = open(self.mlog).readlines()
        assert len(nlines) == 1
        assert nlines[0].strip() == f"['{self.mcmd}', '{self.mlog}', 'expiring', '{domain}']"
        # check that we do not get it resend right away again
        assert env.apache_restart() == 0
        time.sleep(1)
        nlines = open(self.mlog).readlines()
        assert len(nlines) == 1
        assert nlines[0].strip() == f"['{self.mcmd}', '{self.mlog}', 'expiring', '{domain}']"

    # MD, check messages from stapling
    @pytest.mark.skipif(MDTestEnv.lacks_ocsp(), reason="no OCSP responder")
    def test_md_901_020(self, env):
        domain = self.test_domain
        domains = [domain]
        conf = MDConf(env)
        conf.add(f"MDMessageCmd {self.mcmd} {self.mlog}")
        conf.add_drive_mode("auto")
        conf.add_md(domains)
        conf.add("MDStapling on")
        conf.add_vhost(domains)
        conf.install()
        assert env.apache_restart() == 0
        assert env.await_completion([domain])
        env.await_ocsp_status(domain)
        assert env.await_file(self.mlog)
        time.sleep(1)
        nlines = open(self.mlog).readlines()
        assert len(nlines) == 4
        assert nlines[0].strip() == \
               f"['{self.mcmd}', '{self.mlog}', 'challenge-setup:http-01:{domain}', '{domain}']"
        assert nlines[1].strip() == \
               f"['{self.mcmd}', '{self.mlog}', 'renewed', '{domain}']"
        assert nlines[2].strip() == \
               f"['{self.mcmd}', '{self.mlog}', 'installed', '{domain}']"
        assert nlines[3].strip() == \
               f"['{self.mcmd}', '{self.mlog}', 'ocsp-renewed', '{domain}']"

    # test: while testing gh issue #146, it was noted that a failed renew notification never
    # resets the MD activity.
    @pytest.mark.skipif(MDTestEnv.is_pebble(), reason="ACME server certs valid too long")
    def test_md_901_030(self, env):
        domain = self.test_domain
        domains = [domain, "www." + domain]
        conf = MDConf(env)
        conf.add_md(domains)
        conf.add_vhost(domains)
        conf.install()
        assert env.apache_restart() == 0
        assert env.await_completion([domain])
        # set the warn window that triggers right away and a failing message command
        conf = MDConf(env)
        conf.add(f"MDMessageCmd {env.test_dir}../modules/md/notifail.py {self.mlog}")
        conf.add_md(domains)
        conf.add("""
            MDWarnWindow 100d
            """)
        conf.add_vhost(domains)
        conf.install()
        assert env.apache_restart() == 0
        env.get_md_status(domain)
        # this command should have failed and logged an error
        # shut down server to make sure that md has completed
        assert env.await_file(env.store_staged_file(domain, 'job.json'))
        while True:
            with open(env.store_staged_file(domain, 'job.json')) as f:
                job = json.load(f)
                if job["errors"] > 0:
                    assert job["errors"] > 0,  "unexpected job result: {0}".format(job)
                    assert job["last"]["problem"] == "urn:org:apache:httpd:log:AH10109:"
                    break
            time.sleep(0.1)
        env.httpd_error_log.ignore_recent()

        # reconfigure to a working notification command and restart
        conf = MDConf(env)
        conf.add(f"MDMessageCmd {self.mcmd} {self.mlog}")
        conf.add_md(domains)
        conf.add("""
            MDWarnWindow 100d
            """)
        conf.add_vhost(domains)
        conf.install()
        assert env.apache_restart() == 0
        assert env.await_file(self.mlog)
        # we see the notification logged by the command
        nlines = open(self.mlog).readlines()
        assert len(nlines) == 1
        assert nlines[0].strip() == f"['{self.mcmd}', '{self.mlog}', 'expiring', '{domain}']"
        # the error needs to be gone
        assert env.await_file(env.store_staged_file(domain, 'job.json'))
        with open(env.store_staged_file(domain, 'job.json')) as f:
            job = json.load(f)
            assert job["errors"] == 0

    # MD, check a failed challenge setup
    def test_md_901_040(self, env):
        domain = self.test_domain
        domains = [domain]
        conf = MDConf(env)
        mcmd = os.path.join(env.test_dir, "../modules/md/msg_fail_on.py")
        conf.add(f"MDMessageCmd {mcmd} {self.mlog} challenge-setup")
        conf.add_drive_mode("auto")
        conf.add_md(domains)
        conf.add_vhost(domains)
        conf.install()
        assert env.apache_restart() == 0
        assert env.await_error(domain)
        assert env.await_file(self.mlog)
        time.sleep(1)
        nlines = open(self.mlog).readlines()
        assert len(nlines) == 2
        assert nlines[0].strip() == \
               f"['{mcmd}', '{self.mlog}', 'challenge-setup:http-01:{domain}', '{domain}']"
        assert nlines[1].strip() == \
               f"['{mcmd}', '{self.mlog}', 'errored', '{domain}']"
        stat = env.get_md_status(domain)
        # this command should have failed and logged an error
        assert stat["renewal"]["last"]["problem"] == "challenge-setup-failure"