text:
/* create the Full SCT data tables */

drop table if exists concept_f;
create table concept_f(
id bigint(20) not null,
effectivetime char(8) not null,
active char(1) not null,
moduleid bigint(20) not null,
definitionstatusid bigint(20) not null,
key idx_id(id),
key idx_effectivetime(effectivetime),
key idx_active(active),
key idx_moduleid(moduleid),
key idx_definitionstatusid(definitionstatusid)
) engine=myisam default charset=utf8;

drop table if exists description_f;
create table description_f(
id bigint(20) not null,
effectivetime char(8) not null,
active char(1) not null,
moduleid bigint(20) not null,
conceptid bigint(20) not null,
languagecode varchar(2) not null,
typeid bigint(20) not null,
term varchar(256) not null collate utf8_bin,
casesignificanceid bigint(20) not null,
key idx_id(id),
key idx_effectivetime(effectivetime),
key idx_active(active),
key idx_moduleid(moduleid),
key idx_conceptid(conceptid),
key idx_languagecode(languagecode),
key idx_typeid(typeid),
key idx_casesignificanceid(casesignificanceid)
) engine=myisam default charset=utf8;

drop table if exists textdefinition_f;
create table textdefinition_f(
id bigint(20) not null,
effectivetime char(8) not null,
active char(1) not null,
moduleid bigint(20) not null,
conceptid bigint(20) not null,
languagecode varchar(2) not null,
typeid bigint(20) not null,
term varchar(4096) not null,
casesignificanceid bigint(20) not null,
key idx_id(id),
key idx_effectivetime(effectivetime),
key idx_active(active),
key idx_moduleid(moduleid),
key idx_conceptid(conceptid),
key idx_languagecode(languagecode),
key idx_typeid(typeid),
key idx_casesignificanceid(casesignificanceid)
) engine=myisam default charset=utf8;

drop table if exists relationship_f;
create table relationship_f(
id bigint(20) not null,
effectivetime char(8) not null,
active char(1) not null,
moduleid bigint(20) not null,
sourceid bigint(20) not null,
destinationid bigint(20) not null,
relationshipgroup bigint(20) not null,
typeid bigint(20) not null,
characteristictypeid bigint(20) not null,
modifierid bigint(20) not null,
key idx_id(id),
key idx_effectivetime(effectivetime),
key idx_active(active),
key idx_moduleid(moduleid),
key idx_sourceid(sourceid),
key idx_destinationid(destinationid),
key idx_relationshipgroup(relationshipgroup),
key idx_typeid(typeid),
key idx_characteristictypeid(characteristictypeid),
key idx_modifierid(modifierid)
) engine=myisam default charset=utf8;

drop table if exists stated_relationship_f;
create table stated_relationship_f(
id bigint(20) not null,
effectivetime char(8) not null,
active char(1) not null,
moduleid bigint(20) not null,
sourceid bigint(20) not null,
destinationid bigint(20) not null,
relationshipgroup bigint(20) not null,
typeid bigint(20) not null,
characteristictypeid bigint(20) not null,
modifierid bigint(20) not null,
key idx_id(id),
key idx_effectivetime(effectivetime),
key idx_active(active),
key idx_moduleid(moduleid),
key idx_sourceid(sourceid),
key idx_destinationid(destinationid),
key idx_relationshipgroup(relationshipgroup),
key idx_typeid(typeid),
key idx_characteristictypeid(characteristictypeid),
key idx_modifierid(modifierid)
) engine=myisam default charset=utf8;

drop table if exists relationship_concrete_values_f;
create table relationship_concrete_values_f(
id bigint(20) not null,
effectivetime char(8) not null,
active char(1) not null,
moduleid bigint(20) not null,
sourceid bigint(20) not null,
value varchar(4096) not null,
relationshipgroup bigint(20) not null,
typeid bigint(20) not null,
characteristictypeid bigint(20) not null,
modifierid bigint(20) not null,
key idx_id(id),
key idx_effectivetime(effectivetime),
key idx_active(active),
key idx_moduleid(moduleid),
key idx_sourceid(sourceid),
key idx_relationshipgroup(relationshipgroup),
key idx_typeid(typeid),
key idx_characteristictypeid(characteristictypeid),
key idx_modifierid(modifierid)
) engine=myisam default charset=utf8;

drop table if exists langrefset_f;
create table langrefset_f(
id varchar(36) not null,
effectivetime char(8) not null,
active char(1) not null,
moduleid bigint(20) not null,
refsetid bigint(20) not null,
referencedcomponentid bigint(20) not null,
acceptabilityid bigint(20) not null,
key idx_id(id),
key idx_effectivetime(effectivetime),
key idx_active(active),
key idx_moduleid(moduleid),
key idx_refsetid(refsetid),
key idx_referencedcomponentid(referencedcomponentid),
key idx_acceptabilityid(acceptabilityid)
) engine=myisam default charset=utf8;

drop table if exists associationrefset_f;
create table associationrefset_f(
id varchar(36) not null,
effectivetime char(8) not null,
active char(1) not null,
moduleid bigint(20) not null,
refsetid bigint(20) not null,
referencedcomponentid bigint(20) not null,
targetcomponentid bigint(20) not null,
key idx_id(id),
key idx_effectivetime(effectivetime),
key idx_active(active),
key idx_moduleid(moduleid),
key idx_refsetid(refsetid),
key idx_referencedcomponentid(referencedcomponentid),
key idx_targetcomponentid(targetcomponentid)
) engine=myisam default charset=utf8;

drop table if exists attributevaluerefset_f;
create table attributevaluerefset_f(
id varchar(36) not null,
effectivetime char(8) not null,
active char(1) not null,
moduleid bigint(20) not null,
refsetid bigint(20) not null,
referencedcomponentid bigint(20) not null,
valueid bigint(20) not null,
key idx_id(id),
key idx_effectivetime(effectivetime),
key idx_active(active),
key idx_moduleid(moduleid),
key idx_refsetid(refsetid),
key idx_referencedcomponentid(referencedcomponentid),
key idx_valueid(valueid)
) engine=myisam default charset=utf8;

drop table if exists simplemaprefset_f;
create table simplemaprefset_f(
id varchar(36) not null,
effectivetime char(8) not null,
active char(1) not null,
moduleid bigint(20) not null,
refsetid bigint(20) not null,
referencedcomponentid bigint(20) not null,
maptarget varchar(32) not null,
key idx_id(id),
key idx_effectivetime(effectivetime),
key idx_active(active),
key idx_moduleid(moduleid),
key idx_refsetid(refsetid),
key idx_referencedcomponentid(referencedcomponentid),
key idx_maptarget(maptarget)
) engine=myisam default charset=utf8;

drop table if exists simplerefset_f;
create table simplerefset_f(
	id varchar(36) not null,
	effectivetime char(8) not null,
	active char(1) not null,
	moduleid bigint(20) not null,
	refsetid bigint(20) not null,
	referencedcomponentid bigint(20) not null,
	key idx_id(id),
	key idx_effectivetime(effectivetime),
	key idx_active(active),
	key idx_moduleid(moduleid),
	key idx_refsetid(refsetid),
	key idx_referencedcomponentid(referencedcomponentid)
) engine=myisam default charset=utf8;

drop table if exists complexmaprefset_f;
create table complexmaprefset_f(
	id varchar(36) not null,
	effectivetime char(8) not null,
	active char(1) not null,
	moduleid bigint(20) not null,
	refsetid bigint(20) not null,
	referencedcomponentid bigint(20) not null,
	mapGroup smallint not null,
	mapPriority smallint not null,
	mapRule varchar(300),
	mapAdvice varchar(500),
	mapTarget varchar(10),
	correlationId bigint(20) not null,
	key idx_id(id),
	key idx_effectivetime(effectivetime),
	key idx_active(active),
	key idx_moduleid(moduleid),
	key idx_refsetid(refsetid),
	key idx_referencedcomponentid(referencedcomponentid),
	key idx_mapTarget(mapTarget)
) engine=myisam default charset=utf8;

drop table if exists moduledependencyrefset_f;
create table moduledependencyrefset_f(
	id varchar(36) not null,
	effectivetime char(8) not null,
	active char(1) not null,
	moduleid bigint(20) not null,
	refsetid bigint(20) not null,
	referencedcomponentid bigint(20) not null,
	sourceeffectivetime char(8) not null,
	targeteffectivetime char(8) not null,
	key idx_id(id),
	key idx_effectivetime(effectivetime),
	key idx_active(active),
	key idx_moduleid(moduleid),
	key idx_refsetid(refsetid),
	key idx_referencedcomponentid(referencedcomponentid),
	key idx_sourceeffectivetime(sourceeffectivetime),
	key idx_targeteffectivetime(targeteffectivetime)
) engine=myisam default charset=utf8;

drop table if exists refsetdescriptor_f;
create table refsetdescriptor_f(
	id varchar(36) not null,
	effectivetime char(8) not null,
	active char(1) not null,
	moduleid bigint(20) not null,
	refsetid bigint(20) not null,
	referencedcomponentid bigint(20) not null,
	attributedescription bigint(20) not null,
	attributetype bigint(20) not null,
	attributeorder bigint(2) not null,
	key idx_id(id),
	key idx_effectivetime(effectivetime),
	key idx_active(active),
	key idx_moduleid(moduleid),
	key idx_refsetid(refsetid),
	key idx_referencedcomponentid(referencedcomponentid),
	key idx_attributedescription(attributedescription),
	key idx_attributetype(attributetype),
	key idx_attributeorder(attributeorder)
) engine=myisam default charset=utf8;

drop table if exists owlexpressionrefset_f;
create table owlexpressionrefset_f(
	id varchar(36) not null,
	effectivetime char(8) not null,
	active char(1) not null,
	moduleid bigint(20) not null,
	refsetid bigint(20) not null,
	referencedcomponentid bigint(20) not null,
	owlexpression text not null,
	key idx_id(id),
	key idx_effectivetime(effectivetime),
	key idx_active(active),
	key idx_moduleid(moduleid),
	key idx_refsetid(refsetid),
	key idx_referencedcomponentid(referencedcomponentid)
) engine=myisam default charset=utf8;

drop table if exists mrcmattributedomainrefset_f;
create table mrcmattributedomainrefset_f(
	id varchar(36) not null,
	effectivetime char(8) not null,
	active char(1) not null,
	moduleid bigint(20) not null,
	refsetid bigint(20) not null,
	referencedcomponentid bigint(20) not null,
	domainid bigint(20) not null,
	grouped char(1) not null,
	attributecardinality char(4) not null,
	attributeingroupcardinality char(4) not null,
	rulestrengthid bigint(20) not null,
	contenttypeid bigint(20) not null,
	key idx_id(id),
	key idx_effectivetime(effectivetime),
	key idx_active(active),
	key idx_moduleid(moduleid),
	key idx_refsetid(refsetid),
	key idx_referencedcomponentid(referencedcomponentid),
	key idx_domainid(domainid),
	key idx_grouped(grouped),
	key idx_attributecardinality(attributecardinality),
	key idx_attributeingroupcardinality(attributeingroupcardinality),
	key idx_rulestrengthid(rulestrengthid),
	key idx_contenttypeid(contenttypeid)
) engine=myisam default charset=utf8;

drop table if exists mrcmmodulescoperefset_f;
create table mrcmmodulescoperefset_f(
	id varchar(36) not null,
	effectivetime char(8) not null,
	active char(1) not null,
	moduleid bigint(20) not null,
	refsetid bigint(20) not null,
	referencedcomponentid bigint(20) not null,
	mrcmRuleRefsetId bigint(20) not null,
	key idx_id(id),
	key idx_effectivetime(effectivetime),
	key idx_active(active),
	key idx_moduleid(moduleid),
	key idx_refsetid(refsetid),
	key idx_referencedcomponentid(referencedcomponentid)
) engine=myisam default charset=utf8;

drop table if exists mrcmattributerangerefset_f;
create table mrcmattributerangerefset_f(
	id varchar(36) not null,
	effectivetime char(8) not null,
	active char(1) not null,
	moduleid bigint(20) not null,
	refsetid bigint(20) not null,
	referencedcomponentid bigint(20) not null,
	rangeConstraint text not null,
	attributeRule text not null,
	ruleStrengthId bigint(20) not null,
	contentTypeId bigint(20) not null,
	key idx_id(id),
	key idx_effectivetime(effectivetime),
	key idx_active(active),
	key idx_moduleid(moduleid),
	key idx_refsetid(refsetid),
	key idx_referencedcomponentid(referencedcomponentid)
) engine=myisam default charset=utf8;

drop table if exists mrcmdomainrefset_f;
create table mrcmdomainrefset_f(
	id varchar(36) not null,
	effectivetime char(8) not null,
	active char(1) not null,
	moduleid bigint(20) not null,
	refsetid bigint(20) not null,
	referencedcomponentid bigint(20) not null,
	domainconstraint varchar(1024) not null,
	parentdomain varchar(1024) not null,
	proximalPrimitiveConstraint text not null,
	proximalPrimitiveRefinement text not null,
	domainTemplateForPrecoordination text not null,
	domainTemplateForPostcoordination text not null,
	guideurl varchar(255) not null,
	key idx_id(id),
	key idx_effectivetime(effectivetime),
	key idx_active(active),
	key idx_moduleid(moduleid),
	key idx_refsetid(refsetid),
	key idx_referencedcomponentid(referencedcomponentid)
) engine=myisam default charset=utf8;

drop table if exists descriptiontyperefset_f;
create table descriptiontyperefset_f(
	id varchar(36) not null,
	effectivetime char(8) not null,
	active char(1) not null,
	moduleid bigint(20) not null,
	refsetid bigint(20) not null,
	referencedcomponentid bigint(20) not null,
	descriptionformat bigint(20) not null,
	descriptionlength int not null,
	key idx_id(id),
	key idx_effectivetime(effectivetime),
	key idx_active(active),
	key idx_moduleid(moduleid),
	key idx_refsetid(refsetid),
	key idx_referencedcomponentid(referencedcomponentid),
	key idx_descriptionformat(descriptionformat),
	key idx_descriptionlength(descriptionlength)
) engine=myisam default charset=utf8;

/* create the Snapshot S-CT data tables */

drop table if exists concept_s;
create table concept_s(
id bigint(20) not null,
effectivetime char(8) not null,
active char(1) not null,
moduleid bigint(20) not null,
definitionstatusid bigint(20) not null,
key idx_id(id),
key idx_effectivetime(effectivetime),
key idx_active(active),
key idx_moduleid(moduleid),
key idx_definitionstatusid(definitionstatusid)
) engine=myisam default charset=utf8;

drop table if exists description_s;
create table description_s(
id bigint(20) not null,
effectivetime char(8) not null,
active char(1) not null,
moduleid bigint(20) not null,
conceptid bigint(20) not null,
languagecode varchar(2) not null,
typeid bigint(20) not null,
term varchar(256) not null collate utf8_bin,
casesignificanceid bigint(20) not null,
key idx_id(id),
key idx_effectivetime(effectivetime),
key idx_active(active),
key idx_moduleid(moduleid),
key idx_conceptid(conceptid),
key idx_languagecode(languagecode),
key idx_typeid(typeid),
key idx_casesignificanceid(casesignificanceid),
key idx_term(term)
) engine=myisam default charset=utf8;

drop table if exists textdefinition_s;
create table textdefinition_s(
id bigint(20) not null,
effectivetime char(8) not null,
active char(1) not null,
moduleid bigint(20) not null,
conceptid bigint(20) not null,
languagecode varchar(2) not null,
typeid bigint(20) not null,
term varchar(2048) not null,
casesignificanceid bigint(20) not null,
key idx_id(id),
key idx_effectivetime(effectivetime),
key idx_active(active),
key idx_moduleid(moduleid),
key idx_conceptid(conceptid),
key idx_languagecode(languagecode),
key idx_typeid(typeid),
key idx_casesignificanceid(casesignificanceid)
) engine=myisam default charset=utf8;

drop table if exists relationship_s;
create table relationship_s(
id bigint(20) not null,
effectivetime char(8) not null,
active char(1) not null,
moduleid bigint(20) not null,
sourceid bigint(20) not null,
destinationid bigint(20) not null,
relationshipgroup bigint(20) not null,
typeid bigint(20) not null,
characteristictypeid bigint(20) not null,
modifierid bigint(20) not null,
key idx_id(id),
key idx_effectivetime(effectivetime),
key idx_active(active),
key idx_moduleid(moduleid),
key idx_sourceid(sourceid),
key idx_destinationid(destinationid),
key idx_relationshipgroup(relationshipgroup),
key idx_typeid(typeid),
key idx_characteristictypeid(characteristictypeid),
key idx_modifierid(modifierid)
) engine=myisam default charset=utf8;

drop table if exists stated_relationship_s;
create table stated_relationship_s(
id bigint(20) not null,
effectivetime char(8) not null,
active char(1) not null,
moduleid bigint(20) not null,
sourceid bigint(20) not null,
destinationid bigint(20) not null,
relationshipgroup bigint(20) not null,
typeid bigint(20) not null,
characteristictypeid bigint(20) not null,
modifierid bigint(20) not null,
key idx_id(id),
key idx_effectivetime(effectivetime),
key idx_active(active),
key idx_moduleid(moduleid),
key idx_sourceid(sourceid),
key idx_destinationid(destinationid),
key idx_relationshipgroup(relationshipgroup),
key idx_typeid(typeid),
key idx_characteristictypeid(characteristictypeid),
key idx_modifierid(modifierid)
) engine=myisam default charset=utf8;

drop table if exists relationship_concrete_values_s;
create table relationship_concrete_values_s(
id bigint(20) not null,
effectivetime char(8) not null,
active char(1) not null,
moduleid bigint(20) not null,
sourceid bigint(20) not null,
value varchar(4096) not null,
relationshipgroup bigint(20) not null,
typeid bigint(20) not null,
characteristictypeid bigint(20) not null,
modifierid bigint(20) not null,
key idx_id(id),
key idx_effectivetime(effectivetime),
key idx_active(active),
key idx_moduleid(moduleid),
key idx_sourceid(sourceid),
key idx_relationshipgroup(relationshipgroup),
key idx_typeid(typeid),
key idx_characteristictypeid(characteristictypeid),
key idx_modifierid(modifierid)
) engine=myisam default charset=utf8;

drop table if exists langrefset_s;
create table langrefset_s(
id varchar(36) not null,
effectivetime char(8) not null,
active char(1) not null,
moduleid bigint(20) not null,
refsetid bigint(20) not null,
referencedcomponentid bigint(20) not null,
acceptabilityid bigint(20) not null,
key idx_id(id),
key idx_effectivetime(effectivetime),
key idx_active(active),
key idx_moduleid(moduleid),
key idx_refsetid(refsetid),
key idx_referencedcomponentid(referencedcomponentid),
key idx_acceptabilityid(acceptabilityid)
) engine=myisam default charset=utf8;

drop table if exists associationrefset_s;
create table associationrefset_s(
id varchar(36) not null,
effectivetime char(8) not null,
active char(1) not null,
moduleid bigint(20) not null,
refsetid bigint(20) not null,
referencedcomponentid bigint(20) not null,
targetcomponentid bigint(20) not null,
key idx_id(id),
key idx_effectivetime(effectivetime),
key idx_active(active),
key idx_moduleid(moduleid),
key idx_refsetid(refsetid),
key idx_referencedcomponentid(referencedcomponentid),
key idx_targetcomponentid(targetcomponentid)
) engine=myisam default charset=utf8;

drop table if exists attributevaluerefset_s;
create table attributevaluerefset_s(
id varchar(36) not null,
effectivetime char(8) not null,
active char(1) not null,
moduleid bigint(20) not null,
refsetid bigint(20) not null,
referencedcomponentid bigint(20) not null,
valueid bigint(20) not null,
key idx_id(id),
key idx_effectivetime(effectivetime),
key idx_active(active),
key idx_moduleid(moduleid),
key idx_refsetid(refsetid),
key idx_referencedcomponentid(referencedcomponentid),
key idx_valueid(valueid)
) engine=myisam default charset=utf8;

drop table if exists simplemaprefset_s;
create table simplemaprefset_s(
id varchar(36) not null,
effectivetime char(8) not null,
active char(1) not null,
moduleid bigint(20) not null,
refsetid bigint(20) not null,
referencedcomponentid bigint(20) not null,
maptarget varchar(32) not null,
key idx_id(id),
key idx_effectivetime(effectivetime),
key idx_active(active),
key idx_moduleid(moduleid),
key idx_refsetid(refsetid),
key idx_referencedcomponentid(referencedcomponentid),
key idx_maptarget(maptarget)
) engine=myisam default charset=utf8;

drop table if exists simplerefset_s;
create table simplerefset_s(
	id varchar(36) not null,
	effectivetime char(8) not null,
	active char(1) not null,
	moduleid bigint(20) not null,
	refsetid bigint(20) not null,
	referencedcomponentid bigint(20) not null,
	key idx_id(id),
	key idx_effectivetime(effectivetime),
	key idx_active(active),
	key idx_moduleid(moduleid),
	key idx_refsetid(refsetid),
	key idx_referencedcomponentid(referencedcomponentid)
) engine=myisam default charset=utf8;

drop table if exists complexmaprefset_s;
create table complexmaprefset_s(
	id varchar(36) not null,
	effectivetime char(8) not null,
	active char(1) not null,
	moduleid bigint(20) not null,
	refsetid bigint(20) not null,
	referencedcomponentid bigint(20) not null,
	mapGroup smallint not null,
	mapPriority smallint not null,
	mapRule varchar(300),
	mapAdvice varchar(500),
	mapTarget varchar(10),
	correlationId bigint(20) not null,
	key idx_id(id),
	key idx_effectivetime(effectivetime),
	key idx_active(active),
	key idx_moduleid(moduleid),
	key idx_refsetid(refsetid),
	key idx_referencedcomponentid(referencedcomponentid),
	key idx_mapTarget(mapTarget)
) engine=myisam default charset=utf8;

drop table if exists moduledependencyrefset_s;
create table moduledependencyrefset_s(
	id varchar(36) not null,
	effectivetime char(8) not null,
	active char(1) not null,
	moduleid bigint(20) not null,
	refsetid bigint(20) not null,
	referencedcomponentid bigint(20) not null,
	sourceeffectivetime char(8) not null,
	targeteffectivetime char(8) not null,
	key idx_id(id),
	key idx_effectivetime(effectivetime),
	key idx_active(active),
	key idx_moduleid(moduleid),
	key idx_refsetid(refsetid),
	key idx_referencedcomponentid(referencedcomponentid),
	key idx_sourceeffectivetime(sourceeffectivetime),
	key idx_targeteffectivetime(targeteffectivetime)
) engine=myisam default charset=utf8;

drop table if exists refsetdescriptor_s;
create table refsetdescriptor_s(
	id varchar(36) not null,
	effectivetime char(8) not null,
	active char(1) not null,
	moduleid bigint(20) not null,
	refsetid bigint(20) not null,
	referencedcomponentid bigint(20) not null,
	attributedescription bigint(20) not null,
	attributetype bigint(20) not null,
	attributeorder bigint(2) not null,
	key idx_id(id),
	key idx_effectivetime(effectivetime),
	key idx_active(active),
	key idx_moduleid(moduleid),
	key idx_refsetid(refsetid),
	key idx_referencedcomponentid(referencedcomponentid),
	key idx_attributedescription(attributedescription),
	key idx_attributetype(attributetype),
	key idx_attributeorder(attributeorder)
) engine=myisam default charset=utf8;

drop table if exists owlexpressionrefset_s;
create table owlexpressionrefset_s(
	id varchar(36) not null,
	effectivetime char(8) not null,
	active char(1) not null,
	moduleid bigint(20) not null,
	refsetid bigint(20) not null,
	referencedcomponentid bigint(20) not null,
	owlexpression text not null,
	key idx_id(id),
	key idx_effectivetime(effectivetime),
	key idx_active(active),
	key idx_moduleid(moduleid),
	key idx_refsetid(refsetid),
	key idx_referencedcomponentid(referencedcomponentid)
) engine=myisam default charset=utf8;

drop table if exists mrcmattributedomainrefset_s;
create table mrcmattributedomainrefset_s(
	id varchar(36) not null,
	effectivetime char(8) not null,
	active char(1) not null,
	moduleid bigint(20) not null,
	refsetid bigint(20) not null,
	referencedcomponentid bigint(20) not null,
	domainid bigint(20) not null,
	grouped char(1) not null,
	attributecardinality char(4) not null,
	attributeingroupcardinality char(4) not null,
	rulestrengthid bigint(20) not null,
	contenttypeid bigint(20) not null,
	key idx_id(id),
	key idx_effectivetime(effectivetime),
	key idx_active(active),
	key idx_moduleid(moduleid),
	key idx_refsetid(refsetid),
	key idx_referencedcomponentid(referencedcomponentid),
	key idx_domainid(domainid),
	key idx_grouped(grouped),
	key idx_attributecardinality(attributecardinality),
	key idx_attributeingroupcardinality(attributeingroupcardinality),
	key idx_rulestrengthid(rulestrengthid),
	key idx_contenttypeid(contenttypeid)
) engine=myisam default charset=utf8;

drop table if exists mrcmmodulescoperefset_s;
create table mrcmmodulescoperefset_s(
	id varchar(36) not null,
	effectivetime char(8) not null,
	active char(1) not null,
	moduleid bigint(20) not null,
	refsetid bigint(20) not null,
	referencedcomponentid bigint(20) not null,
	mrcmRuleRefsetId bigint(20) not null,
	key idx_id(id),
	key idx_effectivetime(effectivetime),
	key idx_active(active),
	key idx_moduleid(moduleid),
	key idx_refsetid(refsetid),
	key idx_referencedcomponentid(referencedcomponentid)
) engine=myisam default charset=utf8;

drop table if exists mrcmattributerangerefset_s;
create table mrcmattributerangerefset_s(
	id varchar(36) not null,
	effectivetime char(8) not null,
	active char(1) not null,
	moduleid bigint(20) not null,
	refsetid bigint(20) not null,
	referencedcomponentid bigint(20) not null,
	rangeConstraint text not null,
	attributeRule text not null,
	ruleStrengthId bigint(20) not null,
	contentTypeId bigint(20) not null,
	key idx_id(id),
	key idx_effectivetime(effectivetime),
	key idx_active(active),
	key idx_moduleid(moduleid),
	key idx_refsetid(refsetid),
	key idx_referencedcomponentid(referencedcomponentid)
) engine=myisam default charset=utf8;

drop table if exists mrcmdomainrefset_s;
create table mrcmdomainrefset_s(
	id varchar(36) not null,
	effectivetime char(8) not null,
	active char(1) not null,
	moduleid bigint(20) not null,
	refsetid bigint(20) not null,
	referencedcomponentid bigint(20) not null,
	domainconstraint varchar(1024) not null,
	parentdomain varchar(1024) not null,
	proximalPrimitiveConstraint text not null,
	proximalPrimitiveRefinement text not null,
	domainTemplateForPrecoordination text not null,
	domainTemplateForPostcoordination text not null,
	guideurl varchar(255) not null,
	key idx_id(id),
	key idx_effectivetime(effectivetime),
	key idx_active(active),
	key idx_moduleid(moduleid),
	key idx_refsetid(refsetid),
	key idx_referencedcomponentid(referencedcomponentid)
) engine=myisam default charset=utf8;

drop table if exists descriptiontyperefset_s;
create table descriptiontyperefset_s(
	id varchar(36) not null,
	effectivetime char(8) not null,
	active char(1) not null,
	moduleid bigint(20) not null,
	refsetid bigint(20) not null,
	referencedcomponentid bigint(20) not null,
	descriptionformat bigint(20) not null,
	descriptionlength int not null,
	key idx_id(id),
	key idx_effectivetime(effectivetime),
	key idx_active(active),
	key idx_moduleid(moduleid),
	key idx_refsetid(refsetid),
	key idx_referencedcomponentid(referencedcomponentid),
	key idx_descriptionformat(descriptionformat),
	key idx_descriptionlength(descriptionlength)
) engine=myisam default charset=utf8;

/* create the Delta S-CT data tables */

drop table if exists concept_d;
create table concept_d(
id bigint(20) not null,
effectivetime char(8) not null,
active char(1) not null,
moduleid bigint(20) not null,
definitionstatusid bigint(20) not null,
key idx_id(id),
key idx_effectivetime(effectivetime),
key idx_active(active),
key idx_moduleid(moduleid),
key idx_definitionstatusid(definitionstatusid)
) engine=myisam default charset=utf8;

drop table if exists description_d;
create table description_d(
id bigint(20) not null,
effectivetime char(8) not null,
active char(1) not null,
moduleid bigint(20) not null,
conceptid bigint(20) not null,
languagecode varchar(2) not null,
typeid bigint(20) not null,
term varchar(256) not null collate utf8_bin,
casesignificanceid bigint(20) not null,
key idx_id(id),
key idx_effectivetime(effectivetime),
key idx_active(active),
key idx_moduleid(moduleid),
key idx_conceptid(conceptid),
key idx_languagecode(languagecode),
key idx_typeid(typeid),
key idx_term(term),
key idx_casesignificanceid(casesignificanceid)
) engine=myisam default charset=utf8;

drop table if exists textdefinition_d;
create table textdefinition_d(
id bigint(20) not null,
effectivetime char(8) not null,
active char(1) not null,
moduleid bigint(20) not null,
conceptid bigint(20) not null,
languagecode varchar(2) not null,
typeid bigint(20) not null,
term varchar(2048) not null,
casesignificanceid bigint(20) not null,
key idx_id(id),
key idx_effectivetime(effectivetime),
key idx_active(active),
key idx_moduleid(moduleid),
key idx_conceptid(conceptid),
key idx_languagecode(languagecode),
key idx_typeid(typeid),
key idx_casesignificanceid(casesignificanceid)
) engine=myisam default charset=utf8;

drop table if exists relationship_d;
create table relationship_d(
id bigint(20) not null,
effectivetime char(8) not null,
active char(1) not null,
moduleid bigint(20) not null,
sourceid bigint(20) not null,
destinationid bigint(20) not null,
relationshipgroup bigint(20) not null,
typeid bigint(20) not null,
characteristictypeid bigint(20) not null,
modifierid bigint(20) not null,
key idx_id(id),
key idx_effectivetime(effectivetime),
key idx_active(active),
key idx_moduleid(moduleid),
key idx_sourceid(sourceid),
key idx_destinationid(destinationid),
key idx_relationshipgroup(relationshipgroup),
key idx_typeid(typeid),
key idx_characteristictypeid(characteristictypeid),
key idx_modifierid(modifierid)
) engine=myisam default charset=utf8;

drop table if exists stated_relationship_d;
create table stated_relationship_d(
id bigint(20) not null,
effectivetime char(8) not null,
active char(1) not null,
moduleid bigint(20) not null,
sourceid bigint(20) not null,
destinationid bigint(20) not null,
relationshipgroup bigint(20) not null,
typeid bigint(20) not null,
characteristictypeid bigint(20) not null,
modifierid bigint(20) not null,
key idx_id(id),
key idx_effectivetime(effectivetime),
key idx_active(active),
key idx_moduleid(moduleid),
key idx_sourceid(sourceid),
key idx_destinationid(destinationid),
key idx_relationshipgroup(relationshipgroup),
key idx_typeid(typeid),
key idx_characteristictypeid(characteristictypeid),
key idx_modifierid(modifierid)
) engine=myisam default charset=utf8;

drop table if exists relationship_concrete_values_d;
create table relationship_concrete_values_d(
id bigint(20) not null,
effectivetime char(8) not null,
active char(1) not null,
moduleid bigint(20) not null,
sourceid bigint(20) not null,
value varchar(4096) not null,
relationshipgroup bigint(20) not null,
typeid bigint(20) not null,
characteristictypeid bigint(20) not null,
modifierid bigint(20) not null,
key idx_id(id),
key idx_effectivetime(effectivetime),
key idx_active(active),
key idx_moduleid(moduleid),
key idx_sourceid(sourceid),
key idx_relationshipgroup(relationshipgroup),
key idx_typeid(typeid),
key idx_characteristictypeid(characteristictypeid),
key idx_modifierid(modifierid)
) engine=myisam default charset=utf8;

drop table if exists langrefset_d;
create table langrefset_d(
id varchar(36) not null,
effectivetime char(8) not null,
active char(1) not null,
moduleid bigint(20) not null,
refsetid bigint(20) not null,
referencedcomponentid bigint(20) not null,
acceptabilityid bigint(20) not null,
key idx_id(id),
key idx_effectivetime(effectivetime),
key idx_active(active),
key idx_moduleid(moduleid),
key idx_refsetid(refsetid),
key idx_referencedcomponentid(referencedcomponentid),
key idx_acceptabilityid(acceptabilityid)
) engine=myisam default charset=utf8;

drop table if exists associationrefset_d;
create table associationrefset_d(
id varchar(36) not null,
effectivetime char(8) not null,
active char(1) not null,
moduleid bigint(20) not null,
refsetid bigint(20) not null,
referencedcomponentid bigint(20) not null,
targetcomponentid bigint(20) not null,
key idx_id(id),
key idx_effectivetime(effectivetime),
key idx_active(active),
key idx_moduleid(moduleid),
key idx_refsetid(refsetid),
key idx_referencedcomponentid(referencedcomponentid),
key idx_targetcomponentid(targetcomponentid)
) engine=myisam default charset=utf8;

drop table if exists attributevaluerefset_d;
create table attributevaluerefset_d(
id varchar(36) not null,
effectivetime char(8) not null,
active char(1) not null,
moduleid bigint(20) not null,
refsetid bigint(20) not null,
referencedcomponentid bigint(20) not null,
valueid bigint(20) not null,
key idx_id(id),
key idx_effectivetime(effectivetime),
key idx_active(active),
key idx_moduleid(moduleid),
key idx_refsetid(refsetid),
key idx_referencedcomponentid(referencedcomponentid),
key idx_valueid(valueid)
) engine=myisam default charset=utf8;

drop table if exists simplemaprefset_d;
create table simplemaprefset_d(
id varchar(36) not null,
effectivetime char(8) not null,
active char(1) not null,
moduleid bigint(20) not null,
refsetid bigint(20) not null,
referencedcomponentid bigint(20) not null,
maptarget varchar(32) not null,
key idx_id(id),
key idx_effectivetime(effectivetime),
key idx_active(active),
key idx_moduleid(moduleid),
key idx_refsetid(refsetid),
key idx_referencedcomponentid(referencedcomponentid),
key idx_maptarget(maptarget)
) engine=myisam default charset=utf8;

drop table if exists simplerefset_d;
create table simplerefset_d(
	id varchar(36) not null,
	effectivetime char(8) not null,
	active char(1) not null,
	moduleid bigint(20) not null,
	refsetid bigint(20) not null,
	referencedcomponentid bigint(20) not null,
	key idx_id(id),
	key idx_effectivetime(effectivetime),
	key idx_active(active),
	key idx_moduleid(moduleid),
	key idx_refsetid(refsetid),
	key idx_referencedcomponentid(referencedcomponentid)
) engine=myisam default charset=utf8;

drop table if exists complexmaprefset_d;
create table complexmaprefset_d(
	id varchar(36) not null,
	effectivetime char(8) not null,
	active char(1) not null,
	moduleid bigint(20) not null,
	refsetid bigint(20) not null,
	referencedcomponentid bigint(20) not null,
	mapGroup smallint not null,
	mapPriority smallint not null,
	mapRule varchar(300),
	mapAdvice varchar(500),
	mapTarget varchar(10),
	correlationId bigint(20) not null,
	key idx_id(id),
	key idx_effectivetime(effectivetime),
	key idx_active(active),
	key idx_moduleid(moduleid),
	key idx_refsetid(refsetid),
	key idx_referencedcomponentid(referencedcomponentid),
	key idx_mapTarget(mapTarget)
) engine=myisam default charset=utf8;

drop table if exists extendedmaprefset_f;
create table extendedmaprefset_f(
	id varchar(36) not null,
	effectivetime char(8) not null,
	active char(1) not null,
	moduleid bigint(20) not null,
	refsetid bigint(20) not null,
	referencedcomponentid bigint(20) not null,
	mapGroup smallint not null,
	mapPriority smallint not null,
	mapRule varchar(300),
	mapAdvice varchar(500),
	mapTarget varchar(10),
	correlationId bigint(20) not null,
	mapCategoryId bigint(20),
	key idx_id(id),
	key idx_effectivetime(effectivetime),
	key idx_active(active),
	key idx_moduleid(moduleid),
	key idx_refsetid(refsetid),
	key idx_referencedcomponentid(referencedcomponentid),
	key idx_mapTarget(mapTarget)
) engine=myisam default charset=utf8;

drop table if exists extendedmaprefset_d;
create table extendedmaprefset_d(
	id varchar(36) not null,
	effectivetime char(8) not null,
	active char(1) not null,
	moduleid bigint(20) not null,
	refsetid bigint(20) not null,
	referencedcomponentid bigint(20) not null,
	mapGroup smallint not null,
	mapPriority smallint not null,
	mapRule varchar(300),
	mapAdvice varchar(500),
	mapTarget varchar(10),
	correlationId bigint(20) not null,
	mapCategoryId bigint(20),
	key idx_id(id),
	key idx_effectivetime(effectivetime),
	key idx_active(active),
	key idx_moduleid(moduleid),
	key idx_refsetid(refsetid),
	key idx_referencedcomponentid(referencedcomponentid),
	key idx_mapTarget(mapTarget)
) engine=myisam default charset=utf8;

drop table if exists extendedmaprefset_s;
create table extendedmaprefset_s(
	id varchar(36) not null,
	effectivetime char(8) not null,
	active char(1) not null,
	moduleid bigint(20) not null,
	refsetid bigint(20) not null,
	referencedcomponentid bigint(20) not null,
	mapGroup smallint not null,
	mapPriority smallint not null,
	mapRule varchar(300),
	mapAdvice varchar(500),
	mapTarget varchar(10),
	correlationId bigint(20) not null,
	mapCategoryId bigint(20),
	key idx_id(id),
	key idx_effectivetime(effectivetime),
	key idx_active(active),
	key idx_moduleid(moduleid),
	key idx_refsetid(refsetid),
	key idx_referencedcomponentid(referencedcomponentid),
	key idx_mapTarget(mapTarget)
) engine=myisam default charset=utf8;

drop table if exists expressionassociationrefset_s;
create table expressionassociationrefset_s(
	id varchar(36) not null,
	effectivetime char(8) not null,
	active char(1) not null,
	moduleid bigint(20) not null,
	refsetid bigint(20) not null,
	referencedcomponentid bigint(20) not null,
	mapTarget varchar(20) not null,
	expression varchar(500) not null,
	definitionStatusId bigint(20) not null,
	correlationId bigint(20) not null,
	contentOriginId bigint(20) not null,
	key idx_id(id),
	key idx_effectivetime(effectivetime),
	key idx_active(active),
	key idx_moduleid(moduleid),
	key idx_refsetid(refsetid),
	key idx_referencedcomponentid(referencedcomponentid),
	key idx_mapTarget(mapTarget)
) engine=myisam default charset=utf8;

drop table if exists expressionassociationrefset_d;
create table expressionassociationrefset_d(
	id varchar(36) not null,
	effectivetime char(8) not null,
	active char(1) not null,
	moduleid bigint(20) not null,
	refsetid bigint(20) not null,
	referencedcomponentid bigint(20) not null,
	mapTarget varchar(20) not null,
	expression varchar(500) not null,
	definitionStatusId bigint(20) not null,
	correlationId bigint(20) not null,
	contentOriginId bigint(20) not null,
	key idx_id(id),
	key idx_effectivetime(effectivetime),
	key idx_active(active),
	key idx_moduleid(moduleid),
	key idx_refsetid(refsetid),
	key idx_referencedcomponentid(referencedcomponentid),
	key idx_mapTarget(mapTarget)
) engine=myisam default charset=utf8;

drop table if exists expressionassociationrefset_f;
create table expressionassociationrefset_f(
	id varchar(36) not null,
	effectivetime char(8) not null,
	active char(1) not null,
	moduleid bigint(20) not null,
	refsetid bigint(20) not null,
	referencedcomponentid bigint(20) not null,
	mapTarget varchar(20) not null,
	expression varchar(500) not null,
	definitionStatusId bigint(20) not null,
	correlationId bigint(20) not null,
	contentOriginId bigint(20) not null,
	key idx_id(id),
	key idx_effectivetime(effectivetime),
	key idx_active(active),
	key idx_moduleid(moduleid),
	key idx_refsetid(refsetid),
	key idx_referencedcomponentid(referencedcomponentid),
	key idx_mapTarget(mapTarget)
) engine=myisam default charset=utf8;

drop table if exists mapcorrelationoriginrefset_f;
create table mapcorrelationoriginrefset_f(
	id varchar(36) not null,
	effectivetime char(8) not null,
	active char(1) not null,
	moduleid bigint(20) not null,
	refsetid bigint(20) not null,
	referencedcomponentid bigint(20) not null,
	mapTarget varchar(20) not null,
	attributeId bigint(20) not null,
	correlationId bigint(20) not null,
	contentOriginId bigint(20) not null,
	key idx_id(id),
	key idx_effectivetime(effectivetime),
	key idx_active(active),
	key idx_moduleid(moduleid),
	key idx_refsetid(refsetid),
	key idx_referencedcomponentid(referencedcomponentid),
	key idx_mapTarget(mapTarget)
) engine=myisam default charset=utf8;

drop table if exists mapcorrelationoriginrefset_s;
create table mapcorrelationoriginrefset_s(
	id varchar(36) not null,
	effectivetime char(8) not null,
	active char(1) not null,
	moduleid bigint(20) not null,
	refsetid bigint(20) not null,
	referencedcomponentid bigint(20) not null,
	mapTarget varchar(20) not null,
	attributeId bigint(20) not null,
	correlationId bigint(20) not null,
	contentOriginId bigint(20) not null,
	key idx_id(id),
	key idx_effectivetime(effectivetime),
	key idx_active(active),
	key idx_moduleid(moduleid),
	key idx_refsetid(refsetid),
	key idx_referencedcomponentid(referencedcomponentid),
	key idx_mapTarget(mapTarget)
) engine=myisam default charset=utf8;

drop table if exists mapcorrelationoriginrefset_d;
create table mapcorrelationoriginrefset_d(
	id varchar(36) not null,
	effectivetime char(8) not null,
	active char(1) not null,
	moduleid bigint(20) not null,
	refsetid bigint(20) not null,
	referencedcomponentid bigint(20) not null,
	mapTarget varchar(20) not null,
	attributeId bigint(20) not null,
	correlationId bigint(20) not null,
	contentOriginId bigint(20) not null,
	key idx_id(id),
	key idx_effectivetime(effectivetime),
	key idx_active(active),
	key idx_moduleid(moduleid),
	key idx_refsetid(refsetid),
	key idx_referencedcomponentid(referencedcomponentid),
	key idx_mapTarget(mapTarget)
) engine=myisam default charset=utf8;

drop table if exists moduledependencyrefset_d;
create table moduledependencyrefset_d(
	id varchar(36) not null,
	effectivetime char(8) not null,
	active char(1) not null,
	moduleid bigint(20) not null,
	refsetid bigint(20) not null,
	referencedcomponentid bigint(20) not null,
	sourceeffectivetime char(8) not null,
	targeteffectivetime char(8) not null,
	key idx_id(id),
	key idx_effectivetime(effectivetime),
	key idx_active(active),
	key idx_moduleid(moduleid),
	key idx_refsetid(refsetid),
	key idx_referencedcomponentid(referencedcomponentid),
	key idx_sourceeffectivetime(sourceeffectivetime),
	key idx_targeteffectivetime(targeteffectivetime)
) engine=myisam default charset=utf8;

drop table if exists refsetdescriptor_d;
create table refsetdescriptor_d(
	id varchar(36) not null,
	effectivetime char(8) not null,
	active char(1) not null,
	moduleid bigint(20) not null,
	refsetid bigint(20) not null,
	referencedcomponentid bigint(20) not null,
	attributedescription bigint(20) not null,
	attributetype bigint(20) not null,
	attributeorder bigint(2) not null,
	key idx_id(id),
	key idx_effectivetime(effectivetime),
	key idx_active(active),
	key idx_moduleid(moduleid),
	key idx_refsetid(refsetid),
	key idx_referencedcomponentid(referencedcomponentid),
	key idx_attributedescription(attributedescription),
	key idx_attributetype(attributetype),
	key idx_attributeorder(attributeorder)
) engine=myisam default charset=utf8;

drop table if exists owlexpressionrefset_d;
create table owlexpressionrefset_d(
	id varchar(36) not null,
	effectivetime char(8) not null,
	active char(1) not null,
	moduleid bigint(20) not null,
	refsetid bigint(20) not null,
	referencedcomponentid bigint(20) not null,
	owlexpression text not null,
	key idx_id(id),
	key idx_effectivetime(effectivetime),
	key idx_active(active),
	key idx_moduleid(moduleid),
	key idx_refsetid(refsetid),
	key idx_referencedcomponentid(referencedcomponentid)
) engine=myisam default charset=utf8;

drop table if exists mrcmattributedomainrefset_d;
create table mrcmattributedomainrefset_d(
	id varchar(36) not null,
	effectivetime char(8) not null,
	active char(1) not null,
	moduleid bigint(20) not null,
	refsetid bigint(20) not null,
	referencedcomponentid bigint(20) not null,
	domainid bigint(20) not null,
	grouped char(1) not null,
	attributecardinality char(4) not null,
	attributeingroupcardinality char(4) not null,
	rulestrengthid bigint(20) not null,
	contenttypeid bigint(20) not null,
	key idx_id(id),
	key idx_effectivetime(effectivetime),
	key idx_active(active),
	key idx_moduleid(moduleid),
	key idx_refsetid(refsetid),
	key idx_referencedcomponentid(referencedcomponentid),
	key idx_domainid(domainid),
	key idx_grouped(grouped),
	key idx_attributecardinality(attributecardinality),
	key idx_attributeingroupcardinality(attributeingroupcardinality),
	key idx_rulestrengthid(rulestrengthid),
	key idx_contenttypeid(contenttypeid)
) engine=myisam default charset=utf8;

drop table if exists mrcmmodulescoperefset_d;
create table mrcmmodulescoperefset_d(
	id varchar(36) not null,
	effectivetime char(8) not null,
	active char(1) not null,
	moduleid bigint(20) not null,
	refsetid bigint(20) not null,
	referencedcomponentid bigint(20) not null,
	mrcmRuleRefsetId bigint(20) not null,
	key idx_id(id),
	key idx_effectivetime(effectivetime),
	key idx_active(active),
	key idx_moduleid(moduleid),
	key idx_refsetid(refsetid),
	key idx_referencedcomponentid(referencedcomponentid)
) engine=myisam default charset=utf8;

drop table if exists mrcmattributerangerefset_d;
create table mrcmattributerangerefset_d(
	id varchar(36) not null,
	effectivetime char(8) not null,
	active char(1) not null,
	moduleid bigint(20) not null,
	refsetid bigint(20) not null,
	referencedcomponentid bigint(20) not null,
	rangeConstraint text not null,
	attributeRule text not null,
	ruleStrengthId bigint(20) not null,
	contentTypeId bigint(20) not null,
	key idx_id(id),
	key idx_effectivetime(effectivetime),
	key idx_active(active),
	key idx_moduleid(moduleid),
	key idx_refsetid(refsetid),
	key idx_referencedcomponentid(referencedcomponentid)
) engine=myisam default charset=utf8;

drop table if exists mrcmdomainrefset_d;
create table mrcmdomainrefset_d(
	id varchar(36) not null,
	effectivetime char(8) not null,
	active char(1) not null,
	moduleid bigint(20) not null,
	refsetid bigint(20) not null,
	referencedcomponentid bigint(20) not null,
	domainconstraint varchar(1024) not null,
	parentdomain varchar(1024) not null,
	proximalPrimitiveConstraint text not null,
	proximalPrimitiveRefinement text not null,
	domainTemplateForPrecoordination text not null,
	domainTemplateForPostcoordination text not null,
	guideurl varchar(255) not null,
	key idx_id(id),
	key idx_effectivetime(effectivetime),
	key idx_active(active),
	key idx_moduleid(moduleid),
	key idx_refsetid(refsetid),
	key idx_referencedcomponentid(referencedcomponentid)
) engine=myisam default charset=utf8;

drop table if exists descriptiontyperefset_d;
create table descriptiontyperefset_d(
	id varchar(36) not null,
	effectivetime char(8) not null,
	active char(1) not null,
	moduleid bigint(20) not null,
	refsetid bigint(20) not null,
	referencedcomponentid bigint(20) not null,
	descriptionformat bigint(20) not null,
	descriptionlength int not null,
	key idx_id(id),
	key idx_effectivetime(effectivetime),
	key idx_active(active),
	key idx_moduleid(moduleid),
	key idx_refsetid(refsetid),
	key idx_referencedcomponentid(referencedcomponentid),
	key idx_descriptionformat(descriptionformat),
	key idx_descriptionlength(descriptionlength)
) engine=myisam default charset=utf8;


text:
package com.amazonaws.services.simpleworkflow.flow;

/**
 * Used by the framework to serialize/deserialize method parameters that need to
 * be sent over the wire.
 *
 * @author fateev
 */
public abstract class DataConverter {

    /**
     * Implements conversion of the single value.
     *
     * @param value
     *            Java value to convert to String.
     * @return converted value
     * @throws DataConverterException
     *             if conversion of the value passed as parameter failed for any
     *             reason.
     */
    public abstract String toData(Object value) throws DataConverterException;

    /**
     * Implements conversion of the single value.
     *
     * @param data
     *            Simple Workflow Data value to convert to a Java object.
     * @return converted Java object
     * @throws DataConverterException
     *             if conversion of the data passed as parameter failed for any
     *             reason.
     */
    public abstract <T> T fromData(String content, Class<T> valueType) throws DataConverterException;

}

redpajama_set_name: RedPajamaGithub


text:
/* Include file for the R3 Box class */
#ifndef __R3__BOX__H__
#define __R3__BOX__H__

/* Begin namespace */
namespace gaps {

/* Initialization functions */

int R3InitBox();
void R3StopBox();

/* Class definition */

class R3Box : public R3Solid {
    public:
        // Constructor functions
	R3Box(void);
        R3Box(const R3Box& box);
	R3Box(const R3Point& min, const R3Point& max);
	R3Box(RNCoord xmin, RNCoord ymin, RNCoord zmin,
	      RNCoord xmax, RNCoord ymax, RNCoord zmax);

        // Box property functions/operators
	const RNCoord XMin(void) const;
	const RNCoord YMin(void) const;
	const RNCoord ZMin(void) const;
	const RNCoord XMax(void) const;
	const RNCoord YMax(void) const;
	const RNCoord ZMax(void) const;
	const RNCoord Coord(RNDirection dir, RNDimension dim) const;
	const R3Point& Min(void) const;
	const R3Point& Max(void) const;
	const R3Point Corner(RNOctant octant) const;
	const R3Point Corner(RNDirection xdir, RNDirection ydir, RNDirection zdir) const;
	const R3Plane Plane(RNSide side) const;
	const R3Plane Plane(RNDirection dir, RNDimension dim) const;
	const R3Box Side(RNSide side) const;
	const R3Box Side(RNDirection dir, RNDimension dim) const;
	const R3Box Octant(RNOctant octant) const;
	const R3Box Octant(RNDirection xdir, RNDirection ydir, RNDirection zdir) const;
	const RNBoolean IsEmpty(void) const;
	const RNBoolean IsFinite(void) const;
        const int NDimensions(void) const;
        const int NDimensionsAlongSide(RNDirection dir, RNDimension dim) const;
	const RNBoolean IsSideNull(RNDirection dir, RNDimension dim) const;
	const RNBoolean IsSideLinear(RNDirection dir, RNDimension dim) const;
        const int NDimensionsAlongAxis(const RNAxis axis) const;
	const RNBoolean IsAxisNull(const RNAxis axis) const;
	const RNLength XLength(void) const;
	const RNLength YLength(void) const;
	const RNLength ZLength(void) const;
	const RNLength AxisLength(const RNAxis axis) const;
	const RNLength DiagonalLength(void) const;
	const RNLength XRadius(void) const;
	const RNLength YRadius(void) const;
	const RNLength ZRadius(void) const;
	const RNLength AxisRadius(const RNAxis axis) const;
	const RNLength DiagonalRadius(void) const;
	const RNCoord XCenter(void) const;
	const RNCoord YCenter(void) const;
	const RNCoord ZCenter(void) const;
	const RNCoord AxisCenter(const RNAxis axis) const;
	const RNAxis ShortestAxis(void) const;
	const RNAxis LongestAxis(void) const;
	const RNLength ShortestAxisLength(void) const;
	const RNLength LongestAxisLength(void) const;

	// Shape property functions
	virtual const RNBoolean IsPoint(void) const;
	virtual const RNBoolean IsLinear(void) const;
	virtual const RNBoolean IsPlanar(void) const;
	virtual const RNBoolean IsConvex(void) const;
        virtual const RNInterval NFacets(void) const;
	virtual const RNArea Area(void) const;
	virtual const RNVolume Volume(void) const;
	virtual const R3Point Centroid(void) const;
	virtual const R3Point ClosestPoint(const R3Point& point) const;
	virtual const R3Point FurthestPoint(const R3Point& point) const;
	virtual const R3Shape& BShape(void) const;
	virtual const R3Box BBox(void) const;
	virtual const R3Sphere BSphere(void) const;

        // Manipulation functions/operators
        virtual void Empty(void);
        virtual void Inflate(RNScalar fraction);
        virtual void Translate(const R3Vector& vector);
	virtual void Union(const R3Point& point);
	virtual void Union(const R3Box& box);
	virtual void Union(const R3Sphere& sphere);
	virtual void Intersect(const R3Box& box);
	virtual void Transform(const R3Transformation& transformation);
	virtual void Reset(const R3Point& min, const R3Point& max);

        // Draw functions/operators
        virtual void Draw(const R3DrawFlags draw_flags = R3_DEFAULT_DRAW_FLAGS) const;

        // Relationship functions/operators
	RNBoolean operator==(const R3Box& box) const;
	RNBoolean operator!=(const R3Box& box) const;

	// Standard shape definitions
	RN_CLASS_TYPE_DECLARATIONS(R3Box);
        R3_SHAPE_RELATIONSHIP_DECLARATIONS(R3Box);

        // Undocumented functions/operators
	const R3Point& operator[](RNDirection dir) const;
	R3Point& operator[](RNDirection dir);

    private:
	R3Point minpt;
	R3Point maxpt;
};

/* Public variables */

extern const R3Box R3null_box;
extern const R3Box R3zero_box;
extern const R3Box R3unit_box;
extern const R3Box R3infinite_box;

/* Inline functions */

inline const RNCoord R3Box::
XMin (void) const
{
    // Return X coordinate of low corner
    return minpt.X();
}

inline const RNCoord R3Box::
YMin (void) const
{
    // Return Y coordinate of low corner
    return minpt.Y();
}

inline const RNCoord R3Box::
ZMin (void) const
{
    // Return Z coordinate of low corner
    return minpt.Z();
}

inline const RNCoord R3Box::
XMax (void) const
{
    // Return X coordinate of high corner
    return maxpt.X();
}

inline const RNCoord R3Box::
YMax (void) const
{
    // Return Y coordinate of high corner
    return maxpt.Y();
}

inline const RNCoord R3Box::
ZMax (void) const
{
    // Return Z coordinate of high corner
    return maxpt.Z();
}

inline const RNCoord R3Box::
Coord (RNDirection dir, RNDimension dim) const
{
    // Return requested coordinate
    return (dir == RN_LO) ? minpt[dim] : maxpt[dim];
}

inline const R3Point& R3Box::
Min (void) const
{
    // Return point (min, min, min)
    return minpt;
}

inline const R3Point& R3Box::
Max (void) const
{
    // Return point (max, max, max)
    return maxpt;
}

inline const R3Box R3Box::
Side (RNSide side) const
{
    // Return box along side
    return Side(side & 0x1, side >> 1);
}

inline const R3Plane R3Box::
Plane (RNSide side) const
{
    // Return box along side
    return Plane(side & 0x1, side >> 1);
}

inline const R3Box R3Box::
Octant (RNOctant octant) const
{
    // Return box in octant (xdir, ydir, zdir)
    return Octant((octant & RN_PNN_OCTANT) ? RN_HI : RN_LO,
		  (octant & RN_NPN_OCTANT) ? RN_HI : RN_LO,
		  (octant & RN_NNP_OCTANT) ? RN_HI : RN_LO);
}

inline const RNBoolean R3Box::
IsEmpty (void) const
{
    // Return whether bounding box contains no space
    return ((minpt.X() > maxpt.X()) || (minpt.Y() > maxpt.Y()) || (minpt.Z() > maxpt.Z()));
}

inline const RNBoolean R3Box::
IsSideNull (RNDirection dir, RNDimension dim) const
{
    // Return whether bounding box contains just one point along side
    return (this->NDimensionsAlongSide(dir, dim) == 0);
}

inline const RNBoolean R3Box::
IsSideLinear (RNDirection dir, RNDimension dim) const
{
    // Return whether bounding box contains just one line segment along side
    return (this->NDimensionsAlongSide(dir, dim) <= 1);
}

inline const RNBoolean R3Box::
IsAxisNull (const RNAxis axis) const
{
    // Return whether bounding box contains just one point along axis
    return (minpt[axis] == maxpt[axis]);
}

inline const RNLength R3Box::
AxisLength (const RNAxis axis) const
{
    // Return length of Box along axis
    return (maxpt[axis] - minpt[axis]);
}

inline const RNLength R3Box::
XLength (void) const
{
    // Return length in X dimension
    return this->AxisLength(RN_XAXIS);
}

inline const RNLength R3Box::
YLength (void) const
{
    // Return length in Y dimension
    return this->AxisLength(RN_YAXIS);
}

inline const RNLength R3Box::
ZLength (void) const
{
    // Return length in Z dimension
    return this->AxisLength(RN_ZAXIS);
}

inline const RNLength R3Box::
AxisRadius (const RNAxis axis) const
{
    // Return radius of Box along axis
    return 0.5 * (maxpt[axis] - minpt[axis]);
}

inline const RNLength R3Box::
XRadius (void) const
{
    // Return radius in X dimension
    return this->AxisRadius(RN_XAXIS);
}

inline const RNLength R3Box::
YRadius (void) const
{
    // Return radius in Y dimension
    return this->AxisRadius(RN_YAXIS);
}

inline const RNLength R3Box::
ZRadius (void) const
{
    // Return radius in Z dimension
    return this->AxisRadius(RN_ZAXIS);
}

inline const RNLength R3Box::
DiagonalRadius (void) const
{
    // Return radius of Box along diagonal
    return (0.5 * DiagonalLength());
}

inline const RNCoord R3Box::
AxisCenter (const RNAxis axis) const
{
    // Return radius of Box along axis
    return 0.5 * (maxpt[axis] + minpt[axis]);
}

inline const RNCoord R3Box::
XCenter (void) const
{
    // Return center in X dimension
    return this->AxisCenter(RN_XAXIS);
}

inline const RNCoord R3Box::
YCenter (void) const
{
    // Return center in Y dimension
    return this->AxisCenter(RN_YAXIS);
}

inline const RNCoord R3Box::
ZCenter (void) const
{
    // Return center in Z dimension
    return this->AxisCenter(RN_ZAXIS);
}

inline RNBoolean R3Box::
operator==(const R3Box& box) const
{
    // Return whether box is equal
    return ((minpt == box.minpt) && (maxpt == box.maxpt));
}

inline RNBoolean R3Box::
operator!=(const R3Box& box) const
{
    // Return whether box is not equal
    return (!(*this == box));
}

inline const R3Point& R3Box::
operator[] (RNDirection dir) const
{
    // Return min or max point
    return (dir == RN_LO) ? minpt : maxpt;
}

inline R3Point& R3Box::
operator[] (RNDirection dir)
{
    // Return min or max point
    return (dir == RN_LO) ? minpt : maxpt;
}

// End namespace
}

// End include guard
#endif


text:
package net.sf.mmm.util.cli.api;

import java.util.Locale;

import net.sf.mmm.util.exception.api.ValueOutOfRangeException;
import net.sf.mmm.util.nls.api.NlsTemplateResolver;

/**
 * This class represents the settings for the {@link CliParser#printHelp(Appendable, CliOutputSettings) help output}.
 *
 * @author Joerg Hohwiller (hohwille at users.sourceforge.net)
 * @since 1.0.0
 */
public class CliOutputSettings {

  /** The minimum value for {@link #getWidth() width}. */
  private static final int MIN_WIDTH = 5;

  private int width;

  private String lineSeparator;

  private Locale locale;

  private NlsTemplateResolver templateResolver;

  /**
   * The constructor.
   */
  public CliOutputSettings() {

    super();
    this.lineSeparator = System.lineSeparator();
    this.width = 80;
    this.locale = Locale.getDefault();
    this.templateResolver = null;
  }

  /**
   * The constructor.
   *
   * @param width is the {@link #getWidth() width}.
   */
  public CliOutputSettings(int width) {

    super();
    this.width = width;
  }

  /**
   * This method gets the width of the {@link CliParser#printHelp(Appendable, CliOutputSettings) help-output} in
   * characters per line.
   *
   * @return the width.
   */
  public int getWidth() {

    return this.width;
  }

  /**
   * @param width is the {@link #getWidth() width} to set.
   */
  public void setWidth(int width) {

    if (width < MIN_WIDTH) {
      throw new ValueOutOfRangeException(Integer.valueOf(width), (Number) Integer.valueOf(MIN_WIDTH), Integer.valueOf(Integer.MAX_VALUE), "width");
    }
    this.width = width;
  }

  /**
   * @return the lineSeparator
   */
  public String getLineSeparator() {

    return this.lineSeparator;
  }

  /**
   * @param lineSeparator is the lineSeparator to set
   */
  public void setLineSeparator(String lineSeparator) {

    this.lineSeparator = lineSeparator;
  }

  /**
   * This method gets the {@link Locale} used to nationalize the output. By default {@link Locale#getDefault()} ist
   * used.
   *
   * @return the {@link Locale}.
   */
  public Locale getLocale() {

    return this.locale;
  }

  /**
   * This method sets the {@link #getLocale() locale} to use.
   *
   * @param locale is the locale to set
   */
  public void setLocale(Locale locale) {

    this.locale = locale;
  }

  /**
   * @return the templateResolver
   */
  public NlsTemplateResolver getTemplateResolver() {

    return this.templateResolver;
  }

  /**
   * @param templateResolver is the templateResolver to set
   */
  public void setTemplateResolver(NlsTemplateResolver templateResolver) {

    this.templateResolver = templateResolver;
  }

}


text:
package io.github.kmanikumarreddy.myappportifolio;

import android.content.Context;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    public void displayInfo(View v) {
        Context context = getApplicationContext();
        CharSequence text = "This button will launch " + ((Button) v).getText().toString() + " app!";
        int duration = Toast.LENGTH_SHORT;
        Toast toast = Toast.makeText(context, text, duration);
        toast.show();
    }
}


text:
from __future__ import annotations

import pytest

from cctbx import sgtbx
from dxtbx.serialize import load

from dials.algorithms.merging import french_wilson, merge
from dials.array_family import flex

MAX_SIGF_OVER_F_ACENTRIC = max(
    sigf / f for f, sigf in zip(french_wilson.ac_zf, french_wilson.ac_zf_sd)
)
MAX_SIGF_OVER_F_CENTRIC = max(
    sigf / f for f, sigf in zip(french_wilson.c_zf, french_wilson.c_zf_sd)
)

def check_french_wilson_amplitudes(amplitudes):
    assert amplitudes.is_xray_amplitude_array()
    assert flex.min(amplitudes.data()) >= 0
    assert flex.min(amplitudes.sigmas()) >= 0
    sigF_over_F = amplitudes.sigmas() / amplitudes.data()
    is_centric = amplitudes.centric_flags().data()
    assert flex.max(sigF_over_F.select(~is_centric)) <= MAX_SIGF_OVER_F_ACENTRIC
    if is_centric.count(True):
        assert flex.max(sigF_over_F.select(is_centric)) <= MAX_SIGF_OVER_F_CENTRIC

def test_french_wilson_insulin(dials_data):
    insulin = dials_data("insulin_processed", pathlib=True)
    expts = load.experiment_list(insulin / "scaled.expt", check_format=False)
    refls = flex.reflection_table.from_file(insulin / "scaled.refl")
    merged, _, _ = merge.merge(expts, refls)
    merged_intensities = merged.array()

    amplitudes = french_wilson.french_wilson(merged_intensities)
    check_french_wilson_amplitudes(amplitudes)

@pytest.mark.parametrize("space_group_symbol", [None, "P1"])
def test_french_wilson_l_cysteine(dials_data, space_group_symbol):
    l_cysteine = dials_data("l_cysteine_4_sweeps_scaled", pathlib=True)
    expts = load.experiment_list(l_cysteine / "scaled_30.expt", check_format=False)
    refls = flex.reflection_table.from_file(l_cysteine / "scaled_30.refl")
    if space_group_symbol:
        expts[0].crystal.set_space_group(
            sgtbx.space_group_info(space_group_symbol).group()
        )
    merged, _, _ = merge.merge(expts, refls)
    merged_intensities = merged.array()

    amplitudes = french_wilson.french_wilson(merged_intensities)
    check_french_wilson_amplitudes(amplitudes)


text:
package org.spongepowered.server.mixin.world.gen;

import net.minecraft.world.ChunkCoordIntPair;
import net.minecraft.world.WorldServer;
import net.minecraft.world.chunk.IChunkProvider;
import net.minecraft.world.gen.ChunkProviderServer;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Overwrite;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
import org.spongepowered.server.world.VanillaDimensionManager;

import java.util.List;
import java.util.Set;

@Mixin(ChunkProviderServer.class)
public abstract class MixinChunkProviderServer {

    @Shadow public WorldServer worldObj;
    @Shadow private Set<? super Object> droppedChunksSet;
    @Shadow public List<?> loadedChunks;
    @Shadow public IChunkProvider serverChunkGenerator;

    @Overwrite
    public void dropChunk(int x, int z) {
        if (this.worldObj.provider.canRespawnHere() && VanillaDimensionManager.shouldLoadSpawn(this.worldObj.provider.getDimensionId())) {
            if (!this.worldObj.isSpawnChunk(x, z)) {
                this.droppedChunksSet.add(ChunkCoordIntPair.chunkXZ2Int(x, z));
            }
        }
        else {
            this.droppedChunksSet.add(ChunkCoordIntPair.chunkXZ2Int(x, z));
        }
    }

    @Inject(method = "unloadQueuedChunks", at = @At(value = "INVOKE_ASSIGN", target = "Ljava/util/List;remove(Ljava/lang/Object;)Z", remap = false),
            cancellable = true)
    private void onUnloadQueuedChunks(CallbackInfoReturnable<Boolean> cir) {
        if (this.loadedChunks.size() == 0 && !VanillaDimensionManager.shouldLoadSpawn(this.worldObj.provider.getDimensionId())){
            VanillaDimensionManager.unloadWorld(this.worldObj.provider.getDimensionId());
            cir.setReturnValue(this.serverChunkGenerator.unloadQueuedChunks());
        }
    }

}


text:
using Manufacturing.Api.Membership.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using WAAD = Microsoft.WindowsAzure.ActiveDirectory;

namespace Manufacturing.Api.Membership.Extensions
{
    public static class MembershipExtensions
    {
        public static UserSummary ToUserSummary(this WAAD.User user)
        {
            var detail = new UserSummary
            {
                Id = user.objectId,
                Name = user.displayName,
                UserName = user.userPrincipalName,
            };
            return detail;
        }

        public static UserDetail ToUserDetail(this WAAD.User user, IEnumerable<WAAD.Group> groups)
        {
            var detail = new UserDetail
                {
                    Id = user.objectId,
                    Name = user.displayName,
                    UserName = user.userPrincipalName,
                    Roles = groups != null ? groups.Select(x => x.ToRole()) : Enumerable.Empty<Role>()
                };
            return detail;
        }

        public static Role ToRole(this WAAD.Group group)
        {
            var role = new Role
            {
                Id = group.objectId,
                Name = group.displayName,
                Description = group.description,
            };
            return role;
        }

        public static WAAD.User ToWaadUser(this UserToCreate user, string domain)
        {
            // Setting required WAAD fields here based on what we were given
            var waadUser = new WAAD.User
                {
                    accountEnabled = true,
                    displayName = user.Name,
                    mailNickname = user.MailNickName,
                    passwordProfile = new WAAD.PasswordProfile { forceChangePasswordNextLogin = false, password = user.Password },
                    userPrincipalName = String.Format("{0}@{1}",user.MailNickName,"chrisdir.onmicrosoft.com")
                };
            return waadUser;
        }
    }
}


text:
<?php

namespace Presta\SitemapBundle\Command;

use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\HttpFoundation\Request;

/**
 * Command to dump the sitemaps to provided directory
 *
 * @author Konstantin Tjuterev <kostik.lv@gmail.com>
 */
class DumpSitemapsCommand extends ContainerAwareCommand
{
    const ERR_INVALID_HOST = -1;
    const ERR_INVALID_DIR = -2;

    /**
     * Configure CLI command, message, options
     *
     * @return void
     */
    protected function configure()
    {
        $this->setName('presta:sitemaps:dump')
            ->setDescription('Dumps sitemaps to given location')
            ->addOption(
                'section',
                null,
                InputOption::VALUE_REQUIRED,
                'Name of sitemap section to dump, all sections are dumped by default'
            )
            ->addOption(
                'base-url',
                null,
                InputOption::VALUE_REQUIRED,
                'Base url to use for absolute urls. Good example - http://acme.com/, bad example - acme.com. Defaults to dumper_base_url config parameter'
            )
            ->addOption(
                'gzip',
                null,
                InputOption::VALUE_NONE,
                'Gzip sitemap'
            )
            ->addArgument(
                'target',
                InputArgument::OPTIONAL,
                'Location where to dump sitemaps. Generated urls will not be related to this folder.',
                'web'
            );
    }

    /**
     * Code to execute for the command
     *
     * @param InputInterface   $input  Input object from the console
     * @param OutputInterface $output Output object for the console
     *
     * @throws \InvalidArgumentException
     * @return void
     */
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $targetDir = rtrim($input->getArgument('target'), '/');

        $container = $this->getContainer();
        $dumper = $container->get('presta_sitemap.dumper');
        /* @var $dumper \Presta\SitemapBundle\Service\Dumper */

        $baseUrl = $input->getOption('base-url') ?: $container->getParameter('presta_sitemap.dumper_base_url');
        $baseUrl = rtrim($baseUrl, '/') . '/';

        //sanity check
        if (!parse_url($baseUrl, PHP_URL_HOST)) {
            throw new \InvalidArgumentException("Invalid base url. Use fully qualified base url, e.g. http://acme.com/", self::ERR_INVALID_HOST);
        }
        $request = Request::create($baseUrl);

        // Set Router's host used for generating URLs from configuration param
        // There is no other way to manage domain in CLI
        $container->set('request', $request);
        $container->get('router')->getContext()->fromRequest($request);

        if ($input->getOption('section')) {
            $output->writeln(
                sprintf(
                    "Dumping sitemaps section <comment>%s</comment> into <comment>%s</comment> directory",
                    $input->getOption('section'),
                    $targetDir
                )
            );
        } else {
            $output->writeln(
                sprintf(
                    "Dumping <comment>all sections</comment> of sitemaps into <comment>%s</comment> directory",
                    $targetDir
                )
            );
        }
        $options = array(
            'gzip' => (Boolean)$input->getOption('gzip'),
        );
        $filenames = $dumper->dump($targetDir, $baseUrl, $input->getOption('section'), $options);

        if ($filenames === false) {
            $output->writeln("<error>No URLs were added to sitemap by EventListeners</error> - this may happen when provided section is invalid");

            return;
        }

        $output->writeln("<info>Created/Updated the following sitemap files:</info>");
        foreach ($filenames as $filename) {
            $output->writeln("    <comment>$filename</comment>");
        }
    }
}


text:
{-# LANGUAGE TypeOperators #-}
module T15214 where

type (~) = Either


text:
'use strict';

var program = require('commander');

program
  .version(require('../package.json').version)
  .option('-p, --port [port]', 'Port to listen to, default: 8058')
  .parse(process.argv);

var devTools = require('..');
devTools().listen(program.port || 8058);


text:
"use strict";
// -------------------- CREATE
function create(initialValue) {
    return {
        listeners: [],
        active: true,
        value: initialValue
    };
}
exports.create = create;
function fromCallback(f) {
    var s = create();
    f(function (v) {
        send(s, v);
        stop(s);
    });
    return s;
}
exports.fromCallback = fromCallback;
function fromPromise(promise) {
    var s = create();
    promise
        .then(function (v) {
        send(s, v);
        stop(s);
    })
        .catch(function (error) {
        send(s, error instanceof Error ? error : new Error(error));
    });
    return s;
}
exports.fromPromise = fromPromise;
function fromDomEvent(node, eventName) {
    var s = create();
    function listener(evt) { send(s, evt); }
    s.stop = function () {
        node.removeEventListener(eventName, listener, false);
    };
    node.addEventListener(eventName, listener, false);
    return s;
}
exports.fromDomEvent = fromDomEvent;
function fromInterval(time) {
    var count = 0;
    var s = create(count);
    var interval = setInterval(function () {
        count++;
        send(s, count);
    }, time);
    s.stop = function () {
        clearInterval(interval);
    };
    return s;
}
exports.fromInterval = fromInterval;
function fromAnimationFrames() {
    var s = create(0);
    function step(time) {
        send(s, time);
        window.requestAnimationFrame(step);
    }
    window.requestAnimationFrame(step);
    return s;
}
exports.fromAnimationFrames = fromAnimationFrames;
// -------------------- INTERACT
function listen(s, f) {
    if (s.active)
        s.listeners.push(f);
    return s;
}
exports.listen = listen;
function unlisten(s, f) {
    s.listeners = s.listeners.filter(function (listener) { return listener !== f; });
    return s;
}
exports.unlisten = unlisten;
function send(s, v) {
    if (s.active) {
        s.value = v;
        s.listeners.forEach(function (f) { f(v); });
    }
    return s;
}
exports.send = send;
function stop(s) {
    s.listeners = [];
    s.active = false;
    if (s.stop)
        s.stop();
    return s;
}
exports.stop = stop;
// -------------------- TRANSFORM
function map(f) {
    var signals = [];
    for (var _i = 1; _i < arguments.length; _i++) {
        signals[_i - 1] = arguments[_i];
    }
    var s2 = create();
    signals.forEach(function (s3) {
        listen(s3, function () {
            var values = signals.map(function (s) { return s.value; });
            send(s2, f.apply(null, values));
        });
    });
    return s2;
}
exports.map = map;
function filter(f, s) {
    var s2 = create();
    listen(s, function (v) {
        if (f(v))
            send(s2, v);
    });
    return s2;
}
exports.filter = filter;
function dropRepeats(s) {
    var s2 = create();
    if (s.value)
        send(s2, s.value);
    listen(s, function (v) {
        if (v !== s2.value)
            send(s2, v);
    });
    return s2;
}
exports.dropRepeats = dropRepeats;
function fold(f, seed, s) {
    var s2 = create(seed);
    listen(s, function (v) {
        send(s2, seed = f(v, seed));
    });
    return s2;
}
exports.fold = fold;
function merge() {
    var signals = [];
    for (var _i = 0; _i < arguments.length; _i++) {
        signals[_i - 0] = arguments[_i];
    }
    var s2 = create();
    signals.forEach(function (s) {
        listen(s, function (v) {
            send(s2, v);
        });
    });
    return s2;
}
exports.merge = merge;
function sampleOn(s, s2) {
    var s3 = create();
    if (s.value)
        send(s3, s.value);
    listen(s2, function () {
        send(s3, s.value);
    });
    return s3;
}
exports.sampleOn = sampleOn;
function slidingWindow(length, s) {
    var s2 = create();
    var frame = [];
    listen(s, function (v) {
        if (frame.length > length - 1)
            frame.shift();
        frame.push(v);
        send(s2, frame.slice());
    });
    return s2;
}
exports.slidingWindow = slidingWindow;
function flatMap(lift, s) {
    var s2 = create();
    listen(s, function (v1) {
        listen(lift(v1), function (v2) {
            send(s2, v2);
        });
    });
    return s2;
}
exports.flatMap = flatMap;
function flatMapLatest(lift, s) {
    var s2 = create();
    var s3;
    listen(s, function (v1) {
        if (s3)
            stop(s3);
        s3 = lift(v1);
        listen(s3, function (v2) {
            send(s2, v2);
        });
    });
    return s2;
}
exports.flatMapLatest = flatMapLatest;
function debounce(s, quiet) {
    return flatMapLatest(function (v) {
        return fromCallback(function (cback) {
            setTimeout(function () {
                cback(v);
            }, quiet);
        });
    }, s);
}
exports.debounce = debounce;


text:
from __future__ import absolute_import

from helper.colorlogger import create_logger
from helper.utilities import flat_map

from .location import distance_in_meters
from .pokedex import pokedex
from .pokemon import POKEMON_NAMES

class Sniper(object):
    def __init__(self, parent):
        self.parent = parent
        self.log = create_logger(__name__)

    # instead of a full heartbeat, just update position.
    # useful for sniping for example
    def send_update_pos(self):
        res = self.parent.api.get_player()
        if not res or res.get("direction", -1) == 102:
            self.log.error("There were a problem responses for api call: %s. Can't snipe!", res)
            return False
        return True

    def snipe_pokemon(self, lat, lng):
        posf = self.parent.get_position()
        curr_lat = posf[0]
        curr_lng = posf[1]

        try:
            self.log.info("Sniping pokemon at %f, %f", lat, lng)
            self.parent.map_objects.wait_for_api_timer()

            # move to snipe location
            self.parent.api.set_position(lat, lng, 0.0)
            if not self.send_update_pos():
                return False

            self.log.debug("Teleported to sniping location %f, %f", lat, lng)

            # find pokemons in dest
            map_cells = self.parent.map_objects.nearby_map_objects().get('responses', {}).get('GET_MAP_OBJECTS', {})\
                .get('map_cells', [])
            pokemons = flat_map(lambda c: c.get('catchable_pokemons', []), map_cells)

            # catch first pokemon:
            pokemon_rarity_and_dist = [
                (
                    pokemon, pokedex.get_rarity_by_id(pokemon['pokemon_id']),
                    distance_in_meters(self.parent.get_position(), (pokemon['latitude'], pokemon['longitude']))
                )
                for pokemon in pokemons]
            pokemon_rarity_and_dist.sort(key=lambda x: x[1], reverse=True)

            if pokemon_rarity_and_dist:
                self.log.info("Rarest pokemon: : %s", POKEMON_NAMES[str(pokemon_rarity_and_dist[0][0]['pokemon_id'])])
                return self.parent.poke_catcher.encounter_pokemon(pokemon_rarity_and_dist[0][0], new_loc=(curr_lat, curr_lng))
            else:
                self.log.info("No nearby pokemon. Can't snipe!")
                return False

        finally:
            self.parent.api.set_position(curr_lat, curr_lng, 0.0)
            self.send_update_pos()
            posf = self.parent.get_position()
            self.log.info("Teleported back to origin at %f, %f", posf[0], posf[1])


text:
module EmailTemplate
  VERSION = '0.6.5.2'
end


text:
namespace content {
class WebContents;
}  // namespace content

namespace digital_asset_links {
enum class RelationshipCheckResult;
class DigitalAssetLinksHandler;
}  // namespace digital_asset_links

// JNI bridge for OriginVerifier.java
class OriginVerifier {
 public:
  OriginVerifier(
      JNIEnv* env,
      const base::android::JavaRef<jobject>& obj,
      const base::android::JavaRef<jobject>& jweb_contents,
      const base::android::JavaRef<jobject>& jbrowser_context_handle);

  OriginVerifier(const OriginVerifier&) = delete;
  OriginVerifier& operator=(const OriginVerifier&) = delete;

  ~OriginVerifier();

  // Verify origin with the given parameters. No network requests can be made
  // if the params are null.
  bool VerifyOrigin(
      JNIEnv* env,
      const base::android::JavaParamRef<jobject>& obj,
      const base::android::JavaParamRef<jstring>& j_package_name,
      const base::android::JavaParamRef<jobjectArray>& j_fingerprints,
      const base::android::JavaParamRef<jstring>& j_origin,
      const base::android::JavaParamRef<jstring>& j_relationship);

  static jlong Init(
      JNIEnv* env,
      const base::android::JavaParamRef<jobject>& obj,
      const base::android::JavaParamRef<jobject>& jweb_contents,
      const base::android::JavaParamRef<jobject>& jbrowser_context_handle);

  void Destroy(JNIEnv* env, const base::android::JavaRef<jobject>& obj);

  static void ClearBrowsingData();

 private:
  void OnRelationshipCheckComplete(
      std::unique_ptr<digital_asset_links::DigitalAssetLinksHandler> handler,
      const std::string& origin,
      digital_asset_links::RelationshipCheckResult result);

  scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory_;
  raw_ptr<content::WebContents> web_contents_;

  base::android::ScopedJavaGlobalRef<jobject> jobject_;
};

#endif  // COMPONENTS_DIGITAL_ASSET_LINKS_ORIGIN_VERIFIER_H_


text:
@interface CHLoginViewController : UIViewController

@end


text:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>net.ebd.util</groupId>
    <artifactId>ant-beep</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <packaging>jar</packaging>

    <name>ant-beep</name>
    <url>http://maven.apache.org</url>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>3.8.1</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.ant</groupId>
            <artifactId>ant</artifactId>
            <version>1.8.2</version>
        </dependency>
    </dependencies>
</project>


text:
using node::ObjectWrap;
using namespace launchservices;
using namespace v8;

namespace {

  class LaunchServices : public ObjectWrap {
    LaunchServicesImplementation* impl;

    static NAN_METHOD(New) {
      NanScope();
      LaunchServices* that = new LaunchServices();
      that->Wrap(args.This());
      NanReturnValue(args.This());
    }

    static NAN_METHOD(RegisterURL) {
      NanScope();
      if (args.Length() < 1) {
        return NanThrowError("Bad argument");
      }
      LaunchServices* that = ObjectWrap::Unwrap<LaunchServices>(args.Holder());
      std::string urlString = *String::Utf8Value(args[0]);
      int result = that->impl->RegisterURL(urlString, true);
      NanReturnValue(NanNew(result));
    }

    static NAN_METHOD(GetDefaultRoleHandlerForContentType) {
      NanScope();
      if (args.Length() < 2) {
        return NanThrowError("Bad argument");
      }

      LaunchServices* that = ObjectWrap::Unwrap<LaunchServices>(args.Holder());
      std::string contentTypeString = *String::Utf8Value(args[0]);
      int rolesMask = -1;
      std::string handlerBundleID = that->impl->GetDefaultRoleHandlerForContentType(contentTypeString, rolesMask);
      if (handlerBundleID.empty()) {
        NanReturnUndefined();
      } else {
        NanReturnValue(NanNew(handlerBundleID));
      }
    }

    static NAN_METHOD(SetDefaultRoleHandlerForContentType) {
      NanScope();
      if (args.Length() < 3) {
        return NanThrowError("Bad argument");
      }

      LaunchServices* that = ObjectWrap::Unwrap<LaunchServices>(args.Holder());
      std::string contentTypeString = *String::Utf8Value(args[0]);
      int rolesMask = -1;
      std::string bundleIDString = *String::Utf8Value(args[2]);
      int result = that->impl->SetDefaultRoleHandlerForContentType(contentTypeString, rolesMask, bundleIDString);
      NanReturnValue(NanNew(result));
    }

    LaunchServices() {
      impl = LaunchServicesFactory::CreateLaunchServices();
    }

    virtual ~LaunchServices() {
      delete impl;
    }

   public:
    static void Init(Handle<Object> exports) {
      Local<FunctionTemplate> tpl = NanNew<FunctionTemplate>(LaunchServices::New);

      tpl->SetClassName(NanNew<String>("LaunchServices"));
      tpl->InstanceTemplate()->SetInternalFieldCount(1);

      NODE_SET_METHOD(tpl->InstanceTemplate(), "registerURL", LaunchServices::RegisterURL);
      NODE_SET_METHOD(tpl->InstanceTemplate(), "getDefaultRoleHandlerForContentType", LaunchServices::GetDefaultRoleHandlerForContentType);
      NODE_SET_METHOD(tpl->InstanceTemplate(), "setDefaultRoleHandlerForContentType", LaunchServices::SetDefaultRoleHandlerForContentType);

      exports->Set(NanNew("LaunchServices"), tpl->GetFunction());
    }
  };

  void Init(Handle<Object> exports, Handle<Object> module) {
    LaunchServices::Init(exports);
  }

}

NODE_MODULE(launchservices, Init)


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

<title>ResourceManagerValidator (Apache Geode 1.0.0-incubating.M2)</title>
<meta name="date" content="2016-04-13">
<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

Prev Class

Next Class

Frames

No Frames

All Classes

Summary:

Nested |

Field |

Constr |

Method

Detail:

Field |

Constr |

Method

com.gemstone.gemfire.modules.util

Class ResourceManagerValidator

java.lang.Object

com.gemstone.gemfire.modules.util.ResourceManagerValidator

public class ResourceManagerValidator
extends java.lang.Object

Method Summary

All Methods Static Methods Concrete Methods

Modifier and Type
Method and Description

static void
validateJavaStartupParameters(GemFireCache cache)

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Detail

validateJavaStartupParameters

public static void validateJavaStartupParameters(GemFireCache cache)

Skip navigation links

Overview

Package

Class

Tree

Deprecated

Index

Help

Prev Class

Next Class

Frames

No Frames

All Classes

Summary:

Nested |

Field |

Constr |

Method

Detail:

Field |

Constr |

Method


text:
int main (int argc, char** argv)
{
	Graph *currentGraph = NULL;
	int numVertex = 0;
	char  v1 = 0, v2 =0;

	if (argc != 3 )
	{
		printf ("The number of argument are wrong. Check ReadMe");
		return 0;
	}

	FILE *fp = fopen (argv[1], "r");
	if (fp == NULL)
	{
		perror ("Error in reading the file");
		return 0;
	}

	FILE *fpOutput = fopen (argv[2], "w+");
	if (fpOutput == NULL)
	{
		perror ("Error in opening file");
		return 0;
	}

	fscanf (fp, "%d\n", &numVertex);
	currentGraph = createGraph (numVertex);

	while (fscanf (fp,"%c,%c\n", &v1, &v2) != EOF)
	{
		addEdge (currentGraph, v1, v2);
	}

	sortGraphbyDegree (currentGraph);
	assignColour (currentGraph);
	printGraph (currentGraph, currentGraph->numofColoursUsed, fpOutput);

	return 0;
}


text:
from stevedore import driver

import magnum.conf

CONF = magnum.conf.CONF

_CERT_MANAGER_PLUGIN = None

def get_backend():
    global _CERT_MANAGER_PLUGIN
    if not _CERT_MANAGER_PLUGIN:
        _CERT_MANAGER_PLUGIN = driver.DriverManager(
            "magnum.cert_manager.backend",
            CONF.certificates.cert_manager_type).driver
    return _CERT_MANAGER_PLUGIN