<commit_before><polymer-element name='oj-annotation-list' attributes="annotations scale">
  <template>

    <template repeat="{{annotation in annotations}}">
      <oj-annotation annotation={{annotation}}></oj-annotation>
    </template>

  </template>
  <script>
    Polymer({})
  </script>
</polymer-element><commit_msg>updating the annotation list component with some of the details we need to display the annotations<commit_after><polymer-element name='oj-annotation-list' attributes="annotations scale pageHeight pageOffset showNewAnnotation newAnnotationLocation">
  <template>
    <div layout vertical flex>
      <template repeat="{{annotation in annotations}}">
        <oj-annotation style="top:{{annotation | locationForAnnotation}}px"  top="{{annotation | locationForAnnotation}}" color="{{annotation | colorForAnnotation}}" annotation={{annotation}} ></oj-annotation>
      </template>

      <template if={{showNewAnnotation}}>
        <oj-new-annotation style="top:{{newAnnotationLocation | locationForAnnotation}}px" location={{newAnnotationLocation}}> </oj-new-annotation>
      </template>
    </div>

    <style>
      :host{
        position: relative;
        box-model: border-box;
        padding-top: 20px;
      }
    </style>


  </template>
  <script>
    Polymer({
      scale: 2,
      locationForAnnotation: function(annotation){
        console.log("ANNOTATION")
        console.log(annotation)
        page_no = annotation.location.page
        y       = annotation.location.y //* this.scale

        return (y + (this.pageHeight + this.pageOffset)*page_no)
      },
      colorForAnnotation: function(annotation){
        roles = {reviewer: <PASSWORD>", author: "#<PASSWORD>", contributor: "#<PASSWORD>"}
        return roles[annotation.user.role]
      }
    })
  </script>
</polymer-element>
{'fraction_non_alphanumeric': 0.14074479737130338, 'fraction_numerical': 0.0016429353778751369, 'mean_word_length': 3.5561097256857854, 'pattern_counts': {'":': 0, '<': 34, '<?xml version=': 0, '>': 34, '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': '404575', 'n_tokens_mistral': 501, 'n_tokens_neox': 483, 'n_words': 107}