<commit_before>#TODO: GJ: add support for acrolling, reordering and deleting

root.PhotoPicker.PhotoGrid = class PhotoGrid
  constructor:(options = {}) ->
    @settings = root._.extend({
      cellWidth: 140
      cellHeight: 100
      cellMargin: 20
      layout: 'horizontal'
      width: '100%'
    }, options)
    @controls = []
    @view = Ti.UI.createView @settings
  
  addPhoto: (url) ->
    cell = Ti.UI.createImageView {
      width: @settings.cellWidth<commit_msg>updated photoGrid to scroll<commit_after>#TODO: GJ: add support for acrolling, reordering and deleting

root.PhotoPicker.PhotoGrid = class PhotoGrid
  constructor:(options = {}) ->
    @settings = root._.extend({
      cellWidth: 140
      cellHeight: 100
      cellMargin: 20
      layout: 'horizontal'
      width: '100%'
      height: Ti.UI.FILL
      contentWidth: 320
    }, options)
    @controls = []
    @view = Ti.UI.createScrollView({
      contentWidth: @settings.contentWidth
      contentHeight: "auto"
      showVerticalScrollIndicator: true
      showHorizontalScrollIndicator: false
      layout: @settings.layout
      top: @settings.top
      width: @settings.width
      height: @settings.height
    })
  
  addPhoto: (url) ->
    cell = Ti.UI.createImageView {
      width: @settings.cellWidth
{'fraction_non_alphanumeric': 0.1110248447204969, 'fraction_numerical': 0.019409937888198756, 'mean_word_length': 2.8023598820059, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '348488', 'n_tokens_mistral': 409, 'n_tokens_neox': 383, 'n_words': 93}