<commit_before>extends ../layout

block content
  .page-header
    h2
      i.fa.fa-instagram
      | Instagram API
  .btn-group.btn-group-justified
    a.btn.btn-primary(href='http://instagram.com/developer/', target='_blank')
      i.fa.fa-check-square-o
      | Overview
    a.btn.btn-primary(href='https://github.com/teleportd/instagram-node', target='_blank')
      i.fa.fa-laptop
      | Node-Instagram Docs
    a.btn.btn-primary(href='http://instagram.com/developer/endpoints/', target='_blank')
      i.fa.fa-code-fork
      | API Endpoints

  br
  p.lead Username Search for
    strong  lisa_veronica
  table.table.table-hover.table-bordered
    thead
      tr
        th Picture
        th Username
        th Full Name
        th Bio
    tbody
      for user in usernames
        tr
          td
            img(src='#{user.profile_picture}', width='75', height='75')
          td= user.username
          td= user.full_name
          td= user.bio

  hr
  p.lead User Search for ID
    strong  175948269


  img.thumbnail(src='#{userById.profile_picture}', width='75', height='75')
  p
    a(href='http://instagram.com/#{userById.username}')
      strong #{userById.full_name}
    br
    | #{userById.bio}

  hr
  p.lead
    strong Popular Images
    |  on Instagram
  .row
    for image in popularImages
      .col-xs-3
        a.thumbnail(href='#{image.link}')
          img(src='#{image.images.standard_resolution.url}', height='320px')
        div.facebook-caption
          i.fa.fa-heart
          |  #{image.likes.count}
<commit_msg>Added self_recent_media example to instagram api<commit_after>extends ../layout

block content
  .page-header
    h2
      i.fa.fa-instagram
      | Instagram API
  .btn-group.btn-group-justified
    a.btn.btn-primary(href='http://instagram.com/developer/', target='_blank')
      i.fa.fa-check-square-o
      | Overview
    a.btn.btn-primary(href='https://github.com/teleportd/instagram-node', target='_blank')
      i.fa.fa-laptop
      | Node-Instagram Docs
    a.btn.btn-primary(href='http://instagram.com/developer/endpoints/', target='_blank')
      i.fa.fa-code-fork
      | API Endpoints

  br
  p.lead Username Search for
    strong  lisa_veronica
  table.table.table-hover.table-bordered
    thead
      tr
        th Picture
        th Username
        th Full Name
        th Bio
    tbody
      for user in usernames
        tr
          td
            img(src='#{user.profile_picture}', width='75', height='75')
          td= user.username
          td= user.full_name
          td= user.bio

  hr
  p.lead User Search for ID
    strong  175948269


  img.thumbnail(src='#{userById.profile_picture}', width='75', height='75')
  p
    a(href='http://instagram.com/#{userById.username}')
      strong #{userById.full_name}
    br
    | #{userById.bio}

  hr
  p.lead
    strong Popular Images
    |  on Instagram
  .row
    for image in popularImages
      .col-xs-3
        a.thumbnail(href='#{image.link}')
          img(src='#{image.images.standard_resolution.url}', height='320px')
        div.facebook-caption
          i.fa.fa-heart
          |  #{image.likes.count}


  hr
  p.lead
    | My Recent
    strong  Media
  .row
    for image in myRecentMedia
      .col-xs-3
        a.thumbnail(href='#{image.link}')
          img(src='#{image.images.standard_resolution.url}', height='320px')
        div.facebook-caption
          i.fa.fa-heart
          | #{image.likes.count}
{'fraction_non_alphanumeric': 0.12953819343595702, 'fraction_numerical': 0.013941330235259947, 'mean_word_length': 2.13947128532361, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '5770786', 'n_tokens_mistral': 1198, 'n_tokens_neox': 1152, 'n_words': 213}