text:
package org.efaps.esjp.accounting.util;

import java.util.UUID;

import org.efaps.admin.common.SystemConfiguration;
import org.efaps.admin.datamodel.IBitEnum;
import org.efaps.admin.datamodel.IEnum;
import org.efaps.admin.datamodel.attributetype.BitEnumType;
import org.efaps.admin.program.esjp.EFapsApplication;
import org.efaps.admin.program.esjp.EFapsUUID;
import org.efaps.api.annotation.EFapsSysConfAttribute;
import org.efaps.api.annotation.EFapsSysConfLink;
import org.efaps.api.annotation.EFapsSystemConfiguration;
import org.efaps.esjp.admin.common.systemconfiguration.BooleanSysConfAttribute;
import org.efaps.esjp.admin.common.systemconfiguration.PropertiesSysConfAttribute;
import org.efaps.esjp.admin.common.systemconfiguration.SysConfLink;
import org.efaps.esjp.ci.CISales;
import org.efaps.util.cache.CacheReloadException;

/**
 *
 * @author The eFaps Team
 */
@EFapsUUID("ded4c72c-82c2-4881-856f-ad5c579a2f14")
@EFapsApplication("eFapsApp-Accounting")
@EFapsSystemConfiguration("ca0a1df1-2211-45d9-97c8-07af6636a9b9")
public final class Accounting
{

    /** The base. */
    public static final String BASE = "org.efaps.accounting.";

    /** Accounting-Configuration. */
    public static final UUID SYSCONFUUID = UUID.fromString("ca0a1df1-2211-45d9-97c8-07af6636a9b9");

    /** See description. */
    @EFapsSysConfAttribute
    public static final BooleanSysConfAttribute ACTIVATE = new BooleanSysConfAttribute()
                    .sysConfUUID(Accounting.SYSCONFUUID)
                    .key(Accounting.BASE + "Activate")
                    .description("Main switch to turn on/off Accounting");

    /** See description. */
    @EFapsSysConfAttribute
    public static final BooleanSysConfAttribute CURRATEEQ = new BooleanSysConfAttribute()
                    .sysConfUUID(Accounting.SYSCONFUUID)
                    .key(Accounting.BASE + "CurrencyRate4AccountingEqualsSales")
                    .description("The CurrencyRate for Accounting is the same as the one for sales.\n"
                                    + "Means only one CurrencyRate for the system is used.");

    /** See description. */
    @EFapsSysConfAttribute
    public static final BooleanSysConfAttribute PURCHASERECORD_ACTIVATE = new BooleanSysConfAttribute()
                    .sysConfUUID(Accounting.SYSCONFUUID)
                    .key(Accounting.BASE + "PurchaseRecord.Activate")
                    .description("Switch to turn on/off PurchaseRecord seperately.");

    /** See description. */
    @EFapsSysConfLink
    public static final SysConfLink CTP4VAT = new SysConfLink()
                    .sysConfUUID(Accounting.SYSCONFUUID)
                    .key(Accounting.BASE + "CostTextPosition4VAT")
                    .description("Link to a Products_ProductCostTextPosition used for creating Positions."
                                    + "in an External Voucher applying VAT.");

    /** See description. */
    @EFapsSysConfLink
    public static final SysConfLink CTP4FREE = new SysConfLink()
                    .sysConfUUID(Accounting.SYSCONFUUID)
                    .key(Accounting.BASE + "CostTextPosition4TaxFree")
                    .description(" Link to a Products_ProductCostTextPosition used for creating Positions"
                                    + "in an External Voucher without Tax.");

    /** See description. */
    @EFapsSysConfAttribute
    public static final PropertiesSysConfAttribute CREATE4EXTERNAL_AUTOCOMPLETE4ADDDOC
        = new PropertiesSysConfAttribute()
                    .sysConfUUID(Accounting.SYSCONFUUID)
                    .key(Accounting.BASE + "Create4External.AutoComplete4AdditionalDocuments")
                    .description("Possibility to overwrite the default Autocomplete "
                                    + "for additional Document in Create4External.");

    /** See description. */
    @EFapsSysConfAttribute
    public static final PropertiesSysConfAttribute CREATE4DOC_AUTOCOMPLETE4ADDDOC
        = new PropertiesSysConfAttribute()
                    .sysConfUUID(Accounting.SYSCONFUUID)
                    .key(Accounting.BASE + "Create4Doc.AutoComplete4AdditionalDocuments")
                    .description("Possibility to overwrite the default Autocomplete "
                                    + "for additional Document in Create4Doc.");

    /** See description. */
    @EFapsSysConfAttribute
    public static final PropertiesSysConfAttribute CREATE4DOCBOOK_AUTOCOMPLETE4ADDDOC
        = new PropertiesSysConfAttribute()
                    .sysConfUUID(Accounting.SYSCONFUUID)
                    .key(Accounting.BASE + "Create4DocToBook.AutoComplete4AdditionalDocuments")
                    .description("Possibility to overwrite the default Autocomplete "
                                    + "for additional Document in Create4External.");

    /** See description. */
    @EFapsSysConfAttribute
    public static final PropertiesSysConfAttribute CREATE4EXCHANGE_AUTOCOMPLETE4ADDDOC
        = new PropertiesSysConfAttribute()
                    .sysConfUUID(Accounting.SYSCONFUUID)
                    .key(Accounting.BASE + "Create4Exchange.AutoComplete4AdditionalDocuments")
                    .description("Possibility to overwrite the default Autocomplete "
                                    + "for additional Document in Create4External.");

    /** See description. */
    @EFapsSysConfAttribute
    public static final PropertiesSysConfAttribute CREATE4EXTERNALBOOK_AUTOCOMPLETE4ADDDOC
        = new PropertiesSysConfAttribute()
                    .sysConfUUID(Accounting.SYSCONFUUID)
                    .key(Accounting.BASE + "Create4ExternalToBook.AutoComplete4AdditionalDocuments")
                    .description("Possibility to overwrite the default Autocomplete "
                                    + "for additional Document in Create4External.");

    /** See description. */
    @EFapsSysConfAttribute
    public static final PropertiesSysConfAttribute CREATE4PAYIN_AUTOCOMPLETE4ADDDOC
        = new PropertiesSysConfAttribute()
                    .sysConfUUID(Accounting.SYSCONFUUID)
                    .key(Accounting.BASE + "Create4PaymentIn.AutoComplete4AdditionalDocuments")
                    .description("Possibility to overwrite the default Autocomplete "
                                    + "for additional Document in Create4External.");

    /** See description. */
    @EFapsSysConfAttribute
    public static final PropertiesSysConfAttribute CREATE4PAYOUT_AUTOCOMPLETE4ADDDOC
        = new PropertiesSysConfAttribute()
                    .sysConfUUID(Accounting.SYSCONFUUID)
                    .key(Accounting.BASE + "Create4PaymentOut.AutoComplete4AdditionalDocuments")
                    .description("Possibility to overwrite the default Autocomplete "
                                    + "for additional Document in Create4External.");

    /** See description. */
    @EFapsSysConfAttribute
    public static final PropertiesSysConfAttribute EXPORT_SC1617
        = new PropertiesSysConfAttribute()
                    .sysConfUUID(Accounting.SYSCONFUUID)
                    .key(Accounting.BASE + "export.Siscont1617")
                    .description("Possibility to configure the export for Siscont 16/17. \n"
                                    + "(DocCode applies only to PaymentDocuments)\n"
                                    + "TYPE.Number=TransName|DocName|DocRevision|DocCode\n"
                                    + "JournalSC1617.TYPE.Number=TransName|DocName|DocRevision|DocCode\n"
                                    + "JournalSC1617RC.TYPE.Number=TransName|DocName|DocRevision|DocCode\n"
                                    + "TYPE.DocumentType=01\n"
                                    + "JournalSC1617.TYPE.DocumentType=01\n"
                                    + "JournalSC1617RC.TYPE.DocumentType=01\n"
                                    + "COMPRAS.AnalyzeRemark=false\n"
                                    + "COMPRAS.TYPE.AnalyzeRemark=false\n"
                                    + "COMPRAS.TYPE.Credit.AnalyzeRemark=false\n"
                                    + "COMPRAS.TYPE.Debit.AnalyzeRemark=false\n"
                                    + "COMPRAS.Date4Rate=DocDate|DocDueDate|TransDate\n"
                                    + "COMPRAS.TYPE.Date4Rate=DocDate|DocDueDate|TransDate\n")
                    .addDefaultValue(CISales.IncomingInvoice.getType().getName() + ".Number", "DocName")
                    .addDefaultValue(CISales.IncomingProfServReceipt.getType().getName() + ".Number", "DocName")
                    .addDefaultValue(CISales.IncomingExchange.getType().getName() + ".Number", "DocName")
                    .addDefaultValue(CISales.PaymentDepositOut.getType().getName() + ".Number", "DocCode")
                    .addDefaultValue("JournalSC1617." + CISales.IncomingReceipt.getType().getName() + ".Number",
                                    "TransName")
                    .addDefaultValue("JournalSC1617RC." + CISales.IncomingCreditNote.getType().getName() + ".Number",
                                    "DocRevision")
                    .addDefaultValue(CISales.Invoice.getType().getName() + ".DocumentType", "01")
                    .addDefaultValue(CISales.Receipt.getType().getName() + ".DocumentType", "03")
                    .addDefaultValue(CISales.CreditNote.getType().getName() + ".DocumentType", "07")
                    .addDefaultValue(CISales.Reminder.getType().getName() + ".DocumentType", "08")
                    .addDefaultValue("Origin", "COMPRAS")
                    .addDefaultValue("COMPRAS.Label", "01 - Compras")
                    .addDefaultValue("COMPRAS.Value", "01")
                    .addDefaultValue("COMPRAS.AnalyzeRemark", "false")
                    .addDefaultValue("COMPRAS.UseDate4Number", "false")
                    .addDefaultValue("COMPRAS.UseOrigDoc4Number", "false")
                    .addDefaultValue("COMPRAS.Concatenate", "false");

    /** See description. */
    @EFapsSysConfAttribute
    public static final BooleanSysConfAttribute PAYMENT_ANALYZE_DOCCURRENCY = new BooleanSysConfAttribute()
                    .sysConfUUID(Accounting.SYSCONFUUID)
                    .key(Accounting.BASE + "Payment.AnalyzeDocumentCurrency")
                    .description("Analyze Document Currency for Payments.");

    /** See description. */
    @EFapsSysConfAttribute
    public static final BooleanSysConfAttribute PERIOD_PERMITCREATE = new BooleanSysConfAttribute()
                    .sysConfUUID(Accounting.SYSCONFUUID)
                    .key(Accounting.BASE + "Period.PermitCreationOfIncomingDocs")
                    .defaultValue(true)
                    .description("Permit to create incoming documents inside Period.");

    /** See description. */
    @EFapsSysConfAttribute
    public static final PropertiesSysConfAttribute PERIOD_COLLECT_INCEXCH = new PropertiesSysConfAttribute()
                    .sysConfUUID(Accounting.SYSCONFUUID)
                    .key(Accounting.BASE + "Period.Collect.IncomingExchange")
                    .addDefaultValue("Type", "Sales_IncomingExchange")
                    .description("Permit to overwrite the MultiPrint for IncomingExchange.");

    /** See description. */
    @EFapsSysConfAttribute
    public static final PropertiesSysConfAttribute PERIOD_COLLECT_DOC2BOOK = new PropertiesSysConfAttribute()
                    .sysConfUUID(Accounting.SYSCONFUUID)
                    .key(Accounting.BASE + "Period.Collect.DocsToBook")
                    .addDefaultValue("Type01", "Sales_Invoice")
                    .addDefaultValue("Type02", "Sales_Receipt")
                    .addDefaultValue("Type03", "Sales_CreditNote")
                    .addDefaultValue("Type04", "Sales_Reminder")
                    .description("Permit to overwrite the MultiPrint for DocsToBook.");

    /** See description. */
    @EFapsSysConfAttribute
    public static final PropertiesSysConfAttribute PERIOD_COLLECT_DOC = new PropertiesSysConfAttribute()
                    .sysConfUUID(Accounting.SYSCONFUUID)
                    .key(Accounting.BASE + "Period.Collect.Document")
                    .addDefaultValue("Type01", "Sales_Invoice")
                    .addDefaultValue("Type02", "Sales_Receipt")
                    .addDefaultValue("Type03", "Sales_CreditNote")
                    .addDefaultValue("Type04", "Sales_Reminder")
                    .description("Permit to overwrite the MultiPrint for IncomingExchange.");

    /** See description. */
    @EFapsSysConfAttribute
    public static final PropertiesSysConfAttribute PERIOD_COLLECT_PAYMENT = new PropertiesSysConfAttribute()
                    .sysConfUUID(Accounting.SYSCONFUUID)
                    .key(Accounting.BASE + "Period.Collect.Payment")
                    .addDefaultValue("Type01", "Sales_PaymentCash")
                    .addDefaultValue("Type02", "Sales_PaymentCheck")
                    .addDefaultValue("Type03", "Sales_PaymentCreditCardAbstract")
                    .addDefaultValue("Type04", "Sales_PaymentDebitCardAbstract")
                    .addDefaultValue("Type05", "Sales_PaymentDeposit")
                    .addDefaultValue("Type06", "Sales_PaymentDetraction")
                    .addDefaultValue("Type07", "Sales_PaymentInternal")
                    .addDefaultValue("Type08", "Sales_PaymentRetention")
                    .description("Permit to overwrite the MultiPrint for IncomingExchange.");

    /** See description. */
    @EFapsSysConfAttribute
    public static final PropertiesSysConfAttribute CANCELEDTAG = new PropertiesSysConfAttribute()
                    .sysConfUUID(Accounting.SYSCONFUUID)
                    .key(Accounting.BASE + "CanceledTag")
                    .addDefaultValue("StatusGroup01", CISales.InvoiceStatus.getType().getName())
                    .addDefaultValue("Status01", CISales.InvoiceStatus.Replaced.key)
                    .addDefaultValue("StatusGroup02", CISales.ReceiptStatus.getType().getName())
                    .addDefaultValue("Status02", CISales.ReceiptStatus.Replaced.key)
                    .addDefaultValue("StatusGroup03", CISales.ReminderStatus.getType().getName())
                    .addDefaultValue("Status03", CISales.ReminderStatus.Replaced.key)
                    .addDefaultValue("StatusGroup04", CISales.CreditNoteStatus.getType().getName())
                    .addDefaultValue("Status04", CISales.CreditNoteStatus.Replaced.key)
                    .addDefaultValue("StatusGroup05", CISales.IncomingInvoiceStatus.getType().getName())
                    .addDefaultValue("Status05", CISales.IncomingInvoiceStatus.Replaced.key)
                    .addDefaultValue("StatusGroup06", CISales.IncomingReceiptStatus.getType().getName())
                    .addDefaultValue("Status06", CISales.IncomingReceiptStatus.Replaced.key)
                    .description("List of Status that should be tagged as canceled");

    /**
     * Singelton.
     */
    private Accounting()
    {
    }

    /**
     * The Enum SubstitutorKeys.
     *
     * @author The eFaps Team
     */
    public enum SubstitutorKeys
    {

        /** The transaction date. */
        TRANSACTION_DATE,

        /** The document date. */
        DOCUMENT_DATE,

        /** The document type. */
        DOCUMENT_TYPE,

        /** The document name. */
        DOCUMENT_NAME,

        /** The product name. */
        PRODUCT_NAME,

        /** The product descr. */
        PRODUCT_DESCR;
    }

    /**
     * The Enum SubstitutorKeys.
     *
     * @author The eFaps Team
     */
    public enum RemarkSubstitutorKeys
    {
        /** The related doc name. */
        RELDOC_NAME,
        /** The realted document type. */
        RELDOC_TYPE;
    }

    /**
     * The Enum Taxed4PurchaseRecord.
     *
     */
    public enum Taxed4PurchaseRecord
        implements IEnum
    {
        /** Internal Report. */
        TAXED,
        /** Official Report. */
        EXPORT,
        /** Official Report. */
        UNTAXED;

        @Override
        public int getInt()
        {
            return ordinal();
        }
    }

    /**
     * The Enum SubJournalConfig.
     *
     */
    public enum SubJournalConfig
        implements IEnum
    {
        /** Internal Report. */
        INTERNAL,
        /** Official Report. */
        OFFICIAL;

        @Override
        public int getInt()
        {
            return ordinal();
        }
    }

    /**
     * The Enum ActDef2Case4IncomingConfig.
     *
     */
    public enum ActDef2Case4IncomingConfig
        implements IBitEnum
    {
        /** Internal Report. */
        PURCHASERECORD,
        /** Official Report. */
        TRANSACTION,
        /** Official Report. */
        SUBJOURNAL,
        /** The setstatus. */
        SETSTATUS,
        /** The withoutdoc. */
        WITHOUTDOC,
        /** The evalonpayment. */
        PERIOD4ACTIONDATE,
        /** The evalonpayment. */
        PERIOD4DOCDATE;

        /**
         * {@inheritDoc}
         */
        @Override
        public int getInt()
        {
            return BitEnumType.getInt4Index(ordinal());
        }

        /**
         * {@inheritDoc}
         */
        @Override
        public int getBitIndex()
        {
            return ordinal();
        }
    }

    /**
     * The Enum ActDef2Case4DocConfig.
     *
     */
    public enum ActDef2Case4DocConfig
         implements IBitEnum
    {
        /** Official Report. */
        TRANSACTION,
        /** Official Report. */
        SUBJOURNAL,
        /** The setstatus. */
        MARKBOOKED,
        /** The evalonpayment. */
        EVALONPAYMENT,
        /** The evalonpayment. */
        PERIOD4ACTIONDATE,
        /** The evalonpayment. */
        PERIOD4DOCDATE;

        /**
         * {@inheritDoc}
         */
        @Override
        public int getInt()
        {
            return BitEnumType.getInt4Index(ordinal());
        }

        /**
         * {@inheritDoc}
         */
        @Override
        public int getBitIndex()
        {
            return ordinal();
        }
    }

    /**
     * The Enum Account2AccountConfig.
     *
     */
    public enum Account2AccountConfig
        implements IBitEnum
    {
        /** Is as default selected. */
        DEACTIVATABLE,
        /** Official Report. */
        APPLY4DEBIT,
        /** Official Report. */
        APPLY4CREDIT;

        /**
         * {@inheritDoc}
         */
        @Override
        public int getInt()
        {
            return BitEnumType.getInt4Index(ordinal());
        }

        /**
         * {@inheritDoc}
         */
        @Override
        public int getBitIndex()
        {
            return ordinal();
        }
    }

    /**
     * The Enum Account2CaseConfig.
     */
    public enum Account2CaseConfig
        implements IBitEnum
    {
        /** Is as default selected. */
        DEFAULTSELECTED,
        /** Official Report. */
        APPLYLABEL,
        /** Official Report. */
        EVALRELATION,
        /** Do not join the information. Applies only for product evaluations */
        SEPARATELY;

        /**
         * {@inheritDoc}
         */
        @Override
        public int getInt()
        {
            return BitEnumType.getInt4Index(ordinal());
        }

        /**
         * {@inheritDoc}
         */
        @Override
        public int getBitIndex()
        {
            return ordinal();
        }
    }

    /**
     * The Enum Account2CaseConfig.
     */
    public enum Account2Case4AmountConfig
        implements IEnum
    {
        /** Net Value. */
        NET,
        /** Cross Value. */
        CROSS,
        /** Tax Value. */
        TAX;

        /**
         * {@inheritDoc}
         */
        @Override
        public int getInt()
        {
            return ordinal();
        }
    }

    /**
     * The Enum SummarizeDefinition.
     *
     */
    public enum SummarizeDefinition
    {
        /** Never summarize for this period. Default if not set. */
        NEVER,
        /** Always summarize for this period. */
        ALWAYS,
        /** Always summarize for this period. */
        ALWAYSDEBIT,
        /** Always summarize for this period. */
        ALWAYSCREDIT,
        /** Summarize is defined only by the cases. */
        CASE,
        /** Summarize is defined only by the user. */
        USER,
        /** Summarize is defined first by case but can be overwritten by the user. */
        CASEUSER;
    }

    /**
     * The Enum SummarizeConfig.
     *
     */
    public enum SummarizeConfig
        implements IEnum
    {
        /** Never summarize for this period. Default if not set. */
        NONE,
        /** Always summarize for this period. */
        DEBIT,
        /** Summarize is defined only by the cases. */
        CREDIT,
        /** Summarize is defined only by the user. */
        BOTH;

        @Override
        public int getInt()
        {
            return ordinal();
        }
    }

    /**
     * The Enum SummarizeCriteria.
     *
     */
    public enum SummarizeCriteria
        implements IEnum
    {
        /** Summarize with Account as only criteria. (default) */
        ACCOUNT,
        /** Summarize with Account and Label must be the same. */
        LABEL,
        /** Summarize with Account, Label and Remark must  be the same. */
        ALL;

        @Override
        public int getInt()
        {
            return ordinal();
        }
    }

    /**
     * The Enum LabelDefinition.
     *
     */
    public enum LabelDefinition
    {
        /** Never summarize for this period. Default if not set. */
        COST,
        /** Never summarize for this period. Default if not set. */
        COSTREQUIRED,
        /** Always summarize for this period. */
        BALANCE,
        /** Summarize is defined only by the cases. */
        BALANCEREQUIRED;
    }

    /**
     * The Enum TransPosOrder.
     *
     */
    public enum TransPosOrder
    {
        /** Sort by first Debit and than Credit over all positions by their sequences. */
        DEBITCREDIT,
        /** Sort by first Credit and than Debit over all positions by their sequences. */
        CREDITDEBIT,
        /** Sort by first Debit and than Credit and group than by "SubTransactions". */
        DEBITCREDITGROUP,
        /** Sort by first Credit and than DEBIT and group than by "SubTransactions". */
        CREDITDEBITGROUP,
        /** Sort by over all positions by the name of the account. */
        NAME,
        /** Sort positions by the name of the account and group than by "SubTransactions". */
        NAMEGROUP;;
    }

    /**
     * The Enum TransPosType.
     */
    public enum TransPosType
        implements IEnum
    {
        /** Main position. */
        MAIN,
        /** create throu a linkage. */
        CONNECTION;

        @Override
        public int getInt()
        {
            return ordinal();
        }
    }

    /**
     * The Enum ReportBalancePositionConfig.
     */
    public enum ReportBalancePositionConfig
        implements IBitEnum
    {
        /** Is Only a title. */
        TITLEONLY,
        /** Is Only a title. */
        TOTAL;

        /**
         * {@inheritDoc}
         */
        @Override
        public int getInt()
        {
            return BitEnumType.getInt4Index(ordinal());
        }

        /**
         * {@inheritDoc}
         */
        @Override
        public int getBitIndex()
        {
            return ordinal();
        }
    }

    /**
     * The Enum ExchangeConfig.
     *
     */
    public enum ExchangeConfig
        implements IEnum
    {

        /** The docdatepurchase. */
        DOCDATEPURCHASE,

        /** The docdatesale. */
        DOCDATESALE,

        /** The transdatepurchase. */
        TRANSDATEPURCHASE,

        /** The transdatesale. */
        TRANSDATESALE;

        @Override
        public int getInt()
        {
            return ordinal();
        }
    }

    /**
     * The Enum CalculateConfig.
     */
    public enum CalculateConfig
        implements IEnum
    {
        /** Calculate exchange rate for selected rows. */
        EXCHANGERATE,

        /** Calculate the selected row to fill up perfectly. */
        FILLUPAMOUNT,

        /** Calculate the selected row to fit the exchange rate. */
        FITEXRATE,

        /** Summarize by the first selected row. */
        SUMMARIZE;

        @Override
        public int getInt()
        {
            return ordinal();
        }
    }

    /**
     * The Enum CalculateConfig.
     */
    public enum ArchiveConfig
        implements IEnum
    {
        /** Do nothng. */
        NONE,
        /** Document is archived. (for all time). */
        ARCHIVED,
        /** Document was entered for this Period (will show in other Periods). */
        ENTERED;

        @Override
        public int getInt()
        {
            return ordinal();
        }
    }

    /**
     * @return the SystemConfigruation for Accounting
     * @throws CacheReloadException on error
     */
    public static SystemConfiguration getSysConfig()
        throws CacheReloadException
    {
        // Accounting-Configuration
        return SystemConfiguration.get(Accounting.SYSCONFUUID);
    }
}


text:
import asposepdfcloud
from asposepdfcloud.PdfApi import PdfApi
from asposepdfcloud.PdfApi import ApiException

import asposestoragecloud
from asposestoragecloud.StorageApi import StorageApi
from asposestoragecloud.StorageApi import ResponseMessage

apiKey = "XXXXX" #sepcify App Key
appSid = "XXXXX" #sepcify App SID
apiServer = "http://api.aspose.com/v1.1"
data_folder = "../../data/"

#Instantiate Aspose Storage API SDK
storage_apiClient = asposestoragecloud.ApiClient.ApiClient(apiKey, appSid, True)
storageApi = StorageApi(storage_apiClient)
#Instantiate Aspose Pdf API SDK
api_client = asposepdfcloud.ApiClient.ApiClient(apiKey, appSid, True)
pdfApi = PdfApi(api_client);

#set input file name
name = "sample-input.pdf"
pageNumber = 1
fragmentNumber = 1
segmentNumber = 1

try:
    #upload file to aspose cloud storage
    response = storageApi.PutCreate(name, data_folder + name)

    #invoke Aspose.Pdf Cloud SDK API to get text format of a particular segment
    response = pdfApi.GetSegmentTextFormat(name, pageNumber, fragmentNumber, segmentNumber)

    if response.Status == "OK":
        segTextFormat = response.TextFormat
        print "count :: " +  segTextFormat.FontName
        print "count :: " + str(segTextFormat.FontSize)

except ApiException as ex:
            print "ApiException:"
            print "Code:" + str(ex.code)
            print "Message:" + ex.message

redpajama_set_name: RedPajamaGithub


text:
# Collapse

## Props
| Name | Type | Default | Description |
|:-----|:-----|:--------|:------------|
| children | Element |  | The content node to be collapsed. |
| classes | Object | {} | Useful to extend the style applied to components. |
| in | boolean | false | If `true`, the component will transition in. |
| onEnter | TransitionCallback |  | Callback fired before the component is entering. |
| onEntered | TransitionCallback |  | Callback fired when the component has entered. |
| onEntering | TransitionCallback |  | Callback fired when the component is entering. |
| onExit | TransitionCallback |  | Callback fired before the component is exiting. |
| onExited | TransitionCallback |  | Callback fired when the component has exited. |
| onExiting | TransitionCallback |  | Callback fired when the component is exiting. |
| transitionDuration | union: number
 string
 | 300 | Set to 'auto' to automatically calculate transition time based on height. |

Any other properties supplied will be spread to the root element.

## CSS API

You can overrides all the class names injected by Material-UI thanks to the `classes` property.
This property accepts the following keys:
- `container`
- `entered`

Have a look at [overriding with classes](/customization/overrides#overriding-with-classes)
section for more detail.

If using the `overrides` key of the theme as documented
[here](/customization/themes#customizing-all-instances-of-a-component-type),
you need to use the following style sheet name: `MuiCollapse`.


text:
import asyncio
import datetime
import json
import logging

import aiohttp
import furl
from sqlalchemy.exc import SQLAlchemyError

from osfoffline import settings
from osfoffline.database_manager.db import clear_models, session
from osfoffline.database_manager.models import User
from osfoffline.database_manager.utils import save
from osfoffline.polling_osf_manager.remote_objects import RemoteUser
from osfoffline.exceptions import AuthError

class AuthClient(object):
    """Manages authorization flow """

    @asyncio.coroutine
    def _authenticate(self, username, password):
        """ Tries to use standard auth to authenticate and create a personal access token through APIv2

            :return: personal_access_token or raise AuthError
        """
        token_url = furl.furl(settings.API_BASE)
        token_url.path.add('/v2/tokens/')
        token_request_body = {
            'data': {
                'type': 'tokens',
                'attributes': {
                    'name': 'OSF-Offline - {}'.format(datetime.date.today()),
                    'scopes': settings.APPLICATION_SCOPES
                }
            }
        }
        headers = {'content-type': 'application/json'}

        try:
            resp = yield from aiohttp.request(method='POST', url=token_url.url, headers=headers, data=json.dumps(token_request_body), auth=(username, password))
        except (aiohttp.errors.ClientTimeoutError, aiohttp.errors.ClientConnectionError, aiohttp.errors.TimeoutError):
            # No internet connection
            raise AuthError('Unable to connect to server. Check your internet connection or try again later.')
        except Exception as e:
            # Invalid credentials probably, but it's difficult to tell
            # Regadless, will be prompted later with dialogbox later
            # TODO: narrow down possible exceptions here
            raise AuthError('Login failed')
        else:
            if resp.status == 401 or resp.status == 403:
                raise AuthError('Invalid credentials')
            elif not resp.status == 201:
                raise AuthError('Invalid authorization response')
            else:
                json_resp = yield from resp.json()
                return json_resp['data']['attributes']['token_id']

    @asyncio.coroutine
    def _create_user(self, username, password):
        """ Tries to authenticate and create user.

        :return: user or raise AuthError
        """
        logging.debug('User doesnt exist. Attempting to authenticate, then creating user.')
        personal_access_token = yield from self._authenticate(username, password)
        user = User(
            full_name='',
            osf_id='',
            osf_login=username,
            osf_local_folder_path='',
            oauth_token=personal_access_token,
        )
        return (yield from self.populate_user_data(user))

    @asyncio.coroutine
    def populate_user_data(self, user):
        """ Takes a user object, makes a request to ensure auth is working,
            and fills in any missing user data.

            :return: user or raise AuthError
        """
        me = furl.furl(settings.API_BASE)
        me.path.add('/v2/users/me/')
        header = {'Authorization': 'Bearer {}'.format(user.oauth_token)}
        try:
            resp = yield from aiohttp.request(method='GET', url=me.url, headers=header)
        except (aiohttp.errors.ClientTimeoutError, aiohttp.errors.ClientConnectionError, aiohttp.errors.TimeoutError):
            # No internet connection
            raise AuthError('Unable to connect to server. Check your internet connection or try again later')
        except Exception as e:
            raise AuthError('Login failed. Please log in again.')
        else:
            if resp.status != 200:
                raise AuthError('Invalid credentials. Please log in again.')
            json_resp = yield from resp.json()
            remote_user = RemoteUser(json_resp['data'])
            user.full_name = remote_user.name
            user.osf_id = remote_user.id

            return user

    @asyncio.coroutine
    def log_in(self, user=None, username=None, password=None):
        """ Takes standard auth credentials, returns authenticated user or raises AuthError.
        """
        if not username or not password:
            raise AuthError('Username and password required for login.')

        if user:
            user.oauth_token = yield from self._authenticate(username, password)
            if user.osf_login != username:
                #Different user authenticated, drop old user and allow login
                clear_models()
                user = yield from self._create_user(username, password)
        else:
            user = yield from self._create_user(username, password)

        user.logged_in = True
        try:
            save(session, user)
        except SQLAlchemyError as e:
            raise AuthError('Unable to save user data. Please try again later')
        else:
            return user


text:
import cabig.cabio.CaBioWSQueryService_client as services
from cabig.cacore.ws.proxy import *

schema = services.ns3

class AgentAlias(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.AgentAlias"

    id = ProxyAttr('id')
    name = ProxyAttr('name')
    type = ProxyAttr('type')
    agentCollection = ProxyAssoc('agentCollection',True)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.AgentAlias_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class Agent(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.Agent"

    EVSId = ProxyAttr('EVSId')
    IUPACName = ProxyAttr('IUPACName')
    NSCNumber = ProxyAttr('NSCNumber')
    SMILESCode = ProxyAttr('SMILESCode')
    absorption = ProxyAttr('absorption')
    bigid = ProxyAttr('bigid')
    biotransformation = ProxyAttr('biotransformation')
    casNumber = ProxyAttr('casNumber')
    chemicalFormula = ProxyAttr('chemicalFormula')
    comment = ProxyAttr('comment')
    drugbankAccession = ProxyAttr('drugbankAccession')
    halfLife = ProxyAttr('halfLife')
    id = ProxyAttr('id')
    indication = ProxyAttr('indication')
    isCMAPAgent = ProxyAttr('isCMAPAgent')
    mechanismOfAction = ProxyAttr('mechanismOfAction')
    molecularWeight = ProxyAttr('molecularWeight')
    name = ProxyAttr('name')
    percentProteinBinding = ProxyAttr('percentProteinBinding')
    pharmacology = ProxyAttr('pharmacology')
    pubchemCompoundId = ProxyAttr('pubchemCompoundId')
    pubchemSubstanceId = ProxyAttr('pubchemSubstanceId')
    source = ProxyAttr('source')
    toxicity = ProxyAttr('toxicity')
    agentAliasCollection = ProxyAssoc('agentAliasCollection',True)
    clinicalTrialProtocolCollection = ProxyAssoc('clinicalTrialProtocolCollection',True)
    geneFunctionAssociationCollection = ProxyAssoc('geneFunctionAssociationCollection',True)
    pathwayEntityCollection = ProxyAssoc('pathwayEntityCollection',True)
    targetCollection = ProxyAssoc('targetCollection',True)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.Agent_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class Anomaly(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.Anomaly"

    bigid = ProxyAttr('bigid')
    description = ProxyAttr('description')
    id = ProxyAttr('id')
    histopathology = ProxyAssoc('histopathology',False)
    organOntologyCollection = ProxyAssoc('organOntologyCollection',True)
    vocabularyCollection = ProxyAssoc('vocabularyCollection',True)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.Anomaly_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class ArrayReporterCytogeneticLocation(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.ArrayReporterCytogeneticLocation"

    id = ProxyAttr('id')
    bigid = ProxyAttr('bigid')
    chromosome = ProxyAssoc('chromosome',False)
    endCytoband = ProxyAssoc('endCytoband',False)
    startCytoband = ProxyAssoc('startCytoband',False)
    arrayReporter = ProxyAssoc('arrayReporter',False)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.ArrayReporterCytogeneticLocation_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class ArrayReporterPhysicalLocation(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.ArrayReporterPhysicalLocation"

    id = ProxyAttr('id')
    assembly = ProxyAttr('assembly')
    chromosomalEndPosition = ProxyAttr('chromosomalEndPosition')
    chromosomalStartPosition = ProxyAttr('chromosomalStartPosition')
    chromosome = ProxyAssoc('chromosome',False)
    arrayReporter = ProxyAssoc('arrayReporter',False)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.ArrayReporterPhysicalLocation_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class ArrayReporter(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.ArrayReporter"

    bigid = ProxyAttr('bigid')
    id = ProxyAttr('id')
    name = ProxyAttr('name')
    cytogeneticLocationCollection = ProxyAssoc('cytogeneticLocationCollection',True)
    microarray = ProxyAssoc('microarray',False)
    physicalLocationCollection = ProxyAssoc('physicalLocationCollection',True)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.ArrayReporter_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class Chromosome(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.Chromosome"

    bigid = ProxyAttr('bigid')
    id = ProxyAttr('id')
    number = ProxyAttr('number')
    cytobandCollection = ProxyAssoc('cytobandCollection',True)
    geneCollection = ProxyAssoc('geneCollection',True)
    locationCollection = ProxyAssoc('locationCollection',True)
    taxon = ProxyAssoc('taxon',False)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.Chromosome_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class ClinicalTrialProtocol(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.ClinicalTrialProtocol"

    NIHAdminCode = ProxyAttr('NIHAdminCode')
    PDQIdentifier = ProxyAttr('PDQIdentifier')
    PIName = ProxyAttr('PIName')
    bigid = ProxyAttr('bigid')
    currentStatus = ProxyAttr('currentStatus')
    currentStatusDate = ProxyAttr('currentStatusDate')
    documentNumber = ProxyAttr('documentNumber')
    id = ProxyAttr('id')
    leadOrganizationId = ProxyAttr('leadOrganizationId')
    leadOrganizationName = ProxyAttr('leadOrganizationName')
    participationType = ProxyAttr('participationType')
    phase = ProxyAttr('phase')
    title = ProxyAttr('title')
    treatmentFlag = ProxyAttr('treatmentFlag')
    agentCollection = ProxyAssoc('agentCollection',True)
    diseaseOntologyCollection = ProxyAssoc('diseaseOntologyCollection',True)
    histopathologyCollection = ProxyAssoc('histopathologyCollection',True)
    protocolAssociationCollection = ProxyAssoc('protocolAssociationCollection',True)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.ClinicalTrialProtocol_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class CloneRelativeLocation(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.CloneRelativeLocation"

    bigid = ProxyAttr('bigid')
    id = ProxyAttr('id')
    type = ProxyAttr('type')
    clone = ProxyAssoc('clone',False)
    nucleicAcidSequence = ProxyAssoc('nucleicAcidSequence',False)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.CloneRelativeLocation_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class Clone(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.Clone"

    bigid = ProxyAttr('bigid')
    id = ProxyAttr('id')
    insertSize = ProxyAttr('insertSize')
    name = ProxyAttr('name')
    type = ProxyAttr('type')
    cloneRelativeLocationCollection = ProxyAssoc('cloneRelativeLocationCollection',True)
    library = ProxyAssoc('library',False)
    nucleicAcidSequenceCollection = ProxyAssoc('nucleicAcidSequenceCollection',True)
    taxonCollection = ProxyAssoc('taxonCollection',True)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.Clone_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class ConstrainedRegion(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.ConstrainedRegion"

    id = ProxyAttr('id')
    assembly = ProxyAttr('assembly')
    chromosomalEndPosition = ProxyAttr('chromosomalEndPosition')
    chromosomalStartPosition = ProxyAttr('chromosomalStartPosition')
    pvalue = ProxyAttr('pvalue')
    score = ProxyAttr('score')
    chromosome = ProxyAssoc('chromosome',False)
    multipleAlignment = ProxyAssoc('multipleAlignment',False)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.ConstrainedRegion_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class CytobandPhysicalLocation(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.CytobandPhysicalLocation"

    id = ProxyAttr('id')
    assembly = ProxyAttr('assembly')
    chromosomalEndPosition = ProxyAttr('chromosomalEndPosition')
    chromosomalStartPosition = ProxyAttr('chromosomalStartPosition')
    chromosome = ProxyAssoc('chromosome',False)
    cytoband = ProxyAssoc('cytoband',False)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.CytobandPhysicalLocation_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class Cytoband(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.Cytoband"

    bigid = ProxyAttr('bigid')
    id = ProxyAttr('id')
    name = ProxyAttr('name')
    chromosome = ProxyAssoc('chromosome',False)
    physicalLocationCollection = ProxyAssoc('physicalLocationCollection',True)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.Cytoband_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class CytogeneticLocation(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.CytogeneticLocation"

    id = ProxyAttr('id')
    bigid = ProxyAttr('bigid')
    chromosome = ProxyAssoc('chromosome',False)
    endCytoband = ProxyAssoc('endCytoband',False)
    startCytoband = ProxyAssoc('startCytoband',False)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.CytogeneticLocation_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class DiseaseOntologyRelationship(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.DiseaseOntologyRelationship"

    bigid = ProxyAttr('bigid')
    id = ProxyAttr('id')
    type = ProxyAttr('type')
    childDiseaseOntology = ProxyAssoc('childDiseaseOntology',False)
    parentDiseaseOntology = ProxyAssoc('parentDiseaseOntology',False)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.DiseaseOntologyRelationship_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class DiseaseOntology(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.DiseaseOntology"

    EVSId = ProxyAttr('EVSId')
    bigid = ProxyAttr('bigid')
    id = ProxyAttr('id')
    name = ProxyAttr('name')
    childDiseaseOntologyRelationshipCollection = ProxyAssoc('childDiseaseOntologyRelationshipCollection',True)
    clinicalTrialProtocolCollection = ProxyAssoc('clinicalTrialProtocolCollection',True)
    geneFunctionAssociationCollection = ProxyAssoc('geneFunctionAssociationCollection',True)
    histopathologyCollection = ProxyAssoc('histopathologyCollection',True)
    parentDiseaseOntologyRelationshipCollection = ProxyAssoc('parentDiseaseOntologyRelationshipCollection',True)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.DiseaseOntology_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class EvidenceCode(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.EvidenceCode"

    bigid = ProxyAttr('bigid')
    evidenceCode = ProxyAttr('evidenceCode')
    id = ProxyAttr('id')
    evidenceCollection = ProxyAssoc('evidenceCollection',True)
    interactionCollection = ProxyAssoc('interactionCollection',True)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.EvidenceCode_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class Evidence(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.Evidence"

    bigid = ProxyAttr('bigid')
    celllineStatus = ProxyAttr('celllineStatus')
    comments = ProxyAttr('comments')
    id = ProxyAttr('id')
    negationStatus = ProxyAttr('negationStatus')
    pubmedId = ProxyAttr('pubmedId')
    sentence = ProxyAttr('sentence')
    sentenceStatus = ProxyAttr('sentenceStatus')
    evidenceCodeCollection = ProxyAssoc('evidenceCodeCollection',True)
    geneFunctionAssociationCollection = ProxyAssoc('geneFunctionAssociationCollection',True)
    interactionCollection = ProxyAssoc('interactionCollection',True)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.Evidence_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class ExonArrayReporter(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.ExonArrayReporter"

    bigid = ProxyAttr('bigid')
    id = ProxyAttr('id')
    name = ProxyAttr('name')
    probeCount = ProxyAttr('probeCount')
    probeSelectionRegionId = ProxyAttr('probeSelectionRegionId')
    strand = ProxyAttr('strand')
    cytogeneticLocationCollection = ProxyAssoc('cytogeneticLocationCollection',True)
    microarray = ProxyAssoc('microarray',False)
    physicalLocationCollection = ProxyAssoc('physicalLocationCollection',True)
    exon = ProxyAssoc('exon',False)
    geneCollection = ProxyAssoc('geneCollection',True)
    transcript = ProxyAssoc('transcript',False)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.ExonArrayReporter_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class Exon(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.Exon"

    bigid = ProxyAttr('bigid')
    id = ProxyAttr('id')
    source = ProxyAttr('source')
    sourceId = ProxyAttr('sourceId')
    exonArrayReporterCollection = ProxyAssoc('exonArrayReporterCollection',True)
    transcript = ProxyAssoc('transcript',False)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.Exon_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class ExpressedSequenceTag(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.ExpressedSequenceTag"

    accessionNumber = ProxyAttr('accessionNumber')
    accessionNumberVersion = ProxyAttr('accessionNumberVersion')
    bigid = ProxyAttr('bigid')
    description = ProxyAttr('description')
    id = ProxyAttr('id')
    length = ProxyAttr('length')
    type = ProxyAttr('type')
    value = ProxyAttr('value')
    cloneRelativeLocation = ProxyAssoc('cloneRelativeLocation',False)
    databaseCrossReferenceCollection = ProxyAssoc('databaseCrossReferenceCollection',True)
    expressionArrayReporterCollection = ProxyAssoc('expressionArrayReporterCollection',True)
    geneCollection = ProxyAssoc('geneCollection',True)
    pathwayEntityCollection = ProxyAssoc('pathwayEntityCollection',True)
    physicalLocationCollection = ProxyAssoc('physicalLocationCollection',True)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.ExpressedSequenceTag_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class ExpressionArrayReporter(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.ExpressionArrayReporter"

    bigid = ProxyAttr('bigid')
    id = ProxyAttr('id')
    name = ProxyAttr('name')
    sequenceSource = ProxyAttr('sequenceSource')
    sequenceType = ProxyAttr('sequenceType')
    targetDescription = ProxyAttr('targetDescription')
    targetId = ProxyAttr('targetId')
    cytogeneticLocationCollection = ProxyAssoc('cytogeneticLocationCollection',True)
    microarray = ProxyAssoc('microarray',False)
    physicalLocationCollection = ProxyAssoc('physicalLocationCollection',True)
    gene = ProxyAssoc('gene',False)
    nucleicAcidSequence = ProxyAssoc('nucleicAcidSequence',False)
    proteinDomainCollection = ProxyAssoc('proteinDomainCollection',True)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.ExpressionArrayReporter_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class GeneAgentAssociation(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.GeneAgentAssociation"

    bigid = ProxyAttr('bigid')
    id = ProxyAttr('id')
    role = ProxyAttr('role')
    source = ProxyAttr('source')
    evidenceCollection = ProxyAssoc('evidenceCollection',True)
    gene = ProxyAssoc('gene',False)
    agent = ProxyAssoc('agent',False)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.GeneAgentAssociation_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class GeneAlias(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.GeneAlias"

    bigid = ProxyAttr('bigid')
    id = ProxyAttr('id')
    name = ProxyAttr('name')
    type = ProxyAttr('type')
    geneCollection = ProxyAssoc('geneCollection',True)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.GeneAlias_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class GeneCytogeneticLocation(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.GeneCytogeneticLocation"

    id = ProxyAttr('id')
    bigid = ProxyAttr('bigid')
    chromosome = ProxyAssoc('chromosome',False)
    endCytoband = ProxyAssoc('endCytoband',False)
    startCytoband = ProxyAssoc('startCytoband',False)
    gene = ProxyAssoc('gene',False)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.GeneCytogeneticLocation_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class GeneDiseaseAssociation(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.GeneDiseaseAssociation"

    bigid = ProxyAttr('bigid')
    id = ProxyAttr('id')
    role = ProxyAttr('role')
    source = ProxyAttr('source')
    evidenceCollection = ProxyAssoc('evidenceCollection',True)
    gene = ProxyAssoc('gene',False)
    diseaseOntology = ProxyAssoc('diseaseOntology',False)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.GeneDiseaseAssociation_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class GeneFunctionAssociation(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.GeneFunctionAssociation"

    bigid = ProxyAttr('bigid')
    id = ProxyAttr('id')
    role = ProxyAttr('role')
    source = ProxyAttr('source')
    evidenceCollection = ProxyAssoc('evidenceCollection',True)
    gene = ProxyAssoc('gene',False)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.GeneFunctionAssociation_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class GeneOntologyRelationship(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.GeneOntologyRelationship"

    bigid = ProxyAttr('bigid')
    id = ProxyAttr('id')
    relationshipType = ProxyAttr('relationshipType')
    childGeneOntology = ProxyAssoc('childGeneOntology',False)
    parentGeneOntology = ProxyAssoc('parentGeneOntology',False)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.GeneOntologyRelationship_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class GeneOntology(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.GeneOntology"

    bigid = ProxyAttr('bigid')
    id = ProxyAttr('id')
    name = ProxyAttr('name')
    childGeneOntologyRelationshipCollection = ProxyAssoc('childGeneOntologyRelationshipCollection',True)
    geneCollection = ProxyAssoc('geneCollection',True)
    parentGeneOntologyRelationshipCollection = ProxyAssoc('parentGeneOntologyRelationshipCollection',True)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.GeneOntology_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class GenePhysicalLocation(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.GenePhysicalLocation"

    id = ProxyAttr('id')
    assembly = ProxyAttr('assembly')
    chromosomalEndPosition = ProxyAttr('chromosomalEndPosition')
    chromosomalStartPosition = ProxyAttr('chromosomalStartPosition')
    featureType = ProxyAttr('featureType')
    chromosome = ProxyAssoc('chromosome',False)
    gene = ProxyAssoc('gene',False)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.GenePhysicalLocation_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class GeneRelativeLocation(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.GeneRelativeLocation"

    bigid = ProxyAttr('bigid')
    distance = ProxyAttr('distance')
    id = ProxyAttr('id')
    orientation = ProxyAttr('orientation')
    SNP = ProxyAssoc('SNP',False)
    gene = ProxyAssoc('gene',False)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.GeneRelativeLocation_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class Gene(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.Gene"

    bigid = ProxyAttr('bigid')
    clusterId = ProxyAttr('clusterId')
    fullName = ProxyAttr('fullName')
    hugoSymbol = ProxyAttr('hugoSymbol')
    id = ProxyAttr('id')
    symbol = ProxyAttr('symbol')
    chromosome = ProxyAssoc('chromosome',False)
    cytogeneticLocationCollection = ProxyAssoc('cytogeneticLocationCollection',True)
    databaseCrossReferenceCollection = ProxyAssoc('databaseCrossReferenceCollection',True)
    exonArrayReporterCollection = ProxyAssoc('exonArrayReporterCollection',True)
    expressionArrayReporterCollection = ProxyAssoc('expressionArrayReporterCollection',True)
    geneAliasCollection = ProxyAssoc('geneAliasCollection',True)
    geneFunctionAssociationCollection = ProxyAssoc('geneFunctionAssociationCollection',True)
    geneOntologyCollection = ProxyAssoc('geneOntologyCollection',True)
    geneRelativeLocationCollection = ProxyAssoc('geneRelativeLocationCollection',True)
    histopathologyCollection = ProxyAssoc('histopathologyCollection',True)
    homologousAssociationCollection = ProxyAssoc('homologousAssociationCollection',True)
    libraryCollection = ProxyAssoc('libraryCollection',True)
    markerCollection = ProxyAssoc('markerCollection',True)
    nucleicAcidSequenceCollection = ProxyAssoc('nucleicAcidSequenceCollection',True)
    organOntologyCollection = ProxyAssoc('organOntologyCollection',True)
    pathwayCollection = ProxyAssoc('pathwayCollection',True)
    physicalLocationCollection = ProxyAssoc('physicalLocationCollection',True)
    proteinCollection = ProxyAssoc('proteinCollection',True)
    targetCollection = ProxyAssoc('targetCollection',True)
    taxon = ProxyAssoc('taxon',False)
    transcriptCollection = ProxyAssoc('transcriptCollection',True)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.Gene_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class Histopathology(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.Histopathology"

    ageOfOnset = ProxyAttr('ageOfOnset')
    comments = ProxyAttr('comments')
    grossDescription = ProxyAttr('grossDescription')
    id = ProxyAttr('id')
    microscopicDescription = ProxyAttr('microscopicDescription')
    relationalOperation = ProxyAttr('relationalOperation')
    survivalInfo = ProxyAttr('survivalInfo')
    tumorIncidenceRate = ProxyAttr('tumorIncidenceRate')
    anomalyCollection = ProxyAssoc('anomalyCollection',True)
    clinicalTrialProtocolCollection = ProxyAssoc('clinicalTrialProtocolCollection',True)
    diseaseOntology = ProxyAssoc('diseaseOntology',False)
    geneCollection = ProxyAssoc('geneCollection',True)
    libraryCollection = ProxyAssoc('libraryCollection',True)
    metastasisCollection = ProxyAssoc('metastasisCollection',True)
    organOntology = ProxyAssoc('organOntology',False)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.Histopathology_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class HomologousAssociation(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.HomologousAssociation"

    bigid = ProxyAttr('bigid')
    id = ProxyAttr('id')
    similarityPercentage = ProxyAttr('similarityPercentage')
    gene = ProxyAssoc('gene',False)
    homologousGene = ProxyAssoc('homologousGene',False)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.HomologousAssociation_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class Library(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.Library"

    bigid = ProxyAttr('bigid')
    cloneProducer = ProxyAttr('cloneProducer')
    cloneVector = ProxyAttr('cloneVector')
    cloneVectorType = ProxyAttr('cloneVectorType')
    clonesToDate = ProxyAttr('clonesToDate')
    creationDate = ProxyAttr('creationDate')
    description = ProxyAttr('description')
    id = ProxyAttr('id')
    keyword = ProxyAttr('keyword')
    labHost = ProxyAttr('labHost')
    name = ProxyAttr('name')
    rsite1 = ProxyAttr('rsite1')
    rsite2 = ProxyAttr('rsite2')
    sequencesToDate = ProxyAttr('sequencesToDate')
    type = ProxyAttr('type')
    uniGeneId = ProxyAttr('uniGeneId')
    cloneCollection = ProxyAssoc('cloneCollection',True)
    geneCollection = ProxyAssoc('geneCollection',True)
    histopathologyCollection = ProxyAssoc('histopathologyCollection',True)
    protocol = ProxyAssoc('protocol',False)
    tissue = ProxyAssoc('tissue',False)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.Library_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class Location(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.Location"

    id = ProxyAttr('id')
    chromosome = ProxyAssoc('chromosome',False)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.Location_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class MarkerAlias(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.MarkerAlias"

    bigid = ProxyAttr('bigid')
    id = ProxyAttr('id')
    name = ProxyAttr('name')
    markerCollection = ProxyAssoc('markerCollection',True)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.MarkerAlias_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class MarkerPhysicalLocation(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.MarkerPhysicalLocation"

    id = ProxyAttr('id')
    assembly = ProxyAttr('assembly')
    chromosomalEndPosition = ProxyAttr('chromosomalEndPosition')
    chromosomalStartPosition = ProxyAttr('chromosomalStartPosition')
    chromosome = ProxyAssoc('chromosome',False)
    marker = ProxyAssoc('marker',False)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.MarkerPhysicalLocation_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class MarkerRelativeLocation(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.MarkerRelativeLocation"

    bigid = ProxyAttr('bigid')
    distance = ProxyAttr('distance')
    id = ProxyAttr('id')
    orientation = ProxyAttr('orientation')
    type = ProxyAttr('type')
    SNP = ProxyAssoc('SNP',False)
    markerCollection = ProxyAssoc('markerCollection',True)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.MarkerRelativeLocation_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class Marker(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.Marker"

    bigid = ProxyAttr('bigid')
    geneticMarkerId = ProxyAttr('geneticMarkerId')
    id = ProxyAttr('id')
    name = ProxyAttr('name')
    type = ProxyAttr('type')
    geneCollection = ProxyAssoc('geneCollection',True)
    markerAliasCollection = ProxyAssoc('markerAliasCollection',True)
    markerRelativeLocationCollection = ProxyAssoc('markerRelativeLocationCollection',True)
    physicalLocationCollection = ProxyAssoc('physicalLocationCollection',True)
    taxon = ProxyAssoc('taxon',False)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.Marker_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class MessengerRNA(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.MessengerRNA"

    accessionNumber = ProxyAttr('accessionNumber')
    accessionNumberVersion = ProxyAttr('accessionNumberVersion')
    bigid = ProxyAttr('bigid')
    description = ProxyAttr('description')
    id = ProxyAttr('id')
    length = ProxyAttr('length')
    type = ProxyAttr('type')
    value = ProxyAttr('value')
    cloneRelativeLocation = ProxyAssoc('cloneRelativeLocation',False)
    databaseCrossReferenceCollection = ProxyAssoc('databaseCrossReferenceCollection',True)
    expressionArrayReporterCollection = ProxyAssoc('expressionArrayReporterCollection',True)
    geneCollection = ProxyAssoc('geneCollection',True)
    pathwayEntityCollection = ProxyAssoc('pathwayEntityCollection',True)
    physicalLocationCollection = ProxyAssoc('physicalLocationCollection',True)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.MessengerRNA_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class Microarray(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.Microarray"

    LSID = ProxyAttr('LSID')
    annotationDate = ProxyAttr('annotationDate')
    annotationVersion = ProxyAttr('annotationVersion')
    bigid = ProxyAttr('bigid')
    dbSNPVersion = ProxyAttr('dbSNPVersion')
    description = ProxyAttr('description')
    genomeVersion = ProxyAttr('genomeVersion')
    id = ProxyAttr('id')
    manufacturer = ProxyAttr('manufacturer')
    name = ProxyAttr('name')
    type = ProxyAttr('type')
    arrayReporterCollection = ProxyAssoc('arrayReporterCollection',True)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.Microarray_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class MultipleAlignment(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.MultipleAlignment"

    id = ProxyAttr('id')
    name = ProxyAttr('name')
    source = ProxyAttr('source')
    type = ProxyAttr('type')
    conservedPhysicalLocationCollection = ProxyAssoc('conservedPhysicalLocationCollection',True)
    taxonCollection = ProxyAssoc('taxonCollection',True)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.MultipleAlignment_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class NucleicAcidPhysicalLocation(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.NucleicAcidPhysicalLocation"

    id = ProxyAttr('id')
    assembly = ProxyAttr('assembly')
    chromosomalEndPosition = ProxyAttr('chromosomalEndPosition')
    chromosomalStartPosition = ProxyAttr('chromosomalStartPosition')
    chromosome = ProxyAssoc('chromosome',False)
    nucleicAcidSequence = ProxyAssoc('nucleicAcidSequence',False)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.NucleicAcidPhysicalLocation_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class NucleicAcidSequence(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.NucleicAcidSequence"

    accessionNumber = ProxyAttr('accessionNumber')
    accessionNumberVersion = ProxyAttr('accessionNumberVersion')
    bigid = ProxyAttr('bigid')
    description = ProxyAttr('description')
    id = ProxyAttr('id')
    length = ProxyAttr('length')
    type = ProxyAttr('type')
    value = ProxyAttr('value')
    cloneRelativeLocation = ProxyAssoc('cloneRelativeLocation',False)
    databaseCrossReferenceCollection = ProxyAssoc('databaseCrossReferenceCollection',True)
    expressionArrayReporterCollection = ProxyAssoc('expressionArrayReporterCollection',True)
    geneCollection = ProxyAssoc('geneCollection',True)
    pathwayEntityCollection = ProxyAssoc('pathwayEntityCollection',True)
    physicalLocationCollection = ProxyAssoc('physicalLocationCollection',True)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.NucleicAcidSequence_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class OrganOntologyRelationship(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.OrganOntologyRelationship"

    bigid = ProxyAttr('bigid')
    id = ProxyAttr('id')
    type = ProxyAttr('type')
    childOrganOntology = ProxyAssoc('childOrganOntology',False)
    parentOrganOntology = ProxyAssoc('parentOrganOntology',False)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.OrganOntologyRelationship_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class OrganOntology(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.OrganOntology"

    bigid = ProxyAttr('bigid')
    id = ProxyAttr('id')
    name = ProxyAttr('name')
    anomalyCollection = ProxyAssoc('anomalyCollection',True)
    childOrganOntologyRelationshipCollection = ProxyAssoc('childOrganOntologyRelationshipCollection',True)
    geneCollection = ProxyAssoc('geneCollection',True)
    histopathologyCollection = ProxyAssoc('histopathologyCollection',True)
    parentOrganOntologyRelationshipCollection = ProxyAssoc('parentOrganOntologyRelationshipCollection',True)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.OrganOntology_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class Pathway(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.Pathway"

    bigid = ProxyAttr('bigid')
    curator = ProxyAttr('curator')
    description = ProxyAttr('description')
    diagram = ProxyAttr('diagram')
    displayValue = ProxyAttr('displayValue')
    id = ProxyAttr('id')
    name = ProxyAttr('name')
    reviewer = ProxyAttr('reviewer')
    source = ProxyAttr('source')
    geneCollection = ProxyAssoc('geneCollection',True)
    histopathologyCollection = ProxyAssoc('histopathologyCollection',True)
    interactionCollection = ProxyAssoc('interactionCollection',True)
    pathwayReferenceCollection = ProxyAssoc('pathwayReferenceCollection',True)
    taxon = ProxyAssoc('taxon',False)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.Pathway_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class PhysicalLocation(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.PhysicalLocation"

    id = ProxyAttr('id')
    assembly = ProxyAttr('assembly')
    chromosomalEndPosition = ProxyAttr('chromosomalEndPosition')
    chromosomalStartPosition = ProxyAttr('chromosomalStartPosition')
    chromosome = ProxyAssoc('chromosome',False)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.PhysicalLocation_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class PopulationFrequency(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.PopulationFrequency"

    bigid = ProxyAttr('bigid')
    ethnicity = ProxyAttr('ethnicity')
    heterozygousFrequency = ProxyAttr('heterozygousFrequency')
    id = ProxyAttr('id')
    majorAllele = ProxyAttr('majorAllele')
    majorFrequency = ProxyAttr('majorFrequency')
    minorAllele = ProxyAttr('minorAllele')
    minorFrequency = ProxyAttr('minorFrequency')
    type = ProxyAttr('type')
    SNP = ProxyAssoc('SNP',False)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.PopulationFrequency_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class ProteinAlias(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.ProteinAlias"

    bigid = ProxyAttr('bigid')
    id = ProxyAttr('id')
    name = ProxyAttr('name')
    proteinCollection = ProxyAssoc('proteinCollection',True)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.ProteinAlias_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class ProteinDomain(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.ProteinDomain"

    accessionNumber = ProxyAttr('accessionNumber')
    bigid = ProxyAttr('bigid')
    description = ProxyAttr('description')
    id = ProxyAttr('id')
    source = ProxyAttr('source')
    expressionArrayReporterCollection = ProxyAssoc('expressionArrayReporterCollection',True)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.ProteinDomain_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class ProteinSequence(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.ProteinSequence"

    bigid = ProxyAttr('bigid')
    checkSum = ProxyAttr('checkSum')
    id = ProxyAttr('id')
    length = ProxyAttr('length')
    molecularWeightInDaltons = ProxyAttr('molecularWeightInDaltons')
    value = ProxyAttr('value')
    protein = ProxyAssoc('protein',False)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.ProteinSequence_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class Protein(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.Protein"

    bigid = ProxyAttr('bigid')
    copyrightStatement = ProxyAttr('copyrightStatement')
    id = ProxyAttr('id')
    name = ProxyAttr('name')
    primaryAccession = ProxyAttr('primaryAccession')
    uniProtCode = ProxyAttr('uniProtCode')
    geneCollection = ProxyAssoc('geneCollection',True)
    keywords = ProxyAssoc('keywords',True)
    pathwayEntityCollection = ProxyAssoc('pathwayEntityCollection',True)
    proteinAliasCollection = ProxyAssoc('proteinAliasCollection',True)
    proteinSequenceCollection = ProxyAssoc('proteinSequenceCollection',True)
    secondaryAccession = ProxyAssoc('secondaryAccession',True)
    taxonCollection = ProxyAssoc('taxonCollection',True)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.Protein_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class ProtocolAssociation(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.ProtocolAssociation"

    CTEPNAME = ProxyAttr('CTEPNAME')
    IMTCODE = ProxyAttr('IMTCODE')
    bigid = ProxyAttr('bigid')
    diseaseCategory = ProxyAttr('diseaseCategory')
    diseaseSubCategory = ProxyAttr('diseaseSubCategory')
    id = ProxyAttr('id')
    clinicalTrialProtocol = ProxyAssoc('clinicalTrialProtocol',False)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.ProtocolAssociation_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class Protocol(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.Protocol"

    bigid = ProxyAttr('bigid')
    description = ProxyAttr('description')
    id = ProxyAttr('id')
    name = ProxyAttr('name')
    type = ProxyAttr('type')
    libraryCollection = ProxyAssoc('libraryCollection',True)
    tissueCollection = ProxyAssoc('tissueCollection',True)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.Protocol_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class RelativeLocation(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.RelativeLocation"

    bigid = ProxyAttr('bigid')
    distance = ProxyAttr('distance')
    id = ProxyAttr('id')
    orientation = ProxyAttr('orientation')
    SNP = ProxyAssoc('SNP',False)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.RelativeLocation_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class SNPArrayReporter(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.SNPArrayReporter"

    bigid = ProxyAttr('bigid')
    id = ProxyAttr('id')
    name = ProxyAttr('name')
    phastConservation = ProxyAttr('phastConservation')
    cytogeneticLocationCollection = ProxyAssoc('cytogeneticLocationCollection',True)
    microarray = ProxyAssoc('microarray',False)
    physicalLocationCollection = ProxyAssoc('physicalLocationCollection',True)
    SNP = ProxyAssoc('SNP',False)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.SNPArrayReporter_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class SNPCytogeneticLocation(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.SNPCytogeneticLocation"

    id = ProxyAttr('id')
    bigid = ProxyAttr('bigid')
    chromosome = ProxyAssoc('chromosome',False)
    endCytoband = ProxyAssoc('endCytoband',False)
    startCytoband = ProxyAssoc('startCytoband',False)
    SNP = ProxyAssoc('SNP',False)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.SNPCytogeneticLocation_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class SNPPhysicalLocation(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.SNPPhysicalLocation"

    id = ProxyAttr('id')
    assembly = ProxyAttr('assembly')
    chromosomalEndPosition = ProxyAttr('chromosomalEndPosition')
    chromosomalStartPosition = ProxyAttr('chromosomalStartPosition')
    chromosome = ProxyAssoc('chromosome',False)
    SNP = ProxyAssoc('SNP',False)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.SNPPhysicalLocation_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class SNP(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.SNP"

    DBSNPID = ProxyAttr('DBSNPID')
    alleleA = ProxyAttr('alleleA')
    alleleB = ProxyAttr('alleleB')
    aminoAcidChange = ProxyAttr('aminoAcidChange')
    bigid = ProxyAttr('bigid')
    chrXPseudoAutosomalRegion = ProxyAttr('chrXPseudoAutosomalRegion')
    codingStatus = ProxyAttr('codingStatus')
    flank = ProxyAttr('flank')
    id = ProxyAttr('id')
    validationStatus = ProxyAttr('validationStatus')
    cytogeneticLocationCollection = ProxyAssoc('cytogeneticLocationCollection',True)
    databaseCrossReferenceCollection = ProxyAssoc('databaseCrossReferenceCollection',True)
    physicalLocationCollection = ProxyAssoc('physicalLocationCollection',True)
    populationFrequencyCollection = ProxyAssoc('populationFrequencyCollection',True)
    relativeLocationCollection = ProxyAssoc('relativeLocationCollection',True)
    snpArrayReporterCollection = ProxyAssoc('snpArrayReporterCollection',True)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.SNP_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class Target(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.Target"

    bigid = ProxyAttr('bigid')
    id = ProxyAttr('id')
    name = ProxyAttr('name')
    type = ProxyAttr('type')
    agentCollection = ProxyAssoc('agentCollection',True)
    anomalyCollection = ProxyAssoc('anomalyCollection',True)
    geneCollection = ProxyAssoc('geneCollection',True)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.Target_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class Taxon(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.Taxon"

    abbreviation = ProxyAttr('abbreviation')
    bigid = ProxyAttr('bigid')
    commonName = ProxyAttr('commonName')
    ethnicityStrain = ProxyAttr('ethnicityStrain')
    id = ProxyAttr('id')
    scientificName = ProxyAttr('scientificName')
    chromosomeCollection = ProxyAssoc('chromosomeCollection',True)
    cloneCollection = ProxyAssoc('cloneCollection',True)
    geneCollection = ProxyAssoc('geneCollection',True)
    markerCollection = ProxyAssoc('markerCollection',True)
    multipleAlignmentCollection = ProxyAssoc('multipleAlignmentCollection',True)
    pathwayCollection = ProxyAssoc('pathwayCollection',True)
    proteinCollection = ProxyAssoc('proteinCollection',True)
    tissueCollection = ProxyAssoc('tissueCollection',True)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.Taxon_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class Tissue(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.Tissue"

    cellLine = ProxyAttr('cellLine')
    cellType = ProxyAttr('cellType')
    description = ProxyAttr('description')
    developmentalStage = ProxyAttr('developmentalStage')
    histology = ProxyAttr('histology')
    id = ProxyAttr('id')
    name = ProxyAttr('name')
    organ = ProxyAttr('organ')
    sex = ProxyAttr('sex')
    supplier = ProxyAttr('supplier')
    type = ProxyAttr('type')
    libraryCollection = ProxyAssoc('libraryCollection',True)
    protocol = ProxyAssoc('protocol',False)
    taxon = ProxyAssoc('taxon',False)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.Tissue_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class TranscriptArrayReporter(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.TranscriptArrayReporter"

    bigid = ProxyAttr('bigid')
    id = ProxyAttr('id')
    name = ProxyAttr('name')
    cytogeneticLocationCollection = ProxyAssoc('cytogeneticLocationCollection',True)
    microarray = ProxyAssoc('microarray',False)
    physicalLocationCollection = ProxyAssoc('physicalLocationCollection',True)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.TranscriptArrayReporter_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class TranscriptPhysicalLocation(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.TranscriptPhysicalLocation"

    id = ProxyAttr('id')
    assembly = ProxyAttr('assembly')
    chromosomalEndPosition = ProxyAttr('chromosomalEndPosition')
    chromosomalStartPosition = ProxyAttr('chromosomalStartPosition')
    chromosome = ProxyAssoc('chromosome',False)
    transcript = ProxyAssoc('transcript',False)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.TranscriptPhysicalLocation_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class Transcript(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.Transcript"

    bigid = ProxyAttr('bigid')
    id = ProxyAttr('id')
    source = ProxyAttr('source')
    sourceId = ProxyAttr('sourceId')
    strand = ProxyAttr('strand')
    totalProbeCount = ProxyAttr('totalProbeCount')
    exonArrayReporterCollection = ProxyAssoc('exonArrayReporterCollection',True)
    exonCollection = ProxyAssoc('exonCollection',True)
    geneCollection = ProxyAssoc('geneCollection',True)
    physicalLocationCollection = ProxyAssoc('physicalLocationCollection',True)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.Transcript_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)

class Vocabulary(WSBean):

    arrayType =  services.ns1.ArrayOf_xsd_anyType_Def(None).pyclass
    className = "gov.nih.nci.cabio.domain.Vocabulary"

    bigid = ProxyAttr('bigid')
    coreTerm = ProxyAttr('coreTerm')
    generalTerm = ProxyAttr('generalTerm')
    id = ProxyAttr('id')
    anomalyCollection = ProxyAssoc('anomalyCollection',True)

    def __init__(self, holder=None, service=None, **kwargs):
        if not(holder): holder = schema.Vocabulary_Def(None).pyclass()
        WSBean.__init__(self, holder, service=service, **kwargs)


text:
package org.apache.http.impl.nio.reactor;

import java.util.Date;

import org.junit.Assert;
import org.junit.Test;

public class ExceptionEventTest {

    @Test
    public void testGetCause() {
        final NullPointerException npe = new NullPointerException("npe");
        ExceptionEvent ee = new ExceptionEvent(npe);
        Assert.assertSame(npe, ee.getCause());
        ee = new ExceptionEvent(npe, new Date());
        Assert.assertSame(npe, ee.getCause());
    }

    @Test
    public void testGetTimestamp() {
        final NullPointerException npe = new NullPointerException("npe");
        ExceptionEvent ee = new ExceptionEvent(npe);
        Assert.assertNotNull(ee.getTimestamp());
        ee = new ExceptionEvent(npe, new Date(1234567890L));
        Assert.assertEquals(new Date(1234567890L), ee.getTimestamp());
    }

    @Test
    public void testToString() {
        Assert.assertNotNull(new ExceptionEvent(new NullPointerException()));
    }

}


text:
<!doctype html>

		<meta charset="utf-8" />
		<title>With MooTools</title>

		<link rel="stylesheet" href="../themes/default/default.css" />

使用MooTools

		<form>
			<textarea name="content" style="width:800px;height:200px;"></textarea>
		</form>


text:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<rss version="2.0">
    <channel>
        <title>Physics - Careers Seminar</title>
        <link>http://illinois.edu/calendar/list/4014</link>
        <description>Seminar series of career opportunities for Physics Undergrads and Grads</description>
    </channel>
</rss>


text:
<!DOCTYPE html>

		<title>three.js webgl - materials - car</title>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
		<link type="text/css" rel="stylesheet" href="main.css">

			three.js car materials

			Ferrari 458 Italia model by vicent091036

			<input id="body-color" type="color" value="#ff0000"></input>
Body
			<input id="details-color" type="color" value="#ffffff"></input>
Details
			<input id="glass-color" type="color" value="#ffffff"></input>
Glass


text:
//
//  SyncanoResponse_PermissionRoles.h
//  Syncano
//
//  Created by Syncano Inc. on 12/03/14.
//  Copyright (c) 2014 Syncano Inc. All rights reserved.
//

#import "SyncanoResponse.h"
#import "SyncanoObjects.h"

@interface SyncanoResponse_PermissionRoles_Get : SyncanoResponse
/**
 List of all permission roles of current instance.
 */
@property (strong)  NSArray *roles;
@end


text:
from django.forms import ValidationError
from django.forms.models import ModelForm
from django.contrib import admin
from sorl.thumbnail import get_thumbnail

from sorl.thumbnail.admin import AdminImageMixin

from django.utils.translation import ugettext as _

from realestate.listing.models import ListingImage, AttributeListing, Listing, Location, Agent, \
    Deal, Attribute
from realestate.listing.templatetags.extra_functions import currency
from realestate.listing.utils import validate_attribute_value, \
    copy_model_instance, import_validator

class ImageAdmin(admin.ModelAdmin):
    def friendly_title(self, obj):
        return obj.name

    def image_miniatura(self, obj):
        image = get_thumbnail(obj.image, '75x50', crop='center', quality=99)
        if image is not None:
            return '' % image.url
        return _('Image not Available')

    image_miniatura.short_description = _(u'Image')
    image_miniatura.allow_tags = True
    friendly_title.short_description = _(u'Image title')

    list_display = ('listing', 'image_miniatura', 'friendly_title', 'order')
    search_fields = ['listing', 'title']
    date_hierarchy = 'added'

def clean_attribute_value(cleaned_data):
    value = cleaned_data['value']
    attribute = cleaned_data['attribute']
    obj = cleaned_data['listing']
    success, valid_value, error_message = validate_attribute_value(attribute,
                                                                   value, obj)

    if not success:
        raise ValidationError(error_message)
    return valid_value

class ImageListingInline(AdminImageMixin, admin.TabularInline):
    model = ListingImage

class AttributeListingInlineForm(ModelForm):
    def clean_value(self):
        return clean_attribute_value(self.cleaned_data)

class AttributeListingInline(admin.TabularInline):
    model = AttributeListing
    form = AttributeListingInlineForm

class ListingAdmin(admin.ModelAdmin):
    change_form_template = "admin/realestate/listing/change_form.html"
    fieldsets = [
        (_(u'Listing Description'),
         {
             'fields': [
                 'title', 'description', 'price', ('baths', 'beds', 'size'),
                 'location', 'type', 'offer', 'active', 'featured',
             ]
         }
         ),
        (_('Contact Info'),
         {
             'fields': [
                 'agent', 'contact', 'notes', 'coords',
             ]
         }
         )
    ]

    inlines = [AttributeListingInline, ImageListingInline, ]

    list_display = (
        'id', 'title', 'slug', 'currency_price', 'active', 'type', 'location',
        'agent', 'created_at', 'featured', 'thumb_nail'
    )

    actions = ['duplicate_listing', ]

    def currency_price(self, listing):
        return currency(listing.price)

    currency_price.short_description = _(u'Price')

    list_display_links = ('id', 'title')
    search_fields = ['title', 'location']
    list_filter = ['created_at', 'agent', 'title', 'active', ]
    date_hierarchy = 'created_at'

    def thumb_nail(self, obj):
        imageobj = obj.main_image
        if imageobj:
            image = get_thumbnail(imageobj.image, '75x50', quality=99)
            if image is not None:
                return '' % image.url
        return _(u'No image')

    thumb_nail.short_description = _(u'Image')
    thumb_nail.allow_tags = True

    def duplicate_listing(self, request, queryset):
        for listing in queryset:
            new_listing = copy_model_instance(listing)
            new_listing.save()
            for attr in listing.attributelisting_set.all():
                new_attr = copy_model_instance(attr)
                new_attr.listing = new_listing
                new_attr.save()
            for image in listing.images.all():
                new_image = copy_model_instance(image)
                new_image.listing = new_listing
                new_image.save()

    class Media:
        js = ('js/admin/propiedades.js',)

class DealsAdmin(admin.ModelAdmin):
    list_display = ('listing', 'active', 'price', 'start_date', 'end_date')

class AgentAdmin(AdminImageMixin, admin.ModelAdmin):
    list_display = ('name', 'email', 'phone', 'mobile', 'photo',)

    def photo(self, obj):
        imageobj = obj.image
        if imageobj:
            image = get_thumbnail(imageobj, '133x100', quality=99)
            return '' % image.url
        else:
            return _(u'Please, add an image')

    photo.short_description = _(u'Image')
    photo.allow_tags = True

class AtributosForm(ModelForm):
    def clean_validation(self):
        validation = self.cleaned_data['validation']
        try:
            import_validator(validation)
        except ImportError:
            raise ValidationError(_("Invalid validation function specifed!"))
        return validation

class AttributesAdmin(admin.ModelAdmin):
    form = AtributosForm

class LocationAdmin(admin.ModelAdmin):
    list_display = ('name', 'parent', 'location_type')

admin.site.register(Listing, ListingAdmin)
admin.site.register(ListingImage, ImageAdmin)
admin.site.register(Location, LocationAdmin)
admin.site.register(Agent, AgentAdmin)
admin.site.register(Deal, DealsAdmin)
admin.site.register(Attribute, AttributesAdmin)