text:
<?php
include('db.php');
session_start();
$firstname="";
$lastname="";
$password="";
$dob="";
$mob="";
$username=$_SESSION['sid'];
  $firstname = $_POST['first_name'];
  $lastname = $_POST['last_name'];
  $password = $_POST['password'];

 $sql="UPDATE `customer` SET `first_name`='$firstname',`last_name`='$lastname',`mob`='$mob',`pass`='$password' WHERE email='$username'";
 if($result=$conn->query($sql))
  {
  echo "details updated successfully!";
  }
  else
	  echo "problem updating details";
  ?>

  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no"/>
<title>I-Loan</title>

  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
  <link href="css/materialize.css" type="text/css" rel="stylesheet" media="screen,projection"/>
  <link href="css/style.css" type="text/css" rel="stylesheet" media="screen,projection"/>

	      Return Home


text:
@interface NetflixMostPopularViewController : AbstractTableViewController {
@private
  NSDictionary* titleToCount;
}

@end

redpajama_set_name: RedPajamaGithub


text:
package qadahtm

import scala.xml._
import spray.json.DefaultJsonProtocol._
import spray.json.JsValue
import spray.json.JsObject
import spray.json.JsString
import spray.json.JsonFormat
import spray.json.JsNumber
import spray.json.JsArray
import java.io.PrintWriter
import java.io.File

object OSMXMLProcessor {

implicit object NodeFormat extends JsonFormat[Node] {
  def write(node: Node) =

    if (node.child.count(_.isInstanceOf[Text]) == 1)
      JsString(node.text)
    else
      JsObject(node.child.collect {
        case e: Elem => e.label -> write(e)
      }: _*)

    def read(jsValue: JsValue) = null // not implemented
  }

import NodeFormat._

   def main(args: Array[String]): Unit = {
     val in_path = args(0)
     val out_path = args(0)+".out"

     val osm = XML.loadFile(in_path)
     val out = new PrintWriter(new File(out_path))
     val nodes = (osm \\ "node")

// <node lon="-86.1516702" lat="39.7719723" uid="701297" user="erjiang" timestamp="2014-12-02T18:19:04Z" changeset="27185445" version="1" visible="true" id="3216144733">
//  <tag v="Marsh" k="name"/>
//  <tag v="supermarket" k="shop"/>
// </node>

     val fnodes = nodes.flatMap { n => {
       val tags = (n \ "tag")
       if (tags.size > 1){
        val id = JsString(n.attribute("id").get.head.toString())
        val lng = JsNumber(n.attribute("lon").get.head.toString().toDouble)
        val lat = JsNumber(n.attribute("lat").get.head.toString())
        val timestamp = JsString(n.attribute("timestamp").get.head.toString())
        val atags = tags.map { t => {
          val k = t.attribute("k").get.head.toString()
          val v = t.attribute("v").get.head.toString()
          JsObject("k" -> JsString(k), "v" -> JsString(v))
        } }
        val res = JsObject("nid" -> id, "lng" -> lng, "lat" -> lat, "ts" -> timestamp, "tags" -> JsArray(atags.toVector))
        out.println(res)
        println(res)
        Some(res)
       }
       else None
     }}

//     val jnodes = fnodes.map(NodeFormat.write(_).toString())
//     fnodes.foreach { println(_) }

     println("found "+fnodes.size+" with multiple tags from "+nodes.size)

   }

  def attributeEquals(name: String, value: String)(node: Node) : Boolean =
  {
      node.attribute(name).filter(_==value).isDefined
  }

}

object OSMGPXProcessor {

  def main(args:Array[String]) : Unit = {
     val in_path = args(0)
     val out_path = args(0)+".out"

     val public = new File(in_path+"/public")

     val gpxfiles = public.listFiles().filter { _.isDirectory() }.flatMap { _.listFiles().filter { _.isDirectory() }.flatMap { _.listFiles() } }

     gpxfiles.foreach { f => {
         val osm = XML.loadFile(f)
//         val out = new PrintWriter(new File(out_path))
         val nodes = (osm \\ "trkpt").foreach { t => {
           val lng = t.attribute("lon").get.head.toString()
           val lat = t.attribute("lat").get.head.toString()
           println(Array(lat,lng).mkString(","))
         } }

     } }

//     val osm = XML.loadFile(in_path)
//     val out = new PrintWriter(new File(out_path))
//     val nodes = (osm \\ "node")

  }

}


text:
class CreateJoinings < ActiveRecord::Migration
  def change
    create_table :joinings do |t|
      t.references :user, index: true
      t.references :community, index: true
      t.references :role, index: true
      t.text :comment

      t.timestamps
    end
  end
end


text:
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
// an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
// specific language governing permissions and limitations under the License.

//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by google-apis-code-generator 1.5.1
//     C# generator version: 1.14.1
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

/**
 * \brief
 *   Prediction API Version v1.6
 *
 * \section ApiInfo API Version Information
 *

 *
API
 *          Prediction API
 *
API Versionv1.6
 *
API Rev20160511 (496)
 *
API Docs
 *
 *              https://developers.google.com/prediction/docs/developer-guide
 *
Discovery Nameprediction
 *

 *
 * \section ForMoreInfo For More Information
 *
 * The complete API documentation for using Prediction API can be found at
 * https://developers.google.com/prediction/docs/developer-guide.
 *
 * For more information about the Google APIs Client Library for .NET, see
 *
 * https://developers.google.com/api-client-library/dotnet/get_started
 */

namespace Google.Apis.Prediction.v1_6
{
    /// The Prediction Service.
    public class PredictionService : Google.Apis.Services.BaseClientService
    {
        /// The API version.
        public const string Version = "v1.6";

        /// The discovery version used to generate this service.
        public static Google.Apis.Discovery.DiscoveryVersion DiscoveryVersionUsed =
            Google.Apis.Discovery.DiscoveryVersion.Version_1_0;

        /// Constructs a new service.
        public PredictionService() :
            this(new Google.Apis.Services.BaseClientService.Initializer()) {}

        /// Constructs a new service.
        /// <param name="initializer">The service initializer.</param>
        public PredictionService(Google.Apis.Services.BaseClientService.Initializer initializer)
            : base(initializer)
        {
            hostedmodels = new HostedmodelsResource(this);
            trainedmodels = new TrainedmodelsResource(this);
        }

        /// Gets the service supported features.
        public override System.Collections.Generic.IList<string> Features
        {
            get { return new string[0]; }
        }

        /// Gets the service name.
        public override string Name
        {
            get { return "prediction"; }
        }

        /// Gets the service base URI.
        public override string BaseUri
        {
            get { return "https://www.googleapis.com/prediction/v1.6/projects/"; }
        }

        /// Gets the service base path.
        public override string BasePath
        {
            get { return "prediction/v1.6/projects/"; }
        }

        /// Available OAuth 2.0 scopes for use with the Prediction API.
        public class Scope
        {
            /// View and manage your data across Google Cloud Platform services
            public static string CloudPlatform = "https://www.googleapis.com/auth/cloud-platform";

            /// Manage your data and permissions in Google Cloud Storage
            public static string DevstorageFullControl = "https://www.googleapis.com/auth/devstorage.full_control";

            /// View your data in Google Cloud Storage
            public static string DevstorageReadOnly = "https://www.googleapis.com/auth/devstorage.read_only";

            /// Manage your data in Google Cloud Storage
            public static string DevstorageReadWrite = "https://www.googleapis.com/auth/devstorage.read_write";

            /// Manage your data in the Google Prediction API
            public static string Prediction = "https://www.googleapis.com/auth/prediction";

        }

        private readonly HostedmodelsResource hostedmodels;

        /// Gets the Hostedmodels resource.
        public virtual HostedmodelsResource Hostedmodels
        {
            get { return hostedmodels; }
        }

        private readonly TrainedmodelsResource trainedmodels;

        /// Gets the Trainedmodels resource.
        public virtual TrainedmodelsResource Trainedmodels
        {
            get { return trainedmodels; }
        }
    }

    ///A base abstract class for Prediction requests.
    public abstract class PredictionBaseServiceRequest<TResponse> : Google.Apis.Requests.ClientServiceRequest<TResponse>
    {
        ///Constructs a new PredictionBaseServiceRequest instance.
        protected PredictionBaseServiceRequest(Google.Apis.Services.IClientService service)
            : base(service)
        {
        }

        /// Data format for the response.
        /// [default: json]
        [Google.Apis.Util.RequestParameterAttribute("alt", Google.Apis.Util.RequestParameterType.Query)]
        public virtual System.Nullable<AltEnum> Alt { get; set; }

        /// Data format for the response.
        public enum AltEnum
        {
            /// Responses with Content-Type of application/json
            [Google.Apis.Util.StringValueAttribute("json")]
            Json,
        }

        /// Selector specifying which fields to include in a partial response.
        [Google.Apis.Util.RequestParameterAttribute("fields", Google.Apis.Util.RequestParameterType.Query)]
        public virtual string Fields { get; set; }

        /// API key. Your API key identifies your project and provides you with API access, quota, and reports.
        /// Required unless you provide an OAuth 2.0 token.
        [Google.Apis.Util.RequestParameterAttribute("key", Google.Apis.Util.RequestParameterType.Query)]
        public virtual string Key { get; set; }

        /// OAuth 2.0 token for the current user.
        [Google.Apis.Util.RequestParameterAttribute("oauth_token", Google.Apis.Util.RequestParameterType.Query)]
        public virtual string OauthToken { get; set; }

        /// Returns response with indentations and line breaks.
        /// [default: true]
        [Google.Apis.Util.RequestParameterAttribute("prettyPrint", Google.Apis.Util.RequestParameterType.Query)]
        public virtual System.Nullable<bool> PrettyPrint { get; set; }

        /// Available to use for quota purposes for server-side applications. Can be any arbitrary string
        /// assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
        [Google.Apis.Util.RequestParameterAttribute("quotaUser", Google.Apis.Util.RequestParameterType.Query)]
        public virtual string QuotaUser { get; set; }

        /// IP address of the site where the request originates. Use this if you want to enforce per-user
        /// limits.
        [Google.Apis.Util.RequestParameterAttribute("userIp", Google.Apis.Util.RequestParameterType.Query)]
        public virtual string UserIp { get; set; }

        /// Initializes Prediction parameter list.
        protected override void InitParameters()
        {
            base.InitParameters();

            RequestParameters.Add(
                "alt", new Google.Apis.Discovery.Parameter
                {
                    Name = "alt",
                    IsRequired = false,
                    ParameterType = "query",
                    DefaultValue = "json",
                    Pattern = null,
                });
            RequestParameters.Add(
                "fields", new Google.Apis.Discovery.Parameter
                {
                    Name = "fields",
                    IsRequired = false,
                    ParameterType = "query",
                    DefaultValue = null,
                    Pattern = null,
                });
            RequestParameters.Add(
                "key", new Google.Apis.Discovery.Parameter
                {
                    Name = "key",
                    IsRequired = false,
                    ParameterType = "query",
                    DefaultValue = null,
                    Pattern = null,
                });
            RequestParameters.Add(
                "oauth_token", new Google.Apis.Discovery.Parameter
                {
                    Name = "oauth_token",
                    IsRequired = false,
                    ParameterType = "query",
                    DefaultValue = null,
                    Pattern = null,
                });
            RequestParameters.Add(
                "prettyPrint", new Google.Apis.Discovery.Parameter
                {
                    Name = "prettyPrint",
                    IsRequired = false,
                    ParameterType = "query",
                    DefaultValue = "true",
                    Pattern = null,
                });
            RequestParameters.Add(
                "quotaUser", new Google.Apis.Discovery.Parameter
                {
                    Name = "quotaUser",
                    IsRequired = false,
                    ParameterType = "query",
                    DefaultValue = null,
                    Pattern = null,
                });
            RequestParameters.Add(
                "userIp", new Google.Apis.Discovery.Parameter
                {
                    Name = "userIp",
                    IsRequired = false,
                    ParameterType = "query",
                    DefaultValue = null,
                    Pattern = null,
                });
        }
    }

    /// The "hostedmodels" collection of methods.
    public class HostedmodelsResource
    {
        private const string Resource = "hostedmodels";

        /// The service which this resource belongs to.
        private readonly Google.Apis.Services.IClientService service;

        /// Constructs a new resource.
        public HostedmodelsResource(Google.Apis.Services.IClientService service)
        {
            this.service = service;

        }

        /// Submit input and request an output against a hosted model.
        /// <param name="body">The body of the request.</param>
        /// <param name="project">The project associated with the model.</param>
        /// <param name="hostedModelName">The name
        /// of a hosted model.</param>
        public virtual PredictRequest Predict(Google.Apis.Prediction.v1_6.Data.Input body, string project, string hostedModelName)
        {
            return new PredictRequest(service, body, project, hostedModelName);
        }

        /// Submit input and request an output against a hosted model.
        public class PredictRequest : PredictionBaseServiceRequest<Google.Apis.Prediction.v1_6.Data.Output>
        {
            /// Constructs a new Predict request.
            public PredictRequest(Google.Apis.Services.IClientService service, Google.Apis.Prediction.v1_6.Data.Input body, string project, string hostedModelName)
                : base(service)
            {
                Project = project;
                HostedModelName = hostedModelName;
                Body = body;
                InitParameters();
            }

            /// The project associated with the model.
            [Google.Apis.Util.RequestParameterAttribute("project", Google.Apis.Util.RequestParameterType.Path)]
            public virtual string Project { get; private set; }

            /// The name of a hosted model.
            [Google.Apis.Util.RequestParameterAttribute("hostedModelName", Google.Apis.Util.RequestParameterType.Path)]
            public virtual string HostedModelName { get; private set; }

            /// Gets or sets the body of this request.
            Google.Apis.Prediction.v1_6.Data.Input Body { get; set; }

            ///Returns the body of the request.
            protected override object GetBody() { return Body; }

            ///Gets the method name.
            public override string MethodName
            {
                get { return "predict"; }
            }

            ///Gets the HTTP method.
            public override string HttpMethod
            {
                get { return "POST"; }
            }

            ///Gets the REST path.
            public override string RestPath
            {
                get { return "{project}/hostedmodels/{hostedModelName}/predict"; }
            }

            /// Initializes Predict parameter list.
            protected override void InitParameters()
            {
                base.InitParameters();

                RequestParameters.Add(
                    "project", new Google.Apis.Discovery.Parameter
                    {
                        Name = "project",
                        IsRequired = true,
                        ParameterType = "path",
                        DefaultValue = null,
                        Pattern = null,
                    });
                RequestParameters.Add(
                    "hostedModelName", new Google.Apis.Discovery.Parameter
                    {
                        Name = "hostedModelName",
                        IsRequired = true,
                        ParameterType = "path",
                        DefaultValue = null,
                        Pattern = null,
                    });
            }

        }
    }

    /// The "trainedmodels" collection of methods.
    public class TrainedmodelsResource
    {
        private const string Resource = "trainedmodels";

        /// The service which this resource belongs to.
        private readonly Google.Apis.Services.IClientService service;

        /// Constructs a new resource.
        public TrainedmodelsResource(Google.Apis.Services.IClientService service)
        {
            this.service = service;

        }

        /// Get analysis of the model and the data the model was trained on.
        /// <param name="project">The project associated with the model.</param>
        /// <param name="id">The unique name for
        /// the predictive model.</param>
        public virtual AnalyzeRequest Analyze(string project, string id)
        {
            return new AnalyzeRequest(service, project, id);
        }

        /// Get analysis of the model and the data the model was trained on.
        public class AnalyzeRequest : PredictionBaseServiceRequest<Google.Apis.Prediction.v1_6.Data.Analyze>
        {
            /// Constructs a new Analyze request.
            public AnalyzeRequest(Google.Apis.Services.IClientService service, string project, string id)
                : base(service)
            {
                Project = project;
                Id = id;
                InitParameters();
            }

            /// The project associated with the model.
            [Google.Apis.Util.RequestParameterAttribute("project", Google.Apis.Util.RequestParameterType.Path)]
            public virtual string Project { get; private set; }

            /// The unique name for the predictive model.
            [Google.Apis.Util.RequestParameterAttribute("id", Google.Apis.Util.RequestParameterType.Path)]
            public virtual string Id { get; private set; }

            ///Gets the method name.
            public override string MethodName
            {
                get { return "analyze"; }
            }

            ///Gets the HTTP method.
            public override string HttpMethod
            {
                get { return "GET"; }
            }

            ///Gets the REST path.
            public override string RestPath
            {
                get { return "{project}/trainedmodels/{id}/analyze"; }
            }

            /// Initializes Analyze parameter list.
            protected override void InitParameters()
            {
                base.InitParameters();

                RequestParameters.Add(
                    "project", new Google.Apis.Discovery.Parameter
                    {
                        Name = "project",
                        IsRequired = true,
                        ParameterType = "path",
                        DefaultValue = null,
                        Pattern = null,
                    });
                RequestParameters.Add(
                    "id", new Google.Apis.Discovery.Parameter
                    {
                        Name = "id",
                        IsRequired = true,
                        ParameterType = "path",
                        DefaultValue = null,
                        Pattern = null,
                    });
            }

        }

        /// Delete a trained model.
        /// <param name="project">The project associated with the model.</param>
        /// <param name="id">The unique name for
        /// the predictive model.</param>
        public virtual DeleteRequest Delete(string project, string id)
        {
            return new DeleteRequest(service, project, id);
        }

        /// Delete a trained model.
        public class DeleteRequest : PredictionBaseServiceRequest<string>
        {
            /// Constructs a new Delete request.
            public DeleteRequest(Google.Apis.Services.IClientService service, string project, string id)
                : base(service)
            {
                Project = project;
                Id = id;
                InitParameters();
            }

            /// The project associated with the model.
            [Google.Apis.Util.RequestParameterAttribute("project", Google.Apis.Util.RequestParameterType.Path)]
            public virtual string Project { get; private set; }

            /// The unique name for the predictive model.
            [Google.Apis.Util.RequestParameterAttribute("id", Google.Apis.Util.RequestParameterType.Path)]
            public virtual string Id { get; private set; }

            ///Gets the method name.
            public override string MethodName
            {
                get { return "delete"; }
            }

            ///Gets the HTTP method.
            public override string HttpMethod
            {
                get { return "DELETE"; }
            }

            ///Gets the REST path.
            public override string RestPath
            {
                get { return "{project}/trainedmodels/{id}"; }
            }

            /// Initializes Delete parameter list.
            protected override void InitParameters()
            {
                base.InitParameters();

                RequestParameters.Add(
                    "project", new Google.Apis.Discovery.Parameter
                    {
                        Name = "project",
                        IsRequired = true,
                        ParameterType = "path",
                        DefaultValue = null,
                        Pattern = null,
                    });
                RequestParameters.Add(
                    "id", new Google.Apis.Discovery.Parameter
                    {
                        Name = "id",
                        IsRequired = true,
                        ParameterType = "path",
                        DefaultValue = null,
                        Pattern = null,
                    });
            }

        }

        /// Check training status of your model.
        /// <param name="project">The project associated with the model.</param>
        /// <param name="id">The unique name for
        /// the predictive model.</param>
        public virtual GetRequest Get(string project, string id)
        {
            return new GetRequest(service, project, id);
        }

        /// Check training status of your model.
        public class GetRequest : PredictionBaseServiceRequest<Google.Apis.Prediction.v1_6.Data.Insert2>
        {
            /// Constructs a new Get request.
            public GetRequest(Google.Apis.Services.IClientService service, string project, string id)
                : base(service)
            {
                Project = project;
                Id = id;
                InitParameters();
            }

            /// The project associated with the model.
            [Google.Apis.Util.RequestParameterAttribute("project", Google.Apis.Util.RequestParameterType.Path)]
            public virtual string Project { get; private set; }

            /// The unique name for the predictive model.
            [Google.Apis.Util.RequestParameterAttribute("id", Google.Apis.Util.RequestParameterType.Path)]
            public virtual string Id { get; private set; }

            ///Gets the method name.
            public override string MethodName
            {
                get { return "get"; }
            }

            ///Gets the HTTP method.
            public override string HttpMethod
            {
                get { return "GET"; }
            }

            ///Gets the REST path.
            public override string RestPath
            {
                get { return "{project}/trainedmodels/{id}"; }
            }

            /// Initializes Get parameter list.
            protected override void InitParameters()
            {
                base.InitParameters();

                RequestParameters.Add(
                    "project", new Google.Apis.Discovery.Parameter
                    {
                        Name = "project",
                        IsRequired = true,
                        ParameterType = "path",
                        DefaultValue = null,
                        Pattern = null,
                    });
                RequestParameters.Add(
                    "id", new Google.Apis.Discovery.Parameter
                    {
                        Name = "id",
                        IsRequired = true,
                        ParameterType = "path",
                        DefaultValue = null,
                        Pattern = null,
                    });
            }

        }

        /// Train a Prediction API model.
        /// <param name="body">The body of the request.</param>
        /// <param name="project">The project associated with the model.</param>
        public virtual InsertRequest Insert(Google.Apis.Prediction.v1_6.Data.Insert body, string project)
        {
            return new InsertRequest(service, body, project);
        }

        /// Train a Prediction API model.
        public class InsertRequest : PredictionBaseServiceRequest<Google.Apis.Prediction.v1_6.Data.Insert2>
        {
            /// Constructs a new Insert request.
            public InsertRequest(Google.Apis.Services.IClientService service, Google.Apis.Prediction.v1_6.Data.Insert body, string project)
                : base(service)
            {
                Project = project;
                Body = body;
                InitParameters();
            }

            /// The project associated with the model.
            [Google.Apis.Util.RequestParameterAttribute("project", Google.Apis.Util.RequestParameterType.Path)]
            public virtual string Project { get; private set; }

            /// Gets or sets the body of this request.
            Google.Apis.Prediction.v1_6.Data.Insert Body { get; set; }

            ///Returns the body of the request.
            protected override object GetBody() { return Body; }

            ///Gets the method name.
            public override string MethodName
            {
                get { return "insert"; }
            }

            ///Gets the HTTP method.
            public override string HttpMethod
            {
                get { return "POST"; }
            }

            ///Gets the REST path.
            public override string RestPath
            {
                get { return "{project}/trainedmodels"; }
            }

            /// Initializes Insert parameter list.
            protected override void InitParameters()
            {
                base.InitParameters();

                RequestParameters.Add(
                    "project", new Google.Apis.Discovery.Parameter
                    {
                        Name = "project",
                        IsRequired = true,
                        ParameterType = "path",
                        DefaultValue = null,
                        Pattern = null,
                    });
            }

        }

        /// List available models.
        /// <param name="project">The project associated with the model.</param>
        public virtual ListRequest List(string project)
        {
            return new ListRequest(service, project);
        }

        /// List available models.
        public class ListRequest : PredictionBaseServiceRequest<Google.Apis.Prediction.v1_6.Data.List>
        {
            /// Constructs a new List request.
            public ListRequest(Google.Apis.Services.IClientService service, string project)
                : base(service)
            {
                Project = project;
                InitParameters();
            }

            /// The project associated with the model.
            [Google.Apis.Util.RequestParameterAttribute("project", Google.Apis.Util.RequestParameterType.Path)]
            public virtual string Project { get; private set; }

            /// Maximum number of results to return.
            /// [minimum: 0]
            [Google.Apis.Util.RequestParameterAttribute("maxResults", Google.Apis.Util.RequestParameterType.Query)]
            public virtual System.Nullable<long> MaxResults { get; set; }

            /// Pagination token.
            [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)]
            public virtual string PageToken { get; set; }

            ///Gets the method name.
            public override string MethodName
            {
                get { return "list"; }
            }

            ///Gets the HTTP method.
            public override string HttpMethod
            {
                get { return "GET"; }
            }

            ///Gets the REST path.
            public override string RestPath
            {
                get { return "{project}/trainedmodels/list"; }
            }

            /// Initializes List parameter list.
            protected override void InitParameters()
            {
                base.InitParameters();

                RequestParameters.Add(
                    "project", new Google.Apis.Discovery.Parameter
                    {
                        Name = "project",
                        IsRequired = true,
                        ParameterType = "path",
                        DefaultValue = null,
                        Pattern = null,
                    });
                RequestParameters.Add(
                    "maxResults", new Google.Apis.Discovery.Parameter
                    {
                        Name = "maxResults",
                        IsRequired = false,
                        ParameterType = "query",
                        DefaultValue = null,
                        Pattern = null,
                    });
                RequestParameters.Add(
                    "pageToken", new Google.Apis.Discovery.Parameter
                    {
                        Name = "pageToken",
                        IsRequired = false,
                        ParameterType = "query",
                        DefaultValue = null,
                        Pattern = null,
                    });
            }

        }

        /// Submit model id and request a prediction.
        /// <param name="body">The body of the request.</param>
        /// <param name="project">The project associated with the model.</param>
        /// <param name="id">The unique name for
        /// the predictive model.</param>
        public virtual PredictRequest Predict(Google.Apis.Prediction.v1_6.Data.Input body, string project, string id)
        {
            return new PredictRequest(service, body, project, id);
        }

        /// Submit model id and request a prediction.
        public class PredictRequest : PredictionBaseServiceRequest<Google.Apis.Prediction.v1_6.Data.Output>
        {
            /// Constructs a new Predict request.
            public PredictRequest(Google.Apis.Services.IClientService service, Google.Apis.Prediction.v1_6.Data.Input body, string project, string id)
                : base(service)
            {
                Project = project;
                Id = id;
                Body = body;
                InitParameters();
            }

            /// The project associated with the model.
            [Google.Apis.Util.RequestParameterAttribute("project", Google.Apis.Util.RequestParameterType.Path)]
            public virtual string Project { get; private set; }

            /// The unique name for the predictive model.
            [Google.Apis.Util.RequestParameterAttribute("id", Google.Apis.Util.RequestParameterType.Path)]
            public virtual string Id { get; private set; }

            /// Gets or sets the body of this request.
            Google.Apis.Prediction.v1_6.Data.Input Body { get; set; }

            ///Returns the body of the request.
            protected override object GetBody() { return Body; }

            ///Gets the method name.
            public override string MethodName
            {
                get { return "predict"; }
            }

            ///Gets the HTTP method.
            public override string HttpMethod
            {
                get { return "POST"; }
            }

            ///Gets the REST path.
            public override string RestPath
            {
                get { return "{project}/trainedmodels/{id}/predict"; }
            }

            /// Initializes Predict parameter list.
            protected override void InitParameters()
            {
                base.InitParameters();

                RequestParameters.Add(
                    "project", new Google.Apis.Discovery.Parameter
                    {
                        Name = "project",
                        IsRequired = true,
                        ParameterType = "path",
                        DefaultValue = null,
                        Pattern = null,
                    });
                RequestParameters.Add(
                    "id", new Google.Apis.Discovery.Parameter
                    {
                        Name = "id",
                        IsRequired = true,
                        ParameterType = "path",
                        DefaultValue = null,
                        Pattern = null,
                    });
            }

        }

        /// Add new data to a trained model.
        /// <param name="body">The body of the request.</param>
        /// <param name="project">The project associated with the model.</param>
        /// <param name="id">The unique name for
        /// the predictive model.</param>
        public virtual UpdateRequest Update(Google.Apis.Prediction.v1_6.Data.Update body, string project, string id)
        {
            return new UpdateRequest(service, body, project, id);
        }

        /// Add new data to a trained model.
        public class UpdateRequest : PredictionBaseServiceRequest<Google.Apis.Prediction.v1_6.Data.Insert2>
        {
            /// Constructs a new Update request.
            public UpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.Prediction.v1_6.Data.Update body, string project, string id)
                : base(service)
            {
                Project = project;
                Id = id;
                Body = body;
                InitParameters();
            }

            /// The project associated with the model.
            [Google.Apis.Util.RequestParameterAttribute("project", Google.Apis.Util.RequestParameterType.Path)]
            public virtual string Project { get; private set; }

            /// The unique name for the predictive model.
            [Google.Apis.Util.RequestParameterAttribute("id", Google.Apis.Util.RequestParameterType.Path)]
            public virtual string Id { get; private set; }

            /// Gets or sets the body of this request.
            Google.Apis.Prediction.v1_6.Data.Update Body { get; set; }

            ///Returns the body of the request.
            protected override object GetBody() { return Body; }

            ///Gets the method name.
            public override string MethodName
            {
                get { return "update"; }
            }

            ///Gets the HTTP method.
            public override string HttpMethod
            {
                get { return "PUT"; }
            }

            ///Gets the REST path.
            public override string RestPath
            {
                get { return "{project}/trainedmodels/{id}"; }
            }

            /// Initializes Update parameter list.
            protected override void InitParameters()
            {
                base.InitParameters();

                RequestParameters.Add(
                    "project", new Google.Apis.Discovery.Parameter
                    {
                        Name = "project",
                        IsRequired = true,
                        ParameterType = "path",
                        DefaultValue = null,
                        Pattern = null,
                    });
                RequestParameters.Add(
                    "id", new Google.Apis.Discovery.Parameter
                    {
                        Name = "id",
                        IsRequired = true,
                        ParameterType = "path",
                        DefaultValue = null,
                        Pattern = null,
                    });
            }

        }
    }
}

namespace Google.Apis.Prediction.v1_6.Data
{

    public class Analyze : Google.Apis.Requests.IDirectResponseSchema
    {
        /// Description of the data the model was trained on.
        [Newtonsoft.Json.JsonPropertyAttribute("dataDescription")]
        public virtual Analyze.DataDescriptionData DataDescription { get; set; }

        /// List of errors with the data.
        [Newtonsoft.Json.JsonPropertyAttribute("errors")]
        public virtual System.Collections.Generic.IList<System.Collections.Generic.IDictionary<string,string>> Errors { get; set; }

        /// The unique name for the predictive model.
        [Newtonsoft.Json.JsonPropertyAttribute("id")]
        public virtual string Id { get; set; }

        /// What kind of resource this is.
        [Newtonsoft.Json.JsonPropertyAttribute("kind")]
        public virtual string Kind { get; set; }

        /// Description of the model.
        [Newtonsoft.Json.JsonPropertyAttribute("modelDescription")]
        public virtual Analyze.ModelDescriptionData ModelDescription { get; set; }

        /// A URL to re-request this resource.
        [Newtonsoft.Json.JsonPropertyAttribute("selfLink")]
        public virtual string SelfLink { get; set; }

        /// The ETag of the item.
        public virtual string ETag { get; set; }

        /// Description of the data the model was trained on.
        public class DataDescriptionData
        {
            /// Description of the input features in the data set.
            [Newtonsoft.Json.JsonPropertyAttribute("features")]
            public virtual System.Collections.Generic.IList<DataDescriptionData.FeaturesData> Features { get; set; }

            /// Description of the output value or label.
            [Newtonsoft.Json.JsonPropertyAttribute("outputFeature")]
            public virtual DataDescriptionData.OutputFeatureData OutputFeature { get; set; }

            public class FeaturesData
            {
                /// Description of the categorical values of this feature.
                [Newtonsoft.Json.JsonPropertyAttribute("categorical")]
                public virtual FeaturesData.CategoricalData Categorical { get; set; }

                /// The feature index.
                [Newtonsoft.Json.JsonPropertyAttribute("index")]
                public virtual System.Nullable<long> Index { get; set; }

                /// Description of the numeric values of this feature.
                [Newtonsoft.Json.JsonPropertyAttribute("numeric")]
                public virtual FeaturesData.NumericData Numeric { get; set; }

                /// Description of multiple-word text values of this feature.
                [Newtonsoft.Json.JsonPropertyAttribute("text")]
                public virtual FeaturesData.TextData Text { get; set; }

                /// Description of the categorical values of this feature.
                public class CategoricalData
                {
                    /// Number of categorical values for this feature in the data.
                    [Newtonsoft.Json.JsonPropertyAttribute("count")]
                    public virtual System.Nullable<long> Count { get; set; }

                    /// List of all the categories for this feature in the data set.
                    [Newtonsoft.Json.JsonPropertyAttribute("values")]
                    public virtual System.Collections.Generic.IList<CategoricalData.ValuesData> Values { get; set; }

                    public class ValuesData
                    {
                        /// Number of times this feature had this value.
                        [Newtonsoft.Json.JsonPropertyAttribute("count")]
                        public virtual System.Nullable<long> Count { get; set; }

                        /// The category name.
                        [Newtonsoft.Json.JsonPropertyAttribute("value")]
                        public virtual string Value { get; set; }

                    }
                }

                /// Description of the numeric values of this feature.
                public class NumericData
                {
                    /// Number of numeric values for this feature in the data set.
                    [Newtonsoft.Json.JsonPropertyAttribute("count")]
                    public virtual System.Nullable<long> Count { get; set; }

                    /// Mean of the numeric values of this feature in the data set.
                    [Newtonsoft.Json.JsonPropertyAttribute("mean")]
                    public virtual string Mean { get; set; }

                    /// Variance of the numeric values of this feature in the data set.
                    [Newtonsoft.Json.JsonPropertyAttribute("variance")]
                    public virtual string Variance { get; set; }

                }

                /// Description of multiple-word text values of this feature.
                public class TextData
                {
                    /// Number of multiple-word text values for this feature.
                    [Newtonsoft.Json.JsonPropertyAttribute("count")]
                    public virtual System.Nullable<long> Count { get; set; }

                }
            }

            /// Description of the output value or label.
            public class OutputFeatureData
            {
                /// Description of the output values in the data set.
                [Newtonsoft.Json.JsonPropertyAttribute("numeric")]
                public virtual OutputFeatureData.NumericData Numeric { get; set; }

                /// Description of the output labels in the data set.
                [Newtonsoft.Json.JsonPropertyAttribute("text")]
                public virtual System.Collections.Generic.IList<OutputFeatureData.TextData> Text { get; set; }

                /// Description of the output values in the data set.
                public class NumericData
                {
                    /// Number of numeric output values in the data set.
                    [Newtonsoft.Json.JsonPropertyAttribute("count")]
                    public virtual System.Nullable<long> Count { get; set; }

                    /// Mean of the output values in the data set.
                    [Newtonsoft.Json.JsonPropertyAttribute("mean")]
                    public virtual string Mean { get; set; }

                    /// Variance of the output values in the data set.
                    [Newtonsoft.Json.JsonPropertyAttribute("variance")]
                    public virtual string Variance { get; set; }

                }

                public class TextData
                {
                    /// Number of times the output label occurred in the data set.
                    [Newtonsoft.Json.JsonPropertyAttribute("count")]
                    public virtual System.Nullable<long> Count { get; set; }

                    /// The output label.
                    [Newtonsoft.Json.JsonPropertyAttribute("value")]
                    public virtual string Value { get; set; }

                }
            }
        }

        /// Description of the model.
        public class ModelDescriptionData
        {
            /// An output confusion matrix. This shows an estimate for how this model will do in predictions.
            /// This is first indexed by the true class label. For each true class label, this provides a pair
            /// {predicted_label, count}, where count is the estimated number of times the model will predict the
            /// predicted label given the true label. Will not output if more then 100 classes (Categorical models
            /// only).
            [Newtonsoft.Json.JsonPropertyAttribute("confusionMatrix")]
            public virtual System.Collections.Generic.IDictionary<string,System.Collections.Generic.IDictionary<string,string>> ConfusionMatrix { get; set; }

            /// A list of the confusion matrix row totals.
            [Newtonsoft.Json.JsonPropertyAttribute("confusionMatrixRowTotals")]
            public virtual System.Collections.Generic.IDictionary<string,string> ConfusionMatrixRowTotals { get; set; }

            /// Basic information about the model.
            [Newtonsoft.Json.JsonPropertyAttribute("modelinfo")]
            public virtual Insert2 Modelinfo { get; set; }

        }
    }

    public class Input : Google.Apis.Requests.IDirectResponseSchema
    {
        /// Input to the model for a prediction.
        [Newtonsoft.Json.JsonPropertyAttribute("input")]
        public virtual Input.InputData InputValue { get; set; }

        /// The ETag of the item.
        public virtual string ETag { get; set; }

        /// Input to the model for a prediction.
        public class InputData
        {
            /// A list of input features, these can be strings or doubles.
            [Newtonsoft.Json.JsonPropertyAttribute("csvInstance")]
            public virtual System.Collections.Generic.IList<object> CsvInstance { get; set; }

        }
    }

    public class Insert : Google.Apis.Requests.IDirectResponseSchema
    {
        /// The unique name for the predictive model.
        [Newtonsoft.Json.JsonPropertyAttribute("id")]
        public virtual string Id { get; set; }

        /// Type of predictive model (classification or regression).
        [Newtonsoft.Json.JsonPropertyAttribute("modelType")]
        public virtual string ModelType { get; set; }

        /// The Id of the model to be copied over.
        [Newtonsoft.Json.JsonPropertyAttribute("sourceModel")]
        public virtual string SourceModel { get; set; }

        /// Google storage location of the training data file.
        [Newtonsoft.Json.JsonPropertyAttribute("storageDataLocation")]
        public virtual string StorageDataLocation { get; set; }

        /// Google storage location of the preprocessing pmml file.
        [Newtonsoft.Json.JsonPropertyAttribute("storagePMMLLocation")]
        public virtual string StoragePMMLLocation { get; set; }

        /// Google storage location of the pmml model file.
        [Newtonsoft.Json.JsonPropertyAttribute("storagePMMLModelLocation")]
        public virtual string StoragePMMLModelLocation { get; set; }

        /// Instances to train model on.
        [Newtonsoft.Json.JsonPropertyAttribute("trainingInstances")]
        public virtual System.Collections.Generic.IList<Insert.TrainingInstancesData> TrainingInstances { get; set; }

        /// A class weighting function, which allows the importance weights for class labels to be specified
        /// (Categorical models only).
        [Newtonsoft.Json.JsonPropertyAttribute("utility")]
        public virtual System.Collections.Generic.IList<System.Collections.Generic.IDictionary<string,System.Nullable<double>>> Utility { get; set; }

        /// The ETag of the item.
        public virtual string ETag { get; set; }

        public class TrainingInstancesData
        {
            /// The input features for this instance.
            [Newtonsoft.Json.JsonPropertyAttribute("csvInstance")]
            public virtual System.Collections.Generic.IList<object> CsvInstance { get; set; }

            /// The generic output value - could be regression or class label.
            [Newtonsoft.Json.JsonPropertyAttribute("output")]
            public virtual string Output { get; set; }

        }
    }

    public class Insert2 : Google.Apis.Requests.IDirectResponseSchema
    {
        /// Insert time of the model (as a RFC 3339 timestamp).
        [Newtonsoft.Json.JsonPropertyAttribute("created")]
        public virtual string CreatedRaw { get; set; }

        /// <seealso cref="System.DateTime"/> representation of <see cref="CreatedRaw"/>.
        [Newtonsoft.Json.JsonIgnore]
        public virtual System.Nullable<System.DateTime> Created
        {
            get
            {
                return Google.Apis.Util.Utilities.GetDateTimeFromString(CreatedRaw);
            }
            set
            {
                CreatedRaw = Google.Apis.Util.Utilities.GetStringFromDateTime(value);
            }
        }

        /// The unique name for the predictive model.
        [Newtonsoft.Json.JsonPropertyAttribute("id")]
        public virtual string Id { get; set; }

        /// What kind of resource this is.
        [Newtonsoft.Json.JsonPropertyAttribute("kind")]
        public virtual string Kind { get; set; }

        /// Model metadata.
        [Newtonsoft.Json.JsonPropertyAttribute("modelInfo")]
        public virtual Insert2.ModelInfoData ModelInfo { get; set; }

        /// Type of predictive model (CLASSIFICATION or REGRESSION).
        [Newtonsoft.Json.JsonPropertyAttribute("modelType")]
        public virtual string ModelType { get; set; }

        /// A URL to re-request this resource.
        [Newtonsoft.Json.JsonPropertyAttribute("selfLink")]
        public virtual string SelfLink { get; set; }

        /// Google storage location of the training data file.
        [Newtonsoft.Json.JsonPropertyAttribute("storageDataLocation")]
        public virtual string StorageDataLocation { get; set; }

        /// Google storage location of the preprocessing pmml file.
        [Newtonsoft.Json.JsonPropertyAttribute("storagePMMLLocation")]
        public virtual string StoragePMMLLocation { get; set; }

        /// Google storage location of the pmml model file.
        [Newtonsoft.Json.JsonPropertyAttribute("storagePMMLModelLocation")]
        public virtual string StoragePMMLModelLocation { get; set; }

        /// Training completion time (as a RFC 3339 timestamp).
        [Newtonsoft.Json.JsonPropertyAttribute("trainingComplete")]
        public virtual string TrainingCompleteRaw { get; set; }

        /// <seealso cref="System.DateTime"/> representation of <see cref="TrainingCompleteRaw"/>.
        [Newtonsoft.Json.JsonIgnore]
        public virtual System.Nullable<System.DateTime> TrainingComplete
        {
            get
            {
                return Google.Apis.Util.Utilities.GetDateTimeFromString(TrainingCompleteRaw);
            }
            set
            {
                TrainingCompleteRaw = Google.Apis.Util.Utilities.GetStringFromDateTime(value);
            }
        }

        /// The current status of the training job. This can be one of following: RUNNING; DONE; ERROR; ERROR:
        /// TRAINING JOB NOT FOUND
        [Newtonsoft.Json.JsonPropertyAttribute("trainingStatus")]
        public virtual string TrainingStatus { get; set; }

        /// The ETag of the item.
        public virtual string ETag { get; set; }

        /// Model metadata.
        public class ModelInfoData
        {
            /// Estimated accuracy of model taking utility weights into account (Categorical models
            /// only).
            [Newtonsoft.Json.JsonPropertyAttribute("classWeightedAccuracy")]
            public virtual string ClassWeightedAccuracy { get; set; }

            /// A number between 0.0 and 1.0, where 1.0 is 100% accurate. This is an estimate, based on the
            /// amount and quality of the training data, of the estimated prediction accuracy. You can use this is a
            /// guide to decide whether the results are accurate enough for your needs. This estimate will be more
            /// reliable if your real input data is similar to your training data (Categorical models only).
            [Newtonsoft.Json.JsonPropertyAttribute("classificationAccuracy")]
            public virtual string ClassificationAccuracy { get; set; }

            /// An estimated mean squared error. The can be used to measure the quality of the predicted model
            /// (Regression models only).
            [Newtonsoft.Json.JsonPropertyAttribute("meanSquaredError")]
            public virtual string MeanSquaredError { get; set; }

            /// Type of predictive model (CLASSIFICATION or REGRESSION).
            [Newtonsoft.Json.JsonPropertyAttribute("modelType")]
            public virtual string ModelType { get; set; }

            /// Number of valid data instances used in the trained model.
            [Newtonsoft.Json.JsonPropertyAttribute("numberInstances")]
            public virtual System.Nullable<long> NumberInstances { get; set; }

            /// Number of class labels in the trained model (Categorical models only).
            [Newtonsoft.Json.JsonPropertyAttribute("numberLabels")]
            public virtual System.Nullable<long> NumberLabels { get; set; }

        }
    }

    public class List : Google.Apis.Requests.IDirectResponseSchema
    {
        /// List of models.
        [Newtonsoft.Json.JsonPropertyAttribute("items")]
        public virtual System.Collections.Generic.IList<Insert2> Items { get; set; }

        /// What kind of resource this is.
        [Newtonsoft.Json.JsonPropertyAttribute("kind")]
        public virtual string Kind { get; set; }

        /// Pagination token to fetch the next page, if one exists.
        [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")]
        public virtual string NextPageToken { get; set; }

        /// A URL to re-request this resource.
        [Newtonsoft.Json.JsonPropertyAttribute("selfLink")]
        public virtual string SelfLink { get; set; }

        /// The ETag of the item.
        public virtual string ETag { get; set; }
    }

    public class Output : Google.Apis.Requests.IDirectResponseSchema
    {
        /// The unique name for the predictive model.
        [Newtonsoft.Json.JsonPropertyAttribute("id")]
        public virtual string Id { get; set; }

        /// What kind of resource this is.
        [Newtonsoft.Json.JsonPropertyAttribute("kind")]
        public virtual string Kind { get; set; }

        /// The most likely class label (Categorical models only).
        [Newtonsoft.Json.JsonPropertyAttribute("outputLabel")]
        public virtual string OutputLabel { get; set; }

        /// A list of class labels with their estimated probabilities (Categorical models only).
        [Newtonsoft.Json.JsonPropertyAttribute("outputMulti")]
        public virtual System.Collections.Generic.IList<Output.OutputMultiData> OutputMulti { get; set; }

        /// The estimated regression value (Regression models only).
        [Newtonsoft.Json.JsonPropertyAttribute("outputValue")]
        public virtual string OutputValue { get; set; }

        /// A URL to re-request this resource.
        [Newtonsoft.Json.JsonPropertyAttribute("selfLink")]
        public virtual string SelfLink { get; set; }

        /// The ETag of the item.
        public virtual string ETag { get; set; }

        public class OutputMultiData
        {
            /// The class label.
            [Newtonsoft.Json.JsonPropertyAttribute("label")]
            public virtual string Label { get; set; }

            /// The probability of the class label.
            [Newtonsoft.Json.JsonPropertyAttribute("score")]
            public virtual string Score { get; set; }

        }
    }

    public class Update : Google.Apis.Requests.IDirectResponseSchema
    {
        /// The input features for this instance.
        [Newtonsoft.Json.JsonPropertyAttribute("csvInstance")]
        public virtual System.Collections.Generic.IList<object> CsvInstance { get; set; }

        /// The generic output value - could be regression or class label.
        [Newtonsoft.Json.JsonPropertyAttribute("output")]
        public virtual string Output { get; set; }

        /// The ETag of the item.
        public virtual string ETag { get; set; }
    }
}


text:
<?php

namespace Acme\FormBugBundle\Controller;

use Acme\FormBugBundle\Form\TestType;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;

class DefaultController extends Controller
{
    public function indexAction(Request $request)
    {
        $form = $this->createForm(new TestType());

        $form->handleRequest($request);

        if ($form->isValid()) {
            $this->getDoctrine()->getManager()->persist($form->getData());
            $this->getDoctrine()->getManager()->flush();
        }

        return $this->render('AcmeFormBugBundle:Default:index.html.twig',
            [
                'form' => $form->createView(),
            ]
        );
    }
}


text:
Until the builds are published to Maven Central, you may need to download the **dnsjnio-x.x.x.jar**
from the project, and install it in your local Maven repository. This can be accomplished by
using the following command where the **-Dfile=** location is the path to the jar file to install.

```bash
mvn install:install-file -Dfile=dnsjnio-1.0.5.jar -DgroupId=uk.nominet \
-DartifactId=dnsjnio -Dversion=1.0.5 -Dpackaging=jar
```


text:
namespace Snippets5.UpgradeGuides._5to6
{
    class DelayedDelivery
    {
    }
}


text:
<bill session="110" type="s" number="3194" updated="2009-01-09T18:31:56-05:00">
	<status><calendar date="1222142400" datetime="2008-09-23" /></status>

	<introduced date="1214366400" datetime="2008-06-25"/>
	<titles>
		<title type="short" as="introduced">Oregon Surplus Federal Land Act of 2008</title>
		<title type="official" as="introduced">A bill to transfer surplus Federal land administered by the Coast Guard in the State of Oregon.</title>
	</titles>
	<sponsor id="300090"/>
	<cosponsors>
		<cosponsor id="300100" joined="2008-06-25"/>
	</cosponsors>
	<actions>
		<action date="1214366400" datetime="2008-06-25"><text>Read twice and referred to the Committee on Indian Affairs.</text></action>
		<calendar date="1222142400" datetime="2008-09-23" ><text>Committee on Indian Affairs. Ordered to be reported without amendment favorably.</text></calendar>
	</actions>
	<committees>

	</committees>
	<relatedbills>

	</relatedbills>
	<subjects>

	</subjects>
	<amendments>

	</amendments>

	6/25/2008--Introduced.
Oregon Surplus Federal Land Act of 2008 - Requires transfer of administrative jurisdiction over Coast Guard lands in Coos County, Oregon (including Cape Arago Light Station on Chief's Island), in the areas commonly known as Gregory Point and Chief's Island, to the Secretary of the Interior to hold in trust for the benefit of the Confederated Tribes of the Coos, Lower Umpqua, and Siuslaw Indians and to be included in the reservation of those tribes. Allows the Coast Guard to retain easements for access to aids to navigation.

</bill>


text:
echo "start ourjs"

#change current dir, in order to call it from anywhere.
cd $(dirname $0)

while true; do
  {
    node ./svr/ourjs.js config.newspaper.js

    echo "Server stop working, waiting for restart...\r\n\r\n\r\n\r\n"
    sleep 5
  } #2>> ./error.log
done


text:
from django.contrib.auth.models import User, Group
from django.db import models
from django.db.models import Q, Subquery
from django.core.exceptions import PermissionDenied

from hs_core.models import BaseResource
from hs_access_control.models.privilege import PrivilegeCodes as PC, \
        UserResourcePrivilege, GroupResourcePrivilege

#############################################
# flags and methods for resources
#
# There is a one-to-one correspondence between instances of BaseResource and instances
# of ResourceAccess in order to annotate the BaseResource with flags and methods specific
# to access control.
#############################################

class ResourceAccess(models.Model):
    """ Resource model for access control
    """
    #############################################
    # model variables
    #############################################

    resource = models.OneToOneField(BaseResource, on_delete=models.CASCADE,
                                    editable=False,
                                    null=False,
                                    related_name='raccess',
                                    related_query_name='raccess')

    # only for resources
    active = models.BooleanField(default=True,
                                 help_text='whether resource is currently active')
    # both resources and groups
    discoverable = models.BooleanField(default=False,
                                       help_text='whether resource is discoverable by everyone')
    public = models.BooleanField(default=False,
                                 help_text='whether resource data can be viewed by everyone')
    shareable = models.BooleanField(default=True,
                                    help_text='whether resource can be shared by non-owners')
    # these are for resources only
    review_pending = models.BooleanField(default=False,
                                         help_text='whether resource is under metadata review')
    published = models.BooleanField(default=False,
                                    help_text='whether resource has been published')
    immutable = models.BooleanField(default=False,
                                    help_text='whether to prevent all changes to the resource')

    require_download_agreement = models.BooleanField(default=False,
                                                     help_text='whether to require agreement to '
                                                               'resource rights statement for '
                                                               'resource content downloads')
    allow_private_sharing = models.BooleanField(default=False,
                                                help_text='whether to allow anonymous user to '
                                                          'access private resource in view mode')

    #############################################
    # workalike queries adapt to old access control system
    #############################################

    @property
    def __view_users_from_individual(self):
        return Q(is_active=True,
                 u2urp__resource=self.resource)

    @property
    def __view_users_from_group(self):
        return Q(is_active=True,
                 u2ugp__group__gaccess__active=True,
                 u2ugp__group__g2grp__resource=self.resource)

    @property
    def __view_users_from_community(self):
        return Q(is_active=True,
                 u2ugp__group__gaccess__active=True,
                 u2ugp__group__g2gcp__community__c2gcp__group__gaccess__active=True,
                 u2ugp__group__g2gcp__community__c2gcp__group__g2grp__resource=self.resource)

    @property
    def view_users(self):
        """
        QuerySet of users with view privileges over a resource.

        This is a property so that it is a workalike for a prior explicit list.

        This now accounts for group and community privileges

        For VIEW, effective privilege = declared privilege, in the sense that all editors have
        VIEW, even if the resource is immutable.
        """

        return User.objects.filter(self.__view_users_from_individual |
                                   self.__view_users_from_group).distinct()

    @property
    def __edit_users_from_individual(self):
        return Q(is_active=True,
                 u2urp__resource=self.resource,
                 u2urp__privilege=PC.OWNER) | \
               Q(is_active=True,
                 u2urp__resource=self.resource,
                 u2urp__resource__raccess__immutable=False,
                 u2urp__privilege__lte=PC.CHANGE)

    @property
    def __edit_users_from_group(self):
        return Q(is_active=True,
                 u2ugp__group__gaccess__active=True,
                 u2ugp__group__g2grp__resource=self.resource,
                 u2ugp__group__g2grp__resource__raccess__immutable=False,
                 u2ugp__group__g2grp__privilege__lte=PC.CHANGE)

    @property
    def __edit_users_from_community(self):
        return Q(
            is_active=True,
            u2ugp__group__gaccess__active=True,
            u2ugp__group__g2gcp__privilege=PC.CHANGE,
            u2ugp__group__g2gcp__community__c2gcp__group__gaccess__active=True,
            u2ugp__group__g2gcp__community__c2gcp__group__g2grp__resource=self.resource,
            u2ugp__group__g2gcp__community__c2gcp__group__g2grp__resource__raccess__immutable=False,
            u2ugp__group__g2gcp__community__c2gcp__group__g2grp__privilege=PC.CHANGE)

    @property
    def edit_users(self):
        """
        QuerySet of users with change privileges

        This is a property so that it is a workalike for a prior explicit list.

        This now accounts for group and community privileges

        """
        return User.objects\
                   .filter((self.__edit_users_from_individual) |
                           (self.__edit_users_from_group)).distinct()

    @property
    def __view_groups_from_group(self):
        return Q(gaccess__active=True,
                 g2grp__resource=self.resource)

    @property
    def __view_groups_from_community(self):
        return Q(gaccess__active=True,
                 g2gcp__community__c2gcp__group__gaccess__active=True,
                 g2gcp__community__c2gcp__group__g2grp__resource=self.resource)

    @property
    def view_groups(self):
        """
        QuerySet of groups with view privileges

        This now accounts for community privileges

        This is a property so that it is a workalike for a prior explicit list
        """
        return Group.objects.filter(self.__view_groups_from_group).distinct()

    @property
    def __edit_groups_from_group(self):
        return Q(gaccess__active=True,
                 g2grp__resource=self.resource,
                 g2grp__resource__raccess__immutable=False,
                 g2grp__privilege__lte=PC.CHANGE)

    @property
    def __edit_groups_from_community(self):
        return Q(gaccess__active=True,
                 g2gcp__privilege=PC.CHANGE,
                 g2gcp__community__c2gcp__group__gaccess__active=True,
                 g2gcp__community__c2gcp__group__g2grp__resource=self.resource,
                 g2gcp__community__c2gcp__group__g2grp__resource__raccess__immutable=False,
                 g2gcp__community__c2gcp__group__g2grp__privilege=PC.CHANGE)

    @property
    def edit_groups(self):
        """
        QuerySet of groups with edit privileges

        This is a property so that it is a workalike for a prior explicit list.

        If the resource is immutable, an empty QuerySet is returned.

        This now accounts for community privileges
        """
        if self.immutable:
            return Group.objects.none()
        else:
            return Group.objects.filter(self.__edit_groups_from_group).distinct()

    @property
    def owners(self):
        """
        QuerySet of users with owner privileges

        This is a property so that it is a workalike for a prior explicit list.

        Groups and communities cannot own resources.

        For immutable resources, owners are not modified, but do not have CHANGE privilege.
        """
        return User.objects.filter(is_active=True,
                                   u2urp__privilege=PC.OWNER,
                                   u2urp__resource=self.resource)

    def get_users_with_explicit_access(self, this_privilege,
                                       include_user_granted_access=True,
                                       include_group_granted_access=True,
                                       include_community_granted_access=False):

        """
        Gets a QuerySet of Users who have the explicit specified privilege access to the resource.
        An empty list is returned if both include_user_granted_access and
        include_group_granted_access are set to False.

        :param this_privilege: the explicit privilege over the resource for which list of users
         needed
        :param include_user_granted_access: if True, then users who have been granted directly the
        specified privilege will be included in the list
        :param include_group_granted_access: if True, then users who have been granted the
        specified privilege via group privilege over the resource will be included in the list
        :param include_community_granted_access: if True, then users who have been granted the
        specified privilege via community privilege over the resource will be included in the list
        :return:
        """
        incl = None  # what to include
        excl = None  # what to explicitly exclude

        if this_privilege == PC.OWNER:
            return self.owners  # groups and communities cannot own

        elif this_privilege == PC.VIEW:

            if include_user_granted_access:
                incl = Q(u2urp__resource=self.resource,
                         u2urp__privilege=PC.VIEW)
                excl = Q(u2urp__resource=self.resource,
                         u2urp__privilege__lt=PC.VIEW)

            if include_group_granted_access:
                i = Q(u2ugp__group__g2grp__resource=self.resource,
                      u2ugp__group__g2grp__privilege=PC.VIEW)
                if incl is not None:
                    incl = incl | i
                else:
                    incl = i
                # exclude higher privilege
                e = Q(u2ugp__group__g2grp__resource=self.resource,
                      u2ugp__group__g2grp__privilege__lt=PC.VIEW)
                if excl is not None:
                    excl = excl | e
                else:
                    excl = e

            # if include_community_granted_access:
            #     # view privilege results if either group or community privilege is view,
            #     # include exact privilege
            #     i = Q(u2ugp__group__gaccess__active=True,
            #           u2ugp__group__g2gcp__community__c2gcp__group__g2grp__resource=self.resource,
            #           u2ugp__group__g2gcp__community__c2gcp__group__gaccess__active=True)
            #     if incl is not None:
            #         incl = incl | i
            #     else:
            #         incl = i

            if incl is not None:
                if excl is not None:
                    # A subquery speeds up the execution of __in by eliminating
                    # a postgresql invocation, but requires the values operator.
                    # See Subquery documentation for why this is necessary.
                    excluded = User.objects.filter(excl).values('pk')
                    return User.objects.filter(incl)\
                                       .exclude(pk__in=Subquery(excluded))\
                                       .distinct()
                else:
                    return User.objects.filter(incl)

            else:
                return User.objects.none()

        elif this_privilege == PC.CHANGE:

            if include_user_granted_access:
                incl = Q(u2urp__resource=self.resource,
                         u2urp__privilege=PC.CHANGE)
                excl = Q(u2urp__resource=self.resource,
                         u2urp__privilege=PC.OWNER)

            if include_group_granted_access:
                i = Q(u2ugp__group__gaccess__active=True,
                      u2ugp__group__g2grp__resource=self.resource,
                      u2ugp__group__g2grp__privilege=PC.CHANGE)
                if incl is not None:
                    incl = incl | i
                else:
                    incl = i
                # There is no higher privilege than CHANGE, so there is no need to exclude

            if incl is not None:
                if excl is not None:
                    # A subquery speeds up the execution of __in by eliminating
                    # a postgresql invocation, but requires the values operator.
                    # See Subquery documentation for why this is necessary.
                    excluded = User.objects.filter(excl).values('pk')
                    return User.objects\
                            .filter(incl)\
                            .exclude(pk__in=Subquery(excluded))\
                            .distinct()
                else:
                    return User.objects.filter(incl)
            else:
                return User.objects.none()

        else:  # invalid privilege given
            return User.objects.none()

    def __get_raw_user_privilege(self, this_user, ignore_superuser=False):
        """
        Return the user-based privilege of a specific user over this resource

        :param this_user: the user upon which to report
        :return: integer privilege 1-4 (PrivilegeCodes)

        This does not account for resource flags.

        """
        if __debug__:  # during testing only, check argument types and preconditions
            assert isinstance(this_user, User)

        if not this_user.is_active:
            raise PermissionDenied("Grantee user is not active")

        if this_user.is_superuser and not ignore_superuser:
            return PC.OWNER

        # compute simple user privilege over resource
        try:
            p = UserResourcePrivilege.objects.get(resource=self.resource,
                                                  user=this_user)
            response1 = p.privilege
        except UserResourcePrivilege.DoesNotExist:
            response1 = PC.NONE

        return response1

    def __get_raw_group_privilege(self, this_user):
        """
        Return the group-based privilege of a specific user over this resource

        :param this_user: the user upon which to report
        :return: integer privilege 1-4 (PrivilegeCodes)

        This does not account for resource flags.
        """
        if __debug__:  # during testing only, check argument types and preconditions
            assert isinstance(this_user, User)

        if not this_user.is_active:
            raise PermissionDenied("Grantee user is not active")

        # Group privileges must be aggregated
        group_priv = GroupResourcePrivilege.objects\
            .filter(resource=self.resource,
                    group__gaccess__active=True,
                    group__g2ugp__user=this_user)\
            .aggregate(models.Min('privilege'))

        response2 = group_priv['privilege__min']
        if response2 is None:
            response2 = PC.NONE
        return response2

    def __get_raw_community_privilege(self, this_user):
        """
        Return the community-based privilege of a specific user over this resource

        :param this_user: the user upon which to report
        :return: integer privilege 1-4 (PrivilegeCodes)

        This does not account for resource flags.
        """
        # Community privileges are either direct or via community.
        community_priv = GroupResourcePrivilege.objects \
            .filter(Q(resource=self.resource,
                      group__gaccess__active=True,
                      group__g2gcp__community__c2gcp__group__g2ugp__user=this_user))\
            .aggregate(models.Min('privilege'),
                       models.Min('group__g2gcp__community__c2gcp__privilege'))

        if community_priv['privilege__min'] is None or \
           community_priv['group__g2gcp__community__c2gcp__privilege__min'] is None:
            return PC.NONE
        else:
            return PC.VIEW

    def get_effective_user_privilege(self, this_user, ignore_superuser=False):
        """
        Return the effective user-based privilege of a specific user over this resource

        :param this_user: the user upon which to report
        :return: integer privilege 1-4 (PrivilegeCodes)

        This accounts for resource flags by revoking CHANGE on immutable resources.
        """
        user_priv = self.__get_raw_user_privilege(this_user, ignore_superuser=ignore_superuser)
        if self.immutable and user_priv == PC.CHANGE:
            return PC.VIEW
        else:
            return user_priv

    def get_effective_group_privilege(self, this_user):
        """
        Return the effective group-based privilege of a specific user over this resource

        :param this_user: the user upon which to report
        :return: integer privilege 1-4 (PrivilegeCodes)
        This accounts for resource flags by revoking CHANGE on immutable resources.
        """
        group_priv = self.__get_raw_group_privilege(this_user)
        if self.immutable and group_priv == PC.CHANGE:
            return PC.VIEW
        else:
            return group_priv

    def get_effective_community_privilege(self, this_user):
        """
        Return the effective community-based privilege of a specific user over this resource

        :param this_user: the user upon which to report
        :return: integer privilege 1-4 (PrivilegeCodes)

        This accounts for resource flags by revoking CHANGE on immutable resources.
        """
        community_priv = self.__get_raw_community_privilege(this_user)
        return community_priv

    def get_effective_privilege(self, this_user, ignore_superuser=False):
        """
        Compute effective privilege of user over a resource, accounting for resource flags.

        :param this_user: user to check.
        :return: integer privilege 1-4

        This returns the effective privilege of a user over a resource, including both user
        and group privilege as well as resource flags. Return one of the PrivilegeCodes:

        This overrides stored privileges based upon two resource flags:

            * immutable:
                privilege is at most VIEW.

            * public:
                privilege is at least VIEW.

        Recall that *lower* privilege numbers indicate *higher* privilege.

        Usage
        -----

        This is not normally used in application code.
        """
        if __debug__:  # during testing only, check argument types and preconditions
            assert isinstance(this_user, User)

        if not this_user.is_active:
            raise PermissionDenied("Grantee user is not active")

        user_priv = self.get_effective_user_privilege(this_user, ignore_superuser=ignore_superuser)
        group_priv = self.get_effective_group_privilege(this_user)
        # community_priv = self.get_effective_community_privilege(this_user)
        return min(user_priv, group_priv)  # , community_priv)

    @property
    def sharing_status(self):
        """ return the sharing status as a status word """
        if self.published:
            return "published"
        elif self.public:
            return "public"
        elif self.discoverable:
            return "discoverable"
        else:
            return "private"

    @property
    def first_owner(self):
        opriv = UserResourcePrivilege.objects.filter(community=self, privilege=PC.OWNER)\
            .order_by('start')
        opriv = list(opriv)
        if opriv:
            return opriv[0].user
        else:
            return None

    @property
    def published_or_review_pending(self):
        return self.published or self.review_pending


text:
package org.elasticsearch.client.security;

import org.elasticsearch.client.Validatable;
import org.elasticsearch.common.Nullable;
import org.elasticsearch.common.Strings;
import org.elasticsearch.common.xcontent.ToXContentObject;
import org.elasticsearch.common.xcontent.XContentBuilder;

import java.io.IOException;

/**
 * Request for get API key
 */
public final class GetApiKeyRequest implements Validatable, ToXContentObject {

    private final String realmName;
    private final String userName;
    private final String id;
    private final String name;

    // pkg scope for testing
    GetApiKeyRequest(@Nullable String realmName, @Nullable String userName, @Nullable String apiKeyId,
            @Nullable String apiKeyName) {
        if (Strings.hasText(realmName) == false && Strings.hasText(userName) == false && Strings.hasText(apiKeyId) == false
                && Strings.hasText(apiKeyName) == false) {
            throwValidationError("One of [api key id, api key name, username, realm name] must be specified");
        }
        if (Strings.hasText(apiKeyId) || Strings.hasText(apiKeyName)) {
            if (Strings.hasText(realmName) || Strings.hasText(userName)) {
                throwValidationError(
                        "username or realm name must not be specified when the api key id or api key name is specified");
            }
        }
        if (Strings.hasText(apiKeyId) && Strings.hasText(apiKeyName)) {
            throwValidationError("only one of [api key id, api key name] can be specified");
        }
        this.realmName = realmName;
        this.userName = userName;
        this.id = apiKeyId;
        this.name = apiKeyName;
    }

    private void throwValidationError(String message) {
        throw new IllegalArgumentException(message);
    }

    public String getRealmName() {
        return realmName;
    }

    public String getUserName() {
        return userName;
    }

    public String getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    /**
     * Creates get API key request for given realm name
     * @param realmName realm name
     * @return {@link GetApiKeyRequest}
     */
    public static GetApiKeyRequest usingRealmName(String realmName) {
        return new GetApiKeyRequest(realmName, null, null, null);
    }

    /**
     * Creates get API key request for given user name
     * @param userName user name
     * @return {@link GetApiKeyRequest}
     */
    public static GetApiKeyRequest usingUserName(String userName) {
        return new GetApiKeyRequest(null, userName, null, null);
    }

    /**
     * Creates get API key request for given realm and user name
     * @param realmName realm name
     * @param userName user name
     * @return {@link GetApiKeyRequest}
     */
    public static GetApiKeyRequest usingRealmAndUserName(String realmName, String userName) {
        return new GetApiKeyRequest(realmName, userName, null, null);
    }

    /**
     * Creates get API key request for given api key id
     * @param apiKeyId api key id
     * @return {@link GetApiKeyRequest}
     */
    public static GetApiKeyRequest usingApiKeyId(String apiKeyId) {
        return new GetApiKeyRequest(null, null, apiKeyId, null);
    }

    /**
     * Creates get API key request for given api key name
     * @param apiKeyName api key name
     * @return {@link GetApiKeyRequest}
     */
    public static GetApiKeyRequest usingApiKeyName(String apiKeyName) {
        return new GetApiKeyRequest(null, null, null, apiKeyName);
    }

    @Override
    public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {
        return builder;
    }

}


text:
namespace KabMan.Forms
{
    partial class LocationManagerForm
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            DevExpress.XtraEditors.DXErrorProvider.ConditionValidationRule conditionValidationRule1 = new DevExpress.XtraEditors.DXErrorProvider.ConditionValidationRule();
            DevExpress.XtraEditors.DXErrorProvider.ConditionValidationRule conditionValidationRule2 = new DevExpress.XtraEditors.DXErrorProvider.ConditionValidationRule();
            this.CManagerValidator = new DevExpress.XtraEditors.DXErrorProvider.DXValidationProvider(this.components);
            this.gridColumn1 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.gridColumn2 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.CManager = new KabMan.Controls.C_ControlManagerForm();
            this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl();
            this.CName = new DevExpress.XtraEditors.TextEdit();
            this.CPrefix = new DevExpress.XtraEditors.TextEdit();
            this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup();
            this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
            this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem();
            ((System.ComponentModel.ISupportInitialize)(this.CManagerValidator)).BeginInit();
            this.CManager.LayoutPanel.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
            this.layoutControl1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.CName.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.CPrefix.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit();
            this.SuspendLayout();
            //
            // gridColumn1
            //
            this.gridColumn1.Caption = "ID";
            this.gridColumn1.FieldName = "ID";
            this.gridColumn1.Name = "gridColumn1";
            //
            // gridColumn2
            //
            this.gridColumn2.Caption = "Name";
            this.gridColumn2.FieldName = "Name";
            this.gridColumn2.Name = "gridColumn2";
            //
            // CManager
            //
            this.CManager.DeleteProcedure = null;
            this.CManager.Dock = System.Windows.Forms.DockStyle.Fill;
            this.CManager.InsertProcedure = null;
            this.CManager.IsCancel = true;
            this.CManager.IsEdit = false;
            this.CManager.IsNew = true;
            //
            // CManager.layoutControlPanel
            //
            this.CManager.LayoutPanel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.CManager.LayoutPanel.Controls.Add(this.layoutControl1);
            this.CManager.LayoutPanel.Location = new System.Drawing.Point(0, 0);
            this.CManager.LayoutPanel.MinimumSize = new System.Drawing.Size(400, 20);
            this.CManager.LayoutPanel.Name = "layoutControlPanel";
            this.CManager.LayoutPanel.Size = new System.Drawing.Size(414, 36);
            this.CManager.LayoutPanel.TabIndex = 6;
            this.CManager.Location = new System.Drawing.Point(0, 0);
            this.CManager.MinimumSize = new System.Drawing.Size(400, 460);
            this.CManager.Name = "CManager";
            this.CManager.SelectParameters = null;
            this.CManager.Size = new System.Drawing.Size(414, 472);
            this.CManager.TabIndex = 0;
            this.CManager.UpdateProcedure = null;
            //
            // layoutControl1
            //
            this.layoutControl1.Appearance.DisabledLayoutGroupCaption.ForeColor = System.Drawing.SystemColors.GrayText;
            this.layoutControl1.Appearance.DisabledLayoutGroupCaption.Options.UseForeColor = true;
            this.layoutControl1.Appearance.DisabledLayoutItem.ForeColor = System.Drawing.SystemColors.GrayText;
            this.layoutControl1.Appearance.DisabledLayoutItem.Options.UseForeColor = true;
            this.layoutControl1.Controls.Add(this.CName);
            this.layoutControl1.Controls.Add(this.CPrefix);
            this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.layoutControl1.Location = new System.Drawing.Point(0, 0);
            this.layoutControl1.Name = "layoutControl1";
            this.layoutControl1.Root = this.layoutControlGroup1;
            this.layoutControl1.Size = new System.Drawing.Size(414, 36);
            this.layoutControl1.TabIndex = 0;
            this.layoutControl1.Text = "layoutControl1";
            //
            // CName
            //
            this.CName.Location = new System.Drawing.Point(245, 7);
            this.CName.Name = "CName";
            this.CName.Size = new System.Drawing.Size(163, 20);
            this.CName.StyleController = this.layoutControl1;
            this.CName.TabIndex = 5;
            conditionValidationRule1.ConditionOperator = DevExpress.XtraEditors.DXErrorProvider.ConditionOperator.IsNotBlank;
            conditionValidationRule1.ErrorText = "This value is not valid";
            conditionValidationRule1.ErrorType = DevExpress.XtraEditors.DXErrorProvider.ErrorType.Warning;
            this.CManagerValidator.SetValidationRule(this.CName, conditionValidationRule1);
            //
            // CPrefix
            //
            this.CPrefix.Location = new System.Drawing.Point(39, 7);
            this.CPrefix.Name = "CPrefix";
            this.CPrefix.Size = new System.Drawing.Size(163, 20);
            this.CPrefix.StyleController = this.layoutControl1;
            this.CPrefix.TabIndex = 4;
            conditionValidationRule2.ConditionOperator = DevExpress.XtraEditors.DXErrorProvider.ConditionOperator.IsNotBlank;
            conditionValidationRule2.ErrorText = "This value is not valid";
            conditionValidationRule2.ErrorType = DevExpress.XtraEditors.DXErrorProvider.ErrorType.Warning;
            this.CManagerValidator.SetValidationRule(this.CPrefix, conditionValidationRule2);
            //
            // layoutControlGroup1
            //
            this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1";
            this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
            this.layoutControlItem1,
            this.layoutControlItem2});
            this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0);
            this.layoutControlGroup1.Name = "layoutControlGroup1";
            this.layoutControlGroup1.Size = new System.Drawing.Size(414, 36);
            this.layoutControlGroup1.Spacing = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
            this.layoutControlGroup1.Text = "layoutControlGroup1";
            this.layoutControlGroup1.TextVisible = false;
            //
            // layoutControlItem1
            //
            this.layoutControlItem1.Control = this.CPrefix;
            this.layoutControlItem1.CustomizationFormText = "Prefix";
            this.layoutControlItem1.Location = new System.Drawing.Point(0, 0);
            this.layoutControlItem1.Name = "layoutControlItem1";
            this.layoutControlItem1.Size = new System.Drawing.Size(206, 34);
            this.layoutControlItem1.Text = "Alias";
            this.layoutControlItem1.TextLocation = DevExpress.Utils.Locations.Left;
            this.layoutControlItem1.TextSize = new System.Drawing.Size(27, 13);
            //
            // layoutControlItem2
            //
            this.layoutControlItem2.Control = this.CName;
            this.layoutControlItem2.CustomizationFormText = "Name";
            this.layoutControlItem2.Location = new System.Drawing.Point(206, 0);
            this.layoutControlItem2.Name = "layoutControlItem2";
            this.layoutControlItem2.Size = new System.Drawing.Size(206, 34);
            this.layoutControlItem2.Text = "Name";
            this.layoutControlItem2.TextLocation = DevExpress.Utils.Locations.Left;
            this.layoutControlItem2.TextSize = new System.Drawing.Size(27, 13);
            //
            // LocationManagerForm
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(414, 472);
            this.Controls.Add(this.CManager);
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.MinimumSize = new System.Drawing.Size(420, 500);
            this.Name = "LocationManagerForm";
            this.ShowInTaskbar = false;
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
            this.Text = "Location Manager";
            this.Load += new System.EventHandler(this.LocationManagerForm_Load);
            ((System.ComponentModel.ISupportInitialize)(this.CManagerValidator)).EndInit();
            this.CManager.LayoutPanel.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit();
            this.layoutControl1.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.CName.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.CPrefix.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit();
            this.ResumeLayout(false);

        }

        #endregion

        private KabMan.Controls.C_ControlManagerForm CManager;
        private DevExpress.XtraLayout.LayoutControl layoutControl1;
        private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup1;
        private DevExpress.XtraEditors.TextEdit CName;
        private DevExpress.XtraEditors.TextEdit CPrefix;
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1;
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2;
        private DevExpress.XtraEditors.DXErrorProvider.DXValidationProvider CManagerValidator;
        private DevExpress.XtraGrid.Columns.GridColumn gridColumn1;
        private DevExpress.XtraGrid.Columns.GridColumn gridColumn2;

    }
}