<commit_before>from steps.zotero import Zotero
from behave.contrib.scenario_autoretry import patch_scenario_with_autoretry

def before_feature(context, feature):
  for scenario in feature.walk_scenarios():
    if "flaky" in scenario.effective_tags:
      patch_scenario_with_autoretry(scenario, max_attempts=4)

def before_all(context):
  context.zotero = Zotero(context.config.userdata)
  # test whether the existing references, if any, have gotten a cite key
  context.zotero.export_library(translator = 'Better BibTeX')

def before_scenario(context, scenario):
  context.zotero.reset()
  context.displayOptions = {}
  context.selected = []
  context.imported = None
  context.picked = []<commit_msg>flakes gonne flake<commit_after>from steps.zotero import Zotero
from behave.contrib.scenario_autoretry import patch_scenario_with_autoretry

def before_feature(context, feature):
  for scenario in feature.walk_scenarios():
    if "flaky" in scenario.effective_tags:
      patch_scenario_with_autoretry(scenario, max_attempts=10)

def before_all(context):
  context.zotero = Zotero(context.config.userdata)
  # test whether the existing references, if any, have gotten a cite key
  context.zotero.export_library(translator = 'Better BibTeX')

def before_scenario(context, scenario):
  context.zotero.reset()
  context.displayOptions = {}
  context.selected = []
  context.imported = None
  context.picked = []
{'fraction_non_alphanumeric': 0.08936170212765958, 'fraction_numerical': 0.002127659574468085, 'mean_word_length': 5.624413145539906, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1766999', 'n_tokens_mistral': 457, 'n_tokens_neox': 445, 'n_words': 100}