text:
import unittest2

class TestClient(unittest2.TestCase):

    def _getTargetClass(self):
        from gcloud.bigtable.client import Client
        return Client

    def _makeOne(self, *args, **kwargs):
        return self._getTargetClass()(*args, **kwargs)

    def _constructor_test_helper(self, expected_scopes, creds,
                                 read_only=False, admin=False,
                                 user_agent=None, timeout_seconds=None,
                                 expected_creds=None):
        from gcloud.bigtable import client as MUT

        user_agent = user_agent or MUT.DEFAULT_USER_AGENT
        timeout_seconds = timeout_seconds or MUT.DEFAULT_TIMEOUT_SECONDS
        PROJECT = 'PROJECT'
        client = self._makeOne(project=PROJECT, credentials=creds,
                               read_only=read_only, admin=admin,
                               user_agent=user_agent,
                               timeout_seconds=timeout_seconds)

        expected_creds = expected_creds or creds
        self.assertTrue(client._credentials is expected_creds)
        self.assertEqual(client._credentials.scopes, expected_scopes)

        self.assertEqual(client.project, PROJECT)
        self.assertEqual(client.timeout_seconds, timeout_seconds)
        self.assertEqual(client.user_agent, user_agent)
        # Check stubs are set (but null)
        self.assertEqual(client._data_stub_internal, None)
        self.assertEqual(client._cluster_stub_internal, None)
        self.assertEqual(client._operations_stub_internal, None)
        self.assertEqual(client._table_stub_internal, None)

    def test_constructor_default_scopes(self):
        from gcloud.bigtable import client as MUT

        expected_scopes = [MUT.DATA_SCOPE]
        creds = _Credentials()
        self._constructor_test_helper(expected_scopes, creds)

    def test_constructor_custom_user_agent_and_timeout(self):
        from gcloud.bigtable import client as MUT

        timeout_seconds = 1337
        user_agent = 'custom-application'
        expected_scopes = [MUT.DATA_SCOPE]
        creds = _Credentials()
        self._constructor_test_helper(expected_scopes, creds,
                                      user_agent=user_agent,
                                      timeout_seconds=timeout_seconds)

    def test_constructor_with_admin(self):
        from gcloud.bigtable import client as MUT

        expected_scopes = [MUT.DATA_SCOPE, MUT.ADMIN_SCOPE]
        creds = _Credentials()
        self._constructor_test_helper(expected_scopes, creds, admin=True)

    def test_constructor_with_read_only(self):
        from gcloud.bigtable import client as MUT

        expected_scopes = [MUT.READ_ONLY_SCOPE]
        creds = _Credentials()
        self._constructor_test_helper(expected_scopes, creds, read_only=True)

    def test_constructor_both_admin_and_read_only(self):
        creds = _Credentials()
        with self.assertRaises(ValueError):
            self._constructor_test_helper([], creds, admin=True,
                                          read_only=True)

    def test_constructor_implict_credentials(self):
        from gcloud._testing import _Monkey
        from gcloud.bigtable import client as MUT

        creds = _Credentials()
        expected_scopes = [MUT.DATA_SCOPE]

        def mock_get_credentials():
            return creds

        with _Monkey(MUT, get_credentials=mock_get_credentials):
            self._constructor_test_helper(expected_scopes, None,
                                          expected_creds=creds)

    def _copy_test_helper(self, read_only=False, admin=False):
        credentials = _Credentials('value')
        project = 'PROJECT'
        timeout_seconds = 123
        user_agent = 'you-sir-age-int'
        client = self._makeOne(project=project, credentials=credentials,
                               read_only=read_only, admin=admin,
                               timeout_seconds=timeout_seconds,
                               user_agent=user_agent)
        # Put some fake stubs in place so that we can verify they
        # don't get copied.
        client._data_stub_internal = object()
        client._cluster_stub_internal = object()
        client._operations_stub_internal = object()
        client._table_stub_internal = object()

        new_client = client.copy()
        self.assertEqual(new_client._admin, client._admin)
        self.assertEqual(new_client._credentials, client._credentials)
        self.assertFalse(new_client._credentials is client._credentials)
        self.assertEqual(new_client.project, client.project)
        self.assertEqual(new_client.user_agent, client.user_agent)
        self.assertEqual(new_client.timeout_seconds, client.timeout_seconds)
        # Make sure stubs are not preserved.
        self.assertEqual(new_client._data_stub_internal, None)
        self.assertEqual(new_client._cluster_stub_internal, None)
        self.assertEqual(new_client._operations_stub_internal, None)
        self.assertEqual(new_client._table_stub_internal, None)

    def test_copy(self):
        self._copy_test_helper()

    def test_copy_admin(self):
        self._copy_test_helper(admin=True)

    def test_copy_read_only(self):
        self._copy_test_helper(read_only=True)

    def test_credentials_getter(self):
        credentials = _Credentials()
        project = 'PROJECT'
        client = self._makeOne(project=project, credentials=credentials)
        self.assertTrue(client.credentials is credentials)

    def test_project_name_property(self):
        credentials = _Credentials()
        project = 'PROJECT'
        client = self._makeOne(project=project, credentials=credentials)
        project_name = 'projects/' + project
        self.assertEqual(client.project_name, project_name)

    def test_data_stub_getter(self):
        credentials = _Credentials()
        project = 'PROJECT'
        client = self._makeOne(project=project, credentials=credentials)
        client._data_stub_internal = object()
        self.assertTrue(client._data_stub is client._data_stub_internal)

    def test_data_stub_failure(self):
        credentials = _Credentials()
        project = 'PROJECT'
        client = self._makeOne(project=project, credentials=credentials)
        with self.assertRaises(ValueError):
            getattr(client, '_data_stub')

    def test_cluster_stub_getter(self):
        credentials = _Credentials()
        project = 'PROJECT'
        client = self._makeOne(project=project, credentials=credentials,
                               admin=True)
        client._cluster_stub_internal = object()
        self.assertTrue(client._cluster_stub is client._cluster_stub_internal)

    def test_cluster_stub_non_admin_failure(self):
        credentials = _Credentials()
        project = 'PROJECT'
        client = self._makeOne(project=project, credentials=credentials,
                               admin=False)
        with self.assertRaises(ValueError):
            getattr(client, '_cluster_stub')

    def test_cluster_stub_unset_failure(self):
        credentials = _Credentials()
        project = 'PROJECT'
        client = self._makeOne(project=project, credentials=credentials,
                               admin=True)
        with self.assertRaises(ValueError):
            getattr(client, '_cluster_stub')

    def test_operations_stub_getter(self):
        credentials = _Credentials()
        project = 'PROJECT'
        client = self._makeOne(project=project, credentials=credentials,
                               admin=True)
        client._operations_stub_internal = object()
        self.assertTrue(client._operations_stub is
                        client._operations_stub_internal)

    def test_operations_stub_non_admin_failure(self):
        credentials = _Credentials()
        project = 'PROJECT'
        client = self._makeOne(project=project, credentials=credentials,
                               admin=False)
        with self.assertRaises(ValueError):
            getattr(client, '_operations_stub')

    def test_operations_stub_unset_failure(self):
        credentials = _Credentials()
        project = 'PROJECT'
        client = self._makeOne(project=project, credentials=credentials,
                               admin=True)
        with self.assertRaises(ValueError):
            getattr(client, '_operations_stub')

    def test_table_stub_getter(self):
        credentials = _Credentials()
        project = 'PROJECT'
        client = self._makeOne(project=project, credentials=credentials,
                               admin=True)
        client._table_stub_internal = object()
        self.assertTrue(client._table_stub is client._table_stub_internal)

    def test_table_stub_non_admin_failure(self):
        credentials = _Credentials()
        project = 'PROJECT'
        client = self._makeOne(project=project, credentials=credentials,
                               admin=False)
        with self.assertRaises(ValueError):
            getattr(client, '_table_stub')

    def test_table_stub_unset_failure(self):
        credentials = _Credentials()
        project = 'PROJECT'
        client = self._makeOne(project=project, credentials=credentials,
                               admin=True)
        with self.assertRaises(ValueError):
            getattr(client, '_table_stub')

    def test__make_data_stub(self):
        from gcloud._testing import _Monkey
        from gcloud.bigtable import client as MUT
        from gcloud.bigtable.client import DATA_API_HOST
        from gcloud.bigtable.client import DATA_API_PORT
        from gcloud.bigtable.client import DATA_STUB_FACTORY

        credentials = _Credentials()
        project = 'PROJECT'
        client = self._makeOne(project=project, credentials=credentials)

        fake_stub = object()
        make_stub_args = []

        def mock_make_stub(*args):
            make_stub_args.append(args)
            return fake_stub

        with _Monkey(MUT, make_stub=mock_make_stub):
            result = client._make_data_stub()

        self.assertTrue(result is fake_stub)
        self.assertEqual(make_stub_args, [
            (
                client,
                DATA_STUB_FACTORY,
                DATA_API_HOST,
                DATA_API_PORT,
            ),
        ])

    def test__make_cluster_stub(self):
        from gcloud._testing import _Monkey
        from gcloud.bigtable import client as MUT
        from gcloud.bigtable.client import CLUSTER_ADMIN_HOST
        from gcloud.bigtable.client import CLUSTER_ADMIN_PORT
        from gcloud.bigtable.client import CLUSTER_STUB_FACTORY

        credentials = _Credentials()
        project = 'PROJECT'
        client = self._makeOne(project=project, credentials=credentials)

        fake_stub = object()
        make_stub_args = []

        def mock_make_stub(*args):
            make_stub_args.append(args)
            return fake_stub

        with _Monkey(MUT, make_stub=mock_make_stub):
            result = client._make_cluster_stub()

        self.assertTrue(result is fake_stub)
        self.assertEqual(make_stub_args, [
            (
                client,
                CLUSTER_STUB_FACTORY,
                CLUSTER_ADMIN_HOST,
                CLUSTER_ADMIN_PORT,
            ),
        ])

    def test__make_operations_stub(self):
        from gcloud._testing import _Monkey
        from gcloud.bigtable import client as MUT
        from gcloud.bigtable.client import CLUSTER_ADMIN_HOST
        from gcloud.bigtable.client import CLUSTER_ADMIN_PORT
        from gcloud.bigtable.client import OPERATIONS_STUB_FACTORY

        credentials = _Credentials()
        project = 'PROJECT'
        client = self._makeOne(project=project, credentials=credentials)

        fake_stub = object()
        make_stub_args = []

        def mock_make_stub(*args):
            make_stub_args.append(args)
            return fake_stub

        with _Monkey(MUT, make_stub=mock_make_stub):
            result = client._make_operations_stub()

        self.assertTrue(result is fake_stub)
        self.assertEqual(make_stub_args, [
            (
                client,
                OPERATIONS_STUB_FACTORY,
                CLUSTER_ADMIN_HOST,
                CLUSTER_ADMIN_PORT,
            ),
        ])

    def test__make_table_stub(self):
        from gcloud._testing import _Monkey
        from gcloud.bigtable import client as MUT
        from gcloud.bigtable.client import TABLE_ADMIN_HOST
        from gcloud.bigtable.client import TABLE_ADMIN_PORT
        from gcloud.bigtable.client import TABLE_STUB_FACTORY

        credentials = _Credentials()
        project = 'PROJECT'
        client = self._makeOne(project=project, credentials=credentials)

        fake_stub = object()
        make_stub_args = []

        def mock_make_stub(*args):
            make_stub_args.append(args)
            return fake_stub

        with _Monkey(MUT, make_stub=mock_make_stub):
            result = client._make_table_stub()

        self.assertTrue(result is fake_stub)
        self.assertEqual(make_stub_args, [
            (
                client,
                TABLE_STUB_FACTORY,
                TABLE_ADMIN_HOST,
                TABLE_ADMIN_PORT,
            ),
        ])

    def test_is_started(self):
        credentials = _Credentials()
        project = 'PROJECT'
        client = self._makeOne(project=project, credentials=credentials)

        self.assertFalse(client.is_started())
        client._data_stub_internal = object()
        self.assertTrue(client.is_started())
        client._data_stub_internal = None
        self.assertFalse(client.is_started())

    def _start_method_helper(self, admin):
        from gcloud._testing import _Monkey
        from gcloud.bigtable._testing import _FakeStub
        from gcloud.bigtable import client as MUT

        credentials = _Credentials()
        project = 'PROJECT'
        client = self._makeOne(project=project, credentials=credentials,
                               admin=admin)

        stub = _FakeStub()
        make_stub_args = []

        def mock_make_stub(*args):
            make_stub_args.append(args)
            return stub

        with _Monkey(MUT, make_stub=mock_make_stub):
            client.start()

        self.assertTrue(client._data_stub_internal is stub)
        if admin:
            self.assertTrue(client._cluster_stub_internal is stub)
            self.assertTrue(client._operations_stub_internal is stub)
            self.assertTrue(client._table_stub_internal is stub)
            self.assertEqual(stub._entered, 4)
            self.assertEqual(len(make_stub_args), 4)
        else:
            self.assertTrue(client._cluster_stub_internal is None)
            self.assertTrue(client._operations_stub_internal is None)
            self.assertTrue(client._table_stub_internal is None)
            self.assertEqual(stub._entered, 1)
            self.assertEqual(len(make_stub_args), 1)
        self.assertEqual(stub._exited, [])

    def test_start_non_admin(self):
        self._start_method_helper(admin=False)

    def test_start_with_admin(self):
        self._start_method_helper(admin=True)

    def test_start_while_started(self):
        credentials = _Credentials()
        project = 'PROJECT'
        client = self._makeOne(project=project, credentials=credentials)
        client._data_stub_internal = data_stub = object()
        self.assertTrue(client.is_started())
        client.start()

        # Make sure the stub did not change.
        self.assertEqual(client._data_stub_internal, data_stub)

    def _stop_method_helper(self, admin):
        from gcloud.bigtable._testing import _FakeStub

        credentials = _Credentials()
        project = 'PROJECT'
        client = self._makeOne(project=project, credentials=credentials,
                               admin=admin)

        stub1 = _FakeStub()
        stub2 = _FakeStub()
        client._data_stub_internal = stub1
        client._cluster_stub_internal = stub2
        client._operations_stub_internal = stub2
        client._table_stub_internal = stub2
        client.stop()
        self.assertTrue(client._data_stub_internal is None)
        self.assertTrue(client._cluster_stub_internal is None)
        self.assertTrue(client._operations_stub_internal is None)
        self.assertTrue(client._table_stub_internal is None)
        self.assertEqual(stub1._entered, 0)
        self.assertEqual(stub2._entered, 0)
        exc_none_triple = (None, None, None)
        self.assertEqual(stub1._exited, [exc_none_triple])
        if admin:
            self.assertEqual(stub2._exited, [exc_none_triple] * 3)
        else:
            self.assertEqual(stub2._exited, [])

    def test_stop_non_admin(self):
        self._stop_method_helper(admin=False)

    def test_stop_with_admin(self):
        self._stop_method_helper(admin=True)

    def test_stop_while_stopped(self):
        credentials = _Credentials()
        project = 'PROJECT'
        client = self._makeOne(project=project, credentials=credentials)
        self.assertFalse(client.is_started())

        # This is a bit hacky. We set the cluster stub protected value
        # since it isn't used in is_started() and make sure that stop
        # doesn't reset this value to None.
        client._cluster_stub_internal = cluster_stub = object()
        client.stop()
        # Make sure the cluster stub did not change.
        self.assertEqual(client._cluster_stub_internal, cluster_stub)

    def test_cluster_factory(self):
        from gcloud.bigtable.cluster import Cluster

        credentials = _Credentials()
        project = 'PROJECT'
        client = self._makeOne(project=project, credentials=credentials)

        zone = 'zone'
        cluster_id = 'cluster-id'
        display_name = 'display-name'
        serve_nodes = 42
        cluster = client.cluster(zone, cluster_id, display_name=display_name,
                                 serve_nodes=serve_nodes)
        self.assertTrue(isinstance(cluster, Cluster))
        self.assertEqual(cluster.zone, zone)
        self.assertEqual(cluster.cluster_id, cluster_id)
        self.assertEqual(cluster.display_name, display_name)
        self.assertEqual(cluster.serve_nodes, serve_nodes)
        self.assertTrue(cluster._client is client)

    def _list_zones_helper(self, zone_status):
        from gcloud.bigtable._generated import (
            bigtable_cluster_data_pb2 as data_pb2)
        from gcloud.bigtable._generated import (
            bigtable_cluster_service_messages_pb2 as messages_pb2)
        from gcloud.bigtable._testing import _FakeStub

        credentials = _Credentials()
        project = 'PROJECT'
        timeout_seconds = 281330
        client = self._makeOne(project=project, credentials=credentials,
                               admin=True, timeout_seconds=timeout_seconds)

        # Create request_pb
        request_pb = messages_pb2.ListZonesRequest(
            name='projects/' + project,
        )

        # Create response_pb
        zone1 = 'foo'
        zone2 = 'bar'
        response_pb = messages_pb2.ListZonesResponse(
            zones=[
                data_pb2.Zone(display_name=zone1, status=zone_status),
                data_pb2.Zone(display_name=zone2, status=zone_status),
            ],
        )

        # Patch the stub used by the API method.
        client._cluster_stub_internal = stub = _FakeStub(response_pb)

        # Create expected_result.
        expected_result = [zone1, zone2]

        # Perform the method and check the result.
        result = client.list_zones()
        self.assertEqual(result, expected_result)
        self.assertEqual(stub.method_calls, [(
            'ListZones',
            (request_pb, timeout_seconds),
            {},
        )])

    def test_list_zones(self):
        from gcloud.bigtable._generated import (
            bigtable_cluster_data_pb2 as data_pb2)
        self._list_zones_helper(data_pb2.Zone.OK)

    def test_list_zones_failure(self):
        from gcloud.bigtable._generated import (
            bigtable_cluster_data_pb2 as data_pb2)
        with self.assertRaises(ValueError):
            self._list_zones_helper(data_pb2.Zone.EMERGENCY_MAINENANCE)

    def test_list_clusters(self):
        from gcloud.bigtable._generated import (
            bigtable_cluster_data_pb2 as data_pb2)
        from gcloud.bigtable._generated import (
            bigtable_cluster_service_messages_pb2 as messages_pb2)
        from gcloud.bigtable._testing import _FakeStub

        credentials = _Credentials()
        project = 'PROJECT'
        timeout_seconds = 8004
        client = self._makeOne(project=project, credentials=credentials,
                               admin=True, timeout_seconds=timeout_seconds)

        # Create request_pb
        request_pb = messages_pb2.ListClustersRequest(
            name='projects/' + project,
        )

        # Create response_pb
        zone = 'foo'
        failed_zone = 'bar'
        cluster_id1 = 'cluster-id1'
        cluster_id2 = 'cluster-id2'
        cluster_name1 = ('projects/' + project + '/zones/' + zone +
                         '/clusters/' + cluster_id1)
        cluster_name2 = ('projects/' + project + '/zones/' + zone +
                         '/clusters/' + cluster_id2)
        response_pb = messages_pb2.ListClustersResponse(
            failed_zones=[
                data_pb2.Zone(display_name=failed_zone),
            ],
            clusters=[
                data_pb2.Cluster(
                    name=cluster_name1,
                    display_name=cluster_name1,
                    serve_nodes=3,
                ),
                data_pb2.Cluster(
                    name=cluster_name2,
                    display_name=cluster_name2,
                    serve_nodes=3,
                ),
            ],
        )

        # Patch the stub used by the API method.
        client._cluster_stub_internal = stub = _FakeStub(response_pb)

        # Create expected_result.
        failed_zones = [failed_zone]
        clusters = [
            client.cluster(zone, cluster_id1),
            client.cluster(zone, cluster_id2),
        ]
        expected_result = (clusters, failed_zones)

        # Perform the method and check the result.
        result = client.list_clusters()
        self.assertEqual(result, expected_result)
        self.assertEqual(stub.method_calls, [(
            'ListClusters',
            (request_pb, timeout_seconds),
            {},
        )])

class _Credentials(object):

    scopes = None

    def __init__(self, value=None):
        self.value = value

    def create_scoped(self, scope):
        self.scopes = scope
        return self

    def __eq__(self, other):
        return self.value == other.value


text:
SM.Machine = function(name, object, options, block) {
  this.events     = new SM.EventCollection();
  this.states     = new SM.StateCollection();
  this.callbacks  = new SM.CallbackCollection();

  this.object       = object;
  this.machine_name = name;

  this.internal_state = options && options.initial ? options.initial : '';
  this._add_methods_to_object(name, object);

  if(block){ block(this); }
  return this;
};

SM.Machine.prototype = {

  event: function(name, block) {
    var event = this.events.add(name, this);
    this._add_event_methods(name, this.object, event);
    if(block){ block(event); }
    return event;
	},
	before_transition: function(options, block){
    var callback = this.callbacks.add('before', options, this, block);
	},
	after_transition: function(options, block){
    var callback = this.callbacks.add('after', options, this, block);
	},
	state: function(){
    return this.internal_state;
  },
  /* Private method */
	_add_methods_to_object: function(name, object){
	  object[name]            = this.state();
	  object[name+'_events']  = this.events.all();
	  object[name+'_states']  = this.states.all();
	},
	_add_event_methods: function(name, object, event) {
	  object[name] = function(){ return event.fire(arguments); };
	  object['can_'+name] = function(){ return event.can_fire(); };
	},
	_set_state: function(state){
	  this.internal_state = state;
	  this.object[this.machine_name] = state;
	}
};

redpajama_set_name: RedPajamaGithub


text:
#ifndef __XML_VERSION_H__
#define __XML_VERSION_H__

#include <libxml/xmlexports.h>

#ifdef __cplusplus
extern "C" {
#endif

/*
 * use those to be sure nothing nasty will happen if
 * your library and includes mismatch
 */
#ifndef LIBXML2_COMPILING_MSCCDEF
XMLPUBFUN void XMLCALL xmlCheckVersion(int version);
#endif /* LIBXML2_COMPILING_MSCCDEF */

/**
 * LIBXML_DOTTED_VERSION:
 *
 * the version string like "1.2.3"
 */
#define LIBXML_DOTTED_VERSION "2.7.5"

/**
 * LIBXML_VERSION:
 *
 * the version number: 1.2.3 value is 10203
 */
#define LIBXML_VERSION 20705

/**
 * LIBXML_VERSION_STRING:
 *
 * the version number string, 1.2.3 value is "10203"
 */
#define LIBXML_VERSION_STRING "20705"

/**
 * LIBXML_VERSION_EXTRA:
 *
 * extra version information, used to show a CVS compilation
 */
#define LIBXML_VERSION_EXTRA ""

/**
 * LIBXML_TEST_VERSION:
 *
 * Macro to check that the libxml version in use is compatible with
 * the version the software has been compiled against
 */
#define LIBXML_TEST_VERSION xmlCheckVersion(20705);

#ifndef VMS
#if 0
/**
 * WITH_TRIO:
 *
 * defined if the trio support need to be configured in
 */
#define WITH_TRIO
#else
/**
 * WITHOUT_TRIO:
 *
 * defined if the trio support should not be configured in
 */
#define WITHOUT_TRIO
#endif
#else /* VMS */
/**
 * WITH_TRIO:
 *
 * defined if the trio support need to be configured in
 */
#define WITH_TRIO 1
#endif /* VMS */

/**
 * LIBXML_THREAD_ENABLED:
 *
 * Whether the thread support is configured in
 */
#if 1
#if defined(_REENTRANT) || defined(__MT__) || \
    (defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE - 0 >= 199506L))
#define LIBXML_THREAD_ENABLED
#endif
#endif

/**
 * LIBXML_TREE_ENABLED:
 *
 * Whether the DOM like tree manipulation API support is configured in
 */
#if 1
#define LIBXML_TREE_ENABLED
#endif

/**
 * LIBXML_OUTPUT_ENABLED:
 *
 * Whether the serialization/saving support is configured in
 */
#if 1
#define LIBXML_OUTPUT_ENABLED
#endif

/**
 * LIBXML_PUSH_ENABLED:
 *
 * Whether the push parsing interfaces are configured in
 */
#if 1
#define LIBXML_PUSH_ENABLED
#endif

/**
 * LIBXML_READER_ENABLED:
 *
 * Whether the xmlReader parsing interface is configured in
 */
#if 1
#define LIBXML_READER_ENABLED
#endif

/**
 * LIBXML_PATTERN_ENABLED:
 *
 * Whether the xmlPattern node selection interface is configured in
 */
#if 1
#define LIBXML_PATTERN_ENABLED
#endif

/**
 * LIBXML_WRITER_ENABLED:
 *
 * Whether the xmlWriter saving interface is configured in
 */
#if 1
#define LIBXML_WRITER_ENABLED
#endif

/**
 * LIBXML_SAX1_ENABLED:
 *
 * Whether the older SAX1 interface is configured in
 */
#if 1
#define LIBXML_SAX1_ENABLED
#endif

/**
 * LIBXML_FTP_ENABLED:
 *
 * Whether the FTP support is configured in
 */
#if 1
#define LIBXML_FTP_ENABLED
#endif

/**
 * LIBXML_HTTP_ENABLED:
 *
 * Whether the HTTP support is configured in
 */
#if 1
#define LIBXML_HTTP_ENABLED
#endif

/**
 * LIBXML_VALID_ENABLED:
 *
 * Whether the DTD validation support is configured in
 */
#if 1
#define LIBXML_VALID_ENABLED
#endif

/**
 * LIBXML_HTML_ENABLED:
 *
 * Whether the HTML support is configured in
 */
#if 1
#define LIBXML_HTML_ENABLED
#endif

/**
 * LIBXML_LEGACY_ENABLED:
 *
 * Whether the deprecated APIs are compiled in for compatibility
 */
#if 1
#define LIBXML_LEGACY_ENABLED
#endif

/**
 * LIBXML_C14N_ENABLED:
 *
 * Whether the Canonicalization support is configured in
 */
#if 1
#define LIBXML_C14N_ENABLED
#endif

/**
 * LIBXML_CATALOG_ENABLED:
 *
 * Whether the Catalog support is configured in
 */
#if 1
#define LIBXML_CATALOG_ENABLED
#endif

/**
 * LIBXML_DOCB_ENABLED:
 *
 * Whether the SGML Docbook support is configured in
 */
#if 1
#define LIBXML_DOCB_ENABLED
#endif

/**
 * LIBXML_XPATH_ENABLED:
 *
 * Whether XPath is configured in
 */
#if 1
#define LIBXML_XPATH_ENABLED
#endif

/**
 * LIBXML_XPTR_ENABLED:
 *
 * Whether XPointer is configured in
 */
#if 1
#define LIBXML_XPTR_ENABLED
#endif

/**
 * LIBXML_XINCLUDE_ENABLED:
 *
 * Whether XInclude is configured in
 */
#if 1
#define LIBXML_XINCLUDE_ENABLED
#endif

/**
 * LIBXML_ICONV_ENABLED:
 *
 * Whether iconv support is available
 */
#if 0
#define LIBXML_ICONV_ENABLED
#endif

/**
 * LIBXML_ISO8859X_ENABLED:
 *
 * Whether ISO-8859-* support is made available in case iconv is not
 */
#if 0
#define LIBXML_ISO8859X_ENABLED
#endif

/**
 * LIBXML_DEBUG_ENABLED:
 *
 * Whether Debugging module is configured in
 */
#if 1
#define LIBXML_DEBUG_ENABLED
#endif

/**
 * DEBUG_MEMORY_LOCATION:
 *
 * Whether the memory debugging is configured in
 */
#if 0
#define DEBUG_MEMORY_LOCATION
#endif

/**
 * LIBXML_DEBUG_RUNTIME:
 *
 * Whether the runtime debugging is configured in
 */
#if 0
#define LIBXML_DEBUG_RUNTIME
#endif

/**
 * LIBXML_UNICODE_ENABLED:
 *
 * Whether the Unicode related interfaces are compiled in
 */
#if 1
#define LIBXML_UNICODE_ENABLED
#endif

/**
 * LIBXML_REGEXP_ENABLED:
 *
 * Whether the regular expressions interfaces are compiled in
 */
#if 1
#define LIBXML_REGEXP_ENABLED
#endif

/**
 * LIBXML_AUTOMATA_ENABLED:
 *
 * Whether the automata interfaces are compiled in
 */
#if 1
#define LIBXML_AUTOMATA_ENABLED
#endif

/**
 * LIBXML_EXPR_ENABLED:
 *
 * Whether the formal expressions interfaces are compiled in
 */
#if 1
#define LIBXML_EXPR_ENABLED
#endif

/**
 * LIBXML_SCHEMAS_ENABLED:
 *
 * Whether the Schemas validation interfaces are compiled in
 */
#if 1
#define LIBXML_SCHEMAS_ENABLED
#endif

/**
 * LIBXML_SCHEMATRON_ENABLED:
 *
 * Whether the Schematron validation interfaces are compiled in
 */
#if 1
#define LIBXML_SCHEMATRON_ENABLED
#endif

/**
 * LIBXML_MODULES_ENABLED:
 *
 * Whether the module interfaces are compiled in
 */
#if 1
#define LIBXML_MODULES_ENABLED
/**
 * LIBXML_MODULE_EXTENSION:
 *
 * the string suffix used by dynamic modules (usually shared libraries)
 */
#define LIBXML_MODULE_EXTENSION ".dll"
#endif

/**
 * LIBXML_ZLIB_ENABLED:
 *
 * Whether the Zlib support is compiled in
 */
#if 0
#define LIBXML_ZLIB_ENABLED
#endif

#ifdef __GNUC__
#ifdef HAVE_ANSIDECL_H
#include <ansidecl.h>
#endif

/**
 * ATTRIBUTE_UNUSED:
 *
 * Macro used to signal to GCC unused function parameters
 */

#ifndef ATTRIBUTE_UNUSED
#define ATTRIBUTE_UNUSED __attribute__((unused))
#endif

/**
 * LIBXML_ATTR_ALLOC_SIZE:
 *
 * Macro used to indicate to GCC this is an allocator function
 */

#ifndef LIBXML_ATTR_ALLOC_SIZE
# if ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3)))
#  define LIBXML_ATTR_ALLOC_SIZE(x) __attribute__((alloc_size(x)))
# else
#  define LIBXML_ATTR_ALLOC_SIZE(x)
# endif
#else
# define LIBXML_ATTR_ALLOC_SIZE(x)
#endif

/**
 * LIBXML_ATTR_FORMAT:
 *
 * Macro used to indicate to GCC the parameter are printf like
 */

#ifndef LIBXML_ATTR_FORMAT
# if ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)))
#  define LIBXML_ATTR_FORMAT(fmt,args) __attribute__((__format__(__printf__,fmt,args)))
# else
#  define LIBXML_ATTR_FORMAT(fmt,args)
# endif
#else
# define LIBXML_ATTR_FORMAT(fmt,args)
#endif

#else /* ! __GNUC__ */
/**
 * ATTRIBUTE_UNUSED:
 *
 * Macro used to signal to GCC unused function parameters
 */
#define ATTRIBUTE_UNUSED
/**
 * LIBXML_ATTR_ALLOC_SIZE:
 *
 * Macro used to indicate to GCC this is an allocator function
 */
#define LIBXML_ATTR_ALLOC_SIZE(x)
/**
 * LIBXML_ATTR_FORMAT:
 *
 * Macro used to indicate to GCC the parameter are printf like
 */
#define LIBXML_ATTR_FORMAT(fmt,args)
#endif /* __GNUC__ */

#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif


text:
<?php

/* @Framework/Form/widget_attributes.html.php */
class __TwigTemplate_88c5624fcfa37ceb440cfd34b3e650074b878ce11c4e7e095bd382d29322fea3 extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = array(
        );
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        $__internal_b41d1bd8fd270864a92bc8f100b7d6b764cc8e05cc6c72524575f5405ed9586f = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
        $__internal_b41d1bd8fd270864a92bc8f100b7d6b764cc8e05cc6c72524575f5405ed9586f->enter($__internal_b41d1bd8fd270864a92bc8f100b7d6b764cc8e05cc6c72524575f5405ed9586f_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@Framework/Form/widget_attributes.html.php"));

        // line 1
        echo "id=\"<?php echo \$view->escape(\$id) ?>\" name=\"<?php echo \$view->escape(\$full_name) ?>\"<?php if (\$read_only): ?> readonly=\"readonly\"<?php endif ?>
<?php if (\$disabled): ?> disabled=\"disabled\"<?php endif ?>
<?php if (\$required): ?> required=\"required\"<?php endif ?>
<?php foreach (\$attr as \$k => \$v): ?>
<?php if ('readonly' === \$k && \$read_only): continue; endif ?>
<?php if (in_array(\$k, array('placeholder', 'title'), true)): ?>
<?php printf(' %s=\"%s\"', \$view->escape(\$k), \$view->escape(false !== \$translation_domain ? \$view['translator']->trans(\$v, array(), \$translation_domain) : \$v)) ?>
<?php elseif (\$v === true): ?>
<?php printf(' %s=\"%s\"', \$view->escape(\$k), \$view->escape(\$k)) ?>
<?php elseif (\$v !== false): ?>
<?php printf(' %s=\"%s\"', \$view->escape(\$k), \$view->escape(\$v)) ?>
<?php endif ?>
<?php endforeach ?>
";

        $__internal_b41d1bd8fd270864a92bc8f100b7d6b764cc8e05cc6c72524575f5405ed9586f->leave($__internal_b41d1bd8fd270864a92bc8f100b7d6b764cc8e05cc6c72524575f5405ed9586f_prof);

    }

    public function getTemplateName()
    {
        return "@Framework/Form/widget_attributes.html.php";
    }

    public function getDebugInfo()
    {
        return array (  22 => 1,);
    }

    /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
    public function getSource()
    {
        @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);

        return $this->getSourceContext()->getCode();
    }

    public function getSourceContext()
    {
        return new Twig_Source("id=\"<?php echo \$view->escape(\$id) ?>\" name=\"<?php echo \$view->escape(\$full_name) ?>\"<?php if (\$read_only): ?> readonly=\"readonly\"<?php endif ?>
<?php if (\$disabled): ?> disabled=\"disabled\"<?php endif ?>
<?php if (\$required): ?> required=\"required\"<?php endif ?>
<?php foreach (\$attr as \$k => \$v): ?>
<?php if ('readonly' === \$k && \$read_only): continue; endif ?>
<?php if (in_array(\$k, array('placeholder', 'title'), true)): ?>
<?php printf(' %s=\"%s\"', \$view->escape(\$k), \$view->escape(false !== \$translation_domain ? \$view['translator']->trans(\$v, array(), \$translation_domain) : \$v)) ?>
<?php elseif (\$v === true): ?>
<?php printf(' %s=\"%s\"', \$view->escape(\$k), \$view->escape(\$k)) ?>
<?php elseif (\$v !== false): ?>
<?php printf(' %s=\"%s\"', \$view->escape(\$k), \$view->escape(\$v)) ?>
<?php endif ?>
<?php endforeach ?>
", "@Framework/Form/widget_attributes.html.php", "C:\\wamp\\www\\ecommerce\\vendor\\symfony\\symfony\\src\\Symfony\\Bundle\\FrameworkBundle\\Resources\\views\\Form\\widget_attributes.html.php");
    }
}


text:
'use strict';

const yeoman = require('yeoman-generator');
const yosay = require('yosay');
const _ = require('lodash');
const path = require('path');

module.exports = yeoman.generators.Base.extend({
  prompting() {
    const done = this.async();

    this.log(yosay(
      'Welcome to the price-finder site generator!'
    ));

    const prompts = [
      {
        type: 'input',
        name: 'siteName',
        message: 'Please enter the name of the site you want to create:',
        default: 'Some Store',
      },
      {
        type: 'confirm',
        name: 'isJSON',
        message: 'Is the page data for the site a JSON API?',
        default: false,
      },
      {
        type: 'input',
        name: 'siteURI',
        message: 'Enter in the base URI for every product found on this site:',
        default: 'somestore.com',
      },
    ];

    this.prompt(prompts, (props) => {
      this.props = props;

      // Some Store -> SomeStore
      this.upperCaseSite = _.chain(props.siteName)
        .deburr()
        .camelCase()
        .upperFirst()
        .value();

      // Some Store -> some-store
      this.kebabCaseSite = _.chain(props.siteName)
        .deburr()
        .kebabCase()
        .value();

      this.isJSON = props.isJSON;

      this.siteURI = props.siteURI;

      done();
    });
  },

  writing() {
    const options = {
      upperCaseSite: this.upperCaseSite,
      kebabCaseSite: this.kebabCaseSite,
      isJSON: this.isJSON,
      siteURI: this.siteURI,
    };

    this.fs.copyTpl(
      this.templatePath('site.js'),
      this.destinationPath(path.join('lib/sites',
        `${this.kebabCaseSite}.js`)),
      options
    );

    this.fs.copyTpl(
      this.templatePath('site-test.js'),
      this.destinationPath(path.join('test/unit/sites',
        `${this.kebabCaseSite}-test.js`)),
      options
    );

    this.fs.copyTpl(
      this.templatePath('site-uris-test.js'),
      this.destinationPath(path.join('test/e2e',
        `${this.kebabCaseSite}-uris-test.js`)),
      options
    );
  },
});


text:
puts File.dirname(__FILE__) + '/test_helper.rb'
require_relative  '../test_helper.rb'
require_relative '../../lib/backfire'

include Backfire::Utils

describe Sandbox do
  # test the exclusions
  it "rejects dangerous statements" do
    Sandbox.is_safe?("Dir.chroot(\"/production/secure/root\")").must_equal false
    Sandbox.is_safe?("File.chmod(0644, \"testfile\", \"out\")").must_equal false
    Sandbox.is_safe?("File.chown(nil, 100, \"testfile\")").must_equal false
    Sandbox.is_safe?("File.lstat(\"link2test\").size").must_equal false
    Sandbox.is_safe?("File.stat(\"testfile\").size").must_equal false
    Sandbox.is_safe?("File.truncate(\"out\", 5)").must_equal false
    Sandbox.is_safe?("File.umask(0006)").must_equal false
    Sandbox.is_safe?("File.new(\"testfile\").flock(File::LOCK_UN)").must_equal false
    Sandbox.is_safe?("ios.ioctl( anIntegerCmd, anArg )").must_equal false
    Sandbox.is_safe?("fork {puts \"this is a fork\"}").must_equal false
    Sandbox.is_safe?("syscall 4, 1, \"hello\n\", 6   # '4' is write(2) on our box").must_equal false
    Sandbox.is_safe?("trap(\"CLD\") { puts \"Child died\" }").must_equal false
    Sandbox.is_safe?("Process.setpgid( aPid, anInteger )").must_equal false
    Sandbox.is_safe?("Process.setsid").must_equal false
    Sandbox.is_safe?("Process.egid").must_equal false
    Sandbox.is_safe?("Process.setpriority(Process::PRIO_USER, 0, 19)").must_equal false
    Sandbox.is_safe?("system(rm *)").must_equal false
    Sandbox.is_safe?("item.save!").must_equal false
    Sandbox.is_safe?("ItemMaster.delete(103)").must_equal false
    Sandbox.is_safe?("ItemMaster.destroy(103)").must_equal false
  end
  # test valid samples
  it "does not reject valid and useful constructs" do
    Sandbox.is_safe?("this is some literal text").must_equal true
    Sandbox.is_safe?("1056").must_equal true
    Sandbox.is_safe?("Time.now").must_equal true
    Sandbox.is_safe?("@fact3.value").must_equal true
    Sandbox.is_safe?("@fact1.value.parent.child.find_by_child_name(\"name\")").must_equal true
  end
end


text:
module.exports = function(sequelize, DataTypes) {
  var GiftDepository = sequelize.define('GiftDepository', {
    GiftDepositoryID : { type : DataTypes.STRING, primaryKey: true, autoIncrement: false}
    , ItemListID : { type : DataTypes.STRING}
    , ItemCount : { type : DataTypes.STRING}

    , FromMemberID: { type : DataTypes.STRING }
    , ToMemberID: { type : DataTypes.STRING }

    , sCol1 : { type : DataTypes.TEXT}
    , sCol2 : { type : DataTypes.TEXT}
    , sCol3 : { type : DataTypes.TEXT}
    , sCol4 : { type : DataTypes.TEXT}
    , sCol5 : { type : DataTypes.TEXT}
    , sCol6 : { type : DataTypes.TEXT}
    , sCol7 : { type : DataTypes.TEXT}
    , sCol8 : { type : DataTypes.TEXT}
    , sCol9 : { type : DataTypes.TEXT}
    , sCol10 : { type : DataTypes.TEXT}

    , SentMemberYN : { type : DataTypes.STRING}
    , HideYN : { type : DataTypes.BOOLEAN}
    , DeleteYN : { type : DataTypes.BOOLEAN}
    , DataFromRegion : { type : DataTypes.STRING}
    , DataFromRegionDT : { type : DataTypes.DATE}
  }, {
    tableName: 'GiftDepositories'
  });
  return GiftDepository;
};


text:
require([
	"dui/registry",  // dui.byId
	"doh/runner"	//doh functions
], function(reg){
	registry = reg; // for registry.byId in the global functions below
});

function fireOnMouseDown(obj){
	var anchorNode;
	if(typeof obj === "string"){
		var demoWidget = registry.byId(obj);
		anchorNode = demoWidget.domNode;
	}else{
		anchorNode = obj;
	}
	if(dojo.isIE<9){
		anchorNode.fireEvent( "onmousedown" );
	}else{
		var eventName = "mousedown";
		if (dojo.isIE >= 10){
			eventName = "MSPointerDown";
		}
		var e = document.createEvent('Events');
		e.initEvent(eventName, true, true);
		anchorNode.dispatchEvent(e);
	}
}
function fireOnMouseUp(obj){
	var anchorNode;
	if(typeof obj === "string"){
		var demoWidget = registry.byId(obj);
		anchorNode = demoWidget.domNode;
	}else{
		anchorNode = obj;
	}
	if(dojo.isIE<9){
		anchorNode.fireEvent( "onmouseup" );
	}else{
		var eventName = "mouseup";
		if (dojo.isIE >= 10){
			eventName = "MSPointerUp";
		}
		var e = document.createEvent('Events');
		e.initEvent(eventName, true, true);
		anchorNode.dispatchEvent(e);
	}
}

function verifyListItem(id, text, rightText, domButtonType, hasIcon, hasRightIcon, hasIcon2, hasVariableHeight, regExp, hasSelected, isSprite){
	var demoWidget = registry.byId(id);
	doh.assertNotEqual(null, demoWidget, "ListItem: Did not instantiate. id=" + id);
	doh.assertEqual('duiListItem duiListItemRtl' + (hasVariableHeight ?" duiVariableHeight":"") + (hasSelected ?" duiListItemSelected":""), demoWidget.domNode.className, "id=" + id);
	var childNodes = demoWidget.domNode.children;
	var i=0;
	if(hasIcon){
		if(!dojo.isIE && regExp){
			if(isSprite){
				doh.assertTrue(childNodes[i].childNodes[0].src.search(regExp) != -1, "search " + regExp.toString());
			}else{
				doh.assertTrue(childNodes[i].src.search(regExp) != -1, "search " + regExp.toString());
			}
		}
		doh.assertTrue(dojo.hasClass(childNodes[i], 'duiListItemIcon'), 'duiListItemIcon id=' + id + " got: " + childNodes[i].className);
		i++;
	}

	if(hasRightIcon){
		if(domButtonType){
			doh.assertEqual(domButtonType + ' duiDomButton', childNodes[i].childNodes[0].className, "id=" + id);
		}
		doh.assertTrue(dojo.hasClass(childNodes[i], 'duiListItemRightIcon'), 'duiListItemRightIcon id=' + id + " got: " + childNodes[i].className);
		i++;
	}

	if(hasIcon2){
		doh.assertTrue(dojo.hasClass(childNodes[i], 'duiListItemRightIcon2'), 'duiListItemRightIcon2 id=' + id + " got: " + childNodes[i].className);
		i++;
	}

	if(rightText){
		doh.assertEqual(rightText, dojo.isFF ==3.6 ? childNodes[i].childNodes[0].innerHTML : childNodes[i].innerHTML, "id=" + id); //2 0r 3
		doh.assertEqual('duiListItemRightText', childNodes[i++].className, "id=" + id);
	}
	if(!hasVariableHeight){
		doh.assertEqual('duiListItemLabel', childNodes[i].className, "id=" + id);
		doh.assertEqual('DIV', childNodes[i].tagName, "id=" + id);
	}else{
		doh.assertEqual('duiListItemLabel', childNodes[i+1].className, "id=" + id);
		doh.assertEqual('DIV', childNodes[i+1].tagName, "id=" + id);
	}

	try{
		doh.assertEqual(text, childNodes[i].innerHTML.replace(/\r\n|\n|\t/g,"").trim(), "id=" + id);
	} catch (e) {
		if(dojo.isFF ==3.6){
			doh.assertEqual(text, childNodes[i].childNodes[0].innerHTML.replace(/\r\n|\n|\t/g,"").trim(), "id=" + id);
		}else{
			throw e;
		}
	}

}

function verifyListItemPos(id, rTop, rRight, rBottom, rLeft, sTop, sLeft, isSprite) {
	var demoWidget = registry.byId(id);
	var node;
	if(isSprite){
		node = demoWidget.domNode.childNodes[0].childNodes[0];
	}else{
		node = demoWidget.domNode.childNodes[0].childNodes[0].childNodes[0];
	}
	verifyRect(node, rTop, rRight, rBottom, rLeft);

	doh.assertEqual(sTop, node.style.top);
	doh.assertEqual(sLeft, node.style.left);
}

function verifyRect(node, rTop, rRight, rBottom, rLeft) {
	var rectArray = node.style.clip.split(/[, ]+/);
	doh.assertEqual("rect("+rTop, rectArray[0]);
	doh.assertEqual(rRight, rectArray[1]);
	doh.assertEqual(rBottom, rectArray[2]);
	doh.assertEqual(rLeft+")", rectArray[3]);
}

function verifyIconItem(id, text, display, regExp, isSprite){
	var demoWidget = registry.byId(id);
	if(!dojo.isIE && !dojo.isFF) {
		if(isSprite){
			doh.assertTrue(demoWidget.domNode.childNodes[0].childNodes[0].childNodes[0].childNodes[0].src.search(regExp) != -1, "search " + regExp.toString() + " id=" +id);
		}else{
			doh.assertTrue(demoWidget.domNode.childNodes[0].childNodes[0].childNodes[0].src.search(regExp) != -1, "search " + regExp.toString() + " id=" +id);
		}
	}
	doh.assertEqual(text, demoWidget.domNode.childNodes[0].childNodes[1].childNodes[0].nodeValue, "id=" +id);
	doh.assertEqual(display, demoWidget.paneWidget.domNode.style.display, "id=" +id);
	doh.assertEqual('duiIconItemPaneHeading', demoWidget.paneWidget.domNode.childNodes[0].className, "id=" +id);
	doh.assertEqual('duiDomButtonBlueMinus duiDomButton', demoWidget.paneWidget.domNode.childNodes[0].childNodes[0].childNodes[0].className, "id=" +id);
	doh.assertEqual(text, demoWidget.paneWidget.domNode.childNodes[0].childNodes[1].childNodes[0].nodeValue, "id=" +id);
}

function verifyTabBarButton(id, text, classNames, visibility1, visibility2, regExp1, regExp2, isSprite){
	var demoWidget = registry.byId(id);
	for(var i = 0; i < classNames.length;i++){
		doh.assertTrue(dojo.hasClass(demoWidget.domNode, classNames[i]), classNames[i] + " id=" +id + " className:"+demoWidget.domNode.className);
	}
	doh.assertEqual('duiTabBarButtonIconAreaRtl', demoWidget.domNode.childNodes[0].className, "id=" +id);
	doh.assertEqual('duiTabBarButtonLabel', demoWidget.domNode.childNodes[1].className, "id=" +id);
	if(demoWidget.iconNode1){
		if(!dojo.isIE) {
			if(isSprite){
				doh.assertTrue(demoWidget.iconNode1.childNodes[0].src.search(regExp1) != -1, "search " + regExp1.toString() + " id=" +id);
			}else{
				doh.assertTrue(demoWidget.iconNode1.src.search(regExp1) != -1, "search " + regExp1.toString() + " id=" +id);
			}
		}

	}else{
		console.log("There is no iconNode1. id=" + id);
	}
	if(demoWidget.iconNode2){
		if(!dojo.isIE){
			if(isSprite){
				doh.assertTrue(demoWidget.iconNode2.childNodes[0].src.search(regExp2) != -1, "search " + regExp2.toString() + " id=" +id);
			}else{
				doh.assertTrue(demoWidget.iconNode2.src.search(regExp2) != -1, "search " + regExp2.toString() + " id=" +id);
			}
		}
		doh.assertEqual(visibility2, demoWidget.iconNode2.style.visibility, "id=" +id);
	}else{
		console.log("There is no iconNode2. id=" + id);
	}
	doh.assertEqual(text, demoWidget.labelNode.innerHTML.trim(), "id=" +id);
}


text:
/**
 * Classes are used a parts in the process of creating an SQL statement
 * that will be executed against a eFaps connected database during a
 * search or query process.
 */
package org.efaps.db.search;


text:
New Packing list

        <form data-ng-submit="create()" novalidate>
            <fieldset>

                    Order number
                        <input type="text" data-ng-model="orderNo" id="orderNo" class="form-control" placeholder="Eg: 000232" required>

                    Style number
                        <input type="text" data-ng-model="styleNo" id="styleNo" class="form-control" placeholder="Eg: 000124" required>

                    Packing list number
                        <input type="text" data-ng-model="packingListNo" id="packingListNo" class="form-control" placeholder="Eg: 000233" required>

                    Packing list date
                        <input type="text" data-ng-model="packingListDate" id="packingListDate" class="form-control" placeholder="DD/MM/YYYY" required>

                    Buyer name
                        <input type="text" data-ng-model="buyerName" id="buyerName" class="form-control" placeholder="Eg: Hari Gopal Associates" required>

                    Description
                        <textarea row="2" data-ng-model="description" id="description" class="form-control" placeholder="Enter relevant description" required>

                    Assortment serial number
                        <input type="text" data-ng-model="asLNo" id="asLNo" class="form-control" placeholder="Eg: 000456" required>

                    Assortment size
                        <input type="text" data-ng-model="asize" id="asize" class="form-control" placeholder="Eg: XXL" required>

                    Assortment color
                        <input type="text" data-ng-model="acolor" id="acolor" class="form-control" placeholder="Eg: Orange" required>

                    Assortment number of pieces
                        <input type="text" data-ng-model="apcs" id="apcs" class="form-control" placeholder="Eg: 1000" required>

                    Assortment bundle description
                    <textarea row="2" data-ng-model="abundleDescription" id="abundleDescription" class="form-control" placeholder="Enter relevant description" required>

                    Carton serial number
                        <input type="text" data-ng-model="csLNo" id="csLNo" class="form-control" placeholder="Eg: 000765" required>

                    Carton number
                        <input type="text" data-ng-model="ccartonNo" id="ccartonNo" class="form-control" placeholder="Eg: 000333" required>

                    Carton color
                        <input type="text" data-ng-model="ccolor" id="ccolor" class="form-control" placeholder="Eg: Brown" required>

                    Carton size
                        <input type="text" data-ng-model="csize" id="csize" class="form-control" placeholder="Eg: XXL" required>

                    Carton unit of measurement
                        <input type="text" data-ng-model="cuoM" id="cuoM" class="form-control" placeholder="Eg: Kgs" required>

                    Carton units
                        <input type="text" data-ng-model="cunits" id="cunits" class="form-control" placeholder="Eg: 100" required>

                    Carton net weight
                        <input type="text" data-ng-model="cnetWt" id="cnetWt" class="form-control" placeholder="Eg: 150" required>

                    Carton gross weight
                        <input type="text" data-ng-model="cgrsWt" id="cgrsWt" class="form-control" placeholder="Eg: 300" required>

                    <input type="submit" class="btn btn-default">

            </fieldset>
        </form>


text:
<?php
require_once 'recaptcha.class.php';

$form_id = "form";
$site_key = 'YOUR_SITE_KEY';
$secret_key = 'YOUR_SECRET_KEY';
$recaptcha = new Recaptcha($form_id, $site_key, $secret_key);
?>
<!doctype html>

<title>ReCAPTCHA v3 API Class Demo</title>

<?php ob_start(); ?>
<form id="form" method="post">
<input type="text" name="example" value="" placeholder="Example Field" />
<?php echo $recaptcha->button(); ?>
</form>
<?php
$form = ob_get_clean();

if(!empty($_POST)) {
	$response = $recaptcha->get_response();

	echo "Success: ". ( $response->success ? 'true' : 'false' ) ."
\r\n";
	echo "Score: ". $response->score ."
\r\n";

	if($response->success) {
		echo "Passed Captcha.";
	} else {
		echo "Failed Captcha.";
		echo $form;
	}
} else {
	echo $form;
}

echo $recaptcha->script();
?>


text:
.container-full{
	background-color:#eee;
	padding-bottom:30px;
}

.greyout{
	background-color:#eee;
	color:#ddd;
}
.greyout > a{
	background-color:#eee;
	color:#ddd;
}

/*last-child is the record count, which we don't sort by, so remove all effects*/
.columnHeaders > div:last-child {
  cursor: default;
}
.columnHeaders > div:last-child:hover::after  {
  content: "";
}
.columnHeaders > div {
  cursor: pointer;
}

.columnHeaders > div:last-child:hover {
  background-color: #DEDEDE;
}

.columnHeaders > div:hover {
  /*background-color: #ECEDFD;*/
}
.columnHeaders > div:hover::after {
  content: " < order by";
  color: #fff;
}

.activityfeed-time{

	/*font-weight:bold;*/
	background-color:#999;
	padding:2px;
	color:white;
	-webkit-border-radius: 2px;
	-moz-border-radius: 2px;
	-ms-border-radius: 2px;
	-o-border-radius: 2px;
	margin-right:3px;
}

section {
	padding: 5px 10px 20px 10px;
	/* background-color: #ccc; */
	margin-top: 20px;
	border-radius: 4px;
	-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
}

.panel-info,  .panel-title{
 font-size: 11px;
}

.confidential-box
{
	padding:10px;
	border-radius: 4px;
	border: 1px solid #C2BEBE;

}
.confidential-text  {
	font-weight:bold;
	color:#d8534f;
}
 .disable {
    background-color:#ccc!important;
    color:#666!important;
}

/*.disable  button {
	background-color:#ccc!important;
	border-color:#666;
}
.disable  hr {
	background-color:#ccc!important;
	border-color:#666;
}
.disable  input{
	background-color:#ccc!important;
	border-color:#666;
}
.disable textarea{
	background-color:#ccc!important;
	border-color:#666;
}
.disable span{
	background-color:#ccc!important;
	border-color:#666;
}
.disable div{
	background-color:#ccc!important;
	border-color:#666;
}*/

.disable *{
	color:#999!important;
	border-color:#999!important;
	background-color:#ccc!important;
}

.enable {
    background-color:#F5F5F5;
}

legend + .help-inline-content{position:relative; top:-19px;}
legend + .help-block{position:relative; top:-15px;}

.legend2{font-size:14px;padding:3px;font-weight:500;margin-bottom:20px; border-bottom: 1px solid #e5e5e5;}

.form-group{
	padding:0;
	margin: 0 0 20px 0;
}
.input-rich-text{
	 border: 1px solid #CCC;border-radius: 4px;

 }
.ta-editor{border:0;}

.panel-body-confidential{
	padding-bottom:5px;
}

.table-striped{
	background-color:#efefef;
}

.btn-commonformat-name{
	color:#666;
	margin-top:0px;
	padding-top:0px;
	/*//border-top:1px solid #fefefe;*/

}

.btn-commonformat-header-national {
	/*color:#418BCA;*/
	border-bottom: 1px solid #418BCA;
}
.btn-commonformat-header-reference {
	/*color:#ed9c28;*/
	border-bottom: 1px solid #ed9c28;
}

.btn-commonformat-national {
	font-weight: bold;
	color:#418BCA;
}
.btn-commonformat-reference {
	font-weight: bold;
	color:#ed9c28;
}

.btn-commonformat {

	border: 0;
	/*border-left:#418BCA solid 5px;*/
	box-shadow: 1px 1px 1px rgba(0, 0, 0, .3);
	color:#111;
	text-decoration: none;
	padding-left:10px;
	padding-right:10px;
	background-color: #ddd!important;
	padding:5px;
	margin-bottom:20px;
}

.btn-commonformat:hover {
	/*border: 0;
	border-left:#418BCA solid 5px;
	box-shadow: 1px 1px 1px rgba(0, 0, 0, .3);
	color:#111;
	text-decoration: none;
	padding-left:10px;
	padding-right:10px;*/
	background-color: #f5f5f5!important;
	/*padding:5px;*/
}

 .btn-commonformat-selected {
	border: 0;
	border-left:#418BCA solid 5px;
	box-shadow: 1px 1px 1px rgba(0, 0, 0, .3);
	color:#111;
	text-decoration: none;
	padding-left:10px;
	padding-right:10px;
	background-color: #f5f5f5!important;
	padding:5px;

  }

 .btn-commonformat-reference-selected {
   border-left:#FA6938 solid 5px;
  }

  .btn-commonformat-selected:hover, a.btn-commonformat-selected:focus {

  }

.btn-text{
	font-size:11px;
	padding: 0;
	margin: 0;
	color:#ccc;
}
.btn-abs{
	background-color:#666;
}
.btn-all{
    padding:5px 5px 5px 5px;
	color: white;
}

.btn-draft{
	/*background-color:#999;*/
	color: #fff!important;
    background-color: #666;
    border-color: #888;
}

.registerpage-header{
	/*background-color:#333;*/
	/*padding:3px 20px;*/
	/*border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	/*padding-bottom:15px;*/*/
}
.registerpage-header .abbreviation{
	color: #428BCA;
	font-weight: bold;
	font-size: 18px;
}
.title{
	font-weight: normal;
	font-size: 18px;
	/*text-transform:uppercase;*/
	color:white;
}

.nat-header{
	padding:1px 10px 10px 20px;
	margin:-19px;
	position:static;
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
	margin-bottom:20px;
}

.registerpage-content{
	min-height: 400px;
	/*padding: 20px;
	background-color:#dedede;
	margin:0 0 50px 0;*/
}

.registerpage-content h4{
	font-size: 14px;
	font-weight: bold;
}

.registerpage-content h2{
	padding:0;
	margin: 0;
}

.help1 {
	color:#eee;
	font-weight: normal;
	font-size: 14px;
}
.help_icon{
	padding:5px;
}

hr{
	margin:10px 0 0 0;
	padding:0;
}
table, td , tr{
	padding: 0;
	margin: 0;
	vertical-align: top;
}
.km-term-radio-description{
	color:#666;
	font-weight: normal;
	font-size: 13px;
	display:block;
	padding-left:16px;
}

/*
ul.km-value {
  padding-left: 0;
  list-style: none;
}

address.km-value,
div.km-value,
ul.km-value > li {
border: 1px solid #c0c0c0;
border-radius: 3px;
padding: 5px 8px 5px 8px;
margin-top: 1px;
margin-bottom: 1px;
display: block;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
-ms-border-radius: 5px;
-o-border-radius: 5px;
}*/

@media (min-width: 768px) {
  .modal-lg {
    width: 100%;
  }
}
@media (min-width: 992px) {
  .modal-lg {
    width: 900px;  }
}
/* ^^^ km-select ^^^ */

/*form label.required:before,
form label[required]:before
{

	content: '*';

}*/

.up-caret {
    border-bottom: 5px solid #000000;
    border-top: 5px solid transparent;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    display: inline-block;
    height: 0;
    opacity: 0.5;
    vertical-align: top;
    width: 0;
    top: -3px;
    position: relative;
}

.down-caret {
    border-bottom: 5px solid transparent;
    border-top: 5px solid #000000;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    display: inline-block;
    height: 0;
    opacity: 0.5;
    vertical-align: top;
    width: 0;
}

.flip {
  -webkit-perspective: 800;
  -ms-perspective: 800;
  -moz-perspective: 800;
  -o-perspective: 800;
   max-width: 30px;
   min-width: 20px;
   height: 10px;
   position: relative;

}
.card.flipped {
  transform:rotatey(-180deg);
  -ms-transform:rotatey(-180deg); /* IE 9 */
  -moz-transform:rotatey(-180deg); /* Firefox */
  -webkit-transform:rotatey(-180deg); /* Safari and Chrome */
  -o-transform:rotatey(-180deg); /* Opera */
}

.card .front {
  position: absolute;
  z-index: 1;
  cursor: pointer;
  margin-left:5px;
}
.cardMargin{
	margin-left:5px;
}
/*progressbar*/
    #progressbar {
    	/*margin-bottom: 30px;*/
    	overflow: hidden;
    	/*CSS counters to number the steps*/
    	counter-reset: step;

    }
    #progressbar li {
    	list-style-type: none;
    	color: white;
    	text-transform: uppercase;
    	font-size: 9px;
    	width: 18.33%;
    	float: left;
    	position: relative;
        text-align: center;
        z-index:1;
        padding-right: 20px;
		padding-bottom:5px;

        /*a {
             text-decoration: none;
             display: block;
             width: 100%;
             height: 100%;
        }*/
    }
    /*#progressbar li:hover {
        cursor:pointer;
    }*/
    #progressbar li:before {
    	content: counter(step);
    	counter-increment: step;
    	width: 20px;
    	line-height: 20px;
    	display: block;
    	font-size: 10px;
    	color: #333;
    	background: #ddd;
    	border-radius: 3px;
    	margin: 0 auto 5px auto;
        z-index:-1;
    }
    /*progressbar connectors*/
    #progressbar li:after {
    	content: '';
    	width: 100%;
    	height: 3px;
    	background: #ddd;
    	position: absolute;
    	left: -50%;
    	top: 9px;
    	z-index: -1; /*put it behind the numbers*/
    }
    #progressbar li:first-child:after {
    	/*connector not needed before the first step*/
    	content: none;
    }
    /*marking active/completed steps green*/
    /*The number of the step and the connector before it = green*/
    #progressbar li.active:before,  #progressbar li.active:after{
    	background: #27AE60;
    	color: white;
    }
    #progressbar li a,#progressbar li span{
        color: white;
        font-size: small;
    }
    .rowbg{
        padding-top:20px;
        /*background-color: #FFF;*/
        /*padding-bottom: 10px;*/
		position:relative;
		top:-15px;
		/*border-bottom:1px solid #ccc;*/

		margin:0;

    }
    .colbg{
        padding-bottom: 2px;
        max-height: 100px;
    }

	.prg3 > span {
		/*background-color:yellow;*/
		color:#555!important;
	}

.latest-country{
		color:#555;
		font-weight:bold;
		text-transform:uppercase;
		font-size:14px;

}
.latest-title{
		font-weight:bold;
		font-size:14px;
		color:#428bca;
}

.latest-date{
		color:#555;
		font-weight:bold;
		text-transform:uppercase;
		font-size:14px;
}
.tab{
  font-size: 14px;
  text-align: center;
  line-height: 24px;
  padding: 12px 24px;
  transition: background-color 0.35s cubic-bezier(0.35, 0, 0.25, 1);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  text-transform: uppercase;
  float: left;
  font-weight: 500;
}

.tab a:focus{
	color:rgb(63,81,181);
}

.tab-selected{
border-bottom:5px solid pink;
}

label{
	font-weight:500;
}

.modal-open .form-control{
	opacity: 0.9;
}

#documentStatus .btn-group.open{
	width: 100%;
}

.ngdialog-content{
	width:70% !important;
}
/*.ngdialog.ngdialog-theme-default{
	padding-top: 10px;
}*/

  .ngdialog.ngdialog-theme-default .ngdialog-content{padding:0;}

  .modal-body{background-color:#FFF;}

  .btn-thin .btn{
	  padding:0 3px 0 3px!important;
	  margin:0!important;
	  font-size:12px;font-weight: 500;
  }
  #MyLocale .locale-menu {
	  left:200px;
	  top:20px;
  }
    #MyLocale .locale {
	  display:inline;
  }
    #MyLocale .badge {
	  font-size:12px;
	  border-radius: .25em;
  }

  .editForm .synonym-name-input  > .input-group,
  .editForm .common-name-input 	 > .input-group,
  .editForm .areas-of-work-input > .input-group {
	width: 100%;
}