<commit_before>class AppDelegate

  attr_accessor :view_controller
  def application(application, didFinishLaunchingWithOptions:launchOptions)
    @window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds)

    form = Formotion::Form.new({
      sections: [{
        title: "Register",
        rows: [{
          title: "Photo",
          key: :photo,
          type: :image
        },{
          title: "Picker",
          key: :pick,
          type: :picker,
          items: ["Ruby", "Motion", "Rocks"],
          value: "Motion"
        },{
          title: "Email",
          key: :email,
          placeholder: "<EMAIL>",
          type: :email,
          auto_correction: :no,
          auto_capitalization: :none
        }, {
          title: "Password",
          key: :password,
          placeholder: "required",
          type: :string,
          secure: true
        }, {
          title: "Password",
          subtitle: "Confirmation",
          key: :confirm,
          placeholder: "required",
          type: :string,
          secure: true
        }, {
          title: "Switch",
          key: :switch,
          type: :switch,
        }, {
          title: "Bio",
          key: :bio,
          type: :text,
          placeholder: "Enter your Bio here...",
          rowHeight: 100
        }, {
          title: "Date Full",
          value: 326937600,
          key: :date_full,
          type: :date,
          format: :full
        }, {
          title: "Date Short",
          placeholder: "03/26/92",
          key: :date_short,
          type: :date,
          format: :short
        }, {
          title: "Account type",
          type: :subform,
          subform: {
            title: "Account Type",
            sections: [{
              key: :account_type,
              select_one: true,
              rows: [{
                title: "Free",
                key: :free,
                type: :check,
              }, {
                title: "Basic",
                value: true,
                key: :basic,
                type: :check,
              }, {
                title: "Pro",
                key: :pro,
                type: :check,
              }]
            }, {
              rows: [{
                title: 'Back',
                type: :back
              }]
            }]
          }
        }]
      }, {
        rows: [{
          title: "Sign Up",
          type: :submit,
        }]
      }]
    })

    @view_controller = Formotion::FormController.alloc.initWithForm(form)
    @view_controller.form.on_submit do |form|
        p @view_controller.form.render
      end

    @window.rootViewController = @view_controller
    @window.makeKeyAndVisible
    true
  end
end
<commit_msg>F O R M C E P T I O N<commit_after>class AppDelegate

  attr_accessor :view_controller
  def application(application, didFinishLaunchingWithOptions:launchOptions)
    @window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds)

    form = Formotion::Form.new({
      sections: [{
        title: "Register",
        rows: [{
          title: "Photo",
          key: :photo,
          type: :image
        },{
          title: "Picker",
          key: :pick,
          type: :picker,
          items: ["Ruby", "Motion", "Rocks"],
          value: "Motion"
        },{
          title: "Email",
          key: :email,
          placeholder: "<EMAIL>",
          type: :email,
          auto_correction: :no,
          auto_capitalization: :none
        }, {
          title: "Password",
          key: :password,
          placeholder: "required",
          type: :string,
          secure: true
        }, {
          title: "Password",
          subtitle: "Confirmation",
          key: :confirm,
          placeholder: "required",
          type: :string,
          secure: true
        }, {
          title: "Switch",
          key: :switch,
          type: :switch,
        }, {
          title: "Bio",
          key: :bio,
          type: :text,
          placeholder: "Enter your Bio here...",
          rowHeight: 100
        }, {
          title: "Date Full",
          value: 326937600,
          key: :date_full,
          type: :date,
          format: :full
        }, {
          title: "Date Short",
          placeholder: "03/26/92",
          key: :date_short,
          type: :date,
          format: :short
        }, {
          title: "Account type",
          type: :subform,
          subform: {
            title: "Account Type",
            sections: [{
              key: :account_type,
              select_one: true,
              rows: [{
                title: "Free",
                key: :free,
                type: :check,
              }, {
                title: "Basic",
                value: true,
                key: :basic,
                type: :check,
              }, {
                title: "Pro",
                key: :pro,
                type: :check,
              }]
            }, {
              rows: [{
                title: "Account type",
                type: :subform,
                subform: {
                  title: "Account Type",
                  sections: [{
                    key: :account_type,
                    select_one: true,
                    rows: [{
                      title: "Free",
                      key: :free,
                      type: :check,
                    }, {
                      title: "Basic",
                      value: true,
                      key: :basic,
                      type: :check,
                    }, {
                      title: "Pro",
                      key: :pro,
                      type: :check,
                    }]
                  }, {
                    rows: [{
                      title: 'Back',
                      type: :back
                    }]
                  }]
                }
              }]
            }, {
              rows: [{
                title: 'Back',
                type: :back
              }]
            }]
          }
        }]
      }, {
        rows: [{
          title: "Sign Up",
          type: :submit,
        }]
      }]
    })

    @view_controller = Formotion::FormController.alloc.initWithForm(form)
    @view_controller.form.on_submit do |form|
        p @view_controller.form.render
      end

    @window.rootViewController = @view_controller
    @window.makeKeyAndVisible
    true
  end
end

{'fraction_non_alphanumeric': 0.11674418604651163, 'fraction_numerical': 0.005581395348837209, 'mean_word_length': 1.0260678391959799, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '613875', 'n_tokens_mistral': 1777, 'n_tokens_neox': 1654, 'n_words': 387}