<commit_before>import { Subscription } from './Subscription';
import { noop } from './utilities';

export class Observable {
  constructor (observerCallback) {
    this.observerCallback = observerCallback;
  }
  
  subscribe (next = noop, error = noop, complete = noop) {
    return new Subscription(this.observerCallback, { next, error, complete });
  }
}<commit_msg>Add static function of Obeservable creation<commit_after>import { Subscription } from './Subscription';
import { noop } from './utilities';

export class Observable {
  constructor (observerCallback) {
    this.observerCallback = observerCallback;
  }
  
  static create (observerCallback) {
    return new Observable(observerCallback);
  }
  
  subscribe (next = noop, error = noop, complete = noop) {
    return new Subscription(this.observerCallback, { next, error, complete });
  }
}
{'fraction_non_alphanumeric': 0.1111111111111111, 'fraction_numerical': 0.0, 'mean_word_length': 4.251533742331288, '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': '2710672', 'n_tokens_mistral': 244, 'n_tokens_neox': 234, 'n_words': 67}