<commit_before>if {[catch {

  set project_name [lindex $argv 0]

  set part_name [lindex $argv 1]

  create_project -part $part_name $project_name

  set_property ip_repo_paths lib [current_project]

  set bd_path "$project_name.srcs/sources_1/bd/system"

  create_bd_design system

  source $project_name/system_bd.tcl

  generate_target all [get_files $bd_path/system.bd]
  make_wrapper -files [get_files $bd_path/system.bd] -top

  add_files -norecurse $bd_path/hdl/system_wrapper.v

  add_files -norecurse [glob $project_name/*.v]
  add_files -norecurse -fileset constrs_1 [glob cfg/*.xdc]

  set_property VERILOG_DEFINE {TOOL_VIVADO} [current_fileset]

  set_property STRATEGY Flow_PerfOptimized_High [get_runs synth_1]
  set_property STRATEGY Performance_NetDelay_high [get_runs impl_1]

  close_project

} result]} {
  puts "** ERROR: $result"
  exit 1
}

exit
<commit_msg>add nocomplain to glob and remove TOOL_VIVADO<commit_after>if {[catch {

  set project_name [lindex $argv 0]

  set part_name [lindex $argv 1]

  create_project -part $part_name $project_name

  set_property ip_repo_paths lib [current_project]

  set bd_path "$project_name.srcs/sources_1/bd/system"

  create_bd_design system

  source $project_name/system_bd.tcl

  generate_target all [get_files $bd_path/system.bd]
  make_wrapper -files [get_files $bd_path/system.bd] -top

  add_files -norecurse $bd_path/hdl/system_wrapper.v

  set files [glob -nocomplain $project_name/*.v]
  if {[llength $files] > 0} {
    add_files -norecurse $files
  }

  set files [glob -nocomplain cfg/*.xdc]
  if {[llength $files] > 0} {
    add_files -norecurse -fileset constrs_1 $files
  }

  set_property STRATEGY Flow_PerfOptimized_High [get_runs synth_1]
  set_property STRATEGY Performance_NetDelay_high [get_runs impl_1]

  close_project

} result]} {
  puts "** ERROR: $result"
  exit 1
}

exit

{'fraction_non_alphanumeric': 0.09110396570203644, 'fraction_numerical': 0.00857449088960343, 'mean_word_length': 4.443148688046647, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1958340', 'n_tokens_mistral': 743, 'n_tokens_neox': 696, 'n_words': 160}