<commit_before><html>
<head>
  <link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet">
  <%= stylesheet_link_tag "/css/annotorious.css" %>
  <style>
    body {
      color: #242424;
      font-size: 14px;
      font-family: 'Helvetica Neue', Arial, sans-serif;
    }
    .picture {
      border: 3px;
      padding: 10px 10px 0px 10px;
    }
    a {
      text-decoration: none;
      color: #242424;
    }
    a:hover {
      text-decoration: underline;
    }
  </style>
</head>
<body onload="iframeResizePipe()">
  <iframe id="helpframe" src='' height='0' width='0' frameborder='0'></iframe>
  <div class="span6 item">
    <div class="picture">
      <%= image_tag(@photo.file.url(:full), width: '100%', id: 'photo', class: 'photo annotatable') %>

      <%= render 'shared/photo_footer', photo: @photo, external_link: true %>
    </div>  
  </div>

  <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
  <%= javascript_include_tag "/javascripts/jquery.imagesloaded.js" %>
  <%= render 'shared/annotorious', photo: @photo %>

  <script>
  // http://stackoverflow.com/questions/153152/resizing-an-iframe-based-on-content
  function iframeResizePipe() {
     var height = document.body.scrollHeight;

     // Going to 'pipe' the data to the parent through the helpframe..
     var pipe = document.getElementById('helpframe');

     // Cachebuster a precaution here to stop browser caching interfering
     pipe.src = 'http://localhost:3000/helper.html?height='+height+'&cacheb='+Math.random();

  }
  </script>

</body>
</html><commit_msg>Fix hardcoded path. Closes #131<commit_after><html>
<head>
  <link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet">
  <%= stylesheet_link_tag "/css/annotorious.css" %>
  <style>
    body {
      color: #242424;
      font-size: 14px;
      font-family: 'Helvetica Neue', Arial, sans-serif;
    }
    .picture {
      border: 3px;
      padding: 10px 10px 0px 10px;
    }
    a {
      text-decoration: none;
      color: #242424;
    }
    a:hover {
      text-decoration: underline;
    }
  </style>
</head>
<body onload="iframeResizePipe()">
  <iframe id="helpframe" src='' height='0' width='0' frameborder='0'></iframe>
  <div class="span6 item">
    <div class="picture">
      <%= image_tag(@photo.file.url(:full), width: '100%', id: 'photo', class: 'photo annotatable') %>

      <%= render 'shared/photo_footer', photo: @photo, external_link: true %>
    </div>  
  </div>

  <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
  <%= javascript_include_tag "/javascripts/jquery.imagesloaded.js" %>
  <%= render 'shared/annotorious', photo: @photo %>

  <script>
  // http://stackoverflow.com/questions/153152/resizing-an-iframe-based-on-content
  function iframeResizePipe() {
     var height = document.body.scrollHeight;

     // Going to 'pipe' the data to the parent through the helpframe..
     var pipe = document.getElementById('helpframe');

     // Cachebuster a precaution here to stop browser caching interfering
     pipe.src = '//<%= ENV["DOMAIN_NAME"] %>/helper.html?height='+height+'&cacheb='+Math.random();

  }
  </script>

</body>
</html>
{'fraction_non_alphanumeric': 0.17446153846153847, 'fraction_numerical': 0.028, 'mean_word_length': 3.2664041994750654, 'pattern_counts': {'":': 0, '<': 52, '<?xml version=': 0, '>': 52, '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': '3846887', 'n_tokens_mistral': 1230, 'n_tokens_neox': 1108, 'n_words': 220}