nus-yam/ex-repair huggingface dataset:
Program: 117344
Project: 117344
Buggy source:
@Override public String getDocumentName(ODocument doc,OProperty nameProp){
  if (doc == null)   return Application.get().getResourceSettings().getLocalizer().getString("String_Node_Str",null);
 else {
    if (nameProp == null)     nameProp=getNameProperty(doc.getSchemaClass());
    if (nameProp != null) {
      Object value=doc.field(nameProp.getName());
      if (value == null)       return Application.get().getResourceSettings().getLocalizer().getString("String_Node_Str",null);
      OType type=nameProp.getType();
      Locale locale=OrienteerWebSession.get().getLocale();
switch (type) {
case DATE:
        return OrienteerWebApplication.DATE_CONVERTER.convertToString((Date)value,locale);
case DATETIME:
      return OrienteerWebApplication.DATE_TIME_CONVERTER.convertToString((Date)value,locale);
case LINK:
    return getDocumentName((ODocument)value);
case EMBEDDEDMAP:
  Map<String,Object> localizations=(Map<String,Object>)value;
Object localized=CommonUtils.localizeByMap(localizations,true,locale.getLanguage(),Locale.getDefault().getLanguage());
if (localized != null) return localized.toString();
default :
return value.toString();
}
}
 else {
return doc.toString();
}
}
}

Fixed version (ground truth):
@Override public String getDocumentName(ODocument doc,OProperty nameProp){
  if (doc == null)   return Application.get().getResourceSettings().getLocalizer().getString("String_Node_Str",null);
 else {
    if (nameProp == null)     nameProp=getNameProperty(doc.getSchemaClass());
    if (nameProp != null) {
      Object value=doc.field(nameProp.getName());
      if (value == null)       return Application.get().getResourceSettings().getLocalizer().getString("String_Node_Str",null);
      OType type=nameProp.getType();
      Locale locale=OrienteerWebSession.get().getLocale();
switch (type) {
case DATE:
        return OrienteerWebApplication.DATE_CONVERTER.convertToString((Date)value,locale);
case DATETIME:
      return OrienteerWebApplication.DATE_TIME_CONVERTER.convertToString((Date)value,locale);
case LINK:
    return value instanceof ODocument ? getDocumentName((ODocument)value) : null;
case EMBEDDEDMAP:
  Map<String,Object> localizations=(Map<String,Object>)value;
Object localized=CommonUtils.localizeByMap(localizations,true,locale.getLanguage(),Locale.getDefault().getLanguage());
if (localized != null) return localized.toString();
default :
return value.toString();
}
}
 else {
return doc.toString();
}
}
}
Program: 117345
Project: 117345
Buggy source:
private static Set<Artifact> differenceWithCoreDependencies(Set<Artifact> dependencies){
  Set<Artifact> artifacts=Sets.newHashSet();
  for (  Artifact d : dependencies) {
    for (    Artifact core : coreDependencies) {
      if (d.getGroupId().equals(core.getGroupId()) && d.getArtifactId().equals(core.getArtifactId()) && d.getVersion().equals(core.getVersion())) {
        continue;
      }
 else {
        artifacts.add(d);
        break;
      }
    }
  }
  return artifacts;
}

Fixed version (ground truth):
private static Set<Artifact> differenceWithCoreDependencies(Set<Artifact> dependencies){
  Set<Artifact> artifacts=Sets.newHashSet();
  for (  Artifact d : dependencies) {
    if (!containsInCoreDependencies(d)) {
      artifacts.add(d);
    }
  }
  return artifacts;
}
Program: 117346
Project: 117346
Buggy source:
private void mountOrUnmountPages(String packageName,ClassLoader classLoader,boolean mount){
  ClassPath classPath;
  try {
    classPath=ClassPath.from(classLoader);
  }
 catch (  IOException e) {
    throw new WicketRuntimeException("String_Node_Str",e);
  }
  if (!mount && !ThreadContext.exists())   return;
  for (  ClassInfo classInfo : classPath.getTopLevelClassesRecursive(packageName)) {
    Class<?> clazz=classInfo.load();
    MountPath mountPath=clazz.getAnnotation(MountPath.class);
    if (mountPath != null) {
      if (!IRequestablePage.class.isAssignableFrom(clazz))       throw new WicketRuntimeException("String_Node_Str" + MountPath.class.getSimpleName() + "String_Node_Str");
      Class<? extends IRequestablePage> pageClass=(Class<? extends IRequestablePage>)clazz;
      String mainPath=mountPath.value();
      String[] alt=mountPath.alt();
      for (int i=alt.length - 1; i >= -1; i--) {
        String path=i < 0 ? mainPath : alt[i];
        if (mount) {
          if ("String_Node_Str".equals(path)) {
            mount(new HomePageMapper(pageClass));
          }
          mount(new MountedMapper(path,pageClass));
        }
 else {
          unmount(path);
        }
      }
    }
  }
}

Fixed version (ground truth):
private void mountOrUnmountPages(String packageName,ClassLoader classLoader,boolean mount){
  ClassPath classPath;
  try {
    classPath=ClassPath.from(classLoader);
  }
 catch (  IOException e) {
    throw new WicketRuntimeException("String_Node_Str",e);
  }
  for (  ClassInfo classInfo : classPath.getTopLevelClassesRecursive(packageName)) {
    Class<?> clazz=classInfo.load();
    MountPath mountPath=clazz.getAnnotation(MountPath.class);
    if (mountPath != null) {
      if (!IRequestablePage.class.isAssignableFrom(clazz))       throw new WicketRuntimeException("String_Node_Str" + MountPath.class.getSimpleName() + "String_Node_Str");
      Class<? extends IRequestablePage> pageClass=(Class<? extends IRequestablePage>)clazz;
      String mainPath=mountPath.value();
      String[] alt=mountPath.alt();
      for (int i=alt.length - 1; i >= -1; i--) {
        String path=i < 0 ? mainPath : alt[i];
        if (mount) {
          if ("String_Node_Str".equals(path)) {
            mount(new HomePageMapper(pageClass));
          }
          mount(new MountedMapper(path,pageClass));
        }
 else {
          unmount(path);
        }
      }
    }
  }
}
Program: 117347
Project: 117347
Buggy source:
public static synchronized void registerModules(){
  LOG.info("String_Node_Str");
  Set<Path> jarsInFolder=readModulesInFolder(modulesFolder);
  showAlreadyLoaded();
  for (  Path jarFile : Sets.difference(jarsInFolder,LOADED)) {
    manager.setModulePath(jarFile);
    Optional<String> className=getInitClass(jarFile);
    if (className.isPresent()) {
      FlexyClassLoader moduleLoader=executeInitClass(className.get());
      if (moduleLoader != null) {
        LOG.info("String_Node_Str" + className.get() + "String_Node_Str"+ jarFile);
        OLoaderStorage.addModuleLoader(className.get(),moduleLoader);
        LOADED.add(jarFile);
      }
    }
 else     LOG.warn("String_Node_Str" + jarFile);
  }
  OLoaderStorage.updateRootLoader();
  LOG.info("String_Node_Str");
}

Fixed version (ground truth):
public static synchronized void registerModules(){
  LOG.info("String_Node_Str");
  Set<Path> jarsInFolder=readModulesInFolder(modulesFolder);
  showAlreadyLoaded();
  int i=0;
  for (  Path jarFile : Sets.difference(jarsInFolder,LOADED)) {
    manager.setModulePath(jarFile);
    Optional<String> className=getInitClass(jarFile);
    if (className.isPresent()) {
      FlexyClassLoader moduleLoader=executeInitClass(className.get());
      if (moduleLoader != null) {
        LOG.info("String_Node_Str" + className.get() + "String_Node_Str"+ jarFile);
        OLoaderStorage.addModuleLoader(className.get(),moduleLoader);
        LOADED.add(jarFile);
        i++;
      }
    }
 else     LOG.warn("String_Node_Str" + jarFile);
  }
  OLoaderStorage.updateRootLoader();
  LOG.info("String_Node_Str");
  if (i > 0) {
    reload();
  }
}
Program: 117348
Project: 117348
Buggy source:
private static IInitializer load(String fullClassName) throws Exception {
  ODependencyLoader loader=injector.getInstance(ODependencyLoader.class);
  Object obj=loader.newInstance(fullClassName);
  return obj != null ? (IInitializer)obj : null;
}

Fixed version (ground truth):
private static Object load(String fullClassName) throws Exception {
  ODependencyLoader loader=injector.getInstance(ODependencyLoader.class);
  return loader.newInstance(fullClassName);
}
Program: 117349
Project: 117349
Buggy source:
public static void loadModules(Application app){
  LOG.info("String_Node_Str");
  loadJars();
  Set<String> classNames=getModulesClassNames();
  for (  String fullClassName : classNames) {
    IInitializer initializer;
    try {
      initializer=load(fullClassName);
      if (initializer != null)       initializer.init(app);
 else       throw new NullPointerException();
      LOG.info(fullClassName + "String_Node_Str" + initializer);
    }
 catch (    Exception e) {
      LOG.error("String_Node_Str" + fullClassName);
      e.printStackTrace();
    }
  }
  LOG.info("String_Node_Str");
}

Fixed version (ground truth):
public static void loadModules(Application app){
  LOG.info("String_Node_Str");
  loadJars();
  Set<String> classNames=getModulesClassNames();
  Thread.currentThread().setContextClassLoader(injector.getInstance(JarClassLoader.class));
  for (  String fullClassName : classNames) {
    IInitializer initializer;
    try {
      initializer=(IInitializer)load(fullClassName);
      if (initializer != null)       initializer.init(app);
 else       throw new NullPointerException();
      LOG.info(fullClassName + "String_Node_Str" + initializer);
    }
 catch (    Exception e) {
      LOG.error("String_Node_Str" + fullClassName);
      e.printStackTrace();
    }
  }
  LOG.info("String_Node_Str");
}
Program: 117350
Project: 117350
Buggy source:
@Override public void run(){
  LOG.debug("String_Node_Str");
  timeout(3000);
  reload();
  LOG.debug("String_Node_Str");
}

Fixed version (ground truth):
@Override public void run(){
  LOG.debug("String_Node_Str");
  timeout(2000);
  reload();
  LOG.debug("String_Node_Str");
}
Program: 117351
Project: 117351
Buggy source:
public void reload() throws ServletException {
  if (filter == null)   return;
  reload(filter.getFilterConfig());
}

Fixed version (ground truth):
protected void reload() throws ServletException {
  if (filter == null)   return;
  reload(filter.getFilterConfig());
}
Program: 117352
Project: 117352
Buggy source:
public static Injector getInjector(){
  return injector != null ? injector : Guice.createInjector(new DependencyLoaderInitModule(),new ReloadOrienteerInitModule());
}

Fixed version (ground truth):
protected static Injector getInjector(){
  return injector != null ? injector : Guice.createInjector(new ReloadOrienteerInitModule());
}
Program: 117353
Project: 117353
Buggy source:
@Override protected void configureServlets(){
  bind(InterceptContentFilter.class).asEagerSingleton();
  filter("String_Node_Str").through(InterceptContentFilter.class);
  bind(WicketFilter.class).in(Singleton.class);
  filter("String_Node_Str").through(ReloadFilter.class);
  bind(ReloadFilter.class).in(Singleton.class);
  filter("String_Node_Str").through(WicketFilter.class);
  bind(FilterConfigProvider.class).in(Singleton.class);
  bind(FilterConfig.class).toProvider(FilterConfigProvider.class);
  Properties properties=retrieveProperties();
  Names.bindProperties(binder(),properties);
  bindOrientDbProperties(properties);
  String applicationClass=properties.getProperty("String_Node_Str");
  Class<? extends OrienteerWebApplication> appClass=OrienteerWebApplication.class;
  if (applicationClass != null) {
    try {
      Class<?> customAppClass=Class.forName(applicationClass);
      if (OrienteerWebApplication.class.isAssignableFrom(appClass)) {
        appClass=(Class<? extends OrienteerWebApplication>)customAppClass;
      }
 else {
        LOG.error("String_Node_Str" + applicationClass + "String_Node_Str"+ OrienteerWebApplication.class+ "String_Node_Str");
      }
    }
 catch (    ClassNotFoundException e) {
      LOG.error("String_Node_Str" + applicationClass + "String_Node_Str");
    }
  }
  bind(appClass);
  Provider<? extends OrienteerWebApplication> appProvider=binder().getProvider(appClass);
  if (!OrienteerWebApplication.class.equals(appClass)) {
    bind(OrienteerWebApplication.class).toProvider(appProvider);
  }
  bind(OrientDbWebApplication.class).toProvider(appProvider);
  bind(WebApplication.class).toProvider(appProvider);
  bind(Properties.class).annotatedWith(Orienteer.class).toInstance(properties);
  install(loadFromClasspath(new OrienteerModule()));
}

Fixed version (ground truth):
@Override protected void configureServlets(){
  bind(InterceptContentFilter.class).asEagerSingleton();
  filter("String_Node_Str").through(InterceptContentFilter.class);
  initResources();
  initClassLoader();
  initFilter();
  initApplication();
}
Program: 117354
Project: 117354
Buggy source:
private Object fromMap(Object input){
  if (input instanceof Map) {
    Map<?,?> objMap=(Map<?,?>)input;
    String rid=(String)(objMap.remove(ODocumentHelper.ATTRIBUTE_RID));
    String clazz=(String)(objMap.remove(ODocumentHelper.ATTRIBUTE_CLASS));
    if (rid != null || clazz != null) {
      ODocument result=null;
      if (rid != null && clazz != null && objMap.isEmpty()) {
        result=new ODocument(clazz,new ORecordId(rid));
      }
 else       if (clazz != null && (rid == null || ((OrientDBEndpoint)getEndpoint()).isMakeNew())) {
        result=new ODocument(clazz);
      }
 else       if (rid != null && clazz != null) {
        result=new ODocument(clazz,new ORecordId(rid));
      }
 else       if (rid != null) {
        result=new ODocument(new ORecordId(rid));
      }
      for (      Entry<?,?> entry : objMap.entrySet()) {
        result.field((String)entry.getKey(),fromMap(entry.getValue()));
      }
      return result;
    }
 else {
      Map<String,Object> result=new HashMap<String,Object>();
      for (      Entry<?,?> entry : objMap.entrySet()) {
        result.put((String)entry.getKey(),fromMap(entry.getValue()));
      }
      return result;
    }
  }
 else   if (input instanceof Iterable) {
    ArrayList<Object> result=new ArrayList<Object>();
    for (    Object item : ((Iterable<?>)input)) {
      result.add(fromMap(item));
    }
    return result;
  }
  return input;
}

Fixed version (ground truth):
private Object fromMap(Object input){
  if (input instanceof Map) {
    Map<?,?> objMap=(Map<?,?>)input;
    String rid=(String)(objMap.remove(ODocumentHelper.ATTRIBUTE_RID));
    String clazz=(String)(objMap.remove(ODocumentHelper.ATTRIBUTE_CLASS));
    if (rid != null || clazz != null) {
      ODocument result=null;
      if (rid != null && clazz != null && objMap.isEmpty()) {
        result=new ODocument(clazz,new ORecordId(rid));
      }
 else       if (clazz != null && (rid == null || ((OrientDBEndpoint)getEndpoint()).isMakeNew())) {
        result=new ODocument(clazz);
      }
 else       if (rid != null && clazz != null) {
        result=new ODocument(clazz,new ORecordId(rid));
      }
 else       if (rid != null) {
        result=new ODocument(new ORecordId(rid));
      }
      for (      Entry<?,?> entry : objMap.entrySet()) {
        Object value=fromMap(entry.getValue());
        if (value instanceof String && Strings.isEmpty((String)value)) {
          value=null;
        }
        result.field((String)entry.getKey(),value);
      }
      return result;
    }
 else {
      Map<String,Object> result=new HashMap<String,Object>();
      for (      Entry<?,?> entry : objMap.entrySet()) {
        result.put((String)entry.getKey(),fromMap(entry.getValue()));
      }
      return result;
    }
  }
 else   if (input instanceof Iterable) {
    ArrayList<Object> result=new ArrayList<Object>();
    for (    Object item : ((Iterable<?>)input)) {
      result.add(fromMap(item));
    }
    return result;
  }
  return input;
}
Program: 117355
Project: 117355
Buggy source:
@SuppressWarnings("String_Node_Str") private Object processSingleObject(Object input,OrientDBEndpoint endpoint,ODatabaseDocument db) throws Exception {
  ODocument inputDocument=null;
  if (input instanceof Map) {
    inputDocument=(ODocument)fromMap(input);
  }
 else   if (input instanceof ODocument) {
    inputDocument=fromObject((ODocument)input,endpoint,db);
  }
 else   if (input instanceof String && isJsonObject((String)input)) {
    inputDocument=fromJSON((String)input,endpoint,db);
  }
  if (inputDocument != null) {
    if (!Strings.isEmpty(endpoint.getInputAsOClass())) {
      inputDocument.setClassName(endpoint.getInputAsOClass());
    }
    if (endpoint.isMakeNew()) {
      inputDocument.getIdentity().reset();
    }
    if (endpoint.isPreload()) {
      inputDocument.save();
    }
    if (!Strings.isEmpty(endpoint.getSQLQuery())) {
      Object dbResult=db.command(new OCommandSQL(endpoint.getSQLQuery())).execute(inputDocument.toMap());
      return dbResult;
    }
    return inputDocument;
  }
 else {
    if (!Strings.isEmpty(endpoint.getSQLQuery())) {
      if (input instanceof List) {
        convertLinks((List<Object>)input);
        Object dbResult=db.command(new OCommandSQL(endpoint.getSQLQuery())).execute(((List<?>)input).toArray());
        return dbResult;
      }
 else {
        Object dbResult=db.command(new OCommandSQL(endpoint.getSQLQuery())).execute(input);
        return dbResult;
      }
    }
  }
  return input;
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") private Object processSingleObject(Object input,OrientDBEndpoint endpoint,ODatabaseDocument db) throws Exception {
  ODocument inputDocument=null;
  if (input instanceof Map) {
    if (!Strings.isEmpty(endpoint.getInputAsOClass())) {
      ((Map<Object,Object>)input).put(ODocumentHelper.ATTRIBUTE_CLASS,endpoint.getInputAsOClass());
    }
    inputDocument=(ODocument)fromMap(input);
  }
 else   if (input instanceof ODocument) {
    inputDocument=fromObject((ODocument)input,endpoint,db);
  }
 else   if (input instanceof String && isJsonObject((String)input)) {
    inputDocument=fromJSON((String)input,endpoint,db);
  }
  if (inputDocument != null) {
    if (!Strings.isEmpty(endpoint.getInputAsOClass())) {
      inputDocument.setClassName(endpoint.getInputAsOClass());
    }
    if (endpoint.isMakeNew()) {
      inputDocument.getIdentity().reset();
    }
    if (endpoint.isPreload()) {
      inputDocument.save();
    }
    if (!Strings.isEmpty(endpoint.getSQLQuery())) {
      Object dbResult=db.command(new OCommandSQL(endpoint.getSQLQuery())).execute(inputDocument.toMap());
      return dbResult;
    }
    return inputDocument;
  }
 else {
    if (!Strings.isEmpty(endpoint.getSQLQuery())) {
      if (input instanceof List) {
        convertLinks((List<Object>)input);
        Object dbResult=db.command(new OCommandSQL(endpoint.getSQLQuery())).execute(((List<?>)input).toArray());
        return dbResult;
      }
 else {
        Object dbResult=db.command(new OCommandSQL(endpoint.getSQLQuery())).execute(input);
        return dbResult;
      }
    }
  }
  return input;
}
Program: 117356
Project: 117356
Buggy source:
public ODocument updateOnlineUser(OUser user,final boolean online){
  final ODocument document=user.getDocument();
  return new DBClosure<ODocument>(){
    @Override protected ODocument execute(    ODatabaseDocument oDatabaseDocument){
      document.field(ONLINE_FIELD,online);
      document.save();
      return document;
    }
  }
.execute();
}

Fixed version (ground truth):
public ODocument updateOnlineUser(final OUser user,final boolean online){
  return new DBClosure<ODocument>(){
    @Override protected ODocument execute(    ODatabaseDocument oDatabaseDocument){
      final ODocument document=user.reload().getDocument();
      document.field(ONLINE_FIELD,online);
      document.save();
      return document;
    }
  }
.execute();
}
Program: 117357
Project: 117357
Buggy source:
public void updateSessionUser(OUser user,final String sessionId){
  if (user != null) {
    final ODocument document=user.getDocument();
    new DBClosure<ODocument>(){
      @Override protected ODocument execute(      ODatabaseDocument oDatabaseDocument){
        document.field(LAST_SESSION_FIELD,sessionId);
        document.save();
        return document;
      }
    }
.execute();
  }
}

Fixed version (ground truth):
public void updateSessionUser(final OUser user,final String sessionId){
  if (user != null) {
    new DBClosure<ODocument>(){
      @Override protected ODocument execute(      ODatabaseDocument oDatabaseDocument){
        final ODocument document=user.reload().getDocument();
        document.field(LAST_SESSION_FIELD,sessionId);
        document.save();
        return document;
      }
    }
.execute();
  }
}
Program: 117358
Project: 117358
Buggy source:
@Override public void onInitialize(OrienteerWebApplication app,ODatabaseDocument db){
  super.onInitialize(app,db);
  app.getSessionListeners().add(new ISessionListener(){
    @Override public void onCreated(    Session session){
    }
    @Override public void onUnbound(    final String sessionId){
      new DBClosure<Void>(){
        @Override protected Void execute(        ODatabaseDocument db){
          db.command(new OSQLSynchQuery<Void>("String_Node_Str" + OCLASS_USER + "String_Node_Str"+ ONLINE_FIELD+ "String_Node_Str"+ LAST_SESSION_FIELD+ "String_Node_Str"+ sessionId+ "String_Node_Str"));
          return null;
        }
      }
.execute();
    }
  }
);
}

Fixed version (ground truth):
@Override public void onInitialize(OrienteerWebApplication app,ODatabaseDocument db){
  super.onInitialize(app,db);
  app.getSessionListeners().add(new ISessionListener(){
    @Override public void onCreated(    Session session){
    }
    @Override public void onUnbound(    final String sessionId){
      new DBClosure<Void>(){
        @Override protected Void execute(        ODatabaseDocument db){
          db.command(new OCommandSQL("String_Node_Str" + OCLASS_USER + "String_Node_Str"+ ONLINE_FIELD+ "String_Node_Str"+ LAST_SESSION_FIELD+ "String_Node_Str")).execute(sessionId);
          return null;
        }
      }
.execute();
    }
  }
);
}
Program: 117359
Project: 117359
Buggy source:
@Override public void onUnbound(final String sessionId){
  new DBClosure<Void>(){
    @Override protected Void execute(    ODatabaseDocument db){
      db.command(new OSQLSynchQuery<Void>("String_Node_Str" + OCLASS_USER + "String_Node_Str"+ ONLINE_FIELD+ "String_Node_Str"+ LAST_SESSION_FIELD+ "String_Node_Str"+ sessionId+ "String_Node_Str"));
      return null;
    }
  }
.execute();
}

Fixed version (ground truth):
@Override public void onUnbound(final String sessionId){
  new DBClosure<Void>(){
    @Override protected Void execute(    ODatabaseDocument db){
      db.command(new OCommandSQL("String_Node_Str" + OCLASS_USER + "String_Node_Str"+ ONLINE_FIELD+ "String_Node_Str"+ LAST_SESSION_FIELD+ "String_Node_Str")).execute(sessionId);
      return null;
    }
  }
.execute();
}
Program: 117360
Project: 117360
Buggy source:
@Override protected ODocument execute(ODatabaseDocument oDatabaseDocument){
  document.field(LAST_SESSION_FIELD,sessionId);
  document.save();
  return document;
}

Fixed version (ground truth):
@Override protected ODocument execute(ODatabaseDocument oDatabaseDocument){
  final ODocument document=user.reload().getDocument();
  document.field(LAST_SESSION_FIELD,sessionId);
  document.save();
  return document;
}
Program: 117361
Project: 117361
Buggy source:
@Override protected void doStart() throws Exception {
  LOG.info(Thread.currentThread().getName());
  if (taskSession == null) {
    taskSession=new OCamelTaskSession();
    taskSession.setCallback(callback);
    taskSession.setDeleteOnFinish(false);
    taskSession.setConfig(configId);
    taskSession.setFinalProgress(context.getRoutes().size());
    taskSession.start();
  }
  super.doStart();
}

Fixed version (ground truth):
@Override protected void doStart() throws Exception {
  LOG.info(Thread.currentThread().getName());
  taskSession=new OCamelTaskSession();
  taskSession.setCallback(callback);
  taskSession.setDeleteOnFinish(false);
  taskSession.setConfig(configId);
  taskSession.setFinalProgress(context.getRoutes().size());
  taskSession.start();
  super.doStart();
}
Program: 117362
Project: 117362
Buggy source:
@Override public boolean isDeleteOnFinish(){
  return getField(Field.DELETE_ON_FINISH);
}

Fixed version (ground truth):
@Override public boolean isDeleteOnFinish(){
  return getField(Field.DELETE_ON_FINISH,false);
}
Program: 117363
Project: 117363
Buggy source:
@Override public OTaskSessionRuntime finish(){
  getOTaskSessionPersisted().getDocument().field(Field.FINISH_TIMESTAMP.fieldName(),new Date());
  setStatus(Status.FINISHED);
  return this;
}

Fixed version (ground truth):
@Override public OTaskSessionRuntime finish(){
  if (isDeleteOnFinish()) {
    delSelf();
  }
 else {
    getOTaskSessionPersisted().getDocument().field(Field.FINISH_TIMESTAMP.fieldName(),new Date());
    setStatus(Status.FINISHED);
  }
  return this;
}
Program: 117365
Project: 117365
Buggy source:
@Override protected AbstractLink newLink(String id){
  return new AjaxSubmitLink(id){
    /** 
 */
    private static final long serialVersionUID=1L;
    @Override protected void onSubmit(    AjaxRequestTarget target,    Form<?> form){
      AjaxFormCommand.this.onSubmit(target,form);
      trySendActionPerformed();
    }
  }
;
}

Fixed version (ground truth):
@Override protected AbstractLink newLink(String id){
  AjaxSubmitLink link=new AjaxSubmitLink(id){
    /** 
 */
    private static final long serialVersionUID=1L;
    @Override protected void onSubmit(    AjaxRequestTarget target,    Form<?> form){
      AjaxFormCommand.this.onSubmit(target,form);
      trySendActionPerformed();
    }
  }
;
  if (defaultFormProcessing != null)   link.setDefaultFormProcessing(defaultFormProcessing);
  return link;
}
Program: 117367
Project: 117367
Buggy source:
@Override protected void populateItem(final ListItem<Pair<V>> item){
  item.add(getKeyEditComponent(item));
  item.add(visualizer.createComponent("String_Node_Str",DisplayMode.EDIT,documentModel,propertyModel,oType,new PropertyModel<V>(item.getModel(),"String_Node_Str")));
  item.add(new AjaxFormCommand<Object>("String_Node_Str","String_Node_Str"){
    @Override public void onClick(    AjaxRequestTarget target){
      getData().remove(item.getIndex());
      target.add(EmbeddedMapEditPanel.this);
      listView.removeAll();
    }
  }
.setAutoNotify(false).setBootstrapSize(BootstrapSize.EXTRA_SMALL).setBootstrapType(BootstrapType.DANGER).setIcon((String)null));
}

Fixed version (ground truth):
@Override protected void populateItem(final ListItem<Pair<V>> item){
  item.add(getKeyEditComponent(item));
  item.add(visualizer.createComponent("String_Node_Str",DisplayMode.EDIT,documentModel,propertyModel,oType,new PropertyModel<V>(item.getModel(),"String_Node_Str")));
  item.add(new AjaxFormCommand<Object>("String_Node_Str","String_Node_Str"){
    @Override public void onClick(    AjaxRequestTarget target){
      getData().remove(item.getIndex());
      target.add(EmbeddedMapEditPanel.this);
      listView.removeAll();
    }
  }
.setDefaultFormProcessing(false).setAutoNotify(false).setBootstrapSize(BootstrapSize.EXTRA_SMALL).setBootstrapType(BootstrapType.DANGER).setIcon((String)null));
}
Program: 117368
Project: 117368
Buggy source:
@Override public void configure(IOLoggerConfiguration configuration){
  super.configure(configuration);
  if (!Strings.isEmpty(collectorUrl)) {
    Url url=Url.parse(collectorUrl);
    if (Strings.isEmpty(url.getPath())) {
      collectorUrl=(collectorUrl.endsWith("String_Node_Str") ? "String_Node_Str" : "String_Node_Str") + "String_Node_Str";
    }
  }
}

Fixed version (ground truth):
@Override public void configure(IOLoggerConfiguration configuration){
  super.configure(configuration);
  if (!Strings.isEmpty(collectorUrl)) {
    Url url=Url.parse(collectorUrl);
    if (Strings.isEmpty(url.getPath())) {
      collectorUrl=collectorUrl + (collectorUrl.endsWith("String_Node_Str") ? "String_Node_Str" : "String_Node_Str") + "String_Node_Str";
    }
  }
}
Program: 117369
Project: 117369
Buggy source:
public AbstractLinkViewPanel(String id){
  super(id);
  add(link=newLink("String_Node_Str"));
}

Fixed version (ground truth):
public AbstractLinkViewPanel(String id){
  super(id);
}
Program: 117370
Project: 117370
Buggy source:
public OClassViewPanel(String id,IModel<OClass> model,boolean localizeClassName){
  super(id,model);
  ((OClassPageLink)link).setClassNameAsBody(localizeClassName);
}

Fixed version (ground truth):
public OClassViewPanel(String id,IModel<OClass> model,boolean localizeClassName){
  super(id,model);
  this.localizeClassName=localizeClassName;
}
Program: 117371
Project: 117371
Buggy source:
@Override protected <V>AbstractMetaPanel<ODocument,OProperty,V> newMetaPanel(String componentId,IModel<OProperty> criteryModel,IModel<ODocument> rowModel){
  return new ODocumentMetaPanel<V>(componentId,getModeModel(),rowModel,criteryModel){
    @Override protected Component resolveComponent(    String id,    DisplayMode mode,    OProperty property){
      if (property == null) {
        return new LinkViewPanel(id,getEntityModel(),getValueModel());
      }
      return DisplayMode.VIEW.equals(mode) ? new LinkViewPanel(id,getEntityModel(),getValueModel()) : super.resolveComponent(id,mode,property);
    }
  }
;
}

Fixed version (ground truth):
@Override protected <V>AbstractMetaPanel<ODocument,OProperty,V> newMetaPanel(String componentId,IModel<OProperty> criteryModel,IModel<ODocument> rowModel){
  return new ODocumentMetaPanel<V>(componentId,getModeModel(),rowModel,criteryModel){
    @Override protected Component resolveComponent(    String id,    DisplayMode mode,    OProperty property){
      return DisplayMode.VIEW.equals(mode) || property == null ? new LinkViewPanel(id,getEntityModel(),getValueModel()) : super.resolveComponent(id,mode,property);
    }
  }
;
}
Program: 117372
Project: 117372
Buggy source:
@Override protected Component resolveComponent(String id,DisplayMode mode,OProperty property){
  if (property == null) {
    return new LinkViewPanel(id,getEntityModel(),getValueModel());
  }
  return DisplayMode.VIEW.equals(mode) ? new LinkViewPanel(id,getEntityModel(),getValueModel()) : super.resolveComponent(id,mode,property);
}

Fixed version (ground truth):
@Override protected Component resolveComponent(String id,DisplayMode mode,OProperty property){
  return DisplayMode.VIEW.equals(mode) || property == null ? new LinkViewPanel(id,getEntityModel(),getValueModel()) : super.resolveComponent(id,mode,property);
}
Program: 117373
Project: 117373
Buggy source:
@Override protected <V>AbstractMetaPanel<ODocument,OProperty,V> newMetaPanel(String componentId,IModel<OProperty> criteryModel,IModel<ODocument> rowModel){
  return new ODocumentMetaPanel<V>(componentId,getModeModel(),rowModel,criteryModel){
    @Override protected Component resolveComponent(    String id,    DisplayMode mode,    OProperty property){
      return DisplayMode.VIEW.equals(mode) || property == null ? new LinkViewPanel(id,getEntityModel(),getValueModel()) : super.resolveComponent(id,mode,property);
    }
  }
;
}

Fixed version (ground truth):
@Override protected <V>AbstractMetaPanel<ODocument,OProperty,V> newMetaPanel(String componentId,IModel<OProperty> criteryModel,IModel<ODocument> rowModel){
  return new ODocumentMetaPanel<V>(componentId,getModeModel(),rowModel,criteryModel){
    @Override protected Component resolveComponent(    String id,    DisplayMode mode,    OProperty property){
      if (DisplayMode.VIEW.equals(mode) || property == null)       return new LinkViewPanel(id,getEntityModel(),new ODocumentNameModel(getEntityModel(),getCriteryModel()));
 else       return super.resolveComponent(id,mode,property);
    }
  }
;
}
Program: 117374
Project: 117374
Buggy source:
@Override protected Component resolveComponent(String id,DisplayMode mode,OProperty property){
  return DisplayMode.VIEW.equals(mode) || property == null ? new LinkViewPanel(id,getEntityModel(),getValueModel()) : super.resolveComponent(id,mode,property);
}

Fixed version (ground truth):
@Override protected Component resolveComponent(String id,DisplayMode mode,OProperty property){
  if (DisplayMode.VIEW.equals(mode) || property == null)   return new LinkViewPanel(id,getEntityModel(),new ODocumentNameModel(getEntityModel(),getCriteryModel()));
 else   return super.resolveComponent(id,mode,property);
}
Program: 117375
Project: 117375
Buggy source:
@Override protected String load(){
  OIdentifiable id=documentModel != null ? documentModel.getObject() : null;
  ORecord doc=id != null ? id.getRecord() : null;
  return doc != null && doc instanceof ODocument ? OrienteerWebApplication.get().getOClassIntrospector().getDocumentName((ODocument)doc) : null;
}

Fixed version (ground truth):
@Override protected String load(){
  OIdentifiable id=documentModel != null ? documentModel.getObject() : null;
  ORecord doc=id != null ? id.getRecord() : null;
  return doc != null && doc instanceof ODocument ? OrienteerWebApplication.get().getOClassIntrospector().getDocumentName((ODocument)doc,namePropertyModel != null ? namePropertyModel.getObject() : null) : null;
}
Program: 117376
Project: 117376
Buggy source:
public ODocumentNameModel(IModel<? extends OIdentifiable> documentModel){
  this.documentModel=documentModel;
}

Fixed version (ground truth):
public ODocumentNameModel(IModel<? extends OIdentifiable> documentModel,IModel<OProperty> namePropertyModel){
  this.documentModel=documentModel;
  this.namePropertyModel=namePropertyModel;
}
Program: 117377
Project: 117377
Buggy source:
@Override public void onDetach(){
  if (documentModel != null)   documentModel.detach();
}

Fixed version (ground truth):
@Override public void onDetach(){
  if (documentModel != null)   documentModel.detach();
  if (namePropertyModel != null)   namePropertyModel.detach();
}
Program: 117378
Project: 117378
Buggy source:
public String getDocumentName(ODocument doc);

Fixed version (ground truth):
public String getDocumentName(ODocument doc,OProperty nameProperty);
Program: 117379
Project: 117379
Buggy source:
@Override public String getDocumentName(ODocument doc){
  if (doc == null)   return Application.get().getResourceSettings().getLocalizer().getString("String_Node_Str",null);
 else {
    OProperty nameProp=getNameProperty(doc.getSchemaClass());
    if (nameProp != null) {
      Object value=doc.field(nameProp.getName());
      if (value == null)       return Application.get().getResourceSettings().getLocalizer().getString("String_Node_Str",null);
      OType type=nameProp.getType();
      Locale locale=OrienteerWebSession.get().getLocale();
switch (type) {
case DATE:
        return OrienteerWebApplication.DATE_CONVERTER.convertToString((Date)value,locale);
case DATETIME:
      return OrienteerWebApplication.DATE_TIME_CONVERTER.convertToString((Date)value,locale);
case LINK:
    return getDocumentName((ODocument)value);
case EMBEDDEDMAP:
  Map<String,Object> localizations=(Map<String,Object>)value;
Object localized=CommonUtils.localizeByMap(localizations,true,locale.getLanguage(),Locale.getDefault().getLanguage());
if (localized != null) return localized.toString();
default :
return value.toString();
}
}
 else {
return doc.toString();
}
}
}

Fixed version (ground truth):
@Override public String getDocumentName(ODocument doc,OProperty nameProp){
  if (doc == null)   return Application.get().getResourceSettings().getLocalizer().getString("String_Node_Str",null);
 else {
    if (nameProp == null)     nameProp=getNameProperty(doc.getSchemaClass());
    if (nameProp != null) {
      Object value=doc.field(nameProp.getName());
      if (value == null)       return Application.get().getResourceSettings().getLocalizer().getString("String_Node_Str",null);
      OType type=nameProp.getType();
      Locale locale=OrienteerWebSession.get().getLocale();
switch (type) {
case DATE:
        return OrienteerWebApplication.DATE_CONVERTER.convertToString((Date)value,locale);
case DATETIME:
      return OrienteerWebApplication.DATE_TIME_CONVERTER.convertToString((Date)value,locale);
case LINK:
    return getDocumentName((ODocument)value);
case EMBEDDEDMAP:
  Map<String,Object> localizations=(Map<String,Object>)value;
Object localized=CommonUtils.localizeByMap(localizations,true,locale.getLanguage(),Locale.getDefault().getLanguage());
if (localized != null) return localized.toString();
default :
return value.toString();
}
}
 else {
return doc.toString();
}
}
}
Program: 117380
Project: 117380
Buggy source:
@Override public void applyRelationships(OSchemaHelper helper){
  super.applyRelationships(helper);
  helper.setupRelationship(JobDefinitionEntityHandler.OCLASS_NAME,"String_Node_Str",ProcessDefinitionEntityHandler.OCLASS_NAME);
  helper.setupRelationship(OCLASS_NAME,"String_Node_Str",HistoricDetailEventEntityHandler.OCLASS_NAME,"String_Node_Str");
  helper.setupRelationship(OCLASS_NAME,"String_Node_Str",HistoricJobLogEventEntityHandler.OCLASS_NAME,"String_Node_Str");
  helper.setupRelationship(OCLASS_NAME,"String_Node_Str",UserOperationLogEntryEventEntityHandler.OCLASS_NAME,"String_Node_Str");
}

Fixed version (ground truth):
@Override public void applyRelationships(OSchemaHelper helper){
  super.applyRelationships(helper);
  helper.setupRelationship(JobDefinitionEntityHandler.OCLASS_NAME,"String_Node_Str",ProcessDefinitionEntityHandler.OCLASS_NAME);
  helper.setupRelationship(OCLASS_NAME,"String_Node_Str",HistoricIncidentEventEntityHandler.OCLASS_NAME,"String_Node_Str");
  helper.setupRelationship(OCLASS_NAME,"String_Node_Str",HistoricJobLogEventEntityHandler.OCLASS_NAME,"String_Node_Str");
  helper.setupRelationship(OCLASS_NAME,"String_Node_Str",UserOperationLogEntryEventEntityHandler.OCLASS_NAME,"String_Node_Str");
}
Program: 117381
Project: 117381
Buggy source:
@Override public void applyRelationships(OSchemaHelper helper){
  super.applyRelationships(helper);
  helper.setupRelationship(ProcessDefinitionEntityHandler.OCLASS_NAME,"String_Node_Str",DeploymentEntityHandler.OCLASS_NAME,"String_Node_Str");
  helper.setupRelationship(ProcessDefinitionEntityHandler.OCLASS_NAME,"String_Node_Str",ExecutionEntityHandler.OCLASS_NAME,"String_Node_Str");
  helper.setupRelationship(ProcessDefinitionEntityHandler.OCLASS_NAME,"String_Node_Str",TaskEntityHandler.OCLASS_NAME,"String_Node_Str");
  helper.setupRelationship(OCLASS_NAME,"String_Node_Str",HistoricEventHandler.OCLASS_NAME,"String_Node_Str");
  helper.setupRelationship(OCLASS_NAME,"String_Node_Str",HistoricVariableInstanceEntityHandler.OCLASS_NAME,"String_Node_Str");
}

Fixed version (ground truth):
@Override public void applyRelationships(OSchemaHelper helper){
  super.applyRelationships(helper);
  helper.setupRelationship(OCLASS_NAME,"String_Node_Str",DeploymentEntityHandler.OCLASS_NAME,"String_Node_Str");
  helper.setupRelationship(OCLASS_NAME,"String_Node_Str",ExecutionEntityHandler.OCLASS_NAME,"String_Node_Str");
  helper.setupRelationship(OCLASS_NAME,"String_Node_Str",TaskEntityHandler.OCLASS_NAME,"String_Node_Str");
  helper.setupRelationship(OCLASS_NAME,"String_Node_Str",HistoricEventHandler.OCLASS_NAME,"String_Node_Str");
  helper.setupRelationship(OCLASS_NAME,"String_Node_Str",HistoricVariableInstanceEntityHandler.OCLASS_NAME,"String_Node_Str");
  helper.setupRelationship(OCLASS_NAME,"String_Node_Str",HistoricProcessInstanceEventEntityHandler.OCLASS_NAME,"String_Node_Str");
}
Program: 117382
Project: 117382
Buggy source:
@Override public void applySchema(OSchemaHelper helper){
  super.applySchema(helper);
  helper.oProperty("String_Node_Str",OType.STRING,10).markDisplayable().markAsDocumentName().notNull(true).oProperty("String_Node_Str",OType.STRING,30).notNull(true).markDisplayable().oProperty("String_Node_Str",OType.STRING,35).oProperty("String_Node_Str",OType.STRING,40).markDisplayable().oProperty("String_Node_Str",OType.LINK,60).assignVisualization("String_Node_Str").markDisplayable().markAsLinkToParent().oProperty("String_Node_Str",OType.LINKLIST,70).assignVisualization("String_Node_Str").oProperty("String_Node_Str",OType.INTEGER,80).defaultValue("String_Node_Str").notNull().oProperty("String_Node_Str",OType.LINKLIST,90).assignVisualization("String_Node_Str").oProperty("String_Node_Str",OType.LINKLIST,100).assignTab("String_Node_Str").assignVisualization("String_Node_Str").oProperty("String_Node_Str",OType.LINKLIST,110).assignVisualization("String_Node_Str");
}

Fixed version (ground truth):
@Override public void applySchema(OSchemaHelper helper){
  super.applySchema(helper);
  helper.oProperty("String_Node_Str",OType.STRING,10).markDisplayable().markAsDocumentName().notNull(true).oProperty("String_Node_Str",OType.STRING,30).notNull(true).markDisplayable().oProperty("String_Node_Str",OType.STRING,35).oProperty("String_Node_Str",OType.STRING,40).markDisplayable().oProperty("String_Node_Str",OType.LINK,60).assignVisualization("String_Node_Str").markDisplayable().markAsLinkToParent().oProperty("String_Node_Str",OType.LINKLIST,70).assignVisualization("String_Node_Str").oProperty("String_Node_Str",OType.INTEGER,80).defaultValue("String_Node_Str").notNull().oProperty("String_Node_Str",OType.LINKLIST,90).assignVisualization("String_Node_Str").oProperty("String_Node_Str",OType.LINKLIST,100).assignTab("String_Node_Str").assignVisualization("String_Node_Str").oProperty("String_Node_Str",OType.LINKLIST,110).assignVisualization("String_Node_Str").oProperty("String_Node_Str",OType.LINKLIST,120).assignVisualization("String_Node_Str");
}
Program: 117383
Project: 117383
Buggy source:
@Override public void applySchema(OSchemaHelper helper){
  super.applySchema(helper);
  helper.oClass(OCLASS_NAME,HistoricEventHandler.OCLASS_NAME).oProperty("String_Node_Str",OType.DATETIME,10).oProperty("String_Node_Str",OType.STRING,20).oProperty("String_Node_Str",OType.DATETIME,30).oProperty("String_Node_Str",OType.INTEGER,40).oProperty("String_Node_Str",OType.LONG,50).oProperty("String_Node_Str",OType.STRING,60).oProperty("String_Node_Str",OType.STRING,70).oProperty("String_Node_Str",OType.INTEGER,80).oProperty("String_Node_Str",OType.STRING,90).oProperty("String_Node_Str",OType.STRING,100).oProperty("String_Node_Str",OType.STRING,110).oProperty("String_Node_Str",OType.STRING,120).oProperty("String_Node_Str",OType.STRING,170).oProperty("String_Node_Str",OType.STRING,180);
}

Fixed version (ground truth):
@Override public void applySchema(OSchemaHelper helper){
  super.applySchema(helper);
  helper.oClass(OCLASS_NAME,HistoricEventHandler.OCLASS_NAME).oProperty("String_Node_Str",OType.DATETIME,10).oProperty("String_Node_Str",OType.STRING,20).oProperty("String_Node_Str",OType.DATETIME,30).oProperty("String_Node_Str",OType.INTEGER,40).oProperty("String_Node_Str",OType.LONG,50).oProperty("String_Node_Str",OType.STRING,60).oProperty("String_Node_Str",OType.STRING,70).oProperty("String_Node_Str",OType.INTEGER,80).oProperty("String_Node_Str",OType.LINK,90).oProperty("String_Node_Str",OType.STRING,100).oProperty("String_Node_Str",OType.STRING,110).oProperty("String_Node_Str",OType.STRING,120).oProperty("String_Node_Str",OType.STRING,170).oProperty("String_Node_Str",OType.STRING,180);
}
Program: 117384
Project: 117384
Buggy source:
public void applyRelationships(OSchemaHelper helper){
  super.applyRelationships(helper);
  helper.setupRelationship(HistoricProcessInstanceEventEntityHandler.OCLASS_NAME,"String_Node_Str",ProcessDefinitionEntityHandler.OCLASS_NAME,"String_Node_Str");
  helper.setupRelationship(OCLASS_NAME,"String_Node_Str",TaskEntityHandler.OCLASS_NAME,"String_Node_Str");
}

Fixed version (ground truth):
public void applyRelationships(OSchemaHelper helper){
  super.applyRelationships(helper);
  helper.setupRelationship(OCLASS_NAME,"String_Node_Str",ProcessDefinitionEntityHandler.OCLASS_NAME,"String_Node_Str");
  helper.setupRelationship(OCLASS_NAME,"String_Node_Str",TaskEntityHandler.OCLASS_NAME,"String_Node_Str");
}
Program: 117385
Project: 117385
Buggy source:
@Override public void applyRelationships(OSchemaHelper helper){
  super.applyRelationships(helper);
  helper.setupRelationship(OCLASS_NAME,"String_Node_Str",DeploymentEntityHandler.OCLASS_NAME);
  helper.setupRelationship(OCLASS_NAME,"String_Node_Str",HistoricVariableInstanceEntityHandler.OCLASS_NAME,"String_Node_Str");
}

Fixed version (ground truth):
@Override public void applyRelationships(OSchemaHelper helper){
  super.applyRelationships(helper);
  helper.setupRelationship(OCLASS_NAME,"String_Node_Str",DeploymentEntityHandler.OCLASS_NAME);
}
Program: 117386
Project: 117386
Buggy source:
@Override public void applySchema(OSchemaHelper helper){
  super.applySchema(helper);
  helper.oProperty("String_Node_Str",OType.STRING,10).oProperty("String_Node_Str",OType.BINARY,20).oProperty("String_Node_Str",OType.LINK,30).oProperty("String_Node_Str",OType.LINKLIST,40).assignVisualization("String_Node_Str");
}

Fixed version (ground truth):
@Override public void applySchema(OSchemaHelper helper){
  super.applySchema(helper);
  helper.oProperty("String_Node_Str",OType.STRING,10).oProperty("String_Node_Str",OType.BINARY,20).oProperty("String_Node_Str",OType.LINK,30);
}
Program: 117387
Project: 117387
Buggy source:
@Override public void applyRelationships(OSchemaHelper helper){
  super.applyRelationships(helper);
  helper.setupRelationship(OCLASS_NAME,"String_Node_Str",ExecutionEntityHandler.OCLASS_NAME,"String_Node_Str");
  helper.setupRelationship(OCLASS_NAME,"String_Node_Str",ExecutionEntityHandler.OCLASS_NAME);
  helper.setupRelationship(OCLASS_NAME,"String_Node_Str",ProcessDefinitionEntityHandler.OCLASS_NAME,"String_Node_Str");
  helper.setupRelationship(OCLASS_NAME,"String_Node_Str",CaseDefinitionEntityHandler.OCLASS_NAME,"String_Node_Str");
  helper.setupRelationship(OCLASS_NAME,"String_Node_Str",CaseExecutionEntityHandler.OCLASS_NAME,"String_Node_Str");
  helper.setupRelationship(OCLASS_NAME,"String_Node_Str",TaskEntityHandler.OCLASS_NAME,"String_Node_Str");
  helper.setupRelationship(OCLASS_NAME,"String_Node_Str",ByteArrayEntityHandler.OCLASS_NAME,"String_Node_Str");
}

Fixed version (ground truth):
@Override public void applyRelationships(OSchemaHelper helper){
  super.applyRelationships(helper);
  helper.setupRelationship(OCLASS_NAME,"String_Node_Str",ExecutionEntityHandler.OCLASS_NAME,"String_Node_Str");
  helper.setupRelationship(OCLASS_NAME,"String_Node_Str",ExecutionEntityHandler.OCLASS_NAME);
  helper.setupRelationship(OCLASS_NAME,"String_Node_Str",ProcessDefinitionEntityHandler.OCLASS_NAME,"String_Node_Str");
  helper.setupRelationship(OCLASS_NAME,"String_Node_Str",CaseDefinitionEntityHandler.OCLASS_NAME,"String_Node_Str");
  helper.setupRelationship(OCLASS_NAME,"String_Node_Str",CaseExecutionEntityHandler.OCLASS_NAME,"String_Node_Str");
  helper.setupRelationship(OCLASS_NAME,"String_Node_Str",TaskEntityHandler.OCLASS_NAME,"String_Node_Str");
  helper.setupRelationship(OCLASS_NAME,"String_Node_Str",ByteArrayEntityHandler.OCLASS_NAME);
}
Program: 117388
Project: 117388
Buggy source:
@Override public void applyRelationships(OSchemaHelper helper){
  super.applyRelationships(helper);
  helper.setupRelationship(ByteArrayEntityHandler.OCLASS_NAME,"String_Node_Str",DeploymentEntityHandler.OCLASS_NAME);
}

Fixed version (ground truth):
@Override public void applyRelationships(OSchemaHelper helper){
  super.applyRelationships(helper);
  helper.setupRelationship(OCLASS_NAME,"String_Node_Str",DeploymentEntityHandler.OCLASS_NAME);
  helper.setupRelationship(OCLASS_NAME,"String_Node_Str",HistoricVariableInstanceEntityHandler.OCLASS_NAME,"String_Node_Str");
}
Program: 117389
Project: 117389
Buggy source:
@Override public void applySchema(OSchemaHelper helper){
  super.applySchema(helper);
  helper.oProperty("String_Node_Str",OType.STRING,10).oProperty("String_Node_Str",OType.BINARY,20).oProperty("String_Node_Str",OType.LINK,30);
}

Fixed version (ground truth):
@Override public void applySchema(OSchemaHelper helper){
  super.applySchema(helper);
  helper.oProperty("String_Node_Str",OType.STRING,10).oProperty("String_Node_Str",OType.BINARY,20).oProperty("String_Node_Str",OType.LINK,30).oProperty("String_Node_Str",OType.LINKLIST,40).assignVisualization("String_Node_Str");
}