text:
#ifndef __CIRCUIT_H__
#define __CIRCUIT_H__

#include <cmath>
#include <cstdio>
#include "legion.h"

//#define DISABLE_MATH

#define WIRE_SEGMENTS 10
#define STEPS         10000
#define DELTAT        1e-6

#define INDEX_TYPE    unsigned
#define INDEX_DIM     1

using namespace Legion;

// Data type definitions

enum PointerLocation {
  PRIVATE_PTR,
  SHARED_PTR,
  GHOST_PTR,
};

enum {
  TOP_LEVEL_TASK_ID,
  CALC_NEW_CURRENTS_TASK_ID,
  DISTRIBUTE_CHARGE_TASK_ID,
  UPDATE_VOLTAGES_TASK_ID,
  CHECK_FIELD_TASK_ID,
#ifndef SEQUENTIAL_LOAD_CIRCUIT
  INIT_NODES_TASK_ID,
  INIT_WIRES_TASK_ID,
  INIT_LOCATION_TASK_ID,
#endif
};

enum {
  REDUCE_ID = LEGION_REDOP_SUM_FLOAT32,
};

enum NodeFields {
  FID_NODE_CAP,
  FID_LEAKAGE,
  FID_CHARGE,
  FID_NODE_VOLTAGE,
  FID_PIECE_COLOR,
};

enum WireFields {
  FID_IN_PTR,
  FID_OUT_PTR,
  FID_IN_LOC,
  FID_OUT_LOC,
  FID_INDUCTANCE,
  FID_RESISTANCE,
  FID_WIRE_CAP,
  FID_CURRENT,
  FID_WIRE_VOLTAGE = (FID_CURRENT+WIRE_SEGMENTS),
  FID_LAST = (FID_WIRE_VOLTAGE+WIRE_SEGMENTS-1),
};

enum LocatorFields {
  FID_LOCATOR,
};

typedef FieldAccessor<READ_ONLY,float,1,coord_t,Realm::AffineAccessor<float,1,coord_t> > AccessorROfloat;
typedef FieldAccessor<READ_WRITE,float,1,coord_t,Realm::AffineAccessor<float,1,coord_t> > AccessorRWfloat;
typedef FieldAccessor<WRITE_ONLY,float,1,coord_t,Realm::AffineAccessor<float,1,coord_t> > AccessorWOfloat;

// accessors with bounds checks are large enough to cause problems with
//  total parameter sizes to CUDA kernels, and as long as one accessor for
//  each region has bounds checks, that's enough to catch errors, so define
//  an accessor type that explicitly does NOT have bounds checks
typedef FieldAccessor<READ_WRITE,float,1,coord_t,Realm::AffineAccessor<float,1,coord_t>, false> AccessorRWfloat_nobounds;

typedef FieldAccessor<READ_ONLY,Point<1>,1,coord_t,Realm::AffineAccessor<Point<1>,1,coord_t> > AccessorROpoint;
typedef FieldAccessor<READ_WRITE,Point<1>,1,coord_t,Realm::AffineAccessor<Point<1>,1,coord_t> > AccessorRWpoint;
typedef FieldAccessor<WRITE_ONLY,Point<1>,1,coord_t,Realm::AffineAccessor<Point<1>,1,coord_t> > AccessorWOpoint;

typedef FieldAccessor<READ_ONLY,PointerLocation,1,coord_t,Realm::AffineAccessor<PointerLocation,1,coord_t> > AccessorROloc;
typedef FieldAccessor<READ_WRITE,PointerLocation,1,coord_t,Realm::AffineAccessor<PointerLocation,1,coord_t> > AccessorRWloc;
typedef FieldAccessor<WRITE_ONLY,PointerLocation,1,coord_t,Realm::AffineAccessor<PointerLocation,1,coord_t> > AccessorWOloc;

struct Circuit {
  LogicalRegion all_nodes;
  LogicalRegion all_wires;
  LogicalRegion node_locator;
};

struct CircuitPiece {
  LogicalRegion pvt_nodes, shr_nodes, ghost_nodes;
  LogicalRegion pvt_wires;
  unsigned      num_wires;
  Point<1>      first_wire;
  unsigned      num_nodes;
  Point<1>      first_node;

  float         dt;
  int           steps;
};

struct Partitions {
  LogicalPartition pvt_wires;
  LogicalPartition pvt_nodes, shr_nodes, ghost_nodes;
  LogicalPartition node_locations;
};

class CalcNewCurrentsTask : public IndexLauncher {
public:
  CalcNewCurrentsTask(LogicalPartition lp_pvt_wires,
                      LogicalPartition lp_pvt_nodes,
                      LogicalPartition lp_shr_nodes,
                      LogicalPartition lp_ghost_nodes,
                      LogicalRegion lr_all_wires,
                      LogicalRegion lr_all_nodes,
                      const Domain &launch_domain,
                      const ArgumentMap &arg_map);
public:
  bool launch_check_fields(Context ctx, Runtime *runtime);
public:
  static const char * const TASK_NAME;
  static const int TASK_ID = CALC_NEW_CURRENTS_TASK_ID;
  static const bool CPU_BASE_LEAF = true;
  static const bool GPU_BASE_LEAF = true;
  static const int MAPPER_ID = 0;
  static const int REGIONS = 4;
public:
  static void cpu_base_impl(const CircuitPiece &piece,
                            const std::vector<PhysicalRegion> &regions,
                            Context ctx, Runtime* rt);
#if defined(LEGION_USE_CUDA) || defined(LEGION_USE_HIP)
  static void gpu_base_impl(const CircuitPiece &piece,
                            const std::vector<PhysicalRegion> &regions);
#endif
};

class DistributeChargeTask : public IndexLauncher {
public:
  DistributeChargeTask(LogicalPartition lp_pvt_wires,
                       LogicalPartition lp_pvt_nodes,
                       LogicalPartition lp_shr_nodes,
                       LogicalPartition lp_ghost_nodes,
                       LogicalRegion lr_all_wires,
                       LogicalRegion lr_all_nodes,
                       const Domain &launch_domain,
                       const ArgumentMap &arg_map);
public:
  bool launch_check_fields(Context ctx, Runtime *runtime);
public:
  static const char * const TASK_NAME;
  static const int TASK_ID = DISTRIBUTE_CHARGE_TASK_ID;
  static const bool CPU_BASE_LEAF = true;
  static const bool GPU_BASE_LEAF = true;
  static const int MAPPER_ID = 0;
  static const int REGIONS = 4;
public:
  static void cpu_base_impl(const CircuitPiece &piece,
                            const std::vector<PhysicalRegion> &regions,
                            Context ctx, Runtime* rt);
#if defined(LEGION_USE_CUDA) || defined(LEGION_USE_HIP)
  static void gpu_base_impl(const CircuitPiece &piece,
                            const std::vector<PhysicalRegion> &regions);
#endif
};

class UpdateVoltagesTask : public IndexLauncher {
public:
  UpdateVoltagesTask(LogicalPartition lp_pvt_nodes,
                     LogicalPartition lp_shr_nodes,
                     LogicalPartition lp_node_locations,
                     LogicalRegion lr_all_nodes,
                     LogicalRegion lr_node_locator,
                     const Domain &launch_domain,
                     const ArgumentMap &arg_map);
public:
  bool launch_check_fields(Context ctx, Runtime *runtime);
public:
  static const char * const TASK_NAME;
  static const int TASK_ID = UPDATE_VOLTAGES_TASK_ID;
  static const bool CPU_BASE_LEAF = true;
  static const bool GPU_BASE_LEAF = true;
  static const int MAPPER_ID = 0;
  static const int REGIONS = 5;
public:
  static void cpu_base_impl(const CircuitPiece &piece,
                            const std::vector<PhysicalRegion> &regions,
                            Context ctx, Runtime* rt);
#if defined(LEGION_USE_CUDA) || defined(LEGION_USE_HIP)
  static void gpu_base_impl(const CircuitPiece &piece,
                            const std::vector<PhysicalRegion> &regions);
#endif
};

class CheckTask : public IndexLauncher {
public:
  CheckTask(LogicalPartition lp,
            LogicalRegion lr,
            FieldID fid,
            const Domain &launch_domain,
            const ArgumentMap &arg_map);
public:
  bool dispatch(Context ctx, Runtime *runtime, bool success);
public:
  static const char * const TASK_NAME;
  static const int TASK_ID = CHECK_FIELD_TASK_ID;
  static const bool LEAF = true;
  static const int MAPPER_ID = 0;
public:
  static bool cpu_impl(const Task *task,
                       const std::vector<PhysicalRegion> &regions,
                       Context ctx, Runtime *runtime);
  static void register_task(void);
};

#ifndef SEQUENTIAL_LOAD_CIRCUIT
class InitNodesTask : public IndexLauncher {
public:
  InitNodesTask(LogicalRegion lr_all_nodes,
                LogicalPartition lp_equal_nodes,
                IndexSpace launch_space);
public:
  static const char * const TASK_NAME;
  static const int TASK_ID = INIT_NODES_TASK_ID;
  static const bool LEAF = true;
  static const int MAPPER_ID = 0;
public:
  static void cpu_base_impl(const Task *task,
                            const std::vector<PhysicalRegion> &regions,
                            Context ctx, Runtime *runtime);
  static void register_task(void);
};

class InitWiresTask : public IndexLauncher {
public:
  struct Args {
  public:
    Args(int p, int n, int pct)
      : num_pieces(p), nodes_per_piece(n), pct_wire_in_piece(pct) { }
  public:
    int num_pieces;
    int nodes_per_piece;
    int pct_wire_in_piece;
  };
public:
  InitWiresTask(LogicalRegion lr_all_wires,
                LogicalPartition lp_equal_wires,
                IndexSpace launch_space,
                int num_pieces, int nodes_per_piece,
                int pct_wire_in_piece);
protected:
  Args args;
public:
  static const char * const TASK_NAME;
  static const int TASK_ID = INIT_WIRES_TASK_ID;
  static const bool LEAF = true;
  static const int MAPPER_ID = 0;
public:
  static void cpu_base_impl(const Task *task,
                            const std::vector<PhysicalRegion> &regions,
                            Context ctx, Runtime *runtime);
  static void register_task(void);
};

class InitLocationTask : public IndexLauncher {
public:
  struct Args {
  public:
    Args(LogicalPartition p, LogicalPartition s)
      : lp_private(p), lp_shared(s) { }
  public:
    LogicalPartition lp_private;
    LogicalPartition lp_shared;
  };
public:
  InitLocationTask(LogicalRegion lr_location,
                   LogicalPartition lp_equal_location,
                   LogicalRegion lr_all_wires,
                   LogicalPartition lp_equal_wires,
                   IndexSpace launch_space,
                   LogicalPartition lp_private,
                   LogicalPartition lp_shared);
protected:
  Args args;
public:
  static const char * const TASK_NAME;
  static const int TASK_ID = INIT_LOCATION_TASK_ID;
  static const bool LEAF = true;
  static const int MAPPER_ID = 0;
public:
  static void cpu_base_impl(const Task *task,
                            const std::vector<PhysicalRegion> &regions,
                            Context ctx, Runtime *runtime);
  static void register_task(void);
};
#endif

namespace TaskHelper {
  template<typename T>
  void dispatch_task(T &launcher, Context ctx, Runtime *runtime,
                     bool perform_checks, bool &simulation_success, bool wait = false)
  {
    FutureMap fm = runtime->execute_index_space(ctx, launcher);
    if (wait)
      fm.wait_all_results();
    // See if we need to perform any checks
    if (simulation_success && perform_checks)
    {
      simulation_success = launcher.launch_check_fields(ctx, runtime) && simulation_success;
      if (!simulation_success)
        printf("WARNING: First NaN values found in %s\n", T::TASK_NAME);
    }
  }

  template<typename T>
  void base_cpu_wrapper(const Task *task,
                        const std::vector<PhysicalRegion> &regions,
                        Context ctx, Runtime *runtime)
  {
    const CircuitPiece *p = (CircuitPiece*)task->local_args;
    T::cpu_base_impl(*p, regions, ctx, runtime);
  }

#if defined(LEGION_USE_CUDA) || defined(LEGION_USE_HIP)
  template<typename T>
  void base_gpu_wrapper(const Task *task,
                        const std::vector<PhysicalRegion> &regions,
                        Context ctx, Runtime *runtime)
  {
    const CircuitPiece *p = (CircuitPiece*)task->local_args;
    T::gpu_base_impl(*p, regions);
  }
#endif

  template<typename T>
  void register_hybrid_variants(LayoutConstraintID id)
  {
    {
      TaskVariantRegistrar registrar(T::TASK_ID, T::TASK_NAME);
      registrar.add_constraint(ProcessorConstraint(Processor::LOC_PROC));
      registrar.set_leaf(T::CPU_BASE_LEAF);
      // Add alignment constraints for any vector architectures
      if (id > 0)
      {
        for (int i = 0; i < T::REGIONS; i++)
          registrar.add_layout_constraint_set(i, id);
      }
      Runtime::preregister_task_variant<base_cpu_wrapper<T> >(registrar, T::TASK_NAME);
    }

#if defined(LEGION_USE_CUDA) || defined(LEGION_USE_HIP)
    {
      TaskVariantRegistrar registrar(T::TASK_ID, T::TASK_NAME);
      registrar.add_constraint(ProcessorConstraint(Processor::TOC_PROC));
      registrar.set_leaf(T::GPU_BASE_LEAF);
      Runtime::preregister_task_variant<base_gpu_wrapper<T> >(registrar, T::TASK_NAME);
    }
#endif
  }
};

#endif // __CIRCUIT_H__


text:
<?php
/*

    This page is hit on every successful page load

    Please keep this file as light as possible.

*/

function p($var) { log::w($var); }

?>

redpajama_set_name: RedPajamaGithub


text:
Test adding tests.

    <form name="suiteInfo" action="/suite/add" method="post">

          Suite Name:
          <input type="text" name="suiteName" id="suiteName">

          Project Name:
          <input type="text" name="projectName" id="projectName">

          Description:
          <input type="text" name="description" id="description">

          Tokens:
          <input type="text" name="suiteTokens" id="suiteTokens">

          Interval:
          <input type="text" name="suiteInterval" id="suiteInterval">

          Num of tests to be generated:
          <input type="text" name="numOfTests" id="numOfTests">

      <input type="button" name="generateTests" value="Generate Tests" id="generateTests" onclick="autoGenerateTests(false);">
      <input type="button" value="Add Suite" onclick="addSuiteAndTests();">
    </form>

Test deleting tests.

    <form name="deleteTests" action="/suite/delete_tests" method="get">

          Suite Name:
          <input type="text" name="suiteName" id="suiteName">

          Project Name:
          <input type="text" name="projectName" id="projectName">

      <input type="submit" value="Delete tests">

    </form>

Test load all suites of a project

        Project Name:
        <input type="text" name="projectName2" id="projectName2">
        <input type="button" name="loadSuitesBtn" id="loadSuiteBtn" value="load" onclick="loadSuitesOfProject();">

        Select Suite:
        <select name="selectSuites" id="selectSuites"></select>
        <input type="button" name="runSuite" value="Run Suite" onclick="runSuite();">
        <input type="button" name="showRuns" value="Show Runs in Suite" onclick="showRuns();">
        <input type="text" name="intervalInMin" id="intervalInMin"> mins
        <input type="button" name="scheduleSuite" value="Schedule this Suite" onclick="scheduleSuite();">
        <input type="button" name="checkScheduledSuite" value="Run Scheduled Suite" onclick="checkScheduledSuite();">

        Select Run:
        <select name="selectRuns" id="selectRuns"></select>
        <input type="button" name="deleteRun" value="Delete Run" onclick="deleteRun();">
        <input type="button" name="showTestIds" value="Show Test Ids" onclick="showTestIds();">
        <input type="button" name="showPassedNum" value="Show Passed num" onclick="showNumOfSuite('passed');">
        <input type="button" name="showFailedNum" value="Show Failed num" onclick="showNumOfSuite('failed');">

Test fetch a random job.

        Tokens:
        <input type="text" name="tokens" id="tokens">
        <input type="text" name="numOfResults" id="numOfResults" value="1">
        <input type="button" name="fetchJob" id="fetchJob" value="fetch" onclick="fetchJobs();">


text:
package models

import (
	"encoding/json"
	"errors"
	"fmt"
)

type DiagnosticOrder struct {
	DomainResource        `bson:",inline"`
	Subject               *Reference                      `bson:"subject,omitempty" json:"subject,omitempty"`
	Orderer               *Reference                      `bson:"orderer,omitempty" json:"orderer,omitempty"`
	Identifier            []Identifier                    `bson:"identifier,omitempty" json:"identifier,omitempty"`
	Encounter             *Reference                      `bson:"encounter,omitempty" json:"encounter,omitempty"`
	Reason                []CodeableConcept               `bson:"reason,omitempty" json:"reason,omitempty"`
	SupportingInformation []Reference                     `bson:"supportingInformation,omitempty" json:"supportingInformation,omitempty"`
	Specimen              []Reference                     `bson:"specimen,omitempty" json:"specimen,omitempty"`
	Status                string                          `bson:"status,omitempty" json:"status,omitempty"`
	Priority              string                          `bson:"priority,omitempty" json:"priority,omitempty"`
	Event                 []DiagnosticOrderEventComponent `bson:"event,omitempty" json:"event,omitempty"`
	Item                  []DiagnosticOrderItemComponent  `bson:"item,omitempty" json:"item,omitempty"`
	Note                  []Annotation                    `bson:"note,omitempty" json:"note,omitempty"`
}

// Custom marshaller to add the resourceType property, as required by the specification
func (resource *DiagnosticOrder) MarshalJSON() ([]byte, error) {
	resource.ResourceType = "DiagnosticOrder"
	// Dereferencing the pointer to avoid infinite recursion.
	// Passing in plain old x (a pointer to DiagnosticOrder), would cause this same
	// MarshallJSON function to be called again
	return json.Marshal(*resource)
}

func (x *DiagnosticOrder) GetBSON() (interface{}, error) {
	x.ResourceType = "DiagnosticOrder"
	// See comment in MarshallJSON to see why we dereference
	return *x, nil
}

// The "diagnosticOrder" sub-type is needed to avoid infinite recursion in UnmarshalJSON
type diagnosticOrder DiagnosticOrder

// Custom unmarshaller to properly unmarshal embedded resources (represented as interface{})
func (x *DiagnosticOrder) UnmarshalJSON(data []byte) (err error) {
	x2 := diagnosticOrder{}
	if err = json.Unmarshal(data, &x2); err == nil {
		if x2.Contained != nil {
			for i := range x2.Contained {
				x2.Contained[i] = MapToResource(x2.Contained[i], true)
			}
		}
		*x = DiagnosticOrder(x2)
		return x.checkResourceType()
	}
	return
}

func (x *DiagnosticOrder) checkResourceType() error {
	if x.ResourceType == "" {
		x.ResourceType = "DiagnosticOrder"
	} else if x.ResourceType != "DiagnosticOrder" {
		return errors.New(fmt.Sprintf("Expected resourceType to be DiagnosticOrder, instead received %s", x.ResourceType))
	}
	return nil
}

type DiagnosticOrderEventComponent struct {
	BackboneElement `bson:",inline"`
	Status          string           `bson:"status,omitempty" json:"status,omitempty"`
	Description     *CodeableConcept `bson:"description,omitempty" json:"description,omitempty"`
	DateTime        *FHIRDateTime    `bson:"dateTime,omitempty" json:"dateTime,omitempty"`
	Actor           *Reference       `bson:"actor,omitempty" json:"actor,omitempty"`
}

type DiagnosticOrderItemComponent struct {
	BackboneElement `bson:",inline"`
	Code            *CodeableConcept                `bson:"code,omitempty" json:"code,omitempty"`
	Specimen        []Reference                     `bson:"specimen,omitempty" json:"specimen,omitempty"`
	BodySite        *CodeableConcept                `bson:"bodySite,omitempty" json:"bodySite,omitempty"`
	Status          string                          `bson:"status,omitempty" json:"status,omitempty"`
	Event           []DiagnosticOrderEventComponent `bson:"event,omitempty" json:"event,omitempty"`
}

type DiagnosticOrderPlus struct {
	DiagnosticOrder                     `bson:",inline"`
	DiagnosticOrderPlusRelatedResources `bson:",inline"`
}

type DiagnosticOrderPlusRelatedResources struct {
	IncludedGroupResourcesReferencedBySubject                   *[]Group                 `bson:"_includedGroupResourcesReferencedBySubject,omitempty"`
	IncludedDeviceResourcesReferencedBySubject                  *[]Device                `bson:"_includedDeviceResourcesReferencedBySubject,omitempty"`
	IncludedPatientResourcesReferencedBySubject                 *[]Patient               `bson:"_includedPatientResourcesReferencedBySubject,omitempty"`
	IncludedLocationResourcesReferencedBySubject                *[]Location              `bson:"_includedLocationResourcesReferencedBySubject,omitempty"`
	IncludedEncounterResourcesReferencedByEncounter             *[]Encounter             `bson:"_includedEncounterResourcesReferencedByEncounter,omitempty"`
	IncludedPractitionerResourcesReferencedByActorPath1         *[]Practitioner          `bson:"_includedPractitionerResourcesReferencedByActorPath1,omitempty"`
	IncludedPractitionerResourcesReferencedByActorPath2         *[]Practitioner          `bson:"_includedPractitionerResourcesReferencedByActorPath2,omitempty"`
	IncludedDeviceResourcesReferencedByActorPath1               *[]Device                `bson:"_includedDeviceResourcesReferencedByActorPath1,omitempty"`
	IncludedDeviceResourcesReferencedByActorPath2               *[]Device                `bson:"_includedDeviceResourcesReferencedByActorPath2,omitempty"`
	IncludedPatientResourcesReferencedByPatient                 *[]Patient               `bson:"_includedPatientResourcesReferencedByPatient,omitempty"`
	IncludedPractitionerResourcesReferencedByOrderer            *[]Practitioner          `bson:"_includedPractitionerResourcesReferencedByOrderer,omitempty"`
	IncludedSpecimenResourcesReferencedBySpecimenPath1          *[]Specimen              `bson:"_includedSpecimenResourcesReferencedBySpecimenPath1,omitempty"`
	IncludedSpecimenResourcesReferencedBySpecimenPath2          *[]Specimen              `bson:"_includedSpecimenResourcesReferencedBySpecimenPath2,omitempty"`
	RevIncludedProvenanceResourcesReferencingTarget             *[]Provenance            `bson:"_revIncludedProvenanceResourcesReferencingTarget,omitempty"`
	RevIncludedDocumentManifestResourcesReferencingContentref   *[]DocumentManifest      `bson:"_revIncludedDocumentManifestResourcesReferencingContentref,omitempty"`
	RevIncludedDocumentManifestResourcesReferencingRelatedref   *[]DocumentManifest      `bson:"_revIncludedDocumentManifestResourcesReferencingRelatedref,omitempty"`
	RevIncludedCarePlanResourcesReferencingActivityreference    *[]CarePlan              `bson:"_revIncludedCarePlanResourcesReferencingActivityreference,omitempty"`
	RevIncludedListResourcesReferencingItem                     *[]List                  `bson:"_revIncludedListResourcesReferencingItem,omitempty"`
	RevIncludedDocumentReferenceResourcesReferencingRelatedref  *[]DocumentReference     `bson:"_revIncludedDocumentReferenceResourcesReferencingRelatedref,omitempty"`
	RevIncludedOrderResourcesReferencingDetail                  *[]Order                 `bson:"_revIncludedOrderResourcesReferencingDetail,omitempty"`
	RevIncludedBasicResourcesReferencingSubject                 *[]Basic                 `bson:"_revIncludedBasicResourcesReferencingSubject,omitempty"`
	RevIncludedDiagnosticReportResourcesReferencingRequest      *[]DiagnosticReport      `bson:"_revIncludedDiagnosticReportResourcesReferencingRequest,omitempty"`
	RevIncludedImagingStudyResourcesReferencingOrder            *[]ImagingStudy          `bson:"_revIncludedImagingStudyResourcesReferencingOrder,omitempty"`
	RevIncludedAuditEventResourcesReferencingReference          *[]AuditEvent            `bson:"_revIncludedAuditEventResourcesReferencingReference,omitempty"`
	RevIncludedCompositionResourcesReferencingSubject           *[]Composition           `bson:"_revIncludedCompositionResourcesReferencingSubject,omitempty"`
	RevIncludedCompositionResourcesReferencingEntry             *[]Composition           `bson:"_revIncludedCompositionResourcesReferencingEntry,omitempty"`
	RevIncludedDetectedIssueResourcesReferencingImplicated      *[]DetectedIssue         `bson:"_revIncludedDetectedIssueResourcesReferencingImplicated,omitempty"`
	RevIncludedOrderResponseResourcesReferencingFulfillment     *[]OrderResponse         `bson:"_revIncludedOrderResponseResourcesReferencingFulfillment,omitempty"`
	RevIncludedQuestionnaireResponseResourcesReferencingSubject *[]QuestionnaireResponse `bson:"_revIncludedQuestionnaireResponseResourcesReferencingSubject,omitempty"`
	RevIncludedProcessResponseResourcesReferencingRequest       *[]ProcessResponse       `bson:"_revIncludedProcessResponseResourcesReferencingRequest,omitempty"`
	RevIncludedClinicalImpressionResourcesReferencingTrigger    *[]ClinicalImpression    `bson:"_revIncludedClinicalImpressionResourcesReferencingTrigger,omitempty"`
	RevIncludedClinicalImpressionResourcesReferencingAction     *[]ClinicalImpression    `bson:"_revIncludedClinicalImpressionResourcesReferencingAction,omitempty"`
	RevIncludedClinicalImpressionResourcesReferencingPlan       *[]ClinicalImpression    `bson:"_revIncludedClinicalImpressionResourcesReferencingPlan,omitempty"`
	RevIncludedMessageHeaderResourcesReferencingData            *[]MessageHeader         `bson:"_revIncludedMessageHeaderResourcesReferencingData,omitempty"`
}

func (d *DiagnosticOrderPlusRelatedResources) GetIncludedGroupResourceReferencedBySubject() (group *Group, err error) {
	if d.IncludedGroupResourcesReferencedBySubject == nil {
		err = errors.New("Included groups not requested")
	} else if len(*d.IncludedGroupResourcesReferencedBySubject) > 1 {
		err = fmt.Errorf("Expected 0 or 1 group, but found %d", len(*d.IncludedGroupResourcesReferencedBySubject))
	} else if len(*d.IncludedGroupResourcesReferencedBySubject) == 1 {
		group = &(*d.IncludedGroupResourcesReferencedBySubject)[0]
	}
	return
}

func (d *DiagnosticOrderPlusRelatedResources) GetIncludedDeviceResourceReferencedBySubject() (device *Device, err error) {
	if d.IncludedDeviceResourcesReferencedBySubject == nil {
		err = errors.New("Included devices not requested")
	} else if len(*d.IncludedDeviceResourcesReferencedBySubject) > 1 {
		err = fmt.Errorf("Expected 0 or 1 device, but found %d", len(*d.IncludedDeviceResourcesReferencedBySubject))
	} else if len(*d.IncludedDeviceResourcesReferencedBySubject) == 1 {
		device = &(*d.IncludedDeviceResourcesReferencedBySubject)[0]
	}
	return
}

func (d *DiagnosticOrderPlusRelatedResources) GetIncludedPatientResourceReferencedBySubject() (patient *Patient, err error) {
	if d.IncludedPatientResourcesReferencedBySubject == nil {
		err = errors.New("Included patients not requested")
	} else if len(*d.IncludedPatientResourcesReferencedBySubject) > 1 {
		err = fmt.Errorf("Expected 0 or 1 patient, but found %d", len(*d.IncludedPatientResourcesReferencedBySubject))
	} else if len(*d.IncludedPatientResourcesReferencedBySubject) == 1 {
		patient = &(*d.IncludedPatientResourcesReferencedBySubject)[0]
	}
	return
}

func (d *DiagnosticOrderPlusRelatedResources) GetIncludedLocationResourceReferencedBySubject() (location *Location, err error) {
	if d.IncludedLocationResourcesReferencedBySubject == nil {
		err = errors.New("Included locations not requested")
	} else if len(*d.IncludedLocationResourcesReferencedBySubject) > 1 {
		err = fmt.Errorf("Expected 0 or 1 location, but found %d", len(*d.IncludedLocationResourcesReferencedBySubject))
	} else if len(*d.IncludedLocationResourcesReferencedBySubject) == 1 {
		location = &(*d.IncludedLocationResourcesReferencedBySubject)[0]
	}
	return
}

func (d *DiagnosticOrderPlusRelatedResources) GetIncludedEncounterResourceReferencedByEncounter() (encounter *Encounter, err error) {
	if d.IncludedEncounterResourcesReferencedByEncounter == nil {
		err = errors.New("Included encounters not requested")
	} else if len(*d.IncludedEncounterResourcesReferencedByEncounter) > 1 {
		err = fmt.Errorf("Expected 0 or 1 encounter, but found %d", len(*d.IncludedEncounterResourcesReferencedByEncounter))
	} else if len(*d.IncludedEncounterResourcesReferencedByEncounter) == 1 {
		encounter = &(*d.IncludedEncounterResourcesReferencedByEncounter)[0]
	}
	return
}

func (d *DiagnosticOrderPlusRelatedResources) GetIncludedPractitionerResourceReferencedByActorPath1() (practitioner *Practitioner, err error) {
	if d.IncludedPractitionerResourcesReferencedByActorPath1 == nil {
		err = errors.New("Included practitioners not requested")
	} else if len(*d.IncludedPractitionerResourcesReferencedByActorPath1) > 1 {
		err = fmt.Errorf("Expected 0 or 1 practitioner, but found %d", len(*d.IncludedPractitionerResourcesReferencedByActorPath1))
	} else if len(*d.IncludedPractitionerResourcesReferencedByActorPath1) == 1 {
		practitioner = &(*d.IncludedPractitionerResourcesReferencedByActorPath1)[0]
	}
	return
}

func (d *DiagnosticOrderPlusRelatedResources) GetIncludedPractitionerResourceReferencedByActorPath2() (practitioner *Practitioner, err error) {
	if d.IncludedPractitionerResourcesReferencedByActorPath2 == nil {
		err = errors.New("Included practitioners not requested")
	} else if len(*d.IncludedPractitionerResourcesReferencedByActorPath2) > 1 {
		err = fmt.Errorf("Expected 0 or 1 practitioner, but found %d", len(*d.IncludedPractitionerResourcesReferencedByActorPath2))
	} else if len(*d.IncludedPractitionerResourcesReferencedByActorPath2) == 1 {
		practitioner = &(*d.IncludedPractitionerResourcesReferencedByActorPath2)[0]
	}
	return
}

func (d *DiagnosticOrderPlusRelatedResources) GetIncludedDeviceResourceReferencedByActorPath1() (device *Device, err error) {
	if d.IncludedDeviceResourcesReferencedByActorPath1 == nil {
		err = errors.New("Included devices not requested")
	} else if len(*d.IncludedDeviceResourcesReferencedByActorPath1) > 1 {
		err = fmt.Errorf("Expected 0 or 1 device, but found %d", len(*d.IncludedDeviceResourcesReferencedByActorPath1))
	} else if len(*d.IncludedDeviceResourcesReferencedByActorPath1) == 1 {
		device = &(*d.IncludedDeviceResourcesReferencedByActorPath1)[0]
	}
	return
}

func (d *DiagnosticOrderPlusRelatedResources) GetIncludedDeviceResourceReferencedByActorPath2() (device *Device, err error) {
	if d.IncludedDeviceResourcesReferencedByActorPath2 == nil {
		err = errors.New("Included devices not requested")
	} else if len(*d.IncludedDeviceResourcesReferencedByActorPath2) > 1 {
		err = fmt.Errorf("Expected 0 or 1 device, but found %d", len(*d.IncludedDeviceResourcesReferencedByActorPath2))
	} else if len(*d.IncludedDeviceResourcesReferencedByActorPath2) == 1 {
		device = &(*d.IncludedDeviceResourcesReferencedByActorPath2)[0]
	}
	return
}

func (d *DiagnosticOrderPlusRelatedResources) GetIncludedPatientResourceReferencedByPatient() (patient *Patient, err error) {
	if d.IncludedPatientResourcesReferencedByPatient == nil {
		err = errors.New("Included patients not requested")
	} else if len(*d.IncludedPatientResourcesReferencedByPatient) > 1 {
		err = fmt.Errorf("Expected 0 or 1 patient, but found %d", len(*d.IncludedPatientResourcesReferencedByPatient))
	} else if len(*d.IncludedPatientResourcesReferencedByPatient) == 1 {
		patient = &(*d.IncludedPatientResourcesReferencedByPatient)[0]
	}
	return
}

func (d *DiagnosticOrderPlusRelatedResources) GetIncludedPractitionerResourceReferencedByOrderer() (practitioner *Practitioner, err error) {
	if d.IncludedPractitionerResourcesReferencedByOrderer == nil {
		err = errors.New("Included practitioners not requested")
	} else if len(*d.IncludedPractitionerResourcesReferencedByOrderer) > 1 {
		err = fmt.Errorf("Expected 0 or 1 practitioner, but found %d", len(*d.IncludedPractitionerResourcesReferencedByOrderer))
	} else if len(*d.IncludedPractitionerResourcesReferencedByOrderer) == 1 {
		practitioner = &(*d.IncludedPractitionerResourcesReferencedByOrderer)[0]
	}
	return
}

func (d *DiagnosticOrderPlusRelatedResources) GetIncludedSpecimenResourcesReferencedBySpecimenPath1() (specimen []Specimen, err error) {
	if d.IncludedSpecimenResourcesReferencedBySpecimenPath1 == nil {
		err = errors.New("Included specimen not requested")
	} else {
		specimen = *d.IncludedSpecimenResourcesReferencedBySpecimenPath1
	}
	return
}

func (d *DiagnosticOrderPlusRelatedResources) GetIncludedSpecimenResourcesReferencedBySpecimenPath2() (specimen []Specimen, err error) {
	if d.IncludedSpecimenResourcesReferencedBySpecimenPath2 == nil {
		err = errors.New("Included specimen not requested")
	} else {
		specimen = *d.IncludedSpecimenResourcesReferencedBySpecimenPath2
	}
	return
}

func (d *DiagnosticOrderPlusRelatedResources) GetRevIncludedProvenanceResourcesReferencingTarget() (provenances []Provenance, err error) {
	if d.RevIncludedProvenanceResourcesReferencingTarget == nil {
		err = errors.New("RevIncluded provenances not requested")
	} else {
		provenances = *d.RevIncludedProvenanceResourcesReferencingTarget
	}
	return
}

func (d *DiagnosticOrderPlusRelatedResources) GetRevIncludedDocumentManifestResourcesReferencingContentref() (documentManifests []DocumentManifest, err error) {
	if d.RevIncludedDocumentManifestResourcesReferencingContentref == nil {
		err = errors.New("RevIncluded documentManifests not requested")
	} else {
		documentManifests = *d.RevIncludedDocumentManifestResourcesReferencingContentref
	}
	return
}

func (d *DiagnosticOrderPlusRelatedResources) GetRevIncludedDocumentManifestResourcesReferencingRelatedref() (documentManifests []DocumentManifest, err error) {
	if d.RevIncludedDocumentManifestResourcesReferencingRelatedref == nil {
		err = errors.New("RevIncluded documentManifests not requested")
	} else {
		documentManifests = *d.RevIncludedDocumentManifestResourcesReferencingRelatedref
	}
	return
}

func (d *DiagnosticOrderPlusRelatedResources) GetRevIncludedCarePlanResourcesReferencingActivityreference() (carePlans []CarePlan, err error) {
	if d.RevIncludedCarePlanResourcesReferencingActivityreference == nil {
		err = errors.New("RevIncluded carePlans not requested")
	} else {
		carePlans = *d.RevIncludedCarePlanResourcesReferencingActivityreference
	}
	return
}

func (d *DiagnosticOrderPlusRelatedResources) GetRevIncludedListResourcesReferencingItem() (lists []List, err error) {
	if d.RevIncludedListResourcesReferencingItem == nil {
		err = errors.New("RevIncluded lists not requested")
	} else {
		lists = *d.RevIncludedListResourcesReferencingItem
	}
	return
}

func (d *DiagnosticOrderPlusRelatedResources) GetRevIncludedDocumentReferenceResourcesReferencingRelatedref() (documentReferences []DocumentReference, err error) {
	if d.RevIncludedDocumentReferenceResourcesReferencingRelatedref == nil {
		err = errors.New("RevIncluded documentReferences not requested")
	} else {
		documentReferences = *d.RevIncludedDocumentReferenceResourcesReferencingRelatedref
	}
	return
}

func (d *DiagnosticOrderPlusRelatedResources) GetRevIncludedOrderResourcesReferencingDetail() (orders []Order, err error) {
	if d.RevIncludedOrderResourcesReferencingDetail == nil {
		err = errors.New("RevIncluded orders not requested")
	} else {
		orders = *d.RevIncludedOrderResourcesReferencingDetail
	}
	return
}

func (d *DiagnosticOrderPlusRelatedResources) GetRevIncludedBasicResourcesReferencingSubject() (basics []Basic, err error) {
	if d.RevIncludedBasicResourcesReferencingSubject == nil {
		err = errors.New("RevIncluded basics not requested")
	} else {
		basics = *d.RevIncludedBasicResourcesReferencingSubject
	}
	return
}

func (d *DiagnosticOrderPlusRelatedResources) GetRevIncludedDiagnosticReportResourcesReferencingRequest() (diagnosticReports []DiagnosticReport, err error) {
	if d.RevIncludedDiagnosticReportResourcesReferencingRequest == nil {
		err = errors.New("RevIncluded diagnosticReports not requested")
	} else {
		diagnosticReports = *d.RevIncludedDiagnosticReportResourcesReferencingRequest
	}
	return
}

func (d *DiagnosticOrderPlusRelatedResources) GetRevIncludedImagingStudyResourcesReferencingOrder() (imagingStudies []ImagingStudy, err error) {
	if d.RevIncludedImagingStudyResourcesReferencingOrder == nil {
		err = errors.New("RevIncluded imagingStudies not requested")
	} else {
		imagingStudies = *d.RevIncludedImagingStudyResourcesReferencingOrder
	}
	return
}

func (d *DiagnosticOrderPlusRelatedResources) GetRevIncludedAuditEventResourcesReferencingReference() (auditEvents []AuditEvent, err error) {
	if d.RevIncludedAuditEventResourcesReferencingReference == nil {
		err = errors.New("RevIncluded auditEvents not requested")
	} else {
		auditEvents = *d.RevIncludedAuditEventResourcesReferencingReference
	}
	return
}

func (d *DiagnosticOrderPlusRelatedResources) GetRevIncludedCompositionResourcesReferencingSubject() (compositions []Composition, err error) {
	if d.RevIncludedCompositionResourcesReferencingSubject == nil {
		err = errors.New("RevIncluded compositions not requested")
	} else {
		compositions = *d.RevIncludedCompositionResourcesReferencingSubject
	}
	return
}

func (d *DiagnosticOrderPlusRelatedResources) GetRevIncludedCompositionResourcesReferencingEntry() (compositions []Composition, err error) {
	if d.RevIncludedCompositionResourcesReferencingEntry == nil {
		err = errors.New("RevIncluded compositions not requested")
	} else {
		compositions = *d.RevIncludedCompositionResourcesReferencingEntry
	}
	return
}

func (d *DiagnosticOrderPlusRelatedResources) GetRevIncludedDetectedIssueResourcesReferencingImplicated() (detectedIssues []DetectedIssue, err error) {
	if d.RevIncludedDetectedIssueResourcesReferencingImplicated == nil {
		err = errors.New("RevIncluded detectedIssues not requested")
	} else {
		detectedIssues = *d.RevIncludedDetectedIssueResourcesReferencingImplicated
	}
	return
}

func (d *DiagnosticOrderPlusRelatedResources) GetRevIncludedOrderResponseResourcesReferencingFulfillment() (orderResponses []OrderResponse, err error) {
	if d.RevIncludedOrderResponseResourcesReferencingFulfillment == nil {
		err = errors.New("RevIncluded orderResponses not requested")
	} else {
		orderResponses = *d.RevIncludedOrderResponseResourcesReferencingFulfillment
	}
	return
}

func (d *DiagnosticOrderPlusRelatedResources) GetRevIncludedQuestionnaireResponseResourcesReferencingSubject() (questionnaireResponses []QuestionnaireResponse, err error) {
	if d.RevIncludedQuestionnaireResponseResourcesReferencingSubject == nil {
		err = errors.New("RevIncluded questionnaireResponses not requested")
	} else {
		questionnaireResponses = *d.RevIncludedQuestionnaireResponseResourcesReferencingSubject
	}
	return
}

func (d *DiagnosticOrderPlusRelatedResources) GetRevIncludedProcessResponseResourcesReferencingRequest() (processResponses []ProcessResponse, err error) {
	if d.RevIncludedProcessResponseResourcesReferencingRequest == nil {
		err = errors.New("RevIncluded processResponses not requested")
	} else {
		processResponses = *d.RevIncludedProcessResponseResourcesReferencingRequest
	}
	return
}

func (d *DiagnosticOrderPlusRelatedResources) GetRevIncludedClinicalImpressionResourcesReferencingTrigger() (clinicalImpressions []ClinicalImpression, err error) {
	if d.RevIncludedClinicalImpressionResourcesReferencingTrigger == nil {
		err = errors.New("RevIncluded clinicalImpressions not requested")
	} else {
		clinicalImpressions = *d.RevIncludedClinicalImpressionResourcesReferencingTrigger
	}
	return
}

func (d *DiagnosticOrderPlusRelatedResources) GetRevIncludedClinicalImpressionResourcesReferencingAction() (clinicalImpressions []ClinicalImpression, err error) {
	if d.RevIncludedClinicalImpressionResourcesReferencingAction == nil {
		err = errors.New("RevIncluded clinicalImpressions not requested")
	} else {
		clinicalImpressions = *d.RevIncludedClinicalImpressionResourcesReferencingAction
	}
	return
}

func (d *DiagnosticOrderPlusRelatedResources) GetRevIncludedClinicalImpressionResourcesReferencingPlan() (clinicalImpressions []ClinicalImpression, err error) {
	if d.RevIncludedClinicalImpressionResourcesReferencingPlan == nil {
		err = errors.New("RevIncluded clinicalImpressions not requested")
	} else {
		clinicalImpressions = *d.RevIncludedClinicalImpressionResourcesReferencingPlan
	}
	return
}

func (d *DiagnosticOrderPlusRelatedResources) GetRevIncludedMessageHeaderResourcesReferencingData() (messageHeaders []MessageHeader, err error) {
	if d.RevIncludedMessageHeaderResourcesReferencingData == nil {
		err = errors.New("RevIncluded messageHeaders not requested")
	} else {
		messageHeaders = *d.RevIncludedMessageHeaderResourcesReferencingData
	}
	return
}

func (d *DiagnosticOrderPlusRelatedResources) GetIncludedResources() map[string]interface{} {
	resourceMap := make(map[string]interface{})
	if d.IncludedGroupResourcesReferencedBySubject != nil {
		for idx := range *d.IncludedGroupResourcesReferencedBySubject {
			rsc := (*d.IncludedGroupResourcesReferencedBySubject)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.IncludedDeviceResourcesReferencedBySubject != nil {
		for idx := range *d.IncludedDeviceResourcesReferencedBySubject {
			rsc := (*d.IncludedDeviceResourcesReferencedBySubject)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.IncludedPatientResourcesReferencedBySubject != nil {
		for idx := range *d.IncludedPatientResourcesReferencedBySubject {
			rsc := (*d.IncludedPatientResourcesReferencedBySubject)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.IncludedLocationResourcesReferencedBySubject != nil {
		for idx := range *d.IncludedLocationResourcesReferencedBySubject {
			rsc := (*d.IncludedLocationResourcesReferencedBySubject)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.IncludedEncounterResourcesReferencedByEncounter != nil {
		for idx := range *d.IncludedEncounterResourcesReferencedByEncounter {
			rsc := (*d.IncludedEncounterResourcesReferencedByEncounter)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.IncludedPractitionerResourcesReferencedByActorPath1 != nil {
		for idx := range *d.IncludedPractitionerResourcesReferencedByActorPath1 {
			rsc := (*d.IncludedPractitionerResourcesReferencedByActorPath1)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.IncludedPractitionerResourcesReferencedByActorPath2 != nil {
		for idx := range *d.IncludedPractitionerResourcesReferencedByActorPath2 {
			rsc := (*d.IncludedPractitionerResourcesReferencedByActorPath2)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.IncludedDeviceResourcesReferencedByActorPath1 != nil {
		for idx := range *d.IncludedDeviceResourcesReferencedByActorPath1 {
			rsc := (*d.IncludedDeviceResourcesReferencedByActorPath1)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.IncludedDeviceResourcesReferencedByActorPath2 != nil {
		for idx := range *d.IncludedDeviceResourcesReferencedByActorPath2 {
			rsc := (*d.IncludedDeviceResourcesReferencedByActorPath2)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.IncludedPatientResourcesReferencedByPatient != nil {
		for idx := range *d.IncludedPatientResourcesReferencedByPatient {
			rsc := (*d.IncludedPatientResourcesReferencedByPatient)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.IncludedPractitionerResourcesReferencedByOrderer != nil {
		for idx := range *d.IncludedPractitionerResourcesReferencedByOrderer {
			rsc := (*d.IncludedPractitionerResourcesReferencedByOrderer)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.IncludedSpecimenResourcesReferencedBySpecimenPath1 != nil {
		for idx := range *d.IncludedSpecimenResourcesReferencedBySpecimenPath1 {
			rsc := (*d.IncludedSpecimenResourcesReferencedBySpecimenPath1)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.IncludedSpecimenResourcesReferencedBySpecimenPath2 != nil {
		for idx := range *d.IncludedSpecimenResourcesReferencedBySpecimenPath2 {
			rsc := (*d.IncludedSpecimenResourcesReferencedBySpecimenPath2)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	return resourceMap
}

func (d *DiagnosticOrderPlusRelatedResources) GetRevIncludedResources() map[string]interface{} {
	resourceMap := make(map[string]interface{})
	if d.RevIncludedProvenanceResourcesReferencingTarget != nil {
		for idx := range *d.RevIncludedProvenanceResourcesReferencingTarget {
			rsc := (*d.RevIncludedProvenanceResourcesReferencingTarget)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.RevIncludedDocumentManifestResourcesReferencingContentref != nil {
		for idx := range *d.RevIncludedDocumentManifestResourcesReferencingContentref {
			rsc := (*d.RevIncludedDocumentManifestResourcesReferencingContentref)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.RevIncludedDocumentManifestResourcesReferencingRelatedref != nil {
		for idx := range *d.RevIncludedDocumentManifestResourcesReferencingRelatedref {
			rsc := (*d.RevIncludedDocumentManifestResourcesReferencingRelatedref)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.RevIncludedCarePlanResourcesReferencingActivityreference != nil {
		for idx := range *d.RevIncludedCarePlanResourcesReferencingActivityreference {
			rsc := (*d.RevIncludedCarePlanResourcesReferencingActivityreference)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.RevIncludedListResourcesReferencingItem != nil {
		for idx := range *d.RevIncludedListResourcesReferencingItem {
			rsc := (*d.RevIncludedListResourcesReferencingItem)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.RevIncludedDocumentReferenceResourcesReferencingRelatedref != nil {
		for idx := range *d.RevIncludedDocumentReferenceResourcesReferencingRelatedref {
			rsc := (*d.RevIncludedDocumentReferenceResourcesReferencingRelatedref)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.RevIncludedOrderResourcesReferencingDetail != nil {
		for idx := range *d.RevIncludedOrderResourcesReferencingDetail {
			rsc := (*d.RevIncludedOrderResourcesReferencingDetail)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.RevIncludedBasicResourcesReferencingSubject != nil {
		for idx := range *d.RevIncludedBasicResourcesReferencingSubject {
			rsc := (*d.RevIncludedBasicResourcesReferencingSubject)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.RevIncludedDiagnosticReportResourcesReferencingRequest != nil {
		for idx := range *d.RevIncludedDiagnosticReportResourcesReferencingRequest {
			rsc := (*d.RevIncludedDiagnosticReportResourcesReferencingRequest)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.RevIncludedImagingStudyResourcesReferencingOrder != nil {
		for idx := range *d.RevIncludedImagingStudyResourcesReferencingOrder {
			rsc := (*d.RevIncludedImagingStudyResourcesReferencingOrder)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.RevIncludedAuditEventResourcesReferencingReference != nil {
		for idx := range *d.RevIncludedAuditEventResourcesReferencingReference {
			rsc := (*d.RevIncludedAuditEventResourcesReferencingReference)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.RevIncludedCompositionResourcesReferencingSubject != nil {
		for idx := range *d.RevIncludedCompositionResourcesReferencingSubject {
			rsc := (*d.RevIncludedCompositionResourcesReferencingSubject)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.RevIncludedCompositionResourcesReferencingEntry != nil {
		for idx := range *d.RevIncludedCompositionResourcesReferencingEntry {
			rsc := (*d.RevIncludedCompositionResourcesReferencingEntry)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.RevIncludedDetectedIssueResourcesReferencingImplicated != nil {
		for idx := range *d.RevIncludedDetectedIssueResourcesReferencingImplicated {
			rsc := (*d.RevIncludedDetectedIssueResourcesReferencingImplicated)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.RevIncludedOrderResponseResourcesReferencingFulfillment != nil {
		for idx := range *d.RevIncludedOrderResponseResourcesReferencingFulfillment {
			rsc := (*d.RevIncludedOrderResponseResourcesReferencingFulfillment)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.RevIncludedQuestionnaireResponseResourcesReferencingSubject != nil {
		for idx := range *d.RevIncludedQuestionnaireResponseResourcesReferencingSubject {
			rsc := (*d.RevIncludedQuestionnaireResponseResourcesReferencingSubject)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.RevIncludedProcessResponseResourcesReferencingRequest != nil {
		for idx := range *d.RevIncludedProcessResponseResourcesReferencingRequest {
			rsc := (*d.RevIncludedProcessResponseResourcesReferencingRequest)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.RevIncludedClinicalImpressionResourcesReferencingTrigger != nil {
		for idx := range *d.RevIncludedClinicalImpressionResourcesReferencingTrigger {
			rsc := (*d.RevIncludedClinicalImpressionResourcesReferencingTrigger)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.RevIncludedClinicalImpressionResourcesReferencingAction != nil {
		for idx := range *d.RevIncludedClinicalImpressionResourcesReferencingAction {
			rsc := (*d.RevIncludedClinicalImpressionResourcesReferencingAction)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.RevIncludedClinicalImpressionResourcesReferencingPlan != nil {
		for idx := range *d.RevIncludedClinicalImpressionResourcesReferencingPlan {
			rsc := (*d.RevIncludedClinicalImpressionResourcesReferencingPlan)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.RevIncludedMessageHeaderResourcesReferencingData != nil {
		for idx := range *d.RevIncludedMessageHeaderResourcesReferencingData {
			rsc := (*d.RevIncludedMessageHeaderResourcesReferencingData)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	return resourceMap
}

func (d *DiagnosticOrderPlusRelatedResources) GetIncludedAndRevIncludedResources() map[string]interface{} {
	resourceMap := make(map[string]interface{})
	if d.IncludedGroupResourcesReferencedBySubject != nil {
		for idx := range *d.IncludedGroupResourcesReferencedBySubject {
			rsc := (*d.IncludedGroupResourcesReferencedBySubject)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.IncludedDeviceResourcesReferencedBySubject != nil {
		for idx := range *d.IncludedDeviceResourcesReferencedBySubject {
			rsc := (*d.IncludedDeviceResourcesReferencedBySubject)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.IncludedPatientResourcesReferencedBySubject != nil {
		for idx := range *d.IncludedPatientResourcesReferencedBySubject {
			rsc := (*d.IncludedPatientResourcesReferencedBySubject)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.IncludedLocationResourcesReferencedBySubject != nil {
		for idx := range *d.IncludedLocationResourcesReferencedBySubject {
			rsc := (*d.IncludedLocationResourcesReferencedBySubject)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.IncludedEncounterResourcesReferencedByEncounter != nil {
		for idx := range *d.IncludedEncounterResourcesReferencedByEncounter {
			rsc := (*d.IncludedEncounterResourcesReferencedByEncounter)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.IncludedPractitionerResourcesReferencedByActorPath1 != nil {
		for idx := range *d.IncludedPractitionerResourcesReferencedByActorPath1 {
			rsc := (*d.IncludedPractitionerResourcesReferencedByActorPath1)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.IncludedPractitionerResourcesReferencedByActorPath2 != nil {
		for idx := range *d.IncludedPractitionerResourcesReferencedByActorPath2 {
			rsc := (*d.IncludedPractitionerResourcesReferencedByActorPath2)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.IncludedDeviceResourcesReferencedByActorPath1 != nil {
		for idx := range *d.IncludedDeviceResourcesReferencedByActorPath1 {
			rsc := (*d.IncludedDeviceResourcesReferencedByActorPath1)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.IncludedDeviceResourcesReferencedByActorPath2 != nil {
		for idx := range *d.IncludedDeviceResourcesReferencedByActorPath2 {
			rsc := (*d.IncludedDeviceResourcesReferencedByActorPath2)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.IncludedPatientResourcesReferencedByPatient != nil {
		for idx := range *d.IncludedPatientResourcesReferencedByPatient {
			rsc := (*d.IncludedPatientResourcesReferencedByPatient)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.IncludedPractitionerResourcesReferencedByOrderer != nil {
		for idx := range *d.IncludedPractitionerResourcesReferencedByOrderer {
			rsc := (*d.IncludedPractitionerResourcesReferencedByOrderer)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.IncludedSpecimenResourcesReferencedBySpecimenPath1 != nil {
		for idx := range *d.IncludedSpecimenResourcesReferencedBySpecimenPath1 {
			rsc := (*d.IncludedSpecimenResourcesReferencedBySpecimenPath1)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.IncludedSpecimenResourcesReferencedBySpecimenPath2 != nil {
		for idx := range *d.IncludedSpecimenResourcesReferencedBySpecimenPath2 {
			rsc := (*d.IncludedSpecimenResourcesReferencedBySpecimenPath2)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.RevIncludedProvenanceResourcesReferencingTarget != nil {
		for idx := range *d.RevIncludedProvenanceResourcesReferencingTarget {
			rsc := (*d.RevIncludedProvenanceResourcesReferencingTarget)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.RevIncludedDocumentManifestResourcesReferencingContentref != nil {
		for idx := range *d.RevIncludedDocumentManifestResourcesReferencingContentref {
			rsc := (*d.RevIncludedDocumentManifestResourcesReferencingContentref)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.RevIncludedDocumentManifestResourcesReferencingRelatedref != nil {
		for idx := range *d.RevIncludedDocumentManifestResourcesReferencingRelatedref {
			rsc := (*d.RevIncludedDocumentManifestResourcesReferencingRelatedref)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.RevIncludedCarePlanResourcesReferencingActivityreference != nil {
		for idx := range *d.RevIncludedCarePlanResourcesReferencingActivityreference {
			rsc := (*d.RevIncludedCarePlanResourcesReferencingActivityreference)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.RevIncludedListResourcesReferencingItem != nil {
		for idx := range *d.RevIncludedListResourcesReferencingItem {
			rsc := (*d.RevIncludedListResourcesReferencingItem)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.RevIncludedDocumentReferenceResourcesReferencingRelatedref != nil {
		for idx := range *d.RevIncludedDocumentReferenceResourcesReferencingRelatedref {
			rsc := (*d.RevIncludedDocumentReferenceResourcesReferencingRelatedref)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.RevIncludedOrderResourcesReferencingDetail != nil {
		for idx := range *d.RevIncludedOrderResourcesReferencingDetail {
			rsc := (*d.RevIncludedOrderResourcesReferencingDetail)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.RevIncludedBasicResourcesReferencingSubject != nil {
		for idx := range *d.RevIncludedBasicResourcesReferencingSubject {
			rsc := (*d.RevIncludedBasicResourcesReferencingSubject)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.RevIncludedDiagnosticReportResourcesReferencingRequest != nil {
		for idx := range *d.RevIncludedDiagnosticReportResourcesReferencingRequest {
			rsc := (*d.RevIncludedDiagnosticReportResourcesReferencingRequest)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.RevIncludedImagingStudyResourcesReferencingOrder != nil {
		for idx := range *d.RevIncludedImagingStudyResourcesReferencingOrder {
			rsc := (*d.RevIncludedImagingStudyResourcesReferencingOrder)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.RevIncludedAuditEventResourcesReferencingReference != nil {
		for idx := range *d.RevIncludedAuditEventResourcesReferencingReference {
			rsc := (*d.RevIncludedAuditEventResourcesReferencingReference)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.RevIncludedCompositionResourcesReferencingSubject != nil {
		for idx := range *d.RevIncludedCompositionResourcesReferencingSubject {
			rsc := (*d.RevIncludedCompositionResourcesReferencingSubject)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.RevIncludedCompositionResourcesReferencingEntry != nil {
		for idx := range *d.RevIncludedCompositionResourcesReferencingEntry {
			rsc := (*d.RevIncludedCompositionResourcesReferencingEntry)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.RevIncludedDetectedIssueResourcesReferencingImplicated != nil {
		for idx := range *d.RevIncludedDetectedIssueResourcesReferencingImplicated {
			rsc := (*d.RevIncludedDetectedIssueResourcesReferencingImplicated)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.RevIncludedOrderResponseResourcesReferencingFulfillment != nil {
		for idx := range *d.RevIncludedOrderResponseResourcesReferencingFulfillment {
			rsc := (*d.RevIncludedOrderResponseResourcesReferencingFulfillment)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.RevIncludedQuestionnaireResponseResourcesReferencingSubject != nil {
		for idx := range *d.RevIncludedQuestionnaireResponseResourcesReferencingSubject {
			rsc := (*d.RevIncludedQuestionnaireResponseResourcesReferencingSubject)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.RevIncludedProcessResponseResourcesReferencingRequest != nil {
		for idx := range *d.RevIncludedProcessResponseResourcesReferencingRequest {
			rsc := (*d.RevIncludedProcessResponseResourcesReferencingRequest)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.RevIncludedClinicalImpressionResourcesReferencingTrigger != nil {
		for idx := range *d.RevIncludedClinicalImpressionResourcesReferencingTrigger {
			rsc := (*d.RevIncludedClinicalImpressionResourcesReferencingTrigger)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.RevIncludedClinicalImpressionResourcesReferencingAction != nil {
		for idx := range *d.RevIncludedClinicalImpressionResourcesReferencingAction {
			rsc := (*d.RevIncludedClinicalImpressionResourcesReferencingAction)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.RevIncludedClinicalImpressionResourcesReferencingPlan != nil {
		for idx := range *d.RevIncludedClinicalImpressionResourcesReferencingPlan {
			rsc := (*d.RevIncludedClinicalImpressionResourcesReferencingPlan)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	if d.RevIncludedMessageHeaderResourcesReferencingData != nil {
		for idx := range *d.RevIncludedMessageHeaderResourcesReferencingData {
			rsc := (*d.RevIncludedMessageHeaderResourcesReferencingData)[idx]
			resourceMap[rsc.Id] = &rsc
		}
	}
	return resourceMap
}


text:
namespace bm{

void SHA256::compute(const unsigned char key [] , int len, unsigned char output [] )
{
    sha2(key,len,output,0);
}

void SHA256::computeFile(const char* path, unsigned char output [])
{
    sha2_file(path,output,0);
}

void SHA256::compute(const unsigned char* key, int keylen, const unsigned char* input, int ilen, unsigned char output[] )
{
    sha2_hmac(key,keylen,input,ilen,output,0);
}

}


text:
package org.semanticweb.elk.owl.implementation;

import java.util.List;

import org.semanticweb.elk.owl.interfaces.ElkIndividual;

/**
 * Implementation for ElkObjects that maintain a list of individuals.
 *
 * @author Markus Kroetzsch
 */
public abstract class ElkIndividualListObject extends
		ElkObjectListObject<ElkIndividual> {

	ElkIndividualListObject(List<? extends ElkIndividual> individuals) {
		super(individuals);
	}

	public List<? extends ElkIndividual> getIndividuals() {
		return getObjects();
	}

}


text:
layout: post
title: Devenir enseignant-e en hypnose
date: 2013-01-09 09:35:56.000000000 +01:00
categories:
- Hypnose
tags: []
status: publish
type: post
published: true
meta:
  _edit_last: '2'
author:
  first_name: Nico
excerpt:
---

Si vous voulez devenir enseignant-e en hypnose, l'Institut Romand d'Hypnose Suisse (IRHyS) recrute :

http://www.irhys.ch/index.php?option=com_content&view=category&layout=blog&id=66&Itemid=122


text:
<title>ToonTalk - As balanças comparam coisas</title>
<link rel="stylesheet" type="text/css" href="../toontalk.css">

início •
busca •
compra •
manual •
novidades •
dúvidas •
suporte •
download •
imprensa •
contato

As balanças comparam coisas

Dentro da Porta-Treco você encontrará uma grande pilha de balanças. Você pode usar balanças para descobrir que número é maior ou que palavra ou sentença vem primeiro em ordem alfabética. Coloque uma balança em uma abertura de uma caixa com aberturas em ambos os lados. Se você colocar números nessas aberturas, a balança irá se inclinar para o número maior (ou mais pesado). Se você a colocar, ao invés, em grupos de texto, a balança irá se inclinar para aquele que vem depois na ordem alfabética.

Dica avançada. Você pode treinar um  robô para fazer alguma coisa se um número é maior que outro, e outro robô para fazer algo mais se for menor que algo (e ainda um terceiro robô para desempenhar a tarefa se os números forem iguais). O demo de "Troca" mostra um exemplo de treinamento de um robô para trocar dois números se o primeiro é menor do que o segundo. Observe que uma balança irá balançar e ir para frente se estiver próxima a uma abertura vazia. Portanto é importante utilizar Asper para apagar, não esvaziar, os grupos próximos à balança quando deseja fazer seus robôs trabalharem em mais tipos de caixas.

início •
busca •
compra •
manual •
novidades •
dúvidas •
suporte •
download •
imprensa •
contato


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
null

#### Original name
Cercospora musae var. musae

### Remarks
null


text:
<!--
Description: feed language from xml:lang
Expect:      not bozo and feed['language'] == u'en'
-->
<feed version="0.3" xmlns="http://purl.org/atom/ns#" xml:lang="en">
<title xml:lang="fr">foo</title>
</feed>


text:
ACCEPTED

#### According to
The Catalogue of Life, 3rd January 2011

#### Published in
N. Z. Jl Bot. 3: 69 (1965)

#### Original name
Dacryopinax dennisii McNabb, 1965

### Remarks
null


text:
from dciclient.v1.api import topic as api_topic

def test_get_or_create_topic(dci_context, product_id):
    nb_topics = len(api_topic.list(dci_context).json()["topics"])
    kwargs = {
        "name": "topic1",
        "component_types": ["type_1", "type_2"],
        "product_id": product_id,
        "export_control": False,
    }
    topic = api_topic.create(dci_context, **kwargs).json()["topic"]
    nb_topics += 1

    r, created = api_topic.get_or_create(
        dci_context,
        name="topic1",
        defaults={"product_id": product_id, "export_control": True},
    )
    assert created is False
    assert r.status_code == 200
    existing_topic = r.json()["topic"]
    assert existing_topic["id"] == topic["id"]
    assert existing_topic["export_control"] is False

    r, created = api_topic.get_or_create(
        dci_context,
        name="topic2",
        defaults={"product_id": product_id, "export_control": True},
    )
    assert created
    nb_topics += 1
    assert r.status_code == 201
    new_topic = r.json()["topic"]
    assert new_topic["id"] != topic["id"]
    assert new_topic["export_control"]

    assert len(api_topic.list(dci_context).json()["topics"]) == nb_topics


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

class Template_plugin extends Plugin
{
    public function set_layout()
    {
        $this->template->set_layout($this->attribute('layout', 'default'));
    }

    public function add_javascript()
    {
        $this->template->add_javascript($this->attribute('file'));
    }

    public function add_stylesheet()
    {
        $this->template->add_stylesheet($this->attribute('file'));
    }

    public function set_meta_title($data)
    {
        // Recieve inherited data passed to plugin from parent plugin
        $CI =& get_instance();
        $CI->load->library('parser');

        $content = $this->attribute('content', $this->content());
        $parsed_content = $CI->parser->parse_string($content, $data, TRUE);
        $this->template->set_meta_title(trim($parsed_content));
    }

    public function set_meta_description($data)
    {
        // Recieve inherited data passed to plugin from parent plugin
        $CI =& get_instance();
        $CI->load->library('parser');

        $content = $this->attribute('content', $this->content());
        $parsed_content = $CI->parser->parse_string($content, $data, TRUE);
        $this->template->set_meta_description(trim($parsed_content));
    }

    public function set_meta_keywords($data)
    {
        // Recieve inherited data passed to plugin from parent plugin
        $CI =& get_instance();
        $CI->load->library('parser');

        $content = $this->attribute('content', $this->content());
        $parsed_content = $CI->parser->parse_string($content, $data, TRUE);
        $this->template->set_meta_keywords(trim($parsed_content));
    }

    public function javascripts()
    {
        return $this->template->javascripts();
    }

    public function stylesheets()
    {
        return $this->template->stylesheets();
    }

    public function metadata()
    {
        return $this->template->metadata();
    }

    public function analytics()
    {
        return $this->template->analytics();
    }

    public function page_head()
    {
        return $this->template->page_head();
    }

    public function head()
    {
        return $this->template->head();
    }

    public function footer()
    {
        return $this->template->footer();
    }

    public function xml_output()
    {
        return xml_output();
    }
}


text:
<script type="text/javascript">
    if(typeof wpDataTablesCharts == 'undefined'){
        var wpDataTablesCharts = [];
    }
    wpDataTablesCharts['<?php echo $tableId?>'] = <?php echo $chartProperties ?>;
</script>


text:
    #ifndef M_PI
        #define M_PI 3.14159265358979323846
    #endif
#endif

//-----------------------------------------------------------------------------
//
//    Fixes for the "restrict" keyword.  These #ifdef's for detecting
//    compiler versions courtesy of Boost's select_compiler_config.hpp;
//    here is the copyright notice for that file:
//
//    (C) Copyright Boost.org 2001. Permission to copy, use, modify, sell and
//    and distribute this software is granted provided this copyright notice
//    appears in all copies. This software is provided "as is" without express
//    or implied warranty, and with no claim as to its suitability for any
//    purpose.
//
//    Some compilers support "restrict", in which case we do nothing.
//    Other compilers support some variant of it (e.g. "__restrict").
//    If we don't know anything about the compiler, we define "restrict"
//    to be a no-op.
//
//-----------------------------------------------------------------------------

#if defined __GNUC__
    #if !defined(restrict)
    	#define restrict __restrict
    #endif

#elif defined(__INTEL_COMPILER) || defined(__ICL) || defined(__ICC) || defined(__ECC)
    // supports restrict, do nothing.

#elif defined __sgi
    // supports restrict, do nothing.

#else
    #define restrict

#endif

#endif // INCLUDED_IMATHPLATFORM_H


text:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical"
        android:background="#FFFFFF"
        tools:context="activities.CreateFlightPActivity">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:orientation="vertical">

                <android.support.v7.widget.Toolbar
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:background="?attr/colorPrimary"
                    android:theme="?attr/actionBarTheme"
                    android:minHeight="?attr/actionBarSize"
                    android:id="@+id/create_toolbar" />

                <RelativeLayout
                    android:layout_width="match_parent"
                    android:layout_height="match_parent">

                    <fragment
                            android:id="@+id/create_map"
                            android:layout_width="match_parent"
                            android:layout_height="match_parent"
                            class="com.google.android.gms.maps.SupportMapFragment" />

                    <LinearLayout
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:orientation="horizontal"
                        android:layout_alignParentBottom="true">

                        <Button
                            android:id="@+id/add_btn"
                            android:layout_width="match_parent"
                            android:layout_height="40dp"
                            android:layout_marginLeft="8dp"
                            android:layout_weight="1"
                            android:background="@android:color/holo_orange_light"
                            android:text="Add"
                            android:textColor="@android:color/white"
                            android:textStyle="normal|bold" />

                        <Button
                            android:id="@+id/clear_btn"
                            android:layout_width="match_parent"
                            android:layout_height="40dp"
                            android:layout_marginLeft="8dp"
                            android:layout_weight="1"
                            android:background="@android:color/holo_orange_light"
                            android:text="Clear"
                            android:textColor="@android:color/white"
                            android:textStyle="normal|bold" />

                        <Button
                            android:id="@+id/save_btn"
                            android:layout_width="match_parent"
                            android:layout_height="40dp"
                            android:layout_marginLeft="8dp"
                            android:layout_marginRight="8dp"
                            android:layout_weight="1"
                            android:background="@android:color/holo_orange_light"
                            android:text="Save"
                            android:textColor="@android:color/white"
                            android:textStyle="normal|bold" />

                    </LinearLayout>
                </RelativeLayout>

        </LinearLayout>
</LinearLayout>


text:
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<string name="cancel">"Cancelar"</string>
<string name="http_post_warning">"A página que você está procurando usou as informações inseridas. Voltar à essa página poderá fazer com que todas as ações realizadas antes sejam repetidas. Deseja continuar?"</string>
<string name="http_post_warning_resend">"Continuar"</string>
<string name="firstrun_signed_in_title">"Você fez login no Chrome."</string>
<string name="firstrun_signed_in_description">"Guias abertas, favoritos, histórico e outros itens estão sendo sincronizados com sua Conta do Google."</string>
<string name="sad_tab_title">"Ah, não!"</string>
<string name="sad_tab_message">"Ocorreu um erro durante a exibição desta página. Para continuar, atualize ou vá para outra página."</string>
<string name="sad_tab_help_message">"Caso veja esta página com frequência, tente $1."</string>
<string name="sad_tab_help_link">"sugestões"</string>
<string name="sad_tab_reload_label">"Recarregar"</string>
<string name="options_startup_pages_placeholder">"Inserir URL..."</string>
</resources>


text:
from struct import *
from zlib import *
import stat
import sys
import os

def getNormalizedPNG(filename):
    pngheader = "\x89PNG\r\n\x1a\n"

    file = open(filename, "rb")
    oldPNG = file.read()
    file.close()

    if oldPNG[:8] != pngheader:
        return None

    newPNG = oldPNG[:8]

    chunkPos = len(newPNG)

    # For each chunk in the PNG file
    while chunkPos < len(oldPNG):

        # Reading chunk
        chunkLength = oldPNG[chunkPos:chunkPos+4]
        chunkLength = unpack(">L", chunkLength)[0]
        chunkType = oldPNG[chunkPos+4 : chunkPos+8]
        chunkData = oldPNG[chunkPos+8:chunkPos+8+chunkLength]
        chunkCRC = oldPNG[chunkPos+chunkLength+8:chunkPos+chunkLength+12]
        chunkCRC = unpack(">L", chunkCRC)[0]
        chunkPos += chunkLength + 12

        # Parsing the header chunk
        if chunkType == "IHDR":
            width = unpack(">L", chunkData[0:4])[0]
            height = unpack(">L", chunkData[4:8])[0]

        # Parsing the image chunk
        if chunkType == "IDAT":
            try:
                # Uncompressing the image chunk
                bufSize = width * height * 4 + height
                chunkData = decompress( chunkData, -8, bufSize)

            except Exception, e:
                # The PNG image is normalized
                return None

            # Swapping red & blue bytes for each pixel
            newdata = ""
            for y in xrange(height):
                i = len(newdata)
                newdata += chunkData[i]
                for x in xrange(width):
                    i = len(newdata)
                    newdata += chunkData[i+2]
                    newdata += chunkData[i+1]
                    newdata += chunkData[i+0]
                    newdata += chunkData[i+3]

            # Compressing the image chunk
            chunkData = newdata
            chunkData = compress( chunkData )
            chunkLength = len( chunkData )
            chunkCRC = crc32(chunkType)
            chunkCRC = crc32(chunkData, chunkCRC)
            chunkCRC = (chunkCRC + 0x100000000) % 0x100000000

        # Removing CgBI chunk
        if chunkType != "CgBI":
            newPNG += pack(">L", chunkLength)
            newPNG += chunkType
            if chunkLength > 0:
                newPNG += chunkData
            newPNG += pack(">L", chunkCRC)

        # Stopping the PNG file parsing
        if chunkType == "IEND":
            break

    return newPNG

def updatePNG(filename):
    data = getNormalizedPNG(filename)
    if data != None:
        file = open(filename, "wb")
        file.write(data)
        file.close()
        return True
    return data

def getFiles(base):
    global _dirs
    global _pngs
    if base == ".":
        _dirs = []
        _pngs = []

    if base in _dirs:
        return

    files = os.listdir(base)
    for file in files:
        filepath = os.path.join(base, file)
        try:
            st = os.lstat(filepath)
        except os.error:
            continue

        if stat.S_ISDIR(st.st_mode):
            if not filepath in _dirs:
                getFiles(filepath)
                _dirs.append( filepath )

        elif file[-4:].lower() == ".png":
            if not filepath in _pngs:
                _pngs.append( filepath )

    if base == ".":
        return _dirs, _pngs

print "-----------------------------------"
print " iPhone PNG Images Normalizer v1.0"
print "-----------------------------------"
print " "
print "[+] Searching PNG files...",
dirs, pngs = getFiles(".")
print "ok"

if len(pngs) == 0:
    print " "
    print "[!] Alert: There are no PNG files found. Move this python file to the folder that contains the PNG files to normalize."
    exit()

print " "
print " -  %d PNG files were found at this folder (and subfolders)." % len(pngs)
print " "
while True:
    normalize = raw_input("[?] Do you want to normalize all images (Y/N)? ").lower()
    if len(normalize) > 0 and (normalize[0] == "y" or normalize[0] == "n"):
        break

normalized = 0
if normalize[0] == "y":
    for ipng in xrange(len(pngs)):
        perc = (float(ipng) / len(pngs)) * 100.0
        print "%.2f%% %s" % (perc, pngs[ipng])
        if updatePNG(pngs[ipng]):
            normalized += 1
print " "
print "[+] %d PNG files were normalized." % normalized


text:
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ArtistsAlbums.Models
{
    public class Category
    {
        private ICollection<Category> subCategories;

        public Category()
        {
            this.subCategories = new HashSet<Category>();
        }

        public virtual ICollection<Category> SubCategories
        {
            get { return subCategories; }
            set { subCategories = value; }
        }

        public int Id { get; set; }

        public string Name { get; set; }

        public int ParentId { get; set; }

        [InverseProperty("Subcategories")]
        public Category Parent { get; set; }

    }
}


text:
/* ========================================================================
 * B-JUI: bjui-initui.js v1.0
 * @author K'naan (xknaan@163.com)
 * http://git.oschina.net/xknaan/B-JUI/blob/master/BJUI/js/bjui-initui.js
 * ========================================================================
 * Copyright 2014 K'naan.
 * Licensed under Apache (http://www.apache.org/licenses/LICENSE-2.0)
 * ======================================================================== */

+function ($) {
    'use strict';

    // INITUI CLASS DEFINITION
    // ======================
    var Initui = function(element, options) {
        var $this     = this
        this.$element = $(element)
        this.options  = options
    }

    Initui.DEFAULTS = {}

    Initui.prototype.init = function() {
        var that = this, $element = that.$element

        $.when(that.initUI()).done(function(){
            $element.trigger(BJUI.eventType.afterInitUI)
        })
    }

    Initui.prototype.initUI = function() {
        var $element = this.$element

        $.when($element.trigger(BJUI.eventType.beforeInitUI)).done(function(){
            $element.trigger(BJUI.eventType.initUI)
        })
    }

    // INITUI PLUGIN DEFINITION
    // =======================

    function Plugin(option) {
        var args     = arguments
        var property = option

        return this.each(function () {
            var $this   = $(this)
            var options = $.extend({}, Initui.DEFAULTS, $this.data(), typeof option == 'object' && option)
            var data    = $this.data('bjui.initui')

            if (!data) $this.data('bjui.initui', (data = new Initui(this, options)))

            if (typeof property == 'string' && $.isFunction(data[property])) {
                [].shift.apply(args)
                if (!args) data[property]()
                else data[property].apply(data, args)
            } else {
                data.init()
            }
        })
    }

    var old = $.fn.initui

    $.fn.initui             = Plugin
    $.fn.initui.Constructor = Initui

    // INITUI NO CONFLICT
    // =================

    $.fn.initui.noConflict = function () {
        $.fn.initui = old
        return this
    }

    // INITUI DATA-API
    // ==============

    $(document).on('click.bjui.initui.data-api', '[data-toggle="initui"]', function(e) {
        Plugin.call($this, $this.data())

        e.preventDefault()
    })

    /* beforeInitUI */
    $(document).on(BJUI.eventType.beforeInitUI, function(e) {
        var $box    = $(e.target)
        var noinits = []
        var $noinit = $box.find('[data-noinit]')

        //progress
        $box.find('> .bjui-maskProgress').find('.progress').stop().animate({width:'85%'}, 'normal')

        // Hide not need to initialize the UI DOM
        $noinit.each(function(i) {
            var $this   = $(this)
            var pos     = {}

            pos.$target = $this
            pos.$next   = $this.next()
            pos.$prev   = $this.prev()
            pos.$parent = $this.parent()
            pos.visible = $this.is(':visible') ? true : false

            noinits.push(pos)
            $this.remove()
        })

        $box.data('bjui.noinit', noinits)
    })

    /* initUI */
    $(document).on(BJUI.eventType.initUI, function(e) {
        var $box    = $(e.target)

        //progress
        $box.find('> .bjui-maskProgress').find('.progress').stop().animate({width:'95%'}, 'fast')
    })

    /* afterInitUI */
    $(document).on(BJUI.eventType.afterInitUI, function(e) {
        var $box    = $(e.target)
        var noinits = $box.data('bjui.noinit')
        var $form   = $box.find('> .bjui-pageContent').find('form')

        // Recovery not need to initialize the UI DOM
        if (noinits) {
            $.each(noinits, function(i, n) {
                if (n.$next.length) n.$next.before(n.$target)
                else if (n.$prev.length) n.$prev.after(n.$target)
                else if (n.$parent.length) n.$parent.append(n.$target)

                if (n.visible) n.$target.show()

                $box.removeData('bjui.noinit')
            })
        }

        /* resizePageH */
        $box.resizePageH()

        //submit
        if ($form.length == 1) {
            $box.find('> .bjui-pageFooter').find(':submit').on('click.bjui.submit', function(e) {
                e.preventDefault()

                $form.submit()
            })
        }

        //progress
        $box.find('.bjui-maskProgress').find('.progress').stop().animate({width:'100%'}, 'fast', function() {
            $box.find('.bjui-ajax-mask').fadeOut('normal', function() { $(this).remove() })
        })
    })

    /* Lateral Navigation */
    $(document).one(BJUI.eventType.afterInitUI, function(e) {
        var $hnavbar = $('#bjui-hnav-navbar'), $active = $hnavbar.find('> li.active')

        if ($active.length && $active.find('> ul.ztree').length) {
            $active.find('> a').trigger('click')
        }
    })

    $(document).on('click.bjui.lnav.data-api', '[data-toggle="leftbar"]', function(e) {
        var $this = $(this)
        var $box  = $($this.attr('href'))
        var $hnav = $('#bjui-hnav')

        if ($box.length) {
            $('#bjui-sidebar').find('.panel-group').addClass('hide')
            $box.removeClass('hide')
            $this.parent().addClass('active').siblings().removeClass('active')
            if ($hnav.find('button[data-toggle="collapse"]').is(':visible')) {
                $this.closest('.navbar-collapse').removeClass('in')
            }
        }

        e.preventDefault()
    })

    /* ajaxStatus */
    var bjui_ajaxStatus = function($target) {
        var $this    = $target
        var $offset  = $this
        var position = $this.css('position')

        if (position == 'static') $offset  = $this.offsetParent()

        var zIndex   = parseInt($offset.css('zIndex')) || 0
        var $ajaxBackground = $this.find('> .bjui-maskBackground')
        var $ajaxProgress   = $this.find('> .bjui-maskProgress')

        if (!$ajaxBackground.length) {
            $ajaxBackground = $(FRAG.maskBackground)
            $ajaxProgress   = $(FRAG.maskProgress.replace('#msg#', BJUI.regional.progressmsg))
            $this.append($ajaxBackground).append($ajaxProgress)
        }

        var bgZindex = parseInt($ajaxBackground.css('zIndex')) || 0
        var prZindex = parseInt($ajaxProgress.css('zIndex')) || 0

        $ajaxBackground.css('zIndex', zIndex + 1)
        $ajaxProgress.css('zIndex', zIndex + 2)

        return {$bg:$ajaxBackground, $pr:$ajaxProgress}
    }

    $(document)
        .on('bjui.ajaxStart', function(e) {
            var ajaxMask = bjui_ajaxStatus($(e.target))

            ajaxMask.$bg.fadeIn()
            ajaxMask.$pr.fadeIn()
            ajaxMask.$pr.find('.progress').animate({width:'80%'}, 5000)
        })
        .on('bjui.ajaxStop', function(e) {
            var ajaxMask = bjui_ajaxStatus($(e.target))

            ajaxMask.$pr.find('.progress').animate({width:'100%'}, 'fast', function() {
                ajaxMask.$bg.remove()
                ajaxMask.$pr.remove()
            })
        })
        .on('bjui.ajaxError', function(e) {
            var ajaxMask = bjui_ajaxStatus($(e.target))

            ajaxMask.$bg.remove()
            ajaxMask.$pr.remove()
        })

    $(document).on(BJUI.eventType.ajaxStatus, function(e) {
        var $target = $(e.target), ajaxMask = bjui_ajaxStatus($target)

        $target
            .one('ajaxStart', function() {
                ajaxMask.$bg.fadeIn()
                ajaxMask.$pr.fadeIn()
                ajaxMask.$pr.find('.progress').animate({width:'80%'}, 5000)
            })
            .one('ajaxStop', function() {
                //ajaxMask.$bg.fadeOut()
                //ajaxMask.$pr.fadeOut()
                //ajaxMask.$pr.find('.progress').animate({width:'50%'}, 'slow')
            })
            .one('ajaxError', function() {
                ajaxMask.$bg.remove()
                ajaxMask.$pr.remove()
            })
    })

    /* Clean plugins generated 'Dom elements' in the body */
    var bodyClear = function($target) {
        $target.find('select[data-toggle="selectpicker"]').selectpicker('destroyMenu')
        $target.find('[data-toggle="selectztree"]').trigger('destroy.bjui.selectztree')
    }

    $(document).on(BJUI.eventType.beforeLoadDialog, function(e) {

    }).on(BJUI.eventType.beforeAjaxLoad, function(e) {
        bodyClear($(e.target))
    }).on(BJUI.eventType.beforeCloseNavtab, function(e) {
        bodyClear($(e.target))
    }).on(BJUI.eventType.beforeCloseDialog, function(e) {
        bodyClear($(e.target))
    })

}(jQuery);


text:
/**
 *
 */
package de.arago.rike.task.action;

import de.arago.portlet.Action;

import de.arago.data.IDataWrapper;
import java.util.HashMap;

public class SelectTask implements Action {

    public void execute(IDataWrapper data) {

        if (data.getRequestAttribute("id") != null) {
            HashMap<String, Object> notificationParam = new HashMap<String, Object>();

            notificationParam.put("id", data.getRequestAttribute("id"));
            data.setEvent("TaskSelectNotification", notificationParam);
        }
    }
}


text:
package ru.stringequals;
/**
* This class checks Sub String is origin string.
*/
public class StringEquals {
	/**
	* Method who checks.
	*@param origin String
	*@param sub String
	*@return true or false
	*/
	public boolean stringbelongs(String sub, String origin) {
		/**
		* Variable for return.
		*/
		boolean result = false;
		char[] originString = origin.toCharArray();
		char[] subString = sub.toCharArray();
		for (int i = 0; i < originString.length; i++) {
			if (originString[i] == subString[0]) {
				for (int j = 0; j < subString.length; j++) {
					if (originString[i] == subString[j]) {
						result = true;
						i++;
					} else {
						result = false;
					}
				}
			}
			if (result)	{
			break;
			}
		}
		return result;
	}
}


text:
package eu.ydp.empiria.player.client.controller.extensions.types;

import eu.ydp.empiria.player.client.controller.flow.FlowDataSupplier;

public interface FlowDataSocketUserExtension {

    void setFlowDataSupplier(FlowDataSupplier supplier);
}


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

namespace DIBRIS.Dessert.Recording
{
    using System;
    using Core;

    /// <summary>
    ///   An instance of this interface records enough information (such as sums and sums of squares)
    ///   while the simulation runs to return simple data summaries. This has the advantage of speed and low memory use.
    ///   However, they do not preserve a time-series usable in more advanced statistical analysis.
    /// </summary>
    /// <remarks>
    ///   Monitors and tallies may not be bound to a specific <see cref="SimEnvironment"/>, in order to ease
    ///   their usage in inter environment recordings; when they are unbounded their <see cref="SimEntity.Env"/>
    ///   property points to a dummy environment.<br/>
    ///   However, please pay attention to the fact that both monitors and tallies are not thread safe:
    ///   therefore, recall this fact when you use them in a multi threaded simulation scenario.
    /// </remarks>
    public sealed class Tally : SimEntity, IRecorder
    {
        double _integral;
        double _integral2;
        double _lastSample;
        double _sum;
        double _sumOfSquares;

        internal Tally(SimEnvironment env) : base(env)
        {
            StartTime = LastTime = env.Now;
        }

        void DoObserve(double sample, double time)
        {
            _integral += (time - LastTime) * _lastSample;
            _integral2 += (time - LastTime) * _lastSample * _lastSample;
            _lastSample = sample;
            LastTime = time;
            Count++;
            _sum += sample;
            _sumOfSquares += sample*sample;
        }

        void DoReset(double time)
        {
            StartTime = LastTime = time;
            _integral = _integral2 = 0;
            _lastSample = 0;
            Count = 0;
            _sum = _sumOfSquares = 0;
        }

        #region ITally Members

        public int Count { get; private set; }

        public double LastTime { get; private set; }

        public double StartTime { get; private set; }

        public double Mean()
        {
            return _sum/Count;
        }

        public void Observe(double sample)
        {
            DoObserve(sample, Env.Now);
        }

        public void Observe(double sample, double time)
        {
            DoObserve(sample, time);
        }

        public void Reset()
        {
            DoReset(Env.Now);
        }

        public void Reset(double time)
        {
            DoReset(time);
        }

        public double StdDev()
        {
            return Math.Sqrt(Variance());
        }

        public double TimeMean()
        {
            return TimeMean(Env.Now);
        }

        public double TimeMean(double time)
        {
            var integral = _integral + (time - LastTime) * _lastSample;
            return integral/(time - StartTime);
        }

        public double TimeStdDev()
        {
            return TimeStdDev(Env.Now);
        }

        public double TimeStdDev(double time)
        {
            return Math.Sqrt(TimeVariance(time));
        }

        public double TimeVariance()
        {
            return TimeVariance(Env.Now);
        }

        public double TimeVariance(double time)
        {
            var timeMean = TimeMean(time);
            var integral2 = _integral2 + (time - LastTime) * _lastSample * _lastSample;
            return integral2/(time - StartTime) - timeMean*timeMean;
        }

        public double Total()
        {
            return _sum;
        }

        public double Variance()
        {
            return (_sumOfSquares - ((_sum*_sum)/Count))/Count;
        }

        #endregion
    }
}


text:
<?php

declare(strict_types=1);

namespace ApiPlatform\Core\Tests\Fixtures;

/**
 * A related dummy entity.
 *
 * @author Antoine Bluchet <soyuka@gmail.com>
 */
class RelatedDummyEntity
{
}


text:
@extends( 'layouts.master' )

@section( 'heading', 'New user' )

@section( 'heading', 'New user' )

@section( 'main' )

    @row
        @col( s12 )

                    group
                    {!! trans('laravel-user-verification::user-verification.verification_error_header') !!}

                    {!! trans('laravel-user-verification::user-verification.verification_error_message') !!}

                        navigate_before
                        {!! trans('laravel-user-verification::user-verification.verification_error_back_button') !!}

        @endcol
    @endrow

@endsection


text:
from tests.conftest import JiraTestCase

class IssuePropertyTests(JiraTestCase):
    def setUp(self):
        JiraTestCase.setUp(self)
        self.issue_1 = self.test_manager.project_b_issue1

    def test_issue_property(self):
        self.jira.add_issue_property(
            self.issue_1, "custom-property", "Testing a property value"
        )
        properties = self.jira.issue_properties(self.issue_1)
        self.assertEqual(len(properties), 1)

        prop = self.jira.issue_property(self.issue_1, "custom-property")
        self.assertEqual(prop.key, "custom-property")
        self.assertEqual(prop.value, "Testing a property value")
        prop.delete()
        properties = self.jira.issue_properties(self.issue_1)
        self.assertEqual(len(properties), 0)


text:
'use strict';

/* eslint-disable new-cap */

module.exports = {
  /**
   * @param {import('sequelize').QueryInterface} queryInterface
   * @param {typeof import('sequelize')} Sequelize
   */
  up: async (queryInterface, Sequelize) => {
    await queryInterface.addColumn('statistics', 'version', {type: Sequelize.NUMERIC(8, 2)});
    await queryInterface.bulkUpdate(
      'statistics',
      {version: 1},
      {version: null},
      {type: Sequelize.QueryTypes.BULKUPDATE}
    );
  },
  /**
   * @param {import('sequelize').QueryInterface} queryInterface
   */
  down: async queryInterface => {
    await queryInterface.removeColumn('statistics', 'version');
  },
};


text:
class Box : public SimpleGeometry
{
public:
  Box(const bounds::AABB& box) : _bounds(box)
  {
  }

  scalar_fp intersect(const Ray& r, scalar_fp max_t) const override;

  Vec3 normal(SubGeo, const Vec3& point) const override;

  bool is_differential() const override { return false; }

  void texture_coord(SubGeo, const Vec3& pos, const Vec3& normal,
                     scalar& u, scalar& v) const override;

  bool is_bounded() const override { return true; }

  bounds::AABB get_bounding_box() const override;

  std::string to_string() const override;

  bounds::AABB _bounds;
};


text:
<?php
	require_once('../support/config.php');
	if(isset($_POST['acctno']) && isset($_POST['acctname']) && isset($_POST['accttype'])){
		var_dump($_POST);
		$acct_no=$_POST['acctno'];
		$acct_name=$_POST['acctname'];
		$rowcount= $connection->myQuery("SELECT * FROM `accounts` WHERE `account_name` = '$acct_name' AND `acc_id` != '$acct_no'")->rowcount();
		// die;
		if($rowcount>0){
			setAlert("Uhh ohh! The account number and account name chosen was existing already",'danger');
			redirect('../chart_of_accounts.php?id='.$acct_no);

		}else{
		$acct_no=$_POST['acctno'];
		$acct_name=$_POST['acctname'];
		$acct_type=$_POST['accttype'];

		$query = $connection->myQuery("INSERT INTO `accounts` (`acc_id`, `account_name`, `type`, `is_deleted`) VALUES ( '$acct_no', '$acct_name', '$acct_type', '0')");
		setAlert("Registered a new account",'success');
		redirect('../chart_of_accounts.php');
		}

	}else{
		redirect('../index.php');
	}

?>


text:
FrameTracker::FrameTracker(DevToolsClient* client) : client_(client) {
  DCHECK(client_);
  client_->AddListener(this);
}

FrameTracker::~FrameTracker() {}

Status FrameTracker::GetFrameForContextId(
    int context_id, std::string* frame_id) {
  if (context_to_frame_map_.count(context_id) == 0)
    return Status(kUnknownError, "execution context does not have a frame");
  *frame_id = context_to_frame_map_[context_id];
  return Status(kOk);
}

Status FrameTracker::GetContextIdForFrame(
    const std::string& frame_id, int* context_id) {
  if (frame_to_context_map_.count(frame_id) == 0)
    return Status(kUnknownError, "frame does not have execution context");
  *context_id = frame_to_context_map_[frame_id];
  return Status(kOk);
}

Status FrameTracker::OnConnected() {
  frame_to_context_map_.clear();
  context_to_frame_map_.clear();
  // Enable runtime events to allow tracking execution context creation.
  base::DictionaryValue params;
  Status status = client_->SendCommand("Runtime.enable", params);
  if (status.IsError())
    return status;
  return client_->SendCommand("DOM.getDocument", params);
}

void FrameTracker::OnEvent(const std::string& method,
                           const base::DictionaryValue& params) {
  if (method == "Runtime.executionContextCreated") {
    const base::DictionaryValue* context;
    if (!params.GetDictionary("context", &context)) {
      LOG(ERROR) << "Runtime.executionContextCreated missing dict 'context'";
      return;
    }
    int context_id;
    std::string frame_id;
    if (!context->GetInteger("id", &context_id) ||
        !context->GetString("frameId", &frame_id)) {
      std::string json;
      base::JSONWriter::Write(context, &json);
      LOG(ERROR) << "Runtime.executionContextCreated has invalid 'context': "
                 << json;
      return;
    }
    frame_to_context_map_.insert(std::make_pair(frame_id, context_id));
    context_to_frame_map_.insert(std::make_pair(context_id, frame_id));
  } else if (method == "DOM.documentUpdated") {
    frame_to_context_map_.clear();
    context_to_frame_map_.clear();
  }
}


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<title>Aggregator (Apache JMeter API)</title>
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">

JavaScript is disabled on your browser.

Skip navigation links

Overview

Package

Class

Tree

Deprecated

Index

Help

Apache JMeter

Prev Class

Next Class

Frames

No Frames

All Classes

Summary:

Nested |

Field |

Constr |

Method

Detail:

Field |

Constr |

Method

org.apache.jmeter.report.processor

Interface Aggregator

All Known Implementing Classes:

MaxAggregator, MeanAggregator, MinAggregator, PercentileAggregator, SumAggregator, TimeRateAggregator

public interface Aggregator

The interface Aggregator represents an aggregator used by graph consumers.

Since:

3.0

Method Summary

All Methods Instance Methods Abstract Methods

Modifier and Type
Method and Description

void
addValue(double value)

Adds the specified value to the storage of the current aggregator.

long
getCount()

Gets the number of aggregated values.

double
getResult()

Gets the result of the aggregation using stored values.

void
reset()

Reset the state of the aggregator.

Method Detail

getCount

long getCount()

Gets the number of aggregated values.

Returns:

the number of aggregated values

getResult

double getResult()

Gets the result of the aggregation using stored values.

Returns:

the result of the aggregation.

addValue

void addValue(double value)

Adds the specified value to the storage of the current aggregator.

Parameters:

value - the value to aggregate

reset

void reset()

Reset the state of the aggregator.

Skip navigation links

Overview

Package

Class

Tree

Deprecated

Index

Help

Apache JMeter

Prev Class

Next Class

Frames

No Frames

All Classes

Summary:

Nested |

Field |

Constr |

Method

Detail:

Field |

Constr |

Method

Copyright © 1998-2017 Apache Software Foundation. All Rights Reserved.


text:
<!DOCTYPE HTML>

    <title>Sonde</title>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>

    <link rel="stylesheet" href="assets/css/main.css"/>

Default

Default Description

Sonde

Menu

Ajouter Sonde

<input type="text" name="nomSonde" id="nomSonde" placeholder="nom"/>

<input type="text" name="longitude" id="longitude" placeholder="longitude"/>

<input type="text" name="latitude" id="latitude" placeholder="latitude"/>

Date d'installation &nbsp <input type="date" name="dateDeploiement" id="dateDeploiement"/>

Nombre de capteur &nbsp <input onchange="ajoutCapteurASonde()" type="number" name="nombreCapteur" id="nombreCapteur"/>

<input type="button" class="special" value="Ajouter" onclick="AjouterSonde()"/>