<commit_before>package com.codeaffine.eclipse.swt.widget.scrollable;

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.ScrollBar;

import com.codeaffine.eclipse.swt.widget.scrollable.context.AdaptionContext;

class Visibility {

  private final AdaptionContext<?> context;
  private final ScrollBar scrollBar;

  private boolean visibility;

  Visibility( ScrollBar scrollBar, AdaptionContext<?> context ) {
    this.scrollBar = scrollBar;
    this.context = context;
  }

  boolean hasChanged() {
    return visibility != isScrollBarVisible();
  }

   void update() {
    visibility = isScrollBarVisible();<commit_msg>Minor code cleanup<commit_after>package com.codeaffine.eclipse.swt.widget.scrollable;

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.ScrollBar;

import com.codeaffine.eclipse.swt.widget.scrollable.context.AdaptionContext;

class Visibility {

  private final AdaptionContext<?> context;
  private final ScrollBar scrollBar;

  private boolean visibility;

  Visibility( ScrollBar scrollBar, AdaptionContext<?> context ) {
    this.scrollBar = scrollBar;
    this.context = context;
  }

  boolean hasChanged() {
    return visibility != isScrollBarVisible();
  }

  void update() {
    visibility = isScrollBarVisible();
{'fraction_non_alphanumeric': 0.09984152139461172, 'fraction_numerical': 0.0, 'mean_word_length': 4.638392857142857, 'pattern_counts': {'":': 0, '<': 7, '<?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': '6039217', 'n_tokens_mistral': 382, 'n_tokens_neox': 367, 'n_words': 79}