Resets the impl for unittests.
425568
void reset() {
        cleanup(); // cleaning up all context before reseting producer registry instance

        listeners.clear();
        registry.clear();

        String junittest = System.getProperty("JUNITTEST");
        if (junittest != null && junittest.equalsIgnoreCase("true")) // preventing listener's initialization for JUnit run's
            return;

        addListener(new JMXBridgeListener());

    }
112278
def reset(self):
        """"""
        if self.resetable:
            for i in range(len(self)):
                self[i] = self.default
404
public void reset()
    {
        try{
            out=IO.getNullWriter();
            super.flush();
            out=new OutputStreamWriter(os,encoding);
            written=false;
        }
        catch(UnsupportedEncodingException e)
        {
            log.fatal(e); System.exit(1);
        }
    }
1316364
public void reset() {
		unused.addAll(templateNegative);
		unused.addAll(templatePositive);
		templateNegative.clear();
		templatePositive.clear();
	}
563529
public void reset() {
    this.result = UNDEF;
    this.var2index = new TreeMap<>();
    this.index2var = new TreeMap<>();
    switch (this.algorithm) {
      case WBO:
        this.solver = new WBO(this.configuration);
        break;
      case INC_WBO:
        this.solver = new IncWBO(this.configuration);
        break;
      case LINEAR_SU:
        this.solver = new LinearSU(this.configuration);
        break;
      case LINEAR_US:
        this.solver = new LinearUS(this.configuration);
        break;
      case MSU3:
        this.solver = new MSU3(this.configuration);
        break;
      case WMSU3:
        this.solver = new WMSU3(this.configuration);
        break;
      default:
        throw new IllegalArgumentException("Unknown MaxSAT algorithm: " + this.algorithm);
    }
  }
1198198
def reset(cls):
        """"""
        cls._disable_faulthandler()
        if cls.handlers is not None:
            for handler in cls.handlers:
                logging.root.removeHandler(handler)
            cls.handlers = None
        cls._logging_snapshot.restore()
        cls.context.reset()
        cls.spec = LogSpec(cls._default_spec)
        cls.debug = None
        cls.actual_location = None
        cls.console_handler = None
        cls.file_handler = None
        cls.used_formats = None
393754
public void reset(){
		tags = new HashMap<>();
		errorOccured = new AtomicBoolean(false);
		seenErrors = new HashSet<>();
		tracerFired = false;
	}
471654
def _reset(cls):
        """"""
        if os.getpid() != cls._cls_pid:
            cls._cls_pid = os.getpid()
            cls._cls_instances_by_target.clear()
            cls._cls_thread_by_target.clear()
95985
def reset(cls):
        """"""
        # Maps function names (hyphens or underscores) to registered functions.
        cls._func_from_name = {}

        # Maps hashlib names to registered functions.
        cls._func_from_hash = {}

        # Hashlib compatibility data by function.
        cls._func_hash = {}

        register = cls._do_register
        for (func, hash_name, hash_new) in cls._std_func_data:
            register(func, func.name, hash_name, hash_new)
        assert set(cls._func_hash) == set(Func)
1232825
def reset(self):
        """"""
        self._init_counter = -1
        self._counter = -1
        if hasattr(self, '_cells'):
            for cell in self._cells:
                cell.reset()
313450
void reset() {
        cd = initCd;
        serializer = initSerializer;
        in.position(initPosition);
        finalPosition = initFinalPosition;
        offset = initOffset;
    }
130737
def reset(self):
        """"""

        # sampling
        self.it = 1
        self.batch = 0
        self.ncall = 0
        self.bound = []
        self.eff = 1.
        self.base = False

        # results
        self.saved_id = []
        self.saved_u = []
        self.saved_v = []
        self.saved_logl = []
        self.saved_logvol = []
        self.saved_logwt = []
        self.saved_logz = []
        self.saved_logzvar = []
        self.saved_h = []
        self.saved_nc = []
        self.saved_boundidx = []
        self.saved_it = []
        self.saved_n = []
        self.saved_bounditer = []
        self.saved_scale = []
        self.saved_batch = []
        self.saved_batch_nlive = []
        self.saved_batch_bounds = []

        # results from our base run
        self.base_id = []
        self.base_u = []
        self.base_v = []
        self.base_logl = []
        self.base_logvol = []
        self.base_logwt = []
        self.base_logz = []
        self.base_logzvar = []
        self.base_h = []
        self.base_nc = []
        self.base_boundidx = []
        self.base_it = []
        self.base_n = []
        self.base_bounditer = []
        self.base_scale = []

        # results from our most recent addition
        self.new_id = []
        self.new_u = []
        self.new_v = []
        self.new_logl = []
        self.new_nc = []
        self.new_it = []
        self.new_n = []
        self.new_boundidx = []
        self.new_bounditer = []
        self.new_scale = []
        self.new_logl_min, self.new_logl_max = -np.inf, np.inf
24321
def _reset(self):
        

        # Checking one attribute is enough, because they are all set together
        # in partial_fit
        if hasattr(self, 'scale_'):
            del self.scale_
            del self.n_samples_seen_
            del self.mean_
            del self.var_
260137
public static void reset() {
        SINGLETON = new HystrixMetricsPublisherFactory();
        SINGLETON.commandPublishers.clear();
        SINGLETON.threadPoolPublishers.clear();
        SINGLETON.collapserPublishers.clear();
    }
268373
def reset(self):
        
        self.remaining_cycles = self.initial_training_cycles
        self.needle_index = random.randrange(self.input_size)
437646
@Override
  protected void reset() {
    super.reset();
    mapClassesToNamedBoundProviders.clear();
    mapClassesToUnNamedBoundProviders.clear();
    hasTestModules = false;
    installBindingForScope();
  }
271328
def reset(self):
        """"""
        self.num_inst = 0
        self.sum_metric = 0.0
        self.global_num_inst = 0
        self.global_sum_metric = 0.0