<commit_before>export const counter = `var i = 23;

function click() {
  i++;
}

function render() {
  return (<div>
    <h1>Demo</h1>
    <p>Count: {i}</p>
    <button onclick={click}>Click me</button>
  </div>);
}`;

export const flappy = `var bgStep = 0; // background scroll
var y = 100; // bird altitude
var vy = -10; // bird vertical speed

function scroll() {
  bgStep++;
  if (bgStep > 288) {
    bgStep = 0;
  }
}

function update() {
  y += vy;
  vy += 1; // gravity
  if (y >= 358) {
    y = 358;
    vy = 0;
  }
}

function click() {
  vy = -10;
}

function background() {
  return (
    <div className="background" onframe={scroll} style={{
      height: "384px",
      backgroundPositionX: -bgStep + "px",
      backgroundImage: "url(http://flappycreator.com/default/bg.png)"
    }} />);<commit_msg>fixed background-position-x bug in Firefox<commit_after>export const counter = `var i = 23;

function click() {
  i++;
}

function render() {
  return (<div>
    <h1>Demo</h1>
    <p>Count: {i}</p>
    <button onclick={click}>Click me</button>
  </div>);
}`;

export const flappy = `var bgStep = 0; // background scroll
var y = 100; // bird altitude
var vy = -10; // bird vertical speed

function scroll() {
  bgStep++;
  if (bgStep > 288) {
    bgStep = 0;
  }
}

function update() {
  y += vy;
  vy += 1; // gravity
  if (y >= 358) {
    y = 358;
    vy = 0;
  }
}

function click() {
  vy = -10;
}

function background() {
  return (
    <div className="background" onframe={scroll} style={{
      height: "384px",
      backgroundPosition: -bgStep + "px 0",
      backgroundImage: "url(http://flappycreator.com/default/bg.png)"
    }} />);
{'fraction_non_alphanumeric': 0.18115942028985507, 'fraction_numerical': 0.03321256038647343, 'mean_word_length': 2.731981981981982, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 25, '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': '4177450', 'n_tokens_mistral': 645, 'n_tokens_neox': 596, 'n_words': 163}