<commit_before>use syntax;
use syntax::codemap::DUMMY_SP;
use syntax::ext::base::ExtCtxt;

/// Create a fake ExtCtxt to perform macro quasiquotes outside of rustc plugins
pub fn with_fake_extctxt<T>(f: |&ExtCtxt| -> T) -> T {
  let ps = syntax::parse::new_parse_sess();

  let mut cx = syntax::ext::base::ExtCtxt::new(&ps, Vec::new(), syntax::ext::expand::ExpansionConfig {
    deriving_hash_type_parameter: false,
    crate_name: from_str("").unwrap(),
  });

  cx.bt_push(syntax::codemap::ExpnInfo{
    call_site: DUMMY_SP,<commit_msg>rust: ExpansionConfig changes<commit_after>use syntax;
use syntax::codemap::DUMMY_SP;
use syntax::ext::base::ExtCtxt;

/// Create a fake ExtCtxt to perform macro quasiquotes outside of rustc plugins
pub fn with_fake_extctxt<T>(f: |&ExtCtxt| -> T) -> T {
  let ps = syntax::parse::new_parse_sess();

  let mut cx = syntax::ext::base::ExtCtxt::new(&ps, Vec::new(), syntax::ext::expand::ExpansionConfig {
    crate_name: from_str("").unwrap(),
    deriving_hash_type_parameter: false,
    enable_quotes: true,
  });

  cx.bt_push(syntax::codemap::ExpnInfo{
    call_site: DUMMY_SP,
{'fraction_non_alphanumeric': 0.15874439461883408, 'fraction_numerical': 0.0, 'mean_word_length': 5.846625766871166, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '6018544', 'n_tokens_mistral': 407, 'n_tokens_neox': 402, 'n_words': 83}