<commit_before>generator:
  class:              sfPropelAdminGenerator
  param:
    model_class:      SchemaPropertyElement
    theme:            default

    fields:
      id:
         name:        ID
         type:        plain
      created_at:
        name:         Date Created
        help:         This is the date the Property was created
        type:         plain
        class:        date
      updated_at:
        name:         Last Updated
        help:         This is the date the Property was last updated
        type:         plain
        class:        date
      created_user:
        name:         Created by
        help:         This is the user who created this Property
        type:         plain
      updated_user:
        name:         Last Updated by
        help:         This is the user who updated the Property last
        type:         plain

    list:
      title:         Schema Property Statement List
      fields:
        format_language: { name: Language }
        updated_user: { name: Updated by }
      display:        [=profile_property, _object, format_language, status, updated_at, updated_user]
      displayfilter:  false
#      sort:           profile_property
      object_actions:
        _edit:        { credentials: [[administrator, schemamaintainer, schemaadmin]] }
        _delete:      { credentials: [[administrator, schemamaintainer, schemaadmin]] }
      actions:
        _create:      {query_string: {schema_property_id: schema_property_id}, name: Add Statement, credentials: [[administrator, schemamaintainer, schemaadmin]] }
      filters:        [schema_property_id, profile_property_id, updated_at, object]
      # urlfilter form is [field to filter on]: [value passed from routing.yml]
      # multiple filters can be set but they're currently mutually exclusive (any of the list can be used but only one per url)
      urlfilters:
        schema_property_id: schema_property_id

    show:
      fields:
        id:               { credentials: [administrator] }
        profile_property: { name: Profile Property }
        show_object:      { name: Value }
        is_generated:     { name: Generated }
      display:
        "-Metadata":   { fields: [id, created_at, created_user, updated_at, updated_user] }
        "Detail":     [profile_property, object, format_language, status, is_generated]
#        "-Other Properties": [_listproperties]
      actions:
        _list:        { query_string: {schema_property_id: schema_property_id} }
        _edit:        { credentials: [[administrator, schemamaintainer, schemaadmin]] }
        _create:      { query_string: {schema_property_id: schema_property_id}, name: Add Statement, credentials: [[administrator, schemamaintainer, schemaadmin]] }

    edit:
      title:
        mode:
          edit:        Editing %%profile_property%%
          create:      Creating new statement
#      hide: [profile_property_id]
#      hide:                 [schema_id, schema_property_id, is_schema_property]
      fields:
        id:                         { credentials: [administrator], mode: edit }
        object:                     { name: Value }
        profile_property_id:        { name: Profile property, mode: create, params: peer_method=getProfilePropertiesForCreate include_blank=false onchange=swapOptions() text_method=getUri}
        profile_property:           { name: Profile property, type: plain, mode: edit }
        related_schema_property_id:
          params:                   related_class=SchemaProperty peer_method=getPropertiesByCurrentSchemaID include_blank=true
          condition:                "$sf_flash->get('showList') || 'create' == $mode"
        related_schema_class_id:
          type:                     select_tag
          params:                   related_class=SchemaProperty peer_method=getClassesByCurrentSchemaID include_blank=true
          condition:                "$sf_flash->get('showList') || 'create' == $mode"
        language:                   { type: select_language_tag }
      display:
        "-Metadata":        { mode: edit, fields: [id, created_at, created_user, updated_at, updated_user] }
        "Detail":            [profile_property_id, profile_property, related_schema_property_id, related_schema_class_id, object, _language, status_id]
#        "Other Properties":  [_listproperties]
      actions:
        # You can add a string literal to the query string like this: foo: "'bar'" which will add foo=bar
        _list:         { query_string: {schema_property_id: schema_property_id} }
        _save:         { credentials: [[administrator, schemamaintainer, schemaadmin, schema_property_elementadmin]] }
        _delete:       { credentials: [[administrator, schemaadmin]] }
        _create:       { query_string: {schema_property_id: schema_property_id}, name: Add Statement, credentials: [[administrator, schemamaintainer, schemaadmin, schema_property_elementadmin]], mode: edit }
        _save_and_add: { query_string: {schema_property_id: schema_property_id}, credentials: [[administrator, schemamaintainer, schemaadmin, schema_property_elementadmin]] }
        _cancel:       { credentials: [[administrator, schemamaintainer, schemaadmin, schema_property_elementadmin]], query_string: {schema_property_id: schema_property_id} }
<commit_msg>check profile for 'hasLanguage' before displaying edit form for elements. Closes #5<commit_after>generator:
  class:              sfPropelAdminGenerator
  param:
    model_class:      SchemaPropertyElement
    theme:            default

    fields:
      id:
         name:        ID
         type:        plain
      created_at:
        name:         Date Created
        help:         This is the date the Property was created
        type:         plain
        class:        date
      updated_at:
        name:         Last Updated
        help:         This is the date the Property was last updated
        type:         plain
        class:        date
      created_user:
        name:         Created by
        help:         This is the user who created this Property
        type:         plain
      updated_user:
        name:         Last Updated by
        help:         This is the user who updated the Property last
        type:         plain

    list:
      title:         Schema Property Statement List
      fields:
        format_language: { name: Language }
        updated_user: { name: Updated by }
      display:        [=profile_property, _object, format_language, status, updated_at, updated_user]
      displayfilter:  false
#      sort:           profile_property
      object_actions:
        _edit:        { credentials: [[administrator, schemamaintainer, schemaadmin]] }
        _delete:      { credentials: [[administrator, schemamaintainer, schemaadmin]] }
      actions:
        _create:      {query_string: {schema_property_id: schema_property_id}, name: Add Statement, credentials: [[administrator, schemamaintainer, schemaadmin]] }
      filters:        [schema_property_id, profile_property_id, updated_at, object]
      # urlfilter form is [field to filter on]: [value passed from routing.yml]
      # multiple filters can be set but they're currently mutually exclusive (any of the list can be used but only one per url)
      urlfilters:
        schema_property_id: schema_property_id

    show:
      fields:
        id:               { credentials: [administrator] }
        profile_property: { name: Profile Property }
        show_object:      { name: Value }
        is_generated:     { name: Generated }
      display:
        "-Metadata":   { fields: [id, created_at, created_user, updated_at, updated_user] }
        "Detail":     [profile_property, object, format_language, status, is_generated]
#        "-Other Properties": [_listproperties]
      actions:
        _list:        { query_string: {schema_property_id: schema_property_id} }
        _edit:        { credentials: [[administrator, schemamaintainer, schemaadmin]] }
        _create:      { query_string: {schema_property_id: schema_property_id}, name: Add Statement, credentials: [[administrator, schemamaintainer, schemaadmin]] }

    edit:
      title:
        mode:
          edit:        Editing %%profile_property%%
          create:      Creating new statement
#      hide: [profile_property_id]
#      hide:                 [schema_id, schema_property_id, is_schema_property]
      fields:
        id:                         { credentials: [administrator], mode: edit }
        object:                     { name: Value }
        profile_property_id:        { name: Profile property, mode: create, params: peer_method=getProfilePropertiesForCreate include_blank=false onchange=swapOptions() text_method=getUri}
        profile_property:           { name: Profile property, type: plain, mode: edit }
        related_schema_property_id:
          params:                   related_class=SchemaProperty peer_method=getPropertiesByCurrentSchemaID include_blank=true
          condition:                "$sf_flash->get('showList') || 'create' == $mode"
        related_schema_class_id:
          type:                     select_tag
          params:                   related_class=SchemaProperty peer_method=getClassesByCurrentSchemaID include_blank=true
          condition:                "$sf_flash->get('showList') || 'create' == $mode"
        language:                   { type: select_language_tag }
          condition:                "$schema_property_element->getProfileProperty()->getHasLanguage()"

      display:
        "-Metadata":        { mode: edit, fields: [id, created_at, created_user, updated_at, updated_user] }
        "Detail":            [profile_property_id, profile_property, related_schema_property_id, related_schema_class_id, object, _language, status_id]
#        "Other Properties":  [_listproperties]
      actions:
        # You can add a string literal to the query string like this: foo: "'bar'" which will add foo=bar
        _list:         { query_string: {schema_property_id: schema_property_id} }
        _save:         { credentials: [[administrator, schemamaintainer, schemaadmin, schema_property_elementadmin]] }
        _delete:       { credentials: [[administrator, schemaadmin]] }
        _create:       { query_string: {schema_property_id: schema_property_id}, name: Add Statement, credentials: [[administrator, schemamaintainer, schemaadmin, schema_property_elementadmin]], mode: edit }
        _save_and_add: { query_string: {schema_property_id: schema_property_id}, credentials: [[administrator, schemamaintainer, schemaadmin, schema_property_elementadmin]] }
        _cancel:       { credentials: [[administrator, schemamaintainer, schemaadmin, schema_property_elementadmin]], query_string: {schema_property_id: schema_property_id} }

{'fraction_non_alphanumeric': 0.07896678966789668, 'fraction_numerical': 9.225092250922509e-05, 'mean_word_length': 2.367816091954023, 'pattern_counts': {'":': 12, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2556336', 'n_tokens_mistral': 2790, 'n_tokens_neox': 2730, 'n_words': 765}