class_docstr: A memory-efficient class for contamination stats. The core data structures are bit arrays where
  every bit records whether an instance is contaminated or not.
class_docstr_tok: ["A","memory-efficient","class","for","contamination","stats",".","The","core","data","structures","are","bit","arrays","where","every","bit","records","whether","an","instance","is","contaminated","or","not","."]
code: def num_instances_with_contaminated_input(self):
      return self._input_bits.count()
  
file_path: H2O/h2o_hf/helm/src/helm/benchmark/contamination/contamination_stats.py
imports: from bitarray import bitarray
  from typing import Optional, Dict, Any, Hashable
  from dataclasses import dataclass
  from helm.benchmark.contamination.light_scenario import LightScenario, LightScenarioKey
  from helm.common.general import asdict_without_nones
label_desc: Use image node_id 6 for calling the ContaminationStats obj's underlying member method code with example usage: obj.num_instances_with_contaminated_input() and returns: self