<commit_before>class MainActivity < Android::App::Activity
  
  
  
  
  def onCreate(savedInstanceState)
    super
    
    layoutParams = Android::Widget::LinearLayout::LayoutParams.new(800, 150)
    #layoutParams.gravity = Android::View::Gravity::CENTER
    
    seekBar = Android::Widget::SeekBar.new(self)
    seekBar.Max = 100
    seekBar.Progress = 50 
    seekBar.LayoutParams = layoutParams
    #seekBar.MinimumHeight = 150
    
    @textView = Android::Widget::TextView.new(self)
    @textView.Text = "Initial text"
                                                   
    
    seekBar.OnSeekBarChangeListener = self

        
    linearLayout = Android::Widget::LinearLayout.new(self)
    
    linearLayout.addView(@textView)
    linearLayout.addView(seekBar)
    
    linearLayout.setPadding(40,40,0,40)
    self.contentView = linearLayout
  end
  
  
  def onProgressChanged(seekBar, progress, fromUser)
     @textView.Text = progress.to_s
  end

  def onStartTrackingTouch(seekBar)

  end

  def onStopTrackingTouch(seekBar)

  end
  
  
  
end


<commit_msg>Cleanup of the UI so that it looks better<commit_after>class MainActivity < Android::App::Activity
  
  
  
  
  def onCreate(savedInstanceState)
    super
    
    layoutParams = Android::Widget::LinearLayout::LayoutParams.new(Android::View::ViewGroup::LayoutParams::MATCH_PARENT, Android::View::ViewGroup::LayoutParams::WRAP_CONTENT )
    
    
    seekBar = Android::Widget::SeekBar.new(self)
    seekBar.Max = 100
    seekBar.Progress = 50 
    seekBar.LayoutParams = layoutParams
    #seekBar.MinimumHeight = 150
    
    @textView = Android::Widget::TextView.new(self)
    @textView.Text = "Initial text"
                                                   
    
    seekBar.OnSeekBarChangeListener = self

        
    linearLayout = Android::Widget::LinearLayout.new(self)
    
    linearLayout.addView(@textView)
    linearLayout.addView(seekBar)
    linearLayout.Orientation = Android::Widget::LinearLayout::VERTICAL
    
    
    linearLayout.setPadding(40,40,0,40)
    self.contentView = linearLayout
  end
  
  
  def onProgressChanged(seekBar, progress, fromUser)
     @textView.Text = "Selected Value: "  + progress.to_s
  end

  def onStartTrackingTouch(seekBar)

  end

  def onStopTrackingTouch(seekBar)

  end
  
  
  
end



{'fraction_non_alphanumeric': 0.09287257019438445, 'fraction_numerical': 0.015550755939524838, 'mean_word_length': 2.8029556650246303, 'pattern_counts': {'":': 0, '<': 5, '<?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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4884746', 'n_tokens_mistral': 748, 'n_tokens_neox': 686, 'n_words': 110}