<commit_before>//
// BikeIndex
// https://bikeindex.org/documentation/api_v2
(function(hello){


function formatError(o){
  if(o && "meta" in o && "error_type" in o.meta){
    o.error = {
      code : o.meta.error_type,
      message : o.meta.error_message
    };
  }
}

function formatUser(o){
  if(o.id){
    o.thumbnail = o.image;
  }
  if(o.user){
    o.name = o.user.name;
  }
  return o;
}

function paging(res,headers,req){
  if(res.data&&res.data.length&&headers&&headers.Link){
    var next = headers.Link.match(/<(.*?)>;\s*rel=\"next\"/);
    if(next){
      res.paging = {
        next : next[1]
      };
    }
  }
}

hello.init({
  bikeindex : {
    name : 'BikeIndex',
    login: function(p){
      p.qs.display = '';
    },

    oauth : {
      version : 2,
      auth : 'https://bikeindex.org/oauth/authorize/',
      grant : 'https://api.bikeindex.org/oauth/access_token'
    },

    // Refresh the access_token once expired
    refresh : true,

    scope : {
      basic : 'read_bikes',
      email : 'read_user',
      // read_bikes : "View user's bikes user owned",
      // write_bikes : 'Edit and create bikes'
    },
    scope_delim : '+',

    base : 'https://bikeindex.org/api/v2/',

    // There aren't many routes that map to the hello.api so I included me/bikes
    // ... because, bikes
    get : {
      'me' : 'me',
      'me/bikes' : 'me/bikes'
    },

    post : {},

    del : {},<commit_msg>bikeindex make user data default<commit_after>//
// BikeIndex
// https://bikeindex.org/documentation/api_v2
(function(hello){


function formatError(o){
  if(o && "meta" in o && "error_type" in o.meta){
    o.error = {
      code : o.meta.error_type,
      message : o.meta.error_message
    };
  }
}

function formatUser(o){
  if(o.id){
    o.thumbnail = o.image;
  }
  if(o.user){
    hello.utils.extend( o, o.user );
    delete o.user;
  }
  if(o.image){
    o.thumbnail = o.image;
  }
  return o;
}

function paging(res,headers,req){
  if(res.data&&res.data.length&&headers&&headers.Link){
    var next = headers.Link.match(/<(.*?)>;\s*rel=\"next\"/);
    if(next){
      res.paging = {
        next : next[1]
      };
    }
  }
}

hello.init({
  bikeindex : {
    name : 'BikeIndex',
    login: function(p){
      p.qs.display = '';
    },

    oauth : {
      version : 2,
      auth : 'https://bikeindex.org/oauth/authorize/',
      grant : 'https://api.bikeindex.org/oauth/access_token'
    },

    // Refresh the access_token once expired
    refresh : true,

    scope : {
      basic : 'read_user,read_bikes',
      email : 'read_user',
      // read_bikes : "View user's bikes user owned",
      // write_bikes : 'Edit and create bikes'
    },
    scope_delim : '+',

    base : 'https://bikeindex.org/api/v2/',

    // There aren't many routes that map to the hello.api so I included me/bikes
    // ... because, bikes
    get : {
      'me' : 'me',
      'me/bikes' : 'me/bikes'
    },

    post : {},

    del : {},
{'fraction_non_alphanumeric': 0.17732656514382403, 'fraction_numerical': 0.0027072758037225042, 'mean_word_length': 2.141339001062699, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 8, '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': '7187515', 'n_tokens_mistral': 1129, 'n_tokens_neox': 1091, 'n_words': 210}