text:
PortaText\Command\Api\Settings
===============

The me/settings endpoint.

* Class name: Settings
* Namespace: PortaText\Command\Api
* Parent class: [PortaText\Command\Base](PortaText-Command-Base.md)

Properties
----------

### $args

    private array $args

Arguments for endpoint invokation.

* Visibility: **private**

Methods
-------

### dontAlertOnLowCredit

    \PortaText\Command\Api\PortaText\Command\ICommand PortaText\Command\Api\Settings::dontAlertOnLowCredit()

Dont send an alert by email on low credit.

* Visibility: **public**

### alertWhenCreditLessThan

    \PortaText\Command\Api\PortaText\Command\ICommand PortaText\Command\Api\Settings::alertWhenCreditLessThan(integer $value)

Sends an alert by email when credit reaches the given threshold.

* Visibility: **public**

#### Arguments
* $value **integer** -
Credit threshold.

### dontSendInboundByEmail

    \PortaText\Command\Api\PortaText\Command\ICommand PortaText\Command\Api\Settings::dontSendInboundByEmail()

Don't send emails on inbound messages.

* Visibility: **public**

### sendInboundByEmail

    \PortaText\Command\Api\PortaText\Command\ICommand PortaText\Command\Api\Settings::sendInboundByEmail(string $email)

Set email where to send inbound messages to.

* Visibility: **public**

#### Arguments
* $email **string** -
Use this email to send inbound messages.

### enableAutoRecharges

    \PortaText\Command\Api\PortaText\Command\ICommand PortaText\Command\Api\Settings::enableAutoRecharges(integer $whenCredit, float $total)

Enables auto recharges.

* Visibility: **public**

#### Arguments
* $whenCredit **integer** -
Autorecharge when credit reaches this amount.

* $total **float** -
Total credits to autorecharge.

### disableAutoRecharges

    \PortaText\Command\Api\PortaText\Command\ICommand PortaText\Command\Api\Settings::disableAutoRecharges()

Disables auto recharges.

* Visibility: **public**

### defaultCreditCard

    \PortaText\Command\Api\PortaText\Command\ICommand PortaText\Command\Api\Settings::defaultCreditCard(integer $cardId)

Sets default credit card id.

* Visibility: **public**

#### Arguments
* $cardId **integer** -
Credit Card ID to use by default.

### amdMaxWordLength

    \PortaText\Command\Api\PortaText\Command\ICommand PortaText\Command\Api\Settings::amdMaxWordLength(integer $maxWordLength)

The minimum duration of Voice considered to be a word (milliseconds).

* Visibility: **public**

#### Arguments
* $maxWordLength **integer** -
Value in milliseconds.

### amdSilenceThreshold

    \PortaText\Command\Api\PortaText\Command\ICommand PortaText\Command\Api\Settings::amdSilenceThreshold(integer $silenceThreshold)

How long do we consider silence (milliseconds).

* Visibility: **public**

#### Arguments
* $silenceThreshold **integer** -
Value in milliseconds.

### amdMaxWords

    \PortaText\Command\Api\PortaText\Command\ICommand PortaText\Command\Api\Settings::amdMaxWords(integer $maxWords)

The maximum number of words in a greeting.

* Visibility: **public**

#### Arguments
* $maxWords **integer** -
Number of words.

### amdBetweenWordsSilence

    \PortaText\Command\Api\PortaText\Command\ICommand PortaText\Command\Api\Settings::amdBetweenWordsSilence(integer $silenceBetweenWords)

The minimum duration of silence after a word to consider the
audio that follows to be a new word (milliseconds).

* Visibility: **public**

#### Arguments
* $silenceBetweenWords **integer** -
Value in milliseconds.

### amdMinWordLength

    \PortaText\Command\Api\PortaText\Command\ICommand PortaText\Command\Api\Settings::amdMinWordLength(integer $minWordLength)

The minimum duration of Voice considered to be a word (milliseconds).

* Visibility: **public**

#### Arguments
* $minWordLength **integer**

### amdTotalTime

    \PortaText\Command\Api\PortaText\Command\ICommand PortaText\Command\Api\Settings::amdTotalTime(integer $totalTime)

The maximum time allowed for the algorithm (milliseconds).

* Visibility: **public**

#### Arguments
* $totalTime **integer** -
Value in milliseconds.

### amdAfterGreetingSilence

    \PortaText\Command\Api\PortaText\Command\ICommand PortaText\Command\Api\Settings::amdAfterGreetingSilence(integer $greetingSilence)

Is the silence after detecting a greeting (milliseconds).

* Visibility: **public**

#### Arguments
* $greetingSilence **integer** -
Value in milliseconds.

### amdMaxGreetingLength

    \PortaText\Command\Api\PortaText\Command\ICommand PortaText\Command\Api\Settings::amdMaxGreetingLength(integer $greetingLength)

Is the maximum length of a greeting (milliseconds).

* Visibility: **public**

#### Arguments
* $greetingLength **integer** -
Value in milliseconds.

### amdInitialSilence

    \PortaText\Command\Api\PortaText\Command\ICommand PortaText\Command\Api\Settings::amdInitialSilence(integer $initialSilence)

Is maximum initial silence duration before greeting (milliseconds).

* Visibility: **public**

#### Arguments
* $initialSilence **integer** -
Value in milliseconds.

### publishEventsToSns

    \PortaText\Command\Api\PortaText\Command\ICommand PortaText\Command\Api\Settings::publishEventsToSns(string $key, string $secret, string $topicArn)

Enables publishing of events to an SNS topic.

* Visibility: **public**

#### Arguments
* $key **string** -
Amazon AWS access key.

* $secret **string** -
Amazon AWS access secret.

* $topicArn **string** -
SNS Topic ARN.

### dontPublishEventsToSns

    \PortaText\Command\Api\PortaText\Command\ICommand PortaText\Command\Api\Settings::dontPublishEventsToSns()

Disables publishing of events to an SNS topic.

* Visibility: **public**

### getEndpoint

    string PortaText\Command\Base::getEndpoint(string $method)

Returns a string with the endpoint for the given command.

* Visibility: **protected**
* This method is **abstract**.
* This method is defined by [PortaText\Command\Base](PortaText-Command-Base.md)

#### Arguments
* $method **string** -
Method for this command.

### setArgument

    array PortaText\Command\Base::setArgument(string $key, string $value)

Sets the given argument to the given value.

* Visibility: **protected**
* This method is defined by [PortaText\Command\Base](PortaText-Command-Base.md)

#### Arguments
* $key **string** -
Name of the argument.

* $value **string** -
Value of the argument.

### delArgument

    array PortaText\Command\Base::delArgument(string $key)

Deletes an argument.

* Visibility: **protected**
* This method is defined by [PortaText\Command\Base](PortaText-Command-Base.md)

#### Arguments
* $key **string** -
Name of the argument.

### getArgument

    mixed|null PortaText\Command\Base::getArgument(string $key)

Returns the value for the given argument name.

* Visibility: **protected**
* This method is defined by [PortaText\Command\Base](PortaText-Command-Base.md)

#### Arguments
* $key **string** -
Name of the argument.

### getArguments

    array PortaText\Command\Base::getArguments()

Returns an associative array with the arguments.

* Visibility: **protected**
* This method is defined by [PortaText\Command\Base](PortaText-Command-Base.md)

### getBody

    string PortaText\Command\Base::getBody(string $method)

Returns the body for this endpoint.

* Visibility: **protected**
* This method is defined by [PortaText\Command\Base](PortaText-Command-Base.md)

#### Arguments
* $method **string** -
Method for this command.

### getContentType

    string PortaText\Command\Base::getContentType(string $method)

Returns the content type for this endpoint.

* Visibility: **protected**
* This method is defined by [PortaText\Command\Base](PortaText-Command-Base.md)

#### Arguments
* $method **string** -
Method for this command.

### getAcceptContentType

    string PortaText\Command\Base::getAcceptContentType(string $method)

Returns the accepted content type for this endpoint.

* Visibility: **protected**
* This method is defined by [PortaText\Command\Base](PortaText-Command-Base.md)

#### Arguments
* $method **string** -
Method for this command.

### get

    \PortaText\Command\PortaText\Command\ICommand PortaText\Command\ICommand::get()

Runs this command with a GET method and returns the result.

* Visibility: **public**
* This method is defined by [PortaText\Command\ICommand](PortaText-Command-ICommand.md)

### post

    \PortaText\Command\PortaText\Command\ICommand PortaText\Command\ICommand::post()

Runs this command with a POST method and returns the result.

* Visibility: **public**
* This method is defined by [PortaText\Command\ICommand](PortaText-Command-ICommand.md)

### put

    \PortaText\Command\PortaText\Command\ICommand PortaText\Command\ICommand::put()

Runs this command with a PUT method and returns the result.

* Visibility: **public**
* This method is defined by [PortaText\Command\ICommand](PortaText-Command-ICommand.md)

### delete

    \PortaText\Command\PortaText\Command\ICommand PortaText\Command\ICommand::delete()

Runs this command with a DELETE method and returns the result.

* Visibility: **public**
* This method is defined by [PortaText\Command\ICommand](PortaText-Command-ICommand.md)

### patch

    \PortaText\Command\PortaText\Command\ICommand PortaText\Command\ICommand::patch()

Runs this command with a PATCH method and returns the result.

* Visibility: **public**
* This method is defined by [PortaText\Command\ICommand](PortaText-Command-ICommand.md)

### run

    \PortaText\Command\PortaText\Command\ICommand PortaText\Command\Base::run(string $method)

Runs this command with the given method and returns the result.

* Visibility: **protected**
* This method is defined by [PortaText\Command\Base](PortaText-Command-Base.md)

#### Arguments
* $method **string** -
HTTP Method to use.

### setClient

    \PortaText\Command\PortaText\Api\Api PortaText\Command\ICommand::setClient(\PortaText\Command\PortaText\Client\Client $client)

Sets the API client to use.

* Visibility: **public**
* This method is defined by [PortaText\Command\ICommand](PortaText-Command-ICommand.md)

#### Arguments
* $client **PortaText\Command\PortaText\Client\Client** -
New injected client.

### __construct

    mixed PortaText\Command\Base::__construct()

Standard constructor.

* Visibility: **public**
* This method is defined by [PortaText\Command\Base](PortaText-Command-Base.md)


text:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<groupId>com.nickscha</groupId>
	<artifactId>servlet-auth</artifactId>
	<version>0.0.1-SNAPSHOT</version>
	<packaging>war</packaging>
	<name>servlet-auth</name>
	<description>A simplistic servlet example project for programmatic authentication.</description>
	<inceptionYear>2017</inceptionYear>

	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<maven.compiler.source>1.8</maven.compiler.source>
		<maven.compiler.target>1.8</maven.compiler.target>
		<additionalparam>-Xdoclint:none</additionalparam>

		<servlet.api>3.1.0</servlet.api>
	</properties>

	<dependencies>
		<dependency>
			<groupId>javax.servlet</groupId>
			<artifactId>javax.servlet-api</artifactId>
			<version>${servlet.api}</version>
			<scope>provided</scope>
		</dependency>
	</dependencies>

	<developers>
		<developer>
			<id>nickscha</id>
			<name>nickscha</name>
			<url>https://nickscha.github.io/</url>
		</developer>
	</developers>

	<licenses>
		<license>
			<name>The Apache Software License, Version 2.0</name>
			<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
			<distribution>repo</distribution>
			<comments>A business-friendly OSS license</comments>
		</license>
	</licenses>

	<build>
		<finalName>${project.artifactId}</finalName>
		<plugins>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>cobertura-maven-plugin</artifactId>
				<version>2.7</version>
				<configuration>
					<formats>
						<format>html</format>
						<format>xml</format>
					</formats>
					<check />
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.eclipse.jetty</groupId>
				<artifactId>jetty-maven-plugin</artifactId>
				<version>9.4.7.v20170914</version>
			</plugin>
		</plugins>
	</build>

	<scm>
		<connection>scm:git:git@github.com:nickscha/servlet-auth.git</connection>
		<url>scm:git:git@github.com:nickscha/servlet-auth.git</url>
		<developerConnection>scm:git:git@github.com:nickscha/servlet-auth.git</developerConnection>
	</scm>

</project>

redpajama_set_name: RedPajamaGithub


text:
package me.apqx.raspberry.controller.listener;

/**
 * Created by chang on 2016/10/8.
 */
public interface DirectionListener {
    void up();
    void down();
    void right();
    void left();
    void stop();
}


text:
button, input, optgroup, select, textarea {
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

a {
  -webkit-tap-highlight-color: transparent;
}

/**
 * Correct the style in all browsers.
 */
html {
  font-family: "Helvetica Neue", Helvetica, STHeiTi, sans-serif;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
}

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

hr {
  box-sizing: content-box;
  height: 0;
}

pre {
  font-family: monospace, monospace;
  font-size: 1em;
}

a:active, a:hover {
  outline-width: 0;
}

abbr[title] {
  border-bottom: none;
  text-decoration: underline;
  text-decoration: underline dotted;
}

b, strong {
  font-weight: bolder;
}

code, kbd, samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

dfn {
  font-style: italic;
}

small {
  font-size: 80%;
}

sub, sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

audio:not([controls]) {
  display: none;
  height: 0;
}

button, input, optgroup, select, textarea {
  font-family: sans-serif;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

button, html [type="button"], [type="reset"], [type="submit"] {
  -webkit-appearance: button;
}

button::-moz-focus-inner, [type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

button:-moz-focusring, [type="button"]:-moz-focusring, [type="reset"]:-moz-focusring, [type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}

legend {
  padding: 0;
}

progress {
  vertical-align: baseline;
}

[type="number"]::-webkit-inner-spin-button, [type="number"]::-webkit-outer-spin-button {
  height: auto;
}

[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

details, summary {
  display: list-item;
}

/*# sourceMappingURL=reset.css.map */


text:
"""
Module contains snapshot test.
"""
from ducktape.mark import parametrize

from ignitetest.services.ignite_app import IgniteApplicationService
from ignitetest.services.utils.control_utility import ControlUtility
from ignitetest.services.utils.ignite_configuration import IgniteConfiguration, DataStorageConfiguration
from ignitetest.services.utils.ignite_configuration.data_storage import DataRegionConfiguration
from ignitetest.utils import cluster
from ignitetest.utils.ignite_test import IgniteTest
from ignitetest.utils.version import IgniteVersion, LATEST, DEV_BRANCH, OLDEST

# pylint: disable=W0223
class PersistenceUpgradeTest(IgniteTest):
    """
    Test checks persistence upgrade.
    """

    @cluster(num_nodes=1)
    @parametrize(versions=[str(OLDEST), str(LATEST), str(DEV_BRANCH)])
    def upgrade_test(self, versions):
        """
        Basic upgrade test.
        """
        versions = sorted(list(map(IgniteVersion, versions)))

        self.logger.info(f"Testing: {versions}")

        service = IgniteApplicationService(
            self.test_context,
            config=None,  # will be defined later.
            java_class_name="org.apache.ignite.internal.ducktest.tests.persistence_upgrade_test."
                            "DataLoaderAndCheckerApplication"
        )

        for version in versions:
            service.config = IgniteConfiguration(
                data_storage=DataStorageConfiguration(default=DataRegionConfiguration(persistent=True)),
                version=version
            )

            service.params = {"check": service.stopped}

            service.start(clean=False)

            control_utility = ControlUtility(service)
            control_utility.activate()

            service.stop()


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

namespace PoppertechCalculator.Models
{
    public class PortfolioContext
    {
        public IList<PortfolioInvestmentContext> InvestmentContexts { get; set; }

        public IList<decimal> CashFlows { get; set; }
    }
}


text:
class Project < ActiveRecord::Base
  belongs_to :user
  has_many :subscriptions, dependent: :destroy

  validates :user, :name, :token, presence: true

  def push(title, message, url)
    url = "https://space-notice.com" if url.blank?
    url = ProxyUrl.short(url)

    params = { body: message, title: name, url_args: [url] }
    params[:title] = title if title.present?

    subscriptions.includes(user: :devices).each do |subscription|
      subscription.user.devices.each do |device|
        Pusher.new(params.merge(device_token: device.token)).push
      end
    end
  end

  def push_payload(string) # travis
    payload = JSON.parse(string)
    repo = payload["repository"]
    title   = "#{repo["owner_name"]}/#{repo["name"]}"
    message = "#{payload["branch"]}: #{payload["status_message"]}"

    if payload["type"] == "pull_request"
      url = "#{repo["url"]}/pull/#{payload["pull_request_number"]}"
    else
      url = "#{repo["url"]}/commit/#{payload["commit"]}"
    end
    push(title, message, url)
  end

  def push_cloud66_deploy_success(payload)
    title   = payload[:name]
    message = "#{payload[:git_branch]} successfully redeployed"
    url     = payload[:fqdn]
    push(title, message, url)
  end

  def push_cloud66_deploy_failed(payload)
    title   = payload[:name]
    message = "#{payload[:git_branch]} redeployment failed"
    url     = payload[:fqdn]
    push(title, message, url)
  end
end


text:
<?php
session_start();
if (isset($_SESSION['message1'])) {
    $_SESSION['message1'] = '';
}
?>
<!DOCTYPE html>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="description" content="ayufood.lk">
    <meta name="viewport" content="width=device-width">

    <link rel="stylesheet" href="css/bootstrap.min.css">
    <link rel="stylesheet" href="css/icomoon-social.css">
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,600,800' rel='stylesheet' type='text/css'>
    <link rel="stylesheet" href="css/main.css">

<?php
require_once('navbar.php');
?>

                    <form role="form" method="get" action="handlesocialmedialogin.php">

                             Address
                            <input class="form-control" name="address" id="login-address" type="text" placeholder="">

                             Contact Number
                            <input class="form-control" name="contactnumber" id="contactnumber" type="text"
                                   placeholder="">

                            Forgot password?
                            <button type="submit" id="submit" class="btn pull-right">Login</button>

                                    <?php
                                    if (isset($_SESSION['message']) && $_SESSION['message'] !== '') {
                                        echo $_SESSION['message'];
                                    } else {
                                        echo "Are you a memeber of Ayufoods.lk?";
                                    }
                                    ?>

                    </form>

Fill address and contact number and we are done.

We Feed Sri Lanka

Navigate

Home

About

Shop

Contact

FAQ

Contacts

                    Address: 02 First lane, Narahenpita, Colombo 8

                    Phone: +94 33 2654321

                    Fax: +94 33 2654321

                    Email: ayufood@gmail.com

Stay Connected

© ayufood.lk 2016. All rights reserved.


text:
"""A simple e-commerce store using Flask & Google Tag Manager."""
import os
import uuid
from flask import Flask, redirect, request, session, url_for
from flask import render_template
import constants
import crud
import models

# The port to run the application on
PORT = int(os.environ.get('PORT', 8080))
# The container ID of your Web GTM container
GTM_WEB_CONTAINER_ID = os.environ.get('GTM_WEB_CONTAINER_ID')
# Flask secret key
SECRET_KEY = os.environ.get('SECRET_KEY')

app = Flask(__name__)
app.config['SECRET_KEY'] = SECRET_KEY

@app.context_processor
def inject_gtm_web_container_id():
    return dict(gtm_web_container_id=GTM_WEB_CONTAINER_ID)

@app.context_processor
def inject_currency():
    return {
        'currency_code': constants.CURRENCY_CODE,
        'currency_symbol': constants.CURRENCY_SYMBOL,
    }

@app.route('/')
def home():
    """The entry point for the home page."""
    return render_template('index.html')

@app.route('/products/')
def products_page():
    """A page listing all the products."""
    products = crud.get_products()
    response = {
        'products': products.values()
    }
    return render_template('products.html', content=response)

@app.route('/product/<sku>')
def product_page(sku: str):
    """The product details page for a product."""
    response = {
        'product': crud.get_product(sku),
    }
    return render_template('product.html', content=response)

@app.route('/basket', methods=['POST'])
def update_basket():
    """An end point for adding items to a basket.

    The request can contain an optional payload for modifying the contents of
    the data:

    {
        'sku': 'abc-123',
        'operation': '+',
        'change_quantity': 1
    }

    The operation can either be a `+` or a `-`.
    """
    data = request.get_json(silent=True)
    sku = data.get('sku')
    change_quantity = data.get('change_quantity', 1)
    operation = data.get('operation', '+')
    product = crud.get_product(sku)
    if product is not None:
        basket = models.Basket(**session.get('basket', {}))
        basket_product = basket.products.get(sku, models.BasketProduct(
            product=product,
            quantity=0
        ))
        if operation == '+':
            basket_product.quantity += change_quantity
        else:
            basket_product.quantity -= change_quantity

        # If there are no items remaining remove it from the basket
        if basket_product.quantity <= 0:
            del basket.products[sku]
        else:
            basket.products[sku] = basket_product

        session['basket'] = basket.dict()
    return '', 204

@app.route('/basket')
def view_basket():
    """A page displaying basket contents."""
    response = {
        'basket': models.Basket(**session.get('basket', {})),
    }
    return render_template('basket.html', content=response)

@app.route('/clear-basket', methods=['POST'])
def clear_basket():
    """An end point for clearing all items from a basket."""
    session.pop('basket')
    return '', 204

@app.route('/thank-you')
def view_order_page():
    """A page displaying the order confirmation."""
    if 'basket' not in session:
        return redirect(url_for('home'))
    basket = models.Basket(**session.pop('basket'))
    if basket.is_empty():
        return redirect(url_for('home'))
    response = {
        'basket': basket,
        'transaction_id': str(uuid.uuid4()),
    }
    return render_template('order-confirmation.html', content=response)

if __name__ == '__main__':
    app.run(debug=True, host='0.0.0.0', port=PORT)


text:
package org.jitsi.impl.neomedia.format;

import java.util.*;

import javax.media.*;
import javax.media.format.*;

import org.jitsi.impl.neomedia.*;
import org.jitsi.service.neomedia.codec.*;
import org.jitsi.service.neomedia.format.*;
import org.jitsi.utils.*;
import org.jitsi.utils.logging.*;

/**
 * Implements <tt>MediaFormatFactory</tt> for the JMF <tt>Format</tt> types.
 *
 * @author Lyubomir Marinov
 */
public class MediaFormatFactoryImpl
    implements MediaFormatFactory
{
    /**
     * The <tt>Logger</tt> used by the <tt>MediaFormatFactoryImpl</tt> class and
     * its instances for logging output.
     */
    private static final Logger logger
            = Logger.getLogger(MediaFormatFactoryImpl.class);

    /**
     * Creates an unknown <tt>MediaFormat</tt>.
     *
     * @param type <tt>MediaType</tt>
     * @return unknown <tt>MediaFormat</tt>
     */
    public MediaFormat createUnknownMediaFormat(MediaType type)
    {
        Format unknown = null;

        /*
         * FIXME Why is a VideoFormat instance created for MediaType.AUDIO and
         * an AudioFormat instance for MediaType.VIDEO?
         */
        if(type.equals(MediaType.AUDIO))
            unknown = new VideoFormat("unknown");
        else if(type.equals(MediaType.VIDEO))
            unknown = new AudioFormat("unknown");
        return MediaFormatImpl.createInstance(unknown);
    }

    /**
     * Creates a <tt>MediaFormat</tt> for the specified <tt>encoding</tt> with
     * default clock rate and set of format parameters. If <tt>encoding</tt> is
     * known to this <tt>MediaFormatFactory</tt>, returns a
     * <tt>MediaFormat</tt> which is either an <tt>AudioMediaFormat</tt> or a
     * <tt>VideoMediaFormat</tt> instance. Otherwise, returns <tt>null</tt>.
     *
     * @param encoding the well-known encoding (name) to create a
     * <tt>MediaFormat</tt> for
     * @return a <tt>MediaFormat</tt> with the specified <tt>encoding</tt> which
     * is either an <tt>AudioMediaFormat</tt> or a <tt>VideoMediaFormat</tt>
     * instance if <tt>encoding</tt> is known to this
     * <tt>MediaFormatFactory</tt>; otherwise, <tt>null</tt>
     * @see MediaFormatFactory#createMediaFormat(String)
     */
    public MediaFormat createMediaFormat(String encoding)
    {
        return createMediaFormat(encoding, CLOCK_RATE_NOT_SPECIFIED);
    }

    /**
     * Creates a <tt>MediaFormat</tt> for the specified RTP payload type with
     * default clock rate and set of format parameters. If
     * <tt>rtpPayloadType</tt> is known to this <tt>MediaFormatFactory</tt>,
     * returns a <tt>MediaFormat</tt> which is either an
     * <tt>AudioMediaFormat</tt> or a <tt>VideoMediaFormat</tt> instance.
     * Otherwise, returns <tt>null</tt>.
     *
     * @param rtpPayloadType the RTP payload type of the <tt>MediaFormat</tt> to
     * create
     * @return a <tt>MediaFormat</tt> with the specified <tt>rtpPayloadType</tt>
     * which is either an <tt>AudioMediaFormat</tt> or a
     * <tt>VideoMediaFormat</tt> instance if <tt>rtpPayloadType</tt> is known to
     * this <tt>MediaFormatFactory</tt>; otherwise, <tt>null</tt>
     * @see MediaFormatFactory#createMediaFormat(byte)
     */
    public MediaFormat createMediaFormat(byte rtpPayloadType)
    {
        /*
         * We know which are the MediaFormat instances with the specified
         * rtpPayloadType but we cannot directly return them because they do not
         * reflect the user's configuration with respect to being enabled and
         * disabled.
         */
        for (MediaFormat rtpPayloadTypeMediaFormat
                : MediaUtils.getMediaFormats(rtpPayloadType))
        {
            MediaFormat mediaFormat
                = createMediaFormat(
                    rtpPayloadTypeMediaFormat.getEncoding(),
                    rtpPayloadTypeMediaFormat.getClockRate());
            if (mediaFormat != null)
                return mediaFormat;
        }
        return null;
    }

    /**
     * Creates a <tt>MediaFormat</tt> for the specified <tt>encoding</tt> with
     * the specified <tt>clockRate</tt> and a default set of format parameters.
     * If <tt>encoding</tt> is known to this <tt>MediaFormatFactory</tt>,
     * returns a <tt>MediaFormat</tt> which is either an
     * <tt>AudioMediaFormat</tt> or a <tt>VideoMediaFormat</tt> instance.
     * Otherwise, returns <tt>null</tt>.
     *
     * @param encoding the well-known encoding (name) to create a
     * <tt>MediaFormat</tt> for
     * @param clockRate the clock rate in Hz to create a <tt>MediaFormat</tt>
     * for
     * @return a <tt>MediaFormat</tt> with the specified <tt>encoding</tt> and
     * <tt>clockRate</tt> which is either an <tt>AudioMediaFormat</tt> or a
     * <tt>VideoMediaFormat</tt> instance if <tt>encoding</tt> is known to this
     * <tt>MediaFormatFactory</tt>; otherwise, <tt>null</tt>
     * @see MediaFormatFactory#createMediaFormat(String, double)
     */
    public MediaFormat createMediaFormat(String encoding, double clockRate)
    {
        return createMediaFormat(encoding, clockRate, 1);
    }

    /**
     * Creates a <tt>MediaFormat</tt> for the specified <tt>encoding</tt>,
     * <tt>clockRate</tt> and <tt>channels</tt> and a default set of format
     * parameters. If <tt>encoding</tt> is known to this
     * <tt>MediaFormatFactory</tt>, returns a <tt>MediaFormat</tt> which is
     * either an <tt>AudioMediaFormat</tt> or a <tt>VideoMediaFormat</tt>
     * instance. Otherwise, returns <tt>null</tt>.
     *
     * @param encoding the well-known encoding (name) to create a
     * <tt>MediaFormat</tt> for
     * @param clockRate the clock rate in Hz to create a <tt>MediaFormat</tt>
     * for
     * @param channels the number of available channels (1 for mono, 2 for
     * stereo) if it makes sense for the <tt>MediaFormat</tt> with the specified
     * <tt>encoding</tt>; otherwise, ignored
     * @return a <tt>MediaFormat</tt> with the specified <tt>encoding</tt>,
     * <tt>clockRate</tt> and <tt>channels</tt> and a default set of format
     * parameters which is either an <tt>AudioMediaFormat</tt> or a
     * <tt>VideoMediaFormat</tt> instance if <tt>encoding</tt> is known to this
     * <tt>MediaFormatFactory</tt>; otherwise, <tt>null</tt>
     * @see MediaFormatFactory#createMediaFormat(String, double, int)
     */
    public MediaFormat createMediaFormat(
            String encoding, double clockRate, int channels)
    {
        return createMediaFormat(encoding, clockRate, channels, null);
    }

    private MediaFormat createMediaFormat(
            String encoding, double clockRate, int channels,
            Map<String, String> fmtps)
    {
        for (MediaFormat format : getSupportedMediaFormats(encoding, clockRate))
        {
            /*
             * The mediaType, encoding and clockRate properties are sure to
             * match because format is the result of the search for encoding and
             * clockRate. We just want to make sure that the channels and the
             * format parameters match.
             */
            if (format.matches(
                    format.getMediaType(),
                    format.getEncoding(), format.getClockRate(), channels,
                    fmtps))
                return format;
        }
        return null;
    }

    /**
     * Creates a <tt>MediaFormat</tt> for the specified <tt>encoding</tt>,
     * <tt>clockRate</tt> and set of format parameters. If <tt>encoding</tt> is
     * known to this <tt>MediaFormatFactory</tt>, returns a <tt>MediaFormat</tt>
     * which is either an <tt>AudioMediaFormat</tt> or a
     * <tt>VideoMediaFormat</tt> instance. Otherwise, returns <tt>null</tt>.
     *
     * @param encoding the well-known encoding (name) to create a
     * <tt>MediaFormat</tt> for
     * @param clockRate the clock rate in Hz to create a <tt>MediaFormat</tt>
     * for
     * @param formatParams any codec specific parameters which have been
     * received via SIP/SDP or XMPP/Jingle
     * @return a <tt>MediaFormat</tt> with the specified <tt>encoding</tt>,
     * <tt>clockRate</tt> and set of format parameters which is either an
     * <tt>AudioMediaFormat</tt> or a <tt>VideoMediaFormat</tt> instance if
     * <tt>encoding</tt> is known to this <tt>MediaFormatFactory</tt>;
     * otherwise, <tt>null</tt>
     * @see MediaFormatFactory#createMediaFormat(String, double, Map, Map)
     */
    public MediaFormat createMediaFormat(
            String encoding, double clockRate,
            Map<String, String> formatParams,
            Map<String, String> advancedParams)
    {
        return
            createMediaFormat(
                    encoding, clockRate, 1, -1,
                    formatParams,
                    advancedParams);
    }

    /**
     * Creates a <tt>MediaFormat</tt> for the specified <tt>encoding</tt>,
     * <tt>clockRate</tt>, <tt>channels</tt> and set of format parameters. If
     * <tt>encoding</tt> is known to this <tt>MediaFormatFactory</tt>, returns a
     * <tt>MediaFormat</tt> which is either an <tt>AudioMediaFormat</tt> or a
     * <tt>VideoMediaFormat</tt> instance. Otherwise, returns <tt>null</tt>.
     *
     * @param encoding the well-known encoding (name) to create a
     * <tt>MediaFormat</tt> for
     * @param clockRate the clock rate in Hz to create a <tt>MediaFormat</tt>
     * for
     * @param frameRate the frame rate in number of frames per second to
     * create a <tt>MediaFormat</tt> for
     * @param channels the number of available channels (1 for mono, 2 for
     * stereo) if it makes sense for the <tt>MediaFormat</tt> with the specified
     * <tt>encoding</tt>; otherwise, ignored
     * @param formatParams any codec specific parameters which have been
     * received via SIP/SDP or XMPP/Jingle
     * @param advancedParams any parameters which have been
     * received via SIP/SDP or XMPP/Jingle
     * @return a <tt>MediaFormat</tt> with the specified <tt>encoding</tt>,
     * <tt>clockRate</tt>, <tt>channels</tt> and set of format parameters which
     * is either an <tt>AudioMediaFormat</tt> or a <tt>VideoMediaFormat</tt>
     * instance if <tt>encoding</tt> is known to this
     * <tt>MediaFormatFactory</tt>; otherwise, <tt>null</tt>
     * @see MediaFormatFactory#createMediaFormat(String, double, int, float, Map, Map)
     */
    public MediaFormat createMediaFormat(
            String encoding, double clockRate, int channels, float frameRate,
            Map<String, String> formatParams,
            Map<String, String> advancedParams)
    {
        MediaFormat mediaFormat
            = createMediaFormat(encoding, clockRate, channels, formatParams);

        if (mediaFormat == null)
            return null;

         /*
          * MediaFormatImpl is immutable so if the caller wants to change the
          * format parameters and/or the advanced attributes, we'll have to
          * create a new MediaFormatImpl.
          */
        Map<String, String> formatParameters = null;
        Map<String, String> advancedParameters = null;

        if ((formatParams != null) && !formatParams.isEmpty())
            formatParameters = formatParams;
        if ((advancedParams != null ) && !advancedParams.isEmpty())
            advancedParameters = advancedParams;

        if ((formatParameters != null) || (advancedParameters != null))
        {
            switch (mediaFormat.getMediaType())
            {
            case AUDIO:
                mediaFormat
                    = new AudioMediaFormatImpl(
                            ((AudioMediaFormatImpl) mediaFormat).getFormat(),
                            formatParameters, advancedParameters);
                break;
            case VIDEO:
                VideoMediaFormatImpl videoMediaFormatImpl
                    = (VideoMediaFormatImpl) mediaFormat;

                /*
                 * If the format of VideoMediaFormatImpl is
                 * a ParameterizedVideoFormat, it's possible for the format
                 * parameters of that ParameterizedVideoFormat and of the new
                 * VideoMediaFormatImpl (to be created) to be out of sync. While
                 * it's not technically perfect, it should be practically safe
                 * for the format parameters which distinguish VideoFormats with
                 * the same encoding and clock rate because mediaFormat has
                 * already been created in sync with formatParams (with respect
                 * to the format parameters which distinguish VideoFormats with
                 * the same encoding and clock rate).
                 */
                mediaFormat
                    = new VideoMediaFormatImpl(
                            videoMediaFormatImpl.getFormat(),
                            videoMediaFormatImpl.getClockRate(),
                            frameRate,
                            formatParameters, advancedParameters);
                break;
            default:
                mediaFormat = null;
            }
        }
        return mediaFormat;
    }

    /**
     * Creates a <tt>MediaFormat</tt> either for the specified
     * <tt>rtpPayloadType</tt> or for the specified <tt>encoding</tt>,
     * <tt>clockRate</tt>, <tt>channels</tt> and set of format parameters. If
     * <tt>encoding</tt> is known to this <tt>MediaFormatFactory</tt>, ignores
     * <tt>rtpPayloadType</tt> and returns a <tt>MediaFormat</tt> which is
     * either an <tt>AudioMediaFormat</tt> or a <tt>VideoMediaFormat</tt>
     * instance. If <tt>rtpPayloadType</tt> is not
     * {@link MediaFormat#RTP_PAYLOAD_TYPE_UNKNOWN} and <tt>encoding</tt> is
     * <tt>null</tt>, uses the encoding associated with <tt>rtpPayloadType</tt>.
     *
     * @param rtpPayloadType the RTP payload type to create a
     * <tt>MediaFormat</tt> for; {@link MediaFormat#RTP_PAYLOAD_TYPE_UNKNOWN} if
     * <tt>encoding</tt> is not <tt>null</tt>. If <tt>rtpPayloadType</tt> is not
     * <tt>MediaFormat#RTP_PAYLOAD_TYPE_UNKNOWN</tt> and <tt>encoding</tt> is
     * not <tt>null</tt>, <tt>rtpPayloadType</tt> is ignored
     * @param encoding the well-known encoding (name) to create a
     * <tt>MediaFormat</tt> for; <tt>null</tt>
     * @param clockRate the clock rate in Hz to create a <tt>MediaFormat</tt>
     * for
     * @param frameRate the frame rate in number of frames per second to
     * create a <tt>MediaFormat</tt> for
     * @param channels the number of available channels (1 for mono, 2 for
     * stereo) if it makes sense for the <tt>MediaFormat</tt> with the specified
     * <tt>encoding</tt>; otherwise, ignored
     * @param formatParams any codec specific parameters which have been
     * received via SIP/SDP or XMPP/Jingle
     * @param advancedParams any parameters which have been
     * received via SIP/SDP or XMPP/Jingle
     * @return a <tt>MediaFormat</tt> with the specified <tt>encoding</tt>,
     * <tt>clockRate</tt>, <tt>channels</tt> and set of format parameters which
     * is either an <tt>AudioMediaFormat</tt> or a <tt>VideoMediaFormat</tt>
     * instance if <tt>encoding</tt> is known to this
     * <tt>MediaFormatFactory</tt>; otherwise, <tt>null</tt>
     */
    public MediaFormat createMediaFormat(
            byte rtpPayloadType,
            String encoding, double clockRate, int channels, float frameRate,
            Map<String, String> formatParams,
            Map<String, String> advancedParams)
    {

        /*
         * If rtpPayloadType is specified, use it only to figure out encoding
         * and/or clockRate in case either one of them is unknown.
         */
        if ((MediaFormat.RTP_PAYLOAD_TYPE_UNKNOWN != rtpPayloadType)
                && ((encoding == null)
                        || (CLOCK_RATE_NOT_SPECIFIED == clockRate)))
        {
            MediaFormat[] rtpPayloadTypeMediaFormats
                = MediaUtils.getMediaFormats(rtpPayloadType);

            if (rtpPayloadTypeMediaFormats.length > 0)
            {
                if (encoding == null)
                    encoding = rtpPayloadTypeMediaFormats[0].getEncoding();

                // Assign or check the clock rate.
                if (CLOCK_RATE_NOT_SPECIFIED == clockRate)
                    clockRate = rtpPayloadTypeMediaFormats[0].getClockRate();
                else
                {
                    boolean clockRateIsValid = false;

                    for (MediaFormat rtpPayloadTypeMediaFormat
                            : rtpPayloadTypeMediaFormats)
                        if (rtpPayloadTypeMediaFormat
                                    .getEncoding().equals(encoding)
                                && (rtpPayloadTypeMediaFormat.getClockRate()
                                            == clockRate))
                        {
                            clockRateIsValid = true;
                            break;
                        }

                    if (!clockRateIsValid)
                        return null;
                }
            }
        }

        return
            createMediaFormat(
                    encoding, clockRate, channels, frameRate,
                    formatParams,
                    advancedParams);
    }

    /**
     * Gets the <tt>MediaFormat</tt>s among the specified <tt>mediaFormats</tt>
     * which have the specified <tt>encoding</tt> and, optionally,
     * <tt>clockRate</tt>.
     *
     * @param mediaFormats the <tt>MediaFormat</tt>s from which to filter out
     * only the ones which have the specified <tt>encoding</tt> and, optionally,
     * <tt>clockRate</tt>
     * @param encoding the well-known encoding (name) of the
     * <tt>MediaFormat</tt>s to be retrieved
     * @param clockRate the clock rate of the <tt>MediaFormat</tt>s to be
     * retrieved; {@link #CLOCK_RATE_NOT_SPECIFIED} if any clock rate is
     * acceptable
     * @return a <tt>List</tt> of the <tt>MediaFormat</tt>s among
     * <tt>mediaFormats</tt> which have the specified <tt>encoding</tt> and,
     * optionally, <tt>clockRate</tt>
     */
    private List<MediaFormat> getMatchingMediaFormats(
            MediaFormat[] mediaFormats,
            String encoding, double clockRate)
    {
        /*
         * XXX Use String#equalsIgnoreCase(String) because some clients transmit
         * some of the codecs starting with capital letters.
         */

        /*
         * As per RFC 3551.4.5.2, because of a mistake in RFC 1890 and for
         * backward compatibility, G.722 should always be announced as 8000 even
         * though it is wideband. So, if someone is looking for G722/16000,
         * then: Forgive them, for they know not what they do!
         */
        if("G722".equalsIgnoreCase(encoding) && (16000 == clockRate))
        {
            clockRate = 8000;
            if (logger.isInfoEnabled())
                logger.info("Suppressing erroneous 16000 announcement for G.722");
        }

        List<MediaFormat> supportedMediaFormats = new ArrayList<MediaFormat>();

        for (MediaFormat mediaFormat : mediaFormats)
        {
            if (mediaFormat.getEncoding().equalsIgnoreCase(encoding)
                    && ((CLOCK_RATE_NOT_SPECIFIED == clockRate)
                            || (mediaFormat.getClockRate() == clockRate)))
            {
                supportedMediaFormats.add(mediaFormat);
            }
        }
        return supportedMediaFormats;
    }

    /**
     * Gets the <tt>MediaFormat</tt>s supported by this
     * <tt>MediaFormatFactory</tt> and the <tt>MediaService</tt> associated with
     * it and having the specified <tt>encoding</tt> and, optionally,
     * <tt>clockRate</tt>.
     *
     * @param encoding the well-known encoding (name) of the
     * <tt>MediaFormat</tt>s to be retrieved
     * @param clockRate the clock rate of the <tt>MediaFormat</tt>s to be
     * retrieved; {@link #CLOCK_RATE_NOT_SPECIFIED} if any clock rate is
     * acceptable
     * @return a <tt>List</tt> of the <tt>MediaFormat</tt>s supported by the
     * <tt>MediaService</tt> associated with this <tt>MediaFormatFactory</tt>
     * and having the specified encoding and, optionally, clock rate
     */
    private List<MediaFormat> getSupportedMediaFormats(
            String encoding, double clockRate)
    {
        EncodingConfiguration encodingConfiguration
            = NeomediaServiceUtils.getMediaServiceImpl()
                    .getCurrentEncodingConfiguration();
        List<MediaFormat> supportedMediaFormats
            = getMatchingMediaFormats(
                encodingConfiguration.getAllEncodings(
                        MediaType.AUDIO),
                encoding,
                clockRate);

        if (supportedMediaFormats.isEmpty())
            supportedMediaFormats
                = getMatchingMediaFormats(
                    encodingConfiguration.getAllEncodings(
                            MediaType.VIDEO),
                    encoding,
                    clockRate);
        return supportedMediaFormats;
    }
}


text:
/* Background pattern from Subtle Patterns (https://www.toptal.com/designers/subtlepatterns/)*/

/*flexbox thingy*/
@import "compass/css3";

.under-box {
	width: 90vw;
	height: 55.6vh;
	padding-bottom: 51%;
	max-width: 2560px;
	max-height: 1440px;
	margin-left: auto;
	margin-right: auto;
	background-image: url("../images/stucco-red.png");
	position: relative;
	border-bottom-left-radius: 1%;
	border-bottom-right-radius: 1%;
	box-shadow: 0 0 50px 3px ;
}

.outer-box {
	width: 95%;
	height: 50%;
	padding-bottom: 53%;
	margin-left: auto;
	margin-right: auto;
	position: relative;
	box-shadow: 0 0 50px 3px ;

}

.img-box-1 {
	display: inline-block;
	width: 50%;
	height: 51%;
	background-size: contain;
	background-repeat: no-repeat;
	background-image: url("../images/about-img.jpg");
	margin: 0;
	position: absolute;
	left: 0%;
	top: 0%;

}

.img-box-2 {
	display: inline-block;
	width: 50%;
	height: 51%;
	background-size: contain;
	background-repeat: no-repeat;
	background-image: url("../images/pricing-img.jpg");
	margin: 0;
	position: absolute;
	left: 50%;
	top: 0%;

}

.img-box-3 {
	display: inline-block;
	width: 50%;
	height: 51.5%;
	background-size: contain;
	background-repeat: no-repeat;
	background-image: url("../images/resources-img.jpg");
	margin: 0;
	position: absolute;
	left: 0%;
	top: 49.5%;

}
.img-box-4 {
	display: inline-block;
	width: 50%;
	height: 51.5%;
	background-size: contain;
	background-repeat: no-repeat;
	background-image: url("../images/contact-img.jpg");
	margin: 0;
	position: absolute;
	left: 50%;
	top: 49.5%;

}

.text_over_image {
	text-align:center;
	position: absolute;
	margin: auto;
	top: 0;
	left:0;
	right:0;
	bottom:0;
	color:white;
	font-size: xx-large;
	width: 18.75rem;
	height:  12.5rem;
	vertical-align:middle;
	line-height: 12.5rem;
	/*background-color: rgba(0,0,0,0.5);*/
	border-radius: 90%;
	text-shadow: 0 0 6px rgba(0, 0, 0, 0.9);
	cursor: pointer;

}

.text-box {
	display: none;
	width: 50%;
	height: 90%;
	margin-left: 5%;
	margin-right: auto;
	position: relative;
	vertical-align:middle;

}

#aboutContent {
	display: none;

}

#aboutImages {
	display: none;
}

#pricingContent {
	display: none;
}

#resourcesContent {
	display: none;
}

#contactContent {
	display: none;
}

#aboutImages {
	display: none;
}

#pricingImages {
	display: none;
}

#resourcesImages {
	display: none;
}

#contactImages {
	display: none;
}

.title-text {
	font-size: 3vw;
	display: inline-block;
	position: relative;
	color:white;
	text-shadow: 0 0 5px rgba(0, 0, 0, 0.9);
}

.title-text-padded {
	font-size: 3vw;
	display: inline-block;
	position: relative;
	color:white;
	text-shadow: 0 0 5px rgba(0, 0, 0, 0.9);
	margin-top: 5%;
}

.back-arrow {
	width: 3vw;
	cursor: pointer;
	color: white;
	text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
	padding-top: 5%;
	font-size:  3vw;
}

.contentText {
	display: inline-block;
	position: relative;
	vertical-align: bottom;
	text-align: left;
	padding-top: 5%;
	padding-bottom: 20%;
	color:white;
	font-size: 2vw;
	text-shadow: 0 0 5px rgba(0, 0, 0, 0.9);
	overflow: auto;
	margin-bottom: 20%;
}

.contentText-alt {
	display: inline-block;
	color:white;
	font-size: 1.5vw;
	text-shadow: 0 0 5px rgba(0, 0, 0, 0.9);
}

.content-img-box {
	display: none;
	position: relative;
	float: right;
	width: 50%;
	height: 50%;
	padding-bottom: 53%;
	margin-right: 5%;

}
.img-content-about-1 {
	display: inline-block;
	width: 70%;
	height: 39%;
	background-size: contain;
	background-repeat: no-repeat;
	background-image: url("../images/SSDTlogocrop.jpg");
	margin: 0;
	padding: 0;
	position: absolute;
	left: 30%;
	top: 59%;
}

.img-content-about-2 {
	display: inline-block;
	width: 70%;
	height: 39%;
	background-size: contain;
	background-repeat: no-repeat;
	background-image: url("../images/young.jpg");
	margin: 0;
	padding: 0;
	position: absolute;
	left: 30%;
	top: 22%;
}

.img-content-pricing-1 {
	display: inline-block;
	width: 70%;
	height: 39%;
	background-size: contain;
	background-repeat: no-repeat;
	background-image: url("../images/play-puppies.jpg");
	margin: 0;
	padding: 0;
	position: absolute;
	left: 30%;

	top: 59%;
}

.img-content-pricing-2 {
	display: inline-block;
	width: 70%;
	height: 39%;
	background-size: contain;
	background-repeat: no-repeat;
	background-image: url("../images/pink-puppy.jpg");
	margin: 0;
	padding: 0;
	position: absolute;
	left: 30%;
	top: 22%;
}

.img-content-resources-1 {
	display: inline-block;
	width: 70%;
	height: 39%;
	background-size: contain;
	background-repeat: no-repeat;
	background-image: url("../images/slushycrop.jpg");
	margin: 0;
	padding: 0;
	position: absolute;
	left: 30%;

	top: 59%;
}

.img-content-resources-2 {
	display: inline-block;
	width: 70%;
	height: 39%;
	background-size: contain;
	background-repeat: no-repeat;
	background-image: url("../images/truck-puppy.jpg");
	margin: 0;
	padding: 0;
	position: absolute;
	left: 30%;
	top: 22%;
}

.img-content-contact-1 {
	display: inline-block;
	width: 70%;
	height: 39%;
	background-size: contain;
	background-repeat: no-repeat;
	background-image: url("../images/flowerscrop.jpg");
	margin: 0;
	padding: 0;
	position: absolute;
	left: 30%;

	top: 59%;
}

.img-content-contact-2 {
	display: inline-block;
	width: 70%;
	height: 39%;
	background-size: contain;
	background-repeat: no-repeat;
	background-image: url("../images/flower2crop.jpg");
	margin: 0;
	padding: 0;
	position: absolute;
	left: 30%;
	top: 22%;
}

.hidden {
	display: none;
}

/***********************************/
			/* Mobile View */
/***********************************/

.m-under-box {
	display: table;
	width: 94vw;
	height: 100%;
	padding-bottom: 115%;
	max-width: 2560px;
	max-height: 1440px;
	margin-left: auto;
	margin-right: auto;
	background-image: url("../images/stucco-red.png");
	position: relative;
	border-bottom-left-radius: 1%;
	border-bottom-right-radius: 1%;
	box-shadow: 0 0 50px 3px ;
}

.m-outer-box {
	width: 94%;
	height: 100%;
	padding-bottom: 92%;
	margin-left: auto;
	margin-right: auto;
	position: relative;

}

.m-img-box-1 {
	display: inline-block;
	width: 100%;
	height: 100%;
	background-size: contain;
	background-repeat: no-repeat;
	background-image: url("../images/about-img.jpg");
	margin: 0 auto;
	position: absolute;
	top: 0;

}

.m-img-box-2 {
	display: inline-block;
	width: 100%;
	height: 100%;
	background-size: contain;
	background-repeat: no-repeat;
	background-image: url("../images/pricing-img.jpg");
	margin: 0 auto;
	position: absolute;
	top: 57%;

}

.m-img-box-3 {
	display: inline-block;
	width: 100%;
	height: 100%;
	background-size: contain;
	background-repeat: no-repeat;
	background-image: url("../images/resources-img.jpg");
	margin: 0 auto;
	position: absolute;
	top: 114%;

}
.m-img-box-4 {
	display: inline-block;
	width: 100%;
	height: 100%;
	background-size: contain;
	background-repeat: no-repeat;
	background-image: url("../images/contact-img.jpg");
	margin: 0 auto;
	position: absolute;
	top: 171%

}

.m-hide {
	display: none;
	text-align:center;
}
.m-text-box {

	width: 100%;
	height: 100%;
	margin: 0 auto;
	position: absolute;
	vertical-align:middle;
	justify-content: center;
	align-items:center;
}

.m-back-arrow {
	width: 10vw;
	cursor: pointer;
	color: white;
	text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
	padding-top: 5%;
	font-size:  10vw;
}

.m-back-text {
	display: inline-block;
}

.m-title-text {
	font-size: 6vw;
	display: inline-block;
	position: relative;
	color:white;
	text-shadow: 0 0 5px rgba(0, 0, 0, 0.9);
	margin-right: 5vw;
	margin-left: 5vw;
}

.m-title-text-padded {
	font-size: 6vw;
	display: inline-block;
	position: relative;
	color:white;
	text-shadow: 0 0 5px rgba(0, 0, 0, 0.9);
	margin-top: 5%;
}

.m-contentText {
	display: inline-block;
	position: relative;
	vertical-align: middle;
	text-align: center;
	padding-top: 5%;
	padding-bottom: 20%;
	color:white;
	font-size: 4vw;
	text-shadow: 0 0 5px rgba(0, 0, 0, 0.9);
	overflow: auto;
	margin-bottom: 20%;
	margin-right: 5vw;
	margin-left: 5vw;
}

#m-aboutContent {
	display: none;
	margin: auto;

}

#m-aboutImages {
	display: none;
}

#m-pricingContent {
	display: none;
}

#m-resourcesContent {
	display: none;
}

#m-contactContent {
	display: none;

}

#m-aboutImages {
	display: none;
}

#m-pricingImages {
	display: none;
}

#m-resourcesImages {
	display: none;
}

#m-contactImages {
	display: none;
}

.m-img-content-about-1 {
	display: inline-block;
	width: 70%;
	height: 39%;
	background-size: contain;
	background-repeat: no-repeat;
	background-image: url("../images/SSDTlogocrop.jpg");
	margin: 0;
	padding: 0;
	position: relative;
}

.m-contentText-alt {
	display: inline-block;
	color:white;
	font-size: 3vw;
	text-shadow: 0 0 5px rgba(0, 0, 0, 0.9);
	margin-right: 5vw;
	margin-left: 5vw;
}

.nav-image {
	width: 44vw;
	height: 25vw;
	z-index: -100;
}

/* add sticky footer globally */

/**Sticky footer
http://philipwalton.github.io/solved-by-flexbox/demos/sticky-footer/
**/
.sfooter {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	background-image: url("../images/stucco-dark.png");
	/*background-color: rgba(50,50,50,1);*/
}

.sfooter-content {
	flex: 1 0 auto;
}

html {
	display: flex;
}

body {
	width: 100%;
}


text:
#ifndef _CONFIG_AXS10X_H_
#define _CONFIG_AXS10X_H_

#include <linux/sizes.h>
/*
 *  CPU configuration
 */
#define ARC_FPGA_PERIPHERAL_BASE	0xE0000000
#define ARC_APB_PERIPHERAL_BASE		0xF0000000
#define ARC_DWMMC_BASE			(ARC_FPGA_PERIPHERAL_BASE + 0x15000)
#define ARC_DWGMAC_BASE			(ARC_FPGA_PERIPHERAL_BASE + 0x18000)

/*
 * Memory configuration
 */
#define CONFIG_SYS_MONITOR_BASE		CONFIG_SYS_TEXT_BASE

#define CONFIG_SYS_DDR_SDRAM_BASE	0x80000000
#define CONFIG_SYS_SDRAM_BASE		CONFIG_SYS_DDR_SDRAM_BASE
#define CONFIG_SYS_SDRAM_SIZE		SZ_512M

#define CONFIG_SYS_INIT_SP_ADDR		\
	(CONFIG_SYS_SDRAM_BASE + 0x1000 - GENERATED_GBL_DATA_SIZE)

#define CONFIG_SYS_MALLOC_LEN		SZ_2M
#define CONFIG_SYS_BOOTM_LEN		SZ_128M
#define CONFIG_SYS_LOAD_ADDR		0x82000000

/*
 * This board might be of different versions so handle it
 */
#define CONFIG_BOARD_TYPES

/*
 * NAND Flash configuration
 */
#define CONFIG_SYS_NAND_BASE		(ARC_FPGA_PERIPHERAL_BASE + 0x16000)
#define CONFIG_SYS_MAX_NAND_DEVICE	1

/*
 * UART configuration
 */
#define CONFIG_DW_SERIAL
#define CONFIG_SYS_NS16550_SERIAL
#define CONFIG_SYS_NS16550_CLK		33333333
#define CONFIG_SYS_NS16550_MEM32

/*
 * Ethernet PHY configuration
 */
#define CONFIG_MII

/*
 * USB 1.1 configuration
 */
#define CONFIG_USB_OHCI_NEW
#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 1

/*
 * Environment settings
 */
#define CONFIG_ENV_SIZE			SZ_16K

/*
 * Environment configuration
 */
#define CONFIG_BOOTFILE			"uImage"
#define CONFIG_LOADADDR			CONFIG_SYS_LOAD_ADDR

/*
 * Console configuration
 */

/*
 * Misc utility configuration
 */
#define CONFIG_BOUNCE_BUFFER

#endif /* _CONFIG_AXS10X_H_ */


text:
#include "third_party/blink/renderer/platform/fonts/font_platform_data.h"

#include "build/build_config.h"
#include "hb-ot.h"
#include "hb.h"
#include "third_party/blink/public/common/privacy_budget/identifiable_token_builder.h"
#include "third_party/blink/public/platform/linux/web_sandbox_support.h"
#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/renderer/platform/fonts/font_cache.h"
#include "third_party/blink/renderer/platform/fonts/shaping/harfbuzz_face.h"
#include "third_party/blink/renderer/platform/text/character.h"
#include "third_party/blink/renderer/platform/web_test_support.h"
#include "third_party/blink/renderer/platform/wtf/hash_map.h"
#include "third_party/blink/renderer/platform/wtf/text/character_names.h"
#include "third_party/blink/renderer/platform/wtf/text/string_hash.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
#include "third_party/skia/include/core/SkData.h"
#include "third_party/skia/include/core/SkFont.h"
#include "third_party/skia/include/core/SkTypeface.h"

#if BUILDFLAG(IS_MAC)
#include "third_party/skia/include/ports/SkTypeface_mac.h"
#endif

namespace blink {

FontPlatformData::FontPlatformData(WTF::HashTableDeletedValueType)
    : text_size_(0),
      synthetic_bold_(false),
      synthetic_italic_(false),
      avoid_embedded_bitmaps_(false),
      orientation_(FontOrientation::kHorizontal),
      is_hash_table_deleted_value_(true)
{
}

FontPlatformData::FontPlatformData()
    : text_size_(0),
      synthetic_bold_(false),
      synthetic_italic_(false),
      avoid_embedded_bitmaps_(false),
      orientation_(FontOrientation::kHorizontal),
      is_hash_table_deleted_value_(false)
{
}

FontPlatformData::FontPlatformData(float size,
                                   bool synthetic_bold,
                                   bool synthetic_italic,
                                   FontOrientation orientation)
    : text_size_(size),
      synthetic_bold_(synthetic_bold),
      synthetic_italic_(synthetic_italic),
      avoid_embedded_bitmaps_(false),
      orientation_(orientation),
      is_hash_table_deleted_value_(false)
{
}

FontPlatformData::FontPlatformData(const FontPlatformData& source)
    : typeface_(source.typeface_),
#if !BUILDFLAG(IS_WIN) && !BUILDFLAG(IS_MAC)
      family_(source.family_),
#endif
      text_size_(source.text_size_),
      synthetic_bold_(source.synthetic_bold_),
      synthetic_italic_(source.synthetic_italic_),
      avoid_embedded_bitmaps_(source.avoid_embedded_bitmaps_),
      orientation_(source.orientation_),
#if !BUILDFLAG(IS_MAC)
      style_(source.style_),
#endif
      harfbuzz_face_(nullptr),
      is_hash_table_deleted_value_(false) {
}

FontPlatformData::FontPlatformData(const FontPlatformData& src, float text_size)
    : FontPlatformData(src.typeface_,
#if !BUILDFLAG(IS_WIN) && !BUILDFLAG(IS_MAC)
                       src.family_.data(),
#else
                       std::string(),
#endif
                       text_size,
                       src.synthetic_bold_,
                       src.synthetic_italic_,
                       src.orientation_) {
}

FontPlatformData::FontPlatformData(sk_sp<SkTypeface> typeface,
                                   const std::string& family,
                                   float text_size,
                                   bool synthetic_bold,
                                   bool synthetic_italic,
                                   FontOrientation orientation)
    : typeface_(typeface),
#if !BUILDFLAG(IS_WIN) && !BUILDFLAG(IS_MAC)
      family_(family),
#endif
      text_size_(text_size),
      synthetic_bold_(synthetic_bold),
      synthetic_italic_(synthetic_italic),
      avoid_embedded_bitmaps_(false),
      orientation_(orientation),
      is_hash_table_deleted_value_(false) {
#if !BUILDFLAG(IS_MAC)
  style_ = WebFontRenderStyle::GetDefault();
  auto system_style =
#if !BUILDFLAG(IS_WIN)
      QuerySystemRenderStyle(family_, text_size_, typeface_->fontStyle());

  // In web tests, ignore system preference for subpixel positioning,
  // or explicitly disable if requested.
  if (WebTestSupport::IsRunningWebTest()) {
    system_style.use_subpixel_positioning =
        WebTestSupport::IsTextSubpixelPositioningAllowedForTest()
            ? WebFontRenderStyle::kNoPreference
            : 0;
  }
#else
     QuerySystemForRenderStyle();
#endif
  style_.OverrideWith(system_style);
#endif
}

FontPlatformData::~FontPlatformData() = default;

#if BUILDFLAG(IS_MAC)
CTFontRef FontPlatformData::CtFont() const {
  return SkTypeface_GetCTFontRef(typeface_.get());
}
#endif

const FontPlatformData& FontPlatformData::operator=(
    const FontPlatformData& other) {
  // Check for self-assignment.
  if (this == &other)
    return *this;

  typeface_ = other.typeface_;
#if !BUILDFLAG(IS_WIN) && !BUILDFLAG(IS_MAC)
  family_ = other.family_;
#endif
  text_size_ = other.text_size_;
  synthetic_bold_ = other.synthetic_bold_;
  synthetic_italic_ = other.synthetic_italic_;
  avoid_embedded_bitmaps_ = other.avoid_embedded_bitmaps_;
  harfbuzz_face_ = nullptr;
  orientation_ = other.orientation_;
#if !BUILDFLAG(IS_MAC)
  style_ = other.style_;
#endif

  return *this;
}

bool FontPlatformData::operator==(const FontPlatformData& a) const {
  // If either of the typeface pointers are null then we test for pointer
  // equality. Otherwise, we call SkTypeface::Equal on the valid pointers.
  bool typefaces_equal = false;
  if (!Typeface() || !a.Typeface())
    typefaces_equal = Typeface() == a.Typeface();
  else
    typefaces_equal = SkTypeface::Equal(Typeface(), a.Typeface());

  return typefaces_equal && text_size_ == a.text_size_ &&
         is_hash_table_deleted_value_ == a.is_hash_table_deleted_value_ &&
         synthetic_bold_ == a.synthetic_bold_ &&
         synthetic_italic_ == a.synthetic_italic_ &&
         avoid_embedded_bitmaps_ == a.avoid_embedded_bitmaps_
#if !BUILDFLAG(IS_MAC)
         && style_ == a.style_
#endif
         && orientation_ == a.orientation_;
}

SkFontID FontPlatformData::UniqueID() const {
  return Typeface()->uniqueID();
}

String FontPlatformData::FontFamilyName() const {
  DCHECK(Typeface());
  SkTypeface::LocalizedStrings* font_family_iterator =
      Typeface()->createFamilyNameIterator();
  SkTypeface::LocalizedString localized_string;
  while (font_family_iterator->next(&localized_string) &&
         !localized_string.fString.size()) {
  }
  font_family_iterator->unref();
  return String::FromUTF8(localized_string.fString.c_str(),
                          localized_string.fString.size());
}

SkTypeface* FontPlatformData::Typeface() const {
  return typeface_.get();
}

HarfBuzzFace* FontPlatformData::GetHarfBuzzFace() const {
  if (!harfbuzz_face_)
    harfbuzz_face_ =
        HarfBuzzFace::Create(const_cast<FontPlatformData*>(this), UniqueID());

  return harfbuzz_face_.get();
}

bool FontPlatformData::HasSpaceInLigaturesOrKerning(
    TypesettingFeatures features) const {
  HarfBuzzFace* hb_face = GetHarfBuzzFace();
  if (!hb_face)
    return false;

  return hb_face->HasSpaceInLigaturesOrKerning(features);
}

unsigned FontPlatformData::GetHash() const {
  unsigned h = SkTypeface::UniqueID(Typeface());
  h ^= 0x01010101 * ((static_cast<int>(is_hash_table_deleted_value_) << 3) |
                     (static_cast<int>(orientation_) << 2) |
                     (static_cast<int>(synthetic_bold_) << 1) |
                     static_cast<int>(synthetic_italic_));

  // This memcpy is to avoid a reinterpret_cast that breaks strict-aliasing
  // rules. Memcpy is generally optimized enough so that performance doesn't
  // matter here.
  uint32_t text_size_bytes;
  memcpy(&text_size_bytes, &text_size_, sizeof(uint32_t));
  h ^= text_size_bytes;

  return h;
}

#if !BUILDFLAG(IS_MAC)
bool FontPlatformData::FontContainsCharacter(UChar32 character) {
  SkFont font;
  SetupSkFont(&font);
  return font.unicharToGlyph(character);
}
#endif

#if !BUILDFLAG(IS_MAC) && !BUILDFLAG(IS_WIN)
// static
WebFontRenderStyle FontPlatformData::QuerySystemRenderStyle(
    const std::string& family,
    float text_size,
    SkFontStyle font_style) {
  WebFontRenderStyle result;

#if !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_FUCHSIA)
  // If the font name is missing (i.e. probably a web font) or the sandbox is
  // disabled, use the system defaults.
  if (family.length() && Platform::Current()->GetSandboxSupport()) {
    bool is_bold = font_style.weight() >= SkFontStyle::kSemiBold_Weight;
    bool is_italic = font_style.slant() != SkFontStyle::kUpright_Slant;
    Platform::Current()->GetSandboxSupport()->GetWebFontRenderStyleForStrike(
        family.data(), text_size, is_bold, is_italic,
        FontCache::DeviceScaleFactor(), &result);
  }
#endif

  return result;
}

void FontPlatformData::SetupSkFont(SkFont* font,
                                   float device_scale_factor,
                                   const FontDescription*) const {
  style_.ApplyToSkFont(font, device_scale_factor);

  const float ts = text_size_ >= 0 ? text_size_ : 12;
  font->setSize(SkFloatToScalar(ts));
  font->setTypeface(typeface_);
  font->setEmbolden(synthetic_bold_);
  font->setSkewX(synthetic_italic_ ? -SK_Scalar1 / 4 : 0);

  font->setEmbeddedBitmaps(!avoid_embedded_bitmaps_);
}
#endif

IdentifiableToken FontPlatformData::ComputeTypefaceDigest() const {
  DCHECK(typeface_);
  int table_count = typeface_->countTables();

  // If no tables are found, return 0, to make it clearer that no identifiable
  // information was available.
  if (!table_count)
    return 0;

  IdentifiableTokenBuilder builder;
  builder.AddValue(table_count);

  Vector<SkFontTableTag> all_table_tags(table_count);
  int tags_copied = typeface_->getTableTags(all_table_tags.data());
  DCHECK_EQ(tags_copied, table_count);

  // The tags are probably already sorted, but let's make sure.
  std::sort(all_table_tags.begin(), all_table_tags.end());
  for (SkFontTableTag table_tag : all_table_tags) {
    builder.AddValue(table_tag).AddValue(typeface_->getTableSize(table_tag));
  }

  // These tables should both be small enough to compute a digest quickly and
  // varied enough to ensure that different fonts have distinct hashes.
  constexpr SkFontTableTag kTablesToFullyDigest[] = {
      SkSetFourByteTag('c', 'm', 'a', 'p'),
      SkSetFourByteTag('h', 'e', 'a', 'd'),
      SkSetFourByteTag('n', 'a', 'm', 'e'),
  };
  for (SkFontTableTag table_tag : kTablesToFullyDigest) {
    base::span<const uint8_t> table_data_span;
    sk_sp<SkData> table_data = typeface_->copyTableData(table_tag);
    if (table_data) {
      table_data_span =
          base::span<const uint8_t>(table_data->bytes(), table_data->size());
    }
    builder.AddAtomic(table_data_span);
  }

  return builder.GetToken();  // hasher.GetHash();
}

String FontPlatformData::GetPostScriptName() const {
  if (!typeface_)
    return String();

  SkString postscript_name;
  bool success = typeface_->getPostScriptName(&postscript_name);
  return success ? postscript_name.c_str() : String();
}

}  // namespace blink


text:
<!DOCTYPE html>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="generator" content="rustdoc">
    <meta name="description" content="API documentation for the Rust `PrintStackElem` struct in crate `syntax`.">
    <meta name="keywords" content="rust, rustlang, rust-lang, PrintStackElem">

    <title>syntax::print::pp::PrintStackElem - Rust</title>

    <link rel="stylesheet" type="text/css" href="../../../main.css">

    <link rel="shortcut icon" href="http://www.rust-lang.org/favicon.ico">

syntax::<wbr>print::<wbr>pp

        <form class="search-form js-only">

                <input class="search-input" name="search"
                       autocomplete="off"
                       placeholder="Click or press 'S' to search, '?' for more options..."
                       type="search">

        </form>

Struct syntax::<wbr>print::<wbr>pp::<wbr>PrintStackElem<wbr>Unstable
            [-] [+]
        [src]

pub struct PrintStackElem {
    // some fields omitted
}

Trait Implementations

Derived Implementations

impl Copy for PrintStackElem

Keyboard shortcuts

?

Show this help dialog

S

Focus the search field

⇤

Move up in search results

⇥

Move down in search results

⏎

Go to active search result

Search tricks

                Prefix searches with a type followed by a colon (e.g.
                fn:) to restrict the search to a given type.

                Accepted types are: fn, mod,
                struct, enum,
                trait, typedef (or
                tdef).


text:
/*
    This file contains a cross-platform startup sequence that comes
    with the MonoGame base template. Should not be modified
*/

#region Using Statements
using System;
using System.Collections.Generic;
using System.Linq;
#if MONOMAC
using MonoMac.AppKit;
using MonoMac.Foundation;
#elif __IOS__ || __TVOS__
using Foundation;
using UIKit;
#endif
#endregion

namespace GuiApp_Mac
{
#if __IOS__ || __TVOS__
    [Register("AppDelegate")]
    class Program : UIApplicationDelegate
#else
	static class Program
#endif
	{
		private static GUIapp.Game1 game;

		internal static void RunGame()
		{
			game = new GUIapp.Game1();
			game.Run();
#if !__IOS__ && !__TVOS__
			game.Dispose();
#endif
		}

		/// <summary>
		/// The main entry point for the application.
		/// </summary>
#if !MONOMAC && !__IOS__ && !__TVOS__
		[STAThread]
#endif
		static void Main(string[] args)
		{
#if MONOMAC
            NSApplication.Init ();

            using (var p = new NSAutoreleasePool ()) {
                NSApplication.SharedApplication.Delegate = new AppDelegate();
                NSApplication.Main(args);
            }
#elif __IOS__ || __TVOS__
            UIApplication.Main(args, null, "AppDelegate");
#else
			RunGame();
#endif
		}

#if __IOS__ || __TVOS__
        public override void FinishedLaunching(UIApplication app)
        {
            RunGame();
        }
#endif
	}

#if MONOMAC
    class AppDelegate : NSApplicationDelegate
    {
        public override void FinishedLaunching (MonoMac.Foundation.NSObject notification)
        {
            AppDomain.CurrentDomain.AssemblyResolve += (object sender, ResolveEventArgs a) =>  {
                if (a.Name.StartsWith("MonoMac")) {
                    return typeof(MonoMac.AppKit.AppKitFramework).Assembly;
                }
                return null;
            };
            Program.RunGame();
        }

        public override bool ApplicationShouldTerminateAfterLastWindowClosed (NSApplication sender)
        {
            return true;
        }
    }
#endif
}


text:
#region Disclaimer/Info

///////////////////////////////////////////////////////////////////////////////////////////////////
// Subtext WebLog
//
// Subtext is an open source weblog system that is a fork of the .TEXT
// weblog system.
//
// For updated news and information please visit http://subtextproject.com/
// Subtext is hosted at Google Code at http://code.google.com/p/subtext/
// The development mailing list is at subtext@googlegroups.com
//
// This project is licensed under the BSD license.  See the License.txt file for more information.
///////////////////////////////////////////////////////////////////////////////////////////////////

#endregion

using System;
using System.Text.RegularExpressions;

namespace Subtext.Framework.Infrastructure.Installation
{
    internal class InstallationScriptInfo
    {
        //Have the compiled regex as static to get the full benefit of compilation
        private static readonly Regex ScriptParseRegex =
            new Regex(@"(?<ScriptName>Installation\.(?<version>\d+\.\d+\.\d+)\.sql)$",
                      RegexOptions.Compiled | RegexOptions.IgnoreCase);

        private InstallationScriptInfo(string scriptName, Version version)
        {
            Version = version;
            ScriptName = scriptName;
        }

        public string ScriptName { get; set; }

        public Version Version { get; set; }

        internal static InstallationScriptInfo Parse(string resourceName)
        {
            Match match = ScriptParseRegex.Match(resourceName);
            if (!match.Success)
            {
                return null;
            }
            var version = new Version(match.Groups["version"].Value);
            string scriptName = match.Groups["ScriptName"].Value;
            return new InstallationScriptInfo(scriptName, version);
        }
    }

}


text:
"""Code adapted from https://github.com/devsisters/DQN-tensorflow/tree/master/dqn/utils.py"""

try:
    import cPickle as pickle
except:
    import pickle

import tensorflow as tf

from utils.strings import *

def clipped_error(x):
    # Huber loss
    try:
        return tf.select(tf.abs(x) < 1.0, 0.5 * tf.square(x), tf.abs(x) - 0.5)
    except:
        return tf.where(tf.abs(x) < 1.0, 0.5 * tf.square(x), tf.abs(x) - 0.5)

def save_npy(obj, path, logger):
    np.save(path, obj)
    message = "  [*] saved at {}".format(path)
    logger.info(message)

def load_npy(path, logger):
    obj = np.load(path)
    message = "  [*] loaded from {}".format(path)
    logger.info(message)
    return obj


text:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<title>R: Results from an Experiment on Plant Growth</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="R.css">

PlantGrowth	R Documentation

Results from an Experiment on Plant Growth

Description

Results from an experiment to compare yields (as measured by dried
weight of plants) obtained under a control and two different treatment
conditions.

Usage

PlantGrowth

Format

A data frame of 30 cases on 2 variables.

    [, 1] 	 weight 	 numeric

    [, 2] 	 group  	 factor

The levels of group are ‘ctrl’, ‘trt1’, and ‘trt2’.

Source

Dobson, A. J. (1983)
An Introduction to Statistical Modelling.
London: Chapman and Hall.

Examples

## One factor ANOVA example from Dobson's book, cf. Table 7.4:
require(stats); require(graphics)
boxplot(weight ~ group, data = PlantGrowth, main = "PlantGrowth data",
        ylab = "Dried weight of plants", col = "lightgray",
        notch = TRUE, varwidth = TRUE)
anova(lm(weight ~ group, data = PlantGrowth))


text:
<?php

/**
 * CPAC_Column_Post_Content
 *
 * @since 2.4
 */
class CPAC_Column_Post_Content extends CPAC_Column {

	/**
	 * @see CPAC_Column::init()
	 * @since 2.4
	 */
	public function init() {
		parent::init();

		$this->properties['type'] = 'column-content';
		$this->properties['label'] = __( 'Content', 'codepress-admin-columns' );
		$this->properties['object_property'] = 'post_content';

		$this->options['excerpt_length'] = 30;
	}

	/**
	 * @see CPAC_Column::get_value()
	 * @since 2.4
	 */
	public function get_value( $post_id ) {
		return $this->get_shortened_string( $this->get_raw_value( $post_id ), $this->get_option( 'excerpt_length' ) );
	}

	/**
	 * @see CPAC_Column::get_raw_value()
	 * @since 2.4
	 */
	public function get_raw_value( $post_id ) {
		return get_post_field( 'post_content', $post_id, 'raw' );
	}

	/**
	 * @see CPAC_Column::display_settings()
	 * @since 2.4
	 */
	public function display_settings() {
		$this->display_field_excerpt_length();
	}
}


text:
'use strict';

describe('Directive: mdAutocompleteIcon', function() {
  // load the directive's module
  beforeEach(module('bshm.directives'));

  var element,
    scope;

  beforeEach(inject(function($rootScope) {
    scope = $rootScope.$new();
  }));

  it('should make hidden element visible', inject(function($compile) {
    element = angular.element('<md-autocomplete-icon></md-autocomplete-icon>');
    element = $compile(element)(scope);
    expect(element.text()).toBe('this is the mdAutocompleteIcon directive');
  }));
});


text:
The documentation is designed for a specific purpose to help you to apply the features on your side. What is ByteScout Premium Suite? It is the set that includes 12 SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording. It can help you to find US address in PDF with regex with PDF extractor SDK in your C# application.

This prolific sample source code in C# for ByteScout Premium Suite contains various functions and other necessary options you should do calling the API to find US address in PDF with regex with PDF extractor SDK. Follow the instructions from scratch to work and copy the C# code. This basic programming language sample code for C# will do the whole work for you to find US address in PDF with regex with PDF extractor SDK.

ByteScout Premium Suite free trial version is available on our website. C# and other programming languages are supported.

## REQUEST FREE TECH SUPPORT

[Click here to get in touch](https://bytescout.zendesk.com/hc/en-us/requests/new?subject=ByteScout%20Premium%20Suite%20Question)

or just send email to [support@bytescout.com](mailto:support@bytescout.com?subject=ByteScout%20Premium%20Suite%20Question)

## ON-PREMISE OFFLINE SDK

[Get Your 60 Day Free Trial](https://bytescout.com/download/web-installer?utm_source=github-readme)
[Explore SDK Docs](https://bytescout.com/documentation/index.html?utm_source=github-readme)
[Sign Up For Online Training](https://academy.bytescout.com/)

## ON-DEMAND REST WEB API

[Get your API key](https://pdf.co/documentation/api?utm_source=github-readme)
[Explore Web API Documentation](https://pdf.co/documentation/api?utm_source=github-readme)
[Explore Web API Samples](https://github.com/bytescout/ByteScout-SDK-SourceCode/tree/master/PDF.co%20Web%20API)

## VIDEO REVIEW

[https://www.youtube.com/watch?v=NEwNs2b9YN8](https://www.youtube.com/watch?v=NEwNs2b9YN8)

<!-- code block begin -->

##### ****FindUsAddressRegex.NETCore.csproj:**

```
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp2.0</TargetFramework>
    <EnableDefaultCompileItems>false</EnableDefaultCompileItems>
    <GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
    <GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
    <GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
    <GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
    <GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
    <GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute>
    <GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
    <GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute>
    <GenerateAssemblyTrademarkAttribute>false</GenerateAssemblyTrademarkAttribute>
    <GenerateAssemblyCultureAttribute>false</GenerateAssemblyCultureAttribute>
    <GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
  </PropertyGroup>
  <ItemGroup>
    <Compile Include="Program.cs" />
    <None Include="samplePDF_Address.pdf">
      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
    </None>
  </ItemGroup>
  <ItemGroup>
    <PackageReference Include="Microsoft.Windows.Compatibility" Version="2.0.0" />
  </ItemGroup>
  <ItemGroup>
    <Reference Include="Bytescout.PDFExtractor">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>c:\Program Files\Bytescout PDF Extractor SDK\netcoreapp2.0\Bytescout.PDFExtractor.dll</HintPath>
    </Reference>
    <Reference Include="Bytescout.PDFExtractor.OCRExtension">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>c:\Program Files\Bytescout PDF Extractor SDK\netcoreapp2.0\Bytescout.PDFExtractor.OCRExtension.dll</HintPath>
    </Reference>
  </ItemGroup>
</Project>
```

<!-- code block end -->

<!-- code block begin -->

##### ****FindUsAddressRegex.csproj:**

```
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProjectGuid>{99735776-2956-463D-9795-EBCE16928C30}</ProjectGuid>
    <OutputType>Exe</OutputType>
    <RootNamespace>FindUsAddressRegex</RootNamespace>
    <AssemblyName>FindUsAddressRegex</AssemblyName>
    <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
    <FileAlignment>512</FileAlignment>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <PlatformTarget>AnyCPU</PlatformTarget>
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <PlatformTarget>AnyCPU</PlatformTarget>
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="Bytescout.PDFExtractor, Version=9.1.0.3170, Culture=neutral, PublicKeyToken=f7dd1bd9d40a50eb, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>c:\Program Files\Bytescout PDF Extractor SDK\net2.00\Bytescout.PDFExtractor.dll</HintPath>
    </Reference>
    <Reference Include="System" />
    <Reference Include="System.Data" />
    <Reference Include="System.Xml" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="Program.cs" />
  </ItemGroup>
  <ItemGroup>
    <None Include="samplePDF_Address.pdf">
      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
    </None>
  </ItemGroup>
  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
```

<!-- code block end -->

<!-- code block begin -->

##### ****Program.cs:**

```
using Bytescout.PDFExtractor;
using System;

namespace FindUsAddressRegex
{
    class Program
    {
        static void Main(string[] args)
        {
            try
            {
                // Create Bytescout.PDFExtractor.TextExtractor instance
                using (TextExtractor extractor = new TextExtractor())
                {
                    extractor.RegistrationName = "demo";
                    extractor.RegistrationKey = "demo";

                    // Load sample PDF document
                    extractor.LoadDocumentFromFile("samplePDF_Address.pdf");

                    extractor.RegexSearch = true; // Enable the regular expressions

                    int pageCount = extractor.GetPageCount();

                    // Search through pages
                    for (int i = 0; i < pageCount; i++)
                    {
                        // Search Address
                        string regexPattern = @"((\w+[ ,])+ ){2}([a-zA-Z]){2}[ , ] (\d+)";
                        // See the complete regular expressions reference at https://msdn.microsoft.com/en-us/library/az24scfc(v=vs.110).aspx

                        // Search each page for the pattern
                        if (extractor.Find(i, regexPattern, false))
                        {
                            do
                            {
                                // Iterate through each element in the found text
                                foreach (ISearchResultElement element in extractor.FoundText.Elements)
                                {
                                    Console.WriteLine("Found Address: " + element.Text);
                                }
                            }
                            while (extractor.FindNext());
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine("Error: " + ex.Message);
            }

            Console.WriteLine();
            Console.WriteLine("Press enter key to continue...");
            Console.ReadLine();
        }
    }
}
```

<!-- code block end -->


text:
import Sequelize from 'sequelize';

export default {
    init: ()=>{
        const sequelize = new Sequelize('mysql://root:123456@localhost:3306/admin');
        let isConnected = false;
        // 预链接
        sequelize
        .authenticate()
        .then(() => {
            isConnected = true;
            console.log('Connection has been established successfully.');
        })
        .catch(err => {
            console.error('Unable to connect to the database:', err);
            isConnected = false;
        });
        global.Sequelize = Sequelize;
        global.sequelize = sequelize;
        global.isConnected = isConnected;
    }
}


text:
<?php

/* The followings are the available columns in table 'ADDRESSES':
 * @property integer $MATERIAL_ID
 * @property integer $PARENT_ID
 * @property string $SAMPLE_NUMBER
 * @property string $TEMPERATURE
 * @property integer $MATERIAL_TYPE_ID
 * @property string $MATERIAL_TYPE
 * @property string $CRYOVIALS_NUMBER
 * @property date $COLLECTION_DATE
 * @property integer $PATIENT_ID
 * @property string $SCREENING_NUMBER
 * @property integer $CENTRE_ID
 * @property string $CENTRE
 * @property integer $VISIT_ID
 * @property string $VISIT_NAME
 * @property integer $STUDY_ID
 * @property string $STUDY
 * @property integer $LOCATION_ID
 * @property string $LOC_TYPE_ID
 * @property string $COUNTRY
 * @property integer $COUNTRY_ID
 */

class VMaterialsOnSite extends MyShipmentActiveRecord {

    /**
     * Returns the static model of the specified AR class.
     * @param string $className active record class name.
     * @return Addresses the static model class
     */
    public static function model($className=__CLASS__)
    {
        return parent::model($className);
    }

      public function getDbConnection()
    {
        return self::getShipmentDbConnection();
    }

    /**
     * @return string the associated database table name
     */
    public function tableName()
    {
        return 'V_MATERIALS_ON_SITE';
    }

}

?>


text:
package org.codehaus.mojo.scmchangelog.tracker;

import java.text.MessageFormat;

/**
 * An implementation for the sourceforge bug tracker.
 * @author ehsavoie
 * @version $Id$
 */
public class SourceforgeBugTrackLinker
    implements BugTrackLinker
{

  /**
   * The url as a pattern for the links.
   */
  private String pattern;

  /** Creates a new instance of SourceforgeBugTrackLinker
   * @param codexUrl url to the sourceforge bug tracker.
   */
  public SourceforgeBugTrackLinker( String codexUrl )
  {
    this.pattern = codexUrl.replaceAll( "func=browse", "func=detail&aid={0}" );
  }

  /**
   * Computes the link to the description of the specified bug
   * for Sourceforge.
   * @param bugNumber the id of the bug.
   * @return the url to the description of the bug in Sourceforge.
   */
  public String getLinkUrlForBug( String bugNumber )
  {
    return MessageFormat.format( pattern, new Object[]
        {
          bugNumber
        } );
  }
}


text:
using GladNet.Common;
using GladNet.Message;
using GladNet.Payload;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GladNet.Lidgren.Client.Unity
{
	//We only really expose this stuff publicaly for: simulation and unit testing purposes.
	/// <summary>
	/// Contract for payload and message recieveing semantics.
	/// </summary>
	public interface IClientNetworkMessageReciever
	{
		/// <summary>
		/// Called internally when a response is recieved.
		/// </summary>
		/// <param name="payload"><see cref="IResponseMessage"/> sent by the peer.</param>
		/// <param name="parameters">Parameters the message was sent with.</param>
		void OnReceiveResponse(IResponseMessage message, IMessageParameters parameters);

		/// <summary>
		/// Called internally when an event is recieved.
		/// </summary>
		/// <param name="message"><see cref="IEventMessage"/> sent by the peer.</param>
		/// <param name="parameters">Parameters the message was sent with.</param>
		void OnReceiveEvent(IEventMessage message, IMessageParameters parameters);

		/// <summary>
		/// Called internaly when a status changed is recieved.
		/// </summary>
		/// <param name="status">New <see cref="NetStatus"/> that has been dispatched.</param>
		void OnStatusChanged(NetStatus status);
	}
}


text:
@interface UIImage (SLDSIcon)

+(instancetype)sldsActionIcon:(SLDSActionIconType)iconType withSize:(CGFloat)size;
+(instancetype)sldsActionIcon:(SLDSActionIconType)iconType withColor:(UIColor*)iconColor andSize:(CGFloat)size;
+(instancetype)sldsActionIcon:(SLDSActionIconType)iconType withColor:(UIColor*)iconColor andBGColor:(UIColor*)bgColor andSize:(CGFloat)size;

+(instancetype)sldsCustomIcon:(SLDSCustomIconType)iconType withSize:(CGFloat)size;
+(instancetype)sldsCustomIcon:(SLDSCustomIconType)iconType withColor:(UIColor*)iconColor andSize:(CGFloat)size;
+(instancetype)sldsCustomIcon:(SLDSCustomIconType)iconType withColor:(UIColor*)iconColor andBGColor:(UIColor*)bgColor andSize:(CGFloat)size;

+(instancetype)sldsStandardIcon:(SLDSStandardIconType)iconType withSize:(CGFloat)size;
+(instancetype)sldsStandardIcon:(SLDSStandardIconType)iconType withColor:(UIColor*)iconColor andSize:(CGFloat)size;
+(instancetype)sldsStandardIcon:(SLDSStandardIconType)iconType withColor:(UIColor*)iconColor andBGColor:(UIColor*)bgColor andSize:(CGFloat)size;

+(instancetype)sldsUtilityIcon:(SLDSUtilityIconType)iconType withSize:(CGFloat)size;
+(instancetype)sldsUtilityIcon:(SLDSUtilityIconType)iconType withColor:(UIColor*)iconColor andSize:(CGFloat)size;
+(instancetype)sldsUtilityIcon:(SLDSUtilityIconType)iconType withColor:(UIColor*)iconColor andBGColor:(UIColor*)bgColor andSize:(CGFloat)size;

@end


text:
using System;
using System.Text;

namespace Premotion.Mansion.Core.Conversion.Converters
{
	/// <summary>
	/// Converts <see cref="string"/>s into <see cref="Encoding"/>s.
	/// </summary>
	public class StringToEncodingConverter : ConverterBase<String, Encoding>
	{
		#region Overrides of ConverterBase<string,Encoding>
		/// <summary>
		/// Converts the object to <see cref="IConverter.TargetType"/>.
		/// </summary>
		/// <param name="context">The <see cref="IMansionContext"/>.</param>
		/// <param name="source">The input value.</param>
		/// <param name="sourceType">The actual type of the source.</param>
		/// <returns>Returns the converted value.</returns>
		protected override Encoding DoConvert(IMansionContext context, string source, Type sourceType)
		{
			return Encoding.GetEncoding(source);
		}
		/// <summary>
		/// Converts the object to <see cref="IConverter.TargetType"/>.
		/// </summary>
		/// <param name="context">The <see cref="IMansionContext"/>.</param>
		/// <param name="source">The input value.</param>
		/// <param name="sourceType">The actual type of the source.</param>
		/// <param name="defaultValue">The default value.</param>
		/// <returns>Returns the converted value.</returns>
		protected override Encoding DoConvert(IMansionContext context, string source, Type sourceType, Encoding defaultValue)
		{
			// try to convert
			try
			{
				return DoConvert(context, source, sourceType);
			}
			catch (ArgumentException)
			{
				return defaultValue;
			}
		}
		#endregion
	}
}


text:
<?php

namespace Guzzle\Http\Message;

use Guzzle\Common\Collection;

/**
 * Class used to compare HTTP headers using a custom DSL
 */
class HeaderComparison
{
    /**
     * Compare HTTP headers and use special markup to filter values
     * A header prefixed with '!' means it must not exist
     * A header prefixed with '_' means it must be ignored
     * A header value of '*' means anything after the * will be ignored
     *
     * @param array $filteredHeaders Array of special headers
     * @param array $actualHeaders   Array of headers to check against
     *
     * @return array|bool Returns an array of the differences or FALSE if none
     */
    public function compare($filteredHeaders, $actualHeaders)
    {
        $expected = array();
        $ignore = array();
        $absent = array();

        if ($actualHeaders instanceof Collection) {
            $actualHeaders = $actualHeaders->getAll();
        }

        foreach ($filteredHeaders as $k => $v) {
            if ($k[0] == '_') {
                // This header should be ignored
                $ignore[] = str_replace('_', '', $k);
            } elseif ($k[0] == '!') {
                // This header must not be present
                $absent[] = str_replace('!', '', $k);
            } else {
                $expected[$k] = $v;
            }
        }

        return $this->compareArray($expected, $actualHeaders, $ignore, $absent);
    }

    /**
     * Check if an array of HTTP headers matches another array of HTTP headers while taking * into account as a wildcard
     *
     * @param array            $expected Expected HTTP headers (allows wildcard values)
     * @param array|Collection $actual   Actual HTTP header array
     * @param array            $ignore   Headers to ignore from the comparison
     * @param array            $absent   Array of headers that must not be present
     *
     * @return array|bool Returns an array of the differences or FALSE if none
     */
    public function compareArray(array $expected, $actual, array $ignore = array(), array $absent = array())
    {
        $differences = array();

        // Add information about headers that were present but weren't supposed to be
        foreach ($absent as $header) {
            if ($this->hasKey($header, $actual)) {
                $differences["++ {$header}"] = $actual[$header];
                unset($actual[$header]);
            }
        }

        // Check if expected headers are missing
        foreach ($expected as $header => $value) {
            if (!$this->hasKey($header, $actual)) {
                $differences["- {$header}"] = $value;
            }
        }

        // Flip the ignore array so it works with the case insensitive helper
        $ignore = array_flip($ignore);
        // Allow case-insensitive comparisons in wildcards
        $expected = array_change_key_case($expected);

        // Compare the expected and actual HTTP headers in no particular order
        foreach ($actual as $key => $value) {

            // If this is to be ignored, the skip it
            if ($this->hasKey($key, $ignore)) {
                continue;
            }

            // If the header was not expected
            if (!$this->hasKey($key, $expected)) {
                $differences["+ {$key}"] = $value;
                continue;
            }

            // Check values and take wildcards into account
            $lkey = strtolower($key);
            $pos = is_string($expected[$lkey]) ? strpos($expected[$lkey], '*') : false;

            foreach ((array) $actual[$key] as $v) {
                if (($pos === false && $v != $expected[$lkey]) || $pos > 0 && substr($v, 0, $pos) != substr($expected[$lkey], 0, $pos)) {
                    $differences[$key] = "{$value} != {$expected[$lkey]}";
                }
            }
        }

        return empty($differences) ? false : $differences;
    }

    /**
     * Case insensitive check if an array have a key
     *
     * @param string $key   Key to check
     * @param array  $array Array to check
     *
     * @return bool
     */
    protected function hasKey($key, $array)
    {
        foreach (array_keys($array) as $k) {
            if (!strcasecmp($k, $key)) {
                return true;
            }
        }

        return false;
    }
}


text:
var express = require('express');
var router = express.Router();
var ratingQuestions = require('../models/ratingQuestions.model');
var ratingModel = require('../models/rating.model');
var errorMessages = require('../util/error-messages');

router.post('/create', function (req, res) {
    var form = req.body;
    ratingQuestions.create(form)
    .then(function (ratingQuestions) {
        res.status(201).json(ratingQuestions);
    })
    .catch(function (error) {
        if (error.status) {
            res.status(error.status).json(error.errorMessage);
        } else {
            res.status(500).json(JSON.stringify(error));
        }
    });
});

router.get('/get', function (req, res) {
	ratingQuestions.getActiveRating()
    .then(function (ratingQuestions) {
        res.status(200).json(ratingQuestions);
    })
    .catch(function (error) {
        if (error.status) {
            res.status(error.status).json(error.errorMessage);
        } else {
            res.status(500).json(JSON.stringify(error));
        }
    });
});

router.post('/submit', function (req, res) {
    var form = req.body;

    ratingModel.submitRating(form)
    .then(function (pesquisa) {
        res.status(201).json(pesquisa);
    })
    .catch(function (error) {
        if (error.status) {
            res.status(error.status).json(error.errorMessage);
        } else {
            res.status(500).json(JSON.stringify(error));
        }
    });
});

router.get('/verificaUsuarioResposta/:idUser/:idRatingQuestion', function (req, res) {
    var idUser = req.params['idUser'];
    var idRatingQuestion = req.params['idRatingQuestion'];
    ratingModel.verificaUsuarioResposta(idUser, idRatingQuestion)
    .then(function (ratingAnswer) {
        res.status(200).json(ratingAnswer);
    })
    .catch(function (error) {
        if (error.status) {
            res.status(error.status).json(error.errorMessage);
        } else {
            res.status(500).json(JSON.stringify(error));
        }
    });
});

module.exports = router;