<commit_before>for {set i  0} {$i < [expr $argc - 1]} {incr i} {
   if {[lindex $argv $i] == "-A"} {
      set auto_path "$auto_path [lindex $argv [expr $i +1]]"
   }
}

package require vtk
vtkObject a
a GlobalWarningDisplayOff
a Delete


vtkPolyData emptyPD
vtkImageData emptyID
vtkStructuredGrid emptySG
vtkUnstructuredGrid emptyUG
vtkRectilinearGrid emptyRG

proc TestOne {cname} {

   $cname b 

   if {[b IsA "vtkAlgorithm"]} {
        catch {b Update}
	if {[catch {b SetInput emptyPD}] == 0} {
            catch {b Update}
        }
	if {[catch {b SetInput emptyID}] == 0} {
            catch {b Update}
        }
	if {[catch {b SetInput emptySG}] == 0} {
            catch {b Update}
        }
	if {[catch {b SetInput emptyUG}] == 0} {
            catch {b Update}
        }
	if {[catch {b SetInput emptyRG}] == 0} {
            catch {b Update}
        }
    }

   b Delete
}

set classExceptions {
   vtkCommand
   vtkIndent
   vtkTimeStamp
   vtkTkImageViewerWidget
   vtkTkImageWindowWidget
   vtkTkRenderWidget
   vtkImageDataToTkPhoto
   vtkJPEGReader<commit_msg>BUG: vtkGeoSource objects require a ShutDown call in between New and Delete if it is possible that a spawned thread may add a ref count to the object during the New call... The real fix here would be NOT to spawn threads from the vtkGeoSource constructor. Until that happens, this should prevent the TestEmptyInput test from timing out.<commit_after>for {set i  0} {$i < [expr $argc - 1]} {incr i} {
   if {[lindex $argv $i] == "-A"} {
      set auto_path "$auto_path [lindex $argv [expr $i +1]]"
   }
}

package require vtk
vtkObject a
a GlobalWarningDisplayOff
a Delete


vtkPolyData emptyPD
vtkImageData emptyID
vtkStructuredGrid emptySG
vtkUnstructuredGrid emptyUG
vtkRectilinearGrid emptyRG

proc TestOne {cname} {

   $cname b 

   if {[b IsA "vtkAlgorithm"]} {
        catch {b Update}
	if {[catch {b SetInput emptyPD}] == 0} {
            catch {b Update}
        }
	if {[catch {b SetInput emptyID}] == 0} {
            catch {b Update}
        }
	if {[catch {b SetInput emptySG}] == 0} {
            catch {b Update}
        }
	if {[catch {b SetInput emptyUG}] == 0} {
            catch {b Update}
        }
	if {[catch {b SetInput emptyRG}] == 0} {
            catch {b Update}
        }
    }

    # If thread creation moves away from the vtkGeoSource constructor, then
    # this ShutDown call will not be necessary...
    #
    if {[b IsA "vtkGeoSource"]} {
        catch {b ShutDown}
    }

    b Delete
}

set classExceptions {
   vtkCommand
   vtkIndent
   vtkTimeStamp
   vtkTkImageViewerWidget
   vtkTkImageWindowWidget
   vtkTkRenderWidget
   vtkImageDataToTkPhoto
   vtkJPEGReader
{'fraction_non_alphanumeric': 0.09566517189835576, 'fraction_numerical': 0.005979073243647235, 'mean_word_length': 2.5836680053547525, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1440846', 'n_tokens_mistral': 939, 'n_tokens_neox': 906, 'n_words': 302}