text:
import unittest
from text import string_utils

class StringUtilsTest(unittest.TestCase):

    def test_is_blank(self):
        self.assertEqual(string_utils.is_blank(None), True)
        self.assertEqual(string_utils.is_blank('word'), False)
        self.assertEqual(string_utils.is_blank(True), False)
        self.assertEqual(string_utils.is_blank(21), False)

    def test_is_not_blank(self):
        self.assertEqual(string_utils.is_not_blank(None), False)
        self.assertEqual(string_utils.is_not_blank('word'), True)
        self.assertEqual(string_utils.is_not_blank(True), True)
        self.assertEqual(string_utils.is_not_blank(21), True)

    def test_is_empty(self):
        self.assertEqual(string_utils.is_empty(None), True)
        self.assertEqual(string_utils.is_empty(' '), True)
        self.assertEqual(string_utils.is_empty('word'), False)
        self.assertEqual(string_utils.is_empty(True), False)
        self.assertEqual(string_utils.is_empty(21), False)

    def test_is_not_empty(self):
        self.assertEqual(string_utils.is_not_empty(None), False)
        self.assertEqual(string_utils.is_not_empty(' '), False)
        self.assertEqual(string_utils.is_not_empty('word'), True)
        self.assertEqual(string_utils.is_not_empty(True), True)
        self.assertEqual(string_utils.is_not_empty(21), True)

    def test_is_numeric(self):
        self.assertEqual(string_utils.is_numeric(None), False)
        self.assertEqual(string_utils.is_numeric(21), True)
        self.assertEqual(string_utils.is_numeric('21'), True)
        self.assertEqual(string_utils.is_numeric('true'), False)
        self.assertEqual(string_utils.is_numeric(True), False)

    def test_is_bool(self):
        self.assertEqual(string_utils.is_bool(None), False)
        self.assertEqual(string_utils.is_bool('true'), True)
        self.assertEqual(string_utils.is_bool('false'), True)
        self.assertEqual(string_utils.is_bool('True'), True)
        self.assertEqual(string_utils.is_bool('False'), True)
        self.assertEqual(string_utils.is_bool(True), True)
        self.assertEqual(string_utils.is_bool(False), True)
        self.assertEqual(string_utils.is_bool('T'), False)
        self.assertEqual(string_utils.is_bool('F'), False)

    def test_index_of(self):
        self.assertEqual(string_utils.index_of(None, 'Word'), -1)
        self.assertEqual(string_utils.index_of('Test Word', None), -1)
        self.assertEqual(string_utils.index_of('Test Word', 'Word'), 5)
        self.assertEqual(string_utils.index_of('Test Word', 'st'), 2)

    def test_index_of_any(self):
        self.assertEqual(string_utils.index_of(None, ['Word']), -1)
        self.assertEqual(string_utils.index_of('Test Word', None), -1)
        self.assertEqual(string_utils.index_of_any('Test Word', ['Word']), 5)
        self.assertEqual(string_utils.index_of_any('Test Word', ['st', 'or']), 2)

    def test_index_of_ignore_case(self):
        self.assertEqual(string_utils.index_of_ignore_case(None, 'cde'), -1)
        self.assertEqual(string_utils.index_of_ignore_case('ABCDEFG', None), -1)
        self.assertEqual(string_utils.index_of_ignore_case('ABCDEFG', 'cde'), 2)
        self.assertEqual(string_utils.index_of_ignore_case('abcdedg', 'CDE'), 2)
        self.assertEqual(string_utils.index_of_ignore_case('abcdedg', 'R'), -1)

    def test_last_index_of(self):
        self.assertEqual(string_utils.last_index_of(None, 'one'), -1)
        self.assertEqual(string_utils.last_index_of('one world one dream', ' '), 13)
        self.assertEqual(string_utils.last_index_of('one world one dream', 'one'), 10)
        self.assertEqual(string_utils.last_index_of('three test data', 't'), 13)

    def test_substring_after(self):
        self.assertEqual(string_utils.substring_after('one world one dream', 'world').strip(), 'one dream')
        self.assertEqual(string_utils.substring_after('one world one dream', 'one dream').strip(), '')
        self.assertEqual(string_utils.substring_after(None, 'one dream'), None)
        self.assertEqual(string_utils.substring_after('one world one dream', None), 'one world one dream')
        self.assertEqual(string_utils.substring_after('one world one dream', ' '), 'world one dream')
        self.assertEqual(string_utils.substring_after('one world one dream', 'Nothing'), 'one world one dream')

    def test_substring_after_last(self):
        self.assertEqual(string_utils.substring_after_last('one world one dream', 'world').strip(), 'one dream')
        self.assertEqual(string_utils.substring_after_last('one world one dream', 'one').strip(), 'dream')
        self.assertEqual(string_utils.substring_after_last(None, 'one dream'), None)
        self.assertEqual(string_utils.substring_after_last('one world one dream', None), 'one world one dream')
        self.assertEqual(string_utils.substring_after_last('one world one dream', ' '), 'dream')
        self.assertEqual(string_utils.substring_after_last('one world one dream', 'Nothing'), 'one world one dream')

    def test_substring_before(self):
        self.assertEqual(string_utils.substring_before('one world one dream', 'one').strip(), '')
        self.assertEqual(string_utils.substring_before('one world one dream', 'one dream').strip(), 'one world')
        self.assertEqual(string_utils.substring_before(None, 'one dream'), None)
        self.assertEqual(string_utils.substring_before('one world one dream', None), 'one world one dream')
        self.assertEqual(string_utils.substring_before('one world one dream', ' '), 'one')
        self.assertEqual(string_utils.substring_before('one world one dream', 'Nothing'), 'one world one dream')

    def test_substring_before_last(self):
        self.assertEqual(string_utils.substring_before_last('one world one dream', 'one').strip(), 'one world')
        self.assertEqual(string_utils.substring_before_last('one world one dream', 'world').strip(), 'one')
        self.assertEqual(string_utils.substring_before_last(None, 'one dream'), None)
        self.assertEqual(string_utils.substring_before_last('one world one dream', None), 'one world one dream')
        self.assertEqual(string_utils.substring_before_last('one world one dream', ' '), 'one world one')
        self.assertEqual(string_utils.substring_before_last('one world one dream', 'Nothing'), 'one world one dream')

    def test_substring_between(self):
        self.assertEqual(string_utils.substring_between('<tag>Hello</tag>', '<tag>', '</tag>'), 'Hello')
        self.assertEqual(string_utils.substring_between('<tag>Hello</tag>', '<tag>', '
'), 'Hello</tag>')
        self.assertEqual(string_utils.substring_between('<tag>Hello</tag>', '
', '</tag>'), '<tag>Hello')
        self.assertEqual(string_utils.substring_between('<tag>Hello</tag>', '
', '
'), '<tag>Hello</tag>')
        self.assertEqual(string_utils.substring_between(None, '
', '
'), None)
        self.assertEqual(string_utils.substring_between('<tag>Hello</tag>', '<tag>', None), 'Hello</tag>')
        self.assertEqual(string_utils.substring_between('<tag>Hello</tag>', None, '</tag>'), '<tag>Hello')
        self.assertEqual(string_utils.substring_between('<tag>Hello</tag>', None, None), '<tag>Hello</tag>')

    def test_left(self):
        self.assertEqual(string_utils.left(None, 3), None)
        self.assertEqual(string_utils.left('abcdefg', 0), '')
        self.assertEqual(string_utils.left('abcdefg', 3), 'abc')
        self.assertEqual(string_utils.left('abcdefg', 4), 'abcd')
        self.assertEqual(string_utils.left('abcdefg', 5), 'abcde')
        self.assertEqual(string_utils.left('abcdefg', 8), 'abcdefg')

    def test_right(self):
        self.assertEqual(string_utils.right(None, 3), None)
        self.assertEqual(string_utils.right('abcdefg', 0), '')
        self.assertEqual(string_utils.right('abcdefg', 3), 'efg')
        self.assertEqual(string_utils.right('abcdefg', 4), 'defg')
        self.assertEqual(string_utils.right('abcdefg', 5), 'cdefg')
        self.assertEqual(string_utils.right('abcdefg', 8), 'abcdefg')

    def test_mid(self):
        self.assertEqual(string_utils.mid(None, 3, 3), None)
        self.assertEqual(string_utils.mid('abcdefg', 3, 3), 'def')
        self.assertEqual(string_utils.mid('abcdefg', 4, 3), 'efg')
        self.assertEqual(string_utils.mid('abcdefg', 5, 3), 'fg')
        self.assertEqual(string_utils.mid('abcdefg', 2, 3), 'cde')
        self.assertEqual(string_utils.mid('abcdefg', 8, 3), 'abcdefg')

    def test_left_pad(self):
        self.assertEqual(string_utils.left_pad('abc', 3, '*'), '***abc')
        self.assertEqual(string_utils.left_pad('abc', 3), '***abc')
        self.assertEqual(string_utils.left_pad('abc', 3, '.'), '...abc')

    def test_right_pad(self):
        self.assertEqual(string_utils.right_pad('abc', 3, '*'), 'abc***')
        self.assertEqual(string_utils.right_pad('abc', 3), 'abc***')
        self.assertEqual(string_utils.right_pad('abc', 3, '.'), 'abc...')

    def test_abbreviate(self):
        self.assertEqual(string_utils.abbreviate('abcdef', 3, 3), 'abc***')
        self.assertEqual(string_utils.abbreviate('abcdef', 2, 3), 'ab***')
        self.assertEqual(string_utils.abbreviate('abcdef', 6, 3), 'abcdef')
        self.assertEqual(string_utils.abbreviate('abcdef', 3, 0), 'abc')
        self.assertEqual(string_utils.abbreviate('abcdef', 3, 3, '.'), 'abc...')

    def test_repeat(self):
        self.assertEqual(string_utils.repeat('*', 3), '***')
        self.assertEqual(string_utils.repeat(None, 3), '***')

    def test_count_matches(self):
        self.assertEqual(string_utils.count_matches(None, ' '), 0)
        self.assertEqual(string_utils.count_matches('   ', None), 0)
        self.assertEqual(string_utils.count_matches('   ', ' '), 3)
        self.assertEqual(string_utils.count_matches('one world one dream', 'one'), 2)
        self.assertEqual(string_utils.count_matches('three test data for terminal tree', 't'), 6)

    def test_remove_start(self):
        self.assertEqual(string_utils.remove_start('one world one dream', 'one').strip(), 'world one dream')
        self.assertEqual(string_utils.remove_start('one world one dream', 'Nothing').strip(), 'one world one dream')
        self.assertEqual(string_utils.remove_start('one world one dream', None).strip(), 'one world one dream')
        self.assertEqual(string_utils.remove_start(None, 'Nothing'), None)

    def test_remove_end(self):
        self.assertEqual(string_utils.remove_end('one world one dream', 'one').strip(), 'one world  dream')
        self.assertEqual(string_utils.remove_end('one world one dream', 'Nothing').strip(), 'one world one dream')
        self.assertEqual(string_utils.remove_end('one world one dream', None).strip(), 'one world one dream')
        self.assertEqual(string_utils.remove_end(None, 'Nothing'), None)

    def test_split(self):
        split_list = string_utils.split('data   test    world', ' ')
        self.assertEqual(len(split_list), 3)
        self.assertEqual(split_list[0], 'data')
        self.assertEqual(split_list[1], 'test')
        self.assertEqual(split_list[2], 'world')

        split_list = string_utils.split('data ; test ; world', ';')
        self.assertEqual(len(split_list), 3)
        self.assertEqual(split_list[0], 'data')
        self.assertEqual(split_list[1], 'test')
        self.assertEqual(split_list[2], 'world')

    def test_strip_all(self):
        strings = [' ', ' one world', 'one dream ', None, 21]
        result = string_utils.strip_all(strings)
        self.assertEqual(len(result), 5)
        self.assertEqual(result[0], '')
        self.assertEqual(result[1], 'one world')
        self.assertEqual(result[2], 'one dream')
        self.assertEqual(result[3], None)
        self.assertEqual(result[4], '21')

    def test_contains_any(self):
        self.assertEqual(string_utils.contains_any('one world one dream', 'one'), True)
        self.assertEqual(string_utils.contains_any('one world one dream', ['one']), True)
        self.assertEqual(string_utils.contains_any('one world one dream', ['world', 'dream']), True)
        self.assertEqual(string_utils.contains_any(None, ['world', 'dream']), False)
        self.assertEqual(string_utils.contains_any('Test Data For py_text', ['world', 'dream']), False)

    def test_contains(self):
        self.assertEqual(string_utils.contains('one world one dream', 'one'), True)
        self.assertEqual(string_utils.contains(None, 'one'), False)
        self.assertEqual(string_utils.contains('one world one dream', None), False)

    def test_to_string(self):
        self.assertEqual(string_utils.to_string(None), None)
        self.assertEqual(string_utils.to_string(21), '21')
        self.assertEqual(string_utils.to_string(True), 'True')
        self.assertEqual(string_utils.to_string('one world one dream'), 'one world one dream')

    def test_replace_all(self):
        self.assertEqual(string_utils.replace_all(None, 'one', 'One'), None)
        self.assertEqual(string_utils.replace_all('one world one dream', 'one', 'One'), 'One world One dream')
        self.assertEqual(string_utils.replace_all('one world one dream', None, 'One'), 'one world one dream')
        self.assertEqual(string_utils.replace_all('one world one dream', 'one', None), 'one world one dream')

    def test_replace_each(self):
        self.assertEqual(string_utils.replace_each(None, ['one'], ['One']), None)
        self.assertEqual(string_utils.replace_each('one world one dream', ['one', 'world', 'dream'], ['One', 'World', 'Dream']), 'One World One Dream')
        self.assertEqual(string_utils.replace_each('one world one dream', [None, 'world', 'dream'], ['One', 'World', 'Dream']), 'one World one Dream')
        self.assertEqual(string_utils.replace_each('one world one dream', None, None), 'one world one dream')

if __name__ == '__main__':
    # import sys;sys.argv = ['', 'Test.testName']
    unittest.main()


text:
var chart;

/**
 * Request data from the server, add it to the graph and set a timeout
 * to request again
 */

 function newDeviceID() {
     new_device_id = document.getElementById("device-id-input").value;
     requestDeviceData(new_device_id);
 }

function requestData() {
    $.ajax({
        url: '/live-data',
        success: function(point) {
            var series = chart.series[0],
                shift = series.data.length > 20; // shift if the series is
                                                 // longer than 20

            // add the point
            chart.series[0].addPoint(point, true, shift);

            // call it again after one second
            setTimeout(requestData, 1000);
        },
        cache: false
    });
}

function requestDeviceData(id) {
    var s = ["/device", id]
    var device_url = s.join("/");
    console.log(device_url)
    $.ajax({
        url: device_url,
        success: function(point) {
            var series = chart.series[0],
                shift = series.data.length > 20; // shift if the series is
                                                 // longer than 20

            // add the point
            chart.series[0].addPoint(point, true, shift);

            // call it again after one second
            setTimeout(requestDeviceData(id), 1000);
        },
        cache: false
    });
}

$(document).ready(function() {
    chart1 = new Highcharts.Chart({
        chart: {
            renderTo: 'avg-speed-on-earth',
            defaultSeriesType: 'spline',
            events: {
                load: requestData
            }
        },
        title: {
            text: 'Average Wind Speed on Earth'
        },
        xAxis: {
            type: 'datetime',
            tickPixelInterval: 150,
            maxZoom: 20 * 1000
        },
        yAxis: {
            minPadding: 0.2,
            maxPadding: 0.2,
            title: {
                text: 'Value',
                margin: 80
            }
        },
        series: [{
            name: 'Wind Speed (knots)',
            data: []
        }]
    });

    chart2 = new Highcharts.Chart({
        chart: {
            renderTo: 'avg-speed-device',
            defaultSeriesType: 'spline',
            events: {
                load: requestDeviceData
            }
        },
        title: {
            text: 'Avg Device Speed'
        },
        xAxis: {
            type: 'datetime',
            tickPixelInterval: 150,
            maxZoom: 20 * 1000
        },
        yAxis: {
            minPadding: 0.2,
            maxPadding: 0.2,
            title: {
                text: 'Value',
                margin: 80
            }
        },
        series: [{
            name: 'Wind Speed (knots)',
            data: []
        }]
    });

});

redpajama_set_name: RedPajamaGithub


text:
require 'rails_helper'

RSpec.describe '/api/v1/inventory/items', type: :request do
  let(:application) { create(:doorkeeper_application)  }
  subject(:response) { oauth_get(url, application.uid, application.secret) }
  describe 'all' do
    let(:all) do
      InventoryItemAdapter.all
    end

    let(:url) { '/api/v1/inventory/items' }

    context 'when application id and secret are valid' do
      it 'response should have status equal to 200' do
        expect(response.status).to eq(200)
      end
      it 'response should have body equal to all drivers json' do
        expect(response.body).to eq(all.to_json)
      end
    end

    context 'when application id and secret are not valid' do
      subject(:response) do
        oauth_get(url, '1', '1')
      end

      it 'response should have status equal to 401' do
        expect(response.status).to eq(401)
      end

      it 'response should have blank body' do
        expect(response.body).to be_blank
      end
    end

    context 'when application id and secret are not present' do
      subject(:response) do
        get(url)
      end

      it 'response should have status equal to 401' do
        expect(response).to eq(401)
      end
    end

    describe 'like_id_description' do
      let(:like_id_description) do
        InventoryItemAdapter.like_id_description(1, ' ')
      end

      # rubocop:disable Metrics/LineLength,
      let(:url) { '/api/v1/inventory/items_like_id_description.json?item_id=1&in_item_description=des' }
      # rubocop:enable Metrics/LineLength

      context 'when application id and secret are valid' do
        it 'response should have body equal to by_paid_date json' do
          expect(response.body).to eq(like_id_description.to_json)
        end

        it 'response should have status equal to 200' do
          expect(response.status).to eq(200)
        end
      end

      context 'when application id and secret are not valid' do
        subject(:response) do
          oauth_get(url, '1', '1')
        end

        it 'response should have status equal to 401' do
          expect(response.status).to eq(401)
        end

        it 'response should have blank body' do
          expect(response.body).to be_blank
        end
      end

      context 'when application id and secret are not present' do
        subject(:response) do
          get(url)
        end

        it 'response should have status equal to 401' do
          expect(response).to eq(401)
        end
      end
    end

    describe 'by_id' do
      let(:by_id) do
        InventoryItemAdapter.by_id(1)
      end

      let(:url) { '/api/v1/inventory/items_by_id.json?item_id=1' }

      context 'when application id and secret are valid' do
        it 'response should have body equal to by_paid_date json' do
          expect(response.body).to eq(by_id.to_json)
        end

        it 'response should have status equal to 200' do
          expect(response.status).to eq(200)
        end
      end

      context 'when application id and secret are not valid' do
        subject(:response) do
          oauth_get(url, '1', '1')
        end

        it 'response should have status equal to 401' do
          expect(response.status).to eq(401)
        end

        it 'response should have blank body' do
          expect(response.body).to be_blank
        end
      end

      context 'when application id and secret are not present' do
        subject(:response) do
          get(url)
        end

        it 'response should have status equal to 401' do
          expect(response).to eq(401)
        end
      end
    end
  end
end


text:
Rough Python implementation of a Monte Carlo method to estimate the value of π

## How it Works

This is a simple demonstration of a bruteforce method. The script takes as an input a number for points to generate and outputs π estimation. Its terminal and graphical outputs can be seen in the following screenshot:

![ScreenShot](https://raw.github.com/eenchev/MontePI/master/screenshots/output.png)

## TODO

There is a lot to be desired:

* Comments, lots of comments
* Better coding style. Maybe and OOP solution?
* Optimization can be done on the data structures used.
* The use of matplotlib limits the graphing capabilities. Maximum number of points displayed is as of now 1000.

Feel free to contribute.


text:
echo "e.g.: $0 <pdf_name>"
echo "^C to break, anykey to continue....";read readline

convert *.jpg -compress Zip $1


text:
/*H**********************************************************************
* FILENAME :        printf_example.c
*
* DESCRIPTION :
*       How to use printf with uartavr
*
* NOTES :
*       This is an example for the uartavr library. This shows how to use
*       the printf function with this library. In order to do this the Makefile
*       must link to the math library and printf_min or printf_flt.
*       In order to show some useful data this example activates the internal
*       temperature sensor that some Atmel avrs have. This sensor is not very
*       accurate. You should consider a one or two point calibration and store
*       the calibration data in the EEPROM. The values used in this example worked
*       quite good with an ATmega328P.
*       Have a look at AVR122: Calibration of the AVR's Internal Temperature Reference
*
*       Be careful not to provide an external reference voltage to AREF with this
*       example as the adc is set to use an internal reference (1.1). If you do
*       this they will be shorted to the external voltage.
*
* AUTHOR :    Christian Rapp
*
*H*/
#include <avr/io.h>
#include <stdio.h>

#include <string.h>

#include "uart.h"

volatile uint8_t adc_ready; /* signal main loop adc conversion result is ready */
volatile uint8_t overflow_cnt; /* an additional counter for Timer0 */

int main(void)
{
    /* set up uart with default config */
    struct UARTcfg cfg;
    memset(&cfg, 0, sizeof(struct UARTcfg));

    init_uart_cfg(&cfg);
    init_UART(&cfg);

    adc_ready = 0;

    /* use internal reference (1.1V) and activate adc8 */
    ADMUX |= _BV(REFS1) | _BV(REFS0) | _BV(MUX3);
    /* activate interrupts and 1024 prescaler */
    ADCSRA |= _BV(ADIE) | _BV(ADPS2) | _BV(ADPS1) | _BV(ADPS0);
    /* enable the adc */
    ADCSRA |= _BV(ADEN);

    overflow_cnt = 0;
    TCNT0 = 0;
    /* set prescaler for Timer0 to 1024 */
    TCCR0B |= _BV(CS02) | _BV(CS00);
    /* activate timer overflow interrupt */
    TIMSK0 |= _BV(TOIE0);

    sei();

    while (1) {
        while (!adc_ready) {
        }

        /* read the data from the adc data registers */
        adc_ready = 0;
        uint16_t adc_data = ADCL;
        adc_data |= (ADCH << 8);

        /* Conversion formula: */
        /* T = { [(ADCH << 8) | ADCL] - TOS } / k */
        float result = (adc_data - 328) / 1.22;
        /* send the result via uart */
        printf("We measured: %.2f\n", result);
    }

    return 0;
}

ISR(ADC_vect) { adc_ready = 1; }

ISR(TIMER0_OVF_vect)
{
    /* we are using an additional counter here. With a frequency of 16MHz this
     * will activate the main loop approximately every second */
    ++overflow_cnt;
    if (overflow_cnt == 61) {
        overflow_cnt = 0;
        /* measure the temperature */
        ADCSRA |= _BV(ADSC);
    }
}


text:
<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Producto_model extends MY_Model
{

    public function __construct()
    {
        parent::__construct();
        $this->setup('producto', array('id', 'nombre', 'slug', 'imagen_1', 'imagen_2', 'imagen_3', 'imagen_4', 'imagen_5', 'imagen_6', 'linea', 'sublinea',
            'marca', 'precio', 'mostrar_precio', 'moneda', 'ficha', 'descripcion_corta', 'descripcion_larga',
            'estado', 'orden'));
    }

    public function find($params = array())
    {
        $temp = parent::find($params);
        $this->load->model('linea_model');
        $this->load->model('sublinea_model');

        foreach ($temp as $t) {
            $linea = $this->linea_model->findByPk($t->linea);
            $t->linea_nombre = $linea->name;

            $sublinea = $this->sublinea_model->findByPk($t->sublinea);
            $t->sublinea_nombre = $sublinea->name;
        }

        return $temp;
    }

    public function findByPk($id)
    {
        $temp = parent::findByPk($id);
        $this->load->model('linea_model');
        $this->load->model('sublinea_model');

        $linea = $this->linea_model->findByPk($temp->linea);
        $temp->linea_nombre = $linea->name;

        $sublinea = $this->sublinea_model->findByPk($temp->sublinea);
        $temp->sublinea_nombre = $sublinea->name;

        return $temp;
    }

}


text:
<?xml version='1.0' encoding='windows-1252' ?>

<!--L
  Copyright Oracle inc, SAIC-F

  Distributed under the OSI-approved BSD 3-Clause License.
  See http://ncip.github.com/cadsr-util/LICENSE.txt for details.
L-->

<!DOCTYPE Entity SYSTEM "jbo_03_01.dtd">

<Entity
   Name="ValueDomains"
   DBObjectType="table"
   DBObjectName="VALUE_DOMAINS"
   AliasName="ValueDomains"
   BindingStyle="Oracle"
   UseGlueCode="false"
   RowClass="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.ValueDomainsImpl" >
   <DesignTime>
      <Attr Name="_isCodegen" Value="true" />
      <Attr Name="_version" Value="9.0.5.16.0" />
      <Attr Name="_codeGenFlag2" Value="Access" />
      <AttrArray Name="_publishEvents">
      </AttrArray>
   </DesignTime>
   <Attribute
      Name="VdIdseq"
      IsNotNull="true"
      Precision="36"
      ColumnName="VD_IDSEQ"
      Type="java.lang.String"
      ColumnType="CHAR"
      SQLType="VARCHAR"
      TableName="VALUE_DOMAINS"
      PrimaryKey="true"
      RetrievedOnUpdate="true"
      RetrievedOnInsert="true" >
      <DesignTime>
         <Attr Name="_DisplaySize" Value="36" />
      </DesignTime>
   </Attribute>
   <Attribute
      Name="Version"
      IsUnique="true"
      IsNotNull="true"
      Precision="4"
      Scale="2"
      ColumnName="VERSION"
      Type="oracle.jbo.domain.Number"
      ColumnType="NUMBER"
      SQLType="NUMERIC"
      TableName="VALUE_DOMAINS" >
   </Attribute>
   <Attribute
      Name="PreferredName"
      IsUnique="true"
      IsNotNull="true"
      Precision="30"
      ColumnName="PREFERRED_NAME"
      Type="java.lang.String"
      ColumnType="VARCHAR2"
      SQLType="VARCHAR"
      TableName="VALUE_DOMAINS" >
      <DesignTime>
         <Attr Name="_DisplaySize" Value="30" />
      </DesignTime>
   </Attribute>
   <Attribute
      Name="ConteIdseq"
      IsUnique="true"
      IsNotNull="true"
      Precision="36"
      ColumnName="CONTE_IDSEQ"
      Type="java.lang.String"
      ColumnType="CHAR"
      SQLType="VARCHAR"
      TableName="VALUE_DOMAINS"
      RetrievedOnUpdate="true"
      RetrievedOnInsert="true" >
      <DesignTime>
         <Attr Name="_DisplaySize" Value="36" />
      </DesignTime>
   </Attribute>
   <Attribute
      Name="PreferredDefinition"
      IsNotNull="true"
      Precision="2000"
      ColumnName="PREFERRED_DEFINITION"
      Type="java.lang.String"
      ColumnType="VARCHAR2"
      SQLType="VARCHAR"
      TableName="VALUE_DOMAINS" >
      <DesignTime>
         <Attr Name="_DisplaySize" Value="2000" />
      </DesignTime>
   </Attribute>
   <Attribute
      Name="DtlName"
      IsNotNull="true"
      Precision="20"
      ColumnName="DTL_NAME"
      Type="java.lang.String"
      ColumnType="VARCHAR2"
      SQLType="VARCHAR"
      TableName="VALUE_DOMAINS" >
      <DesignTime>
         <Attr Name="_DisplaySize" Value="20" />
      </DesignTime>
   </Attribute>
   <Attribute
      Name="BeginDate"
      ColumnName="BEGIN_DATE"
      Type="oracle.jbo.domain.Date"
      ColumnType="DATE"
      SQLType="DATE"
      TableName="VALUE_DOMAINS" >
   </Attribute>
   <Attribute
      Name="CdIdseq"
      IsNotNull="true"
      Precision="36"
      ColumnName="CD_IDSEQ"
      Type="java.lang.String"
      ColumnType="CHAR"
      SQLType="VARCHAR"
      TableName="VALUE_DOMAINS"
      RetrievedOnUpdate="true"
      RetrievedOnInsert="true" >
      <DesignTime>
         <Attr Name="_DisplaySize" Value="36" />
      </DesignTime>
   </Attribute>
   <Attribute
      Name="EndDate"
      ColumnName="END_DATE"
      Type="oracle.jbo.domain.Date"
      ColumnType="DATE"
      SQLType="DATE"
      TableName="VALUE_DOMAINS" >
   </Attribute>
   <Attribute
      Name="VdTypeFlag"
      IsNotNull="true"
      Precision="1"
      ColumnName="VD_TYPE_FLAG"
      Type="java.lang.String"
      ColumnType="VARCHAR2"
      SQLType="VARCHAR"
      TableName="VALUE_DOMAINS" >
      <DesignTime>
         <Attr Name="_DisplaySize" Value="1" />
      </DesignTime>
   </Attribute>
   <Attribute
      Name="AslName"
      IsNotNull="true"
      Precision="20"
      ColumnName="ASL_NAME"
      Type="java.lang.String"
      ColumnType="VARCHAR2"
      SQLType="VARCHAR"
      TableName="VALUE_DOMAINS" >
      <DesignTime>
         <Attr Name="_DisplaySize" Value="20" />
      </DesignTime>
   </Attribute>
   <Attribute
      Name="ChangeNote"
      Precision="2000"
      ColumnName="CHANGE_NOTE"
      Type="java.lang.String"
      ColumnType="VARCHAR2"
      SQLType="VARCHAR"
      TableName="VALUE_DOMAINS" >
      <DesignTime>
         <Attr Name="_DisplaySize" Value="2000" />
      </DesignTime>
   </Attribute>
   <Attribute
      Name="UomlName"
      Precision="20"
      ColumnName="UOML_NAME"
      Type="java.lang.String"
      ColumnType="VARCHAR2"
      SQLType="VARCHAR"
      TableName="VALUE_DOMAINS" >
      <DesignTime>
         <Attr Name="_DisplaySize" Value="20" />
      </DesignTime>
   </Attribute>
   <Attribute
      Name="LongName"
      Precision="255"
      ColumnName="LONG_NAME"
      Type="java.lang.String"
      ColumnType="VARCHAR2"
      SQLType="VARCHAR"
      TableName="VALUE_DOMAINS" >
      <DesignTime>
         <Attr Name="_DisplaySize" Value="255" />
      </DesignTime>
   </Attribute>
   <Attribute
      Name="FormlName"
      Precision="20"
      ColumnName="FORML_NAME"
      Type="java.lang.String"
      ColumnType="VARCHAR2"
      SQLType="VARCHAR"
      TableName="VALUE_DOMAINS" >
      <DesignTime>
         <Attr Name="_DisplaySize" Value="20" />
      </DesignTime>
   </Attribute>
   <Attribute
      Name="MaxLengthNum"
      Precision="8"
      Scale="0"
      ColumnName="MAX_LENGTH_NUM"
      Type="oracle.jbo.domain.Number"
      ColumnType="NUMBER"
      SQLType="NUMERIC"
      TableName="VALUE_DOMAINS" >
   </Attribute>
   <Attribute
      Name="MinLengthNum"
      Precision="8"
      Scale="0"
      ColumnName="MIN_LENGTH_NUM"
      Type="oracle.jbo.domain.Number"
      ColumnType="NUMBER"
      SQLType="NUMERIC"
      TableName="VALUE_DOMAINS" >
   </Attribute>
   <Attribute
      Name="DecimalPlace"
      Precision="2"
      Scale="0"
      ColumnName="DECIMAL_PLACE"
      Type="oracle.jbo.domain.Number"
      ColumnType="NUMBER"
      SQLType="NUMERIC"
      TableName="VALUE_DOMAINS" >
   </Attribute>
   <Attribute
      Name="LatestVersionInd"
      Precision="3"
      ColumnName="LATEST_VERSION_IND"
      Type="java.lang.String"
      ColumnType="VARCHAR2"
      SQLType="VARCHAR"
      TableName="VALUE_DOMAINS" >
      <DesignTime>
         <Attr Name="_DisplaySize" Value="3" />
      </DesignTime>
   </Attribute>
   <Attribute
      Name="DeletedInd"
      Precision="3"
      ColumnName="DELETED_IND"
      Type="java.lang.String"
      ColumnType="VARCHAR2"
      SQLType="VARCHAR"
      TableName="VALUE_DOMAINS" >
      <DesignTime>
         <Attr Name="_DisplaySize" Value="3" />
      </DesignTime>
   </Attribute>
   <Attribute
      Name="DateCreated"
      IsNotNull="true"
      ColumnName="DATE_CREATED"
      Type="oracle.jbo.domain.Date"
      ColumnType="DATE"
      SQLType="DATE"
      TableName="VALUE_DOMAINS" >
   </Attribute>
   <Attribute
      Name="CreatedBy"
      IsNotNull="true"
      Precision="30"
      ColumnName="CREATED_BY"
      Type="java.lang.String"
      ColumnType="VARCHAR2"
      SQLType="VARCHAR"
      TableName="VALUE_DOMAINS" >
      <DesignTime>
         <Attr Name="_DisplaySize" Value="30" />
      </DesignTime>
   </Attribute>
   <Attribute
      Name="DateModified"
      ColumnName="DATE_MODIFIED"
      Type="oracle.jbo.domain.Date"
      ColumnType="DATE"
      SQLType="DATE"
      TableName="VALUE_DOMAINS" >
   </Attribute>
   <Attribute
      Name="ModifiedBy"
      Precision="30"
      ColumnName="MODIFIED_BY"
      Type="java.lang.String"
      ColumnType="VARCHAR2"
      SQLType="VARCHAR"
      TableName="VALUE_DOMAINS" >
      <DesignTime>
         <Attr Name="_DisplaySize" Value="30" />
      </DesignTime>
   </Attribute>
   <Attribute
      Name="CharSetName"
      Precision="20"
      ColumnName="CHAR_SET_NAME"
      Type="java.lang.String"
      ColumnType="VARCHAR2"
      SQLType="VARCHAR"
      TableName="VALUE_DOMAINS" >
      <DesignTime>
         <Attr Name="_DisplaySize" Value="20" />
      </DesignTime>
   </Attribute>
   <Attribute
      Name="HighValueNum"
      Precision="255"
      ColumnName="HIGH_VALUE_NUM"
      Type="java.lang.String"
      ColumnType="VARCHAR2"
      SQLType="VARCHAR"
      TableName="VALUE_DOMAINS" >
      <DesignTime>
         <Attr Name="_DisplaySize" Value="255" />
      </DesignTime>
   </Attribute>
   <Attribute
      Name="LowValueNum"
      Precision="255"
      ColumnName="LOW_VALUE_NUM"
      Type="java.lang.String"
      ColumnType="VARCHAR2"
      SQLType="VARCHAR"
      TableName="VALUE_DOMAINS" >
      <DesignTime>
         <Attr Name="_DisplaySize" Value="255" />
      </DesignTime>
   </Attribute>
   <Attribute
      Name="RepIdseq"
      Precision="36"
      ColumnName="REP_IDSEQ"
      Type="java.lang.String"
      ColumnType="CHAR"
      SQLType="VARCHAR"
      TableName="VALUE_DOMAINS"
      RetrievedOnUpdate="true"
      RetrievedOnInsert="true" >
      <DesignTime>
         <Attr Name="_DisplaySize" Value="36" />
      </DesignTime>
   </Attribute>
   <Attribute
      Name="QualifierName"
      Precision="30"
      ColumnName="QUALIFIER_NAME"
      Type="java.lang.String"
      ColumnType="VARCHAR2"
      SQLType="VARCHAR"
      TableName="VALUE_DOMAINS" >
      <DesignTime>
         <Attr Name="_DisplaySize" Value="30" />
      </DesignTime>
   </Attribute>
   <Attribute
      Name="Origin"
      Precision="240"
      ColumnName="ORIGIN"
      Type="java.lang.String"
      ColumnType="VARCHAR2"
      SQLType="VARCHAR"
      TableName="VALUE_DOMAINS" >
      <DesignTime>
         <Attr Name="_DisplaySize" Value="240" />
      </DesignTime>
   </Attribute>
   <Attribute
      Name="VdId"
      ColumnName="VD_ID"
      Type="oracle.jbo.domain.Number"
      ColumnType="NUMBER"
      SQLType="NUMERIC"
      TableName="VALUE_DOMAINS" >
      <DesignTime>
         <Attr Name="_DisplaySize" Value="22" />
      </DesignTime>
   </Attribute>
   <Attribute
      Name="CondrIdseq"
      Precision="36"
      ColumnName="CONDR_IDSEQ"
      Type="java.lang.String"
      ColumnType="CHAR"
      SQLType="CHAR"
      TableName="VALUE_DOMAINS"
      RetrievedOnUpdate="true"
      RetrievedOnInsert="true" >
      <DesignTime>
         <Attr Name="_DisplaySize" Value="36" />
      </DesignTime>
   </Attribute>
   <AccessorAttribute
      Name="Contexts"
      Association="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.VdConteFkAssoc"
      AssociationEnd="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.VdConteFkAssoc.Contexts"
      AssociationOtherEnd="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.VdConteFkAssoc.ValueDomains"
      Type="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.ContextsImpl" >
   </AccessorAttribute>
   <AccessorAttribute
      Name="ConceptualDomains"
      Association="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.VdCdFkAssoc"
      AssociationEnd="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.VdCdFkAssoc.ConceptualDomains"
      AssociationOtherEnd="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.VdCdFkAssoc.ValueDomains"
      Type="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.ConceptualDomainsImpl" >
   </AccessorAttribute>
   <AccessorAttribute
      Name="Representation"
      Association="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.VdRepFkAssoc"
      AssociationEnd="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.VdRepFkAssoc.Representation"
      AssociationOtherEnd="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.VdRepFkAssoc.ValueDomains"
      Type="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.RepresentationImpl" >
   </AccessorAttribute>
   <AccessorAttribute
      Name="ConDerivationRulesExt"
      Association="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.VdCondrFkAssoc"
      AssociationEnd="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.VdCondrFkAssoc.ConDerivationRulesExt"
      AssociationOtherEnd="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.VdCondrFkAssoc.ValueDomains"
      Type="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.ConDerivationRulesExtImpl" >
   </AccessorAttribute>
   <AccessorAttribute
      Name="DataElements"
      Association="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.DeVdFkAssoc"
      AssociationEnd="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.DeVdFkAssoc.DataElements"
      AssociationOtherEnd="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.DeVdFkAssoc.ValueDomains"
      Type="oracle.jbo.RowIterator"
      IsUpdateable="false" >
   </AccessorAttribute>
   <AccessorAttribute
      Name="VdPvs"
      Association="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.VpVdFkAssoc"
      AssociationEnd="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.VpVdFkAssoc.VdPvs"
      AssociationOtherEnd="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.VpVdFkAssoc.ValueDomains"
      Type="oracle.jbo.RowIterator"
      IsUpdateable="false" >
   </AccessorAttribute>
   <ViewLinkAccessor
      Name="RepresentationViewObj"
      ViewLink="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.VDRepViewLink"
      ViewLinkEnd="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.VDRepViewLink.RepresentationViewObj"
      ViewLinkOtherEnd="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.VDRepViewLink.ValueDomainsView"
      Type="oracle.jbo.RowIterator"
      IsUpdateable="false" >
   </ViewLinkAccessor>
   <Key
      Name="SysC0062859" >
      <AttrArray Name="Attributes">
         <Item Value="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.ValueDomains.VdIdseq" />
      </AttrArray>
      <DesignTime>
         <Attr Name="_DBObjectName" Value="SYS_C0062859" />
         <Attr Name="_checkCondition" Value=""VD_IDSEQ" IS NOT NULL" />
         <Attr Name="_isCheck" Value="true" />
      </DesignTime>
   </Key>
   <Key
      Name="SysC0062860" >
      <AttrArray Name="Attributes">
         <Item Value="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.ValueDomains.Version" />
      </AttrArray>
      <DesignTime>
         <Attr Name="_DBObjectName" Value="SYS_C0062860" />
         <Attr Name="_checkCondition" Value=""VERSION" IS NOT NULL" />
         <Attr Name="_isCheck" Value="true" />
      </DesignTime>
   </Key>
   <Key
      Name="SysC0062861" >
      <AttrArray Name="Attributes">
         <Item Value="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.ValueDomains.PreferredName" />
      </AttrArray>
      <DesignTime>
         <Attr Name="_DBObjectName" Value="SYS_C0062861" />
         <Attr Name="_checkCondition" Value=""PREFERRED_NAME" IS NOT NULL" />
         <Attr Name="_isCheck" Value="true" />
      </DesignTime>
   </Key>
   <Key
      Name="SysC0062862" >
      <AttrArray Name="Attributes">
         <Item Value="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.ValueDomains.ConteIdseq" />
      </AttrArray>
      <DesignTime>
         <Attr Name="_DBObjectName" Value="SYS_C0062862" />
         <Attr Name="_checkCondition" Value=""CONTE_IDSEQ" IS NOT NULL" />
         <Attr Name="_isCheck" Value="true" />
      </DesignTime>
   </Key>
   <Key
      Name="SysC0062863" >
      <AttrArray Name="Attributes">
         <Item Value="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.ValueDomains.PreferredDefinition" />
      </AttrArray>
      <DesignTime>
         <Attr Name="_DBObjectName" Value="SYS_C0062863" />
         <Attr Name="_checkCondition" Value=""PREFERRED_DEFINITION" IS NOT NULL" />
         <Attr Name="_isCheck" Value="true" />
      </DesignTime>
   </Key>
   <Key
      Name="SysC0062864" >
      <AttrArray Name="Attributes">
         <Item Value="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.ValueDomains.DtlName" />
      </AttrArray>
      <DesignTime>
         <Attr Name="_DBObjectName" Value="SYS_C0062864" />
         <Attr Name="_checkCondition" Value=""DTL_NAME" IS NOT NULL" />
         <Attr Name="_isCheck" Value="true" />
      </DesignTime>
   </Key>
   <Key
      Name="SysC0062865" >
      <AttrArray Name="Attributes">
         <Item Value="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.ValueDomains.CdIdseq" />
      </AttrArray>
      <DesignTime>
         <Attr Name="_DBObjectName" Value="SYS_C0062865" />
         <Attr Name="_checkCondition" Value=""CD_IDSEQ" IS NOT NULL" />
         <Attr Name="_isCheck" Value="true" />
      </DesignTime>
   </Key>
   <Key
      Name="SysC0062866" >
      <AttrArray Name="Attributes">
         <Item Value="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.ValueDomains.VdTypeFlag" />
      </AttrArray>
      <DesignTime>
         <Attr Name="_DBObjectName" Value="SYS_C0062866" />
         <Attr Name="_checkCondition" Value=""VD_TYPE_FLAG" IS NOT NULL" />
         <Attr Name="_isCheck" Value="true" />
      </DesignTime>
   </Key>
   <Key
      Name="SysC0062867" >
      <AttrArray Name="Attributes">
         <Item Value="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.ValueDomains.AslName" />
      </AttrArray>
      <DesignTime>
         <Attr Name="_DBObjectName" Value="SYS_C0062867" />
         <Attr Name="_checkCondition" Value=""ASL_NAME" IS NOT NULL" />
         <Attr Name="_isCheck" Value="true" />
      </DesignTime>
   </Key>
   <Key
      Name="SysC0062868" >
      <AttrArray Name="Attributes">
         <Item Value="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.ValueDomains.DateCreated" />
      </AttrArray>
      <DesignTime>
         <Attr Name="_DBObjectName" Value="SYS_C0062868" />
         <Attr Name="_checkCondition" Value=""DATE_CREATED" IS NOT NULL" />
         <Attr Name="_isCheck" Value="true" />
      </DesignTime>
   </Key>
   <Key
      Name="SysC0062869" >
      <AttrArray Name="Attributes">
         <Item Value="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.ValueDomains.CreatedBy" />
      </AttrArray>
      <DesignTime>
         <Attr Name="_DBObjectName" Value="SYS_C0062869" />
         <Attr Name="_checkCondition" Value=""CREATED_BY" IS NOT NULL" />
         <Attr Name="_isCheck" Value="true" />
      </DesignTime>
   </Key>
   <Key
      Name="VdPk" >
      <AttrArray Name="Attributes">
         <Item Value="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.ValueDomains.VdIdseq" />
      </AttrArray>
      <DesignTime>
         <Attr Name="_DBObjectName" Value="VD_PK" />
         <Attr Name="_isPrimary" Value="true" />
      </DesignTime>
   </Key>
   <Key
      Name="VdUk" >
      <AttrArray Name="Attributes">
         <Item Value="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.ValueDomains.Version" />
         <Item Value="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.ValueDomains.PreferredName" />
         <Item Value="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.ValueDomains.ConteIdseq" />
      </AttrArray>
      <DesignTime>
         <Attr Name="_DBObjectName" Value="VD_UK" />
         <Attr Name="_isUnique" Value="true" />
      </DesignTime>
   </Key>
   <Key
      Name="VdAslFk" >
      <AttrArray Name="Attributes">
         <Item Value="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.ValueDomains.AslName" />
      </AttrArray>
      <DesignTime>
         <Attr Name="_DBObjectName" Value="VD_ASL_FK" />
         <Attr Name="_referencedKey" Value="ASL_PK" />
         <Attr Name="_isForeign" Value="true" />
      </DesignTime>
   </Key>
   <Key
      Name="VdCdFk" >
      <AttrArray Name="Attributes">
         <Item Value="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.ValueDomains.CdIdseq" />
      </AttrArray>
      <DesignTime>
         <Attr Name="_DBObjectName" Value="VD_CD_FK" />
         <Attr Name="_referencedKey" Value="CD_PK" />
         <Attr Name="_isForeign" Value="true" />
      </DesignTime>
   </Key>
   <Key
      Name="VdCondrFk" >
      <AttrArray Name="Attributes">
         <Item Value="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.ValueDomains.CondrIdseq" />
      </AttrArray>
      <DesignTime>
         <Attr Name="_DBObjectName" Value="VD_CONDR_FK" />
         <Attr Name="_referencedKey" Value="CONDR_PK" />
         <Attr Name="_isForeign" Value="true" />
      </DesignTime>
   </Key>
   <Key
      Name="VdConteFk" >
      <AttrArray Name="Attributes">
         <Item Value="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.ValueDomains.ConteIdseq" />
      </AttrArray>
      <DesignTime>
         <Attr Name="_DBObjectName" Value="VD_CONTE_FK" />
         <Attr Name="_referencedKey" Value="CONTE_PK" />
         <Attr Name="_isForeign" Value="true" />
      </DesignTime>
   </Key>
   <Key
      Name="VdCsvFk" >
      <AttrArray Name="Attributes">
         <Item Value="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.ValueDomains.CharSetName" />
      </AttrArray>
      <DesignTime>
         <Attr Name="_DBObjectName" Value="VD_CSV_FK" />
         <Attr Name="_referencedKey" Value="CSV_PK" />
         <Attr Name="_isForeign" Value="true" />
      </DesignTime>
   </Key>
   <Key
      Name="VdDtlFk" >
      <AttrArray Name="Attributes">
         <Item Value="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.ValueDomains.DtlName" />
      </AttrArray>
      <DesignTime>
         <Attr Name="_DBObjectName" Value="VD_DTL_FK" />
         <Attr Name="_referencedKey" Value="DTL_PK" />
         <Attr Name="_isForeign" Value="true" />
      </DesignTime>
   </Key>
   <Key
      Name="VdFormlFk" >
      <AttrArray Name="Attributes">
         <Item Value="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.ValueDomains.FormlName" />
      </AttrArray>
      <DesignTime>
         <Attr Name="_DBObjectName" Value="VD_FORML_FK" />
         <Attr Name="_referencedKey" Value="FORML_PK" />
         <Attr Name="_isForeign" Value="true" />
      </DesignTime>
   </Key>
   <Key
      Name="VdQlvFk" >
      <AttrArray Name="Attributes">
         <Item Value="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.ValueDomains.QualifierName" />
      </AttrArray>
      <DesignTime>
         <Attr Name="_DBObjectName" Value="VD_QLV_FK" />
         <Attr Name="_referencedKey" Value="QLV_PK" />
         <Attr Name="_isForeign" Value="true" />
      </DesignTime>
   </Key>
   <Key
      Name="VdRepFk" >
      <AttrArray Name="Attributes">
         <Item Value="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.ValueDomains.RepIdseq" />
      </AttrArray>
      <DesignTime>
         <Attr Name="_DBObjectName" Value="VD_REP_FK" />
         <Attr Name="_referencedKey" Value="REP_PK" />
         <Attr Name="_isForeign" Value="true" />
      </DesignTime>
   </Key>
   <Key
      Name="VdUomlFk" >
      <AttrArray Name="Attributes">
         <Item Value="gov.nih.nci.ncicb.cadsr.common.persistence.bc4j.ValueDomains.UomlName" />
      </AttrArray>
      <DesignTime>
         <Attr Name="_DBObjectName" Value="VD_UOML_FK" />
         <Attr Name="_referencedKey" Value="UOML_PK" />
         <Attr Name="_isForeign" Value="true" />
      </DesignTime>
   </Key>
</Entity>


text:
package com.amazonaws.services.lookoutequipment.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 *

 * Entity that comprises information abount unsupported timestamps in the dataset.
 *

 *
 * @see AWS API Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class UnsupportedTimestamps implements Serializable, Cloneable, StructuredPojo {

    /**
     *

     * Indicates the total number of unsupported timestamps across the ingested data.
     *

     */
    private Integer totalNumberOfUnsupportedTimestamps;

    /**
     *

     * Indicates the total number of unsupported timestamps across the ingested data.
     *

     *
     * @param totalNumberOfUnsupportedTimestamps
     *        Indicates the total number of unsupported timestamps across the ingested data.
     */

    public void setTotalNumberOfUnsupportedTimestamps(Integer totalNumberOfUnsupportedTimestamps) {
        this.totalNumberOfUnsupportedTimestamps = totalNumberOfUnsupportedTimestamps;
    }

    /**
     *

     * Indicates the total number of unsupported timestamps across the ingested data.
     *

     *
     * @return Indicates the total number of unsupported timestamps across the ingested data.
     */

    public Integer getTotalNumberOfUnsupportedTimestamps() {
        return this.totalNumberOfUnsupportedTimestamps;
    }

    /**
     *

     * Indicates the total number of unsupported timestamps across the ingested data.
     *

     *
     * @param totalNumberOfUnsupportedTimestamps
     *        Indicates the total number of unsupported timestamps across the ingested data.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public UnsupportedTimestamps withTotalNumberOfUnsupportedTimestamps(Integer totalNumberOfUnsupportedTimestamps) {
        setTotalNumberOfUnsupportedTimestamps(totalNumberOfUnsupportedTimestamps);
        return this;
    }

    /**
     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
     * redacted from this string using a placeholder value.
     *
     * @return A string representation of this object.
     *
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getTotalNumberOfUnsupportedTimestamps() != null)
            sb.append("TotalNumberOfUnsupportedTimestamps: ").append(getTotalNumberOfUnsupportedTimestamps());
        sb.append("}");
        return sb.toString();
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;

        if (obj instanceof UnsupportedTimestamps == false)
            return false;
        UnsupportedTimestamps other = (UnsupportedTimestamps) obj;
        if (other.getTotalNumberOfUnsupportedTimestamps() == null ^ this.getTotalNumberOfUnsupportedTimestamps() == null)
            return false;
        if (other.getTotalNumberOfUnsupportedTimestamps() != null
                && other.getTotalNumberOfUnsupportedTimestamps().equals(this.getTotalNumberOfUnsupportedTimestamps()) == false)
            return false;
        return true;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;

        hashCode = prime * hashCode + ((getTotalNumberOfUnsupportedTimestamps() == null) ? 0 : getTotalNumberOfUnsupportedTimestamps().hashCode());
        return hashCode;
    }

    @Override
    public UnsupportedTimestamps clone() {
        try {
            return (UnsupportedTimestamps) super.clone();
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
        }
    }

    @com.amazonaws.annotation.SdkInternalApi
    @Override
    public void marshall(ProtocolMarshaller protocolMarshaller) {
        com.amazonaws.services.lookoutequipment.model.transform.UnsupportedTimestampsMarshaller.getInstance().marshall(this, protocolMarshaller);
    }
}


text:
<?php

namespace MicrosoftAzure\Storage\Table\Models;

/**
 * Represents entity property.
 *
 * @category  Microsoft
 * @package   MicrosoftAzure\Storage\Table\Models
 * @author    Azure Storage PHP SDK <dmsh@microsoft.com>
 * @copyright 2016 Microsoft Corporation
 * @license   https://github.com/azure/azure-storage-php/LICENSE
 * @link      https://github.com/azure/azure-storage-php
 */
class Property
{
    private $edmType;
    private $value;
    private $rawValue;

    /**
     * Gets the type of the property.
     *
     * @return string
     */
    public function getEdmType()
    {
        return $this->edmType;
    }

    /**
     * Sets the value of the property.
     *
     * @param string $edmType The property type.
     *
     * @return void
     */
    public function setEdmType($edmType)
    {
        EdmType::isValid($edmType);
        $this->edmType = $edmType;
    }

    /**
     * Gets the value of the property.
     *
     * @return mixed
     */
    public function getValue()
    {
        return $this->value;
    }

    /**
     * Sets the property value.
     *
     * @param mixed $value The value of property.
     *
     * @return void
     */
    public function setValue($value)
    {
        $this->value = $value;
    }

    /**
     * Gets the raw value of the property.
     *
     * @return string
     */
    public function getRawValue()
    {
        return $this->rawValue;
    }

    /**
     * Sets the raw property value.
     *
     * @param mixed $rawValue The raw value of property.
     *
     * @return void
     */
    public function setRawValue($rawValue)
    {
        $this->rawValue = $rawValue;
    }
}


text:
#pragma once

#undef ACAD_OBJID_INLINE_INTERNAL
#include "dbhatch.h"
#include <tchar.h>

class AcDbCircle;
class AcDb2dPolyline;
class AcDbPolyline;
class AcDbMPolygonCrossingArray;
class AcDbMPolygonNode;

const double AcDbMPolygonCrossingFuzz = 1E-6;

#ifndef _ADESK_MAC_
#ifndef ACMPOLYGON_PORT
#ifdef ACMPOLYGON_API
    #define ACMPOLYGON_PORT _declspec(dllexport)
#else
    #define ACMPOLYGON_PORT _declspec(dllimport)
#endif
#endif
#else
// On OS X, we will export all symbols by default and will use GCC
// attributes to exclude symbols we don't want to export.
#define ACBASE_PORT
#endif // _ADESK_MAC_

class AcDbMPolygon : public AcDbEntity {
public:

    enum loopDir {
        kExterior     = 0,            // counter clockwise
        kInterior,                    // clockwise
        kAnnotation                   // text
    };

    // Constructors and Destructors
    //
    ACMPOLYGON_PORT AcDbMPolygon();
    ACMPOLYGON_PORT virtual ~AcDbMPolygon();

    ACRX_DECLARE_MEMBERS_EXPIMP(AcDbMPolygon, ACMPOLYGON_PORT);

    //*************************************************************************
    // Methods specific to AcDbMPolygon
    //*************************************************************************

    // Mpolygon hatch member access methods.
    //
    ACMPOLYGON_PORT virtual AcDbHatch * hatch();

    // Hatch Plane Methods
    //
    ACMPOLYGON_PORT virtual double elevation() const;
    ACMPOLYGON_PORT virtual Acad::ErrorStatus setElevation(double elevation);

    ACMPOLYGON_PORT virtual AcGeVector3d normal() const;
    ACMPOLYGON_PORT virtual Acad::ErrorStatus setNormal(const AcGeVector3d& normal);

    // Hatch Graphics Display Control Methods
    //
    ACMPOLYGON_PORT virtual Acad::ErrorStatus  evaluateHatch(bool bUnderestimateNumLines = false);

    // Hatch Pattern Methods
    //
    ACMPOLYGON_PORT virtual AcDbHatch::HatchPatternType patternType() const;

    ACMPOLYGON_PORT virtual const TCHAR* patternName() const;

    ACMPOLYGON_PORT virtual Acad::ErrorStatus  setPattern(AcDbHatch::HatchPatternType patType,
                                  const TCHAR* patName);

    ACMPOLYGON_PORT virtual double patternAngle() const;
    ACMPOLYGON_PORT virtual Acad::ErrorStatus setPatternAngle(double angle);

    ACMPOLYGON_PORT virtual double patternSpace() const;
    ACMPOLYGON_PORT virtual Acad::ErrorStatus setPatternSpace(double space);

    ACMPOLYGON_PORT virtual double patternScale() const;
    ACMPOLYGON_PORT virtual Acad::ErrorStatus setPatternScale(double scale);

    ACMPOLYGON_PORT virtual bool patternDouble() const;
    ACMPOLYGON_PORT virtual Acad::ErrorStatus setPatternDouble(bool isDouble);

    ACMPOLYGON_PORT virtual int numPatternDefinitions() const;
    ACMPOLYGON_PORT virtual Acad::ErrorStatus  getPatternDefinitionAt(int index,
                                              double& angle,
                                              double& baseX,
                                              double& baseY,
                                              double& offsetX,
                                              double& offsetY,
                                              AcGeDoubleArray& dashes)
                                              const;

    // Hatch Gradient support

    ACMPOLYGON_PORT Acad::ErrorStatus setGradientAngle(double angle);
    ACMPOLYGON_PORT Acad::ErrorStatus setGradientShift( float shiftValue );
    ACMPOLYGON_PORT Acad::ErrorStatus setGradientOneColorMode( Adesk::Boolean oneColorMode );
    ACMPOLYGON_PORT Acad::ErrorStatus setGradientColors( unsigned int count,
                                            AcCmColor* colors,
                                            float* values );
    ACMPOLYGON_PORT Acad::ErrorStatus setGradient(AcDbHatch::GradientPatternType gradType,
                                   const TCHAR* gradName);

    // Mpolygon access methods.
    //
    ACMPOLYGON_PORT virtual AcCmColor patternColor() const;
    ACMPOLYGON_PORT virtual Acad::ErrorStatus setPatternColor(const AcCmColor& pc);

    ACMPOLYGON_PORT virtual double getArea() const;
    ACMPOLYGON_PORT virtual double getPerimeter() const;

    ACMPOLYGON_PORT virtual bool isBalanced() const;

    ACMPOLYGON_PORT virtual AcGeVector2d getOffsetVector() const;

    ACMPOLYGON_PORT virtual Acad::ErrorStatus getMPolygonTree(AcDbMPolygonNode*& loopNode) const;
    ACMPOLYGON_PORT virtual void deleteMPolygonTree(AcDbMPolygonNode* loopNode) const;

    // Mpolygon loop quiry and manipulation methods.
    //
    ACMPOLYGON_PORT virtual Acad::ErrorStatus appendLoopFromBoundary(const AcDbCircle* pCircle,
        bool excludeCrossing = true, double tol = AcDbMPolygonCrossingFuzz);
    ACMPOLYGON_PORT virtual Acad::ErrorStatus appendLoopFromBoundary(const AcDbPolyline* pPoly,
        bool excludeCrossing = true, double tol = AcDbMPolygonCrossingFuzz);
    ACMPOLYGON_PORT virtual Acad::ErrorStatus appendLoopFromBoundary(const AcDb2dPolyline* pPoly,
        bool excludeCrossing = true, double tol = AcDbMPolygonCrossingFuzz);

    ACMPOLYGON_PORT virtual int numMPolygonLoops() const;
    ACMPOLYGON_PORT virtual Acad::ErrorStatus getMPolygonLoopAt(int loopIndex, AcGePoint2dArray& vertices,
                                        AcGeDoubleArray& bulges) const;

    ACMPOLYGON_PORT virtual Acad::ErrorStatus insertMPolygonLoopAt(int loopIndex,
        const AcGePoint2dArray& vertices, const AcGeDoubleArray& bulges,
        bool excludeCrossing = true, double tol = AcDbMPolygonCrossingFuzz);

    ACMPOLYGON_PORT virtual Acad::ErrorStatus appendMPolygonLoop(const AcGePoint2dArray& vertices,
        const AcGeDoubleArray& bulges, bool excludeCrossing = true,
        double tol = AcDbMPolygonCrossingFuzz);
    ACMPOLYGON_PORT virtual Acad::ErrorStatus removeMPolygonLoopAt(int loopIndex);

    ACMPOLYGON_PORT virtual Acad::ErrorStatus balanceTree();
    ACMPOLYGON_PORT virtual Acad::ErrorStatus balanceDisplay();

    ACMPOLYGON_PORT virtual Acad::ErrorStatus getLoopDirection(int lindex, AcDbMPolygon::loopDir& dir) const;
    ACMPOLYGON_PORT virtual Acad::ErrorStatus setLoopDirection(int lindex, AcDbMPolygon::loopDir dir);

    ACMPOLYGON_PORT virtual Acad::ErrorStatus getLoopAtGsMarker(int gsMark, int &loop) const;
    ACMPOLYGON_PORT virtual void getChildLoops(int curLoop, AcGeIntArray& selectedLoopIndexes) const;
    ACMPOLYGON_PORT virtual int getParentLoop(int curLoop) const;
    ACMPOLYGON_PORT virtual int getClosestLoopTo(const AcGePoint3d& worldPt) const;

    // Mpolyon loop crossing and inside methods.
    //
    ACMPOLYGON_PORT virtual int isPointInsideMPolygon(const AcGePoint3d& worldPt, AcGeIntArray& loopsArray,
                                      double tol = AcDbMPolygonCrossingFuzz) const;
    ACMPOLYGON_PORT virtual bool isPointOnLoopBoundary(const AcGePoint3d& worldPt, int loop,
                                       double tol = AcDbMPolygonCrossingFuzz) const;

    ACMPOLYGON_PORT virtual Acad::ErrorStatus loopCrossesItself(bool& crosses, bool findAll,
                                        AcDbMPolygonCrossingArray& crossingsArray,
                                        const AcGePoint2dArray& vertexPts,
                                        const AcGeDoubleArray& vertexBulges,
                                        double tol = AcDbMPolygonCrossingFuzz) const;

    ACMPOLYGON_PORT virtual bool loopCrossesItself(const AcGePoint2dArray& vertexPts,
                           const AcGeDoubleArray& vertexBulges,
                           double tol = AcDbMPolygonCrossingFuzz) const;

    ACMPOLYGON_PORT virtual Acad::ErrorStatus loopCrossesMPolygon(bool& crosses, bool findAll,
                                          AcDbMPolygonCrossingArray& crossingsArray,
                                          const AcGePoint2dArray& testVertexPts,
                                          const AcGeDoubleArray& testVertexBulges,
                                          double tol = AcDbMPolygonCrossingFuzz) const;

    ACMPOLYGON_PORT virtual bool selfCrosses(const AcGePoint2dArray& vertexPts,
                     const AcGeDoubleArray& vertexBulges,
                     double tol = AcDbMPolygonCrossingFuzz) const;

    ACMPOLYGON_PORT virtual bool includesTouchingLoops(double tol = AcDbMPolygonCrossingFuzz) const;

    //*************************************************************************
    // Overridden methods from AcDbEntity
    //*************************************************************************
    ACMPOLYGON_PORT virtual Acad::ErrorStatus subGetClassID( CLSID* pClsid) const;

    ACMPOLYGON_PORT virtual Adesk::Boolean    subWorldDraw(AcGiWorldDraw*  mode);
    ACMPOLYGON_PORT virtual void              saveAs(AcGiWorldDraw* mode, AcDb::SaveType st);

    ACMPOLYGON_PORT virtual Acad::ErrorStatus subGetSubentPathsAtGsMarker(
        AcDb::SubentType      type,
        Adesk::GsMarker       gsMark,
        const AcGePoint3d&    pickPoint,
        const AcGeMatrix3d&   viewXform,
        int&                  numPaths,
        AcDbFullSubentPath*&  subentPaths,
        int                   numInserts = 0,
        AcDbObjectId*         entAndInsertStack
        = NULL) const;

    ACMPOLYGON_PORT virtual Acad::ErrorStatus subGetGsMarkersAtSubentPath(
        const AcDbFullSubentPath& subPath,
        AcArray<Adesk::GsMarker>&         gsMarkers) const;

    ACMPOLYGON_PORT virtual AcDbEntity*       subSubentPtr(const AcDbFullSubentPath& id) const;

    ACMPOLYGON_PORT virtual Acad::ErrorStatus   subIntersectWith(
        const AcDbEntity*   ent,
        AcDb::Intersect     intType,
        AcGePoint3dArray&   points,
        Adesk::GsMarker     thisGsMarker  = 0,
        Adesk::GsMarker     otherGsMarker = 0)
        const;

    ACMPOLYGON_PORT virtual Acad::ErrorStatus   subIntersectWith(
        const AcDbEntity*   ent,
        AcDb::Intersect     intType,
        const AcGePlane&    projPlane,
        AcGePoint3dArray&   points,
        Adesk::GsMarker     thisGsMarker  = 0,
        Adesk::GsMarker     otherGsMarker = 0)
        const;

    ACMPOLYGON_PORT virtual Acad::ErrorStatus   subGetOsnapPoints(
        AcDb::OsnapMode       osnapMode,
        Adesk::GsMarker       gsSelectionMark,
        const AcGePoint3d&    pickPoint,
        const AcGePoint3d&    lastPoint,
        const AcGeMatrix3d&   viewXform,
        AcGePoint3dArray&        snapPoints,
        AcDbIntArray&     geomIds) const;

    ACMPOLYGON_PORT virtual Acad::ErrorStatus subGetGripPoints(AcGePoint3dArray&     gripPoints,
        AcDbIntArray&  osnapModes,
        AcDbIntArray&  geomIds) const;

    ACMPOLYGON_PORT virtual Acad::ErrorStatus subMoveGripPointsAt(const AcDbIntArray& indices,
        const AcGeVector3d& offset);

    ACMPOLYGON_PORT virtual Acad::ErrorStatus subGetStretchPoints(AcGePoint3dArray& stretchPoints) const;

    ACMPOLYGON_PORT virtual Acad::ErrorStatus subMoveStretchPointsAt( const AcDbIntArray& indices,
        const AcGeVector3d& offset);

    ACMPOLYGON_PORT virtual Acad::ErrorStatus   subTransformBy(const AcGeMatrix3d& xform);
    ACMPOLYGON_PORT virtual Acad::ErrorStatus   subGetGeomExtents(AcDbExtents& extents) const;
    ACMPOLYGON_PORT virtual void              subList() const;

    ACMPOLYGON_PORT virtual Acad::ErrorStatus   subExplode( AcDbVoidPtrArray& entitySet) const;

    //*************************************************************************
    // Overridden methods from AcDbObject
    //*************************************************************************

    ACMPOLYGON_PORT virtual Acad::ErrorStatus dwgInFields(AcDbDwgFiler* filer);
    ACMPOLYGON_PORT virtual Acad::ErrorStatus dwgOutFields(AcDbDwgFiler* filer) const;
    ACMPOLYGON_PORT virtual Acad::ErrorStatus dxfInFields(AcDbDxfFiler* filer);
    ACMPOLYGON_PORT virtual Acad::ErrorStatus dxfOutFields(AcDbDxfFiler* filer) const;
    ACMPOLYGON_PORT virtual Acad::ErrorStatus audit(AcDbAuditInfo* );
    ACMPOLYGON_PORT virtual Acad::ErrorStatus decomposeForSave(AcDb::AcDbDwgVersion ver,
        AcDbObject*& replaceObj, AcDbObjectId& replaceId,
        Adesk::Boolean& exchangeXData);

    // Batch Mpolygon creation (it should have no loops)
    //
    ACMPOLYGON_PORT virtual Acad::ErrorStatus createLoopsFromBoundaries (const AcDbObjectIdArray &ids,
        AcDbIntArray &rejectedObjs,
        bool excludeCrossing = true, double tol = AcDbMPolygonCrossingFuzz);
    ACMPOLYGON_PORT virtual Acad::ErrorStatus createLoops (const AcArray<AcGePoint2dArray,AcArrayObjectCopyReallocator<AcGePoint2dArray> > &vertices,
        const AcArray<AcGeDoubleArray,AcArrayObjectCopyReallocator<AcGeDoubleArray> > &bulges, AcDbIntArray &rejectedObjs,
        bool excludeCrossing = true, double tol = AcDbMPolygonCrossingFuzz);

private:
    friend class AcDbImpMPolygon;
    void* pImp;
};

// This class is used during loop editing to store loops.
// The MpolygonUI.arx application uses this during dragging
// while in the MPEDT Move command.
class AcDbMpolygonLoops {
public:
    AcDbMpolygonLoops(int lindex, int gindex = 0, int gcnt = 0);

    int mLoopIndex;                   // AcDbHatch loop index.
    bool mIsText;                     // Annotation Loop?
    int mGripIndex;                   // Base grip index for this loop (grip editing only.)
    int mGripCount;                   // Number of hot grips in the loop (grip editing only.)
    AcGePoint2dArray mVertexPoints;
    AcGeDoubleArray mVertexBulges;
};

inline
AcDbMpolygonLoops::AcDbMpolygonLoops(int lindex, int gindex, int gcnt)
{
    mLoopIndex = lindex;
    mGripIndex = gindex;
    mGripCount = gcnt;
}

// This class is used to store one mpolygon loop crossing point.
class AcDbMPolygonCrossing {
public:
    ACMPOLYGON_PORT AcDbMPolygonCrossing();
    ACMPOLYGON_PORT ~AcDbMPolygonCrossing();

    ACMPOLYGON_PORT int getLoopIndex() const;         // Crossing loop index
    ACMPOLYGON_PORT void setLoopIndex(int index);

    ACMPOLYGON_PORT int getEdgeIndex() const;         // Starting vertex index of loop edge
    ACMPOLYGON_PORT void setEdgeIndex(int index);

    ACMPOLYGON_PORT AcGePoint2d getCrossingPoint() const; // Loop crossing point
    ACMPOLYGON_PORT void setCrossingPoint(const AcGePoint2d& pt);

private:
    void* pImp;
};

// An Array of class AcDbMPolygonCrossing (loop crossing points).
class AcDbMPolygonCrossingArray {
public:
    ~AcDbMPolygonCrossingArray();

    AcArray<AcDbMPolygonCrossing *> mCrossingArray;
};

inline
AcDbMPolygonCrossingArray::~AcDbMPolygonCrossingArray()
{
    AcDbMPolygonCrossing* pCrossing;
    int numCross = mCrossingArray.length();
    for (int i = numCross - 1; i >= 0; i--) {
        pCrossing = mCrossingArray[i];
        mCrossingArray.removeAt(i);
        if (pCrossing != NULL)
            delete pCrossing;
    }
}

// The following class is used by the getMPolygonTree API to
//  return the internal tree ordered loops.

class AcDbMPolygonNode {
public:
    // Constructor
    AcDbMPolygonNode();

public:
    AcDbMPolygonNode * mParent;
    AcArray<AcDbMPolygonNode*> mChildren;
    int mLoopIndex;                   // MPolygon loop index.
};

inline
AcDbMPolygonNode::AcDbMPolygonNode()
    : mLoopIndex(-1), mParent(NULL)
{
}


text:
FROM ubuntu
LABEL maintainer="Weaveworks Inc <help@weave.works>"
RUN apt-get update && \
  apt-get install -y nginx && \
  rm -rf /var/lib/apt/lists/*
RUN rm /etc/nginx/sites-available/default && \
  ln -sf /dev/stdout /var/log/nginx/access.log && \
  ln -sf /dev/stderr /var/log/nginx/error.log
COPY default.conf /etc/nginx/conf.d/
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]


text:
Services for Google Cloud Spanner Admin Instance v1 API
=======================================================
.. toctree::
    :maxdepth: 2

    instance_admin


text:
require 'test_helper'

class SessionsHelperTest < ActionView::TestCase
  def setup
    @user = users(:one)
    remember(@user)
  end

  test 'current_user when session is nil' do
    assert_equal @user, current_user
    assert is_logged_in?
  end

  test 'current_user nil with invalid digest' do
    @user.update_attribute(:remember_digest, User.digest(User.new_token))
    assert_nil current_user
  end
end


text:
package com.nwpu.heartwings.util;

import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.List;

import org.apache.commons.io.IOUtils;

import com.alibaba.fastjson.JSONArray;
import com.heart.bean.HeartMsg;
import com.heart.bean.HeartNews;
import com.heart.bean.HeartReturnBindMsg;
import com.heart.bean.OldmanBean;
import com.heart.bean.RegularPosition;
import com.heart.bean.RegularShare;
import com.nwpu.heartwings.app.HeartApp;

import android.content.Context;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.util.Log;

public class LocalFileUtil {

	public static String getThisClient(Context context)
	{
		SharedPreferences preferences =context.getSharedPreferences(CONSTANTS.PREFERENCE, android.content.Context.MODE_PRIVATE);

		String name = preferences.getString("login_phone", "");

		return name;
	}

	public static void savaBindInDB(HeartReturnBindMsg msg){

		   BindInfoDBHelper dbHelper = new BindInfoDBHelper(HeartApp.getInstance(), "heartBind.db3", null, 1);

		    String oldmanPhone = msg.getFromUserName();
		    String oldmanName = msg.getOldmanName();

		    String thisClient = getThisClient(HeartApp.getInstance());

		    insertBindData(dbHelper.getReadableDatabase(), oldmanPhone, oldmanName,thisClient);

		    HeartApp.getInstance().oldmanHashMap.put(oldmanPhone, oldmanName);

		    dbHelper.close();
	}

	private static void insertBindData(SQLiteDatabase database, String phone, String name,String thisClient){

		  database.execSQL("insert into binding values(null,?,?,?)",new String[]{phone,name,thisClient});

	}

	public static ArrayList<OldmanBean> searchForAllBinded(String client){

		ArrayList<OldmanBean> oldmanBeans = new ArrayList<OldmanBean>();

		 BindInfoDBHelper dbHelper = new BindInfoDBHelper(HeartApp.getInstance(), "heartBind.db3", null, 1);

		 Cursor cursor = dbHelper.getReadableDatabase().rawQuery("select  *  from binding where thisclient = ?", new String[]{client});

		 while(cursor.moveToNext()){

			 OldmanBean oldmanBean = new OldmanBean();

			 oldmanBean.setPhone(cursor.getString(1));
			 oldmanBean.setName(cursor.getString(2));

			 oldmanBeans.add(oldmanBean);
		 }

		 cursor.close();
		 dbHelper.close();

		return oldmanBeans;

	}

	public static OldmanBean getOldmanByPhone(String phone){

		 OldmanBean oldmanBean = new OldmanBean();

		 BindInfoDBHelper dbHelper = new BindInfoDBHelper(HeartApp.getInstance(), "heartBind.db3", null, 1);

		 Cursor cursor = dbHelper.getReadableDatabase().rawQuery
				 ("select * from binding where phone = ?", new String[]{phone});

		 while(cursor.moveToNext()){

			  oldmanBean.setPhone(phone);
			  oldmanBean.setName(cursor.getString(2));
		 }

		 cursor.close();
		 dbHelper.close();
		 return oldmanBean;
	}

	public static void saveInitInDB(List<OldmanBean> oldmanBeans){

		System.out.println("run sava init in db");
		BindInfoDBHelper dbHelper = new BindInfoDBHelper(HeartApp.getInstance(), "heartBind.db3", null, 1);

		String thisClient = getThisClient(HeartApp.getInstance());

		HeartApp.getInstance().oldmanHashMap.clear();
		for(OldmanBean oldmanBean : oldmanBeans){
			 insertBindData(dbHelper.getWritableDatabase(), oldmanBean.getPhone(), oldmanBean.getName(),thisClient);

			 HeartApp.getInstance().oldmanHashMap.put(oldmanBean.getPhone(), oldmanBean.getName());

		}

		dbHelper.close();
	}

	public static void dropTable(){

		 BindInfoDBHelper dbHelper = new BindInfoDBHelper(HeartApp.getInstance(), "heartBind.db3", null, 1);

		 dbHelper.getReadableDatabase().execSQL("delete from binding");

		 dbHelper.close();
	}

	public static void SaveEmergencyInDB(String name,String phone,String oldmanPhone){

		EmergencyDBHelper dbHelper = new EmergencyDBHelper(HeartApp.getInstance(), "heartEmergency.db3", null, 1);

		 dbHelper.getReadableDatabase().execSQL("insert into emergency values(null,?,?,?)",new String[]{phone,name,oldmanPhone});

		 dbHelper.close();
	}

	public static Cursor fetchEmergencyCursor(String oldman){

		EmergencyDBHelper dbHelper = new EmergencyDBHelper(HeartApp.getInstance(), "heartEmergency.db3", null, 1);

		Cursor cursor = dbHelper.getReadableDatabase()
				 .rawQuery("select * from emergency where oldmanphone = ?", new String[]{oldman});

		//dbHelper.close();

		return cursor;
	}

	public static void removeEmergencyItem(int _id){

		EmergencyDBHelper dbHelper = new EmergencyDBHelper(HeartApp.getInstance(), "heartEmergency.db3", null, 1);

		dbHelper.getReadableDatabase().execSQL("delete from emergency where _id =" + _id);

		dbHelper.close();
	}

	/**
	 * ±£´æͼƬµ½SDµÄ»º´æ,Õâ¸ö·½·¨±£´æµÄͼƬûÓÐÉèÖÃÓÐЧÆÚ£¬
	 * ʹÓÃʱ£¬Ö»±£´æÁËÌìÆøͼ±ê£¬¼´¿É³¤ÆÚ´æ´¢µÄ¡£
	 * @param bitmap
	 * @param url
	 */
	public static void saveImgToSD(Bitmap bitmap,String url){
		  if(bitmap == null){
			  Log.w("czp", "try to save null bitmap");
			  return;
		  }

		  File cachdir = HeartApp.getInstance().getExternalCacheDir();

		  System.out.println(urlToLocalPath(url) + " actural path is ");
		  File imgFile = new File(cachdir, urlToLocalPath(url));

		  try {
			OutputStream outputStream =
					   new FileOutputStream(imgFile);

			  bitmap.compress(Bitmap.CompressFormat.JPEG, 100, outputStream);

			  outputStream.flush();
			  outputStream.close();
			  Log.w("czp", "save ok");
		} catch (IOException e) {
		     Log.w("czp", "sava err");
			e.printStackTrace();
		}

	}

	public static void savePositionCache(String data){

		 File cachdir = HeartApp.getInstance().getExternalCacheDir();

		 File positionFile = new File(cachdir, "positions.dat");

		 if(new File(cachdir, "position.dat").exists())
		 {
			 new File(cachdir, "position.dat").delete();
		 }

		 try {

			OutputStream outputStream =
					 new BufferedOutputStream(new FileOutputStream(positionFile));
			outputStream.write(data.getBytes());

			outputStream.flush();
			outputStream.close();

		} catch (FileNotFoundException e) {
			 Log.w("czp", "sava err cache not found");
			e.printStackTrace();
		} catch (IOException e) {
			 Log.w("czp", "sava cache err");
			e.printStackTrace();
		}

	}

	public static List<RegularPosition> getPositionCache(){

        File cachdir = HeartApp.getInstance().getExternalCacheDir();

		 File positionFile = new File(cachdir, "positions.dat");

		 try {

			 InputStream inputStream = new BufferedInputStream(new FileInputStream(positionFile));

			String data =  IOUtils.toString(inputStream);

			System.out.println("data from cache " + data);

			inputStream.close();

			return JSONArray.parseArray(data, RegularPosition.class);

		} catch (IOException e) {

			e.printStackTrace();
		}

		 return null;
	}
	public static String urlToLocalPath(String url){

		return url.replaceAll("[:%$=/]","_" ) ;
	}

	public static Bitmap getBitmapFromLocalPath(String url) throws FileNotFoundException{

		 File cachdir = HeartApp.getInstance().getExternalCacheDir();

		  File imgFile = new File(cachdir, url);

		  return BitmapFactory.decodeStream(new FileInputStream(imgFile));

	}

	public static boolean isFileExistInCache(String filename) throws FileNotFoundException, IOException{

		  File cachdir = HeartApp.getInstance().getExternalCacheDir();
		  File file = new File(cachdir, filename);
		   return file.exists();
	}

	/**
	 * ±£´æÒ»°ãµÄ»º´æÎļþ,
	 * ·ÖÏí : share.dat
	 *
	 * @param filename
	 * @param data
	 */
	public static void saveCommonCache(String filename,String data){

		 File cachdir = HeartApp.getInstance().getExternalCacheDir();

		 File cacheFile = new File(cachdir, filename);

		 try {

				OutputStream outputStream =
						 new BufferedOutputStream(new FileOutputStream(cacheFile));
				outputStream.write(data.getBytes());
				outputStream.flush();
				outputStream.close();

			} catch (FileNotFoundException e) {
				 Log.w("czp", "sava err cache not fount in common save");
				e.printStackTrace();
			} catch (IOException e) {
				 Log.w("czp", "sava cache err in common save");
				e.printStackTrace();
			}
	}

	public static List<RegularShare> getCacheShare(){

		 File cachdir = HeartApp.getInstance().getExternalCacheDir();

		 File shareCache = new File(cachdir, "shares.dat");

		 try {
			InputStream inputStream = new BufferedInputStream(new FileInputStream(shareCache));

				String data =  IOUtils.toString(inputStream);

				System.out.println("data from cache " + data);

				inputStream.close();

				return JSONArray.parseArray(data,RegularShare.class);

		} catch (IOException e) {
		     Log.d("czp", "get share cache err");
			e.printStackTrace();
		}
		return null;
	}

	/**
	 * Õâ¸ö»º´æͼƬµÄ·½·¨ÊÇÉèÖÃÁËÓÐЧÆڵġ£¹æ¶¨×î´ó»º´æ15ÕÅͼƬ
	 * Ö÷Òª»º´æ·ÖÏíµÄͼƬ£¬±£´æÔÚ \share\ÏÂÃæ
	 * @param bitmap
	 * @param url ÍøÂçURL
	 */

	public static void saveImgWithExpire(Bitmap bitmap, String url){

		 File cachdir = HeartApp.getInstance().getExternalCacheDir();

		 File shareFolder = new File(cachdir.getAbsolutePath() + File.separator +
				  "share" + File.separator);

		 if(!shareFolder.exists()){
			 shareFolder.mkdir();
		 }

		 // Èç¹û¸ÃĿ¼ÏÂÎļþÊý´óÓÚ15£¬ÔòÖ´ÐÐɾ³ý²ßÂÔ
         if(shareFolder.listFiles().length > 15)
         {
        	 // ÏÈÕÒ³ö×î½üδʹÓõÄ
        	 File[] files = shareFolder.listFiles();
        	 Arrays.sort(files, new Comparator<File>() {

				@Override
				public int compare(File file1, File file2) {

                    long deta = file1.lastModified() - file2.lastModified();

					return deta < 0 ? -1 : 1;
				}

			});

        	 files[0].delete();
        	 files[1].delete();
        	 files[2].delete();

         }

		 File imgFile = new File(shareFolder, urlToLocalPath(url));

		 try {
			OutputStream outputStream =
					   new FileOutputStream(imgFile);

			  bitmap.compress(Bitmap.CompressFormat.JPEG, 100, outputStream);

			  outputStream.flush();
			  outputStream.close();
			  Log.w("czp", "save ok");

		} catch (IOException e) {
			e.printStackTrace();
		}

	}

	/**
	 *
	 * @param url ±¾µØURL
	 * @return
	 */
	public static boolean isShareImgInCache(String url){

        File cachdir = HeartApp.getInstance().getExternalCacheDir();

		 File shareFolder = new File(cachdir.getAbsolutePath() + File.separator +
				  "share" + File.separator);

		 File shareImg = new File(shareFolder, url);
		 System.out.println(cachdir.getAbsolutePath() + "  " + shareImg.exists());

		 return shareImg.exists();

	}

	/**
	 *
	 * @param url ÊDZ¾µØURL
	 * @return
	 * @throws FileNotFoundException
	 */
	public static Bitmap getShareBitmapFromLocal(String url) throws FileNotFoundException{

		File cachdir = HeartApp.getInstance().getExternalCacheDir();

		 File shareFolder = new File(cachdir.getAbsolutePath() + File.separator +
				  "share" + File.separator);

		 File shareFile = new File(shareFolder,url);

		 return BitmapFactory.decodeStream(new FileInputStream(shareFile));

	}

	public static List<HeartMsg> getCacheAgenda(){

		File cachdir = HeartApp.getInstance().getExternalCacheDir();

		 File shareCache = new File(cachdir, "agenda.dat");

		 try {
			InputStream inputStream = new BufferedInputStream(new FileInputStream(shareCache));

				String data =  IOUtils.toString(inputStream);

				System.out.println("data from cache " + data);

				inputStream.close();

				return JSONArray.parseArray(data,HeartMsg.class);

		} catch (IOException e) {
		     Log.d("czp", "get agenda cache err");
			e.printStackTrace();
		}

		return null;
	}

	public static List<HeartNews> getCacheNews(){

		File cachdir = HeartApp.getInstance().getExternalCacheDir();

		File newsFile = new File(cachdir,"heartnews.dat");

		try {
			InputStream inputStream = new BufferedInputStream(new FileInputStream(newsFile));

			String data = IOUtils.toString(inputStream);

			inputStream.close();

			return JSONArray.parseArray(data, HeartNews.class);

		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

		return null;
	}
}


text:
namespace AcademyGrandPrix.Data
{
    using System;
    using System.Data.Entity;
    using System.Linq;

    using Microsoft.AspNet.Identity.EntityFramework;

    using AcademyGrandPrix.Data.Models;
    using AcademyGrandPrix.Data.Common.Models;

    public class AcademyGrandPrixDbContext : IdentityDbContext<User>
    {
        public AcademyGrandPrixDbContext()
            : base("DefaultConnection", throwIfV1Schema: false)
        {
        }

        public virtual IDbSet<Track> Tracks { get; set; }

        public virtual IDbSet<Competition> Competitions { get; set; }

        public virtual IDbSet<Image> Images { get; set; }

        public virtual IDbSet<Vote> Votes { get; set; }

        public static AcademyGrandPrixDbContext Create()
        {
            return new AcademyGrandPrixDbContext();
        }

        private void ApplyAuditInfoRules()
        {
            foreach (var entry in this.ChangeTracker.Entries()
                    .Where(e => e.Entity is IAuditInfo && ((e.State == EntityState.Added) || (e.State == EntityState.Modified))))
            {
                var entity = (IAuditInfo)entry.Entity;
                if (entry.State == EntityState.Added && entity.CreatedOn == default(DateTime))
                {
                    entity.CreatedOn = DateTime.Now;
                }
                else
                {
                    entity.ModifiedOn = DateTime.Now;
                }
            }
        }

        public override int SaveChanges()
        {
            this.ApplyAuditInfoRules();
            return base.SaveChanges();
        }

        //protected override void OnModelCreating(DbModelBuilder modelBuilder)
        //{
        //    modelBuilder.Entity<Vote>()
        //        .HasRequired(c => c.Track)
        //        .WithMany()
        //        .WillCascadeOnDelete(false);

        //    modelBuilder.Entity<Vote>()
        //        .HasRequired(c => c.Author)
        //        .WithMany()
        //        .WillCascadeOnDelete(false);

        //    base.OnModelCreating(modelBuilder);
        //}
    }
}


text:
require 'test_helper'

class SubjectsControllerTest < ActionController::TestCase
  setup do
    @subject = subjects(:one)
  end

  test "should get index" do
    get :index
    assert_response :success
    assert_not_nil assigns(:subjects)
  end

  test "should get new" do
    get :new
    assert_response :success
  end

  test "should create subject" do
    assert_difference('Subject.count') do
      post :create, subject: {  }
    end

    assert_redirected_to subject_path(assigns(:subject))
  end

  test "should show subject" do
    get :show, id: @subject
    assert_response :success
  end

  test "should get edit" do
    get :edit, id: @subject
    assert_response :success
  end

  test "should update subject" do
    patch :update, id: @subject, subject: {  }
    assert_redirected_to subject_path(assigns(:subject))
  end

  test "should destroy subject" do
    assert_difference('Subject.count', -1) do
      delete :destroy, id: @subject
    end

    assert_redirected_to subjects_path
  end
end


text:
  #define _GLIBCXX_USE_NANOSLEEP
#endif

///// Includes /////

#include "gtest/gtest.h"
#include "parser.h"
#include "postflopenumerator.h"
#include "postflopsimulator.h"
#include "preflopcounter.h"

///// Namespaces /////

namespace testresolve
{

///// Tests /////

TEST(Omaha, Enumerate)
{
  std::vector< std::set<uint64_t> > ranges =
  {
	  { Card(RANK_ACE, SUIT_CLUB) | Card(RANK_JACK, SUIT_CLUB) | Card(RANK_TEN, SUIT_CLUB) | Card(RANK_FOUR, SUIT_SPADE) },
	  { Card(RANK_THREE, SUIT_CLUB) | Card(RANK_FOUR, SUIT_CLUB) | Card(RANK_FIVE, SUIT_DIAMOND) | Card(RANK_NINE, SUIT_SPADE) }
  };

  PostflopEnumerator postflopenumerator;
  postflopenumerator.Enumerate(GAME_OMAHA, ranges, {{ 0, 0, 0, 0, 0 }}, 0);

  EXPECT_EQ(1086008, postflopenumerator.GetTotalProgress());
  EXPECT_EQ(1086008, postflopenumerator.GetCurrentProgress());

  EXPECT_DOUBLE_EQ(689932.5, postflopenumerator.GetHiResult(0));
  EXPECT_DOUBLE_EQ(396075.5, postflopenumerator.GetHiResult(1));
}

TEST(Omaha, EnumerateRange)
{
  std::set<uint64_t> range1;
  std::set<uint64_t> range2;
  ASSERT_FALSE(ParseRange(GAME_OMAHA, "AKQ2, 4567", range1));
  ASSERT_FALSE(ParseRange(GAME_OMAHA, "9cTcJsQs", range2));
  std::vector< std::set<uint64_t> > ranges = { range1, range2 };

  PostflopEnumerator postflopenumerator;
  postflopenumerator.Enumerate(GAME_OMAHA, ranges, {{ Card(RANK_EIGHT, SUIT_HEART), Card(RANK_SEVEN, SUIT_SPADE), Card(RANK_TWO, SUIT_CLUB), 0, 0 }}, 0);

  EXPECT_EQ(275520, postflopenumerator.GetTotalProgress());
  EXPECT_EQ(275520, postflopenumerator.GetCurrentProgress());

  EXPECT_DOUBLE_EQ(114467.0, postflopenumerator.GetHiResult(0));
  EXPECT_DOUBLE_EQ(161053.0, postflopenumerator.GetHiResult(1));
}

TEST(Omaha, Simulate)
{
  std::vector< std::set<uint64_t> > ranges =
  {
	{ Card(RANK_ACE, SUIT_CLUB) | Card(RANK_JACK, SUIT_CLUB) | Card(RANK_TEN, SUIT_CLUB) | Card(RANK_FOUR, SUIT_SPADE) },
	{ Card(RANK_THREE, SUIT_CLUB) | Card(RANK_FOUR, SUIT_CLUB) | Card(RANK_FIVE, SUIT_DIAMOND) | Card(RANK_NINE, SUIT_SPADE) }
  };

  PostflopSimulator postflopsimulator;
  postflopsimulator.Simulate(GAME_OMAHA, ranges, {{ 0, 0, 0, 0, 0 }}, 0);

  EXPECT_NEAR(DEFAULT_NUM_SIMULATIONS, postflopsimulator.GetTotalProgress(), DEFAULT_NUM_SIMULATIONS*0.1);
  EXPECT_EQ(postflopsimulator.GetTotalProgress(), postflopsimulator.GetCurrentProgress());

  EXPECT_NEAR(63529.0, postflopsimulator.GetHiResult(0), 63529.0*0.1);
  EXPECT_NEAR(36470.0, postflopsimulator.GetHiResult(1), 36470.0*0.1);
}

TEST(Omaha, SimulateRange)
{
  std::set<uint64_t> range1;
  std::set<uint64_t> range2;
  ASSERT_FALSE(ParseRange(GAME_OMAHA, "AKQ2, 4567", range1));
  ASSERT_FALSE(ParseRange(GAME_OMAHA, "9cTcJsQs", range2));
  std::vector< std::set<uint64_t> > ranges = { range1, range2 };

  PostflopSimulator postflopsimulator;
  postflopsimulator.Simulate(GAME_OMAHA, ranges, {{ Card(RANK_EIGHT, SUIT_HEART), Card(RANK_SEVEN, SUIT_SPADE), Card(RANK_TWO, SUIT_CLUB), 0, 0 }}, 0);

  EXPECT_NEAR(DEFAULT_NUM_SIMULATIONS, postflopsimulator.GetTotalProgress(), DEFAULT_NUM_SIMULATIONS*0.1);
  EXPECT_EQ(postflopsimulator.GetTotalProgress(), postflopsimulator.GetCurrentProgress());

  EXPECT_NEAR(41545.0, postflopsimulator.GetHiResult(0), 41545.0*0.1);
  EXPECT_NEAR(58454.0, postflopsimulator.GetHiResult(1), 58454.0*0.1);
}

TEST(Omaha, EnumerationCount)
{
  std::set<uint64_t> range1;
  std::set<uint64_t> range2;
  ASSERT_FALSE(ParseRange(GAME_OMAHA, "AKQ2, 4567", range1));
  ASSERT_FALSE(ParseRange(GAME_OMAHA, "QJT2", range2));
  std::vector< std::set<uint64_t> > ranges = { range1, range2 };

  ASSERT_EQ(46080, PreflopCounter(ranges, {{ Card(RANK_QUEEN, SUIT_HEART), Card(RANK_SEVEN, SUIT_SPADE), Card(RANK_SIX, SUIT_CLUB), 0, 0 }}, 0).GetCount());
}

}