<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 "vtkSource"]} {
	catch {b SetInput emptyPD}
	catch {b Update}
	catch {b SetInput emptyID}
	catch {b Update}
	catch {b SetInput emptySG}
	catch {b Update}
	catch {b SetInput emptyUG}
	catch {b Update}
	catch {b SetInput emptyRG}
	catch {b Update}
    }

   b Delete
}

set classExceptions {
    vtkCommand
    vtkIndent
    vtkTimeStamp
    vtkTkImageViewerWidget
    vtkTkImageWindowWidget
    vtkTkRenderWidget
    vtkJPEGReader
}

proc rtTestEmptyInputTest { fileid } { 
   global classExceptions
   # for every class
   set all [lsort [info command vtk*]]
   foreach a $all {
      if {[lsearch $classExceptions $a] == -1} {
         # test some set get methods
         #puts "Testing -- $a"
         TestOne $a
      }
   }
}





rtTestEmptyInputTest stdout

emptyPD Delete
emptyID Delete
emptySG Delete
emptyUG Delete
emptyRG Delete


exit

<commit_msg>avoid vtkWin32VideoSource due to unknown exit<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 "vtkSource"]} {
	catch {b SetInput emptyPD}
	catch {b Update}
	catch {b SetInput emptyID}
	catch {b Update}
	catch {b SetInput emptySG}
	catch {b Update}
	catch {b SetInput emptyUG}
	catch {b Update}
	catch {b SetInput emptyRG}
	catch {b Update}
    }

   b Delete
}

set classExceptions {
    vtkCommand
    vtkIndent
    vtkTimeStamp
    vtkTkImageViewerWidget
    vtkTkImageWindowWidget
    vtkTkRenderWidget
    vtkJPEGReader
    vtkWin32VideoSource
}

proc rtTestEmptyInputTest { fileid } { 
   global classExceptions
   # for every class
   set all [lsort [info command vtk*]]
   foreach a $all {
      if {[lsearch $classExceptions $a] == -1} {
         # test some set get methods
         # puts "Testing -- $a"
         TestOne $a
      }
   }
}





rtTestEmptyInputTest stdout

emptyPD Delete
emptyID Delete
emptySG Delete
emptyUG Delete
emptyRG Delete

exit 


{'fraction_non_alphanumeric': 0.08208668968162638, 'fraction_numerical': 0.004602991944764097, 'mean_word_length': 3.1135646687697163, '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': '6871413', 'n_tokens_mistral': 959, 'n_tokens_neox': 924, 'n_words': 290}