text:
def emailrequester(miq_request, appliance, msg, provisionRequestApproval)
  $evm.log('info', "Requester email logic starting")

  # Get requester object
  requester = miq_request.requester

  # Get requester email else set to nil
  requester_email = requester.email || nil

  # Get Owner Email else set to nil
  owner_email = miq_request.options[:owner_email] || nil
  $evm.log('info', "Requester email:<#{requester_email}> Owner Email:<#{owner_email}>")

  # if to is nil then use requester_email or owner_email
  to = nil
  to ||= requester_email || owner_email

  # If to is still nil use to_email_address from model
  to ||= $evm.object['to_email_address']

  # Get from_email_address from model unless specified below
  from = nil
  from ||= $evm.object['from_email_address']

  # Get signature from model unless specified below
  signature = nil
  signature ||= $evm.object['signature']

  # Set email subject
  if provisionRequestApproval
    subject = "Request ID #{miq_request.id} - Your virtual machine request was not approved"
  else
    subject = "Request ID #{miq_request.id} - Virtual Machine request was denied due to quota limitations"
  end

  # Build email body
  body = "Hello, "
  body += "
#{msg}."
  body += "

Approvers notes: #{miq_request.reason}" if provisionRequestApproval
  body += "

For more information you can go to: https://#{appliance}/miq_request/show/#{miq_request.id}"
  body += "

 Thank you,"
  body += "
 #{signature}"

  # Send email to requester
  $evm.log('info', "Sending email to <#{to}> from <#{from}> subject: <#{subject}>")
  $evm.execute(:send_email, to, from, subject, body)
end

###################################
#
# Method: emailapprover
#
# Build email to approver with reason
#
###################################
def emailapprover(miq_request, appliance, msg, provisionRequestApproval)
  $evm.log('info', "Approver email logic starting")

  # Override to requesters to_email_address below or get value from requester.email then from model
  requester_email = miq_request.requester.email
  if requester_email.to_s.empty?
    requester_email ||= miq_request.requester.email
  else
    requester_email ||= $evm.object['to_email_address']
  end

  # Override to email address below or get to_email_address from from model
  to = nil
  to ||= $evm.object['to_email_address']

  # Override from_email_address below or get from_email_address from model
  from = nil
  from ||= $evm.object['from_email_address']

  # Get signature from model unless specified below
  signature = nil
  signature ||= $evm.object['signature']

  # Set email subject
  if provisionRequestApproval
    subject = "Request ID #{miq_request.id} - Virtual machine request was not approved"
  else
    subject = "Request ID #{miq_request.id} - Virtual Machine request was denied due to quota limitations"
  end

  # Build email body
  body = "Approver, "
  body += "
A request received from #{requester_email} was denied."
  body += "

#{msg}."
  body += "

Approvers notes: #{miq_request.reason}" if provisionRequestApproval
  body += "

For more information you can go to: https://#{appliance}/miq_request/show/#{miq_request.id}"
  body += "

 Thank you,"
  body += "
 #{signature}"

  # Send email to approver
  $evm.log('info', "Sending email to <#{to}> from <#{from}> subject: <#{subject}>")
  $evm.execute(:send_email, to, from, subject, body)
end

# Get miq_request from root
miq_request = $evm.root['miq_request']
raise "miq_request missing" if miq_request.nil?
$evm.log('info', "Detected Request:<#{miq_request.id}> with Approval State:<#{miq_request.approval_state}>")

# Override the default appliance IP Address below
appliance = nil
# appliance ||= 'evmserver.example.com'
appliance ||= $evm.root['miq_server'].ipaddress

# Get incoming message or set it to default if nil
msg = miq_request.resource.message || "Request denied"

# Check to see which state machine called this method
if msg.downcase.include?('quota')
  provisionRequestApproval = false
else
  provisionRequestApproval = true
end

# Email Requester
emailrequester(miq_request, appliance, msg, provisionRequestApproval)

# Email Approver
emailapprover(miq_request, appliance, msg, provisionRequestApproval)


text:
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.

using System.Net;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;

namespace ClientRuntime.Tests.Common.Fakes
{
    public class BadResponseDelegatingHandler : DelegatingHandler
    {
        public BadResponseDelegatingHandler()
        {
            StatusCodeToReturn = HttpStatusCode.InternalServerError;
            NumberOfTimesToFail = int.MaxValue;
        }

        public int NumberOfTimesFailedSoFar { get; private set; }

        public int NumberOfTimesToFail { get; set; }

        public HttpStatusCode StatusCodeToReturn { get; set; }

        protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request,
            CancellationToken cancellationToken)
        {
            HttpResponseMessage response = new HttpResponseMessage(HttpStatusCode.OK);
            if (NumberOfTimesToFail > NumberOfTimesFailedSoFar)
            {
                response = new HttpResponseMessage(StatusCodeToReturn);
                NumberOfTimesFailedSoFar++;
            }
            return Task.Run(() => response);
        }
    }
}

redpajama_set_name: RedPajamaGithub


text:
package org.apache.spark.rdd

import org.apache.spark.{Partition, TaskContext}
import scala.reflect.ClassTag

private[spark] class MapPartitionsRDD[U: ClassTag, T: ClassTag](
    prev: RDD[T],
    f: (TaskContext, Int, Iterator[T]) => Iterator[U],  // (TaskContext, partition index, iterator)
    preservesPartitioning: Boolean = false)
  extends RDD[U](prev) {

  override val partitioner = if (preservesPartitioning) firstParent[T].partitioner else None

  override def getPartitions: Array[Partition] = firstParent[T].partitions

  override def compute(split: Partition, context: TaskContext) =
    f(context, split.index, firstParent[T].iterator(split, context))
}


text:
<!doctype html>

		<meta charset="utf-8">

		<title>Credit Risk Measurement and Management | Chapter 2 | Credit Derivatives and Credit-Linked Notes</title>

		<meta name="description" content="Financial Risk Manager Part 2 Study Materials">
		<meta name="author" content="MacLane Wilkison">

		<meta name="apple-mobile-web-app-capable" content="yes" />
		<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />

		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">

		<link rel="stylesheet" href="css/reveal.min.css">
		<link rel="stylesheet" href="css/theme/default.css" id="theme">

		<link rel="stylesheet" href="lib/css/zenburn.css">

Chapter 2

Credit Derivatives and Credit-Linked Notes

						Created for Alchemists Academy by MacLane Wilkison

Introduction

Credit derivatives - bilateral derivatives contracts in which one party compensates another following an adverse triggering event

Credit protection buyers make periodic payments to protection sellers in exchange for compensation in the event of a default in the reference asset

Single-Name Credit Default Swaps

Payoff occurs if an eligible obligation issued by the reference name defaults

Cash-settled vs. physically-settled

						In a cash-settled CDS the protection seller makes a single cash payment to the protection buyer equal to the par value of the defaulted reference asset minus its current market price. A physically-settled CDS requires the protection buyer to deliver the defaulted reference asset to the protection seller in exchange for a fixed cash amount. The reference name is the legal entity corresponding to a specific issuer or obligor.

Portfolio Credit Default Swaps

Entitles buyer to compensation following one or more defaults in a reference portfolio

Basket CDS - multiname protection

Nth to default CDS

Senior and subordinated basket CDS

Limits and attachment points

Correlation play

Credit indexes

Other

Asset default swap (ADS)

Equity default swap (EDS)

Total return swap (TRS)

Credit-linked note (CLN)

						ADSs are single-name CDSs in which the reference name is a securitized product. EDSs are CDSs in which the reference asset is a stock. A TRS is a contract in which the protection seller pays LIBOR plus a spread and receives LIBOR plus a cash amount equal to all realized interest payments plus any change in market value on the reference asset. A CLN is the funded equivalent of a CDS, in which the money to cover the contingent payment has been set aside in advance.

THE END

AlchemistsAcademy.com


text:
package com.github.blausql.core.util;

public final class TextUtils {

    public static final String LINE_SEPARATOR = System.getProperty("line.separator");

    private TextUtils() {
        // no external instances
    }

    public static String breakLine(String theString, int maxLineLen) {
        StringBuilder multilineStringBuilder = new StringBuilder();

        for (int i = 0; i < theString.length(); i += maxLineLen) {
            multilineStringBuilder.append(
                    theString.substring(i, Math.min(i + maxLineLen, theString.length())));

            multilineStringBuilder.append(LINE_SEPARATOR);
        }
        return multilineStringBuilder.toString();
    }

    public static String joinStringsWithNewLine(String... lines) {
        return joinStringsWithSeparator(LINE_SEPARATOR, lines);
    }

    public static String joinStringsWithSeparator(String separator, String... lines) {
        StringBuilder stringBuilder = new StringBuilder();

        for (String aLine : lines) {
            stringBuilder.append(aLine);
            stringBuilder.append(separator);
        }

        return stringBuilder.toString();
    }
}


text:
var searchData=
[
  ['noadapter',['noAdapter',['../struct_adapter_trimming_params.html#a8386f1819859d97bb58011903f5dd847',1,'AdapterTrimmingParams']]]
];


text:
<?xml version="1.0"?>
<ruleset>
    <description>The coding standard used for applications using BEAR.Sunday Framework.</description>
    <rule ref="Generic.NamingConventions.UpperCaseConstantName"/>
    <rule ref="Generic.CodeAnalysis.UnusedFunctionParameter"/>
    <rule ref="Generic.Strings.UnnecessaryStringConcat"/>
    <rule ref="PSR2">
        <exclude name="Generic.Files.LineLength"/>
        <exclude name="PSR2.Classes.PropertyDeclaration.Underscore"/>
        <exclude name="PSR2.Methods.MethodDeclaration.Underscore"/>
    </rule>
    <rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
    <rule ref="PEAR.Commenting.FunctionComment">
        <exclude name="PEAR.Commenting.FunctionComment.MissingReturn"/>
        <exclude name="PEAR.Commenting.FunctionComment.MissingParamComment"/>
        <exclude name="PEAR.Commenting.FunctionComment.SpacingBeforeTags"/>
        <exclude name="PEAR.Commenting.FunctionComment.MissingParamTag"/>
        <exclude name="PEAR.Commenting.FunctionComment.Missing"/>
        <exclude name="PEAR.Commenting.FunctionComment.MissingReturn"/>
        <exclude name="PEAR.Commenting.FunctionComment.ParameterCommentsNotAligned"/>
        <exclude name="PEAR.Commenting.FileComment.Missing"/>
    </rule>
    <file>src</file>
    <file>tests</file>
</ruleset>


text:
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import descriptor_pb2
# @@protoc_insertion_point(imports)

import groundstation.objects.base_object_pb2

DESCRIPTOR = _descriptor.FileDescriptor(
  name='groundstation/objects/update_object.proto',
  package='',
  serialized_pb='\n)groundstation/objects/update_object.proto\x1a\'groundstation/objects/base_object.proto\"O\n\x0cUpdateObject\x12\x0f\n\x07parents\x18\x01 \x03(\x0c\x12\x0c\n\x04\x64\x61ta\x18\x02 \x02(\x0c\x12 \n\x04type\x18\x0f \x01(\x0e\x32\n.GizmoType:\x06UPDATE')

_UPDATEOBJECT = _descriptor.Descriptor(
  name='UpdateObject',
  full_name='UpdateObject',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='parents', full_name='UpdateObject.parents', index=0,
      number=1, type=12, cpp_type=9, label=3,
      has_default_value=False, default_value=[],
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    _descriptor.FieldDescriptor(
      name='data', full_name='UpdateObject.data', index=1,
      number=2, type=12, cpp_type=9, label=2,
      has_default_value=False, default_value="",
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    _descriptor.FieldDescriptor(
      name='type', full_name='UpdateObject.type', index=2,
      number=15, type=14, cpp_type=8, label=1,
      has_default_value=True, default_value=2,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  options=None,
  is_extendable=False,
  extension_ranges=[],
  serialized_start=86,
  serialized_end=165,
)

_UPDATEOBJECT.fields_by_name['type'].enum_type = groundstation.objects.base_object_pb2._GIZMOTYPE
DESCRIPTOR.message_types_by_name['UpdateObject'] = _UPDATEOBJECT

class UpdateObject(_message.Message):
  __metaclass__ = _reflection.GeneratedProtocolMessageType
  DESCRIPTOR = _UPDATEOBJECT

  # @@protoc_insertion_point(class_scope:UpdateObject)

# @@protoc_insertion_point(module_scope)


text:
package com.laudandjolynn.mytv.exception;

/**
 * @author: Laud
 * @email: htd0324@gmail.com
 * @date: 2015年3月25日 上午9:18:03
 * @copyright: www.laudandjolynn.com
 */
public class MyTvException extends RuntimeException {
	private static final long serialVersionUID = -2699920699817552410L;

	public MyTvException() {
		super();
	}

	public MyTvException(String message, Throwable cause) {
		super(message, cause);
	}

	public MyTvException(String message) {
		super(message);
	}

	public MyTvException(Throwable cause) {
		super(cause);
	}

}


text:
package com.logginghub.logging.modules.history;

import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.nio.ByteBuffer;

import com.logginghub.logging.DefaultLogEvent;
import com.logginghub.logging.messages.SerialisationStrategy;
import com.logginghub.utils.FormattedRuntimeException;
import com.logginghub.utils.sof.SerialisableObject;

public class JavaSerialisationStrategy implements SerialisationStrategy {

    @Override public void serialise(ByteBuffer buffer, SerialisableObject logEvent) throws IOException {

        ByteArrayOutputStream bos = new ByteArrayOutputStream();
        ObjectOutputStream out = new ObjectOutputStream(bos);
        out.writeObject(logEvent);
        out.close();

        byte[] buf = bos.toByteArray();
        buffer.putInt(buf.length);
        buffer.put(buf);
    }

    @Override public String toString() {
        return "JavaSerialisationStrategy ";
    }

    @Override public SerialisableObject deserialise(ByteBuffer byteBuffer) throws IOException {

        int size = byteBuffer.getInt();
        byte[] data = new byte[size];
        byteBuffer.get(data);

        ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(data));
        DefaultLogEvent event;
        try {
            event = (DefaultLogEvent) in.readObject();
        }
        catch (ClassNotFoundException e) {
            throw new FormattedRuntimeException(e, "Failed to create object");
        }
        in.close();

        return event;
    }

}


text:
package edu.utah.sci.cyclist.core.presenter;

import org.mo.closure.v1.Closure;

import edu.utah.sci.cyclist.core.event.notification.CyclistNotification;
import edu.utah.sci.cyclist.core.event.notification.CyclistNotificationHandler;
import edu.utah.sci.cyclist.core.event.notification.CyclistNotifications;
import edu.utah.sci.cyclist.core.event.notification.CyclistTableNotification;
import edu.utah.sci.cyclist.core.event.notification.EventBus;
import edu.utah.sci.cyclist.core.model.Simulation;
import edu.utah.sci.cyclist.core.model.Table;
import edu.utah.sci.cyclist.core.ui.View;

public class TablePresenter extends CyclistViewPresenter {

	/**
	 * TablePresenter
	 * Constructor
	 * @param bus
	 */

	public TablePresenter(EventBus bus) {
		super(bus);

		SingleSelection<Table> selectionModelTbl = new SingleSelection<Table>();
		SingleSelection<Simulation> selectionModelSim = new SingleSelection<Simulation>();
		selectionModelTbl.setOnSelectItemAction(new Closure.V2<Table, Boolean>() {
			@Override
			public void call(Table table, Boolean value) {
				getView().selectTable(table, value);

			}
		});

		setSelectionModelTbl(selectionModelTbl);
		setSelectionModelSim(selectionModelSim);
		addNotificationHandlers();
	}

	/**
	 * setView
	 * @param view
	 */

	public void setView(View view) {
		super.setView(view);

		getView().setOnTableDrop(new Closure.V1<Table>() {

			@Override
			public void call(Table table) {
				addTable(table, false /* remote */, true /* active */, false /* remoteActive */);
			}
		});
	}

	/**
	 * addNotficicationHandlers
	 */

	public void addNotificationHandlers() {
		addNotificationHandler(CyclistNotifications.DATASOURCE_ADD, new CyclistNotificationHandler() {

			@Override
			public void handle(CyclistNotification event) {
				CyclistTableNotification notification = (CyclistTableNotification) event;

				addTable(notification.getTable(), true /*remote*/, false /* active */, false /* remoteActive */);
			}
		});

		addNotificationHandler(CyclistNotifications.DATASOURCE_REMOVE, new CyclistNotificationHandler() {

			@Override
			public void handle(CyclistNotification event) {
				CyclistTableNotification notification = (CyclistTableNotification) event;
				removeTable(notification.getTable());
			}
		});

		addNotificationHandler(CyclistNotifications.DATASOURCE_SELECTED, new CyclistNotificationHandler() {

			@Override
			public void handle(CyclistNotification event) {
				CyclistTableNotification notification = (CyclistTableNotification) event;
				getSelectionModelTbl().selectItem(notification.getTable(), true);
			}
		});

		addNotificationHandler(CyclistNotifications.DATASOURCE_UNSELECTED, new CyclistNotificationHandler() {

			@Override
			public void handle(CyclistNotification event) {
				CyclistTableNotification notification = (CyclistTableNotification) event;
				getSelectionModelTbl().selectItem(notification.getTable(), false);
			}
		});
	}
}


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

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

          home

          edit page
          issue tracker

          <gcse:search></gcse:search>

        This page pertains to UD version 2.

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

Treebank Statistics: UD_Sanskrit-UFAL: Relations: iobj

This relation is universal.

10 nodes (1%) are attached to their parents as iobj.

8 instances of iobj (80%) are right-to-left (child precedes parent).
Average distance between parent and child is 2.3.

The following 3 pairs of parts of speech are connected with iobj: <tt>VERB</tt>-<tt>NOUN</tt> (4; 40% instances), <tt>VERB</tt>-<tt>PRON</tt> (4; 40% instances), <tt>ADJ</tt>-<tt>PRON</tt> (2; 20% instances).

# visual-style 9	bgColor:blue
# visual-style 9	fgColor:white
# visual-style 10	bgColor:blue
# visual-style 10	fgColor:white
# visual-style 10 9 iobj	color:blue
1	तत्	तद्	PRON	_	Case=Acc|Gender=Neut|Number=Sing|PronType=Dem	2	obj	_	Translit=tat|LTranslit=tad|Gloss=it
2	श्रुत्वा	श्रु	VERB	_	VerbForm=Conv	10	advcl	_	Translit=śrutvā|LTranslit=śru|Gloss=after-having-heard
3	सा	तद्	PRON	_	Case=Nom|Gender=Fem|Number=Sing|PronType=Dem	10	nsubj	_	Translit=sā|LTranslit=tad|Gloss=she
4	पुलकित	पुलकित	ADJ	_	Compound=Yes	6	amod	_	Translit=pulakita|LTranslit=pulakita|Gloss=thrilling-for-joy
5	सर्व	सर्व	ADJ	_	Compound=Yes	6	amod	_	Translit=sarva|LTranslit=sarva|Gloss=all
6	अङ्गी	अङ्गिन्	ADJ	_	Case=Nom|Gender=Neut|Number=Sing	3	amod	_	Translit=aṅgī|LTranslit=aṅgin|Gloss=having-limbs
7	सत्वरम्	सत्वर	NOUN	_	Case=Acc|Gender=Neut|Number=Sing	8	obl	_	Translit=satvaram|LTranslit=satvara|Gloss=in-a-hurry
8	गत्वा	गम्	VERB	_	VerbForm=Conv	10	advcl	_	Translit=gatvā|LTranslit=gam|Gloss=after-having-gone
9	राजानम्	राजन्	NOUN	_	Case=Acc|Gender=Masc|Number=Sing	10	iobj	_	Translit=rājānam|LTranslit=rājan|Gloss=king
10	ऊचे	वच्	VERB	_	Aspect=Perf|Mood=Ind|Number=Sing|Person=3|VerbForm=Fin|Voice=Mid	0	root	_	SpaceAfter=No|Translit=ūce|LTranslit=vac|Gloss=said
11	।	।	PUNCT	_	_	10	punct	_	Translit=.|LTranslit=.|Gloss=.

# visual-style 1	bgColor:blue
# visual-style 1	fgColor:white
# visual-style 2	bgColor:blue
# visual-style 2	fgColor:white
# visual-style 2 1 iobj	color:blue
1	तस्मै	तद्	PRON	_	Case=Dat|Gender=Masc|Number=Sing|PronType=Dem	2	iobj	_	Translit=tasmai|LTranslit=tad|Gloss=him
2	समर्पय	सम्-ऋ	VERB	_	Mood=Imp|Number=Sing|Person=2|Tense=Pres|VerbForm=Fin|Voice=Act,Cau	0	root	_	Translit=samarpaya|LTranslit=sam-r̥|Gloss=make-to-go
3	एतान्	एतद्	PRON	_	Case=Acc|Gender=Masc|Number=Plur|PronType=Dem	2	obj	_	Translit=etān|LTranslit=etad|Gloss=these
4	।	।	PUNCT	_	_	2	punct	_	Translit=.|LTranslit=.|Gloss=.

# visual-style 10	bgColor:blue
# visual-style 10	fgColor:white
# visual-style 9	bgColor:blue
# visual-style 9	fgColor:white
# visual-style 9 10 iobj	color:blue
1	अनन्त	अनन्त	ADJ	_	Compound=Yes	2	amod	_	Translit=ananta|LTranslit=ananta|Gloss=without-limit
2	पारं	पार	NOUN	_	Case=Nom|Gender=Neut|Number=Sing	0	root	_	Translit=pāraṁ|LTranslit=pāra|Gloss=boundary,shore
3	किल	किल	ADV	_	_	4	advmod	_	Translit=kila|LTranslit=kila|Gloss=apparently
4	शब्द	शब्द	NOUN	_	Compound=Yes	5	nmod	_	Translit=śabda|LTranslit=śabda|Gloss=speech
5	शास्त्रम्	शास्त्रम	NOUN	_	Case=Nom|Gender=Neut|Number=Sing	1	nsubj:cop	_	Translit=śāstram|LTranslit=śāstra|Gloss=science
6	स्वल्पं	स्वल्प	ADJ	_	Case=Nom|Gender=Neut|Number=Sing	1	conj	_	Translit=svalpaṁ|LTranslit=svalpa|Gloss=short
7	तथा	तथा	ADV	_	PronType=Dem	6	advmod	_	Translit=tathā|LTranslit=tathā|Gloss=so
8	आयुः	आयुस्	NOUN	_	Case=Nom|Gender=Neut|Number=Sing	6	nsubj:cop	_	Translit=āyuḥ|LTranslit=āyus|Gloss=age
9	वह	वह	ADJ	_	Mood=Imp|Number=Sing|Person=2|VerbForm=Fin|Voice=Act	1	conj	_	Translit=vaha|LTranslit=vaha|Gloss=bring
10	वः	युष्मद्	PRON	_	Case=Dat|Number=Plur|Person=2|PronType=Prs	9	iobj	_	Translit=vaḥ|LTranslit=yuṣmad|Gloss=you
11	च	च	CCONJ	_	_	9	cc	_	Translit=ca|LTranslit=ca|Gloss=and
12	विघ्नाः	विघ्न	NOUN	_	Case=Nom|Gender=Masc|Number=Plur	9	nsubj	_	SpaceAfter=No|Translit=vighnāḥ|LTranslit=vighna|Gloss=obstacles
13	।	।	PUNCT	_	_	16	punct	_	Translit=.|LTranslit=.|Gloss=.
14	सारं	सार	NOUN	_	Case=Nom|Gender=Neut|Number=Sing	16	nsubj:cop	_	Translit=sāraṁ|LTranslit=sāra|Gloss=core
15	ततो	तद्	ADV	_	PronType=Dem	16	advmod	_	Translit=tato|LTranslit=tad|Gloss=so
16	ग्राह्यम्	ग्रह्	VERB	_	Case=Nom|Gender=Neut|Number=Sing|Tense=Fut|VerbForm=Part|Voice=Pass	1	parataxis	_	Translit=grāhyam|LTranslit=grah|Gloss=to-be-taken
17	अप	अप	ADV	_	_	18	advmod	_	Translit=apa|LTranslit=apa|Gloss=outside
18	अस्य	अस्	VERB	_	VerbForm=Conv	16	advcl	_	Translit=asya|LTranslit=as|Gloss=having-rejected
19	फल्गु	फल्गु	NOUN	_	Case=Acc|Gender=Neut|Number=Sing	18	obj	_	Translit=phalgu|LTranslit=phalgu|Gloss=insignificant
20	हंसैः	हंस	NOUN	_	Case=Ins|Gender=Masc|Number=Plur	22	orphan	_	Translit=haṁsaiḥ|LTranslit=haṁsa|Gloss=swans
21	यथा	यथा	SCONJ	_	_	22	mark	_	Translit=yathā|LTranslit=yathā|Gloss=as
22	क्षीरम्	क्षीर	NOUN	_	Case=Nom|Gender=Neut|Number=Sing	16	advcl	_	Translit=kṣīram|LTranslit=kṣīra|Gloss=milk
23	इव	इव	ADV	_	_	22	orphan	_	Translit=iva|LTranslit=iva|Gloss=how
24	अम्बु	अम्बु	NOUN	_	Compound=Yes	25	nmod	_	Translit=ambu|LTranslit=ambu|Gloss=water
25	मध्यात्	मध्य	NOUN	_	Case=Abl|Gender=Masc|Number=Sing	22	orphan	_	Translit=madhyāt|LTranslit=madhya|Gloss=middle
26	॥	॥	PUNCT	_	_	16	punct	_	Translit=:|LTranslit=:|Gloss=.

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


text:
@interface LAWeatherView ()

@end

@implementation LAWeatherView

- (instancetype)initWithFrame:(CGRect)frame {

  self = [super initWithFrame:frame];

  if (self) {

    self.autoresizingMask = UIViewAutoresizingFlexibleWidth;
    self.contentSize =
        CGSizeMake(self.bounds.size.width, self.bounds.size.height * 3);
    self.pagingEnabled = YES;
    self.scrollEnabled = YES;

    LAHomeView *tempView = [[LAHomeView alloc] init];
    //    tempView.backgroundColor = [UIColor redColor];
    _tempView = tempView;

    [self addSubview:tempView];

    UITableView *hourlyView = [[UITableView alloc] init];

    hourlyView.backgroundColor = [UIColor clearColor];

    _hourlyView = hourlyView;

    [self addSubview:hourlyView];

    UITableView *DailyView = [[UITableView alloc] init];

    DailyView.backgroundColor = [UIColor clearColor];

    _DailyView = DailyView;

    [self addSubview:DailyView];
  }

  return self;
}

- (void)layoutSubviews {

  [super layoutSubviews];
  //
  //  self.tempView.frame = CGRectMake(0, 0, 375, 667);
  //  self.hourlyView.frame = CGRectMake(0, 667, 375, 667);
  //  self.DailyView.frame = CGRectMake(0, 1334, 375, 667);

  [self.tempView makeConstraints:^(MASConstraintMaker *make) {

    make.leading.top.trailing.width.height.equalTo(self);
    make.bottom.equalTo(self.hourlyView.top);

  }];

  [self.hourlyView makeConstraints:^(MASConstraintMaker *make) {

    make.leading.trailing.width.height.equalTo(self);

    make.top.equalTo(self.tempView.bottom);

    make.bottom.equalTo(self.DailyView.top);

  }];

  [self.DailyView makeConstraints:^(MASConstraintMaker *make) {

    make.leading.trailing.width.height.equalTo(self);
    make.top.equalTo(self.hourlyView.bottom);
    make.bottom.equalTo(self);
  }];
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
  NSLog(@"%%%%----------");
}

- (UIColor *)randomColor {
  // 创建随机色
  CGFloat R = arc4random_uniform(256) / 255.0;
  CGFloat G = arc4random_uniform(256) / 255.0;
  CGFloat B = arc4random_uniform(256) / 255.0;
  return [UIColor colorWithRed:R green:G blue:B alpha:1];
}

@end


text:
<?php

declare(strict_types=1);

namespace Tests\Carbon;

use Carbon\Carbon;
use DateTimeZone;
use Tests\AbstractTestCase;

class CreateFromTimeStringTest extends AbstractTestCase
{
    protected function setUp(): void
    {
        parent::setUp();
        Carbon::setTestNow();
    }

    public function testCreateFromTimeString()
    {
        $d = Carbon::createFromTimeString('22:45');
        $this->assertSame(22, $d->hour);
        $this->assertSame(45, $d->minute);
        $this->assertSame(0, $d->second);
        $this->assertSame(0, $d->micro);
    }

    public function testCreateFromTimeStringWithSecond()
    {
        $d = Carbon::createFromTimeString('22:45:12');
        $this->assertSame(22, $d->hour);
        $this->assertSame(45, $d->minute);
        $this->assertSame(12, $d->second);
        $this->assertSame(0, $d->micro);
    }

    public function testCreateFromTimeStringWithMicroSecond()
    {
        $d = Carbon::createFromTimeString('22:45:00.625341');
        $this->assertSame(22, $d->hour);
        $this->assertSame(45, $d->minute);
        $this->assertSame(0, $d->second);
        $this->assertSame(625341, $d->micro);
    }

    public function testCreateFromTimeStringWithDateTimeZone()
    {
        $d = Carbon::createFromTimeString('12:20:30', new DateTimeZone('Europe/London'));
        $this->assertCarbonTime($d, 12, 20, 30, 0);
        $this->assertSame('Europe/London', $d->tzName);
    }

    public function testCreateFromTimeStringWithTimeZoneString()
    {
        $d = Carbon::createFromTimeString('12:20:30', 'Europe/London');
        $this->assertCarbonTime($d, 12, 20, 30, 0);
        $this->assertSame('Europe/London', $d->tzName);
    }
}


text:
namespace $ {

	export class $mol_harp_query {

		constructor(
			public name = '' ,
			public order? : '+' | '-' ,
			public filter? : '=' | '@' ,
			public values : $mol_vector_range< string | undefined >[] = [] ,
			public fetch = {} as Record< string , $mol_harp_query > ,
		) {}

		toJSON() {
			return this.toString()
		}

		toString() : string {

			const order = this.order ?? ''
			const name = encodeURIComponent( this.name ?? '' )
			const filter = this.filter ?? ''

			const value = this.values.map( ({ min , max }) => {

				if( min !== undefined && min === max ) return encodeURIComponent( min )

				min = ( min === undefined ) ? '' : encodeURIComponent( min )
				max = ( max === undefined ) ? '' : encodeURIComponent( max )

				return `${ min }&${ max }`

			} ).join( ',' )

			const fetch = Object.values( this.fetch ).map( harp => `[${ harp }]` ).join( '' )

			return order + name + filter + value + fetch

		}

		static syntax = new $mol_syntax2({
			'filter' : /[=@]/ ,
			'list' : /,/ ,
			'range' : /&/ ,
			'fetch_open' : /\[/ ,
			'fetch_close' : /\]/ ,
		})

		static parse< This extends typeof $mol_harp_query >( this : This , uri : string ) {

			let queries = {} as Record< string , $mol_harp_query >
			let query : $mol_harp_query | undefined
			let stack = [] as typeof queries[]
			let range : $mol_vector_range< string | undefined > | undefined

			function fail_at( offset : number ) {
				const uri_marked = uri.substring( 0 , offset ) + '\u035C' + uri.substring( offset )
				$mol_fail( new Error( `Unexpected token at ${ offset } of "${ uri_marked }"` ) )
			}

			this.syntax.parse( uri , {

				'' : ( text , chunks , offset ) => {

					if( query ) {

						if( !query.filter ) fail_at( offset )

						text = decodeURIComponent( text )
						range = new $mol_vector_range( range ? range.min : text , text )

					} else {

						let [ , order , name ] = /^([+-]?)(.*)$/.exec( text )!
						name = decodeURIComponent( name )

						query = new this( name , order as any )

						queries[ name ] = query

					}

				} ,

				'filter' : ( filter , chinks , offset )=> {

					if( !query ) {
						query = new this
						queries[ '' ] = query
					}

					query.filter = filter as any

				} ,

				'list' : ( found , chunks , offset )=> {

					if( !range ) fail_at( offset )

					query!.values.push( range! )
					range = undefined

				} ,

				'range' : ( found , chunks , offset )=> {

					range = new $mol_vector_range( range && range.min , undefined )

				} ,

				'fetch_open' : ( found , chunks , offset )=> {

					if( range ) {
						query!.values.push( range )
						range = undefined
					}

					if( !query ) {
						query = new this
						queries[ '' ] = query
					}

					stack.push( queries )
					queries = query.fetch
					query = undefined

				} ,

				'fetch_close' : ()=> {

					if( range ) {
						query!.values.push( range )
						range = undefined
					}

					queries = stack.pop()!
					query = Object.values( queries ).slice( -1 )[0]

				} ,

			} )

			if( range ) {
				query!.values.push( range )
				range = undefined
			}

			return Object.values( queries )[0] as InstanceType< This >
		}

	}

}


text:
@erase lang.inc
@echo lang fix ru >lang.inc
@fasm chess.asm chess
@erase lang.inc
@pause


text:
package com.flipkart.flux.redriver.scheduler;

import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.verifyNoInteractions;
import static org.mockito.Mockito.verifyNoMoreInteractions;
import static org.mockito.Mockito.when;

import java.util.ArrayList;
import java.util.Arrays;

import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.junit.MockitoJUnitRunner;

import com.flipkart.flux.redriver.model.ScheduledMessage;
import com.flipkart.flux.redriver.service.MessageManagerService;
import com.flipkart.flux.redriver.service.RedriverService;
import com.flipkart.flux.task.redriver.RedriverRegistry;

@RunWith(MockitoJUnitRunner.class)
public class RedriverServiceTest {
    @Mock
    MessageManagerService messageManagerService;

    @Mock
    RedriverRegistry redriverRegistry;

    private RedriverService redriverService;

    private int batchSize = 2;

    @Before
    public void setUp() throws Exception {
        redriverService = new RedriverService(messageManagerService, redriverRegistry, 500, batchSize);
        redriverService.setInitialDelay(0L);
    }

    @Test
    public void testIdle() throws Exception {
        Thread.sleep(200);
        Assert.assertFalse(redriverService.isRunning());
        verifyNoInteractions(messageManagerService);
        verifyNoInteractions(redriverRegistry);
    }

    @Test
    public void testRedriveMessage_shouldRedriveWhenOldMessageFound() throws Exception {
        long now = System.currentTimeMillis();
        when(messageManagerService.retrieveOldest(0, batchSize))
                .thenReturn(Arrays.asList(new ScheduledMessage(1l, "sample-state-machine-uuid", now - 2, 0l)))
                .thenReturn(Arrays.asList());
        redriverService.start();
        Thread.sleep(300);
        verify(redriverRegistry).redriveTask("sample-state-machine-uuid", 1l,0l);
        Thread.sleep(500);
        verifyNoMoreInteractions(redriverRegistry);
    }

    @Test
    public void testLargeNoOfRedriveMessages_allShouldBeRedrived() throws Exception {
        ArrayList<ScheduledMessage> scheduledMessages = new ArrayList<>();
        int batchSize = 100;
        long now = System.currentTimeMillis();
        for (long i = 0; i < 1000; i++)
            scheduledMessages.add(new ScheduledMessage(i, "sample-state-machine-uuid", now - 100,0l));
        redriverService = new RedriverService(messageManagerService, redriverRegistry, 100, batchSize);
        redriverService.setInitialDelay(0L);
        for (int i = 0; i < 10; i++)
            when(messageManagerService.retrieveOldest(i * 100, batchSize)).thenReturn(scheduledMessages.subList(i * 100, (i + 1) * 100)).thenReturn(null);
        redriverService.start();
        Thread.sleep(1000);
        redriverService.stop();
        for (long i = 0; i < 100; i++) {
            long x = (long) (Math.random() * 1000.0);
            verify(redriverRegistry).redriveTask("sample-state-machine-uuid", x,0l);
        }
    }

    @Test
    public void testStartStopCycle() throws Exception {
        when(messageManagerService.retrieveOldest(0, batchSize)).
                thenReturn(Arrays.asList(new ScheduledMessage(3l, "sample-state-machine-uuid", 1l,0l))).
                thenReturn(Arrays.asList(new ScheduledMessage(4l, "sample-state-machine-uuid", 2l,0l)));

        redriverService.start();
        Thread.sleep(100);
        Assert.assertTrue(redriverService.isRunning());
        verify(redriverRegistry).redriveTask("sample-state-machine-uuid", 3l,0l);

        redriverService.stop();
        Thread.sleep(600);
        Assert.assertFalse(redriverService.isRunning());
        verifyNoMoreInteractions(redriverRegistry);

        redriverService.start();
        Thread.sleep(100);

        verify(redriverRegistry).redriveTask("sample-state-machine-uuid", 4l,0l);
        verifyNoMoreInteractions(redriverRegistry);
    }
}


text:
//  See library home page at http://www.boost.org/libs/numeric/conversion
//
// Contact the author at: fernando_cacciola@hotmail.com
//
#ifndef BOOST_NUMERIC_CONVERSION_SIGN_MIXTURE_ENUM_FLC_12NOV2002_HPP
#define BOOST_NUMERIC_CONVERSION_SIGN_MIXTURE_ENUM_FLC_12NOV2002_HPP

namespace boost { namespace numeric
{
  enum sign_mixture_enum
  {
     unsigned_to_unsigned
    ,signed_to_signed
    ,signed_to_unsigned
    ,unsigned_to_signed
  } ;

} } // namespace boost::numeric

#endif
//
///////////////////////////////////////////////////////////////////////////////////////////////


text:
module CardconnectSdk
VERSION = "1.8.0"
end


text:
using System;
using System.Linq.Expressions;

namespace FluentMethods.UnitTests
{
    public partial class ExpressionFixture
    {
#if NetCore
        [Xunit.Fact]
#else
        [NUnit.Framework.Test]
#endif
        public void Block()
        {
            var variable = Expression.Variable(typeof(int));
            var expression = new Expression[]
            {
                Expression.Assign(variable, Expression.Constant(1)),
                Expression.AddAssign(variable,Expression.Constant(2)),
                variable
            }.Block(variable);
            Assert.Equal(3, expression.ToLambda<Func<int>>().Compile()());
        }
    }
}


text:
package ${package}.model;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Transient;

import org.openxava.annotations.Required;

@Entity
public class Customer {

	@Id
	@Column(length=5)
	@Required
	private String id;

	@Column(length=40)
	@Required
	private String email;

	@Column(length=40)
	@Required
	private String first;

	@Column(length=40)
	@Required
	private String last;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getFirst() {
		return first;
	}

	public void setFirst(String first) {
		this.first = first;
	}

	public String getLast() {
		return last;
	}

	public void setLast(String last) {
		this.last = last;
	}

	@OneToMany(mappedBy="customer")
	private List<Invoice> invoices;

	public List<Invoice> getInvoices() {
		return invoices;
	}

	public void setInvoices(List<Invoice> pupils) {
		this.invoices = pupils;
	}

	@Transient
	public String getDescription() {
		return first+" "+last;
	}

}


text:
@interface LRNotificationObserver (NSNotificationCenter)

+ (instancetype)observerForName:(NSString *)name
                          block:(LRNotificationObserverBlock)block;

+ (instancetype)observerForName:(NSString *)name
                 operationQueue:(NSOperationQueue *)operationQueue
                          block:(LRNotificationObserverBlock)block;

+ (instancetype)observerForName:(NSString *)name
                  dispatchQueue:(dispatch_queue_t)dispatchQueue
                          block:(LRNotificationObserverBlock)block;

+ (instancetype)observerForName:(NSString *)name
                         target:(id)target
                         action:(SEL)action;

+ (instancetype)observerForName:(NSString *)name
                 operationQueue:(NSOperationQueue *)operationQueue
                         target:(id)target
                         action:(SEL)action;

+ (instancetype)observerForName:(NSString *)name
                  dispatchQueue:(dispatch_queue_t)dispatchQueue
                         target:(id)target
                         action:(SEL)action;
@end

@interface LRNotificationObserver (NSNotificationCenter_Object)

+ (instancetype)observerForName:(NSString *)name
                         object:(id)object
                          block:(LRNotificationObserverBlock)block;

+ (instancetype)observerForName:(NSString *)name
                         object:(id)object
                 operationQueue:(NSOperationQueue *)operationQueue
                          block:(LRNotificationObserverBlock)block;

+ (instancetype)observerForName:(NSString *)name
                         object:(id)object
                  dispatchQueue:(dispatch_queue_t)dispatchQueue
                          block:(LRNotificationObserverBlock)block;

+ (instancetype)observerForName:(NSString *)name
                         object:(id)object
                         target:(id)target
                         action:(SEL)action;

+ (instancetype)observerForName:(NSString *)name
                         object:(id)object
                 operationQueue:(NSOperationQueue *)operationQueue
                         target:(id)target
                         action:(SEL)action;

+ (instancetype)observerForName:(NSString *)name
                         object:(id)object
                  dispatchQueue:(dispatch_queue_t)dispatchQueue
                         target:(id)target
                         action:(SEL)action;
@end


text:
app.controller('GruposController',['$scope','GruposService',
  function($scope, GruposService){
      $scope.title ='Grupos de Investigiación';

      /**
       * Constructor del Controlador
       */
      $service.inicializar = function (){
        $service = new GruposService();
        $promise = $service.serviceListar();
        $promise.then(function(){
          $scope.grupos  = $service.listarGrupos();
        });
      };

      $service.inicializar();

  }
]);


text:
package com.eaglesakura.android.bluetooth.ui;

import com.eaglesakura.android.bluetooth.BluetoothUtil;
import com.eaglesakura.android.framework.bluetooth.R;
import com.eaglesakura.android.util.FragmentUtil;

import org.androidannotations.annotations.EFragment;
import org.androidannotations.annotations.InstanceState;
import org.androidannotations.annotations.OnActivityResult;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Fragment;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothManager;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;

/**
 * BluetoothがONであることを保証するFragment
 */
@SuppressLint("NewApi")
@EFragment
public class BluetoothAdapterInitializeFragment extends Fragment {

    @InstanceState
    boolean userIntentStarted = false;

    BluetoothAdapterInitializeListener listener;

    @SuppressLint("NewApi")
    @Override
    public void onAttach(Activity activity) {
        super.onAttach(activity);

        if (activity instanceof BluetoothAdapterInitializeListener) {
            listener = (BluetoothAdapterInitializeListener) activity;
        } else if (FragmentUtil.isSupportChildFragment() && getParentFragment() instanceof BluetoothAdapterInitializeListener) {
            listener = (BluetoothAdapterInitializeListener) getParentFragment();
        } else {
            throw new IllegalArgumentException("BluetoothAdapterInitializeListener not impl...");
        }
    }

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

        if (isAdapterEnable()) {
            listener.onBluetoothAdapterInitialized(this);
            FragmentUtil.detatch(this);
        } else {
            if (!userIntentStarted) {
                startBluetoothEnable();
            }
        }
    }

    static final int REQUEST_BLUETOOTH_ENABLE = 0x03103;

    /**
     * bluetoothアダプターが有効になっていたらtrue
     */
    @SuppressLint("NewApi")
    boolean isAdapterEnable() {
        BluetoothAdapter bluetoothAdapter;

        if (BluetoothUtil.isSupportedBluetoothLE(getActivity())) {
            BluetoothManager bluetoothManager = (BluetoothManager) getActivity().getSystemService(Context.BLUETOOTH_SERVICE);
            bluetoothAdapter = bluetoothManager.getAdapter();
        } else {
            bluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
        }

        // アダプタが無効だったら再設定を行う
        if (bluetoothAdapter == null || !bluetoothAdapter.isEnabled()) {
            return false;
        } else {
            return true;
        }
    }

    /**
     * bluetoothをONに切り替えさせる
     */
    void startBluetoothEnable() {
        userIntentStarted = true;
        Intent intent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);
        startActivityForResult(intent, REQUEST_BLUETOOTH_ENABLE);
    }

    /**
     * bluetoothチェックの戻り
     */
    @OnActivityResult(REQUEST_BLUETOOTH_ENABLE)
    void resultBluetoothEnable(int result, Intent data) {
        if (result != Activity.RESULT_OK) {
            // チェック
            showErrorDialog();
        }
    }

    void showErrorDialog() {
        AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
        builder.setTitle(R.string.Common_Dialog_Title_Error);
        builder.setMessage(R.string.DeviceSetting_Dialog_DeviceDiable_Message);
        builder.setPositiveButton(R.string.DeviceSetting_Dialog_DeviceDiable_Retry, new DialogInterface.OnClickListener() {
            @Override
            public void onClick(DialogInterface dialog, int which) {
                startBluetoothEnable();
            }
        });
        builder.setNegativeButton(R.string.Common_Cancel, new DialogInterface.OnClickListener() {
            @Override
            public void onClick(DialogInterface dialog, int which) {
                listener.onBluetoothAdapterInitializeFailed(BluetoothAdapterInitializeFragment.this);
            }
        });
        builder.setCancelable(false);
        builder.show();
    }

    public interface BluetoothAdapterInitializeListener {
        /**
         * 初期化に成功した
         */
        void onBluetoothAdapterInitialized(BluetoothAdapterInitializeFragment self);

        void onBluetoothAdapterInitializeFailed(BluetoothAdapterInitializeFragment self);
    }
}


text:
simple UI testing framework

This is a simple GUI testing framework based on Tesseract OCR.
It uses screen scraping and text/numbers recognition.

How to use:

1. compile project
2. check that you have tessdata folder with trained Tesseract data files (i use english and russian languages, but you're free to use any)
3. run app.
4. capture screen (use Shift+Esc hotkey), then mark particular screen regions to recognize and check and add step.
5. build some steps
6. run from main window and see test results

enjoy!

You can use also compiled miranda-tester-net40-compiled.7z

![bitcoin:1K6FZvfCRUhJVunfLZ7fzsceHTwcyXmqsM](https://github.com/skaeff/miranda-tester/blob/master/btc2.png)

You are welcome to support me bitcoin:1K6FZvfCRUhJVunfLZ7fzsceHTwcyXmqsM


text:
import surveyman.survey.questions as questions
import surveyman.survey.options as options
import surveyman.survey.blocks as blocks
import surveyman.survey.constraints as constraints
import surveyman.survey.surveys as surveys

def create_survey():

    oneof = "oneof"

    q1 = questions.Question(oneof, "Question 1", [options.Option(str(x)) for x in range(1, 4)])
    q2 = questions.Question(oneof, "Question 2", [options.Option(str(x)) for x in range(1, 4)])
    q3 = questions.Question(oneof, "Question 3", [options.Option(str(x)) for x in range(1, 4)])

    b1 = blocks.Block([q1, q2])
    b2 = blocks.Block([q3])
    b4 = blocks.Block([questions.Question(oneof, "Question 4", [])])

    b3 = blocks.Block([b1, b2])

    branch = constraints.Constraint(q3)
    branch.add_branch_by_index(0, b4)

    survey = surveys.Survey([b3, b4], [branch])
    return survey


text:
<?php
	public function actionCreate()
	{
		$model = new Profile;
		$model->user_id = \Yii::$app->user->identity->id;

		if ($already_exists = RecordHelpers::userHas('profile')) {
			return $this->render('view', [
				'model' => $this->findModel($already_exists),
			]);
		}

		if ($model->load(Yii::$app->request->post()) && $model->save()){
			return $this->redirect(['view']);
		}

		return $this->render('create', ['model' => $model,]);
	}


text:
title: Cyclic paths on Sierpiński graphs
---
## Problem 312: Cyclic paths on Sierpiński graphs

This is a stub. Help our community expand it.

This quick style guide will help ensure your pull request gets accepted.


text: rake app:db:migrate


text:
import React, {PureComponent} from 'react'
import classnames from 'classnames'
import {
  Button,
  ComponentColor,
  ComponentSize,
  ButtonType,
} from '@influxdata/clockface'

interface Props {
  fileTypesToAccept?: string
  containerClass?: string
  handleSubmit: (uploadContent: string) => void
  submitText: string
  submitOnDrop: boolean
  submitOnUpload: boolean
  compact: boolean
  onCancel?: () => void
}

interface State {
  inputContent: string
  uploadContent: string | ArrayBuffer
  fileName: string
  dragClass: string
}

let dragCounter = 0
class DragAndDrop extends PureComponent<Props, State> {
  public static defaultProps = {
    submitText: 'Write this File',
    submitOnDrop: false,
    submitOnUpload: false,
    compact: false,
  }

  private fileInput: HTMLInputElement

  constructor(props: Props) {
    super(props)

    this.state = {
      inputContent: null,
      uploadContent: '',
      fileName: '',
      dragClass: 'drag-none',
    }
  }

  public componentDidMount() {
    window.addEventListener('dragover', this.handleWindowDragOver)
    window.addEventListener('drop', this.handleFileDrop)
    window.addEventListener('dragenter', this.handleDragEnter)
    window.addEventListener('dragleave', this.handleDragLeave)
  }

  public componentWillUnmount() {
    window.removeEventListener('dragover', this.handleWindowDragOver)
    window.removeEventListener('drop', this.handleFileDrop)
    window.removeEventListener('dragenter', this.handleDragEnter)
    window.removeEventListener('dragleave', this.handleDragLeave)
  }

  public render() {
    return (

          {this.dragAreaHeader}

          <input
            type="file"
            ref={r => (this.fileInput = r)}
            className="drag-and-drop--input"
            accept={this.fileTypesToAccept}
            onChange={this.handleFileClick}
          />
          {this.buttons}

    )
  }

  private handleWindowDragOver = (event: DragEvent) => {
    event.preventDefault()
  }

  private get fileTypesToAccept(): string {
    const {fileTypesToAccept} = this.props

    if (!fileTypesToAccept) {
      return '*'
    }

    return fileTypesToAccept
  }

  private get containerClass(): string {
    const {dragClass} = this.state
    const {compact} = this.props

    return classnames('drag-and-drop', {compact, [dragClass]: true})
  }

  private get infoClass(): string {
    const {uploadContent} = this.state

    return classnames('drag-and-drop--graphic', {success: uploadContent})
  }

  private get dragAreaClass(): string {
    const {uploadContent} = this.state

    return classnames('drag-and-drop--form', {active: !uploadContent})
  }

  private get dragAreaHeader(): JSX.Element {
    const {uploadContent, fileName} = this.state

    if (uploadContent) {
      return
{fileName}

    }

    return (

        Drop a file here or click to upload

    )
  }

  private get buttons(): JSX.Element | null {
    const {uploadContent} = this.state
    const {submitText, submitOnDrop} = this.props

    if (!uploadContent) {
      return null
    }

    if (submitOnDrop) {
      return (

          <Button
            color={ComponentColor.Default}
            text="Cancel"
            size={ComponentSize.Medium}
            type={ButtonType.Button}
            onClick={this.handleCancelFile}
          />

      )
    }

    return (

        <Button
          color={ComponentColor.Primary}
          text={submitText}
          size={ComponentSize.Medium}
          type={ButtonType.Submit}
          onClick={this.handleSubmit}
        />
        <Button
          color={ComponentColor.Default}
          text="Cancel"
          size={ComponentSize.Medium}
          type={ButtonType.Submit}
          onClick={this.handleCancelFile}
        />

    )
  }

  private handleSubmit = () => {
    const {handleSubmit} = this.props
    const {uploadContent} = this.state

    handleSubmit(uploadContent as string)
  }

  private handleFileClick = (e: any): void => {
    const file = e.currentTarget.files[0]

    if (!file) {
      return
    }

    e.preventDefault()
    e.stopPropagation()

    const reader = new FileReader()
    reader.readAsText(file)
    reader.onload = () => {
      this.setState(
        {
          uploadContent: reader.result,
          fileName: file.name,
        },
        this.submitOnUpload
      )
    }
  }

  private handleFileDrop = (e: any): void => {
    const file = e.dataTransfer.files[0]
    this.setState({
      dragClass: 'drag-none',
    })

    if (!file) {
      return
    }

    e.preventDefault()
    e.stopPropagation()

    const reader = new FileReader()
    reader.readAsText(file)
    reader.onload = () => {
      this.setState(
        {
          uploadContent: reader.result,
          fileName: file.name,
        },
        this.submitOnDrop
      )
    }
  }

  private submitOnDrop() {
    const {submitOnDrop} = this.props
    if (submitOnDrop) {
      this.handleSubmit()
    }
  }

  private submitOnUpload() {
    const {submitOnUpload} = this.props
    if (submitOnUpload) {
      this.handleSubmit()
    }
  }

  private handleFileOpen = (): void => {
    const {uploadContent} = this.state
    if (uploadContent === '') {
      this.fileInput.click()
    }
  }

  private handleCancelFile = (): void => {
    const {onCancel} = this.props
    this.setState({uploadContent: ''})
    this.fileInput.value = ''
    if (onCancel) {
      onCancel()
    }
  }

  private handleDragEnter = (e: DragEvent): void => {
    dragCounter += 1
    e.preventDefault()
    this.setState({dragClass: 'drag-over'})
  }

  private handleDragLeave = (e: DragEvent): void => {
    dragCounter -= 1
    e.preventDefault()
    if (dragCounter === 0) {
      this.setState({dragClass: 'drag-none'})
    }
  }
}

export default DragAndDrop


text:
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2017.11.09 at 09:11:06 AM MSK
//

package ru.gov.zakupki.oos.types._1;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;

/**
 *
Java class for zfcs_modification.authorityType.
 *
 *
The following schema fragment specifies the expected content contained within this class.
 *

 *

 * <simpleType name="zfcs_modification.authorityType">
 *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *     <enumeration value="FA"/>
 *     <enumeration value="FO"/>
 *     <enumeration value="S"/>
 *     <enumeration value="M"/>
 *   </restriction>
 * </simpleType>
 *

 *
 */
@XmlType(name = "zfcs_modification.authorityType")
@XmlEnum
public enum ZfcsModificationAuthorityType {

    FA,
    FO,
    S,
    M;

    public String value() {
        return name();
    }

    public static ZfcsModificationAuthorityType fromValue(String v) {
        return valueOf(v);
    }

}


text:
<?php

/**
 * This resource is used to interact (read - write) with nosql data, recorded in a store.
 * Data are returned to the client using the output method.
 *
 * @package  SXAPI.Resource.Model
 * @author   Dev Team <dev@startx.fr>
 * @see      defaultModelResource
 * @link     https://github.com/startxfr/sxapi/wiki/Resource
 */
class mainSxaStartxResource extends defaultResource implements IResource {

    static public $ConfDesc = '{
        "class_name":"mainSxaStartxResource",
        "desc":"get list of resources available for the SXA project",
        "properties": [

        ]
      }';
    private $modules = array();

    public function init() {
        parent::init();
        if(!$this->isConfig('modules')) {
            Api::getInstance()->logError(906, get_class($this) . " resource config should contain the 'modules' attribute", $this->getResourceTrace(__FUNCTION__, false));
            throw new ResourceException(get_class($this) . " resource config should contain the 'modules' attribute");
        }
        foreach($this->getConfig('modules', array()) as $key => $resourceID) {
            $this->addModule($key, $resourceID);
        }
        if(!$this->hasModule('actualite')) {
            throw new ResourceException(" resource '" . $this->getConfig('_id') . "' should have 'actualite' declared on his module list", 87);
        }
        return $this;
    }

    public function hasModule($key) {
        if(strpos($key, ',') !== false) {
            $r = true;
            $list = explode(',', $key);
            foreach($list as $k) {
                if(!array_key_exists($k, $this->modules)) {
                    $r = false;
                }
            }
            return $r;
        }
        else {
            return array_key_exists($key, $this->modules);
        }
    }

    public function getModule($key) {
        if($this->hasModule($key)) {
            return $this->modules[$key];
        }
        else {
            throw new ResourceException("SXA module '" . $key . "' is not declared in resource '" . $this->getConfig('_id') . "'", 85);
        }
    }

    public function addModule($key, $resource) {
        $api = Api::getInstance();
        if(is_string($resource)) {
            $this->modules[$key] = $api->getConfiguredResource($resource);
        }
        else {
            $this->modules[$key] = $resource;
        }
        return true;
    }

}


text:
package main

import (
	"fmt"
)

type Member struct {
	FirstName string
	LastName  string
	Language  string
}

func main() {

	//2 is the length and 8 is the capacity
	//the length stores the current available slots
	//most of the time capacity will not be provided
	var slice1 []int
	slice1 = make([]int, 2, 8)
	slice1[0] = 1
	slice1[1] = 2

	var slice2 []int
	slice2 = make([]int, 4)
	slice2[0] = 1
	slice2[1] = 2
	slice2[2] = 3
	slice2[3] = 4

	slice3 := []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}

	members := []Member{
		{"Rob", "Pike", "Go"},
		{"Andrew", "Gerrand", "Go"},
		{"Robert", "Griesemer", "Go"},
		{"Brad", "Fitzpatrick", "Go"},
	}

	fmt.Println("Total: ", len(slice1), "Values: ", slice1)
	fmt.Println("Total: ", len(slice2), "Values: ", slice2)
	fmt.Println("Total: ", len(slice3), "Values: ", slice3)
	fmt.Println("Total: ", len(members), "Values: ", members)

	SliceTheSlice(members)

	AppendToSlice(members)

	DeleteSlice(members)

}

func SliceTheSlice(members []Member) {

	fmt.Println("First Member: ", members[0:1])
	fmt.Println("Second Member: ", members[1:2])
	fmt.Println("First Two Members: ", members[0:2])
	fmt.Println("First Two Members: ", members[:2])
	fmt.Println("Last Two Members: ", members[2:4])
	fmt.Println("Last Two Members: ", members[len(members)-2:len(members)])
	fmt.Println("Last Two Members: ", members[len(members)-2:])
	fmt.Println("Last One Members: ", members[len(members)-1:len(members)])
	fmt.Println("Last One Members: ", members[len(members)-1:])

	fmt.Println("All Members: ", members[0:])
	fmt.Println("All Members: ", members[0:len(members)])
	fmt.Println("All Members: ", members[:len(members)])
	fmt.Println("All Members: ", members[len(members)-len(members):len(members)])
}

func AppendToSlice(members []Member) {

	newSlice := append(members, Member{"Go", "Lang", "Go"})
	fmt.Println("Appended: ", newSlice)

	clonedSlice := append(members, members...)
	fmt.Println("Total: ", len(clonedSlice), "Cloned: ", clonedSlice)
}

func DeleteSlice(members []Member) {

	deleteFirstMember := append(members[1:])
	fmt.Println("Delete First Member:", deleteFirstMember)

	deleteLastMember := append(members[:len(members)-1])
	fmt.Println("Delete Last Member:", deleteLastMember)

	deleteFirstAndLast := append(members[1:2], members[2:3]...)
	// the '...' basically expands the 'members' to the second append argument
	// ignoring the index modification made at the first append slot
	fmt.Println("Delete First and Last: ", deleteFirstAndLast)

}


text:
package org.jetbrains.plugins.scala
package lang
package psi
package impl
package toplevel
package imports

import com.intellij.lang.ASTNode
import com.intellij.psi.PsiElement
import com.intellij.psi.stubs.StubElement
import com.intellij.psi.tree.IElementType
import org.jetbrains.plugins.scala.lang.lexer.ScalaTokenTypes
import org.jetbrains.plugins.scala.lang.parser.ScalaElementTypes
import org.jetbrains.plugins.scala.lang.psi.api.toplevel.imports._
import org.jetbrains.plugins.scala.lang.psi.stubs.ScImportSelectorsStub

/**
* @author Alexander Podkhalyuzin
* Date: 20.02.2008
*/

class ScImportSelectorsImpl private (stub: StubElement[ScImportSelectors], nodeType: IElementType, node: ASTNode)
  extends ScalaStubBasedElementImpl(stub, nodeType, node) with ScImportSelectors {
  def this(node: ASTNode) = {this(null, null, node)}
  def this(stub: ScImportSelectorsStub) = {this(stub, ScalaElementTypes.IMPORT_SELECTORS, null)}

  override def toString: String = "ImportSelectors"

  def hasWildcard: Boolean = {
    val stub = getStub
    if (stub != null) {
      return stub.asInstanceOf[ScImportSelectorsStub].hasWildcard
    }
    findChildByType[PsiElement](ScalaTokenTypes.tUNDER) != null
  }

  def wildcardElement: Option[PsiElement] = {
    if (hasWildcard) Some(findChildByType[PsiElement](ScalaTokenTypes.tUNDER))
    else None
  }

  def selectors: Array[ScImportSelector] =
    getStubOrPsiChildren(ScalaElementTypes.IMPORT_SELECTOR, JavaArrayFactoryUtil.ScImportSelectorFactory)
}


text:
package com.vagabond.dealhunting.model;

import com.google.gson.annotations.SerializedName;

public class Store {
  private int id;

  private String title;

  @SerializedName("thumbnail_url")
  private String thumbnailUrl;

  private String slug;

  public int getId() {
    return id;
  }

  public void setId(int id) {
    this.id = id;
  }

  public String getTitle() {
    return title;
  }

  public void setTitle(String title) {
    this.title = title;
  }

  public String getSlug() {
    return slug;
  }

  public void setSlug(String slug) {
    this.slug = slug;
  }

  public String getThumbnailUrl() {
    return thumbnailUrl;
  }

  public void setThumbnailUrl(String thumbnailUrl) {
    this.thumbnailUrl = thumbnailUrl;
  }
}


text: .ui-wait-button .ui-icon-waiting{background-image:url(images/waitbutton-loading.gif);background-position:0 center}


text:
package com.vaadin.tests.components.grid;

import com.vaadin.annotations.Widgetset;
import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.tests.widgetset.TestingWidgetSet;
import com.vaadin.tests.widgetset.client.grid.GridCellFocusOnResetSizeWidget;
import com.vaadin.tests.widgetset.server.TestWidgetComponent;

@Widgetset(TestingWidgetSet.NAME)
public class GridCellFocusOnResetSize extends AbstractTestUI {

    @Override
    protected void setup(VaadinRequest request) {
        addComponent(
                new TestWidgetComponent(GridCellFocusOnResetSizeWidget.class));
    }

}


text:
##
# Import Modules
#
import os
from String import *
from DataType import *
from Identification import *
from Dictionary import *
from CommonDataClass.PackageClass import *
from CommonDataClass.CommonClass import PcdClass
from BuildToolError import *
from Table.TableDec import TableDec
import Database
from Parsing import *
import GlobalData

#
# Global variable
#
Section = {TAB_UNKNOWN.upper() : MODEL_UNKNOWN,
           TAB_DEC_DEFINES.upper() : MODEL_META_DATA_HEADER,
           TAB_INCLUDES.upper() : MODEL_EFI_INCLUDE,
           TAB_LIBRARY_CLASSES.upper() : MODEL_EFI_LIBRARY_CLASS,
           TAB_COMPONENTS.upper() : MODEL_META_DATA_COMPONENT,
           TAB_GUIDS.upper() : MODEL_EFI_GUID,
           TAB_PROTOCOLS.upper() : MODEL_EFI_PROTOCOL,
           TAB_PPIS.upper() : MODEL_EFI_PPI,
           TAB_PCDS_FIXED_AT_BUILD_NULL.upper() : MODEL_PCD_FIXED_AT_BUILD,
           TAB_PCDS_PATCHABLE_IN_MODULE_NULL.upper() : MODEL_PCD_PATCHABLE_IN_MODULE,
           TAB_PCDS_FEATURE_FLAG_NULL.upper() : MODEL_PCD_FEATURE_FLAG,
           TAB_PCDS_DYNAMIC_EX_NULL.upper() : MODEL_PCD_DYNAMIC_EX,
           TAB_PCDS_DYNAMIC_NULL.upper() : MODEL_PCD_DYNAMIC,
           TAB_USER_EXTENSIONS.upper() : MODEL_META_DATA_USER_EXTENSION
           }

## DecObject
#
# This class defined basic Dec object which is used by inheriting
#
# @param object:       Inherited from object class
#
class DecObject(object):
    def __init__(self):
        object.__init__()

## Dec
#
# This class defined the structure used in Dec object
#
# @param DecObject:         Inherited from DecObject class
# @param Filename:          Input value for Filename of Dec file, default is None
# @param IsMergeAllArches:  Input value for IsMergeAllArches
#                           True is to merge all arches
#                           Fales is not to merge all arches
#                           default is False
# @param IsToPackage:       Input value for IsToPackage
#                           True is to transfer to PackageObject automatically
#                           False is not to transfer to PackageObject automatically
#                           default is False
# @param WorkspaceDir:      Input value for current workspace directory, default is None
#
# @var Identification:      To store value for Identification, it is a structure as Identification
# @var Defines:             To store value for Defines, it is a structure as DecDefines
# @var UserExtensions:      To store value for UserExtensions
# @var Package:             To store value for Package, it is a structure as PackageClass
# @var WorkspaceDir:        To store value for WorkspaceDir
# @var Contents:            To store value for Contents, it is a structure as DecContents
# @var KeyList:             To store value for KeyList, a list for all Keys used in Dec
#
class Dec(DecObject):
    def __init__(self, Filename=None, IsToDatabase=False, IsToPackage=False, WorkspaceDir=None, Database=None, SupArchList=DataType.ARCH_LIST):
        self.Identification = Identification()
        self.Package = PackageClass()
        self.UserExtensions = ''
        self.WorkspaceDir = WorkspaceDir
        self.SupArchList = SupArchList
        self.IsToDatabase = IsToDatabase

        self.Cur = Database.Cur
        self.TblFile = Database.TblFile
        self.TblDec = Database.TblDec
        self.FileID = -1

        self.KeyList = [
            TAB_INCLUDES, TAB_GUIDS, TAB_PROTOCOLS, TAB_PPIS, TAB_LIBRARY_CLASSES, \
            TAB_PCDS_FIXED_AT_BUILD_NULL, TAB_PCDS_PATCHABLE_IN_MODULE_NULL, TAB_PCDS_FEATURE_FLAG_NULL, \
            TAB_PCDS_DYNAMIC_NULL, TAB_PCDS_DYNAMIC_EX_NULL, TAB_DEC_DEFINES
        ]
        #
        # Upper all KEYs to ignore case sensitive when parsing
        #
        self.KeyList = map(lambda c: c.upper(), self.KeyList)

        #
        # Init RecordSet
        #
        self.RecordSet = {}
        for Key in self.KeyList:
            self.RecordSet[Section[Key]] = []

        #
        # Load Dec file if filename is not None
        #
        if Filename != None:
            self.LoadDecFile(Filename)

        #
        # Transfer to Package Object if IsToPackage is True
        #
        if IsToPackage:
            self.DecToPackage()

    ## Load Dec file
    #
    # Load the file if it exists
    #
    # @param Filename:  Input value for filename of Dec file
    #
    def LoadDecFile(self, Filename):
        #
        # Insert a record for file
        #
        Filename = NormPath(Filename)
        self.Identification.FileFullPath = Filename
        (self.Identification.FileRelativePath, self.Identification.FileName) = os.path.split(Filename)
        self.FileID = self.TblFile.InsertFile(Filename, MODEL_FILE_DEC)

        #
        # Init DecTable
        #
        #self.TblDec.Table = "Dec%s" % self.FileID
        #self.TblDec.Create()

        #
        # Init common datas
        #
        IfDefList, SectionItemList, CurrentSection, ArchList, ThirdList, IncludeFiles = \
        [], [], TAB_UNKNOWN, [], [], []
        LineNo = 0

        #
        # Parse file content
        #
        IsFindBlockComment = False
        ReservedLine = ''
        for Line in open(Filename, 'r'):
            LineNo = LineNo + 1
            #
            # Remove comment block
            #
            if Line.find(TAB_COMMENT_EDK_START) > -1:
                ReservedLine = GetSplitList(Line, TAB_COMMENT_EDK_START, 1)[0]
                IsFindBlockComment = True
            if Line.find(TAB_COMMENT_EDK_END) > -1:
                Line = ReservedLine + GetSplitList(Line, TAB_COMMENT_EDK_END, 1)[1]
                ReservedLine = ''
                IsFindBlockComment = False
            if IsFindBlockComment:
                continue

            #
            # Remove comments at tail and remove spaces again
            #
            Line = CleanString(Line)
            if Line == '':
                continue

            #
            # Find a new section tab
            # First insert previous section items
            # And then parse the content of the new section
            #
            if Line.startswith(TAB_SECTION_START) and Line.endswith(TAB_SECTION_END):
                #
                # Insert items data of previous section
                #
                Model = Section[CurrentSection.upper()]
                InsertSectionItemsIntoDatabase(self.TblDec, self.FileID, Filename, Model, CurrentSection, SectionItemList, ArchList, ThirdList, IfDefList, self.RecordSet)

                #
                # Parse the new section
                #
                SectionItemList = []
                ArchList = []
                ThirdList = []

                CurrentSection = ''
                LineList = GetSplitValueList(Line[len(TAB_SECTION_START):len(Line) - len(TAB_SECTION_END)], TAB_COMMA_SPLIT)
                for Item in LineList:
                    ItemList = GetSplitValueList(Item, TAB_SPLIT)
                    if CurrentSection == '':
                        CurrentSection = ItemList[0]
                    else:
                        if CurrentSection != ItemList[0]:
                            EdkLogger.error("Parser", PARSER_ERROR, "Different section names '%s' and '%s' are found in one section definition, this is not allowed." % (CurrentSection, ItemList[0]), File=Filename, Line=LineNo, RaiseError=EdkLogger.IsRaiseError)
                    if CurrentSection.upper() not in self.KeyList:
                        RaiseParserError(Line, CurrentSection, Filename, '', LineNo)
                    ItemList.append('')
                    ItemList.append('')
                    if len(ItemList) > 5:
                        RaiseParserError(Line, CurrentSection, Filename, '', LineNo)
                    else:
                        if ItemList[1] != '' and ItemList[1].upper() not in ARCH_LIST_FULL:
                            EdkLogger.error("Parser", PARSER_ERROR, "Invalid Arch definition '%s' found" % ItemList[1], File=Filename, Line=LineNo, RaiseError=EdkLogger.IsRaiseError)
                        ArchList.append(ItemList[1].upper())
                        ThirdList.append(ItemList[2])

                continue

            #
            # Not in any defined section
            #
            if CurrentSection == TAB_UNKNOWN:
                ErrorMsg = "%s is not in any defined section" % Line
                EdkLogger.error("Parser", PARSER_ERROR, ErrorMsg, File=Filename, Line=LineNo, RaiseError=EdkLogger.IsRaiseError)

            #
            # Add a section item
            #
            SectionItemList.append([Line, LineNo])
            # End of parse
        #End of For

        #
        # Insert items data of last section
        #
        Model = Section[CurrentSection.upper()]
        InsertSectionItemsIntoDatabase(self.TblDec, self.FileID, Filename, Model, CurrentSection, SectionItemList, ArchList, ThirdList, IfDefList, self.RecordSet)

        #
        # Replace all DEFINE macros with its actual values
        #
        ParseDefineMacro2(self.TblDec, self.RecordSet, GlobalData.gGlobalDefines)

    ## Transfer to Package Object
    #
    # Transfer all contents of a Dec file to a standard Package Object
    #
    def DecToPackage(self):
        #
        # Init global information for the file
        #
        ContainerFile = self.Identification.FileFullPath

        #
        # Generate Package Header
        #
        self.GenPackageHeader(ContainerFile)

        #
        # Generate Includes
        #
        self.GenIncludes(ContainerFile)

        #
        # Generate Guids
        #
        self.GenGuidProtocolPpis(DataType.TAB_GUIDS, ContainerFile)

        #
        # Generate Protocols
        #
        self.GenGuidProtocolPpis(DataType.TAB_PROTOCOLS, ContainerFile)

        #
        # Generate Ppis
        #
        self.GenGuidProtocolPpis(DataType.TAB_PPIS, ContainerFile)

        #
        # Generate LibraryClasses
        #
        self.GenLibraryClasses(ContainerFile)

        #
        # Generate Pcds
        #
        self.GenPcds(ContainerFile)

    ## Get Package Header
    #
    # Gen Package Header of Dec as <Key> = <Value>
    #
    # @param ContainerFile: The Dec file full path
    #
    def GenPackageHeader(self, ContainerFile):
        EdkLogger.debug(2, "Generate PackageHeader ...")
        #
        # Update all defines item in database
        #
        RecordSet = self.RecordSet[MODEL_META_DATA_HEADER]
        for Record in RecordSet:
            ValueList = GetSplitValueList(Record[0], TAB_EQUAL_SPLIT)
            if len(ValueList) != 2:
                RaiseParserError(Record[0], 'Defines', ContainerFile, '<Key> = <Value>', Record[2])
            ID, Value1, Value2, Arch, LineNo = Record[3], ValueList[0], ValueList[1], Record[1], Record[2]
            SqlCommand = """update %s set Value1 = '%s', Value2 = '%s'
                            where ID = %s""" % (self.TblDec.Table, ConvertToSqlString2(Value1), ConvertToSqlString2(Value2), ID)
            self.TblDec.Exec(SqlCommand)

        #
        # Get detailed information
        #
        for Arch in self.SupArchList:
            PackageHeader = PackageHeaderClass()

            PackageHeader.Name = QueryDefinesItem(self.TblDec, TAB_DEC_DEFINES_PACKAGE_NAME, Arch, self.FileID)[0]
            PackageHeader.Guid = QueryDefinesItem(self.TblDec, TAB_DEC_DEFINES_PACKAGE_GUID, Arch, self.FileID)[0]
            PackageHeader.Version = QueryDefinesItem(self.TblDec, TAB_DEC_DEFINES_PACKAGE_VERSION, Arch, self.FileID)[0]
            PackageHeader.FileName = self.Identification.FileName
            PackageHeader.FullPath = self.Identification.FileFullPath
            PackageHeader.DecSpecification = QueryDefinesItem(self.TblDec, TAB_DEC_DEFINES_DEC_SPECIFICATION, Arch, self.FileID)[0]

            self.Package.Header[Arch] = PackageHeader

    ## GenIncludes
    #
    # Gen Includes of Dec
    #
    #
    # @param ContainerFile: The Dec file full path
    #
    def GenIncludes(self, ContainerFile):
        EdkLogger.debug(2, "Generate %s ..." % TAB_INCLUDES)
        Includes = {}
        #
        # Get all Includes
        #
        RecordSet = self.RecordSet[MODEL_EFI_INCLUDE]

        #
        # Go through each arch
        #
        for Arch in self.SupArchList:
            for Record in RecordSet:
                if Record[1] == Arch or Record[1] == TAB_ARCH_COMMON:
                    MergeArches(Includes, Record[0], Arch)

        for Key in Includes.keys():
            Include = IncludeClass()
            Include.FilePath = NormPath(Key)
            Include.SupArchList = Includes[Key]
            self.Package.Includes.append(Include)

    ## GenPpis
    #
    # Gen Ppis of Dec
    # <CName>=<GuidValue>
    #
    # @param ContainerFile: The Dec file full path
    #
    def GenGuidProtocolPpis(self, Type, ContainerFile):
        EdkLogger.debug(2, "Generate %s ..." % Type)
        Lists = {}
        #
        # Get all Items
        #
        RecordSet = self.RecordSet[Section[Type.upper()]]

        #
        # Go through each arch
        #
        for Arch in self.SupArchList:
            for Record in RecordSet:
                if Record[1] == Arch or Record[1] == TAB_ARCH_COMMON:
                    (Name, Value) = GetGuidsProtocolsPpisOfDec(Record[0], Type, ContainerFile, Record[2])
                    MergeArches(Lists, (Name, Value), Arch)
                    if self.IsToDatabase:
                        SqlCommand = """update %s set Value1 = '%s', Value2 = '%s'
                                        where ID = %s""" % (self.TblDec.Table, ConvertToSqlString2(Name), ConvertToSqlString2(Value), Record[3])
                        self.TblDec.Exec(SqlCommand)

        ListMember = None
        if Type == TAB_GUIDS:
            ListMember = self.Package.GuidDeclarations
        elif Type == TAB_PROTOCOLS:
            ListMember = self.Package.ProtocolDeclarations
        elif Type == TAB_PPIS:
            ListMember = self.Package.PpiDeclarations

        for Key in Lists.keys():
            ListClass = GuidProtocolPpiCommonClass()
            ListClass.CName = Key[0]
            ListClass.Guid = Key[1]
            ListClass.SupArchList = Lists[Key]
            ListMember.append(ListClass)

    ## GenLibraryClasses
    #
    # Gen LibraryClasses of Dec
    # <CName>=<GuidValue>
    #
    # @param ContainerFile: The Dec file full path
    #
    def GenLibraryClasses(self, ContainerFile):
        EdkLogger.debug(2, "Generate %s ..." % TAB_LIBRARY_CLASSES)
        LibraryClasses = {}
        #
        # Get all Guids
        #
        RecordSet = self.RecordSet[MODEL_EFI_LIBRARY_CLASS]

        #
        # Go through each arch
        #
        for Arch in self.SupArchList:
            for Record in RecordSet:
                if Record[1] == Arch or Record[1] == TAB_ARCH_COMMON:
                    List = GetSplitValueList(Record[0], DataType.TAB_VALUE_SPLIT)
                    if len(List) != 2:
                        RaiseParserError(Record[0], 'LibraryClasses', ContainerFile, '<LibraryClassName>|<LibraryClassInstanceFilename>', Record[2])
                    else:
                        CheckFileExist(self.Identification.FileRelativePath, List[1], ContainerFile, 'LibraryClasses', Record[0])
                    MergeArches(LibraryClasses, (List[0], List[1]), Arch)
                    if self.IsToDatabase:
                        SqlCommand = """update %s set Value1 = '%s', Value2 = '%s', Value3 = '%s'
                                        where ID = %s""" % (self.TblDec.Table, ConvertToSqlString2(List[0]), ConvertToSqlString2(List[1]), SUP_MODULE_LIST_STRING, Record[3])
                        self.TblDec.Exec(SqlCommand)

        for Key in LibraryClasses.keys():
            LibraryClass = LibraryClassClass()
            LibraryClass.LibraryClass = Key[0]
            LibraryClass.RecommendedInstance = NormPath(Key[1])
            LibraryClass.SupModuleList = SUP_MODULE_LIST
            LibraryClass.SupArchList = LibraryClasses[Key]
            self.Package.LibraryClassDeclarations.append(LibraryClass)

    ## GenPcds
    #
    # Gen Pcds of Dec
    # <TokenSpcCName>.<TokenCName>|<Value>|<DatumType>|<Token>
    #
    # @param ContainerFile: The Dec file full path
    #
    def GenPcds(self, ContainerFile):
        EdkLogger.debug(2, "Generate %s ..." % TAB_PCDS)
        Pcds = {}
        PcdToken = {}
        #
        # Get all Guids
        #
        RecordSet1 = self.RecordSet[MODEL_PCD_FIXED_AT_BUILD]
        RecordSet2 = self.RecordSet[MODEL_PCD_PATCHABLE_IN_MODULE]
        RecordSet3 = self.RecordSet[MODEL_PCD_FEATURE_FLAG]
        RecordSet4 = self.RecordSet[MODEL_PCD_DYNAMIC_EX]
        RecordSet5 = self.RecordSet[MODEL_PCD_DYNAMIC]

        #
        # Go through each arch
        #
        for Arch in self.SupArchList:
            for Record in RecordSet1:
                if Record[1] == Arch or Record[1] == TAB_ARCH_COMMON:
                    (TokenGuidCName, TokenName, Value, DatumType, Token, Type) = GetPcdOfDec(Record[0], TAB_PCDS_FIXED_AT_BUILD, ContainerFile, Record[2])
                    MergeArches(Pcds, (TokenGuidCName, TokenName, Value, DatumType, Token, Type), Arch)
                    PcdToken[Record[3]] = (TokenGuidCName, TokenName)
            for Record in RecordSet2:
                if Record[1] == Arch or Record[1] == TAB_ARCH_COMMON:
                    (TokenGuidCName, TokenName, Value, DatumType, Token, Type) = GetPcdOfDec(Record[0], TAB_PCDS_PATCHABLE_IN_MODULE, ContainerFile, Record[2])
                    MergeArches(Pcds, (TokenGuidCName, TokenName, Value, DatumType, Token, Type), Arch)
                    PcdToken[Record[3]] = (TokenGuidCName, TokenName)
            for Record in RecordSet3:
                if Record[1] == Arch or Record[1] == TAB_ARCH_COMMON:
                    (TokenGuidCName, TokenName, Value, DatumType, Token, Type) = GetPcdOfDec(Record[0], TAB_PCDS_FEATURE_FLAG, ContainerFile, Record[2])
                    MergeArches(Pcds, (TokenGuidCName, TokenName, Value, DatumType, Token, Type), Arch)
                    PcdToken[Record[3]] = (TokenGuidCName, TokenName)
            for Record in RecordSet4:
                if Record[1] == Arch or Record[1] == TAB_ARCH_COMMON:
                    (TokenGuidCName, TokenName, Value, DatumType, Token, Type) = GetPcdOfDec(Record[0], TAB_PCDS_DYNAMIC_EX, ContainerFile, Record[2])
                    MergeArches(Pcds, (TokenGuidCName, TokenName, Value, DatumType, Token, Type), Arch)
                    PcdToken[Record[3]] = (TokenGuidCName, TokenName)
            for Record in RecordSet5:
                if Record[1] == Arch or Record[1] == TAB_ARCH_COMMON:
                    (TokenGuidCName, TokenName, Value, DatumType, Token, Type) = GetPcdOfDec(Record[0], TAB_PCDS_DYNAMIC, ContainerFile, Record[2])
                    MergeArches(Pcds, (TokenGuidCName, TokenName, Value, DatumType, Token, Type), Arch)
                    PcdToken[Record[3]] = (TokenGuidCName, TokenName)
        #
        # Update to database
        #
        if self.IsToDatabase:
            for Key in PcdToken.keys():
                SqlCommand = """update %s set Value2 = '%s' where ID = %s""" % (self.TblDec.Table, ".".join((PcdToken[Key][0], PcdToken[Key][1])), Key)
                self.TblDec.Exec(SqlCommand)

        for Key in Pcds.keys():
            Pcd = PcdClass()
            Pcd.CName = Key[1]
            Pcd.Token = Key[4]
            Pcd.TokenSpaceGuidCName = Key[0]
            Pcd.DatumType = Key[3]
            Pcd.DefaultValue = Key[2]
            Pcd.ItemType = Key[5]
            Pcd.SupArchList = Pcds[Key]
            self.Package.PcdDeclarations.append(Pcd)

    ## Show detailed information of Package
    #
    # Print all members and their values of Package class
    #
    def ShowPackage(self):
        M = self.Package
        for Arch in M.Header.keys():
            print '\nArch =', Arch
            print 'Filename =', M.Header[Arch].FileName
            print 'FullPath =', M.Header[Arch].FullPath
            print 'BaseName =', M.Header[Arch].Name
            print 'Guid =', M.Header[Arch].Guid
            print 'Version =', M.Header[Arch].Version
            print 'DecSpecification =', M.Header[Arch].DecSpecification
        print '\nIncludes =', M.Includes
        for Item in M.Includes:
            print Item.FilePath, Item.SupArchList
        print '\nGuids =', M.GuidDeclarations
        for Item in M.GuidDeclarations:
            print Item.CName, Item.Guid, Item.SupArchList
        print '\nProtocols =', M.ProtocolDeclarations
        for Item in M.ProtocolDeclarations:
            print Item.CName, Item.Guid, Item.SupArchList
        print '\nPpis =', M.PpiDeclarations
        for Item in M.PpiDeclarations:
            print Item.CName, Item.Guid, Item.SupArchList
        print '\nLibraryClasses =', M.LibraryClassDeclarations
        for Item in M.LibraryClassDeclarations:
            print Item.LibraryClass, Item.RecommendedInstance, Item.SupModuleList, Item.SupArchList
        print '\nPcds =', M.PcdDeclarations
        for Item in M.PcdDeclarations:
            print 'CName=', Item.CName, 'TokenSpaceGuidCName=', Item.TokenSpaceGuidCName, 'DefaultValue=', Item.DefaultValue, 'ItemType=', Item.ItemType, 'Token=', Item.Token, 'DatumType=', Item.DatumType, Item.SupArchList

##
#
# This acts like the main() function for the script, unless it is 'import'ed into another
# script.
#
if __name__ == '__main__':
    EdkLogger.Initialize()
    EdkLogger.SetLevel(EdkLogger.DEBUG_0)

    W = os.getenv('WORKSPACE')
    F = os.path.join(W, 'Nt32Pkg/Nt32Pkg.dec')

    Db = Database.Database('Dec.db')
    Db.InitDatabase()

    P = Dec(os.path.normpath(F), True, True, W, Db)
    P.ShowPackage()

    Db.Close()


text:
include("test_read_write.jl")
include("test_split_trigger.jl")
include("test_split_time1.jl")
include("test_split_time2.jl")
include("test_eq.jl")
include("test_channel_select.jl")
include("test_decode_status_channel.jl")


text:
package org.apache.nifi.processors.evtx.parser.bxml;

import org.apache.nifi.processors.evtx.parser.BinaryReader;
import org.apache.nifi.processors.evtx.parser.BxmlNodeVisitor;
import org.apache.nifi.processors.evtx.parser.ChunkHeader;
import org.apache.nifi.processors.evtx.parser.NumberUtil;
import org.apache.nifi.processors.evtx.parser.bxml.value.VariantTypeNode;
import org.apache.nifi.processors.evtx.parser.bxml.value.VariantTypeNodeFactory;

import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * Node that contains children and substitutions
 */
public class RootNode extends BxmlNode {
    private final int substitutionCount;
    private final List<VariantTypeNode> substitutions;

    public RootNode(BinaryReader binaryReader, ChunkHeader chunkHeader, BxmlNode parent) throws IOException {
        super(binaryReader, chunkHeader, parent);
        init();
        substitutionCount = NumberUtil.intValueMax(binaryReader.readDWord(), Integer.MAX_VALUE, "Invalid substitution count.");
        List<VariantTypeSizeAndFactory> substitutionVariantFactories = new ArrayList<>(substitutionCount);
        for (long i = 0; i < substitutionCount; i++) {
            try {
                int substitutionSize = binaryReader.readWord();
                int substitutionType = binaryReader.readWord();
                substitutionVariantFactories.add(new VariantTypeSizeAndFactory(substitutionSize, ValueNode.factories.get(substitutionType)));
            } catch (Exception e) {
                throw new IOException(e);
            }
        }
        List<VariantTypeNode> substitutions = new ArrayList<>();
        for (VariantTypeSizeAndFactory substitutionVariantFactory : substitutionVariantFactories) {
            substitutions.add(substitutionVariantFactory.factory.create(binaryReader, chunkHeader, this, substitutionVariantFactory.size));
        }
        this.substitutions = Collections.unmodifiableList(substitutions);
    }

    @Override
    public void accept(BxmlNodeVisitor bxmlNodeVisitor) throws IOException {
        bxmlNodeVisitor.visit(this);
    }

    public List<VariantTypeNode> getSubstitutions() {
        return substitutions;
    }

    @Override
    public String toString() {
        return "RootNode{" + getChildren() + "}";
    }

    public class VariantTypeSizeAndFactory {
        private final int size;
        private final VariantTypeNodeFactory factory;

        public VariantTypeSizeAndFactory(int size, VariantTypeNodeFactory factory) {
            this.size = size;
            this.factory = factory;
        }
    }
}


text:
package main

import (
        "io"
        "text/template"
       )

type QTXTMarshaller interface {
    toQTXT(io.Writer, *template.Template) error
}


text:
Polymer({

    is: 'slide-right-animation',

    behaviors: [
      Polymer.NeonAnimationBehavior
    ],

    configure: function(config) {
      var node = config.node;

      this._effect = new KeyframeEffect(node, [
        {'transform': 'none'},
        {'transform': 'translateX(100%)'}
      ], this.timingFromConfig(config));

      if (config.transformOrigin) {
        this.setPrefixedProperty(node, 'transformOrigin', config.transformOrigin);
      } else {
        this.setPrefixedProperty(node, 'transformOrigin', '0 50%');
      }

      return this._effect;
    }

  });


text:
import {isWindow, removeWindowById} from '../variables/windows';
import {getWindowByName, getWindowById} from '../api/getWindow';

import { WindowName, WindowId, WindowNameOrId, WindowConfig } from '../../types';

export type ICloseWindow = (target?: WindowNameOrId | undefined) => void;

export function closeWindow(target?: WindowNameOrId | undefined) {
		const { windowName, windowId } = target;

	let window:Electron.BrowserWindow;

	if (windowName != null) {
		window = getWindowByName(windowName);

	}

	if (windowId != null)
	{
		window = getWindowById(windowId);

	}

	if (window == null) {
		return;
	}

	removeWindowById(window.id);

	window.close();
}


text:
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System.Threading.Tasks;
using Microsoft.CodeAnalysis.CSharp.Structure;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Structure;
using Microsoft.CodeAnalysis.Test.Utilities;
using Xunit;

namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.Structure.MetadataAsSource
{
    public class TypeDeclarationStructureTests : AbstractCSharpSyntaxNodeStructureTests<TypeDeclarationSyntax>
    {
        protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.MetadataAsSource;
        internal override AbstractSyntaxStructureProvider CreateProvider() => new TypeDeclarationStructureProvider();

        [Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
        public async Task NoCommentsOrAttributes()
        {
            const string code = @"
{|hint:class $$C{|textspan:
{
    void M();
}|}|}";

            await VerifyBlockSpansAsync(code,
                Region("textspan", "hint", CSharpStructureHelpers.Ellipsis, autoCollapse: false));
        }

        [Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
        public async Task WithAttributes()
        {
            const string code = @"
{|hint:{|textspan:[Bar]
[Baz]
|}{|#0:public class $$C|}{|textspan2:
{
    void M();
}|}|#0}";

            await VerifyBlockSpansAsync(code,
                Region("textspan", "hint", CSharpStructureHelpers.Ellipsis, autoCollapse: true),
                Region("textspan2", "#0", CSharpStructureHelpers.Ellipsis, autoCollapse: false));
        }

        [Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
        public async Task WithCommentsAndAttributes()
        {
            const string code = @"
{|hint:{|textspan:// Summary:
//     This is a doc comment.
[Bar, Baz]
|}{|#0:public class $$C|}{|textspan2:
{
    void M();
}|}|#0}";

            await VerifyBlockSpansAsync(code,
                Region("textspan", "hint", CSharpStructureHelpers.Ellipsis, autoCollapse: true),
                Region("textspan2", "#0", CSharpStructureHelpers.Ellipsis, autoCollapse: false));
        }
    }
}


text:
<!DOCTYPE html>

    <title>Jobs Description 2 | Unify - Responsive Website Template</title>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <link rel="shortcut icon" href="favicon.ico">

    <link rel='stylesheet' type='text/css' href='//fonts.googleapis.com/css?family=Open+Sans:400,300,600&subset=cyrillic,latin'>

    <link rel="stylesheet" href="assets/plugins/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="assets/css/style.css">

    <link rel="stylesheet" href="assets/css/headers/header-default.css">
    <link rel="stylesheet" href="assets/css/footers/footer-v1.css">

    <link rel="stylesheet" href="assets/plugins/animate.css">
    <link rel="stylesheet" href="assets/plugins/line-icons/line-icons.css">
    <link rel="stylesheet" href="assets/plugins/font-awesome/css/font-awesome.min.css">

    <link rel="stylesheet" href="assets/css/pages/page_job_inner2.css">

    <link rel="stylesheet" href="assets/css/custom.css">

Job Description

Pellentesque et erat ac massa cursus porttitor eget sed magna.

EA Canada, Inc

Worldwide, 16,329 Employees, Bentonville, Arkansas

                    34 reviews

                        Revenue

                        Staff Salaries

                        Possibility of Dismissial

                                        Followers
                                        2,1k

                                        VieSharews
                                        749k

                                        Views
                                        15,7k

                                        Opportunity Views
                                        202,8k

Job Description

This job was a great job for the pay and benefits when compared to waiting table and working fast food. I also preferred working for the vs other stores like . The biggest problem was unreasonable expectations from management. Even as one of there top employees you feel taken advantage of and over worked. Dealing with the customers was the other issue.

Your Task

Donec non turpis in erat iaculis pulvinar id ac magna. Proin sem urna, tincidunt ac hendrerit in, lobortis interdum nisi. Quisque ornare dui sodales, mattis dolor ac, pellentesque nisl. Suspendisse quam dolor, euismod sed massa vitae, placerat congue turpis. Nulla congue lectus nec tellus euismod, porta mattis nisl interdum.

 Nullam laoreet est sit amet felis tristique laoreet

 The biggest problem was unreasonable expectations from management

 Dealing with the customers was the other issue

Responsibility

Maecenas at aliquam lorem. In massa diam, porttitor rhoncus metus eu, malesuada convallis sapien. Mauris nulla ante, aliquam nec mauris id, auctor rhoncus lorem. Pellentesque scelerisque tempor tellus nec ultrices. Nullam pretium ac urna at pretium. Integer vitae nisi dictum, feugiat sapien eget, dignissim odio.

Nullam laoreet est sit amet felis tristique laoreet

The biggest problem was unreasonable expectations from management

Dealing with the customers was the other issue

Nullam laoreet est sit amet felis tristique laoreet

The biggest problem was unreasonable expectations from management

Dealing with the customers was the other issue

What We Offer

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam ac tempus metus, ullamcorper aliquam turpis. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Curabitur ut tempus nibh. Nulla rhoncus est in viverra elementum. Cras condimentum, leo venenatis feugiat condimentum, ligula magna cursus est, non hendrerit erat sem et nisl. Fusce placerat viverra ante quis sodales. Nulla facilisi. Proin id nunc massa. Curabitur pharetra, ante et rhoncus lacinia, quam augue interdum massa, ut lobortis ligula sapien eu nunc.

                     Nullam laoreet est sit amet felis tristique laoreet

                     The biggest problem was unreasonable expectations from management

                     Dealing with the customers was the other issue

Suspendisse quam dolor, euismod sed massa vitae, placerat congue turpis. Nulla congue lectus nec tellus euismod, porta mattis nisl interdum. Quisque ornare dui sodales, mattis dolor ac, pellentesque nisl. Suspendisse quam dolor, euismod sed massa vitae, placerat congue turpis.

        2015 © Unify Template. ALL Rights Reserved.