<commit_before>script src="/assets/app.js"
script src="/claims/javascript/typeahead.bundle.min.js"


h1 Claim your Pod

p You can use the form below to claim all the Pods you have already published to be registered as being ‘owned’ by you.

- unless @errors.blank?
  .errors
    ul
      - for message in @errors
        li = message

form.form-horizontal role="form" action="/claims" method="POST"
  .form-group
    label.col-sm-3.control-label for="name" Owner name:
    .col-sm-6
      input.form-control.col-md-4 id="name" type="textfield" name="owner[name]" value="#{@owner.name}" autofocus="autofocus" require="required"

  .form-group
    label.col-sm-3.control-label for="email" Owner Email:
    .col-sm-6
      input.form-control id="email" type="email" name="owner[email]" value="#{@owner.email}" require="required" placeholder=""

  .form-group
    label.col-sm-3.control-label for="pod" Claim Pod:
    .col-sm-6
      input.form-control.col-md-4 id="pod" type="textfield" name="pods[]" require="required"

  .form-group#selected-pods
    .col-sm-3
    .col-sm-6
      - for pod in @pods
        input.col-md-4 type="text" readonly="readonly" name="pods[]" value="#{pod.name}"

  .form-group
    .col-sm-offset-3.col-sm-4
      input.btn.btn-default type="submit" name="button" id="button" value="SEND"


javascript:
  var cocoapods = function(query, cb) {
    if(query){
      $.getJSON("http://search.cocoapods.org/api/v1/pods.flat.hash.json?query=name:" + query, cb);
    }
  };

  $('#pod').typeahead(null, {
    displayKey: 'id',
    minLength: 2,
    source: cocoapods
  });

  $("#pod").on("typeahead:selected", function(obj, suggestion, name) {
      $("#selected-pods .col-sm-6").append("<input class='col-md-4' type='text' readonly='readonly' name='pods[]' value='" + suggestion["id"] + "'>")
      $("#pod").val("")
  });

  $('#pod').keypress(function (e) {
    if (e.which == 13) {
        $("")<commit_msg>Add information about the pod trunk commands to reduce incorrect claims<commit_after>script src="/assets/app.js"
script src="/claims/javascript/typeahead.bundle.min.js"

h1 Claim your Pod

p You can use the form below to claim all the Pods you have already published to be registered as being ‘owned’ by you.

- unless @errors.blank?
  .errors
    ul
      - for message in @errors
        li = message

form.form-horizontal role="form" action="/claims" method="POST"
  .form-group
    label.col-sm-3.control-label for="name" Owner name:
    .col-sm-6
      input.form-control.col-md-4 id="name" type="textfield" name="owner[name]" value="#{@owner.name}" autofocus="autofocus" require="required"

  .form-group
    label.col-sm-3.control-label for="email" Owner Email:
    .col-sm-6
      input.form-control id="email" type="email" name="owner[email]" value="#{@owner.email}" require="required" placeholder=""

  .form-group
    label.col-sm-3.control-label for="pod" Claim Pod:
    .col-sm-6
      input.form-control.col-md-4 id="pod" type="textfield" name="pods[]" require="required"

  .form-group#selected-pods
    .col-sm-3
    .col-sm-6
      - for pod in @pods
        input.col-md-4 type="text" readonly="readonly" name="pods[]" value="#{pod.name}"

  .form-group
    .col-sm-offset-3.col-sm-4
      input.btn.btn-default type="submit" name="button" id="button" value="SEND"

p Note you can use <code>pod trunk info [pod]</code> to get information on a pod and <code>pod trunk me</code> can be used to verify your local account.

javascript:
  var cocoapods = function(query, cb) {
    if(query){
      $.getJSON("http://search.cocoapods.org/api/v1/pods.flat.hash.json?query=name:" + query, cb);
    }
  };

  $('#pod').typeahead(null, {
    displayKey: 'id',
    minLength: 2,
    source: cocoapods
  });

  $("#pod").on("typeahead:selected", function(obj, suggestion, name) {
      $("#selected-pods .col-sm-6").append("<input class='col-md-4' type='text' readonly='readonly' name='pods[]' value='" + suggestion["id"] + "'>")
      $("#pod").val("")
  });

  $('#pod').keypress(function (e) {
    if (e.which == 13) {
        $("")
{'fraction_non_alphanumeric': 0.18393909626719057, 'fraction_numerical': 0.009823182711198428, 'mean_word_length': 3.360813704496788, 'pattern_counts': {'":': 0, '<': 9, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2327331', 'n_tokens_mistral': 1447, 'n_tokens_neox': 1404, 'n_words': 309}