<commit_before>'use strict';

var Resource = require('../resource');

module.exports = Resource.extend({
  list: Resource.method({
    method: 'GET',
    path: '/datasource'
  }),

  single: Resource.method({
    method: 'GET',
    path: '/datasource/{datasourceId}',
    urlParams: ['datasourceId']
  }),

  add: Resource.method({
    method: 'POST',
    path: '/datasource'
  }),

  transactions: Resource.method({
    method: 'GET',
    path: '/datasource/{datasourceId}/transaction',
    urlParams: ['datasourceId']
  }),

  products: Resource.method({
    method: 'GET',
    path: '/datasource/{datasourceId}/product',
    urlParams: ['datasourceId']
  }),

  suggestions: Resource.method({
    method: 'GET',
    path: '/datasource/{datasourceId}/suggestion?for={forType}&for_id={forId}&limit={limit}',
    urlParams: ['datasourceId', 'forType', 'forId', 'limit']
  }),

  addTransaction: Resource.method({
    method: 'POST',
    path: '/datasource/{datasourceId}/transaction',
    urlParams: ['datasourceId']
  }),

  addProduct: Resource.method({
    method: 'POST',
    path: '/datasource/{datasourceId}/product',
    urlParams: ['datasourceId']
  }),

  deleteProduct: Resource.method({
    method: 'DELETE',
    path: '/datasource/{datasourceId}/product/{productId}',
    urlParams: ['datasourceId', 'productId']
  })
});<commit_msg>Added getProduct method to datasource object<commit_after>'use strict';

var Resource = require('../resource');

module.exports = Resource.extend({
  list: Resource.method({
    method: 'GET',
    path: '/datasource'
  }),

  single: Resource.method({
    method: 'GET',
    path: '/datasource/{datasourceId}',
    urlParams: ['datasourceId']
  }),

  add: Resource.method({
    method: 'POST',
    path: '/datasource'
  }),

  transactions: Resource.method({
    method: 'GET',
    path: '/datasource/{datasourceId}/transaction',
    urlParams: ['datasourceId']
  }),

  products: Resource.method({
    method: 'GET',
    path: '/datasource/{datasourceId}/product',
    urlParams: ['datasourceId']
  }),

  suggestions: Resource.method({
    method: 'GET',
    path: '/datasource/{datasourceId}/suggestion?for={forType}&for_id={forId}&limit={limit}',
    urlParams: ['datasourceId', 'forType', 'forId', 'limit']
  }),

  addTransaction: Resource.method({
    method: 'POST',
    path: '/datasource/{datasourceId}/transaction',
    urlParams: ['datasourceId']
  }),

  addProduct: Resource.method({
    method: 'POST',
    path: '/datasource/{datasourceId}/product',
    urlParams: ['datasourceId']
  }),

  deleteProduct: Resource.method({
    method: 'DELETE',
    path: '/datasource/{datasourceId}/product/{productId}',
    urlParams: ['datasourceId', 'productId']
  }),

  getProduct: Resource.method({
    method: 'GET',
    path: '/datasource/{datasourceId}/product/{productId}',
    urlParams: ['datasourceId', 'productId']
  })
});
{'fraction_non_alphanumeric': 0.1861997226074896, 'fraction_numerical': 0.0, 'mean_word_length': 3.940068493150685, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2238260', 'n_tokens_mistral': 957, 'n_tokens_neox': 898, 'n_words': 172}