a5c5b1615de24e444c485568d2a0d3432ba0bf14,deeplearning/clgen/samplers.py,Sampler,SampleIsComplete,#Sampler#Any#,59

Before Change


        return True
    if self.has_symmetrical_tokens:
      left_token_count = sample_in_progress.count(self.symmetrical_token_left)
      right_token_count = sample_in_progress.count(self.symmetrical_token_left)
      if left_token_count and (left_token_count - right_token_count == 0):
        return True
    return False

After Change


    Returns:
      True if the sample is "complete", else False to continue sampling.
    
    return any(t.SampleIsComplete(sample_in_progress) for t in self.terminators)

  @staticmethod
  def _ComputeHash(config: sampler_pb2.Sampler) -> str:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: ChrisCummins/clgen
Commit Name: a5c5b1615de24e444c485568d2a0d3432ba0bf14
Time: 2018-05-28
Author: chrisc.101@gmail.com
File Name: deeplearning/clgen/samplers.py
Class Name: Sampler
Method Name: SampleIsComplete


Project Name: senarvi/theanolm
Commit Name: 0816c636b7d7832a0177a08a08888840d717bed4
Time: 2017-01-24
Author: seppo.git@marjaniemi.com
File Name: theanolm/commands/score.py
Class Name:
Method Name: _score_text


Project Name: idaholab/raven
Commit Name: 17bb3d07b2d12f3d4a53cfa245cf99f84d5624be
Time: 2017-09-14
Author: joshua-cogliati-inl@users.noreply.github.com
File Name: framework/PostProcessors/CrossValidation.py
Class Name: CrossValidation
Method Name: inputToInternal