text:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include <math.h>
#include <dlfcn.h>
#include "frequency.h"
#include "log.h"

#define LIM_IPSRC (0.30)
#define LIM_IPDST (0.30)
#define LIM_IPSRCPORT (0.30)
#define LIM_IPDSTPORT (0.30)
#define LIM_PACKBYTES (0.30)
#define LIM_IPSRCDSTPORT (0.30)

// Global Variable for passing results to other modules if needed
float entropy_res_src = 0.0;
float entropy_res_dst = 0.0;
float entropy_res_srcport = 0.0;
float entropy_res_dstport = 0.0;
float entropy_res_npackbytes = 0.0;
float entropy_res_ipsrcdstport = 0.0;

// Global variables
// Struct entropy_pro is in frequency.h
struct entropy_data *pro = NULL;
int iterations = 0;
// File for logging purpose
char filename[FILENAME_MAX];
// File for logging purpose
char resultname[FILENAME_MAX];
// Sum of analyzed flows
int sum_flows = 0;
// Logdir specified
char *spec_logdir = NULL;

// Function prototypes
// init operation
double so_init (int numflows);
// Process pro
double so_process (nf_record_t * r_current, int current_flows,
		   char *bucket_id);
// Close operations: free resources
double so_close (void);
// Specified the log directory
double so_log (char *logdir);
// With this function other modules can access the results of this one and use them in their computation
void **so_getResult (void);

// Entropy function
float compute_entropy_ips (int cnt_unique, int cnt);
float compute_entropy_ipd (int cnt_unique, int cnt);
float compute_entropy_ipsrcport (int cnt_unique, int cnt);
float compute_entropy_ipdstport (int cnt_unique, int cnt);
float compute_entropy_npackets_nbytes (int cnt_unique, int cnt);
float compute_entropy_ipsrcdstport (int cnt_unique, int cnt);

// Initialize the pro struct entropy_pro and its field
double init_all (int numflows);
// Process pro from ip source point of view
int process (nf_record_t * r_current, int current_flows);

// so_init initializes the field of the entropy_pro pro structure
// numflows --> number of current timeslot flows
double
so_init (int numflows)
{
  iterations++;

  if (iterations == 1)
    {
      strncpy (filename, setFileName (ENTROPYDEP, spec_logdir), FILENAME_MAX);
      strncpy (resultname, setFileNameResults (ENTROPYDEP), FILENAME_MAX);
      writeLogFile (filename, STATUS_OK,
		    "Start computing Entropy_modded.so module", -1);
    }
  if (spec_logdir != NULL)
    free (spec_logdir);
  sum_flows += numflows;
  writeLogFile (filename, INFO, "Timeslot flows", numflows);
  printf
    ("[Info] Start Computing Entropy for different data: IP source / IP Destination / IP source - source port / IP destination - destination port / Packets number - Bytes Number / IP source - source port - IP destination - Destination port \n");
  // We initializes the field of entropy_pro structure
  return STATUS_OK;
}

// Process pro
// r_current --> current timeslot flows
// current_flows --> number of current timeslot flows
double
so_process (nf_record_t * r_current, int current_flows, char *bucket_id)
{
  writeLogFile (filename, BUCKET, bucket_id, -1);
  // Prepare the output variable
  float entropy_src = 0.0;
  float entropy_dst = 0.0;
  float entropy_ipsrcport = 0.0;
  float entropy_ipdstport = 0.0;
  float entropy_npack_nbytes = 0.0;
  float entropy_ipsrcdstport = 0.0;
  int alarm_src = 0;
  int alarm_dst = 0;
  int alarm_ipsrcport = 0;
  int alarm_ipdstport = 0;
  int alarm_npack_nbytes = 0;
  int alarm_ipsrcdstport = 0;
  typedef struct entropy_data *(*get_result) (void);

  char *error;
  void *module;
  // Open the .so
  get_result so_getResult;
  module = dlopen ("../lib/Frequency_mod.so", RTLD_LAZY);
  if (!module)
    {
      fprintf (stderr, "Couldn't open %s : %s\n", "Frequency_mod.so",
	       dlerror ());
      return ERR_OPEN_SO;
    }
  /* Get symbol */
  dlerror ();
  // Function so_init
  so_getResult = dlsym (module, "so_getResult");
  if ((error = dlerror ()))
    {
      fprintf (stderr, "Couldn't find so_init: %s\n", error);
      return ERR_OPEN_SO;
    }
  pro = (*so_getResult) ();
  // Analyze pro by different entropy base
  // IP source
  //Compute the entropy of IP Source
  entropy_src = compute_entropy_ips (pro->unique_src, current_flows);
  entropy_res_src = entropy_src;
  //Output results
  printf ("[Info] Unique IP Source %d \n", pro->unique_src);
  printf ("[Info] Entropy of IP Source Addresses is %f \n", entropy_src);
  writeLogFile (filename, INFO, "Unique IP Source", pro->unique_src);
  //Compute the entropy of IP Destination
  entropy_dst = compute_entropy_ipd (pro->unique_dst, current_flows);
  entropy_res_dst = entropy_dst;
  //Output results
  printf ("[Info] Unique IP Destination %d \n", pro->unique_dst);
  printf ("[Info] Entropy of IP Destination Addresses is %f \n", entropy_dst);
  writeLogFile (filename, INFO, "Unique IP Destination", pro->unique_dst);
  //Compute the entropy of IP Source - Source Port
  entropy_ipsrcport =
    compute_entropy_ipsrcport (pro->unique_ipsrc_srcport, current_flows);
  entropy_res_srcport = entropy_ipsrcport;
  //Output results
  printf ("[Info] Unique IP Source - Source Port %d \n",
	  pro->unique_ipsrc_srcport);
  printf ("[Info] Entropy of IP Source - Source Port is %f \n",
	  entropy_ipsrcport);
  writeLogFile (filename, INFO, "Unique IP Source - Source Port",
		pro->unique_ipsrc_srcport);
  //Compute the entropy of IP Destination - Destination Port
  entropy_ipdstport =
    compute_entropy_ipdstport (pro->unique_ipdst_dstport, current_flows);
  entropy_res_dstport = entropy_ipdstport;
  //Output results
  printf ("[Info] Unique IP Destination - Destination Port %d \n",
	  pro->unique_ipdst_dstport);
  printf ("[Info] Entropy of IP Destination - Destination Port is %f \n",
	  entropy_ipdstport);
  writeLogFile (filename, INFO, "Unique IP Destination - Destination Port",
		pro->unique_ipdst_dstport);
  //Compute the entropy of Packets Number - Bytes Number
  entropy_npack_nbytes =
    compute_entropy_npackets_nbytes (pro->unique_npack_nbytes, current_flows);
  entropy_res_npackbytes = entropy_npack_nbytes;
  //Output results
  printf ("[Info] Unique Packets Number - Bytes Number %d \n",
	  pro->unique_npack_nbytes);
  printf ("[Info] Entropy of Packets Number - Bytes Number is %f \n",
	  entropy_npack_nbytes);
  writeLogFile (filename, INFO, "Unique Packets Number - Bytes Number",
		pro->unique_npack_nbytes);
  //Compute the entropy of IP source - source port - IP destination - destination port
  entropy_ipsrcdstport =
    compute_entropy_ipsrcdstport (pro->unique_ipsrcdstport, current_flows);
  entropy_res_ipsrcdstport = entropy_ipsrcdstport;
  //Output results
  printf
    ("[Info] Unique IP Source - Source Port - IP Destination - Destination Port %d \n",
     pro->unique_ipsrcdstport);
  printf
    ("[Info] Entropy of IP Source - Source Port - IP Destination - Destination Port is %f \n",
     entropy_ipsrcdstport);
  writeLogFile (filename, INFO,
		"Unique IP Source Addresses - IP Destination Addresses - Source Port - Destination Port",
		pro->unique_ipsrcdstport);
  if (entropy_src <= LIM_IPSRC)
    {
      printf ("[!!!Alarm!!!] Entropy of IP Source is under the limit\n");
      writeLogFile (filename, ALARM,
		    "Entropy of IP Source is under the limit \n\n", -1);
      alarm_src = 1;
    }
  if (entropy_dst <= LIM_IPDST)
    {
      printf ("[!!!Alarm!!!] Entropy of IP Destination is under the limit\n");
      writeLogFile (filename, ALARM,
		    "Entropy of IP Destination is under the limit\n\n", -1);
      alarm_dst = 1;
    }
  if (entropy_ipsrcport <= LIM_IPSRCPORT)
    {
      printf
	("[!!!Alarm!!!] Entropy of IP Source - Source Port is under the limit\n");
      writeLogFile (filename, ALARM,
		    "Entropy of IP Source - Source Port is under the limit\n\n",
		    -1);
      alarm_ipsrcport = 1;
    }
  if (entropy_ipdstport <= LIM_IPDSTPORT)
    {
      printf
	("[!!!Alarm!!!] Entropy of IP Destination - Destination Port is under the limit\n");
      writeLogFile (filename, ALARM,
		    "Entropy of IP Destination - Destination Port is under the limit\n\n",
		    -1);
      alarm_ipdstport = 1;
    }
  if (entropy_npack_nbytes <= LIM_PACKBYTES)
    {
      printf
	("[!!!Alarm!!!] Entropy of Packets Number - Bytes Number is under the limit\n");
      writeLogFile (filename, ALARM,
		    "Entropy of Packets Number - Bytes Number is under the limit\n\n",
		    -1);
      alarm_npack_nbytes = 1;
    }
  if (entropy_ipsrcdstport <= LIM_IPSRCDSTPORT)
    {
      printf
	("[!!!Alarm!!!] Entropy of IP source - source port - IP destination - destination port is under the limit\n");
      writeLogFile (filename, ALARM,
		    "Entropy of IP source - source port - IP destination - destination port is under the limit\n\n",
		    -1);
      alarm_ipsrcdstport = 1;
    }
  FILE *fs;
  fs = fopen (resultname, "a");
  if (fs == NULL)
    {
      printf ("Couldn't open file\n");
      return ERR_OPEN_FILE;
    }
  if (iterations == 1)
    {
      fprintf (fs,
	       "Timeslot Bucket,Ip src entropy, Ip dst entropy, Ip src - src port entropy, Ip dst - dst port entropy, packets number - bytes number entropy, Ip src - src port - Ip dst - dst port entropy, alarm src, alarm dst, alarm src - src port, alarm dst - dst port, alarm packets number - bytes number, alarm Ip src - src port - Ip dst - dst port \n");
    }
  fprintf (fs, "%s,%3.6f,%3.6f,%3.6f,%3.6f,%3.6f,%3.6f,%d,%d,%d,%d,%d,%d \n",
	   bucket_id, entropy_src, entropy_dst, entropy_ipsrcport,
	   entropy_ipdstport, entropy_npack_nbytes, entropy_ipsrcdstport,
	   alarm_src, alarm_dst, alarm_ipsrcport, alarm_ipdstport,
	   alarm_npack_nbytes, alarm_ipsrcdstport);
  fclose (fs);
  return STATUS_OK;
}

// Close operations
// Free resources
double
so_close (void)
{
  printf
    ("[Info] End Computing Entropy for different data: IP source / IP Destination / IP source - source port / IP destination - destination port / Packets number - Bytes Number / IP source - source port - IP destination - Destination port \n");
  writeLogFile (filename, INFO, "Total analyzed flows", sum_flows);
  return STATUS_OK;
}

// Change default log directory
double
so_log (char *logdir)
{
  if (logdir == NULL)
    return STATUS_OK;
  else
    {
      spec_logdir = (char *) malloc (MAX_LOGDIR_LENGTH * sizeof (char));
      if (spec_logdir == NULL)
	{
	  return MEMORY_ERROR;
	}
      strncpy (spec_logdir, logdir, MAX_LOGDIR_LENGTH);
    }
  return STATUS_OK;
}

// With this function other modules can access the results of this one and use them in their computation
void **
so_getResult (void)
{
  void **pt = NULL;
  pt = (void **) malloc (6 * sizeof (void *));
  pt[0] = malloc (sizeof (void *));
  pt[1] = malloc (sizeof (void *));
  pt[2] = malloc (sizeof (void *));
  pt[3] = malloc (sizeof (void *));
  pt[4] = malloc (sizeof (void *));
  pt[5] = malloc (sizeof (void *));
  *(float *) pt[0] = entropy_res_src;
  *(float *) pt[1] = entropy_res_dst;
  *(float *) pt[2] = entropy_res_srcport;
  *(float *) pt[3] = entropy_res_dstport;
  *(float *) pt[4] = entropy_res_npackbytes;
  *(float *) pt[5] = entropy_res_ipsrcdstport;
  return pt;
}

// Entropy ip src computing function
float
compute_entropy_ips (int cnt_unique, int cnt)
{
  float entropy_normal = 0.0;
  float probability = 0.0;
  struct ip_src_frequency *s;
  for (s = pro->ips; s != NULL; s = s->hh.next)
    {
      probability = (float) s->frequency / cnt;
      if (probability > 0.0)
	{
	  entropy_normal -=
	    probability * (float) (log ((double) probability) / log (2.0));
	}
    }
  return entropy_normal;
}

// Entropy ip dst computing function
float
compute_entropy_ipd (int cnt_unique, int cnt)
{
  float entropy_normal = 0.0;
  float probability = 0.0;
  struct ip_dst_frequency *s;
  for (s = pro->ipd; s != NULL; s = s->hh.next)
    {
      probability = (float) s->frequency / cnt;
      if (probability > 0.0)
	{
	  entropy_normal -=
	    probability * (float) (log ((double) probability) / log (2.0));
	}
    }
  return entropy_normal;
}

// Entropy ip src - src port computing function
float
compute_entropy_ipsrcport (int cnt_unique, int cnt)
{
  float entropy_normal = 0.0;
  float probability = 0.0;
  struct ip_src_srcport_frequency *s;
  for (s = pro->ipsp; s != NULL; s = s->hh.next)
    {
      probability = (float) s->frequency / cnt;
      if (probability > 0.0)
	{
	  entropy_normal -=
	    probability * (float) (log ((double) probability) / log (2.0));
	}
    }
  return entropy_normal;
}

// Entropy ip dst - dst port computing function
float
compute_entropy_ipdstport (int cnt_unique, int cnt)
{
  float entropy_normal = 0.0;
  float probability = 0.0;
  struct ip_dst_dstport_frequency *s;
  for (s = pro->ipdp; s != NULL; s = s->hh.next)
    {
      probability = (float) s->frequency / cnt;
      if (probability > 0.0)
	{
	  entropy_normal -=
	    probability * (float) (log ((double) probability) / log (2.0));
	}
    }
  return entropy_normal;
}

// Entropy packets number - bytes number computing function
float
compute_entropy_npackets_nbytes (int cnt_unique, int cnt)
{
  float entropy_normal = 0.0;
  float probability = 0.0;
  struct npackets_nbytes *s;
  for (s = pro->pb; s != NULL; s = s->hh.next)
    {
      probability = (float) s->frequency / cnt;
      if (probability > 0.0)
	{
	  entropy_normal -=
	    probability * (float) (log ((double) probability) / log (2.0));
	}
    }
  return entropy_normal;
}

// Entropy ip src - ip dst - src port - dst port computing function
float
compute_entropy_ipsrcdstport (int cnt_unique, int cnt)
{
  float entropy_normal = 0.0;
  float probability = 0.0;
  struct ipsrcdst_srcdstport *s;
  for (s = pro->ipsdp; s != NULL; s = s->hh.next)
    {
      probability = (float) s->frequency / cnt;
      if (probability > 0.0)
	{
	  entropy_normal -=
	    probability * (float) (log ((double) probability) / log (2.0));
	}
    }
  return entropy_normal;
}


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
Syll. fung. (Abellini) 5: 1021 (1887)

#### Original name
Agaricus umbonatescens Peck

### Remarks
null

redpajama_set_name: RedPajamaGithub


text:
package org.bitcoins.core.number

/** Helper trait to cache data types that represent numbers
  * Examples are [[org.bitcoins.core.script.constant.ScriptNumber]]
  * [[UInt32]] [[UInt64]] etc
  */
trait NumberCache[T] {
  def fromNativeNumber(long: Long): T

  /** The minimum number cached (inclusive) */
  def minCached: Long = 0

  /** The max number cached (inclusive) */
  def maxCached: Long = 255

  private lazy val cache: Vector[T] = {
    minCached.to(maxCached).map(fromNativeNumber).toVector
  }

  /** Checks if the given number is cached
    * if not, allocates a new object to represent the number
    */
  def checkCached(long: Long): T = {
    if (long <= maxCached && long >= minCached) cache(long.toInt)
    else {
      fromNativeNumber(long)
    }
  }
}

/** Number cache, except for scala [[BigInt]] */
trait NumberCacheBigInt[T] extends NumberCache[T] {

  private val bigIntCache: Vector[T] = {
    minCachedBigInt
      .to(maxCachedBigInt)
      .map(fromBigInt)
      .toVector
  }

  def fromBigInt(bigInt: BigInt): T

  /** The minimum number cached (inclusive) */
  def minCachedBigInt: BigInt = BigInt(minCached)

  /** The max number cached (inclusive) */
  def maxCachedBigInt: BigInt = BigInt(maxCached)

  /** [[org.bitcoins.core.protocol.CompactSizeUInt]] uses a UInt64
    * which means we have larger uint64s used on a regular basis
    */
  override def maxCached: Long = 2048

  /** Checks if the given number is cached
    * if not, allocates a new object to represent the number
    */
  def checkCachedBigInt(bigInt: BigInt): T = {
    if (bigInt <= maxCachedBigInt && bigInt >= minCachedBigInt)
      bigIntCache(bigInt.toInt)
    else {
      fromBigInt(bigInt)
    }
  }
}


text:
{% include 'site_base.html' %}

List of Guards on Work

		Guard Name
		Guard Phone Number
		Stationed At

{% for guard in guards %}

	{{guard.guard_user.first_name}} {{guard.guard_user.last_name}}
	{{guard.guard_phone_number}}
	{{guard.guard.place}}

{% endfor %}


text:
#Region "Microsoft.VisualBasic::faba8430c9585a626cf67d1b28930e5f, src\assembly\assembly\mzPack\mzWebCache\Cache.vb"

    ' Author:
    '
    '       xieguigang (gg.xie@bionovogene.com, BioNovoGene Co., LTD.)
    '
    ' Copyright (c) 2018 gg.xie@bionovogene.com, BioNovoGene Co., LTD.
    '
    '
    ' MIT License
    '
    '
    ' Permission is hereby granted, free of charge, to any person obtaining a copy
    ' of this software and associated documentation files (the "Software"), to deal
    ' in the Software without restriction, including without limitation the rights
    ' to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    ' copies of the Software, and to permit persons to whom the Software is
    ' furnished to do so, subject to the following conditions:
    '
    ' The above copyright notice and this permission notice shall be included in all
    ' copies or substantial portions of the Software.
    '
    ' THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    ' IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    ' FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    ' AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    ' LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    ' OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
    ' SOFTWARE.

    ' /********************************************************************************/

    ' Summaries:

    '     Module Cache
    '
    '         Function: (+2 Overloads) Load, vectorBase64
    '
    '         Sub: Write
    '
    '
    ' /********************************************************************************/

#End Region

Imports System.IO
Imports System.Runtime.CompilerServices
Imports BioNovoGene.Analytical.MassSpectrometry.Assembly.MarkupData
Imports BioNovoGene.Analytical.MassSpectrometry.Assembly.MarkupData.mzML
Imports Microsoft.VisualBasic.Net.Http

Namespace mzData.mzWebCache

    Public Module Cache

        ''' <summary>
        ''' load scan data from ``mzml`` file
        ''' </summary>
        ''' <param name="raw"></param>
        ''' <param name="mzErr$"></param>
        ''' <returns></returns>
        '''
        <MethodImpl(MethodImplOptions.AggressiveInlining)>
        Public Function Load(raw As IEnumerable(Of spectrum), Optional mzErr$ = "da:0.1") As IEnumerable(Of ScanMS1)
            Return New mzMLScans(mzErr).Load(raw)
        End Function

        ''' <summary>
        ''' load scan data from ``mzxml`` file
        ''' </summary>
        ''' <param name="raw"></param>
        ''' <param name="mzErr$"></param>
        ''' <returns></returns>
        '''
        <MethodImpl(MethodImplOptions.AggressiveInlining)>
        Public Function Load(raw As IEnumerable(Of mzXML.scan), Optional mzErr$ = "da:0.1") As IEnumerable(Of ScanMS1)
            Return New mzXMLScans(mzErr).Load(raw)
        End Function

        ''' <summary>
        ''' write ASCII text format(for BioDeep javascript data reader)
        ''' </summary>
        ''' <param name="scans"></param>
        ''' <param name="file">auto flush to file</param>
        <Extension>
        Public Sub Write(scans As IEnumerable(Of ScanMS1), file As Stream)
            Using writer As New StreamWriter(file)
                For Each scan As ScanMS1 In scans
                    Call writer.WriteLine(scan.scan_id)
                    Call writer.WriteLine({scan.rt, scan.BPC, scan.TIC}.JoinBy(","))
                    Call writer.WriteLine(scan.mz.vectorBase64)
                    Call writer.WriteLine(scan.into.vectorBase64)

                    For Each product As ScanMS2 In scan.products
                        Call writer.WriteLine(product.scan_id)
                        Call writer.WriteLine({product.parentMz, product.rt, product.intensity, product.polarity}.JoinBy(","))
                        Call writer.WriteLine(product.mz.vectorBase64)
                        Call writer.WriteLine(product.into.vectorBase64)
                    Next

                    Call writer.WriteLine("-----")
                Next

                Call writer.Flush()
            End Using
        End Sub

        <Extension>
        Private Function vectorBase64(vec As Double()) As String
            Dim convertToNetworkByteOrder As Boolean = BitConverter.IsLittleEndian
            Dim data As Byte()

            Using buffer As New MemoryStream
                For Each x As Double In vec
                    data = BitConverter.GetBytes(x)

                    If convertToNetworkByteOrder Then
                        ' 需要颠倒为network byteorder
                        Call Array.Reverse(data)
                    End If

                    buffer.Write(data, Scan0, data.Length)
                Next

                Return buffer.ToArray.ToBase64String
            End Using
        End Function
    End Module
End Namespace


text:
require 'active_support/core_ext/object/blank'
require 'arel/visitors/bind_visitor'

module ActiveRecord
  module ConnectionAdapters
    class AbstractMysqlAdapter < AbstractAdapter
      class Column < ConnectionAdapters::Column # :nodoc:
        attr_reader :collation

        def initialize(name, default, sql_type = nil, null = true, collation = nil)
          super(name, default, sql_type, null)
          @collation = collation
        end

        def extract_default(default)
          if sql_type =~ /blob/i || type == :text
            if default.blank?
              return null ? nil : ''
            else
              raise ArgumentError, "#{type} columns cannot have a default value: #{default.inspect}"
            end
          elsif missing_default_forged_as_empty_string?(default)
            nil
          else
            super
          end
        end

        def has_default?
          return false if sql_type =~ /blob/i || type == :text #mysql forbids defaults on blob and text columns
          super
        end

        # Must return the relevant concrete adapter
        def adapter
          raise NotImplementedError
        end

        def case_sensitive?
          collation && !collation.match(/_ci$/)
        end

        private

        def simplified_type(field_type)
          return :boolean if adapter.emulate_booleans && field_type.downcase.index("tinyint(1)")

          case field_type
          when /enum/i, /set/i then :string
          when /year/i         then :integer
          when /bit/i          then :binary
          else
            super
          end
        end

        def extract_limit(sql_type)
          case sql_type
          when /blob|text/i
            case sql_type
            when /tiny/i
              255
            when /medium/i
              16777215
            when /long/i
              2147483647 # mysql only allows 2^31-1, not 2^32-1, somewhat inconsistently with the tiny/medium/normal cases
            else
              super # we could return 65535 here, but we leave it undecorated by default
            end
          when /^bigint/i;    8
          when /^int/i;       4
          when /^mediumint/i; 3
          when /^smallint/i;  2
          when /^tinyint/i;   1
          else
            super
          end
        end

        # MySQL misreports NOT NULL column default when none is given.
        # We can't detect this for columns which may have a legitimate ''
        # default (string) but we can for others (integer, datetime, boolean,
        # and the rest).
        #
        # Test whether the column has default '', is not null, and is not
        # a type allowing default ''.
        def missing_default_forged_as_empty_string?(default)
          type != :string && !null && default == ''
        end
      end

      ##
      # :singleton-method:
      # By default, the MysqlAdapter will consider all columns of type <tt>tinyint(1)</tt>
      # as boolean. If you wish to disable this emulation (which was the default
      # behavior in versions 0.13.1 and earlier) you can add the following line
      # to your application.rb file:
      #
      #   ActiveRecord::ConnectionAdapters::Mysql[2]Adapter.emulate_booleans = false
      class_attribute :emulate_booleans
      self.emulate_booleans = true

      LOST_CONNECTION_ERROR_MESSAGES = [
        "Server shutdown in progress",
        "Broken pipe",
        "Lost connection to MySQL server during query",
        "MySQL server has gone away" ]

      QUOTED_TRUE, QUOTED_FALSE = '1', '0'

      NATIVE_DATABASE_TYPES = {
        :primary_key => "int(11) DEFAULT NULL auto_increment PRIMARY KEY",
        :string      => { :name => "varchar", :limit => 255 },
        :text        => { :name => "text" },
        :integer     => { :name => "int", :limit => 4 },
        :float       => { :name => "float" },
        :decimal     => { :name => "decimal" },
        :datetime    => { :name => "datetime" },
        :timestamp   => { :name => "datetime" },
        :time        => { :name => "time" },
        :date        => { :name => "date" },
        :binary      => { :name => "blob" },
        :boolean     => { :name => "tinyint", :limit => 1 }
      }

      class BindSubstitution < Arel::Visitors::MySQL # :nodoc:
        include Arel::Visitors::BindVisitor
      end

      # FIXME: Make the first parameter more similar for the two adapters
      def initialize(connection, logger, connection_options, config)
        super(connection, logger)
        @connection_options, @config = connection_options, config
        @quoted_column_names, @quoted_table_names = {}, {}

        if config.fetch(:prepared_statements) { true }
          @visitor = Arel::Visitors::MySQL.new self
        else
          @visitor = BindSubstitution.new self
        end
      end

      def adapter_name #:nodoc:
        self.class::ADAPTER_NAME
      end

      # Returns true, since this connection adapter supports migrations.
      def supports_migrations?
        true
      end

      def supports_primary_key?
        true
      end

      # Returns true, since this connection adapter supports savepoints.
      def supports_savepoints?
        true
      end

      def supports_bulk_alter? #:nodoc:
        true
      end

      # Technically MySQL allows to create indexes with the sort order syntax
      # but at the moment (5.5) it doesn't yet implement them
      def supports_index_sort_order?
        true
      end

      def native_database_types
        NATIVE_DATABASE_TYPES
      end

      # HELPER METHODS ===========================================

      # The two drivers have slightly different ways of yielding hashes of results, so
      # this method must be implemented to provide a uniform interface.
      def each_hash(result) # :nodoc:
        raise NotImplementedError
      end

      # Overridden by the adapters to instantiate their specific Column type.
      def new_column(field, default, type, null, collation) # :nodoc:
        Column.new(field, default, type, null, collation)
      end

      # Must return the Mysql error number from the exception, if the exception has an
      # error number.
      def error_number(exception) # :nodoc:
        raise NotImplementedError
      end

      # QUOTING ==================================================

      def quote(value, column = nil)
        if value.kind_of?(String) && column && column.type == :binary && column.class.respond_to?(:string_to_binary)
          s = column.class.string_to_binary(value).unpack("H*")[0]
          "x'#{s}'"
        elsif value.kind_of?(BigDecimal)
          value.to_s("F")
        else
          super
        end
      end

      def quote_column_name(name) #:nodoc:
        @quoted_column_names[name] ||= "`#{name.to_s.gsub('`', '``')}`"
      end

      def quote_table_name(name) #:nodoc:
        @quoted_table_names[name] ||= quote_column_name(name).gsub('.', '`.`')
      end

      def quoted_true
        QUOTED_TRUE
      end

      def quoted_false
        QUOTED_FALSE
      end

      # REFERENTIAL INTEGRITY ====================================

      def disable_referential_integrity(&block) #:nodoc:
        old = select_value("SELECT @@FOREIGN_KEY_CHECKS")

        begin
          update("SET FOREIGN_KEY_CHECKS = 0")
          yield
        ensure
          update("SET FOREIGN_KEY_CHECKS = #{old}")
        end
      end

      # DATABASE STATEMENTS ======================================

      # Executes the SQL statement in the context of this connection.
      def execute(sql, name = nil)
        if name == :skip_logging
          @connection.query(sql)
        else
          log(sql, name) { @connection.query(sql) }
        end
      rescue ActiveRecord::StatementInvalid => exception
        if exception.message.split(":").first =~ /Packets out of order/
          raise ActiveRecord::StatementInvalid, "'Packets out of order' error was received from the database. Please update your mysql bindings (gem install mysql) and read http://dev.mysql.com/doc/mysql/en/password-hashing.html for more information. If you're on Windows, use the Instant Rails installer to get the updated mysql bindings."
        else
          raise
        end
      end

      # MysqlAdapter has to free a result after using it, so we use this method to write
      # stuff in a abstract way without concerning ourselves about whether it needs to be
      # explicitly freed or not.
      def execute_and_free(sql, name = nil) #:nodoc:
        yield execute(sql, name)
      end

      def update_sql(sql, name = nil) #:nodoc:
        super
        @connection.affected_rows
      end

      def begin_db_transaction
        execute "BEGIN"
      rescue Exception
        # Transactions aren't supported
      end

      def commit_db_transaction #:nodoc:
        execute "COMMIT"
      rescue Exception
        # Transactions aren't supported
      end

      def rollback_db_transaction #:nodoc:
        execute "ROLLBACK"
      rescue Exception
        # Transactions aren't supported
      end

      def create_savepoint
        execute("SAVEPOINT #{current_savepoint_name}")
      end

      def rollback_to_savepoint
        execute("ROLLBACK TO SAVEPOINT #{current_savepoint_name}")
      end

      def release_savepoint
        execute("RELEASE SAVEPOINT #{current_savepoint_name}")
      end

      # In the simple case, MySQL allows us to place JOINs directly into the UPDATE
      # query. However, this does not allow for LIMIT, OFFSET and ORDER. To support
      # these, we must use a subquery. However, MySQL is too stupid to create a
      # temporary table for this automatically, so we have to give it some prompting
      # in the form of a subsubquery. Ugh!
      def join_to_update(update, select) #:nodoc:
        if select.limit || select.offset || select.orders.any?
          subsubselect = select.clone
          subsubselect.projections = [update.key]

          subselect = Arel::SelectManager.new(select.engine)
          subselect.project Arel.sql(update.key.name)
          subselect.from subsubselect.as('__active_record_temp')

          update.where update.key.in(subselect)
        else
          update.table select.source
          update.wheres = select.constraints
        end
      end

      # SCHEMA STATEMENTS ========================================

      def structure_dump #:nodoc:
        if supports_views?
          sql = "SHOW FULL TABLES WHERE Table_type = 'BASE TABLE'"
        else
          sql = "SHOW TABLES"
        end

        select_all(sql).map { |table|
          table.delete('Table_type')
          sql = "SHOW CREATE TABLE #{quote_table_name(table.to_a.first.last)}"
          exec_without_stmt(sql).first['Create Table'] + ";\n\n"
        }.join
      end

      # Drops the database specified on the +name+ attribute
      # and creates it again using the provided +options+.
      def recreate_database(name, options = {})
        drop_database(name)
        create_database(name, options)
      end

      # Create a new MySQL database with optional <tt>:charset</tt> and <tt>:collation</tt>.
      # Charset defaults to utf8.
      #
      # Example:
      #   create_database 'charset_test', :charset => 'latin1', :collation => 'latin1_bin'
      #   create_database 'matt_development'
      #   create_database 'matt_development', :charset => :big5
      def create_database(name, options = {})
        if options[:collation]
          execute "CREATE DATABASE `#{name}` DEFAULT CHARACTER SET `#{options[:charset] || 'utf8'}` COLLATE `#{options[:collation]}`"
        else
          execute "CREATE DATABASE `#{name}` DEFAULT CHARACTER SET `#{options[:charset] || 'utf8'}`"
        end
      end

      # Drops a MySQL database.
      #
      # Example:
      #   drop_database('sebastian_development')
      def drop_database(name) #:nodoc:
        execute "DROP DATABASE IF EXISTS `#{name}`"
      end

      def current_database
        select_value 'SELECT DATABASE() as db'
      end

      # Returns the database character set.
      def charset
        show_variable 'character_set_database'
      end

      # Returns the database collation strategy.
      def collation
        show_variable 'collation_database'
      end

      def tables(name = nil, database = nil, like = nil) #:nodoc:
        sql = "SHOW TABLES "
        sql << "IN #{quote_table_name(database)} " if database
        sql << "LIKE #{quote(like)}" if like

        execute_and_free(sql, 'SCHEMA') do |result|
          result.collect { |field| field.first }
        end
      end

      def table_exists?(name)
        return false unless name
        return true if tables(nil, nil, name).any?

        name          = name.to_s
        schema, table = name.split('.', 2)

        unless table # A table was provided without a schema
          table  = schema
          schema = nil
        end

        tables(nil, schema, table).any?
      end

      # Returns an array of indexes for the given table.
      def indexes(table_name, name = nil) #:nodoc:
        indexes = []
        current_index = nil
        execute_and_free("SHOW KEYS FROM #{quote_table_name(table_name)}", 'SCHEMA') do |result|
          each_hash(result) do |row|
            if current_index != row[:Key_name]
              next if row[:Key_name] == 'PRIMARY' # skip the primary key
              current_index = row[:Key_name]
              indexes << IndexDefinition.new(row[:Table], row[:Key_name], row[:Non_unique].to_i == 0, [], [])
            end

            indexes.last.columns << row[:Column_name]
            indexes.last.lengths << row[:Sub_part]
          end
        end

        indexes
      end

      # Returns an array of +Column+ objects for the table specified by +table_name+.
      def columns(table_name, name = nil)#:nodoc:
        sql = "SHOW FULL FIELDS FROM #{quote_table_name(table_name)}"
        execute_and_free(sql, 'SCHEMA') do |result|
          each_hash(result).map do |field|
            new_column(field[:Field], field[:Default], field[:Type], field[:Null] == "YES", field[:Collation])
          end
        end
      end

      def create_table(table_name, options = {}) #:nodoc:
        super(table_name, options.reverse_merge(:options => "ENGINE=InnoDB"))
      end

      def bulk_change_table(table_name, operations) #:nodoc:
        sqls = operations.map do |command, args|
          table, arguments = args.shift, args
          method = :"#{command}_sql"

          if respond_to?(method, true)
            send(method, table, *arguments)
          else
            raise "Unknown method called : #{method}(#{arguments.inspect})"
          end
        end.flatten.join(", ")

        execute("ALTER TABLE #{quote_table_name(table_name)} #{sqls}")
      end

      # Renames a table.
      #
      # Example:
      #   rename_table('octopuses', 'octopi')
      def rename_table(table_name, new_name)
        execute "RENAME TABLE #{quote_table_name(table_name)} TO #{quote_table_name(new_name)}"
      end

      def add_column(table_name, column_name, type, options = {})
        execute("ALTER TABLE #{quote_table_name(table_name)} #{add_column_sql(table_name, column_name, type, options)}")
      end

      def change_column_default(table_name, column_name, default)
        column = column_for(table_name, column_name)
        change_column table_name, column_name, column.sql_type, :default => default
      end

      def change_column_null(table_name, column_name, null, default = nil)
        column = column_for(table_name, column_name)

        unless null || default.nil?
          execute("UPDATE #{quote_table_name(table_name)} SET #{quote_column_name(column_name)}=#{quote(default)} WHERE #{quote_column_name(column_name)} IS NULL")
        end

        change_column table_name, column_name, column.sql_type, :null => null
      end

      def change_column(table_name, column_name, type, options = {}) #:nodoc:
        execute("ALTER TABLE #{quote_table_name(table_name)} #{change_column_sql(table_name, column_name, type, options)}")
      end

      def rename_column(table_name, column_name, new_column_name) #:nodoc:
        execute("ALTER TABLE #{quote_table_name(table_name)} #{rename_column_sql(table_name, column_name, new_column_name)}")
      end

      # Maps logical Rails types to MySQL-specific data types.
      def type_to_sql(type, limit = nil, precision = nil, scale = nil)
        case type.to_s
        when 'integer'
          case limit
          when 1; 'tinyint'
          when 2; 'smallint'
          when 3; 'mediumint'
          when nil, 4, 11; 'int(11)'  # compatibility with MySQL default
          when 5..8; 'bigint'
          else raise(ActiveRecordError, "No integer type has byte size #{limit}")
          end
        when 'text'
          case limit
          when 0..0xff;               'tinytext'
          when nil, 0x100..0xffff;    'text'
          when 0x10000..0xffffff;     'mediumtext'
          when 0x1000000..0xffffffff; 'longtext'
          else raise(ActiveRecordError, "No text type has character length #{limit}")
          end
        else
          super
        end
      end

      def add_column_position!(sql, options)
        if options[:first]
          sql << " FIRST"
        elsif options[:after]
          sql << " AFTER #{quote_column_name(options[:after])}"
        end
      end

      # SHOW VARIABLES LIKE 'name'
      def show_variable(name)
        variables = select_all("SHOW VARIABLES LIKE '#{name}'")
        variables.first['Value'] unless variables.empty?
      end

      # Returns a table's primary key and belonging sequence.
      def pk_and_sequence_for(table)
        execute_and_free("SHOW CREATE TABLE #{quote_table_name(table)}", 'SCHEMA') do |result|
          create_table = each_hash(result).first[:"Create Table"]
          if create_table.to_s =~ /PRIMARY KEY\s+(?:USING\s+\w+\s+)?\((.+)\)/
            keys = $1.split(",").map { |key| key.gsub(/[`"]/, "") }
            keys.length == 1 ? [keys.first, nil] : nil
          else
            nil
          end
        end
      end

      # Returns just a table's primary key
      def primary_key(table)
        pk_and_sequence = pk_and_sequence_for(table)
        pk_and_sequence && pk_and_sequence.first
      end

      def case_sensitive_modifier(node)
        Arel::Nodes::Bin.new(node)
      end

      def case_insensitive_comparison(table, attribute, column, value)
        if column.case_sensitive?
          super
        else
          table[attribute].eq(value)
        end
      end

      def limited_update_conditions(where_sql, quoted_table_name, quoted_primary_key)
        where_sql
      end

      protected

      def add_index_length(option_strings, column_names, options = {})
        if options.is_a?(Hash) && length = options[:length]
          case length
          when Hash
            column_names.each {|name| option_strings[name] += "(#{length[name]})" if length.has_key?(name) && length[name].present?}
          when Fixnum
            column_names.each {|name| option_strings[name] += "(#{length})"}
          end
        end

        return option_strings
      end

      def quoted_columns_for_index(column_names, options = {})
        option_strings = Hash[column_names.map {|name| [name, '']}]

        # add index length
        option_strings = add_index_length(option_strings, column_names, options)

        # add index sort order
        option_strings = add_index_sort_order(option_strings, column_names, options)

        column_names.map {|name| quote_column_name(name) + option_strings[name]}
      end

      def translate_exception(exception, message)
        case error_number(exception)
        when 1062
          RecordNotUnique.new(message, exception)
        when 1452
          InvalidForeignKey.new(message, exception)
        else
          super
        end
      end

      def add_column_sql(table_name, column_name, type, options = {})
        add_column_sql = "ADD #{quote_column_name(column_name)} #{type_to_sql(type, options[:limit], options[:precision], options[:scale])}"
        add_column_options!(add_column_sql, options)
        add_column_position!(add_column_sql, options)
        add_column_sql
      end

      def change_column_sql(table_name, column_name, type, options = {})
        column = column_for(table_name, column_name)

        unless options_include_default?(options)
          options[:default] = column.default
        end

        unless options.has_key?(:null)
          options[:null] = column.null
        end

        change_column_sql = "CHANGE #{quote_column_name(column_name)} #{quote_column_name(column_name)} #{type_to_sql(type, options[:limit], options[:precision], options[:scale])}"
        add_column_options!(change_column_sql, options)
        add_column_position!(change_column_sql, options)
        change_column_sql
      end

      def rename_column_sql(table_name, column_name, new_column_name)
        options = {}

        if column = columns(table_name).find { |c| c.name == column_name.to_s }
          options[:default] = column.default
          options[:null] = column.null
        else
          raise ActiveRecordError, "No such column: #{table_name}.#{column_name}"
        end

        current_type = select_one("SHOW COLUMNS FROM #{quote_table_name(table_name)} LIKE '#{column_name}'")["Type"]
        rename_column_sql = "CHANGE #{quote_column_name(column_name)} #{quote_column_name(new_column_name)} #{current_type}"
        add_column_options!(rename_column_sql, options)
        rename_column_sql
      end

      def remove_column_sql(table_name, *column_names)
        columns_for_remove(table_name, *column_names).map {|column_name| "DROP #{column_name}" }
      end
      alias :remove_columns_sql :remove_column

      def add_index_sql(table_name, column_name, options = {})
        index_name, index_type, index_columns = add_index_options(table_name, column_name, options)
        "ADD #{index_type} INDEX #{index_name} (#{index_columns})"
      end

      def remove_index_sql(table_name, options = {})
        index_name = index_name_for_remove(table_name, options)
        "DROP INDEX #{index_name}"
      end

      def add_timestamps_sql(table_name)
        [add_column_sql(table_name, :created_at, :datetime), add_column_sql(table_name, :updated_at, :datetime)]
      end

      def remove_timestamps_sql(table_name)
        [remove_column_sql(table_name, :updated_at), remove_column_sql(table_name, :created_at)]
      end

      private

      def supports_views?
        version[0] >= 5
      end

      def column_for(table_name, column_name)
        unless column = columns(table_name).find { |c| c.name == column_name.to_s }
          raise "No such column: #{table_name}.#{column_name}"
        end
        column
      end
    end
  end
end


text:
<?xml version="1.0" encoding="UTF-8"?>
<!-- This file stores a copy of all RSE Systems referenced by the project
so the systems can be automatically recreated when the project is imported in a new workspace.
This file is automatically generated and updated by the Eclipse IDE.-->
<APSC_Memento>
<host>
<properties>
<property key="hidden.applicator.com.freescale.debugger.applicator.launchconfiguration.lc.wolfcrypt_test_twrk70f120m_Int_Flash_DDRData_Debug_PnE U-MultiLink.proj.wolfcrypt_test" value="com.freescale.debugger.applicator.launchconfiguration.lc.wolfcrypt_test_twrk70f120m_Int_Flash_DDRData_Debug_PnE U-MultiLink.proj.wolfcrypt_test"/>
<property key="host.address" value=""/>
<property key="host.defaultEncoding" value=""/>
<property key="host.defaultUser" value="Christopher Conlon"/>
<property key="host.description" value=""/>
<property key="host.name" value="wolfcrypt_test_twrk70f120m_Int_Flash_DDRData_Debug_PnE U-MultiLink"/>
<property key="host.promptable" value="false"/>
<property key="host.type" value="com.freescale.cdt.debug.cw.core.ui.rse.systemtype.bareboard.hardware"/>
<property key="propertySet.[OptionalPropertySet].enableConnectorServicesPropertyPage" value="false"/>
<property key="propertySet.[OptionalPropertySet].enableGenericHostPropertyPage" value="false"/>
<property key="propertySet.[com.pemicro.mcu.debug.connections.pne.arm].com.freescale.cdt.debug.cw.CW_SHADOWED_PREF.Embedded Initialization.simulator" value=""/>
<property key="propertySet.[com.pemicro.mcu.debug.connections.pne.arm].com.freescale.cdt.debug.cw.core.settings.GdiConnection.Common.PhysicalConnectionAttributeBase" value="com.pemicro.mcu.debug.connections.pne.arm."/>
<property key="propertySet.[com.pemicro.mcu.debug.connections.pne.arm].com.pemicro.mcu.debug.connections.pne.arm.CommandLineArgs" value="arm_icd"/>
<property key="propertySet.[com.pemicro.mcu.debug.connections.pne.arm].com.pemicro.mcu.debug.connections.pne.arm.Library" value="arm_pne_gdi"/>
<property key="propertySet.[com.pemicro.mcu.debug.connections.pne.arm].com.pemicro.mcu.debug.connections.pne.arm.PEDEBUG_CURRENTDEVICE" value="K70FN1M0"/>
<property key="propertySet.[com.pemicro.mcu.debug.connections.pne.arm].com.pemicro.mcu.debug.connections.pne.arm.STARTUP_PORT" value="21"/>
<property key="propertySet.[com.pemicro.mcu.debug.connections.pne.arm].com.pemicro.mcu.debug.connections.pne.arm.STARTUP_interface_selection" value="1"/>
<property key="propertySet.[cw.dbg.conn].rseSystemId" value="com.freescale.cdt.debug.cw.core.ui.rse.systemtype.bareboard.hardware.system.140905160549-0600"/>
<property key="propertySet.[cw.dbg.ct.bareboard.gdi].logData" value="false"/>
<property key="propertySet.[cw.dbg.ct.targetConnLost].RetryConnectionOn" value="false"/>
<property key="propertySet.[cw.dbg.ct.targetConnLost].RetryTimeout" value="20"/>
<property key="propertySet.[cw.dbg.ct.targetConnLost].RetryWithTimeoutOn" value="false"/>
<property key="propertySet.[cw.dbg.ct.targetConnLost].TerminateConnectionOn" value="false"/>
<property key="propertySet.[cw.dbg.ct.targetConnLost].retryPromptUserActionOn" value="true"/>
<property key="propertySet.[cw.dbg.ct].Connection Type" value="com.pemicro.mcu.debug.connections.pne.arm"/>
<property key="propertySet.[cw.ide.settingscache].hidden.HostID" value="com.freescale.cdt.debug.cw.core.ui.rse.systemtype.bareboard.hardware.140905160549-0600"/>
<property key="propertySet.[cw.ide.settingscache].hidden.TimeStamp" value="1409954755358"/>
</properties>
</host>
<host>
<properties>
<property key="host.address" value=""/>
<property key="host.defaultEncoding" value=""/>
<property key="host.defaultUser" value="Christopher Conlon"/>
<property key="host.description" value=""/>
<property key="host.name" value="wolfcrypt_test_twrk70f120m_Int_Flash_DDRData_Debug_PnE U-MultiLink Target"/>
<property key="host.promptable" value="false"/>
<property key="host.type" value="com.freescale.cdt.debug.cw.core.ui.rse.systemtype.bareboard.hardware.system"/>
<property key="propertySet.[OptionalPropertySet].enableConnectorServicesPropertyPage" value="false"/>
<property key="propertySet.[OptionalPropertySet].enableGenericHostPropertyPage" value="false"/>
<property key="propertySet.[cw.dbg.ct.bareboard].enableHSSTIOModelConfig" value="false"/>
<property key="propertySet.[cw.dbg.ct.bareboard].enableNetworkIOModelConfig" value="false"/>
<property key="propertySet.[cw.dbg.ct.bareboard].enableSerialIOModelConfig" value="false"/>
<property key="propertySet.[cw.dbg.ct.bareboard].enableStopTransferIOModelConfig" value="true"/>
<property key="propertySet.[cw.dbg.ct.bareboard].ethernetController" value="UEC1"/>
<property key="propertySet.[cw.dbg.ct.bareboard].executeReset" value="true"/>
<property key="propertySet.[cw.dbg.ct.bareboard].initPath" value="${ProjDirPath}/Debugger/init_kinetis.tcl"/>
<property key="propertySet.[cw.dbg.ct.bareboard].memConfigPath" value="${ProjDirPath}/Debugger/K70FN1M0.mem"/>
<property key="propertySet.[cw.dbg.ct.bareboard].networkDebuggerAddress" value="127.0.0.1"/>
<property key="propertySet.[cw.dbg.ct.bareboard].networkGateway" value="127.0.0.1"/>
<property key="propertySet.[cw.dbg.ct.bareboard].networkMACAddress" value="**-**-**-**-**-**"/>
<property key="propertySet.[cw.dbg.ct.bareboard].networkNetMask" value="255.255.255.255"/>
<property key="propertySet.[cw.dbg.ct.bareboard].networkTargetAddress" value="127.0.0.1"/>
<property key="propertySet.[cw.dbg.ct.bareboard].networkUDPPort" value="1234"/>
<property key="propertySet.[cw.dbg.ct.bareboard].noIOModelConfig" value="false"/>
<property key="propertySet.[cw.dbg.ct.bareboard].runOutOfReset" value="false"/>
<property key="propertySet.[cw.dbg.ct.bareboard].targetIsPalladium" value="false"/>
<property key="propertySet.[cw.dbg.ct.bareboard].useInitFile" value="true"/>
<property key="propertySet.[cw.dbg.ct.bareboard].useMemoryConfigFile" value="true"/>
<property key="propertySet.[cw.dbg.ct.bareboard].useNetworkGateway" value="false"/>
<property key="propertySet.[cw.dbg.ct.bareboard].useNetworkMACAddress" value="false"/>
<property key="propertySet.[cw.dbg.ct.bareboard].useNetworkUDPPort" value="false"/>
<property key="propertySet.[cw.dbg.main].systemType" value="com.freescale.cw.system.kinetis.K70F.K70FN1M0"/>
<property key="propertySet.[cw.ide.settingscache].hidden.HostID" value="com.freescale.cdt.debug.cw.core.ui.rse.systemtype.bareboard.hardware.system.140905160549-0600"/>
<property key="propertySet.[cw.ide.settingscache].hidden.TimeStamp" value="1409954755358"/>
</properties>
</host>
<host>
<properties>
<property key="hidden.applicator.com.freescale.debugger.applicator.launchconfiguration.lc.wolfcrypt_test_twrk70f120m_Int_Flash_DDRData_Release_PnE U-MultiLink.proj.wolfcrypt_test" value="com.freescale.debugger.applicator.launchconfiguration.lc.wolfcrypt_test_twrk70f120m_Int_Flash_DDRData_Release_PnE U-MultiLink.proj.wolfcrypt_test"/>
<property key="host.address" value=""/>
<property key="host.defaultEncoding" value=""/>
<property key="host.defaultUser" value="Christopher Conlon"/>
<property key="host.description" value=""/>
<property key="host.name" value="wolfcrypt_test_twrk70f120m_Int_Flash_DDRData_Release_PnE U-MultiLink"/>
<property key="host.promptable" value="false"/>
<property key="host.type" value="com.freescale.cdt.debug.cw.core.ui.rse.systemtype.bareboard.hardware"/>
<property key="propertySet.[OptionalPropertySet].enableConnectorServicesPropertyPage" value="false"/>
<property key="propertySet.[OptionalPropertySet].enableGenericHostPropertyPage" value="false"/>
<property key="propertySet.[com.pemicro.mcu.debug.connections.pne.arm].com.freescale.cdt.debug.cw.CW_SHADOWED_PREF.Embedded Initialization.simulator" value=""/>
<property key="propertySet.[com.pemicro.mcu.debug.connections.pne.arm].com.freescale.cdt.debug.cw.core.settings.GdiConnection.Common.PhysicalConnectionAttributeBase" value="com.pemicro.mcu.debug.connections.pne.arm."/>
<property key="propertySet.[com.pemicro.mcu.debug.connections.pne.arm].com.pemicro.mcu.debug.connections.pne.arm.CommandLineArgs" value="arm_icd"/>
<property key="propertySet.[com.pemicro.mcu.debug.connections.pne.arm].com.pemicro.mcu.debug.connections.pne.arm.Library" value="arm_pne_gdi"/>
<property key="propertySet.[com.pemicro.mcu.debug.connections.pne.arm].com.pemicro.mcu.debug.connections.pne.arm.PEDEBUG_CURRENTDEVICE" value="K70FN1M0"/>
<property key="propertySet.[com.pemicro.mcu.debug.connections.pne.arm].com.pemicro.mcu.debug.connections.pne.arm.STARTUP_PORT" value="21"/>
<property key="propertySet.[com.pemicro.mcu.debug.connections.pne.arm].com.pemicro.mcu.debug.connections.pne.arm.STARTUP_interface_selection" value="1"/>
<property key="propertySet.[cw.dbg.conn].rseSystemId" value="com.freescale.cdt.debug.cw.core.ui.rse.systemtype.bareboard.hardware.system.140905160549-0600.1"/>
<property key="propertySet.[cw.dbg.ct.bareboard.gdi].logData" value="false"/>
<property key="propertySet.[cw.dbg.ct.targetConnLost].RetryConnectionOn" value="false"/>
<property key="propertySet.[cw.dbg.ct.targetConnLost].RetryTimeout" value="20"/>
<property key="propertySet.[cw.dbg.ct.targetConnLost].RetryWithTimeoutOn" value="false"/>
<property key="propertySet.[cw.dbg.ct.targetConnLost].TerminateConnectionOn" value="false"/>
<property key="propertySet.[cw.dbg.ct.targetConnLost].retryPromptUserActionOn" value="true"/>
<property key="propertySet.[cw.dbg.ct].Connection Type" value="com.pemicro.mcu.debug.connections.pne.arm"/>
<property key="propertySet.[cw.ide.settingscache].hidden.HostID" value="com.freescale.cdt.debug.cw.core.ui.rse.systemtype.bareboard.hardware.140905160549-0600.1"/>
<property key="propertySet.[cw.ide.settingscache].hidden.TimeStamp" value="1409954755358"/>
</properties>
</host>
<host>
<properties>
<property key="host.address" value=""/>
<property key="host.defaultEncoding" value=""/>
<property key="host.defaultUser" value="Christopher Conlon"/>
<property key="host.description" value=""/>
<property key="host.name" value="wolfcrypt_test_twrk70f120m_Int_Flash_DDRData_Release_PnE U-MultiLink Target"/>
<property key="host.promptable" value="false"/>
<property key="host.type" value="com.freescale.cdt.debug.cw.core.ui.rse.systemtype.bareboard.hardware.system"/>
<property key="propertySet.[OptionalPropertySet].enableConnectorServicesPropertyPage" value="false"/>
<property key="propertySet.[OptionalPropertySet].enableGenericHostPropertyPage" value="false"/>
<property key="propertySet.[cw.dbg.ct.bareboard].enableHSSTIOModelConfig" value="false"/>
<property key="propertySet.[cw.dbg.ct.bareboard].enableNetworkIOModelConfig" value="false"/>
<property key="propertySet.[cw.dbg.ct.bareboard].enableSerialIOModelConfig" value="false"/>
<property key="propertySet.[cw.dbg.ct.bareboard].enableStopTransferIOModelConfig" value="true"/>
<property key="propertySet.[cw.dbg.ct.bareboard].ethernetController" value="UEC1"/>
<property key="propertySet.[cw.dbg.ct.bareboard].executeReset" value="true"/>
<property key="propertySet.[cw.dbg.ct.bareboard].initPath" value="${ProjDirPath}/Debugger/init_kinetis.tcl"/>
<property key="propertySet.[cw.dbg.ct.bareboard].memConfigPath" value="${ProjDirPath}/Debugger/K70FN1M0.mem"/>
<property key="propertySet.[cw.dbg.ct.bareboard].networkDebuggerAddress" value="127.0.0.1"/>
<property key="propertySet.[cw.dbg.ct.bareboard].networkGateway" value="127.0.0.1"/>
<property key="propertySet.[cw.dbg.ct.bareboard].networkMACAddress" value="**-**-**-**-**-**"/>
<property key="propertySet.[cw.dbg.ct.bareboard].networkNetMask" value="255.255.255.255"/>
<property key="propertySet.[cw.dbg.ct.bareboard].networkTargetAddress" value="127.0.0.1"/>
<property key="propertySet.[cw.dbg.ct.bareboard].networkUDPPort" value="1234"/>
<property key="propertySet.[cw.dbg.ct.bareboard].noIOModelConfig" value="false"/>
<property key="propertySet.[cw.dbg.ct.bareboard].runOutOfReset" value="false"/>
<property key="propertySet.[cw.dbg.ct.bareboard].targetIsPalladium" value="false"/>
<property key="propertySet.[cw.dbg.ct.bareboard].useInitFile" value="true"/>
<property key="propertySet.[cw.dbg.ct.bareboard].useMemoryConfigFile" value="true"/>
<property key="propertySet.[cw.dbg.ct.bareboard].useNetworkGateway" value="false"/>
<property key="propertySet.[cw.dbg.ct.bareboard].useNetworkMACAddress" value="false"/>
<property key="propertySet.[cw.dbg.ct.bareboard].useNetworkUDPPort" value="false"/>
<property key="propertySet.[cw.dbg.main].systemType" value="com.freescale.cw.system.kinetis.K70F.K70FN1M0"/>
<property key="propertySet.[cw.ide.settingscache].hidden.HostID" value="com.freescale.cdt.debug.cw.core.ui.rse.systemtype.bareboard.hardware.system.140905160549-0600.1"/>
<property key="propertySet.[cw.ide.settingscache].hidden.TimeStamp" value="1409954755358"/>
</properties>
</host>
<host>
<properties>
<property key="hidden.applicator.com.freescale.debugger.applicator.launchconfiguration.lc.wolfcrypt_test_twrk70f120m_Int_Flash_SramData_Debug_JTrace.proj.wolfcrypt_test" value="com.freescale.debugger.applicator.launchconfiguration.lc.wolfcrypt_test_twrk70f120m_Int_Flash_SramData_Debug_JTrace.proj.wolfcrypt_test"/>
<property key="hidden.applicator.com.freescale.debugger.applicator.launchconfiguration.lc.wolfcrypt_test_twrk70f120m_Int_Flash_SramData_Debug_PnE U-MultiLink.proj.wolfcrypt_test" value="com.freescale.debugger.applicator.launchconfiguration.lc.wolfcrypt_test_twrk70f120m_Int_Flash_SramData_Debug_PnE U-MultiLink.proj.wolfcrypt_test"/>
<property key="host.address" value=""/>
<property key="host.defaultEncoding" value=""/>
<property key="host.defaultUser" value="Christopher Conlon"/>
<property key="host.description" value=""/>
<property key="host.name" value="wolfcrypt_test_twrk70f120m_Int_Flash_SramData_Debug_PnE U-MultiLink"/>
<property key="host.promptable" value="false"/>
<property key="host.type" value="com.freescale.cdt.debug.cw.core.ui.rse.systemtype.bareboard.hardware"/>
<property key="propertySet.[OptionalPropertySet].enableConnectorServicesPropertyPage" value="false"/>
<property key="propertySet.[OptionalPropertySet].enableGenericHostPropertyPage" value="false"/>
<property key="propertySet.[com.freescale.mcu.debug.connections.jlink.arm].com.freescale.cdt.debug.cw.CW_SHADOWED_PREF.Embedded Initialization.simulator" value=""/>
<property key="propertySet.[com.freescale.mcu.debug.connections.jlink.arm].com.freescale.cdt.debug.cw.core.settings.GdiConnection.Common.PhysicalConnectionAttributeBase" value="com.freescale.mcu.debug.connections.jlink.arm."/>
<property key="propertySet.[com.freescale.mcu.debug.connections.jlink.arm].com.freescale.cdt.debug.cw.core.settings.GdiConnection.Common.SimulatorConnectionAttributeBase" value=""/>
<property key="propertySet.[com.freescale.mcu.debug.connections.jlink.arm].com.freescale.mcu.debug.connections.jlink.arm.CommandLineArgs" value=""/>
<property key="propertySet.[com.freescale.mcu.debug.connections.jlink.arm].com.freescale.mcu.debug.connections.jlink.arm.ConfigFile" value=""/>
<property key="propertySet.[com.freescale.mcu.debug.connections.jlink.arm].com.freescale.mcu.debug.connections.jlink.arm.Debug port interface" value="JTAG"/>
<property key="propertySet.[com.freescale.mcu.debug.connections.jlink.arm].com.freescale.mcu.debug.connections.jlink.arm.Delay after reset (ms)" value="0"/>
<property key="propertySet.[com.freescale.mcu.debug.connections.jlink.arm].com.freescale.mcu.debug.connections.jlink.arm.JTAG/SWD fixed speed (Khz)" value="4000"/>
<property key="propertySet.[com.freescale.mcu.debug.connections.jlink.arm].com.freescale.mcu.debug.connections.jlink.arm.JTAG/SWD speed" value="Fixed"/>
<property key="propertySet.[com.freescale.mcu.debug.connections.jlink.arm].com.freescale.mcu.debug.connections.jlink.arm.Library" value="arm_jlink_gdi"/>
<property key="propertySet.[com.freescale.mcu.debug.connections.jlink.arm].com.freescale.mcu.debug.connections.jlink.arm.USB device" value="0"/>
<property key="propertySet.[com.freescale.mcu.debug.connections.jlink.arm].com.freescale.mcu.debug.connections.jlink.arm.names_of_user_added_attributes" value=""/>
<property key="propertySet.[com.pemicro.mcu.debug.connections.pne.arm].com.freescale.cdt.debug.cw.CW_SHADOWED_PREF.Embedded Initialization.simulator" value=""/>
<property key="propertySet.[com.pemicro.mcu.debug.connections.pne.arm].com.freescale.cdt.debug.cw.core.settings.GdiConnection.Common.PhysicalConnectionAttributeBase" value="com.pemicro.mcu.debug.connections.pne.arm."/>
<property key="propertySet.[com.pemicro.mcu.debug.connections.pne.arm].com.pemicro.mcu.debug.connections.pne.arm.CommandLineArgs" value="arm_icd"/>
<property key="propertySet.[com.pemicro.mcu.debug.connections.pne.arm].com.pemicro.mcu.debug.connections.pne.arm.Library" value="arm_pne_gdi"/>
<property key="propertySet.[com.pemicro.mcu.debug.connections.pne.arm].com.pemicro.mcu.debug.connections.pne.arm.PEDEBUG_CURRENTDEVICE" value="K70FN1M0"/>
<property key="propertySet.[com.pemicro.mcu.debug.connections.pne.arm].com.pemicro.mcu.debug.connections.pne.arm.STARTUP_PORT" value="21"/>
<property key="propertySet.[com.pemicro.mcu.debug.connections.pne.arm].com.pemicro.mcu.debug.connections.pne.arm.STARTUP_interface_selection" value="1"/>
<property key="propertySet.[cw.dbg.conn].rseSystemId" value="com.freescale.cdt.debug.cw.core.ui.rse.systemtype.bareboard.hardware.system.140905160549-0600.2"/>
<property key="propertySet.[cw.dbg.ct.bareboard.gdi].logData" value="false"/>
<property key="propertySet.[cw.dbg.ct.targetConnLost].RetryConnectionOn" value="false"/>
<property key="propertySet.[cw.dbg.ct.targetConnLost].RetryTimeout" value="20"/>
<property key="propertySet.[cw.dbg.ct.targetConnLost].RetryWithTimeoutOn" value="false"/>
<property key="propertySet.[cw.dbg.ct.targetConnLost].TerminateConnectionOn" value="false"/>
<property key="propertySet.[cw.dbg.ct.targetConnLost].retryPromptUserActionOn" value="true"/>
<property key="propertySet.[cw.dbg.ct].Connection Type" value="com.freescale.mcu.debug.connections.jlink.arm"/>
<property key="propertySet.[cw.dbg.main].templateId" value="None"/>
<property key="propertySet.[cw.ide.settingscache].hidden.HostID" value="com.freescale.cdt.debug.cw.core.ui.rse.systemtype.bareboard.hardware.140905160549-0600.2"/>
<property key="propertySet.[cw.ide.settingscache].hidden.TimeStamp" value="1410292099859"/>
</properties>
</host>
<host>
<properties>
<property key="host.address" value=""/>
<property key="host.defaultEncoding" value=""/>
<property key="host.defaultUser" value="Christopher Conlon"/>
<property key="host.description" value=""/>
<property key="host.name" value="wolfcrypt_test_twrk70f120m_Int_Flash_SramData_Debug_PnE U-MultiLink Target"/>
<property key="host.promptable" value="false"/>
<property key="host.type" value="com.freescale.cdt.debug.cw.core.ui.rse.systemtype.bareboard.hardware.system"/>
<property key="propertySet.[OptionalPropertySet].enableConnectorServicesPropertyPage" value="false"/>
<property key="propertySet.[OptionalPropertySet].enableGenericHostPropertyPage" value="false"/>
<property key="propertySet.[cw.dbg.ct.bareboard].enableHSSTIOModelConfig" value="false"/>
<property key="propertySet.[cw.dbg.ct.bareboard].enableNetworkIOModelConfig" value="false"/>
<property key="propertySet.[cw.dbg.ct.bareboard].enableSerialIOModelConfig" value="false"/>
<property key="propertySet.[cw.dbg.ct.bareboard].enableStopTransferIOModelConfig" value="true"/>
<property key="propertySet.[cw.dbg.ct.bareboard].ethernetController" value="UEC1"/>
<property key="propertySet.[cw.dbg.ct.bareboard].executeReset" value="true"/>
<property key="propertySet.[cw.dbg.ct.bareboard].initPath" value="${ProjDirPath}/Debugger/init_kinetis.tcl"/>
<property key="propertySet.[cw.dbg.ct.bareboard].memConfigPath" value="${ProjDirPath}/Debugger/K70FN1M0.mem"/>
<property key="propertySet.[cw.dbg.ct.bareboard].networkDebuggerAddress" value="127.0.0.1"/>
<property key="propertySet.[cw.dbg.ct.bareboard].networkGateway" value="127.0.0.1"/>
<property key="propertySet.[cw.dbg.ct.bareboard].networkMACAddress" value="**-**-**-**-**-**"/>
<property key="propertySet.[cw.dbg.ct.bareboard].networkNetMask" value="255.255.255.255"/>
<property key="propertySet.[cw.dbg.ct.bareboard].networkTargetAddress" value="127.0.0.1"/>
<property key="propertySet.[cw.dbg.ct.bareboard].networkUDPPort" value="1234"/>
<property key="propertySet.[cw.dbg.ct.bareboard].noIOModelConfig" value="false"/>
<property key="propertySet.[cw.dbg.ct.bareboard].runOutOfReset" value="false"/>
<property key="propertySet.[cw.dbg.ct.bareboard].targetIsPalladium" value="false"/>
<property key="propertySet.[cw.dbg.ct.bareboard].useInitFile" value="true"/>
<property key="propertySet.[cw.dbg.ct.bareboard].useMemoryConfigFile" value="true"/>
<property key="propertySet.[cw.dbg.ct.bareboard].useNetworkGateway" value="false"/>
<property key="propertySet.[cw.dbg.ct.bareboard].useNetworkMACAddress" value="false"/>
<property key="propertySet.[cw.dbg.ct.bareboard].useNetworkUDPPort" value="false"/>
<property key="propertySet.[cw.dbg.main].systemType" value="com.freescale.cw.system.kinetis.K70F.K70FN1M0"/>
<property key="propertySet.[cw.ide.settingscache].hidden.HostID" value="com.freescale.cdt.debug.cw.core.ui.rse.systemtype.bareboard.hardware.system.140905160549-0600.2"/>
<property key="propertySet.[cw.ide.settingscache].hidden.TimeStamp" value="1409954755358"/>
</properties>
</host>
<host>
<properties>
<property key="hidden.applicator.com.freescale.debugger.applicator.launchconfiguration.lc.wolfcrypt_test_twrk70f120m_Int_Flash_SramData_Release_PnE U-MultiLink.proj.wolfcrypt_test" value="com.freescale.debugger.applicator.launchconfiguration.lc.wolfcrypt_test_twrk70f120m_Int_Flash_SramData_Release_PnE U-MultiLink.proj.wolfcrypt_test"/>
<property key="host.address" value=""/>
<property key="host.defaultEncoding" value=""/>
<property key="host.defaultUser" value="Christopher Conlon"/>
<property key="host.description" value=""/>
<property key="host.name" value="wolfcrypt_test_twrk70f120m_Int_Flash_SramData_Release_PnE U-MultiLink"/>
<property key="host.promptable" value="false"/>
<property key="host.type" value="com.freescale.cdt.debug.cw.core.ui.rse.systemtype.bareboard.hardware"/>
<property key="propertySet.[OptionalPropertySet].enableConnectorServicesPropertyPage" value="false"/>
<property key="propertySet.[OptionalPropertySet].enableGenericHostPropertyPage" value="false"/>
<property key="propertySet.[com.pemicro.mcu.debug.connections.pne.arm].com.freescale.cdt.debug.cw.CW_SHADOWED_PREF.Embedded Initialization.simulator" value=""/>
<property key="propertySet.[com.pemicro.mcu.debug.connections.pne.arm].com.freescale.cdt.debug.cw.core.settings.GdiConnection.Common.PhysicalConnectionAttributeBase" value="com.pemicro.mcu.debug.connections.pne.arm."/>
<property key="propertySet.[com.pemicro.mcu.debug.connections.pne.arm].com.pemicro.mcu.debug.connections.pne.arm.CommandLineArgs" value="arm_icd"/>
<property key="propertySet.[com.pemicro.mcu.debug.connections.pne.arm].com.pemicro.mcu.debug.connections.pne.arm.Library" value="arm_pne_gdi"/>
<property key="propertySet.[com.pemicro.mcu.debug.connections.pne.arm].com.pemicro.mcu.debug.connections.pne.arm.PEDEBUG_CURRENTDEVICE" value="K70FN1M0"/>
<property key="propertySet.[com.pemicro.mcu.debug.connections.pne.arm].com.pemicro.mcu.debug.connections.pne.arm.STARTUP_PORT" value="21"/>
<property key="propertySet.[com.pemicro.mcu.debug.connections.pne.arm].com.pemicro.mcu.debug.connections.pne.arm.STARTUP_interface_selection" value="1"/>
<property key="propertySet.[cw.dbg.conn].rseSystemId" value="com.freescale.cdt.debug.cw.core.ui.rse.systemtype.bareboard.hardware.system.140905160549-0600.3"/>
<property key="propertySet.[cw.dbg.ct.bareboard.gdi].logData" value="false"/>
<property key="propertySet.[cw.dbg.ct.targetConnLost].RetryConnectionOn" value="false"/>
<property key="propertySet.[cw.dbg.ct.targetConnLost].RetryTimeout" value="20"/>
<property key="propertySet.[cw.dbg.ct.targetConnLost].RetryWithTimeoutOn" value="false"/>
<property key="propertySet.[cw.dbg.ct.targetConnLost].TerminateConnectionOn" value="false"/>
<property key="propertySet.[cw.dbg.ct.targetConnLost].retryPromptUserActionOn" value="true"/>
<property key="propertySet.[cw.dbg.ct].Connection Type" value="com.pemicro.mcu.debug.connections.pne.arm"/>
<property key="propertySet.[cw.ide.settingscache].hidden.HostID" value="com.freescale.cdt.debug.cw.core.ui.rse.systemtype.bareboard.hardware.140905160549-0600.3"/>
<property key="propertySet.[cw.ide.settingscache].hidden.TimeStamp" value="1409954755358"/>
</properties>
</host>
<host>
<properties>
<property key="host.address" value=""/>
<property key="host.defaultEncoding" value=""/>
<property key="host.defaultUser" value="Christopher Conlon"/>
<property key="host.description" value=""/>
<property key="host.name" value="wolfcrypt_test_twrk70f120m_Int_Flash_SramData_Release_PnE U-MultiLink Target"/>
<property key="host.promptable" value="false"/>
<property key="host.type" value="com.freescale.cdt.debug.cw.core.ui.rse.systemtype.bareboard.hardware.system"/>
<property key="propertySet.[OptionalPropertySet].enableConnectorServicesPropertyPage" value="false"/>
<property key="propertySet.[OptionalPropertySet].enableGenericHostPropertyPage" value="false"/>
<property key="propertySet.[cw.dbg.ct.bareboard].enableHSSTIOModelConfig" value="false"/>
<property key="propertySet.[cw.dbg.ct.bareboard].enableNetworkIOModelConfig" value="false"/>
<property key="propertySet.[cw.dbg.ct.bareboard].enableSerialIOModelConfig" value="false"/>
<property key="propertySet.[cw.dbg.ct.bareboard].enableStopTransferIOModelConfig" value="true"/>
<property key="propertySet.[cw.dbg.ct.bareboard].ethernetController" value="UEC1"/>
<property key="propertySet.[cw.dbg.ct.bareboard].executeReset" value="true"/>
<property key="propertySet.[cw.dbg.ct.bareboard].initPath" value="${ProjDirPath}/Debugger/init_kinetis.tcl"/>
<property key="propertySet.[cw.dbg.ct.bareboard].memConfigPath" value="${ProjDirPath}/Debugger/K70FN1M0.mem"/>
<property key="propertySet.[cw.dbg.ct.bareboard].networkDebuggerAddress" value="127.0.0.1"/>
<property key="propertySet.[cw.dbg.ct.bareboard].networkGateway" value="127.0.0.1"/>
<property key="propertySet.[cw.dbg.ct.bareboard].networkMACAddress" value="**-**-**-**-**-**"/>
<property key="propertySet.[cw.dbg.ct.bareboard].networkNetMask" value="255.255.255.255"/>
<property key="propertySet.[cw.dbg.ct.bareboard].networkTargetAddress" value="127.0.0.1"/>
<property key="propertySet.[cw.dbg.ct.bareboard].networkUDPPort" value="1234"/>
<property key="propertySet.[cw.dbg.ct.bareboard].noIOModelConfig" value="false"/>
<property key="propertySet.[cw.dbg.ct.bareboard].runOutOfReset" value="false"/>
<property key="propertySet.[cw.dbg.ct.bareboard].targetIsPalladium" value="false"/>
<property key="propertySet.[cw.dbg.ct.bareboard].useInitFile" value="true"/>
<property key="propertySet.[cw.dbg.ct.bareboard].useMemoryConfigFile" value="true"/>
<property key="propertySet.[cw.dbg.ct.bareboard].useNetworkGateway" value="false"/>
<property key="propertySet.[cw.dbg.ct.bareboard].useNetworkMACAddress" value="false"/>
<property key="propertySet.[cw.dbg.ct.bareboard].useNetworkUDPPort" value="false"/>
<property key="propertySet.[cw.dbg.main].systemType" value="com.freescale.cw.system.kinetis.K70F.K70FN1M0"/>
<property key="propertySet.[cw.ide.settingscache].hidden.HostID" value="com.freescale.cdt.debug.cw.core.ui.rse.systemtype.bareboard.hardware.system.140905160549-0600.3"/>
<property key="propertySet.[cw.ide.settingscache].hidden.TimeStamp" value="1409954755358"/>
</properties>
</host>
</APSC_Memento>


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<TITLE>TXmlNode.Value</TITLE>
    <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <META name="GENERATOR" content="Doc-O-Matic">
    <LINK rel="STYLESHEET" href="default.css" type="text/css">

NativeXml Help

Content | Index | Reference

TXmlNode.Value

TXmlNode

property Value: Utf8String;

Description

The value of the node. For elements this is the element value (based on first chardata fragment), for attributes this is the attribute value. The string is encoded as UTF8. Use ToWide(Node.Value) or Node.ValueUnicode to get a UnicodeString compatible with "unicode" windows methods.


text:
'use strict';

angular.module('dtuWork')
    .controller('MainCategoryController', function ($scope, $state, $stateParams, jobService, $location, $anchorScroll) {
        $location.hash('main');
        $anchorScroll();
        $scope.type = $stateParams.type;
        $scope.title = ($scope.type === 'ft') ? 'TOÀN THỜI GIAN' : 'BÁN THỜI GIAN';
        $scope.jobList = [];
        jobService.getJobList().success(function (data) {
            for (var i = 0; i < data.length; i++) {
                if (data[i].type === $scope.type) {
                    $scope.jobList.push(data[i]);
                }
            }
        });
    });


text:
package org.jalphanode.jmx;

import com.google.common.base.Preconditions;
import com.google.common.collect.Sets;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.management.JMException;
import javax.management.MBeanServer;
import javax.management.ObjectInstance;
import javax.management.ObjectName;
import java.lang.management.ManagementFactory;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;

/**
 * By default all MBeans are registered in platform MBean server.
 *
 * @author  pribeiro
 */
public class DefaultMBeanRegistry implements MBeanRegistry {

    private static final Logger LOG = LoggerFactory.getLogger(DefaultMBeanRegistry.class);

    public static final String DOMAIN = "org.jalphanode";
    public static final String COMPONENT_KEY = "component";
    public static final String SCHEDULER_JMX_GROUP = "type=Scheduler";

    private final Set<ObjectName> registeredBeans = Sets.newSetFromMap(new ConcurrentHashMap<>());

    private final MBeanServer mBeanServer;

    public DefaultMBeanRegistry() {
        this(ManagementFactory.getPlatformMBeanServer());
    }

    public DefaultMBeanRegistry(final MBeanServer mBeanServer) {
        this.mBeanServer = Preconditions.checkNotNull(mBeanServer, "mBeanServer");
    }

    @Override
    public ObjectInstance register(final Object instance, final String objectName) throws JMException {
        Preconditions.checkNotNull(instance, "instance");
        Preconditions.checkNotNull(objectName, "objectName");

        ObjectName name = getObjectName(objectName);
        ObjectInstance objectInstance = mBeanServer.registerMBean(instance, name);
        registeredBeans.add(name);

        return objectInstance;
    }

    public void unregister(final Object instance, final String objectName) {
        Preconditions.checkNotNull(instance, objectName);

        try {
            ObjectName name = getObjectName(objectName);
            unregister(name);
        } catch (JMException e) {
            LOG.warn("Could not revolve object name for class {} with name {}", instance.getClass(), objectName, e);
        }
    }

    @Override
    public void unregister(final ObjectName name) {
        Preconditions.checkNotNull(name, "name");

        try {
            mBeanServer.unregisterMBean(name);
        } catch (JMException e) {
            LOG.warn("Could not unregister MBean: {}", name, e);
        }

        registeredBeans.remove(name);
    }

    @Override
    public void unregisterAll() {
        registeredBeans.forEach(this::unregister);
        registeredBeans.clear();
    }

    protected ObjectName getObjectName(final String resourceName) throws JMException {
        final StringBuilder nameBuilder = new StringBuilder(DOMAIN).append(':');
        nameBuilder.append(SCHEDULER_JMX_GROUP);
        nameBuilder.append(',');
        nameBuilder.append(COMPONENT_KEY);
        nameBuilder.append('=');
        nameBuilder.append(resourceName);

        return new ObjectName(nameBuilder.toString());
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("DefaultMBeanRegistry [mBeanServer=");
        builder.append(mBeanServer);
        builder.append(']');
        return builder.toString();
    }

}


text:
<?php

/***** Dernière modification : 13/07/2016, Romain TALDU	*****/

require(__DIR__ .'/../include/config.inc.php');

session_start();

if(isset($_SESSION['id_membre'])) {
  header ('location: ../modules/admin/dashboard/index.php');
  exit;
}

$erreur = isset($_GET['erreur']) ? $_GET['erreur'] : NULL;
?>

<!DOCTYPE html>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title><?php echo constant("TITLE"); ?></title>

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

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

    <link rel="stylesheet" href="../plugins/font-awesome-4.6.3/css/font-awesome.min.css">

    <link rel="stylesheet" href="../plugins/ionicons-2.0.1/css/ionicons.min.css">

    <link rel="stylesheet" href="../dist/css/AdminLTE.min.css">

    <link rel="stylesheet" href="../plugins/iCheck/square/blue.css">

Connectez-vous à votre espace personnel.

        <form action="../modules/sessions/login.php" method="post">

            <input type="text" class="form-control" placeholder="Identifiant Windows" name="login" required>

            <input type="password" class="form-control" placeholder="Mot de passe" name="password" required>

              <button type="submit" class="btn btn-primary btn-block btn-flat">Valider</button>

        </form>

<?php if($erreur==1){echo"Nom d'utilisateur ou mot de passe incorrect !";} ?>


text:
const exists = require('./exists')

async function assertDoesNotExist(path) {
    const doesExist = await exists(path)
    if (doesExist) {
        throw new Error(`Path ${path} exists.`)
    }
}

module.exports = assertDoesNotExist


text:
require 'chef/resource/lwrp_base'

# Creates a splunk_app resource.
class Chef
  class Resource
    class SplunkApp < Chef::Resource::LWRPBase
      self.resource_name = 'splunk_app'

      # Actions correspond to splunk commands pertaining to apps.
      actions :enable, :disable, :install, :remove
      default_action :enable
      state_attrs :enabled, :installed

      attribute :app_name, kind_of: String, name_attribute: true
      attribute :remote_file, kind_of: String, default: nil
      attribute :cookbook_file, kind_of: String, default: nil
      attribute :cookbook, kind_of: String, default: nil
      attribute :checksum, kind_of: String, default: nil
      attribute :remote_directory, kind_of: String, default: nil
      attribute :splunk_auth, kind_of: [String, Array], required: true
      attribute :app_dependencies, kind_of: Array, default: []
      attribute :templates, kind_of: [Array, Hash], default: []
      attribute :template_cookbook, kind_of: String, required: false
      attribute :enabled, kind_of: [TrueClass, FalseClass, NilClass], default: false
      attribute :installed, kind_of: [TrueClass, FalseClass, NilClass], default: false
    end
  end
end


text:
using ::net::CertVerifier;
using ::net::HashValue;
using ::net::SHA256HashValue;
using ::net::X509Certificate;

namespace network {

// static
std::unique_ptr<CertVerifier> IgnoreErrorsCertVerifier::MaybeWrapCertVerifier(
    const base::CommandLine& command_line,
    const char* user_data_dir_switch,
    std::unique_ptr<CertVerifier> verifier) {
  if ((user_data_dir_switch && !command_line.HasSwitch(user_data_dir_switch)) ||
      !command_line.HasSwitch(switches::kIgnoreCertificateErrorsSPKIList)) {
    return verifier;
  }
  auto spki_list =
      base::SplitString(command_line.GetSwitchValueASCII(
                            switches::kIgnoreCertificateErrorsSPKIList),
                        ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
  return std::make_unique<IgnoreErrorsCertVerifier>(
      std::move(verifier), IgnoreErrorsCertVerifier::MakeWhitelist(spki_list));
}

// static
IgnoreErrorsCertVerifier::SPKIHashSet IgnoreErrorsCertVerifier::MakeWhitelist(
    const std::vector<std::string>& fingerprints) {
  IgnoreErrorsCertVerifier::SPKIHashSet whitelist;
  for (const std::string& fingerprint : fingerprints) {
    HashValue hash;
    if (!hash.FromString("sha256/" + fingerprint)) {
      LOG(ERROR) << "Invalid SPKI: " << fingerprint;
      continue;
    }
    SHA256HashValue sha256;
    DCHECK_EQ(hash.size(), sizeof(sha256));
    memcpy(&sha256, hash.data(), sizeof(sha256));
    whitelist.insert(sha256);
  }
  return whitelist;
}

IgnoreErrorsCertVerifier::IgnoreErrorsCertVerifier(
    std::unique_ptr<CertVerifier> verifier,
    IgnoreErrorsCertVerifier::SPKIHashSet whitelist)
    : verifier_(std::move(verifier)), whitelist_(std::move(whitelist)) {}

IgnoreErrorsCertVerifier::~IgnoreErrorsCertVerifier() {}

int IgnoreErrorsCertVerifier::Verify(const RequestParams& params,
                                     net::CertVerifyResult* verify_result,
                                     net::CompletionOnceCallback callback,
                                     std::unique_ptr<Request>* out_req,
                                     const net::NetLogWithSource& net_log) {
  SPKIHashSet spki_fingerprints;
  base::StringPiece cert_spki;
  SHA256HashValue hash;
  if (net::asn1::ExtractSPKIFromDERCert(
          net::x509_util::CryptoBufferAsStringPiece(
              params.certificate()->cert_buffer()),
          &cert_spki)) {
    crypto::SHA256HashString(cert_spki, &hash, sizeof(SHA256HashValue));
    spki_fingerprints.insert(hash);
  }
  for (const auto& intermediate :
       params.certificate()->intermediate_buffers()) {
    if (net::asn1::ExtractSPKIFromDERCert(
            net::x509_util::CryptoBufferAsStringPiece(intermediate.get()),
            &cert_spki)) {
      crypto::SHA256HashString(cert_spki, &hash, sizeof(SHA256HashValue));
      spki_fingerprints.insert(hash);
    }
  }

  // Intersect SPKI hashes from the chain with the whitelist.
  auto whitelist_begin = whitelist_.begin();
  auto whitelist_end = whitelist_.end();
  auto fingerprints_begin = spki_fingerprints.begin();
  auto fingerprints_end = spki_fingerprints.end();
  bool ignore_errors = false;
  while (whitelist_begin != whitelist_end &&
         fingerprints_begin != fingerprints_end) {
    if (*whitelist_begin < *fingerprints_begin) {
      ++whitelist_begin;
    } else if (*fingerprints_begin < *whitelist_begin) {
      ++fingerprints_begin;
    } else {
      ignore_errors = true;
      break;
    }
  }

  if (ignore_errors) {
    verify_result->Reset();
    verify_result->verified_cert = params.certificate();
    std::transform(spki_fingerprints.begin(), spki_fingerprints.end(),
                   std::back_inserter(verify_result->public_key_hashes),
                   [](const SHA256HashValue& v) { return HashValue(v); });
    if (!params.ocsp_response().empty()) {
      verify_result->ocsp_result.response_status =
          net::OCSPVerifyResult::PROVIDED;
      verify_result->ocsp_result.revocation_status =
          net::OCSPRevocationStatus::GOOD;
    }
    return net::OK;
  }

  return verifier_->Verify(params, verify_result, std::move(callback), out_req,
                           net_log);
}

void IgnoreErrorsCertVerifier::SetConfig(const Config& config) {
  verifier_->SetConfig(config);
}

void IgnoreErrorsCertVerifier::set_whitelist(const SPKIHashSet& whitelist) {
  whitelist_ = whitelist;
}

}  // namespace network


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.
 */
package org.cdlflex.fruit.jpa;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.Expression;
import javax.persistence.criteria.Order;
import javax.persistence.criteria.Path;
import javax.persistence.criteria.Predicate;
import javax.persistence.criteria.Root;

import org.cdlflex.fruit.Connective;
import org.cdlflex.fruit.Filter;
import org.cdlflex.fruit.Operator;
import org.cdlflex.fruit.OrderBy;
import org.cdlflex.fruit.Range;
import org.cdlflex.fruit.SortOrder;
import org.cdlflex.fruit.SortSpecification;

/**
 * Maps the {@code org.cdlflex.fruit} data model to {@code javax.persistence.criteria} classes.
 */
public class CriteriaMapper {

    private final Root<?> root;
    private final CriteriaBuilder cb;

    /**
     * Construct.
     *
     * @param root the root from which to select from
     * @param criteriaBuilder the criteria builder used internally
     */
    public CriteriaMapper(Root<?> root, CriteriaBuilder criteriaBuilder) {
        this.root = root;
        this.cb = criteriaBuilder;
    }

    /**
     * Creates a joined predicate from the given Filter.
     *
     * @param filter the filter
     * @return a new JPA criteria Predicate
     */
    public Predicate create(Filter filter) {
        List<Predicate> predicates = new ArrayList<>(filter.getPredicates().size());

        for (org.cdlflex.fruit.Predicate fp : filter.getPredicates()) {
            predicates.add(create(fp));
        }

        return connect(predicates, filter.getConnective());
    }

    /**
     * Maps the given API Predicate object to a JPA criteria Predicate.
     *
     * @param predicate the Predicate object
     * @return a JPA criteria Predicate
     */
    public Predicate create(org.cdlflex.fruit.Predicate predicate) {
        Path<?> attribute = resolvePath(predicate.getKey());
        Object value = predicate.getValue();

        Predicate jpaPredicate = create(predicate.getOp(), attribute, value);

        return (predicate.isNot()) ? jpaPredicate.not() : jpaPredicate;
    }

    private Path<?> resolvePath(String attributeExpression) {
        if (!attributeExpression.contains(".")) {
            // simple attribute
            return root.get(attributeExpression);
        }

        // joined path
        String[] attributes = attributeExpression.split("\\.");

        Path<?> path = root.get(attributes[0]);
        for (int i = 1; i < attributes.length; i++) {
            path = path.get(attributes[i]);
        }
        return path;
    }

    /**
     * Joins the given predicates using the criteria builder with the given connective.
     *
     * @param predicates the predicates to join
     * @param connective the logical connective
     * @return a new predicate that connects all given predicate
     */
    public Predicate connect(List<Predicate> predicates, Connective connective) {
        Predicate[] predicateArray = predicates.toArray(new Predicate[predicates.size()]);

        switch (connective) {
            case AND:
                return cb.and(predicateArray);
            case OR:
                return cb.or(predicateArray);
            default:
                throw new UnsupportedOperationException("Unknown connective " + connective);
        }
    }

    /**
     * Converts an OrderBy clause to a list of javax.persistence Order instances given a Root and a CriteriaBuilder.
     *
     * @param order the order by clause
     * @return a list of Order instances
     */
    public List<Order> create(OrderBy order) {
        List<Order> list = new ArrayList<>();

        for (SortSpecification sort : order.getSort()) {
            if (sort.getSortOrder() == SortOrder.DESC) {
                list.add(cb.desc(root.get(sort.getKey())));
            } else if (sort.getSortOrder() == SortOrder.ASC) {
                list.add(cb.asc(root.get(sort.getKey())));
            }
        }

        return list;
    }

    @SuppressWarnings({ "unchecked", "rawtypes" })
    private Predicate create(Operator op, Expression attribute, Object value) {
        switch (op) {
            case EQ:
                return cb.equal(attribute, value);
            case GT:
                return cb.greaterThan(attribute, (Comparable) value);
            case GTE:
                return cb.greaterThanOrEqualTo(attribute, (Comparable) value);
            case LT:
                return cb.lessThan(attribute, (Comparable) value);
            case LTE:
                return cb.lessThanOrEqualTo(attribute, (Comparable) value);
            case LIKE:
                return cb.like(attribute, String.valueOf(value));
            case BETWEEN:
                if (!(value instanceof Range)) {
                    String msg = "BETWEEN operator requires a Range object, was " + value.getClass().getName();
                    throw new IllegalStateException(msg);
                }
                Range range = (Range) value;
                return cb.between(attribute, range.getStart(), range.getEnd());
            default:
                throw new UnsupportedOperationException("Can not translate operator " + op);
        }
    }
}