text:
package com.example.activitytest;

import android.content.Context;
import android.os.Handler;
import android.os.Message;
import android.text.TextUtils.TruncateAt;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewTreeObserver;
import android.view.ViewTreeObserver.OnGlobalLayoutListener;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.PopupWindow;
import android.widget.TextView;

import com.lidroid.xutils.util.LogUtils;

public class ActivityAreaItem extends LinearLayout {

	private LinearLayout ll_root,ll_parent;
	private ImageView iv_icon,iv_reflection;
	private ScrollAlwaysTextView tv_content;
	private PopupWindow popupWindow;
	private TextView tv_description;
	private int densityDPI;//屏幕密度
	/**X轴方向上的偏移量*/
	private int deltaX = 0;
	private int xOffSet = 0;

	private Handler handler = new Handler(){
		public void handleMessage(android.os.Message msg) {
			switch (msg.what) {
			case 0:
				int w = View.MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED);
				int h = View.MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED);
				tv_description.measure(w, h);
				xOffSet = tv_description.getMeasuredWidth();
				LogUtils.i("这是什么=="+xOffSet);
				break;

			default:
				break;
			}
		};
	};

	public ActivityAreaItem(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
		initData();
		initView(context);
	}

	public ActivityAreaItem(Context context, AttributeSet attrs) {
		super(context, attrs);
		initData();
		initView(context);
	}

	public ActivityAreaItem(Context context) {
		super(context);
		initData();
		initView(context);
//		tv_description = new TextView(context);
//		tv_description.setTextColor(getResources().getColor(R.color.white));
//		tv_description.setBackgroundResource(R.drawable.bubble_area_item);
////		tv_description.setSizeChangeListener(new SizeChangeListener() {
////
////			@Override
////			public void onSizeChanged(int w, int h, int oldW, int oldH) {
////				xOffSet = w;
////				LogUtils.i("xOffSet**=="+xOffSet);
////			}
////		});
////		LogUtils.i("xOffSet**=="+xOffSet);
//		if(densityDPI==240){
//			tv_description.setMaxWidth(300);
//			tv_description.setMaxHeight(100);
//		}else if(densityDPI==160){
//			tv_description.setMaxWidth(200);
//			tv_description.setMaxHeight(67);
//		}
//		tv_description.setTextSize(16);
//
//		popupWindow = new PopupWindow(tv_description);
//		popupWindow.setWidth(LayoutParams.WRAP_CONTENT);
//		popupWindow.setHeight(LayoutParams.WRAP_CONTENT);
//		popupWindow.setAnimationStyle(0);
	}

	private void initData() {
		densityDPI = UIUtil.getDensitydpi();
	}

	private void initView(Context context) {
		View view = View.inflate(getContext(), R.layout.item_enlarge,this);
		ll_root = (LinearLayout) view.findViewById(R.id.ll_root_area);
		ll_parent = (LinearLayout) view.findViewById(R.id.ll_parent_arem);
		iv_icon = (ImageView) view.findViewById(R.id.iv_icon);
		tv_content = (ScrollAlwaysTextView) view.findViewById(R.id.tv_content);
		tv_content.setSingleLine();
		tv_content.setEllipsize(TruncateAt.END);
		iv_reflection = (ImageView) view.findViewById(R.id.iv_reflection);
//		Bitmap bitmap = ImageReflect.createCutReflectedImage(ImageReflect.convertViewToBitmap(iv_icon), 0);
//		if(bitmap!=null){
//			iv_reflection.setImageBitmap(bitmap);
//		}else{
//			Log.i("倒影", "倒影为空");
//		}
	}
	/**
	 * 获取包裹图片和文字的父布局,以便于进行选中时的效果处理。
	 * @return
	 */
	public LinearLayout getContentView(){
		return ll_parent;
	}
	/**
	 * 提供自定义控件的根布局。
	 */
	public LinearLayout getRootView(){
		return ll_root;
	}
	/**
	 * 将条目的缩略图控件提供出去。
	 * @return
	 */
	public ImageView getIconView(){
		return iv_icon;
	}
	/**
	 * 倒影控件
	 * @return
	 */
	public ImageView getReflectionView(){
		return iv_reflection;
	}
	/**
	 * 将条目的说明文字控件提供出去。
	 * @return
	 */
	public ScrollAlwaysTextView getTitleView(){
		return tv_content;
	}
	/**
	 * 弹出popupwindow。
	 * @param item
	 * @param description
	 */
	public void showPopupWindow(View item,String description){
		try {

				tv_description = new TextView(getContext());
				tv_description.setTextColor(getResources().getColor(R.color.white));
				tv_description.setBackgroundResource(R.drawable.bubble_area_item);
				if(densityDPI==240){
					tv_description.setMaxWidth(300);
					tv_description.setMaxHeight(100);
				}else if(densityDPI==160){
					tv_description.setMaxWidth(200);
					tv_description.setMaxHeight(67);
				}
				tv_description.setTextSize(16);

				//将所有半角字符转化为全角。
				String fullCharacterStr = half2FullCharacter(description);
				tv_description.setText(fullCharacterStr);
//				int w = View.MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED);
//				int h = View.MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED);
//				tv_description.measure(w, h);
//				int ww = tv_description.getMeasuredWidth();
//				LogUtils.i("ww"+ww);
				if(popupWindow==null){
					popupWindow = new PopupWindow(tv_description);
					popupWindow.setWidth(LayoutParams.WRAP_CONTENT);
					popupWindow.setHeight(LayoutParams.WRAP_CONTENT);
					popupWindow.setAnimationStyle(0);
				}
				int lines = getDescriptionTextLines(fullCharacterStr);
				if(lines>=2){
					lines = 2;
				}
				int textLength = getTextLength(description);
				int xOff = -1;//popupwindow显示位置的横坐标。
				int yOff = -1;//popupwindow显示位置的纵坐标。
				if(densityDPI==240){
					yOff = 433;
				}else if(densityDPI==160){
					switch (lines) {
					case 0:
						yOff = 288;
						break;
					case 1:
						yOff = 280;
						break;
					case 2:
						yOff = 275;
						break;
					default:
						break;
					}
				}
				if(textLength>0&&textLength<=3){
					xOff = 0;
				}else if(textLength>3&&textLength<=6){
					xOff = 1;
					deltaX = 40;
				}else if(textLength>6&&textLength<=9){
					xOff = 2;
				}else{
					xOff = 3;
				}
//				Message msg = Message.obtain();
//				msg.what = 0;
//				handler.sendMessage(msg);
//				LogUtils.i("xOffSet===***++++"+xOffSet);
				popupWindow.showAsDropDown(item,(int) ((item.getWidth()*1.1f-117)/2), -(yOff+lines*23));

		} catch (Exception e) {
		}
	}
	/**
	 * 关闭popupwindow。
	 */
	public void dismissPopupWindow(){
		try {
			if(popupWindow!=null&&popupWindow.isShowing()){
				popupWindow.dismiss();
			}
		} catch (Exception e) {
		}
	}
	public PopupWindow getPopupWindow(){
		return popupWindow;
	}

	/**
	 * 计算描述文字共几行。
	 * @param text
	 * @return
	 */
	public int getDescriptionTextLines(String text){
		//中文的个数
		int sum = chineseNum(text);
		//描述文字的初始长度。
		int initTextLength = text.length();
		LogUtils.i("text==**"+initTextLength);
		int lines = 0;
		LogUtils.i("sum==="+sum);
		lines =(Math.round((initTextLength-sum)/2)+sum)/11;
		return lines;
	}
	/**
	 * 半角字符转化为全角字符。
	 * @param text
	 * @return
	 */
	public String half2FullCharacter(String text){
		char[] charArray = text.toCharArray();
		for(int i=0; i<charArray.length; i++){
			if(charArray[i]==12288){
				charArray[i] = (char)32;
				continue;
			}
			if(charArray[i]>65280&&charArray[i]<65375){
				charArray[i] = (char)(charArray[i]-65248);
			}
		}
		return new String(charArray);
	}

	/**
	 * 计算字符串中包含中文的个数。
	 * @param text
	 * @return
	 */
	public static int chineseNum(String text){
		int sum = 0;
		char[] chaArr = text.toCharArray();
		for(int i=0; i<chaArr.length; i++){
			char c = chaArr[i];
			Character.UnicodeBlock ub = Character.UnicodeBlock.of(c);
			if(ub==Character.UnicodeBlock.CJK_UNIFIED_IDEOGRAPHS
					||ub==Character.UnicodeBlock.CJK_UNIFIED_IDEOGRAPHS_EXTENSION_A
					||ub==Character.UnicodeBlock.CJK_SYMBOLS_AND_PUNCTUATION
					||ub==Character.UnicodeBlock.CJK_COMPATIBILITY_IDEOGRAPHS
					||ub==Character.UnicodeBlock.HALFWIDTH_AND_FULLWIDTH_FORMS
					||ub==Character.UnicodeBlock.GENERAL_PUNCTUATION){
				sum++;
			}
		}
		return sum;
	}

	/**
	 * 描述文字的真实长度(以中文为标准,两个数字或字母的长度算一个长度)
	 * @param text
	 * @return
	 */
	public static int getTextLength(String text){
		//中文的个数
		int sum = chineseNum(text);
		//描述文字的初始长度。
		int initTextLength = text.length();
		//字母和数字二者加起来的长度
		int letterOrDigitLength = 0;
		//计算后的真实长度
		int realLength = 0;

//		//将字符串转化为字符数组,逐个判断是不是数字/字母。
//		char[] textArr = text.toCharArray();
//		for(int i=0; i<textArr.length; i++){
//			if(Character.isLetterOrDigit(textArr[i])){//用这个方法判断某一个字符是否是字母时会有问题,因为编码问题,中文也会被当成字母,所以返回true。
//				sum++;
//			}
//		}
		letterOrDigitLength = initTextLength-sum;
		realLength = letterOrDigitLength%2==0?letterOrDigitLength/2+sum:letterOrDigitLength/2+1+sum;
		return realLength;
	}

	public int getXoff(final View view,final TextView tv){
		ViewTreeObserver observer = tv.getViewTreeObserver();
		observer.addOnGlobalLayoutListener(new OnGlobalLayoutListener() {

			@Override
			public void onGlobalLayout() {
				tv.getViewTreeObserver().removeGlobalOnLayoutListener(this);
				xOffSet = (view.getWidth()-tv.getWidth())/2;
//				Message msg = Message.obtain();
//				msg.what = 0;
//				msg.arg1 = tv.getWidth();
//
//				handler.sendMessage(msg);
			}
		});
		return xOffSet;
	}
	public void showPopupwindow(){

	}
}


text:
using System.Collections.Generic;

using OlympicGames.Core.Contracts;
using OlympicGames.Olympics.Contracts;

namespace OlympicGames.Core.Providers
{
    public class OlympicCommittee : IOlympicCommittee
    {
        private static readonly OlympicCommittee instance = new OlympicCommittee();

        private OlympicCommittee()
        {
            this.Olympians = new List<IOlympian>();
        }

        public ICollection<IOlympian> Olympians { get; private set; }

        public static OlympicCommittee Instance
        {
            get
            {
                return instance;
            }
        }
    }
}

redpajama_set_name: RedPajamaGithub


text:
var React = require('react');
var JobListing = require('./jobView');

var JobsList = React.createClass({

  render: function() {
    var count = 0;
    var titleString = '';
    var list = this.props.jobs.map(function(job, index) {
      count++;
      return <JobListing joblisting={job} key={index} />
    });

    if (this.props.jobs.length === 0) {
      titleString = 'No jobs found';
    } else if (this.props.location !== '' && this.props.title === '') {
      titleString = '' + count.toLocaleString() + (count===1 ? ' job ' : ' jobs ') + 'found in ' + this.props.location.toUpperCase();
    } else if (this.props.location === '' && this.props.title !== '') {
      titleString = '' + count.toLocaleString() + (count===1 ? ' job ' : ' jobs ') + 'found related to ' + this.props.title.toUpperCase();
    } else if (this.props.location !== '' && this.props.title !== '') {
      titleString = '' + count.toLocaleString() + (count===1 ? ' job ' : ' jobs ') + 'found in ' + this.props.location.toUpperCase() + ' related to ' + this.props.title.toUpperCase();
    }

    if (this.props.location === '' && this.props.title === '') {
      return (

      );
    } else {
      return (

{titleString}

            {list}

      );
    }
  }

});

module.exports = JobsList;


text:
This repository provides necessary codes and instructions to create Docker containers with Oracle databases mounted via Actifio.

*NOTE:* This is a experimental approach and not a direct feature of the product nor a qualified product methodology.

# Where to start?

You can start by cloning this git repository.

```
git clone https://github.com/Actifio/docker-oracle-vclones.git
```

# Pre-requisites

Steps described in this document provides instructions on how to create a Docker Image capable of creating Virtual DB Clones of Oracle databases. However these instructions would expect an existing Docker Image which contains Oracle binaries, or rather container image with Oracle Software installed.

In these examples, I've used an image based on Centos:7 with Oracle Installed. I will link details on how to create such an image at a later stage.

If you search the Docker Hub, there are several project / images around these images, and Oracle stock image (https://hub.docker.com/_/oracle-database-enterprise-edition?tab=description) might be a good place to start.

# Building the image

From the cloned repository, modify the ```Dockerfile``` to suite your base image.

```
FROM oracle11204
```

should be changed to

```
FROM yourimagerepo/oracleimage
```

Inside the git repository, run:

```
[root@kubebossman docker-oracle-vclones]# docker build --tag ora-actifio .
Sending build context to Docker daemon  66.05kB
Step 1/7 : FROM oracle11204
 ---> cc35f92b6ef9
Step 2/7 : RUN yum install epel-release
 ---> Running in c4654413fa2b
Loaded plugins: fastestmirror, ovl
Determining fastest mirrors
 * base: mirror.intergrid.com.au
 * extras: mirror.intergrid.com.au
 * updates: mirror.intergrid.com.au
base                                                     | 3.6 kB     00:00
extras                                                   | 3.4 kB     00:00
updates                                                  | 3.4 kB     00:00
[root@kubebossman docker-oracle-vclones]# docker build --tag ora-actifio .
Sending build context to Docker daemon  70.66kB
Step 1/7 : FROM oracle11204
 ---> cc35f92b6ef9
Step 2/7 : RUN yum install -y epel-release
 ---> Running in 01504fdbc60a
Loaded plugins: fastestmirror, ovl
Determining fastest mirrors
 * base: centos.mirror.serversaustralia.com.au
 * extras: centos.mirror.serversaustralia.com.au
 * updates: centos.mirror.serversaustralia.com.au
base                                                     | 3.6 kB     00:00
extras                                                   | 3.4 kB     00:00
updates                                                  | 3.4 kB     00:00
...
...
...
Installed:
  epel-release.noarch 0:7-11

Complete!
Removing intermediate container 01504fdbc60a
 ---> be8c83de6e4d
Step 3/7 : RUN yum install -y python python-pip && yum clean all
 ---> Running in 805b96f69d66
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
epel/x86_64/metalink                                     | 3.8 kB     00:00
 * base: centos.mirror.serversaustralia.com.au
 * epel: mirror.optus.net
 * extras: centos.mirror.serversaustralia.com.au
 * updates: centos.mirror.serversaustralia.com.au
epel                                                     | 5.3 kB     00:00
(1/3): epel/x86_64/group_gz                                |  88 kB   00:00
(2/3): epel/x86_64/updateinfo                              | 974 kB   00:00
(3/3): epel/x86_64/primary_db                              | 6.7 MB   00:00
Package python-2.7.5-77.el7_6.x86_64 already installed and latest version
python-setuptools.noarch 0:0.9.8-7.el7
...
...
...
Complete!
Loaded plugins: fastestmirror, ovl
Cleaning repos: base epel extras updates
Cleaning up list of fastest mirrors
Removing intermediate container 805b96f69d66
 ---> 6c34e21076ac
Step 4/7 : RUN pip install Actifio && pip install jinja2
 ---> Running in 84f5aa2a29e1
Collecting Actifio
...
...
...
Successfully installed MarkupSafe-1.1.1 jinja2-2.10.1
Removing intermediate container 84f5aa2a29e1
 ---> 99317cc24c42
Step 5/7 : RUN mkdir /script
 ---> Running in abc1c214774d
Removing intermediate container abc1c214774d
 ---> dfc34f212c21
Step 6/7 : ADD --chown=root:root docker-bootstrap.py /script
 ---> f3d1628591b5
Step 7/7 : ENTRYPOINT ['python', '/script/docker-bootstrap.py']
 ---> Running in 6c66677eb4b5
Removing intermediate container 6c66677eb4b5
 ---> 85b3294edd25
Successfully built 85b3294edd25
Successfully tagged ora-actifio:latest
[root@kubebossman docker-oracle-vclones]#
```

At this stage you should be able to list the newly created Docker Image.

```
[root@kubebossman ~]# docker image ls
REPOSITORY                           TAG                 IMAGE ID            CREATED              SIZE
ora-actifio                          latest              85b3294edd25        About a minute ago   5.61GB
oracle11204                          latest              cc35f92b6ef9        36 hours ago         5.45GB
...
...
...
```

# Start the container

Starting the container is little more complicated than the steps we followed sofar. Docker Container need to be told where to find the Oracle database to be mounted in to the container. These details need to be passed as environment variable from the CLI:

```
-e ACT_APPLIANCE=mysky \
-e ACT_USER=demo \
-e ACT_PASS=demo \
-e ACT_APPNAME=hugedb \
-e ACT_SRCHOST=oraserver \
-e ORACLE_SID=mycopy \
-e ORACLE_HOME=/opt/oracle/app/product/11204/ora_1 \
```

| Envar | Description
|---|---|
| ACT_APPLIANCE | Applaince IP or the host name
| ACT_USER | Actifio user account name, with the Mount Manage privileges
| ACT_PASS | Actifio user password
| ACT_APPNAME | Actifio Application name, or the name of the Database as it appears in Actifio
| ACT_SRCHOST | Hostname where this database is preotected from
| ORACLE_SID | New Oracle SID to create the virtual clone
| ORACLE_HOME | Oracle Home, as per the Docker Image
| ORACLE_USER | Oracle User, defaults to "oracle" if not specified

## Other requirements

Actifio connector is not qualified to run inside containers and in this case, we're not relying on Containers to communicate with Actifio appliance via a connector. However we're going to use the resources from Actifio connector from the host inside the container. Therefore we would need to bind mount ```/act``` from Docker host to the container.

For this bind mount we require bind-propagation set to ```shared```. This must be explicitly mentioned, and the default option would not allow mounting Actifio Volumes to the containers.

If you wish to access the database from an external application, you will required to map the port ```1521``` during the container creation.

## Example:

```
$ docker container run -d -e ACT_APPLIANCE=mysky \
-e ACT_USER=demo \
-e ACT_PASS=demo \
-e ACT_APPNAME=hugedb \
-e ACT_SRCHOST=oraserver \
-e ORACLE_SID=mycopy \
-e ORACLE_HOME=/opt/oracle/app/product/11204/ora_1 \
--name my-oracle \
--mount type=bind,source=/act,target=/act,bind-propagation=shared \
--port 1521:1521 \
ora-actifio
```

Once started you should be able to list the following way:

```
[root@kubebossman docker-oracle-vclones]# docker container ls
CONTAINER ID        IMAGE                  COMMAND                  CREATED             STATUS              PORTS               NAMES
b53667e390d4        ora-actifio            "/bin/sh -c 'python …"   7 minutes ago       Up 7 minutes                            my-oracle
```

# License

MIT License

Copyright (c) 2018 Kosala Atapattu

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


text:
The development of MCUboot takes place in the [MCUboot GitHub
repository](https://github.com/mcu-tools/mcuboot).

To submit patches, use GitHub pull requests.

Each commit has to have, in the commit message, a "Signed-off-by" line
that mentions the author (and the committer, if that is different). You
must add this line at the end of the commit text, separated by a blank
line. You can also add a line linking the commit to a specific GitHub
issue, as this section supports multiple lines, similarly to RFC-2822.

The supported trailer lines are structured as follows:

- A line that indicates that the signer agrees to the "Developer
Certificate of Origin" located at the bottom of this page:

  ```
      Signed-off-by: Developer Name <devname@example.com>
  ```

- A line that links this commit to specific GitHub issues, if present:

  ```
  Keyword #GH_issue_number
  ```

  For more details about linking a GitHub pull request to a GitHub issue,
  see this [link]
  (https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue).

## Developer certificate of origin

The following is the "Developer Certificate of Origin":

```
Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.
```


text:
module DataMapper
  class Property
    class Float < Numeric
      load_as ::Float
      dump_as ::Float

      DEFAULT_PRECISION = 10
      DEFAULT_SCALE     = nil

      precision(DEFAULT_PRECISION)
      scale(DEFAULT_SCALE)

      protected

      # Typecast a value to a Float
      #
      # @param [#to_str, #to_f] value
      #   value to typecast
      #
      # @return [Float]
      #   Float constructed from value
      #
      # @api private
      def typecast_to_primitive(value)
        typecast_to_numeric(value, :to_f)
      end
    end # class Float
  end # class Property
end # module DataMapper


text:
FactoryBot.define do
  factory :section do
    position      { Forgery(:basic).number }
    sequence(:id) { |n| n }
    numeral       { %w[I II III].sample }
    title         { Forgery(:basic).text }
    created_at    { Time.now }
    updated_at    { Time.now }

    trait :with_note do
      after(:create) { |section, _evaluator|
        FactoryBot.create(:section_note, section_id: section.id)
      }
    end
  end

  factory :section_note do
    section

    content { Forgery(:basic).text }
  end
end


text:
package org.openintents.openpgp;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Parcelable versioning has been copied from Dashclock Widget
 * https://code.google.com/p/dashclock/source/browse/api/src/main/java/com/google/android/apps/dashclock/api/ExtensionData.java
 */
public class OpenPgpMetadata implements Parcelable {
    /**
     * Since there might be a case where new versions of the client using the library getting
     * old versions of the protocol (and thus old versions of this class), we need a versioning
     * system for the parcels sent between the clients and the providers.
     */
    public static final int PARCELABLE_VERSION = 1;

    String filename;
    String mimeType;
    long modificationTime;
    long originalSize;

    public String getFilename() {
        return filename;
    }

    public String getMimeType() {
        return mimeType;
    }

    public long getModificationTime() {
        return modificationTime;
    }

    public long getOriginalSize() {
        return originalSize;
    }

    public OpenPgpMetadata() {
    }

    public OpenPgpMetadata(String filename, String mimeType, long modificationTime,
                           long originalSize) {
        this.filename = filename;
        this.mimeType = mimeType;
        this.modificationTime = modificationTime;
        this.originalSize = originalSize;
    }

    public OpenPgpMetadata(OpenPgpMetadata b) {
        this.filename = b.filename;
        this.mimeType = b.mimeType;
        this.modificationTime = b.modificationTime;
        this.originalSize = b.originalSize;
    }

    public int describeContents() {
        return 0;
    }

    public void writeToParcel(Parcel dest, int flags) {
        /**
         * NOTE: When adding fields in the process of updating this API, make sure to bump
         * {@link #PARCELABLE_VERSION}.
         */
        dest.writeInt(PARCELABLE_VERSION);
        // Inject a placeholder that will store the parcel size from this point on
        // (not including the size itself).
        int sizePosition = dest.dataPosition();
        dest.writeInt(0);
        int startPosition = dest.dataPosition();
        // version 1
        dest.writeString(filename);
        dest.writeString(mimeType);
        dest.writeLong(modificationTime);
        dest.writeLong(originalSize);
        // Go back and write the size
        int parcelableSize = dest.dataPosition() - startPosition;
        dest.setDataPosition(sizePosition);
        dest.writeInt(parcelableSize);
        dest.setDataPosition(startPosition + parcelableSize);
    }

    public static final Creator<OpenPgpMetadata> CREATOR = new Creator<OpenPgpMetadata>() {
        public OpenPgpMetadata createFromParcel(final Parcel source) {
            int parcelableVersion = source.readInt();
            int parcelableSize = source.readInt();
            int startPosition = source.dataPosition();

            OpenPgpMetadata vr = new OpenPgpMetadata();
            vr.filename = source.readString();
            vr.mimeType = source.readString();
            vr.modificationTime = source.readLong();
            vr.originalSize = source.readLong();

            // skip over all fields added in future versions of this parcel
            source.setDataPosition(startPosition + parcelableSize);

            return vr;
        }

        public OpenPgpMetadata[] newArray(final int size) {
            return new OpenPgpMetadata[size];
        }
    };

    @Override
    public String toString() {
        String out = "\nfilename: " + filename;
        out += "\nmimeType: " + mimeType;
        out += "\nmodificationTime: " + modificationTime;
        out += "\noriginalSize: " + originalSize;
        return out;
    }

}


text:
namespace elsa {
	namespace compiler {

		class ConditionalParser : public Parser
		{
		public:
			std::unique_ptr<Expression> parse(ElsaParser* parser) override;
		};

	}
}


text:
{-# LANGUAGE PatternSynonyms #-}
-- For HasCallStack compatibility
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module JSDOM.Generated.GlobalCrypto
       (getCrypto, GlobalCrypto(..), gTypeGlobalCrypto, IsGlobalCrypto,
        toGlobalCrypto)
       where
import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))
import qualified Prelude (error)
import Data.Typeable (Typeable)
import Data.Traversable (mapM)
import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, asyncFunction, new, array, jsUndefined, (!), (!!))
import Data.Int (Int64)
import Data.Word (Word, Word64)
import JSDOM.Types
import Control.Applicative ((<$>))
import Control.Monad (void)
import Control.Lens.Operators ((^.))
import JSDOM.EventTargetClosures (EventName, unsafeEventName, unsafeEventNameAsync)
import JSDOM.Enums

-- | <https://developer.mozilla.org/en-US/docs/Web/API/GlobalCrypto.crypto Mozilla GlobalCrypto.crypto documentation>
getCrypto :: (MonadDOM m, IsGlobalCrypto self) => self -> m Crypto
getCrypto self
  = liftDOM
      (((toGlobalCrypto self) ^. js "crypto") >>= fromJSValUnchecked)


text:
package de.bokeh.skred.core;

import java.io.IOException;
import java.io.Reader;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;

import de.bokeh.skred.core.Lexeme.Kind;
import de.bokeh.skred.input.AbstractSkReader;
import de.bokeh.skred.red.AppFactory;
import de.bokeh.skred.red.Data;
import de.bokeh.skred.red.Function;
import de.bokeh.skred.red.Int;
import de.bokeh.skred.red.Node;
import de.bokeh.skred.red.Symbol;

public class Parser extends AbstractSkReader {

    private final AppFactory appFactory;
    private final BA ba;

    private Lexer lex;

    private Lexeme currTok;

    public Parser(AppFactory appFactory, boolean useBStar) {
        super(appFactory);
        this.appFactory = appFactory;
        this.ba = new BA(appFactory, useBStar);
    }

    private void skip() throws IOException {
        currTok = lex.nextToken();
    }

    @Override
    public void readDefns(Reader in, String fileName) throws IOException {
        this.lex = new Lexer(in, fileName);
        skip();
        Map<String, Node> ds = defns();
        in.close();
        if (currTok.kind != Kind.EOF) {
            syntaxError("EOF expected, but got " + currTok);
        }
        ds.forEach(super::addDefn);
    }

    private Map<String, Node> defns() throws IOException {
        Map<String, Node> ds = new HashMap<>();
        for (;;) {
            if (!(currTok.kind == Kind.QVARID || currTok.kind == Kind.QCONID)) {
                syntaxError("definition expected");
            }
            String s = currTok.text;
            skip();
            List<String> args = new ArrayList<>();
            while (currTok.kind == Kind.QVARID || (currTok.kind == Kind.RESERVEDID && "_".equals(currTok.text))) {
                args.add(currTok.text);
                skip();
            }
            accept(Kind.RESERVEDOP, "=");
            Node e = expression();
            e = ba.abs(args, e);
            e = ds.put(s, e);
            if (e != null) {
                syntaxError("duplicate definition: '" + s + "'");
            }
            if (currTok.kind != Kind.SEMI) {
                break;
            }
            skip();
        }
        return ds;
    }

/*

expression --> expr5 relOp expr5
expr5      --> expr6 ( : expr6 )*
expr6      --> ( expr7 + - )* expr7
expr7      --> ( expr9 * / % )* expr9
expr9      --> expr10 ( . expr10)*

expr10     --> lambda let if case application

application --> aexp+

aexp        --> var con literal
              parens tuples lists

 */

    private static final String[] REL_OPS = {
        "==", "/=", "<", ">", "<=", ">="
    };

    private static String relopName(String sym) {
        switch (sym) {
        case "==": return "eq";
        case "/=": return "ne";
        case "<" : return "lt";
        case ">" : return "gt";
        case "<=": return "le";
        case ">=": return "ge";
        default:
            throw new IllegalArgumentException("invalid relop: " + sym);
        }
    }

    private boolean isOp(String[] ops) {
        return (currTok.kind == Kind.QVARSYM || currTok.kind == Kind.QCONSYM || currTok.kind == Kind.RESERVEDOP)
                && Lexer.contains(ops, currTok.text);
    }

    private Node expression() throws IOException {
        Node e = expr2();
        if (currTok.kind == Kind.QVARSYM && "$".equals(currTok.text)) {
            skip();
            e = appFactory.mkApp(e, expression());
        }
        return e;
    }

    private Node expr2() throws IOException {
        List<Node> es = new ArrayList<>();
        es.add(expr3());
        while (currTok.kind == Kind.QVARSYM && "||".equals(currTok.text)) {
            skip();
            es.add(expr3());
        }
        return rassoc(Symbol.valueOf("or"), es);
    }

    private Node expr3() throws IOException {
        List<Node> es = new ArrayList<>();
        es.add(expr4());
        while (currTok.kind == Kind.QVARSYM && "&&".equals(currTok.text)) {
            skip();
            es.add(expr4());
        }
        return rassoc(Symbol.valueOf("and"), es);
    }

    private Node expr4() throws IOException {
        Node e = expr5();
        if (isOp(REL_OPS)) {
            String op = currTok.text;
            skip();
            e = appFactory.mkApp(Function.valueOf(relopName(op)), e, expr5());
        }
        return e;
    }

    private Node expr5() throws IOException {
        Node e1 = expr6();
        if (currTok.kind == Kind.RESERVEDOP && ":".equals(currTok.text)) {
            skip();
            Node es = expr5();
            return appFactory.mkApp(Function.primPack(1, 2), e1, es);
        }
        if (currTok.kind == Kind.QVARSYM && "++".equals(currTok.text)) {
            skip();
            Node es = expr5();
            return appFactory.mkApp(Symbol.valueOf("append"), e1, es);
        }
        return e1;
    }

    private Node rassoc(Node f, List<Node> xs) {
        int n = xs.size();
        Node e = xs.get(n - 1);
        for (int i = n - 2; i >= 0; i--) {
            e = appFactory.mkApp(f, xs.get(i), e);
        }
        return e;
    }

    private Node expr6() throws IOException {
        Node e = expr7();
        while (isOp(new String[]{"+", "-"})) {
            String op = currTok.text.equals("+") ? "add" : "sub";
            skip();
            e = appFactory.mkApp(Function.valueOf(op), e, expr7());
        }
        return e;
    }

    private Node expr7() throws IOException {
        Node e = expr9();
        while (isOp(new String[]{"*", "/", "%"})) {
            String op;
            switch (currTok.text) {
            case "*": op = "mul"; break;
            case "/": op = "quot"; break;
            default:  op = "rem"; break;
            }
            skip();
            e = appFactory.mkApp(Function.valueOf(op), e, expr9());
        }
        return e;
    }

    private Node expr9() throws IOException {
        List<Node> es = new ArrayList<>();
        es.add(expr10());
        while (currTok.kind == Kind.QVARSYM && ".".equals(currTok.text)) {
            skip();
            es.add(expr10());
        }
        return rassoc(Function.valueOf("B"), es);
    }

    private Node expr10() throws IOException {
        switch (currTok.kind) {
        case RESERVEDOP:
            if ("\\".equals(currTok.text)) {
                return lambda();
            }
            break;
        case RESERVEDID:
            switch (currTok.text) {
            case "case":
                return caseExpression();
            case "if":
                return conditional();
            case "let":
                return let();
            case "letrec":
                return letrec();
            case "Pack":
            case "Get":
                return application();
            default:
                break;
            }
            break;
        default:
            return application();
        }
        syntaxError("one of '\\', 'case', 'if', expression expected");
        return null;
    }

    private Node letrec() throws IOException {
        skip();
        accept(Kind.LBRACE);
        Map<String, Node> ds = defns();
        accept(Kind.RBRACE);
        accept(Kind.RESERVEDID, "in");
        Node body = expression();
        List<String> xs = new ArrayList<>();
        List<Node> es = new ArrayList<>();
        ds.forEach((k,v) -> { xs.add(k); es.add(v); });
        if (xs.size() == 1) {
            // only 1 binding
            Node f = ba.abs(xs.get(0), body);
            Node a = appFactory.mkApp(Function.valueOf("Y"), ba.abs(xs.get(0), es.get(0)));
            return appFactory.mkApp(f, a);
        } else {
            Node f = ba.absMany(xs, appFactory.mkApp(Function.valueOf("K"), body));
            Node es1 = appFactory.mkApp(Function.valueOf("K"), appFactory.mkList(es));
            Node a = appFactory.mkApp(Function.valueOf("Y"), ba.absMany(xs, es1));
            return appFactory.mkApp(f, a);
        }
    }

    private Node lambda() throws IOException {
        skip();
        List<String> xs = new ArrayList<>();
        while (currTok.kind == Kind.QVARID || (currTok.kind == Kind.RESERVEDID && "_".equals(currTok.text))) {
            xs.add(currTok.text);
            skip();
        }
        if (xs.isEmpty()) {
            syntaxError("identifier expexted");
        }
        accept(Kind.RESERVEDOP, "->");
        return ba.abs(xs, expression());
    }

    private Node let() throws IOException {
        skip();
        accept(Kind.LBRACE);
        Map<String, Node> ds = defns();
        accept(Kind.RBRACE);
        accept(Kind.RESERVEDID, "in");
        Node body = expression();
        List<String> xs = new ArrayList<>();
        List<Node> es = new ArrayList<>();
        ds.forEach((k,v) -> { xs.add(k); es.add(v); });
        body = ba.abs(xs, body);
        for (Node e : es) {
            body = appFactory.mkApp(body, e);
        }
        return body;
    }

    private Node application() throws IOException {
        Node e = aexpr(false);
        for (;;) {
            Node arg = aexpr(true);
            if (arg == null)
                break;
            e = appFactory.mkApp(e, arg);
        }
        return e;
    }

    private Node aexpr(boolean canFail) throws IOException {
        Node e;
        switch (currTok.kind) {
        case RESERVEDID:
            if (currTok.text.equals("Pack")) {
                return constructor();
            }
            if (currTok.text.equals("Get")) {
                return getter();
            }
            break;
        case QVARID:
        case QCONID:
            e = Symbol.valueOf(currTok.text);
            skip();
            return e;
        case LIT_CHAR:
            e = Int.valueOf(currTok.text.codePointAt(0));
            skip();
            return e;
        case LIT_INT:
            e = Int.valueOf(new BigInteger(currTok.text));
            skip();
            return e;
        case LIT_STRING:
            e = Data.makeString(currTok.text);
            skip();
            return e;
        case LPAREN:
            skip();
            e = expression();
            accept(Kind.RPAREN);
            return e;
        case LBRACKET:
            return parseList();
        default:
            break;
        }

        if (!canFail) {
            syntaxError("aexpr expected");
        }
        return null;
    }

    private Node parseList() throws IOException {
        skip();
        List<Node> es = new ArrayList<>();
        while (currTok.kind != Kind.RBRACKET) {
            es.add(expression());
            if (currTok.kind == Kind.COMMA) {
                skip();
            }
        }
        skip();
        es.add(Data.valueOf(0));
        return rassoc(Function.primPack(1, 2), es);
    }

    private Node constructor() throws IOException {
        skip();
        accept(Kind.LBRACE);
        String t = currTok.text;
        accept(Kind.LIT_INT);
        accept(Kind.COMMA);
        String a = currTok.text;
        accept(Kind.LIT_INT);
        accept(Kind.RBRACE);
        return Function.primPack(Integer.parseInt(t), Integer.parseInt(a));
    }

    private Node getter() throws IOException {
        skip();
        accept(Kind.LBRACE);
        String index = currTok.text;
        accept(Kind.LIT_INT);
        accept(Kind.RBRACE);
        return Function.primGet(Integer.parseInt(index));
    }

    private Node conditional() throws IOException {
        skip();
        Node p = expression();
        accept(Kind.RESERVEDID, "then");
        Node c = expression();
        accept(Kind.RESERVEDID, "else");
        Node a = expression();
        return appFactory.mkApp(Function.primCase(new int[]{0,0}, true), a, c, p);
    }

    private Node caseExpression() throws IOException {
        skip();
        Node e = expression();
        accept(Kind.RESERVEDID, "of");
        accept(Kind.LBRACE);

        Map<Integer, Alt> alts = new TreeMap<>();

        for (;;) {
            Alt a = alt();
            if (alts.put(a.tag, a) != null) {
                syntaxError("duplicate case tag");
            }
            if (currTok.kind == Kind.RBRACE) {
                break;
            }
            if (currTok.kind != Kind.SEMI) {
                syntaxError("';' or '}' expected");
            }
            skip();
        }
        skip();

        int[] arities = new int[alts.size()];
        List<Node> altExprs = new ArrayList<>();
        int i = 0;
        boolean hasDefault = false;
        for (Alt a : alts.values()) {
            if (a.tag == Integer.MAX_VALUE) {
                if (hasDefault) {
                    syntaxError("duplicate default case");
                }
                hasDefault = true;
            } else if (a.tag != i) {
                syntaxError("missing tag in case: " + i);
            }
            rTrim(a.xs, "_");
            arities[i] = a.xs.size();
            altExprs.add(ba.abs(a.xs, a.e));
            i++;
        }

        Function c = Function.primCase(arities, hasDefault);
        altExprs.add(e);
        return appFactory.mkApp(c, altExprs);
    }
/*

  case foo of { <0> -> bar; <1> x xs -> quux }

  ===>

  case2 (unpack0 bar) (unpack2 (\x xs -> quux)) foo

  -

  unpack0 = const

  unpack2 f obj = f obj[0] obj[1]

*/

    private static <T> void rTrim(List<T> xs, T x) {
        int n = xs.size();
        while (n > 0 && xs.get(n - 1).equals(x)) {
            n--;
            xs.remove(n);
        }
    }

    private static class Alt {
        int tag;
        final List<String> xs = new ArrayList<>();
        Node e;
    }

    private Alt alt() throws IOException {
        Alt a = new Alt();
        if (currTok.kind == Kind.QVARID || (currTok.kind == Kind.RESERVEDID && "_".equals(currTok.text))) {
            a.xs.add(currTok.text);
            skip();
            a.tag = Integer.MAX_VALUE;
        } else {
            accept(Kind.QVARSYM, "<");
            String n = currTok.text;
            accept(Kind.LIT_INT);
            a.tag = Integer.parseInt(n);
            accept(Kind.QVARSYM, ">");
            while (currTok.kind == Kind.QVARID || (currTok.kind == Kind.RESERVEDID && "_".equals(currTok.text))) {
                a.xs.add(currTok.text);
                skip();
            }
        }
        accept(Kind.RESERVEDOP, "->");
        a.e = expression();
        return a;
    }

    private void accept(Kind kind) throws IOException {
        if (currTok.kind != kind) {
            syntaxError(kind + " expected");
        }
        currTok = lex.nextToken();
    }

    private void accept(Kind kind, String text) throws IOException {
        if (currTok.kind != kind || !text.equals(currTok.text)) {
            syntaxError(kind + " expected");
        }
        currTok = lex.nextToken();
    }

    private void syntaxError(String problem) {
        throw new SyntaxError(currTok, problem);
    }

}


text:
Tokens de autenticação são passados via Headers especiais de **Autenticação** para autenticar e validar a operação e garantir com que tudo seja feito em segurança na API!

Os Tokens também são responsáveis por fazer a atualização da Presença do Dispositivo, ou seja, permitir que o sistema saiba que seu dispositivo está conectado.

*  Todas as operações exceto as de **GET** são necessárias a inclusão do Header Especial da operação, caso contrário não irá ter acesso.
*  Para obter presença do dispositivo é necessário que o Header de Autenticação esteja presente em todas as operações. Caso contrário o dispositivo irá demonstrar-se desligado.

## Header de Autenticação

    Header
    Valor
    Descrição

    Authorization
    Bearer {PRIVATE_KEY}
    Usado para Autenticar a operação. ( Exemplo: Autenticar o dispositivo com a Chave Privada )

## Exemplo de Chamada
`$ curl -H 'Authorization: Bearer {TOKEN}' https://automacao-iot.com.br/api/device/{public_key}/`

## Aonde eu encontro a Chave Privada ( Private Key ) ?

Ao criar um [dispositivo](https://automacao-iot.com.br/iot/web/device/device-cadastrar) em sua conta, no canto direito há uma opção chamada **Modificar Dispositivo**.

Na tela que irá abrir, vai ter um campo chamado **Secret Key** e é esta chave que você usará em seu **Token de Autenticação**.


text:
SYNONYM

#### According to
The Catalogue of Life, 3rd January 2011

#### Published in
Ann. phytopath. Soc. Japan 15: 35 (1950)

#### Original name
Cercospora vignicola E. Kawam., 1931

### Remarks
null


text:
def unindent(s)
  s.gsub(/^#{s.scan(/^[ \t]+(?=\S)/).min}/, '')
end

def expect_no_copyright_offense(cop, source)
  inspect_source(cop, source)
  expect(cop.offenses).to be_empty
end

def expect_copyright_offense(cop, source)
  inspect_source(cop, source)
  expect(cop.offenses.size).to eq(1)
end

describe RuboCop::Cop::Style::Copyright, :config do
  subject(:cop) { described_class.new(config) }
  let(:cop_config) { { 'Notice' => 'Copyright (\(c\) )?2015 Acme Inc' } }

  context 'when the copyright notice is present' do
    let(:source) { unindent(<<-SOURCE) }
      # Copyright 2015 Acme Inc.
      # test2
      names = Array.new
      names << 'James'
    SOURCE
    it 'does not add an offense' do
      expect_no_copyright_offense(cop, source)
    end
  end

  context 'when the copyright notice is not the first comment' do
    let(:source) { unindent(<<-SOURCE) }
      # test2
      # Copyright 2015 Acme Inc.
      names = Array.new
      names << 'James'
    SOURCE
    it 'does not add an offense' do
      expect_no_copyright_offense(cop, source)
    end
  end

  context 'when the copyright notice is in a block comment' do
    let(:source) { unindent(<<-SOURCE) }
      =begin
      blah, blah, blah
      Copyright 2015 Acme Inc.
      =end
      names = Array.new
      names << 'James'
    SOURCE
    it 'does not add an offense' do
      expect_no_copyright_offense(cop, source)
    end
  end

  context 'when the copyright notice is missing' do
    let(:source) { unindent(<<-SOURCE) }
      # test
      # test2
      names = Array.new
      names << 'James'
    SOURCE

    it 'adds an offense' do
      expect_copyright_offense(cop, source)
    end

    let(:expected_autocorrected_source) { unindent(<<-SOURCE) }
      # Copyright (c) 2015 Acme Inc.
      # test
      # test2
      names = Array.new
      names << 'James'
    SOURCE

    it 'correctly autocorrects the source code' do
      cop_config['AutocorrectNotice'] = '# Copyright (c) 2015 Acme Inc.'
      autocorrected_source = autocorrect_source(cop, source)
      expect(autocorrected_source).to eq(expected_autocorrected_source)
    end

    it 'fails to autocorrect when the AutocorrectNotice does ' \
       'not match the Notice pattern' do
      cop_config['AutocorrectNotice'] = '# Copyleft (c) 2015 Acme Inc.'
      expect do
        autocorrect_source(cop, source)
      end.to raise_error(RuboCop::Warning)
    end

    it 'fails to autocorrect if no AutocorrectNotice is given' do
      # cop_config['AutocorrectNotice'] = '# Copyleft (c) 2015 Acme Inc.'
      expect do
        autocorrect_source(cop, source)
      end.to raise_error(RuboCop::Warning)
    end
  end

  context 'when the copyright notice comes after any code' do
    let(:source) { unindent(<<-SOURCE) }
      # test2
      names = Array.new
      # Copyright (c) 2015 Acme Inc.
      names << 'James'
    SOURCE

    it 'adds an offense' do
      expect_copyright_offense(cop, source)
    end

    let(:expected_autocorrected_source) { unindent(<<-SOURCE) }
      # Copyright (c) 2015 Acme Inc.
      # test2
      names = Array.new
      # Copyright (c) 2015 Acme Inc.
      names << 'James'
    SOURCE

    it 'correctly autocorrects the source code' do
      cop_config['AutocorrectNotice'] = '# Copyright (c) 2015 Acme Inc.'
      autocorrected_source = autocorrect_source(cop, source)
      expect(autocorrected_source).to eq(expected_autocorrected_source)
    end
  end

  context 'when the source code file is empty' do
    let(:source) { '' }

    it 'adds an offense' do
      expect_copyright_offense(cop, source)
    end

    let(:expected_autocorrected_source) { "# Copyright (c) 2015 Acme Inc.\n" }

    it 'correctly autocorrects the source code' do
      cop_config['AutocorrectNotice'] = '# Copyright (c) 2015 Acme Inc.'
      autocorrected_source = autocorrect_source(cop, source)
      expect(autocorrected_source).to eq(expected_autocorrected_source)
    end
  end

  context 'when the copyright notice is missing and ' \
          'the source code file starts with a shebang' do
    let(:source) { unindent(<<-SOURCE) }
      #!/usr/bin/env ruby
      names = Array.new
      names << 'James'
    SOURCE

    it 'adds an offense' do
      expect_copyright_offense(cop, source)
    end

    let(:expected_autocorrected_source) { unindent(<<-SOURCE) }
      #!/usr/bin/env ruby
      # Copyright (c) 2015 Acme Inc.
      names = Array.new
      names << 'James'
    SOURCE

    it 'correctly autocorrects the source code' do
      cop_config['AutocorrectNotice'] = '# Copyright (c) 2015 Acme Inc.'
      autocorrected_source = autocorrect_source(cop, source)
      expect(autocorrected_source).to eq(expected_autocorrected_source)
    end
  end

  context 'when the copyright notice is missing and ' \
          'the source code file starts with an encoding comment' do
    let(:source) { unindent(<<-SOURCE) }
      # encoding: utf-8
      names = Array.new
      names << 'James'
    SOURCE

    it 'adds an offense' do
      expect_copyright_offense(cop, source)
    end

    let(:expected_autocorrected_source) { unindent(<<-SOURCE) }
      # encoding: utf-8
      # Copyright (c) 2015 Acme Inc.
      names = Array.new
      names << 'James'
    SOURCE

    it 'correctly autocorrects the source code' do
      cop_config['AutocorrectNotice'] = '# Copyright (c) 2015 Acme Inc.'
      autocorrected_source = autocorrect_source(cop, source)
      expect(autocorrected_source).to eq(expected_autocorrected_source)
    end
  end

  context 'when the copyright notice is missing and ' \
          'the source code file starts with shebang and ' \
          'an encoding comment' do
    let(:source) { unindent(<<-SOURCE) }
      #!/usr/bin/env ruby
      # encoding: utf-8
      names = Array.new
      names << 'James'
    SOURCE

    it 'adds an offense' do
      expect_copyright_offense(cop, source)
    end

    let(:expected_autocorrected_source) { unindent(<<-SOURCE) }
      #!/usr/bin/env ruby
      # encoding: utf-8
      # Copyright (c) 2015 Acme Inc.
      names = Array.new
      names << 'James'
    SOURCE

    it 'correctly autocorrects the source code' do
      cop_config['AutocorrectNotice'] = '# Copyright (c) 2015 Acme Inc.'
      autocorrected_source = autocorrect_source(cop, source)
      expect(autocorrected_source).to eq(expected_autocorrected_source)
    end
  end
end


text:
##Non-private Field Detection Policy

###Sample Model

```java
/*
 * To have LoganSquare detect all non-private fields, even if they
 * aren't annotated as @JsonFields, set the fieldDetectionPolicy of
 * the @JsonObject.
 */
@JsonObject(fieldDetectionPolicy = FieldDetectionPolicy.NONPRIVATE_FIELDS)
public class Image {

    /*
     * Standard field declaration.
     */
    public String format;

    /*
     * If you want to have a variable with a different name
     * than the JSON field, you'll still have to annotate it like so.
     */
    @JsonField(name = "_id")
    public int imageId;

    public String url;

    public String description;

    /*
     * Note that even though this is a package-local field,
     * LoganSquare can parse and serialize it without issue.
     */
    List<Image> similarImages;

    /*
     * Note that since this field is annotated with
     * @JsonIgnore, LoganSquare will ignore it when parsing
     * and serializing this class.
     */
    @JsonIgnore
    public int nonJsonField;

    /*
     * Since this is a private field, LoganSquare will ignore it
     * due to the field detection policy.
     */
    private int privateInt;

    public int getPrivateInt() {
        return privateInt;
    }

    public void setPrivateInt(int i) {
        privateInt = i;
    }

    /*
     * Optional callback method to do something when your
     * object is done parsing.
     */
    @OnJsonParseComplete void onParseComplete() {
        // Do some fancy post-processing stuff after parsing here
    }

    /*
     * Optional callback method to do something before your
     * object serializes.
     */
    @OnPreJsonSerialize void onPreSerialize() {
        // Do some fancy pre-processing stuff before serializing here
    }
}

```


text:
var functions = require('../../lib/functions.js');

module.exports = function(ds, req, res, next){
    if(req.method=='POST' || req.method=='PUT'){
        var pathActionId = false;
        var urlParts = req.pathname.split('/');

        if(urlParts.length==4 && urlParts[2]!=''){
            pathActionId = parseInt(urlParts[2]);
        }else{
            console.log('NO ID');
            console.log(urlParts.length);
            console.log(urlParts[2]);
        }

        var pathActionModel = ds.params.models.path_action;

        var pathActionRecord = pathActionModel.build({});
        pathActionRecord.set('deleted_at', null);

        for(var key in req.body){
            pathActionRecord.set(key, req.body[key]);
        }
        if(req.method=='PUT'){
            pathActionRecord.set('id', pathActionId);
            pathActionRecord.set('modified_by', req.user.id);
        }else{
            pathActionRecord.set('created_by', req.user?req.user.id:1);
        }

        pathActionRecord.save({
            success: function(result){
                res.statusCode=200;
                res.API_output = pathActionRecord.dataValues;
                //res.API_output.users = req.body.users;
                next();
            },
            error: function(e){
                console.log('error');
                functions.error500(e, res);
                next();
            }
        });
    }else{
        next();
    }
};


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/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>com.github.pires</groupId>
    <artifactId>rethinkdb-ssl</artifactId>
    <packaging>jar</packaging>
    <version>1.0-SNAPSHOT</version>

    <name>RethinkDB SSL</name>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.sourceEncoding>UTF-8</project.reporting.sourceEncoding>
        <java.version>1.8</java.version>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
    </properties>

    <dependencies>
        <dependency>
            <groupId>com.rethinkdb</groupId>
            <artifactId>rethinkdb-driver</artifactId>
            <version>2.2-beta-2-SNAPSHOT</version>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>exec-maven-plugin</artifactId>
                <version>1.4.0</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>exec</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <mainClass>com.github.pires.App</mainClass>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>


text:
package org.apache.cloudstack.api.response;

import java.util.Date;
import java.util.List;

import org.apache.cloudstack.acl.RoleType;
import org.apache.cloudstack.api.ApiConstants;
import org.apache.cloudstack.api.BaseResponse;
import org.apache.cloudstack.api.EntityReference;

import com.cloud.network.IpAddress;
import com.cloud.serializer.Param;
import com.google.gson.annotations.SerializedName;

@EntityReference(value = IpAddress.class)
@SuppressWarnings("unused")
public class AcquireIPAddressResponse  extends BaseResponse implements ControlledEntityResponse {
 @SerializedName(ApiConstants.ID)
 @Param(description = "public IP address id")
 private String id;

 @SerializedName(ApiConstants.IP_ADDRESS)
 @Param(description = "public IP address")
 private String ipAddress;

 @SerializedName("allocated")
 @Param(description = "date the public IP address was acquired")
 private Date allocated;

 @SerializedName(ApiConstants.ZONE_ID)
 @Param(description = "the ID of the zone the public IP address belongs to")
 private String zoneId;

 @SerializedName(ApiConstants.ZONE_NAME)
 @Param(description = "the name of the zone the public IP address belongs to")
 private String zoneName;

 @SerializedName("issourcenat")
 @Param(description = "true if the IP address is a source nat address, false otherwise")
 private Boolean sourceNat;

 @SerializedName(ApiConstants.ACCOUNT)
 @Param(description = "the account the public IP address is associated with")
 private String accountName;

 @SerializedName(ApiConstants.PROJECT_ID)
 @Param(description = "the project id of the ipaddress")
 private String projectId;

 @SerializedName(ApiConstants.PROJECT)
 @Param(description = "the project name of the address")
 private String projectName;

 @SerializedName(ApiConstants.DOMAIN_ID)
 @Param(description = "the domain ID the public IP address is associated with")
 private String domainId;

 @SerializedName(ApiConstants.DOMAIN)
 @Param(description = "the domain the public IP address is associated with")
 private String domainName;

 @SerializedName(ApiConstants.FOR_VIRTUAL_NETWORK)
 @Param(description = "the virtual network for the IP address")
 private Boolean forVirtualNetwork;

 @SerializedName(ApiConstants.VLAN_ID)
 @Param(description = "the ID of the VLAN associated with the IP address." + " This parameter is visible to ROOT admins only")
 private String vlanId;

 @SerializedName("vlanname")
 @Param(description = "the VLAN associated with the IP address")
 private String vlanName;

 @SerializedName("isstaticnat")
 @Param(description = "true if this ip is for static nat, false otherwise")
 private Boolean staticNat;

 @SerializedName(ApiConstants.IS_SYSTEM)
 @Param(description = "true if this ip is system ip (was allocated as a part of deployVm or createLbRule)")
 private Boolean isSystem;

 @SerializedName(ApiConstants.VIRTUAL_MACHINE_ID)
 @Param(description = "virtual machine id the ip address is assigned to (not null only for static nat Ip)")
 private String virtualMachineId;

 @SerializedName("vmipaddress")
 @Param(description = "virtual machine (dnat) ip address (not null only for static nat Ip)")
 private String virtualMachineIp;

 @SerializedName("virtualmachinename")
 @Param(description = "virtual machine name the ip address is assigned to (not null only for static nat Ip)")
 private String virtualMachineName;

 @SerializedName("virtualmachinedisplayname")
 @Param(description = "virtual machine display name the ip address is assigned to (not null only for static nat Ip)")
 private String virtualMachineDisplayName;

 @SerializedName(ApiConstants.ASSOCIATED_NETWORK_ID)
 @Param(description = "the ID of the Network associated with the IP address")
 private String associatedNetworkId;

 @SerializedName(ApiConstants.ASSOCIATED_NETWORK_NAME)
 @Param(description = "the name of the Network associated with the IP address")
 private String associatedNetworkName;

 @SerializedName(ApiConstants.NETWORK_ID)
 @Param(description = "the ID of the Network where ip belongs to")
 private String networkId;

 @SerializedName(ApiConstants.STATE)
 @Param(description = "State of the ip address. Can be: Allocatin, Allocated and Releasing")
 private String state;

 @SerializedName(ApiConstants.PHYSICAL_NETWORK_ID)
 @Param(description = "the physical network this belongs to")
 private String physicalNetworkId;

 @SerializedName(ApiConstants.PURPOSE)
 @Param(description = "purpose of the IP address. In Acton this value is not null for Ips with isSystem=true, and can have either StaticNat or LB value")
 private String purpose;

 @SerializedName(ApiConstants.VPC_ID)
 @Param(description = "VPC the ip belongs to")
 private String vpcId;
 @SerializedName(ApiConstants.TAGS)
 @Param(description = "the list of resource tags associated with ip address", responseObject = ResourceTagResponse.class)
 private List<ResourceTagResponse> tags;

 @SerializedName(ApiConstants.IS_PORTABLE)
 @Param(description = "is public IP portable across the zones")
 private Boolean isPortable;

 @SerializedName(ApiConstants.FOR_DISPLAY)
 @Param(description = "is public ip for display to the regular user", since = "4.4", authorized = {RoleType.Admin})
 private Boolean forDisplay;

 public void setIpAddress(String ipAddress) {
     this.ipAddress = ipAddress;
 }

 @Override
 public String getObjectId() {
     return this.getId();
 }

 public void setAllocated(Date allocated) {
     this.allocated = allocated;
 }

 public void setZoneId(String zoneId) {
     this.zoneId = zoneId;
 }

 public void setZoneName(String zoneName) {
     this.zoneName = zoneName;
 }

 public void setSourceNat(Boolean sourceNat) {
     this.sourceNat = sourceNat;
 }

 @Override
 public void setAccountName(String accountName) {
     this.accountName = accountName;
 }

 @Override
 public void setDomainId(String domainId) {
     this.domainId = domainId;
 }

 @Override
 public void setDomainName(String domainName) {
     this.domainName = domainName;
 }

 public void setForVirtualNetwork(Boolean forVirtualNetwork) {
     this.forVirtualNetwork = forVirtualNetwork;
 }

 public void setVlanId(String vlanId) {
     this.vlanId = vlanId;
 }

 public void setVlanName(String vlanName) {
     this.vlanName = vlanName;
 }

 public void setStaticNat(Boolean staticNat) {
     this.staticNat = staticNat;
 }

 public void setAssociatedNetworkId(String networkId) {
     this.associatedNetworkId = networkId;
 }

 public void setNetworkId(String networkId) {
     this.networkId = networkId;
 }

 public void setVirtualMachineId(String virtualMachineId) {
     this.virtualMachineId = virtualMachineId;
 }

 public void setVirtualMachineIp(String virtualMachineIp) {
     this.virtualMachineIp = virtualMachineIp;
 }

 public void setVirtualMachineName(String virtualMachineName) {
     this.virtualMachineName = virtualMachineName;
 }

 public void setVirtualMachineDisplayName(String virtualMachineDisplayName) {
     this.virtualMachineDisplayName = virtualMachineDisplayName;
 }

 public String getId() {
     return id;
 }

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

 public void setState(String state) {
     this.state = state;
 }

 @Override
 public void setProjectId(String projectId) {
     this.projectId = projectId;
 }

 @Override
 public void setProjectName(String projectName) {
     this.projectName = projectName;
 }

 public void setPhysicalNetworkId(String physicalNetworkId) {
     this.physicalNetworkId = physicalNetworkId;
 }

 public void setIsSystem(Boolean isSystem) {
     this.isSystem = isSystem;
 }

 public void setPurpose(String purpose) {
     this.purpose = purpose;
 }

 public void setVpcId(String vpcId) {
     this.vpcId = vpcId;
 }

 public void setTags(List<ResourceTagResponse> tags) {
     this.tags = tags;
 }

 public void setAssociatedNetworkName(String associatedNetworkName) {
     this.associatedNetworkName = associatedNetworkName;
 }

 public void setPortable(Boolean portable) {
     this.isPortable = portable;
 }

 public void setForDisplay(Boolean forDisplay) {
     this.forDisplay = forDisplay;
 }
}


text:
package com.sksamuel.elastic4s.requests.searches.suggestion

import java.util.UUID

trait SuggestionApi {

  @deprecated("use completionSuggestion(name, field", "7.0")
  def completionSuggestion(): CompletionSuggExpectsField             = completionSuggestion(UUID.randomUUID.toString)

  def completionSuggestion(name: String, field: String): CompletionSuggestion = CompletionSuggestion(name, field)

  @deprecated("use completionSuggestion(name, field", "7.0")
  def completionSuggestion(name: String): CompletionSuggExpectsField = new CompletionSuggExpectsField(name)
  class CompletionSuggExpectsField(name: String) {
    def on(field: String) = CompletionSuggestion(name, field)
  }

  def termSuggestion(): TermSuggExpectsField                    = termSuggestion(UUID.randomUUID.toString)
  def termSuggestion(name: String, field: String, text: String) = TermSuggestion(name, field, Some(text))

  @deprecated("use termSuggestion(name, field, text", "7.0")
  def termSuggestion(name: String): TermSuggExpectsField = new TermSuggExpectsField(name)
  class TermSuggExpectsField(name: String) {
    def on(field: String) = TermSuggestion(name, field, Some(""))
  }

  @deprecated("use phraseSuggestion(name, field", "7.0")
  def phraseSuggestion(): PhraseSuggExpectsField             = phraseSuggestion(UUID.randomUUID.toString)

  def phraseSuggestion(name: String, field: String): PhraseSuggestion = PhraseSuggestion(name, field)

  @deprecated("use phraseSuggestion(name, field", "7.0")
  def phraseSuggestion(name: String): PhraseSuggExpectsField = new PhraseSuggExpectsField(name)
  class PhraseSuggExpectsField(name: String) {
    def on(field: String) = PhraseSuggestion(name, field)
  }
}


text:
class CreateRecipes < ActiveRecord::Migration
  def change
    create_table :recipes do |t|
      t.string :name
      t.text :description
      t.integer :votes

      t.timestamps
    end
  end
end


text:
package org.apache.commons.lang3.concurrent;

import org.junit.jupiter.api.BeforeEach;

/**
 * Test class for {@code LazyInitializer}.
 */
public class LazyInitializerTest extends AbstractConcurrentInitializerTest {
    /** The initializer to be tested. */
    private LazyInitializerTestImpl initializer;

    @BeforeEach
    public void setUp() {
        initializer = new LazyInitializerTestImpl();
    }

    /**
     * Returns the initializer to be tested. This implementation returns the
     * {@code LazyInitializer} created in the {@code setUp()} method.
     *
     * @return the initializer to be tested
     */
    @Override
    protected ConcurrentInitializer<Object> createInitializer() {
        return initializer;
    }

    /**
     * A test implementation of LazyInitializer. This class creates a plain
     * Object. As Object does not provide a specific equals() method, it is easy
     * to check whether multiple instances were created.
     */
    private static class LazyInitializerTestImpl extends
            LazyInitializer<Object> {
        @Override
        protected Object initialize() {
            return new Object();
        }
    }
}


text:
package ssscs.outputter

import java.io.File
import ssscs.Article

trait Outputter {
  def output(articles: IndexedSeq[Article], dirPath: String) {
    checkOrCreateDir(dirPath) match {
      case Some(dir) => {
        outputToDir(articles, dir)
      }
      case None =>
    }
  }

  protected def checkOrCreateDir(dirPath: String): Option[File] = {
    val dir = new File(dirPath)
    if(!dir.exists) dir.mkdir()
    else if(!dir.isDirectory) {
      println(s"$dirPath is not a directory! Abort.")
      None
    }
    Some(dir)
  }

  protected def outputToDir(articles: IndexedSeq[Article], dir: File)
}


text:
<?php

namespace Kumatch\Test\KeyStore\S3;

class DriverAppendTest extends DriverWriteTest
{
    protected $methodName = "append";
    protected $append = true;
}


text:
class AutoScaling < Formula
  desc "Client interface to the Amazon Auto Scaling web service"
  homepage "https://aws.amazon.com/developertools/2535"
  url "https://ec2-downloads.s3.amazonaws.com/AutoScaling-2011-01-01.zip"
  version "1.0.61.6"
  sha256 "2c81e092d5c479896007e7d1a3cf40631d09e6bffd83b42f49a56f42207326b6"

  bottle :unneeded

  depends_on :java

  def install
    env = Language::Java.java_home_env.merge(:AWS_AUTO_SCALING_HOME => libexec)
    rm Dir["bin/*.cmd"] # Remove Windows versions
    libexec.install Dir["*"]
    Pathname.glob("#{libexec}/bin/*") do |file|
      next if file.directory?

      basename = file.basename
      next if basename.to_s == "service"

      (bin/basename).write_env_script file, env
    end
  end

  def caveats
    <<~EOS
      Before you can use these tools you must export some variables to your $SHELL.
        export AWS_ACCESS_KEY="<Your AWS Access ID>"
        export AWS_SECRET_KEY="<Your AWS Secret Key>"
        export AWS_CREDENTIAL_FILE="<Path to the credentials file>"

      See the website for more details:
      https://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/UsingTheCommandLineTools.html
    EOS
  end

  test do
    assert_match version.to_s, shell_output("#{bin}/as-version")
  end
end


text:
<!doctype html>

    <title>Getting Started Extension's Popup</title>

black

red

pink


text:
<?php
namespace MongoDB\Benchmark\Lib;
use \MongoDB\Benchmark\BSONDecoding;
use \MongoDB\Benchmark\Task;

class FlatBSONDecoding extends BSONDecoding implements Task
{
	protected $data;

	function setup()
	{
		$this->data = $this->loadFile( "data/flat_bson.json" );
	}

	function beforeTask()
	{
	}

	function doTask()
	{
		for ( $i = 0; $i < 10000; $i++ )
		{
			$decoded = \MongoDB\BSON\toPHP( $this->data );
		}
	}

	function afterTask()
	{
	}

	function tearDown()
	{
	}
}
?>


text:
<?php

use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
            new Kitpages\ChainBundle\KitpagesChainBundle(),
            new Kitpages\MobileAppBuilderBundle\KitpagesMobileAppBuilderBundle(),
        );
        return $bundles;
    }

    public function registerContainerConfiguration(LoaderInterface $loader)
    {
        $loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml');
    }
}


text:
<?xml version="1.0" encoding="utf-8"?>

    <sectioninfo>
      <title>Complex directives</title>
    </sectioninfo>

      <title><anchor ID="complex_directives"/>Complex directives</title>
      <mediaobject>
        <imageobject>
          <imagedata fileref="mylogo.jpeg"/>
        </imageobject>
        <textobject>
          <para>My Logo</para>
        </textobject>
      </mediaobject>
      <mediaobject>
        <imageobject>
          <imagedata fileref="larch.png"/>
        </imageobject>

          <para>The larch.</para>

        <textobject>
          <para>larch.png</para>
        </textobject>
      </mediaobject>
      <para/>
      <note>
        <para> This is a paragraph</para>
      </note>
      <itemizedlist>
        <listitem>
          <para>Here is a bullet list.</para>
        </listitem>
      </itemizedlist>
      <caution>
        <para> modify at your own risk!</para>
      </caution>
      <mediaobject>
        <imageobject>
          <imagedata fileref="larch.png"/>
        </imageobject>

          <para>The larch.</para>

        <textobject>
          <para>larch.png</para>
        </textobject>
      </mediaobject>
      <para/>


text:
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace iQuran.Web.UI.AdminUI {

    public partial class iVerseEdit {

        /// <summary>
        /// hdnFromWhere control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.HiddenField hdnFromWhere;

        /// <summary>
        /// hdnQuranID control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.HiddenField hdnQuranID;

        /// <summary>
        /// hdnSuraID control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.HiddenField hdnSuraID;

        /// <summary>
        /// hdnVerseID control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.HiddenField hdnVerseID;

        /// <summary>
        /// hdnOrigArabSuraID control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.HiddenField hdnOrigArabSuraID;

        /// <summary>
        /// hdnSuraOrder control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.HiddenField hdnSuraOrder;

        /// <summary>
        /// ctop1 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::mojoPortal.Web.Controls.CornerRounderTop ctop1;

        /// <summary>
        /// pnl1 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.Panel pnl1;

        /// <summary>
        /// lnkAdminMenu control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.HyperLink lnkAdminMenu;

        /// <summary>
        /// lnkAdvanced control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.HyperLink lnkAdvanced;

        /// <summary>
        /// lnkiQuranManagerAdmin control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.HyperLink lnkiQuranManagerAdmin;

        /// <summary>
        /// lnkiSuraManagerAdmin control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.HyperLink lnkiSuraManagerAdmin;

        /// <summary>
        /// lnkiVerseManagerAdmin control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.HyperLink lnkiVerseManagerAdmin;

        /// <summary>
        /// spnTitle control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.Label spnTitle;

        /// <summary>
        /// lblmessage control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.Label lblmessage;

        /// <summary>
        /// SiteLabel4 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::mojoPortal.Web.Controls.SiteLabel SiteLabel4;

        /// <summary>
        /// lbliQuranVesrion control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.Label lbliQuranVesrion;

        /// <summary>
        /// SiteLabel2 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::mojoPortal.Web.Controls.SiteLabel SiteLabel2;

        /// <summary>
        /// lbliQuranLanguage control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.Label lbliQuranLanguage;

        /// <summary>
        /// ddLang control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::iQuran.Web.UI.Controls.LanguageSetting ddLang;

        /// <summary>
        /// SiteLabel22 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::mojoPortal.Web.Controls.SiteLabel SiteLabel22;

        /// <summary>
        /// lblSuraTitle control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.Label lblSuraTitle;

        /// <summary>
        /// SiteLabel21 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::mojoPortal.Web.Controls.SiteLabel SiteLabel21;

        /// <summary>
        /// lblSuraSortOrder control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.Label lblSuraSortOrder;

        /// <summary>
        /// lblSortOrder control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::mojoPortal.Web.Controls.SiteLabel lblSortOrder;

        /// <summary>
        /// lblStar1 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::mojoPortal.Web.Controls.SiteLabel lblStar1;

        /// <summary>
        /// MojoHelpLink17 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::mojoPortal.Web.UI.mojoHelpLink MojoHelpLink17;

        /// <summary>
        /// txtVerseSortOrder control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.TextBox txtVerseSortOrder;

        /// <summary>
        /// RequiredFieldValidator1 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator1;

        /// <summary>
        /// RangeValidator1 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.RangeValidator RangeValidator1;

        /// <summary>
        /// divArabicFields control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.HtmlControls.HtmlGenericControl divArabicFields;

        /// <summary>
        /// SiteLabel13 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::mojoPortal.Web.Controls.SiteLabel SiteLabel13;

        /// <summary>
        /// SiteLabel14 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::mojoPortal.Web.Controls.SiteLabel SiteLabel14;

        /// <summary>
        /// ddHalfNo control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.DropDownList ddHalfNo;

        /// <summary>
        /// RequiredFieldValidator3 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator3;

        /// <summary>
        /// SiteLabel15 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::mojoPortal.Web.Controls.SiteLabel SiteLabel15;

        /// <summary>
        /// SiteLabel16 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::mojoPortal.Web.Controls.SiteLabel SiteLabel16;

        /// <summary>
        /// txtPartNo control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.TextBox txtPartNo;

        /// <summary>
        /// RequiredFieldValidator4 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator4;

        /// <summary>
        /// RangeValidator3 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.RangeValidator RangeValidator3;

        /// <summary>
        /// SiteLabel17 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::mojoPortal.Web.Controls.SiteLabel SiteLabel17;

        /// <summary>
        /// SiteLabel18 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::mojoPortal.Web.Controls.SiteLabel SiteLabel18;

        /// <summary>
        /// txtHizbNo control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.TextBox txtHizbNo;

        /// <summary>
        /// RequiredFieldValidator5 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator5;

        /// <summary>
        /// RangeValidator4 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.RangeValidator RangeValidator4;

        /// <summary>
        /// SiteLabel5 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::mojoPortal.Web.Controls.SiteLabel SiteLabel5;

        /// <summary>
        /// SiteLabel6 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::mojoPortal.Web.Controls.SiteLabel SiteLabel6;

        /// <summary>
        /// txtQuraterNo control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.TextBox txtQuraterNo;

        /// <summary>
        /// RequiredFieldValidator2 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator2;

        /// <summary>
        /// RangeValidator2 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.RangeValidator RangeValidator2;

        /// <summary>
        /// SiteLabel19 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::mojoPortal.Web.Controls.SiteLabel SiteLabel19;

        /// <summary>
        /// SiteLabel20 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::mojoPortal.Web.Controls.SiteLabel SiteLabel20;

        /// <summary>
        /// ddPlace control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.DropDownList ddPlace;

        /// <summary>
        /// RequiredFieldValidator6 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator6;

        /// <summary>
        /// lblActiveHeader control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::mojoPortal.Web.Controls.SiteLabel lblActiveHeader;

        /// <summary>
        /// cbIsActive control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.CheckBox cbIsActive;

        /// <summary>
        /// divOthmani control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.HtmlControls.HtmlGenericControl divOthmani;

        /// <summary>
        /// SiteLabel7 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::mojoPortal.Web.Controls.SiteLabel SiteLabel7;

        /// <summary>
        /// SiteLabel12 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::mojoPortal.Web.Controls.SiteLabel SiteLabel12;

        /// <summary>
        /// edOthmaniText control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::mojoPortal.Web.UI.mojoTextArea edOthmaniText;

        /// <summary>
        /// SiteLabel8 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::mojoPortal.Web.Controls.SiteLabel SiteLabel8;

        /// <summary>
        /// SiteLabel11 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::mojoPortal.Web.Controls.SiteLabel SiteLabel11;

        /// <summary>
        /// edVerseTextNM control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::mojoPortal.Web.UI.mojoTextArea edVerseTextNM;

        /// <summary>
        /// SiteLabel9 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::mojoPortal.Web.Controls.SiteLabel SiteLabel9;

        /// <summary>
        /// SiteLabel10 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::mojoPortal.Web.Controls.SiteLabel SiteLabel10;

        /// <summary>
        /// edVerseTextNMAlif control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::mojoPortal.Web.UI.mojoTextArea edVerseTextNMAlif;

        /// <summary>
        /// divTranslation control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.HtmlControls.HtmlGenericControl divTranslation;

        /// <summary>
        /// lblTranslation control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::mojoPortal.Web.Controls.SiteLabel lblTranslation;

        /// <summary>
        /// SiteLabel3 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::mojoPortal.Web.Controls.SiteLabel SiteLabel3;

        /// <summary>
        /// edTranslation control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::mojoPortal.Web.UI.mojoTextArea edTranslation;

        /// <summary>
        /// SiteLabel1 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::mojoPortal.Web.Controls.SiteLabel SiteLabel1;

        /// <summary>
        /// btnSave control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::mojoPortal.Web.UI.mojoButton btnSave;

        /// <summary>
        /// lnkCancel control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.HyperLink lnkCancel;

        /// <summary>
        /// cbottom1 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::mojoPortal.Web.Controls.CornerRounderBottom cbottom1;
    }
}


text:
Ember-intl provide several template helpers for formatting and translating.

## Helper Options

All helpers accept optional arguments:
* `locale` argument to explicitly pass/override the application locale
* `format` argument which you pass in a key corresponding to a format configuration in `app/formats.js`