text:
<!--
  Copyright The Ohio State University Research Foundation, The University of Chicago -
Argonne National Laboratory, Emory University, SemanticBits LLC, and Ekagra Software Technologies Ltd.

  Distributed under the OSI-approved BSD 3-Clause License.
  See http://ncip.github.com/cagrid-core/LICENSE.txt for details.
-->
<ns1:ServiceDescription introduceVersion="1.4" xmlns:ns1="gme://gov.nih.nci.cagrid/1/Introduce">
 <ns2:Namespaces xsi:type="ns2:NamespacesType" xmlns:ns2="gme://gov.nih.nci.cagrid.introduce/1/Namespace" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ns2:Namespace generateStubs="false" location="./DelegatedCredentialTypes.xsd" namespace="http://cds.gaards.cagrid.org/CredentialDelegationService/DelegatedCredential/types" packageName="org.cagrid.gaards.cds.delegated.stubs.types" xsi:type="ns2:NamespaceType">
   <ns2:SchemaElement type="DelegatedCredentialReference" xsi:type="ns2:SchemaElementType"/>
  </ns2:Namespace>
  <ns2:Namespace generateStubs="false" location="./WS-BaseFaults.xsd" namespace="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-BaseFaults-1.2-draft-01.xsd" packageName="org.oasis.wsrf.faults" xsi:type="ns2:NamespaceType">
   <ns2:SchemaElement type="BaseFault" xsi:type="ns2:SchemaElementType"/>
  </ns2:Namespace>
  <ns2:Namespace location="./WorkflowManagementFactoryService.xsd" namespace="http://types.workflow.cagrid.nci.nih.gov/WorkflowManagementFactoryService" packageName="workflowmanagementfactoryservice" xsi:type="ns2:NamespaceType">
   <ns2:SchemaElement type="DetailedStatusOutputElement" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="StartInputElement" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="StatusOutputElement" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="WMSInputElement" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="WMSOutputElement" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="WorkflowOutputElement" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="WorkflowStatusElement" xsi:type="ns2:SchemaElementType"/>
  </ns2:Namespace>
  <ns2:Namespace location="./ws_2004_03_addressing.xsd" namespace="http://schemas.xmlsoap.org/ws/2004/03/addressing" packageName="addressing" xsi:type="ns2:NamespaceType">
   <ns2:SchemaElement type="Action" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="EndpointReference" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="FaultTo" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="From" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="MessageID" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="RelatesTo" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="ReplyAfter" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="ReplyTo" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="To" xsi:type="ns2:SchemaElementType"/>
  </ns2:Namespace>
  <ns2:Namespace namespace="http://www.w3.org/2001/XMLSchema" xsi:type="ns2:NamespaceType">
   <ns2:SchemaElement type="anySimpleType" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="anyType" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="anyURI" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="base64Binary" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="boolean" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="byte" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="date" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="dateTime" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="decimal" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="double" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="duration" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="ENTITIES" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="ENTITY" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="float" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="gDay" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="gMonth" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="gMonthDay" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="gYear" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="gYearMonth" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="hexBinary" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="ID" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="IDREF" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="IDREFS" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="int" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="integer" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="language" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="long" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="Name" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="NCName" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="negativeInteger" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="NMTOKEN" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="NMTOKENS" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="nonNegativeInteger" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="nonPositiveInteger" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="normalizedString" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="NOTATION" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="positiveInteger" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="QName" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="short" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="string" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="time" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="token" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="unsignedByte" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="unsignedInt" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="unsignedLong" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="unsignedShort" xsi:type="ns2:SchemaElementType"/>
  </ns2:Namespace>
  <ns2:Namespace location="./TavernaWorkflowServiceTypes.xsd" namespace="http://factory.workflow.cagrid.nci.nih.gov/TavernaWorkflowService/types" packageName="gov.nih.nci.cagrid.workflow.factory.stubs.types" xsi:type="ns2:NamespaceType">
   <ns2:SchemaElement type="TavernaWorkflowServiceReference" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="UnableToRunWorkflowFault" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="WorkflowException" xsi:type="ns2:SchemaElementType"/>
  </ns2:Namespace>
  <ns2:Namespace generateStubs="false" location="./xsd/cagrid/types/security/security.xsd" namespace="gme://caGrid.caBIG/1.0/gov.nih.nci.cagrid.metadata.security" packageName="gov.nih.nci.cagrid.metadata.security" xsi:type="ns2:NamespaceType">
   <ns2:SchemaElement type="CommunicationMechanism" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="CommunicationStyle" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="GSISecureConversation" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="GSISecureMessage" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="GSITransport" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="None" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="Operation" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="ServiceSecurityMetadata" xsi:type="ns2:SchemaElementType"/>
  </ns2:Namespace>
  <ns2:Namespace location="./TavernaWorkflowServiceImplTypes.xsd" namespace="http://service.workflow.cagrid.nci.nih.gov/TavernaWorkflowService/ServiceImpl/types" packageName="gov.nih.nci.cagrid.workflow.service.impl.stubs.types" xsi:type="ns2:NamespaceType">
   <ns2:SchemaElement type="CannotCancelWorkflowFault" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="CannotPauseWorkflowFault" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="CannotResumeWorkflowFault" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="CannotSetCredential" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="CannotStartWorkflowFault" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="TavernaWorkflowServiceImplReference" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="WorkflowException" xsi:type="ns2:SchemaElementType"/>
  </ns2:Namespace>
  <ns2:Namespace location="../wsrf/lifetime/WS-ResourceLifetime.xsd" namespace="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.xsd" packageName="org.oasis.wsrf.lifetime" xsi:type="ns2:NamespaceType">
   <ns2:SchemaElement type="CurrentTime" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="TerminationNotification" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="TerminationTime" xsi:type="ns2:SchemaElementType"/>
  </ns2:Namespace>
  <ns2:Namespace generateStubs="false" location="./xsd/cagrid/types/caGridMetadata.xsd" namespace="gme://caGrid.caBIG/1.0/gov.nih.nci.cagrid.metadata" packageName="gov.nih.nci.cagrid.metadata" xsi:type="ns2:NamespaceType">
   <ns2:SchemaElement type="ServiceMetadata" xsi:type="ns2:SchemaElementType"/>
  </ns2:Namespace>
  <ns2:Namespace generateStubs="false" location="./xsd/cagrid/types/service/servicemodel.xsd" namespace="gme://caGrid.caBIG/1.0/gov.nih.nci.cagrid.metadata.service" packageName="gov.nih.nci.cagrid.metadata.service" xsi:type="ns2:NamespaceType">
   <ns2:SchemaElement type="CaDSRRegistration" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="ContextProperty" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="Fault" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="InputParameter" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="Operation" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="Output" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="Service" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="ServiceContext" xsi:type="ns2:SchemaElementType"/>
  </ns2:Namespace>
  <ns2:Namespace generateStubs="false" location="./xsd/cagrid/types/common/common.xsd" namespace="gme://caGrid.caBIG/1.0/gov.nih.nci.cagrid.metadata.common" packageName="gov.nih.nci.cagrid.metadata.common" xsi:type="ns2:NamespaceType">
   <ns2:SchemaElement type="Address" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="Enumeration" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="PointOfContact" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="ResearchCenter" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="ResearchCenterDescription" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="SemanticMetadata" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="UMLAttribute" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="UMLClass" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="ValueDomain" xsi:type="ns2:SchemaElementType"/>
  </ns2:Namespace>
  <ns2:Namespace generateStubs="false" location="./TransferServiceContextTypes.xsd" namespace="http://transfer.cagrid.org/TransferService/Context/types" packageName="org.cagrid.transfer.context.stubs.types" xsi:type="ns2:NamespaceType">
   <ns2:SchemaElement type="TransferServiceContextReference" xsi:type="ns2:SchemaElementType"/>
  </ns2:Namespace>
  <ns2:Namespace generateStubs="false" location="./caGrid_Transfer.xsd" namespace="http://transfer.cagrid.org/Transfer" packageName="org.cagrid.transfer.descriptor" xsi:type="ns2:NamespaceType">
   <ns2:SchemaElement type="DataDescriptor" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="DataStorageDescriptor" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="DataTransferDescriptor" xsi:type="ns2:SchemaElementType"/>
   <ns2:SchemaElement type="Status" xsi:type="ns2:SchemaElementType"/>
  </ns2:Namespace>
 </ns2:Namespaces>
 <ns3:Services xsi:type="ns3:ServicesType" xmlns:ns3="gme://gov.nih.nci.cagrid.introduce/1/Services" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ns3:Service name="TavernaWorkflowService" namespace="http://factory.workflow.cagrid.nci.nih.gov/TavernaWorkflowService" packageName="gov.nih.nci.cagrid.workflow.factory" xsi:type="ns3:ServiceType">
   <ns4:Methods xsi:type="ns4:MethodsType" xmlns:ns4="gme://gov.nih.nci.cagrid.introduce/1/Methods">
    <ns4:Method isImported="true" isProvided="true" name="getServiceSecurityMetadata" xsi:type="ns4:MethodType">
     <ns4:Output qName="ns5:ServiceSecurityMetadata" isArray="false" isClientHandle="false" xmlns:ns5="gme://caGrid.caBIG/1.0/gov.nih.nci.cagrid.metadata.security"/>
     <ns6:MethodSecurity xsi:type="ns6:MethodSecurity" xmlns:ns6="gme://gov.nih.nci.cagrid.introduce/1/Security">
      <ns6:SecuritySetting xsi:type="ns6:SecuritySetting">None</ns6:SecuritySetting>
      <ns6:MethodAuthorization xsi:type="ns6:MethodAuthorization">
       <ns6:NoAuthorization xsi:type="ns6:NoAuthorization"/>
      </ns6:MethodAuthorization>
     </ns6:MethodSecurity>
     <ns4:ImportInformation namespace="http://security.introduce.cagrid.nci.nih.gov/ServiceSecurity" packageName="gov.nih.nci.cagrid.introduce.security.stubs" portTypeName="ServiceSecurityPortType" wsdlFile="ServiceSecurity.wsdl"/>
     <ns4:ProviderInformation providerClass="gov.nih.nci.cagrid.introduce.security.service.globus.ServiceSecurityProviderImpl"/>
    </ns4:Method>
    <ns4:Method description="Creates a resource to handle a workflow for a given scufl document." isImported="false" isProvided="false" name="createWorkflow" xsi:type="ns4:MethodType">
     <ns4:Inputs>
      <ns4:Input qName="ns7:WMSInputElement" description="" isArray="false" name="wMSInputElement" xmlns:ns7="http://types.workflow.cagrid.nci.nih.gov/WorkflowManagementFactoryService"/>
     </ns4:Inputs>
     <ns4:Output qName="ns8:WMSOutputElement" description="" isArray="false" xmlns:ns8="http://types.workflow.cagrid.nci.nih.gov/WorkflowManagementFactoryService"/>
     <ns4:Exceptions>
      <ns4:Exception description="" name="WorkflowException" qname="ns9:WorkflowException" xmlns:ns9="http://factory.workflow.cagrid.nci.nih.gov/TavernaWorkflowService/types"/>
     </ns4:Exceptions>
    </ns4:Method>
    <ns4:Method isImported="true" isProvided="true" name="GetMultipleResourceProperties" xsi:type="ns4:MethodType">
     <ns4:Output qName="void" isArray="false"/>
     <ns10:MethodSecurity xsi:type="ns10:MethodSecurity" xmlns:ns10="gme://gov.nih.nci.cagrid.introduce/1/Security">
      <ns10:SecuritySetting xsi:type="ns10:SecuritySetting">None</ns10:SecuritySetting>
     </ns10:MethodSecurity>
     <ns4:ImportInformation fromIntroduce="false" inputMessage="ns11:GetMultipleResourcePropertiesRequest" namespace="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl" outputMessage="ns11:GetMultipleResourcePropertiesResponse" packageName="org.oasis.wsrf.properties" portTypeName="GetMultipleResourceProperties" wsdlFile="../wsrf/properties/WS-ResourceProperties.wsdl" xmlns:ns11="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl"/>
     <ns4:ProviderInformation providerClass="GetMRPProvider"/>
    </ns4:Method>
    <ns4:Method isImported="true" isProvided="true" name="GetResourceProperty" xsi:type="ns4:MethodType">
     <ns4:Output qName="void" isArray="false"/>
     <ns12:MethodSecurity xsi:type="ns12:MethodSecurity" xmlns:ns12="gme://gov.nih.nci.cagrid.introduce/1/Security">
      <ns12:SecuritySetting xsi:type="ns12:SecuritySetting">None</ns12:SecuritySetting>
     </ns12:MethodSecurity>
     <ns4:ImportInformation fromIntroduce="false" inputMessage="ns13:GetResourcePropertyRequest" namespace="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl" outputMessage="ns13:GetResourcePropertyResponse" packageName="org.oasis.wsrf.properties" portTypeName="GetResourceProperty" wsdlFile="../wsrf/properties/WS-ResourceProperties.wsdl" xmlns:ns13="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl"/>
     <ns4:ProviderInformation providerClass="GetRPProvider"/>
    </ns4:Method>
    <ns4:Method isImported="true" isProvided="true" name="QueryResourceProperties" xsi:type="ns4:MethodType">
     <ns4:Output qName="void" isArray="false"/>
     <ns14:MethodSecurity xsi:type="ns14:MethodSecurity" xmlns:ns14="gme://gov.nih.nci.cagrid.introduce/1/Security">
      <ns14:SecuritySetting xsi:type="ns14:SecuritySetting">None</ns14:SecuritySetting>
     </ns14:MethodSecurity>
     <ns4:ImportInformation fromIntroduce="false" inputMessage="ns15:QueryResourcePropertiesRequest" namespace="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl" outputMessage="ns15:QueryResourcePropertiesResponse" packageName="org.oasis.wsrf.properties" portTypeName="QueryResourceProperties" wsdlFile="../wsrf/properties/WS-ResourceProperties.wsdl" xmlns:ns15="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl"/>
     <ns4:ProviderInformation providerClass="QueryRPProvider"/>
    </ns4:Method>
   </ns4:Methods>
   <ns16:ResourcePropertiesList xsi:type="ns16:ResourcePropertiesListType" xmlns:ns16="gme://gov.nih.nci.cagrid.introduce/1/Resources">
    <ns16:ResourceProperty qName="ns17:ServiceMetadata" fileLocation="serviceMetadata.xml" populateFromFile="true" register="true" xsi:type="ns16:ResourcePropertyType" xmlns:ns17="gme://caGrid.caBIG/1.0/gov.nih.nci.cagrid.metadata"/>
   </ns16:ResourcePropertiesList>
   <ns3:description xsi:type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"></ns3:description>
   <ns3:ResourceFrameworkOptions xsi:type="ns3:ResourceFrameworkOptions">
    <ns3:Main xsi:type="ns3:Main"/>
    <ns3:Singleton xsi:type="ns3:Singleton"/>
    <ns3:Identifiable xsi:type="ns3:Identifiable"/>
    <ns3:Persistent xsi:type="ns3:Persistent"/>
    <ns3:ResourcePropertyManagement xsi:type="ns3:ResourcePropertyManagement"/>
   </ns3:ResourceFrameworkOptions>
  </ns3:Service>
  <ns3:Service name="TavernaWorkflowServiceImpl" namespace="http://service.workflow.cagrid.nci.nih.gov/TavernaWorkflowService/ServiceImpl" packageName="gov.nih.nci.cagrid.workflow.service.impl" xsi:type="ns3:ServiceType">
   <ns18:Methods xsi:type="ns18:MethodsType" xmlns:ns18="gme://gov.nih.nci.cagrid.introduce/1/Methods">
    <ns18:Method isImported="true" isProvided="true" name="getServiceSecurityMetadata" xsi:type="ns18:MethodType">
     <ns18:Output qName="ns19:ServiceSecurityMetadata" isArray="false" isClientHandle="false" xmlns:ns19="gme://caGrid.caBIG/1.0/gov.nih.nci.cagrid.metadata.security"/>
     <ns20:MethodSecurity xsi:type="ns20:MethodSecurity" xmlns:ns20="gme://gov.nih.nci.cagrid.introduce/1/Security">
      <ns20:SecuritySetting xsi:type="ns20:SecuritySetting">None</ns20:SecuritySetting>
      <ns20:MethodAuthorization xsi:type="ns20:MethodAuthorization">
       <ns20:NoAuthorization xsi:type="ns20:NoAuthorization"/>
      </ns20:MethodAuthorization>
     </ns20:MethodSecurity>
     <ns18:ImportInformation namespace="http://security.introduce.cagrid.nci.nih.gov/ServiceSecurity" packageName="gov.nih.nci.cagrid.introduce.security.stubs" portTypeName="ServiceSecurityPortType" wsdlFile="ServiceSecurity.wsdl"/>
     <ns18:ProviderInformation providerClass="gov.nih.nci.cagrid.introduce.security.service.globus.ServiceSecurityProviderImpl"/>
    </ns18:Method>
    <ns18:Method isImported="true" isProvided="true" name="Destroy" xsi:type="ns18:MethodType">
     <ns18:Output qName="void" isArray="false"/>
     <ns18:ImportInformation fromIntroduce="false" inputMessage="ns21:DestroyRequest" namespace="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.wsdl" outputMessage="ns21:DestroyResponse" packageName="org.oasis.wsrf.lifetime" portTypeName="ImmediateResourceTermination" wsdlFile="../wsrf/lifetime/WS-ResourceLifetime.wsdl" xmlns:ns21="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.wsdl"/>
     <ns18:ProviderInformation providerClass="DestroyProvider"/>
    </ns18:Method>
    <ns18:Method isImported="true" isProvided="true" name="SetTerminationTime" xsi:type="ns18:MethodType">
     <ns18:Output qName="void" isArray="false"/>
     <ns18:ImportInformation fromIntroduce="false" inputMessage="ns22:SetTerminationTimeRequest" namespace="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.wsdl" outputMessage="ns22:SetTerminationTimeResponse" packageName="org.oasis.wsrf.lifetime" portTypeName="ScheduledResourceTermination" wsdlFile="../wsrf/lifetime/WS-ResourceLifetime.wsdl" xmlns:ns22="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.wsdl"/>
     <ns18:ProviderInformation providerClass="SetTerminationTimeProvider"/>
    </ns18:Method>
    <ns18:Method description="Cancels the execution of a workflow" isImported="false" isProvided="false" name="cancel" xsi:type="ns18:MethodType">
     <ns18:Inputs/>
     <ns18:Output qName="void" description="" isArray="false"/>
     <ns18:Exceptions>
      <ns18:Exception description="" name="CannotCancelWorkflowFault" qname="ns23:CannotCancelWorkflowFault" xmlns:ns23="http://service.workflow.cagrid.nci.nih.gov/TavernaWorkflowService/ServiceImpl/types"/>
     </ns18:Exceptions>
    </ns18:Method>
    <ns18:Method description="Gives a detailed status of the workflow" isImported="false" isProvided="false" name="getDetailedStatus" xsi:type="ns18:MethodType">
     <ns18:Inputs/>
     <ns18:Output qName="ns24:DetailedStatusOutputElement" description="" isArray="true" xmlns:ns24="http://types.workflow.cagrid.nci.nih.gov/WorkflowManagementFactoryService"/>
     <ns18:Exceptions>
      <ns18:Exception description="" name="WorkflowException" qname="ns25:WorkflowException" xmlns:ns25="http://service.workflow.cagrid.nci.nih.gov/TavernaWorkflowService/ServiceImpl/types"/>
     </ns18:Exceptions>
    </ns18:Method>
    <ns18:Method description="Returns status of the workflow" isImported="false" isProvided="false" name="getStatus" xsi:type="ns18:MethodType">
     <ns18:Inputs/>
     <ns18:Output qName="ns26:WorkflowStatusElement" description="" isArray="false" xmlns:ns26="http://types.workflow.cagrid.nci.nih.gov/WorkflowManagementFactoryService"/>
     <ns18:Exceptions>
      <ns18:Exception description="" name="WorkflowException" qname="ns27:WorkflowException" xmlns:ns27="http://service.workflow.cagrid.nci.nih.gov/TavernaWorkflowService/ServiceImpl/types"/>
     </ns18:Exceptions>
    </ns18:Method>
    <ns18:Method description="Returns the output of the workflow" isImported="false" isProvided="false" name="getWorkflowOutput" xsi:type="ns18:MethodType">
     <ns18:Inputs/>
     <ns18:Output qName="ns28:WorkflowOutputElement" description="" isArray="false" xmlns:ns28="http://types.workflow.cagrid.nci.nih.gov/WorkflowManagementFactoryService"/>
     <ns18:Exceptions>
      <ns18:Exception description="" name="WorkflowException" qname="ns29:WorkflowException" xmlns:ns29="http://service.workflow.cagrid.nci.nih.gov/TavernaWorkflowService/ServiceImpl/types"/>
     </ns18:Exceptions>
    </ns18:Method>
    <ns18:Method description="Pause the workflow execution" isImported="false" isProvided="false" name="pause" xsi:type="ns18:MethodType">
     <ns18:Inputs/>
     <ns18:Output qName="ns30:WorkflowStatusElement" description="" isArray="false" xmlns:ns30="http://types.workflow.cagrid.nci.nih.gov/WorkflowManagementFactoryService"/>
     <ns18:Exceptions>
      <ns18:Exception description="" name="WorkflowException" qname="ns31:WorkflowException" xmlns:ns31="http://service.workflow.cagrid.nci.nih.gov/TavernaWorkflowService/ServiceImpl/types"/>
      <ns18:Exception description="" name="CannotPauseWorkflowFault" qname="ns32:CannotPauseWorkflowFault" xmlns:ns32="http://service.workflow.cagrid.nci.nih.gov/TavernaWorkflowService/ServiceImpl/types"/>
     </ns18:Exceptions>
    </ns18:Method>
    <ns18:Method description="Resumes a paused workflow" isImported="false" isProvided="false" name="resume" xsi:type="ns18:MethodType">
     <ns18:Inputs/>
     <ns18:Output qName="ns33:WorkflowStatusElement" description="" isArray="false" xmlns:ns33="http://types.workflow.cagrid.nci.nih.gov/WorkflowManagementFactoryService"/>
     <ns18:Exceptions>
      <ns18:Exception description="" name="WorkflowException" qname="ns34:WorkflowException" xmlns:ns34="http://service.workflow.cagrid.nci.nih.gov/TavernaWorkflowService/ServiceImpl/types"/>
      <ns18:Exception description="" name="CannotResumeWorkflowFault" qname="ns35:CannotResumeWorkflowFault" xmlns:ns35="http://service.workflow.cagrid.nci.nih.gov/TavernaWorkflowService/ServiceImpl/types"/>
     </ns18:Exceptions>
    </ns18:Method>
    <ns18:Method description="starts the workflow (This will be deprecated in future releases. A new operations startWorkflow will supersede this operation)" isImported="false" isProvided="false" name="start" xsi:type="ns18:MethodType">
     <ns18:Inputs>
      <ns18:Input qName="ns36:StartInputElement" description="" isArray="false" name="startInputElement" xmlns:ns36="http://types.workflow.cagrid.nci.nih.gov/WorkflowManagementFactoryService"/>
     </ns18:Inputs>
     <ns18:Output qName="ns37:WorkflowStatusElement" description="" isArray="false" xmlns:ns37="http://types.workflow.cagrid.nci.nih.gov/WorkflowManagementFactoryService"/>
     <ns18:Exceptions>
      <ns18:Exception description="" name="CannotStartWorkflowFault" qname="ns38:CannotStartWorkflowFault" xmlns:ns38="http://service.workflow.cagrid.nci.nih.gov/TavernaWorkflowService/ServiceImpl/types"/>
     </ns18:Exceptions>
    </ns18:Method>
    <ns18:Method isImported="true" isProvided="true" name="GetMultipleResourceProperties" xsi:type="ns18:MethodType">
     <ns18:Output qName="void" isArray="false"/>
     <ns39:MethodSecurity xsi:type="ns39:MethodSecurity" xmlns:ns39="gme://gov.nih.nci.cagrid.introduce/1/Security">
      <ns39:SecuritySetting xsi:type="ns39:SecuritySetting">None</ns39:SecuritySetting>
     </ns39:MethodSecurity>
     <ns18:ImportInformation fromIntroduce="false" inputMessage="ns40:GetMultipleResourcePropertiesRequest" namespace="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl" outputMessage="ns40:GetMultipleResourcePropertiesResponse" packageName="org.oasis.wsrf.properties" portTypeName="GetMultipleResourceProperties" wsdlFile="../wsrf/properties/WS-ResourceProperties.wsdl" xmlns:ns40="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl"/>
     <ns18:ProviderInformation providerClass="GetMRPProvider"/>
    </ns18:Method>
    <ns18:Method isImported="true" isProvided="true" name="GetResourceProperty" xsi:type="ns18:MethodType">
     <ns18:Output qName="void" isArray="false"/>
     <ns41:MethodSecurity xsi:type="ns41:MethodSecurity" xmlns:ns41="gme://gov.nih.nci.cagrid.introduce/1/Security">
      <ns41:SecuritySetting xsi:type="ns41:SecuritySetting">None</ns41:SecuritySetting>
     </ns41:MethodSecurity>
     <ns18:ImportInformation fromIntroduce="false" inputMessage="ns42:GetResourcePropertyRequest" namespace="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl" outputMessage="ns42:GetResourcePropertyResponse" packageName="org.oasis.wsrf.properties" portTypeName="GetResourceProperty" wsdlFile="../wsrf/properties/WS-ResourceProperties.wsdl" xmlns:ns42="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl"/>
     <ns18:ProviderInformation providerClass="GetRPProvider"/>
    </ns18:Method>
    <ns18:Method isImported="true" isProvided="true" name="QueryResourceProperties" xsi:type="ns18:MethodType">
     <ns18:Output qName="void" isArray="false"/>
     <ns43:MethodSecurity xsi:type="ns43:MethodSecurity" xmlns:ns43="gme://gov.nih.nci.cagrid.introduce/1/Security">
      <ns43:SecuritySetting xsi:type="ns43:SecuritySetting">None</ns43:SecuritySetting>
     </ns43:MethodSecurity>
     <ns18:ImportInformation fromIntroduce="false" inputMessage="ns44:QueryResourcePropertiesRequest" namespace="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl" outputMessage="ns44:QueryResourcePropertiesResponse" packageName="org.oasis.wsrf.properties" portTypeName="QueryResourceProperties" wsdlFile="../wsrf/properties/WS-ResourceProperties.wsdl" xmlns:ns44="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl"/>
     <ns18:ProviderInformation providerClass="QueryRPProvider"/>
    </ns18:Method>
    <ns18:Method isImported="true" isProvided="true" name="Subscribe" xsi:type="ns18:MethodType">
     <ns18:Output qName="void" isArray="false"/>
     <ns18:ImportInformation fromIntroduce="false" inputMessage="ns45:SubscribeRequest" namespace="http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.wsdl" outputMessage="ns45:SubscribeResponse" packageName="org.oasis.wsn" portTypeName="NotificationProducer" wsdlFile="../wsrf/notification/WS-BaseN.wsdl" xmlns:ns45="http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.wsdl"/>
     <ns18:ProviderInformation providerClass="SubscribeProvider"/>
    </ns18:Method>
    <ns18:Method description="Get the delegated credential from CDS using the EPR" isImported="false" isProvided="false" name="setDelegatedCredential" xsi:type="ns18:MethodType">
     <ns18:Inputs>
      <ns18:Input qName="ns46:DelegatedCredentialReference" description="" isArray="false" name="delegatedCredentialReference" xmlns:ns46="http://cds.gaards.cagrid.org/CredentialDelegationService/DelegatedCredential/types"/>
     </ns18:Inputs>
     <ns18:Output qName="void" description="" isArray="false"/>
     <ns18:Exceptions>
      <ns18:Exception description="Unable to get or set the client's delegated credential" name="CannotSetCredential" qname="ns47:CannotSetCredential" xmlns:ns47="http://service.workflow.cagrid.nci.nih.gov/TavernaWorkflowService/ServiceImpl/types"/>
     </ns18:Exceptions>
     <ns48:MethodSecurity xsi:type="ns48:MethodSecurity" xmlns:ns48="gme://gov.nih.nci.cagrid.introduce/1/Security">
      <ns48:SecuritySetting xsi:type="ns48:SecuritySetting">Custom</ns48:SecuritySetting>
      <ns48:TransportLevelSecurity xsi:type="ns48:TransportLevelSecurity">
       <ns48:CommunicationMethod xsi:type="ns48:CommunicationMethod">Privacy</ns48:CommunicationMethod>
      </ns48:TransportLevelSecurity>
      <ns48:RunAsMode xsi:type="ns48:RunAsMode">System</ns48:RunAsMode>
      <ns48:AnonymousClients xsi:type="ns48:AnonymousCommunication">No</ns48:AnonymousClients>
      <ns48:MethodAuthorization xsi:type="ns48:MethodAuthorization">
       <ns48:InheritServiceAuthorization xsi:type="ns48:InheritServiceAuthorization"/>
      </ns48:MethodAuthorization>
     </ns48:MethodSecurity>
     <ns49:Extensions xsi:type="ns49:ExtensionsType" xmlns:ns49="gme://gov.nih.nci.cagrid.introduce/1/Extension"/>
    </ns18:Method>
    <ns18:Method description="Uses caTransfer service to transfer large dataset to the Workflow Service." isImported="false" isProvided="false" name="putInputData" xsi:type="ns18:MethodType">
     <ns18:Inputs>
      <ns18:Input qName="xsd:string" description="name of the file that the client wants to upload." isArray="false" name="filename" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
     </ns18:Inputs>
     <ns18:Output qName="ns50:TransferServiceContextReference" description="" isArray="false" xmlns:ns50="http://transfer.cagrid.org/TransferService/Context/types"/>
     <ns18:Exceptions/>
    </ns18:Method>
    <ns18:Method description="Uses caTransfer to transfer the output back to the client.  Used for large files." isImported="false" isProvided="false" name="getOutputData" xsi:type="ns18:MethodType">
     <ns18:Inputs/>
     <ns18:Output qName="ns51:TransferServiceContextReference" description="" isArray="false" xmlns:ns51="http://transfer.cagrid.org/TransferService/Context/types"/>
     <ns18:Exceptions/>
    </ns18:Method>
    <ns18:Method description="starts the workflow" isImported="false" isProvided="false" name="startWorkflow" xsi:type="ns18:MethodType">
     <ns18:Inputs>
      <ns18:Input qName="ns52:StartInputElement" description="" isArray="false" name="startInputElement" xmlns:ns52="http://types.workflow.cagrid.nci.nih.gov/WorkflowManagementFactoryService"/>
     </ns18:Inputs>
     <ns18:Output qName="ns53:WorkflowStatusElement" description="" isArray="false" xmlns:ns53="http://types.workflow.cagrid.nci.nih.gov/WorkflowManagementFactoryService"/>
     <ns18:Exceptions>
      <ns18:Exception description="" name="CannotStartWorkflowFault" qname="ns54:CannotStartWorkflowFault" xmlns:ns54="http://service.workflow.cagrid.nci.nih.gov/TavernaWorkflowService/ServiceImpl/types"/>
     </ns18:Exceptions>
    </ns18:Method>
   </ns18:Methods>
   <ns55:ResourcePropertiesList xsi:type="ns55:ResourcePropertiesListType" xmlns:ns55="gme://gov.nih.nci.cagrid.introduce/1/Resources">
    <ns55:ResourceProperty qName="ns56:CurrentTime" description="" populateFromFile="false" register="false" xsi:type="ns55:ResourcePropertyType" xmlns:ns56="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.xsd"/>
    <ns55:ResourceProperty qName="ns57:TerminationTime" description="" populateFromFile="false" register="false" xsi:type="ns55:ResourcePropertyType" xmlns:ns57="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.xsd"/>
    <ns55:ResourceProperty qName="ns58:WorkflowStatusElement" description="" fileLocation="TavernaWorkflowServiceImpl_workflowStatusElement.xml" populateFromFile="false" register="false" xsi:type="ns55:ResourcePropertyType" xmlns:ns58="http://types.workflow.cagrid.nci.nih.gov/WorkflowManagementFactoryService"/>
   </ns55:ResourcePropertiesList>
   <ns3:description xsi:type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"></ns3:description>
   <ns3:ResourceFrameworkOptions xsi:type="ns3:ResourceFrameworkOptions">
    <ns3:Lifetime xsi:type="ns3:Lifetime"/>
    <ns3:Identifiable xsi:type="ns3:Identifiable"/>
    <ns3:Persistent xsi:type="ns3:Persistent"/>
    <ns3:Notification xsi:type="ns3:Notification"/>
    <ns3:ResourcePropertyManagement xsi:type="ns3:ResourcePropertyManagement"/>
   </ns3:ResourceFrameworkOptions>
  </ns3:Service>
 </ns3:Services>
 <ns59:Extensions xsi:type="ns59:ExtensionsType" xmlns:ns59="gme://gov.nih.nci.cagrid.introduce/1/Extension" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ns59:Extension name="cagrid_metadata" version="1.4" xsi:type="ns59:ExtensionType"/>
  <ns59:Extension name="caGrid_Transfer" version="1.4" xsi:type="ns59:ExtensionType"/>
 </ns59:Extensions>
 <ns60:ServiceProperties xmlns:ns60="gme://gov.nih.nci.cagrid.introduce/1/Property">
  <ns60:Property description="This points to the Taverna repository." isFromETC="false" key="baseRepositoryDir" value="$home/Library/Application Support/Taverna-1.7.1/repository/"/>
  <ns60:Property description="This points to the Taverna installation directory containing a lib directory within. This will be used to add the classpath variable for ProcessBuilder to launch the workflow." isFromETC="false" key="tavernaDir" value="null"/>
  <ns60:Property description="This is the number of concurrent workflows allowed within the workflow service." isFromETC="false" key="concurrentWorkflows" value="4"/>
 </ns60:ServiceProperties>
</ns1:ServiceDescription>


text:
class Decerealiser: public Cereal {
public:

    Decerealiser();

    virtual Type getType() const override { return Cereal::Type::Read; }

    template<typename T> explicit Decerealiser(const T& bytes):
        Cereal(bytes),
        _iterator(std::begin(_bytes)),
        _end(std::end(_bytes)),
        _originalIterator(std::begin(_bytes)),
        _currentByte(),
        _bitIndex() {

    }

    template<typename T> Decerealiser(const T& begin, const T& end):
        Cereal(),
        _iterator(begin),
        _end(end),
        _originalIterator(_iterator),
        _currentByte(),
        _bitIndex() {
    }

    template<typename T> Decerealiser(gsl::span<const unsigned char> bytes):
        Decerealiser(bytes.begin(), bytes.end()) {
    }

    template<typename T>
    Decerealiser& operator>>(T& val) {
        Cereal::grain(val);
        return *this;
    }

    template<typename T>
    T read() {
        T val = T();
        *this >> val;
        return val;
    }

    template<typename T> T value() { return read<T>(); }

    template<typename T, typename... A>
    std::unique_ptr<T> createPtr(A... args) {
        auto obj = new T(args...);
        *this >> *obj;
        return std::unique_ptr<T>{obj};
    }

    template<typename T, typename... A>
    T create(A... args) {
        T obj(args...);
        *this >> obj;
        return obj;
    }

    template<typename T>
    void create(T& obj) {
        *this >> obj;
    }

    uint32_t readBits(int bits);
    void reset();

    //const Bytes& getBytes() const { return _bytes; }

private:

    //Bytes _bytes;
    Bytes::const_iterator _iterator;
    Bytes::const_iterator _end;
    Bytes::const_iterator _originalIterator;
    uint8_t _currentByte;
    int _bitIndex;

    virtual void grainByte(uint8_t& val) override;
    virtual void grainBitsImpl(uint32_t& val, int bits) override { val = readBits(bits); }
    virtual int bytesLeft() const override { return std::distance(_iterator, _end); }

    uint32_t readBitsHelper(int bits);
};

using Decerealizer = Decerealiser; //for people who can't spell :P

#endif // DECEREALISER_H

redpajama_set_name: RedPajamaGithub


text:
<?php

declare(strict_types=1);

namespace Sabre\Xml;

use
    Exception;

class ParseException extends Exception
{
}


text:
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.IO.Abstractions;
using System.Security.AccessControl;
using System.Text;

namespace Test.Mocks
{
    [SuppressMessage(
        "Microsoft.Performance",
        "CA1812:AvoidUninstantiatedInternalClasses",
        Justification = "This class is used in other assemblies")]
    internal sealed class MockFile : FileBase
    {
        private readonly Dictionary<string, string> _content
            = new Dictionary<string, string>();

        private readonly Dictionary<string, string> _copiedOrMovedFiles
            = new Dictionary<string, string>();

        [SuppressMessage(
            "Microsoft.Performance",
            "CA1811:AvoidUncalledPrivateCode",
            Justification = "This method may be used in other projects.")]
        public MockFile(string path, string content)
        {
            _content.Add(path, content);
        }

        [SuppressMessage(
            "Microsoft.Performance",
            "CA1811:AvoidUncalledPrivateCode",
            Justification = "This method may be used in other projects.")]
        public MockFile(string path, string content, Dictionary<string, string> copiedFiles)
        {
            _content.Add(path, content);
            _copiedOrMovedFiles = copiedFiles;
        }

        [SuppressMessage(
            "Microsoft.Performance",
            "CA1811:AvoidUncalledPrivateCode",
            Justification = "This method may be used in other projects.")]
        public MockFile(Dictionary<string, string> files)
        {
            _content = files;
        }

        [SuppressMessage(
            "Microsoft.Performance",
            "CA1811:AvoidUncalledPrivateCode",
            Justification = "This method may be used in other projects.")]
        public MockFile(Dictionary<string, string> files, Dictionary<string, string> copiedFiles)
        {
            _content = files;
            _copiedOrMovedFiles = copiedFiles;
        }

        public override void AppendAllText(string path, string contents)
        {
            // Do nothing for now
        }

        public override void AppendAllText(string path, string contents, Encoding encoding)
        {
            // Do nothing for now
        }

        public override StreamWriter AppendText(string path)
        {
            throw new NotImplementedException();
        }

        public override void Copy(string sourceFileName, string destFileName)
        {
            _copiedOrMovedFiles.Add(sourceFileName, destFileName);
        }

        public override void Copy(string sourceFileName, string destFileName, bool overwrite)
        {
            _copiedOrMovedFiles.Add(sourceFileName, destFileName);
        }

        public override Stream Create(string path)
        {
            throw new NotImplementedException();
        }

        public override Stream Create(string path, int bufferSize)
        {
            throw new NotImplementedException();
        }

        public override Stream Create(string path, int bufferSize, FileOptions options)
        {
            throw new NotImplementedException();
        }

        public override Stream Create(string path, int bufferSize, FileOptions options, FileSecurity fileSecurity)
        {
            throw new NotImplementedException();
        }

        public override StreamWriter CreateText(string path)
        {
            throw new NotImplementedException();
        }

        public override void Decrypt(string path)
        {
            // Do nothing for now
        }

        public override void Delete(string path)
        {
            // Do nothing for now
        }

        public override void Encrypt(string path)
        {
            // Do nothing for now
        }

        public override bool Exists(string path)
        {
            return _content.ContainsKey(path);
        }

        public override FileSecurity GetAccessControl(string path)
        {
            throw new NotImplementedException();
        }

        public override FileSecurity GetAccessControl(string path, AccessControlSections includeSections)
        {
            throw new NotImplementedException();
        }

        public override FileAttributes GetAttributes(string path)
        {
            throw new NotImplementedException();
        }

        public override DateTime GetCreationTime(string path)
        {
            return DateTime.Now.AddHours(-1);
        }

        public override DateTime GetCreationTimeUtc(string path)
        {
            return DateTime.Now.AddHours(-1);
        }

        public override DateTime GetLastAccessTime(string path)
        {
            return DateTime.Now.AddHours(-1);
        }

        public override DateTime GetLastAccessTimeUtc(string path)
        {
            return DateTime.Now.AddHours(-1);
        }

        public override DateTime GetLastWriteTime(string path)
        {
            return DateTime.Now.AddHours(-1);
        }

        public override DateTime GetLastWriteTimeUtc(string path)
        {
            return DateTime.Now.AddHours(-1);
        }

        public override void Move(string sourceFileName, string destFileName)
        {
            _copiedOrMovedFiles.Add(sourceFileName, destFileName);
        }

        public override Stream Open(string path, FileMode mode)
        {
            return Open(path, mode, FileAccess.ReadWrite);
        }

        public override Stream Open(string path, FileMode mode, FileAccess access)
        {
            return Open(path, mode, access, FileShare.ReadWrite);
        }

        [SuppressMessage(
            "Microsoft.Reliability",
            "CA2000:Dispose objects before losing scope",
            Justification = "Disposing of the output stream should be done by the caller.")]
        public override Stream Open(string path, FileMode mode, FileAccess access, FileShare share)
        {
            var output = new MemoryStream();
            var stream = new MemoryStream();
            using (var writer = new StreamWriter(stream))
            {
                writer.Write(_content[path]);
                writer.Flush();

                stream.Position = 0;
                stream.CopyTo(output);
                output.Position = 0;
            }

            return output;
        }

        public override Stream OpenRead(string path)
        {
            return Open(path, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
        }

        public override StreamReader OpenText(string path)
        {
            throw new NotImplementedException();
        }

        public override Stream OpenWrite(string path)
        {
            return Open(path, FileMode.OpenOrCreate, FileAccess.Write, FileShare.None);
        }

        public override byte[] ReadAllBytes(string path)
        {
            throw new NotImplementedException();
        }

        public override string[] ReadAllLines(string path)
        {
            throw new NotImplementedException();
        }

        public override string[] ReadAllLines(string path, Encoding encoding)
        {
            throw new NotImplementedException();
        }

        public override string ReadAllText(string path)
        {
            throw new NotImplementedException();
        }

        public override string ReadAllText(string path, Encoding encoding)
        {
            throw new NotImplementedException();
        }

        public override void Replace(string sourceFileName, string destinationFileName, string destinationBackupFileName)
        {
            // Do nothing for now ...
        }

        public override void Replace(string sourceFileName, string destinationFileName, string destinationBackupFileName, bool ignoreMetadataErrors)
        {
            // Do nothing for now ...
        }

        public override void SetAccessControl(string path, FileSecurity fileSecurity)
        {
            // Do nothing for now ...
        }

        public override void SetAttributes(string path, FileAttributes fileAttributes)
        {
            // Do nothing for now ...
        }

        public override void SetCreationTime(string path, DateTime creationTime)
        {
            // Do nothing for now ...
        }

        public override void SetCreationTimeUtc(string path, DateTime creationTimeUtc)
        {
            // Do nothing for now ...
        }

        public override void SetLastAccessTime(string path, DateTime lastAccessTime)
        {
            // Do nothing for now ...
        }

        public override void SetLastAccessTimeUtc(string path, DateTime lastAccessTimeUtc)
        {
            // Do nothing for now ...
        }

        public override void SetLastWriteTime(string path, DateTime lastWriteTime)
        {
            // Do nothing for now ...
        }

        public override void SetLastWriteTimeUtc(string path, DateTime lastWriteTimeUtc)
        {
            // Do nothing for now ...
        }

        public override void WriteAllBytes(string path, byte[] bytes)
        {
            // Do nothing for now ...
        }

        public override void WriteAllLines(string path, string[] contents)
        {
            // Do nothing for now ...
        }

        public override void WriteAllLines(string path, string[] contents, Encoding encoding)
        {
            // Do nothing for now ...
        }

        public override void WriteAllText(string path, string contents)
        {
            // Do nothing for now ...
        }

        public override void WriteAllText(string path, string contents, Encoding encoding)
        {
            // Do nothing for now ...
        }

        public override void AppendAllLines(string path, IEnumerable<string> contents)
        {
            // Do nothing for now ...
        }

        public override void AppendAllLines(string path, IEnumerable<string> contents, Encoding encoding)
        {
            // Do nothing for now ...
        }

        public override IEnumerable<string> ReadLines(string path)
        {
            throw new NotImplementedException();
        }

        public override IEnumerable<string> ReadLines(string path, Encoding encoding)
        {
            throw new NotImplementedException();
        }

        public override void WriteAllLines(string path, IEnumerable<string> contents)
        {
            // Do nothing for now ...
        }

        public override void WriteAllLines(string path, IEnumerable<string> contents, Encoding encoding)
        {
            // Do nothing for now ...
        }
    }
}


text:
pytest-2.2.2: bug fixes
===========================================================================

pytest-2.2.2 (updated to 2.2.3 to fix packaging issues) is a minor
backward-compatible release of the versatile py.test testing tool.   It
contains bug fixes and a few refinements particularly to reporting with
"--collectonly", see below for betails.

For general information see here:

     http://pytest.org/

To install or upgrade pytest:

    pip install -U pytest # or
    easy_install -U pytest

Special thanks for helping on this release to Ronny Pfannschmidt
and Ralf Schmitt and the contributors of issues.

best,
holger krekel

Changes between 2.2.1 and 2.2.2
----------------------------------------

- fix issue101: wrong args to unittest.TestCase test function now
  produce better output
- fix issue102: report more useful errors and hints for when a
  test directory was renamed and some pyc/__pycache__ remain
- fix issue106: allow parametrize to be applied multiple times
  e.g. from module, class and at function level.
- fix issue107: actually perform session scope finalization
- don't check in parametrize if indirect parameters are funcarg names
- add chdir method to monkeypatch funcarg
- fix crash resulting from calling monkeypatch undo a second time
- fix issue115: make --collectonly robust against early failure
  (missing files/directories)
- "-qq --collectonly" now shows only files and the number of tests in them
- "-q --collectonly" now shows test ids
- allow adding of attributes to test reports such that it also works
  with distributed testing (no upgrade of pytest-xdist needed)


text:
package it.conteit.scoresmanager.gui.models;

import it.conteit.scoresmanager.control.IPresentationListListener;
import it.conteit.scoresmanager.presentation.AbstractPresentation;

import javax.swing.DefaultListModel;

public class PresentationModel extends DefaultListModel implements IPresentationListListener {
	private static final long serialVersionUID = -1531502436191535838L;

	private Class<? extends AbstractPresentation> clazz;

	public PresentationModel(){
		super();
	}

	public void defaultPresentationChanged(
			Class<? extends AbstractPresentation> clazz) {
		this.clazz = clazz;
		super.fireContentsChanged(this, 0, super.size());
	}

	public void presentationAdded(Class<? extends AbstractPresentation> clazz, boolean isDefault) {
		super.addElement(clazz);
		if(isDefault){
			isDefaultPresentation(clazz);
		}
	}

	public void presentationRemoved(Class<? extends AbstractPresentation> clazz) {
		super.removeElement(clazz);
	}

	public boolean isDefaultPresentation(
			Class<? extends AbstractPresentation> clazz) {
		return clazz.equals(this.clazz);
	}

}


text:
<!DOCTYPE html>

	<meta charset="utf-8" >
	<meta name="viewport"    content="width=device-width, initial-scale=1.0">
	<meta name="description" content="">
	<meta name="author"      content="Sergey Pozhilov (GetTemplate.com)">

		<title >LIGHT OF WISDOM - Managing {{EventName}} Event - {{TeamName}} Team</title>

	<link rel="shortcut icon" href="assets/images/gt_favicon.png">

	<link rel="stylesheet" media="screen" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,700">
	<link rel="stylesheet" href="assets/css/bootstrap.min.css">
	<link rel="stylesheet" href="assets/css/font-awesome.min.css">

	<link rel="stylesheet" href="assets/css/bootstrap-theme.css" media="screen" >
	<link rel="stylesheet" href="assets/css/main.css">

				<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">   </button>

Home

About

						More Pages

Left Sidebar

Right Sidebar

Contact

SIGN IN WITH GOOGLE

Home

About

Managing {{EventName}} Event - {{TeamName}} Team

Request

							Request from "name" on "date&time"
							<textarea placeholder="'name' wrote xxxxxx" class="form-control" rows="6"></textarea>

							<input class="btn btn-action" type="submit" value="Accept">
							<input class="btn btn-action" type="submit" value="Reject">

							Request from "name" on "date&time"
							<textarea placeholder="'name' wrote xxxxxx" class="form-control" rows="6"></textarea>

							<input class="btn btn-action" type="submit" value="Accept">
							<input class="btn btn-action" type="submit" value="Reject">

Edit team

            <form style="background-color:#806517; padding:20px;">

Team Name

 {{TeamName}} Team

Team Description

                        <textarea  ng-model="input.description" placeholder="Original Team Description" class="form-control" rows="9"></textarea>

                        <input type="checkbox"> xxxxxxxx

                        <input class="btn btn-action" type="submit" value="Edit" ng-click="saveFunc()">

            </form>

Contact

{{TeamName}} Team

								"email address"

								"phone"

Follow me


text:
namespace LifeLogger.UI
{
    partial class AddActionWindow
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

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

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.label1 = new System.Windows.Forms.Label();
            this.label2 = new System.Windows.Forms.Label();
            this.label3 = new System.Windows.Forms.Label();
            this.ActionTextBox = new System.Windows.Forms.TextBox();
            this.KeyWordsTextBox = new System.Windows.Forms.TextBox();
            this.HintTextBox = new System.Windows.Forms.TextBox();
            this.AddButton = new System.Windows.Forms.Button();
            this.CancelButton = new System.Windows.Forms.Button();
            this.SuspendLayout();
            //
            // label1
            //
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(12, 18);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(37, 13);
            this.label1.TabIndex = 0;
            this.label1.Text = "Action";
            //
            // label2
            //
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(12, 53);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(53, 13);
            this.label2.TabIndex = 1;
            this.label2.Text = "Keywords";
            //
            // label3
            //
            this.label3.AutoSize = true;
            this.label3.Location = new System.Drawing.Point(12, 88);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(26, 13);
            this.label3.TabIndex = 2;
            this.label3.Text = "Hint";
            //
            // ActionTextBox
            //
            this.ActionTextBox.Location = new System.Drawing.Point(89, 15);
            this.ActionTextBox.Name = "ActionTextBox";
            this.ActionTextBox.Size = new System.Drawing.Size(133, 20);
            this.ActionTextBox.TabIndex = 3;
            //
            // KeyWordsTextBox
            //
            this.KeyWordsTextBox.Location = new System.Drawing.Point(89, 50);
            this.KeyWordsTextBox.Name = "KeyWordsTextBox";
            this.KeyWordsTextBox.Size = new System.Drawing.Size(133, 20);
            this.KeyWordsTextBox.TabIndex = 4;
            //
            // HintTextBox
            //
            this.HintTextBox.Location = new System.Drawing.Point(89, 85);
            this.HintTextBox.Name = "HintTextBox";
            this.HintTextBox.Size = new System.Drawing.Size(133, 20);
            this.HintTextBox.TabIndex = 5;
            //
            // AddButton
            //
            this.AddButton.Location = new System.Drawing.Point(56, 134);
            this.AddButton.Name = "AddButton";
            this.AddButton.Size = new System.Drawing.Size(75, 23);
            this.AddButton.TabIndex = 6;
            this.AddButton.Text = "Add";
            this.AddButton.UseVisualStyleBackColor = true;
            //
            // CancelButton
            //
            this.CancelButton.Location = new System.Drawing.Point(146, 134);
            this.CancelButton.Name = "CancelButton";
            this.CancelButton.Size = new System.Drawing.Size(75, 23);
            this.CancelButton.TabIndex = 7;
            this.CancelButton.Text = "Cancel";
            this.CancelButton.UseVisualStyleBackColor = true;
            //
            // AddActionWindow
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(243, 170);
            this.ControlBox = false;
            this.Controls.Add(this.CancelButton);
            this.Controls.Add(this.AddButton);
            this.Controls.Add(this.HintTextBox);
            this.Controls.Add(this.KeyWordsTextBox);
            this.Controls.Add(this.ActionTextBox);
            this.Controls.Add(this.label3);
            this.Controls.Add(this.label2);
            this.Controls.Add(this.label1);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
            this.Name = "AddActionWindow";
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text = "Add New Action";
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.Label label2;
        private System.Windows.Forms.Label label3;
        internal System.Windows.Forms.TextBox ActionTextBox;
        internal System.Windows.Forms.TextBox KeyWordsTextBox;
        internal System.Windows.Forms.TextBox HintTextBox;
        internal System.Windows.Forms.Button AddButton;
        internal new System.Windows.Forms.Button CancelButton;
    }
}


text:
package org.apache.lucene.util;

import java.io.IOException;
import java.util.BitSet;

public class TestLongBitSet extends LuceneTestCase {

  void doGet(BitSet a, LongBitSet b) {
    long max = b.length();
    for (int i=0; i<max; i++) {
      if (a.get(i) != b.get(i)) {
        fail("mismatch: BitSet=["+i+"]="+a.get(i));
      }
    }
  }

  void doNextSetBit(BitSet a, LongBitSet b) {
    int aa=-1;
    long bb=-1;
    do {
      aa = a.nextSetBit(aa+1);
      bb = bb < b.length()-1 ? b.nextSetBit(bb+1) : -1;
      assertEquals(aa,bb);
    } while (aa>=0);
  }

  void doPrevSetBit(BitSet a, LongBitSet b) {
    int aa = a.size() + random().nextInt(100);
    long bb = aa;
    do {
      // aa = a.prevSetBit(aa-1);
      aa--;
      while ((aa >= 0) && (! a.get(aa))) {
        aa--;
      }
      if (b.length() == 0) {
        bb = -1;
      } else if (bb > b.length()-1) {
        bb = b.prevSetBit(b.length()-1);
      } else if (bb < 1) {
        bb = -1;
      } else {
        bb = bb >= 1 ? b.prevSetBit(bb-1) : -1;
      }
      assertEquals(aa,bb);
    } while (aa>=0);
  }

  void doRandomSets(int maxSize, int iter, int mode) throws IOException {
    BitSet a0=null;
    LongBitSet b0=null;

    for (int i=0; i<iter; i++) {
      int sz = TestUtil.nextInt(random(), 2, maxSize);
      BitSet a = new BitSet(sz);
      LongBitSet b = new LongBitSet(sz);

      // test the various ways of setting bits
      if (sz>0) {
        int nOper = random().nextInt(sz);
        for (int j=0; j<nOper; j++) {
          int idx;

          idx = random().nextInt(sz);
          a.set(idx);
          b.set(idx);

          idx = random().nextInt(sz);
          a.clear(idx);
          b.clear(idx);

          idx = random().nextInt(sz);
          a.flip(idx);
          b.flip(idx, idx+1);

          idx = random().nextInt(sz);
          a.flip(idx);
          b.flip(idx, idx+1);

          boolean val2 = b.get(idx);
          boolean val = b.getAndSet(idx);
          assertTrue(val2 == val);
          assertTrue(b.get(idx));

          if (!val) b.clear(idx);
          assertTrue(b.get(idx) == val);
        }
      }

      // test that the various ways of accessing the bits are equivalent
      doGet(a,b);

      // test ranges, including possible extension
      int fromIndex, toIndex;
      fromIndex = random().nextInt(sz/2);
      toIndex = fromIndex + random().nextInt(sz - fromIndex);
      BitSet aa = (BitSet)a.clone(); aa.flip(fromIndex,toIndex);
      LongBitSet bb = b.clone(); bb.flip(fromIndex,toIndex);

      fromIndex = random().nextInt(sz/2);
      toIndex = fromIndex + random().nextInt(sz - fromIndex);
      aa = (BitSet)a.clone(); aa.clear(fromIndex,toIndex);
      bb = b.clone(); bb.clear(fromIndex,toIndex);

      doNextSetBit(aa,bb); // a problem here is from clear() or nextSetBit

      doPrevSetBit(aa,bb);

      fromIndex = random().nextInt(sz/2);
      toIndex = fromIndex + random().nextInt(sz - fromIndex);
      aa = (BitSet)a.clone(); aa.set(fromIndex,toIndex);
      bb = b.clone(); bb.set(fromIndex,toIndex);

      doNextSetBit(aa,bb); // a problem here is from set() or nextSetBit

      doPrevSetBit(aa,bb);

      if (b0 != null && b0.length() <= b.length()) {
        assertEquals(a.cardinality(), b.cardinality());

        BitSet a_and = (BitSet)a.clone(); a_and.and(a0);
        BitSet a_or = (BitSet)a.clone(); a_or.or(a0);
        BitSet a_xor = (BitSet)a.clone(); a_xor.xor(a0);
        BitSet a_andn = (BitSet)a.clone(); a_andn.andNot(a0);

        LongBitSet b_and = b.clone(); assertEquals(b,b_and); b_and.and(b0);
        LongBitSet b_or = b.clone(); b_or.or(b0);
        LongBitSet b_xor = b.clone(); b_xor.xor(b0);
        LongBitSet b_andn = b.clone(); b_andn.andNot(b0);

        assertEquals(a0.cardinality(), b0.cardinality());
        assertEquals(a_or.cardinality(), b_or.cardinality());

        assertEquals(a_and.cardinality(), b_and.cardinality());
        assertEquals(a_or.cardinality(), b_or.cardinality());
        assertEquals(a_xor.cardinality(), b_xor.cardinality());
        assertEquals(a_andn.cardinality(), b_andn.cardinality());
      }

      a0=a;
      b0=b;
    }
  }

  // large enough to flush obvious bugs, small enough to run in <.5 sec as part of a
  // larger testsuite.
  public void testSmall() throws IOException {
    doRandomSets(atLeast(1200), atLeast(1000), 1);
    doRandomSets(atLeast(1200), atLeast(1000), 2);
  }

  // uncomment to run a bigger test (~2 minutes).
  /*
  public void testBig() {
    doRandomSets(2000,200000, 1);
    doRandomSets(2000,200000, 2);
  }
  */

  public void testEquals() {
    // This test can't handle numBits==0:
    final int numBits = random().nextInt(2000) + 1;
    LongBitSet b1 = new LongBitSet(numBits);
    LongBitSet b2 = new LongBitSet(numBits);
    assertTrue(b1.equals(b2));
    assertTrue(b2.equals(b1));
    for(int iter=0;iter<10*RANDOM_MULTIPLIER;iter++) {
      int idx = random().nextInt(numBits);
      if (!b1.get(idx)) {
        b1.set(idx);
        assertFalse(b1.equals(b2));
        assertFalse(b2.equals(b1));
        b2.set(idx);
        assertTrue(b1.equals(b2));
        assertTrue(b2.equals(b1));
      }
    }

    // try different type of object
    assertFalse(b1.equals(new Object()));
  }

  public void testHashCodeEquals() {
    // This test can't handle numBits==0:
    final int numBits = random().nextInt(2000) + 1;
    LongBitSet b1 = new LongBitSet(numBits);
    LongBitSet b2 = new LongBitSet(numBits);
    assertTrue(b1.equals(b2));
    assertTrue(b2.equals(b1));
    for(int iter=0;iter<10*RANDOM_MULTIPLIER;iter++) {
      int idx = random().nextInt(numBits);
      if (!b1.get(idx)) {
        b1.set(idx);
        assertFalse(b1.equals(b2));
        assertFalse(b1.hashCode() == b2.hashCode());
        b2.set(idx);
        assertEquals(b1, b2);
        assertEquals(b1.hashCode(), b2.hashCode());
      }
    }
  }

  public void testSmallBitSets() {
    // Make sure size 0-10 bit sets are OK:
    for(int numBits=0;numBits<10;numBits++) {
      LongBitSet b1 = new LongBitSet(numBits);
      LongBitSet b2 = new LongBitSet(numBits);
      assertTrue(b1.equals(b2));
      assertEquals(b1.hashCode(), b2.hashCode());
      assertEquals(0, b1.cardinality());
      if (numBits > 0) {
        b1.set(0, numBits);
        assertEquals(numBits, b1.cardinality());
        b1.flip(0, numBits);
        assertEquals(0, b1.cardinality());
      }
    }
  }

  private LongBitSet makeLongFixedBitSet(int[] a, int numBits) {
    LongBitSet bs;
    if (random().nextBoolean()) {
      int bits2words = LongBitSet.bits2words(numBits);
      long[] words = new long[bits2words + random().nextInt(100)];
      for (int i = bits2words; i < words.length; i++) {
        words[i] = random().nextLong();
      }
      bs = new LongBitSet(words, numBits);

    } else {
      bs = new LongBitSet(numBits);
    }
    for (int e: a) {
      bs.set(e);
    }
    return bs;
  }

  private BitSet makeBitSet(int[] a) {
    BitSet bs = new BitSet();
    for (int e: a) {
      bs.set(e);
    }
    return bs;
  }

  private void checkPrevSetBitArray(int [] a, int numBits) {
    LongBitSet obs = makeLongFixedBitSet(a, numBits);
    BitSet bs = makeBitSet(a);
    doPrevSetBit(bs, obs);
  }

  public void testPrevSetBit() {
    checkPrevSetBitArray(new int[] {}, 0);
    checkPrevSetBitArray(new int[] {0}, 1);
    checkPrevSetBitArray(new int[] {0,2}, 3);
  }

  private void checkNextSetBitArray(int [] a, int numBits) {
    LongBitSet obs = makeLongFixedBitSet(a, numBits);
    BitSet bs = makeBitSet(a);
    doNextSetBit(bs, obs);
  }

  public void testNextBitSet() {
    int[] setBits = new int[0+random().nextInt(1000)];
    for (int i = 0; i < setBits.length; i++) {
      setBits[i] = random().nextInt(setBits.length);
    }
    checkNextSetBitArray(setBits, setBits.length + random().nextInt(10));

    checkNextSetBitArray(new int[0], setBits.length + random().nextInt(10));
  }

  public void testEnsureCapacity() {
    LongBitSet bits = new LongBitSet(5);
    bits.set(1);
    bits.set(4);

    LongBitSet newBits = LongBitSet.ensureCapacity(bits, 8); // grow within the word
    assertTrue(newBits.get(1));
    assertTrue(newBits.get(4));
    newBits.clear(1);
    // we align to 64-bits, so even though it shouldn't have, it re-allocated a long[1]
    assertTrue(bits.get(1));
    assertFalse(newBits.get(1));

    newBits.set(1);
    newBits = LongBitSet.ensureCapacity(newBits, newBits.length() - 2); // reuse
    assertTrue(newBits.get(1));

    bits.set(1);
    newBits = LongBitSet.ensureCapacity(bits, 72); // grow beyond one word
    assertTrue(newBits.get(1));
    assertTrue(newBits.get(4));
    newBits.clear(1);
    // we grew the long[], so it's not shared
    assertTrue(bits.get(1));
    assertFalse(newBits.get(1));
  }

}


text:
{-# LANGUAGE TypeOperators    #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE DataKinds        #-}
{-# LANGUAGE ScopedTypeVariables #-}

module AXI where

import Language.VHDL (Mode(..))
import Language.Embedded.Hardware

import Language.Embedded.Hardware.Interface.AXI

import Control.Monad.Identity
import Control.Monad.Operational.Higher
import Data.ALaCarte
import Data.Int
import Data.Word
import Text.PrettyPrint

import Prelude hiding (and, or, not)

--------------------------------------------------------------------------------
-- * AXI example.
--------------------------------------------------------------------------------

-- | Command set used for our programs.
type CMD =
      SignalCMD
  :+: VariableCMD
  :+: ArrayCMD
  :+: VArrayCMD
  :+: LoopCMD
  :+: ConditionalCMD
  :+: ComponentCMD
  :+: ProcessCMD
  :+: VHDLCMD

type HProg = Program CMD (Param2 HExp HType)

type HComp = Comp CMD HExp HType Identity

type HSig  = Sig CMD HExp HType Identity

--------------------------------------------------------------------------------

-- Adder.
add_impl :: Signal Word32 -> Signal Word32 -> Signal Word32 -> HProg ()
add_impl a b c =
  processR []
    (do setSignal c 0)
    (do va <- getSignal a
        vb <- getSignal b
        setSignal c (va + vb))

-- Adder's signature.
add_sig :: HSig (
     Signal Word32
  -> Signal Word32
  -> Signal Word32
  -> ())
add_sig =
  namedInput  "a" $ \a ->
  namedInput  "b" $ \b ->
  namedOutput "c" $ \c ->
  ret $ add_impl a b c

-- Connect the adder's signature to an AXI-lite interface and compile.
test = icompileAXILite add_sig

--------------------------------------------------------------------------------

-- Reverse, assume 10 elements in each array.
rev_impl :: Array Word32 -> Array Word32 -> HProg ()
rev_impl a b =
  processR []
    (do resetArray b 0)
    (do for 0 1 $ \ix ->
          do va <- getArray a ix
             setArray b (1 - ix) va)

rev_sig :: HSig (
     Array Word32
  -> Array Word32
  -> ())
rev_sig =
  namedInputArray  "a" 2 $ \a ->
  namedOutputArray "b" 2 $ \b ->
  ret $ rev_impl a b

test2 = icompileAXILite rev_sig

--------------------------------------------------------------------------------


text:
/* -*- Mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 40 -*- */
/* vim: set ts=2 et sw=2 tw=80: */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at http://mozilla.org/MPL/2.0/. */

#ifndef mozilla_dom_audiochannelcommon_h__
#define mozilla_dom_audiochannelcommon_h__

namespace mozilla {
namespace dom {

// The audio channel. Read the nsIHTMLMediaElement.idl for a description
// about this attribute.
enum AudioChannelType {
  AUDIO_CHANNEL_NORMAL = 0,
  AUDIO_CHANNEL_CONTENT,
  AUDIO_CHANNEL_NOTIFICATION,
  AUDIO_CHANNEL_ALARM,
  AUDIO_CHANNEL_TELEPHONY,
  AUDIO_CHANNEL_RINGER,
  AUDIO_CHANNEL_PUBLICNOTIFICATION,
  AUDIO_CHANNEL_LAST
};

} // namespace dom
} // namespace mozilla

#endif


text:
require 'metainspector'

module Lyracyst
  # Wordsmith.org provides anagrams.
  class Wordsmith
    # The scraper method.
    #
    # @param search [String] The string of letters to rearrange.
    # @param params [Hash] The search parameters to use.
    # @param result [Hash] The search results.
    def scrape(search, params, result)
      prefix = 'http://wordsmith.org/anagram/anagram.cgi?anagram='
      word, pcont = "#{prefix}#{search}", []
      params.map { |k, v|
        if k == :lang then pcont.push "&language=#{v}"; end # string
        if k == :limit then pcont.push "&t=#{v}"; end # integer
        if k == :maxwords then pcont.push "&d=#{v}"; end # integer
        if k == :include then pcont.push "&include=#{v}"; end # string
        if k == :exclude then pcont.push "&exclude=#{v}"; end # string
        if k == :minletters then pcont.push "&n=#{v}"; end # integer
        if k == :maxletters then pcont.push "&m=#{v}"; end # integer
        if k == :repeat then pcont.push "&a=#{v}"; end # y/n
        if k == :list then pcont.push "&l=#{v}"; end # y/n
        if k == :linenum then pcont.push "&q=#{v}"; end # y/n
        if k == :case then pcont.push "&k=#{v}"; end # 0 - lower, 1 - first, 2 - upper
      }
      pcont.push "&src=adv"
      url = "#{word}#{pcont.join}"
      result = MetaInspector.new(url)
      pdoc = result.parsed
      text = pdoc.at_css('p:nth-child(7)').text
      s = text.scan(/^\s(\d*) found. Displaying ([a-z0-9 ]*):([a-z\s]*)What's/i)
      s = s[0]
      found = s[0]
      display = s[1]
      astring = s[2]
      search = { 'search' => search }
      anagrams = { 'anagrams' => astring }
      Lyracyst.tofile(search)
      Lyracyst.tofile(anagrams)
      Lyracyst.label('Anagrams')
      puts "Found #{found}. Displaying #{display}:\n#{astring.strip}"
    end
  end
end


text:
"""!flip [alpha,beta,gamma] - flip a coin n times or shuffle a comma separated list"""
import random
import re

def flip(lst):
    random.shuffle(lst)
    return ", ".join(lst)

def on_message(msg, server):
    text = msg.get("text", "")
    match = re.findall(r"!flip( .*)?", text)
    if not match: return

    lst = ["heads", "tails"] if not match[0] else match[0].strip().split(',')

    return flip(lst)


text:
package it.geosolutions.jaiext;

import java.awt.RenderingHints;
import java.awt.image.RenderedImage;
import java.awt.image.renderable.ParameterBlock;

import javax.media.jai.JAI;
import javax.media.jai.OperationDescriptorImpl;
import javax.media.jai.ParameterBlockJAI;
import javax.media.jai.RenderedOp;
import javax.media.jai.registry.RenderedRegistryMode;

/**
 * Dummy {@link OperationDescriptor} for the Scale operation used for testing the {@link JAIExt} and {@link ConcurrentOperationRegistry} classes.
 *
 * @author Nicola Lagomarsini - GeoSolutions
 *
 */
public class DummyScaleDescriptor extends OperationDescriptorImpl {

    /**
     * The resource strings that provide the general documentation and specify the parameter list for this operation.
     */
    private static final String[][] resources = { { "GlobalName", "Scale" },
            { "LocalName", "Scale" }, { "Vendor", "it.geosolutions.jaiext" },
            { "Description", "null" }, { "DocURL", "null" }, { "Version", "0.0" }

    };

    /**
     * Modes supported by the operation
     */
    private static final String[] supportedModes = { "rendered" };

    /** Constructor. */
    public DummyScaleDescriptor() {
        super(resources, supportedModes, 1, null, null, null, null);
    }

    /** Returns false since renderable operation is supported but never tested. */
    public boolean isRenderableSupported() {
        return false;
    }

    /**
     * Resizes an image.
     *
     *

     * Creates a ParameterBlockJAI from all supplied arguments except hints and invokes
     * {@link JAI#create(String,ParameterBlock,RenderingHints)}.
     *
     * @see JAI
     * @see ParameterBlockJAI
     * @see RenderedOp
     *
     * @param source0 RenderedImage source 0.
     * @param hints The RenderingHints to use. May be null.
     * @return The RenderedOp destination.
     * @throws IllegalArgumentException if source0 is null.
     */
    public static RenderedOp create(RenderedImage source0, RenderingHints hints) {
        ParameterBlockJAI pb = new ParameterBlockJAI("Scale", RenderedRegistryMode.MODE_NAME);
        // Setting of the source
        pb.setSource("source0", source0);
        // Execution of the operation.
        return JAI.create("Scale", pb, hints);
    }
}


text:
using System;
using System.Collections.Generic;
using System.Linq;

public class Program
{
    public static void Main()
    {
        var inputList = Console.ReadLine().Split().Select(int.Parse).ToList();
        var shiftsCount = int.Parse(Console.ReadLine());

        var resulstsList = new List<long>(new long[inputList.Count]);

        for (int i = 0; i < shiftsCount; i++)
        {
            var oldLastDigit = inputList.Last();
            inputList.Remove(inputList.Last());
            inputList.Insert(0, oldLastDigit);

            resulstsList = inputList.Zip(resulstsList, (x, y) => x + y).ToList();
        }

        Console.WriteLine(string.Join(" ", resulstsList));
    }
}


text:
import { IGatsbyState, ISetResolvedThemesAction } from "../types";
export declare const themesReducer: (state: IGatsbyState["themes"], action: ISetResolvedThemesAction) => IGatsbyState["themes"];


text:
namespace ui {

class VirtualKeyboardControllerObserver;

// This class provides functionality to display the on screen keyboard and
// add observers to observe changes in it.
class COMPONENT_EXPORT(UI_BASE_IME) VirtualKeyboardController {
 public:
  virtual ~VirtualKeyboardController() = default;

  // Attempt to display the keyboard.
  virtual bool DisplayVirtualKeyboard() = 0;

  // Attempt to dismiss the keyboard
  virtual void DismissVirtualKeyboard() = 0;

  // Adds a registered observer.
  virtual void AddObserver(VirtualKeyboardControllerObserver* observer) = 0;

  // Removes a registered observer.
  virtual void RemoveObserver(VirtualKeyboardControllerObserver* observer) = 0;

  // Returns true if the virtual keyboard is currently visible.
  virtual bool IsKeyboardVisible() = 0;

 protected:
  VirtualKeyboardController() = default;
};

}  // namespace ui

#endif  // UI_BASE_IME_VIRTUAL_KEYBOARD_CONTROLLER_H_


text:
package org.caleydo.core.view.opengl.layout.util;

import gleem.linalg.Vec3f;

import javax.media.opengl.GL2;

import org.caleydo.core.util.color.Color;
import org.caleydo.core.view.opengl.layout.ALayoutRenderer;
import org.caleydo.core.view.opengl.util.texture.TextureManager;

/**
 * Renders a texture within the layout element.
 *
 * @author Partl
 */
public class TextureRenderer extends ALayoutRenderer {

	private String imagePath;
	private TextureManager textureManager;

	/**
	 * Constructor.
	 *
	 * @param imagePath
	 *            Path to the image that shall be used as texture.
	 * @param textureManager
	 */
	public TextureRenderer(String imagePath, TextureManager textureManager) {
		this.imagePath = imagePath;
		this.textureManager = textureManager;
	}

	@Override
	protected void renderContent(GL2 gl) {
		Vec3f lowerLeftCorner = new Vec3f(0, 0, 0);
		Vec3f lowerRightCorner = new Vec3f(x, 0, 0);
		Vec3f upperRightCorner = new Vec3f(x, y, 0);
		Vec3f upperLeftCorner = new Vec3f(0, y, 0);

		textureManager.renderTexture(gl, imagePath, lowerLeftCorner, lowerRightCorner,
 upperRightCorner,
				upperLeftCorner, Color.WHITE);
	}

	@Override
	protected boolean permitsWrappingDisplayLists() {
		return true;
	}

}


text:
var request = require('./request');

function Resources(name) {
  this.name = name;
}

Resources.prototype.resource = function(id) {
  var args = [this.name];

  if(id) {
    args.push(id.toString());
  }

  return args.join('/');
};

Resources.prototype.all = function(callback) {
  resource = this.resource.bind(this);
  return function() {
    return request.get(resource()).then(function(res) {
      return res.body;
    }).then(callback.bind(this));
  };
};

Resources.prototype.get = function(callback) {
  resource = this.resource.bind(this);
  return function(id) {
    return request.get(resource(id)).then(function(res) {
      return res.body;
    }).then(callback.bind(this));
  };
};

Resources.prototype.create = function(callback) {
  resource = this.resource.bind(this);
  return function(data) {
    return request.post(resource(), data).then(function(res) {
      return res.body;
    }).then(callback.bind(this));
  };
};

Resources.prototype.update = function(callback) {
  resource = this.resource.bind(this);
  return function(id, data) {
    return request.put(resource(id), data).then(function(res) {
      return res.body;
    }).then(callback.bind(this));
  };
};

Resources.prototype.remove = function(callback) {
  resource = this.resource.bind(this);
  return function(id) {
    return request.del(resource(id)).then(function(res) {
      return res.body;
    }).then(callback.bind(this));
  };
};

module.exports = Resources;


text:
ACCEPTED

#### According to
International Plant Names Index

#### Published in
null

#### Original name
Janusia californica Benth.

### Remarks
null


text:
// DBConnection.java
package quizme;

import java.sql.*;

/**
 * Wrapper class around a Connection to a database. Connects to MYSQL and
 * closes the connection once a context ends. Gives any servlets that need
 * to interact with the database a Statement object.
 */
public class DBConnection {
	static String account = MyDBInfo.MYSQL_USERNAME;
	static String password = MyDBInfo.MYSQL_PASSWORD;
	static String server = MyDBInfo.MYSQL_DATABASE_SERVER;
	static String database = MyDBInfo.MYSQL_DATABASE_NAME;

	private Connection con;

	public DBConnection() {
		try {
			Class.forName("com.mysql.jdbc.Driver");
			con = DriverManager.getConnection
					("jdbc:mysql://" + server, account, password);
			con.createStatement().executeQuery("USE " + database);
		} catch (SQLException e) {
			e.printStackTrace();
			return;
		}
		catch (ClassNotFoundException e) {
			e.printStackTrace();
			return;
		}
	}

	public void closeConnection() {
		try {
			con.close();
		} catch (SQLException e) {
			e.printStackTrace();
		}
	}

	public PreparedStatement getPreparedStatement(String query) {
		PreparedStatement stmt = null;
		try {
			stmt = con.prepareStatement(query);
		} catch (SQLException e) {
			e.printStackTrace();
		}

		return stmt;
	}
}


text:
module Zena
  module Use
    module Context
      module ViewMethods

        # Dynamic resolution of the author class from the user prototype
        def self.visitor_node_proc
          Proc.new do |h, r, s|
            res = {:method => 'visitor.node', :nil => true}
            if prototype  = visitor.prototype
              res[:class] = prototype.vclass
            else
              res[:class] = VirtualClass['Node']
            end
            res
          end
        end

        include RubyLess
        safe_method :start => {:method => 'start_node', :class => Node}
        safe_method :visitor => User
        safe_method :visitor_node => visitor_node_proc
        safe_method :main => {:method => '@node', :class => Node}
        safe_method :root => {:method => 'visitor.site.root_node', :class => Node, :nil => true}
        safe_method :site => {:class => Site, :method => 'visitor.site'}

        # Group an array of records by key.
        def group_array(list)
          return nil if list.empty?
          groups = []
          h = {}
          list.each do |e|
            key = yield(e)
            unless group_id = h[key]
              h[key] = group_id = groups.size
              groups << []
            end
            groups[group_id] << e
          end
          groups
        end

        def sort_array(list)
          list.sort do |a,b|
            va = yield([a].flatten[0])
            vb = yield([b].flatten[0])
            if va && vb
              va <=> vb
            elsif va
              1
            elsif vb
              -1
            else
              0
            end
          end
        end

        def min_array(list)
          list.flatten.min do |a,b|
            va = yield(a)
            vb = yield(b)
            if va && vb
              va <=> vb
            elsif va
              1
            elsif vb
              -1
            else
              0
            end
          end
        end

        def max_array(list)
          list.flatten.min do |a,b|
            va = yield(a)
            vb = yield(b)
            if va && vb
              vb <=> va
            elsif vb
              1
            elsif va
              -1
            else
              0
            end
          end
        end

        # main node before ajax stuff (the one in browser url)
        def start_node
          @start_node ||= if params[:s]
            secure(Node) { Node.find_by_zip(params[:s]) }
          else
            @node
          end
        end

        # Enter page numbers context.
        #
        # ==== Parameters
        #
        # * +current+     - current page number
        # * +count+       - total number of pages
        # * +join_string+ - (optional) string to use to join page numbers
        # * +max_count+   - (optional) maximum number of pages to display
        # * +&block+      - block to yield for each page number. Receives |page_number, join_string|.
        def page_numbers(current, count, join_string = nil, max_count = nil)
          max_count ||= 10
          join_string ||= ''
          join_str = ''
          if count <= max_count
            1.upto(count) do |p|
              yield(p, join_str, p)
              join_str = join_string
            end
          else
            # only first pages (centered around current page)
            if current - (max_count/2) > 0
              max = current + (max_count/2)
            else
              max = max_count
            end

            if count > max
              finish = end_dots = max
            else
              finish = count
            end

            start  = [finish - max_count + 1,1].max
            if start > 1
              start_dots = start
            end

            start.upto(finish) do |p|
              yield(p, join_str, (p == start_dots || p == end_dots) ? '…' : p.to_s)
              join_str = join_string
            end
          end
        end
      end # ViewMethods

      module ZafuMethods

        # Enter a new context (<r:context find='all' select='pages'>). This is the same as '<r:pages>...</r:pages>'). It is
        # considered better style to use '<r:pages>...</r:pages>' instead of the more general '<r:context>' because the tags
        # give a clue on the context at start and end. Another way to open a context is the 'do' syntax: "
...
".
        def r_context
          return parser_error("missing 'select' parameter") unless method = @params[:select]
          querybuilder_eval(method)
        end

        alias r_find r_context

        # Group elements in a list. Use :order to specify order.
        def r_group
          return parser_error("cannot be used outside of a list") unless node.list_context?
          return parser_error("missing 'by' clause") unless key = @params[:by]

          #sort_key = @params[:sort] || 'title'
          # if node.will_be?(DataEntry) && DataEntry::NodeLinkSymbols.include?(key.to_sym)
          #   key = "#{key}_id"
          #   #sort_block = "{|e| (e.#{key} || {})[#{sort_key.to_sym.inspect}]}"
          #   group_array = "group_array(#{node}) {|e| e.#{key}}"
          # elsif node.will_be?(Node)
          #   if ['project', 'parent', 'section'].include?(key)
          #     #sort_block  = "{|e| (e.#{key} || {})[#{sort_key.to_sym.inspect}]}"
          #     group_array = "group_array(#{node}) {|e| e.#{key}_id}"
          #   end
          # end

          if %w{parent project section}.include?(key)
            key = "e.#{key}_id"
          else
            receiver = RubyLess::TypedString.new('e', :class => node.klass.first, :query => node.opts[:query])
            key = RubyLess.translate(receiver, key)
          end

          #if sort_block
          #  out "<% grp_#{list_var} = sort_array(#{group_array}) #{sort_block} -%>"
          #else
          #end
          method = "group_array(#{node}) {|e| #{key}}"
          out "<% if #{var} = #{method} -%>"
            open_node_context({:method => method}, :node => node.move_to(var, [node.klass], :query => node.opts[:query])) do
              if child['each_group']
                out expand_with
              else
                @var = nil
                r_each
              end
            end
          out "<% end -%>"

          #if descendant('each_group')
          #  out expand_with(:group => var)
          #else
          #  @context[:group] = var
          #  r_each_group
          #end
        end

        def r_each_group
          r_each
        end
      end # ZafuMethods
    end # Context
  end # Use
end # Zena


text:
.. _apielements:

API Elements
============

Python Refact contains a registry for the `API Elements`_ Refract Profile which
provide conviences around interacting with API Elements.

.. code-block:: python

    from refract.json import JSONDeserialiser
    from refract.contrib.apielements import registry

    deserialiser = JSONDeserialiser(registry=registry)
    parseResult = deserialiser.deserialise('{"element": "parseResult"}')

    if parseResult.errors:
        print('Parse Result contained errors')

.. _API Elements: http://api-elements.readthedocs.io

.. contents::
  :depth: 3

.. module:: refract.contrib.apielements

ParseResult
-----------

.. autoclass:: ParseResult
   :members:

Annotation
----------

.. autoclass:: Annotation
   :members:

Category
--------

.. autoclass:: Category
   :members:

Copy
----

.. autoclass:: Copy
   :members:

Resource
--------

.. autoclass:: Resource
   :members:

Transition
----------

.. autoclass:: Transition
   :members:

HTTPTransaction
---------------

.. autoclass:: HTTPTransaction
   :members:

HTTPRequest
-----------

.. autoclass:: HTTPRequest
   :members: method, headers, assets, body_asset, body_schema_asset

HTTPResponse
------------

.. autoclass:: HTTPResponse
   :members: status_code, headers, assets, body_asset, body_schema_asset

Asset
-----

.. autoclass:: Asset
   :members:


text:
const chalk = require('chalk')

// Prints a note
module.exports = msg => {
  console.log(`${chalk.yellow('> NOTE:')} ${msg}`)
}


text:
class WXDLLIMPEXP_ADV wxDataViewRenderer : public wxDataViewRendererBase
{
public:
  wxDataViewRenderer(const wxString& varianttype, wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT, int align = wxDVR_DEFAULT_ALIGNMENT);
  virtual void SetMode(wxDataViewCellMode mode);
  virtual wxDataViewCellMode GetMode() const;
  virtual void SetAlignment(int align);
  virtual int GetAlignment() const;
  virtual void EnableEllipsize(wxEllipsizeMode mode = wxELLIPSIZE_MIDDLE);
  virtual wxEllipsizeMode GetEllipsizeMode() const;
};
#endif


text:
"""Common definitions.
"""

import logging
from collections import namedtuple

LOGGER = logging.getLogger(__name__)

# A unit of currency.
CurrencyAmount = namedtuple(
		'CurrencyAmount',
		'currency amount')

# Cost-free acquisition of a property. Similar to a BUY, but the cost is at
# $0 and the event is fully taxable as salary.
TRANS_ACQUIRE = 'ACQUIRE'
# Market purchase of a property.
TRANS_BUY = 'BUY'
# Market sell of a property.
TRANS_SELL = 'SELL'
# Return of capital.
TRANS_CAPITAL_RETURN = 'CAPITAL_RETURN'
# Dividends.
TRANS_DIVIDEND = 'DIVIDEND'
# Management fees. These can be deducted as carrying charges.
TRANS_FEE = 'FEE'

# Transactions are a named tuple with fields as follows:
#   date: A datetime object.
#   symbol: The name of the property (usually ticker symbol).
#   type: The type of the transaction, from the TRANS_ enum.
#   units: The number of items of property involved in the transaction.
#   value: Per property item value, as a CurrencyAmount.
#   fees: Any fees associated with the transaction, as a CurrencyAmount.
Transaction = namedtuple(
		'Transaction',
		'date settlement_date symbol type units value fees')

def TransactionComparator(tx1, tx2):
	"""Transaction comparator.

	Stably sorts by increasing dates.
	"""
	if tx1.settlement_date < tx2.settlement_date:
		return -1
	elif tx1.settlement_date == tx2.settlement_date:
		return 0
	else:
		return 1


text:
export {
  defaultId, precompile, PrecompileOptions
} from "./lib/compiler";

export {
  default as TemplateCompiler
} from "./lib/template-compiler";

// exported only for tests
export { default as TemplateVisitor } from './lib/template-visitor';