<commit_before>// Reset
document.body.style.margin = 0;
document.body.style.backgroundColor = 'black';

// Measure
const WIDTH = window.innerWidth;
const HEIGHT = window.innerHeight;
const RATIO = Math.min(window.devicePixelRatio, 2);

// Setup master canvas
const canvas = document.createElement('canvas');
canvas.width = WIDTH * RATIO;
canvas.height = HEIGHT * RATIO;
canvas.style.width = WIDTH + 'px';
canvas.style.height = HEIGHT + 'px';
const context = canvas.getContext('2d');
context.scale(RATIO, RATIO);

document.body.appendChild(canvas);

// Setup hidden canvas
const canvas2 = document.createElement('canvas');
canvas2.width = WIDTH * RATIO;
canvas2.height = HEIGHT * RATIO;
const context2 = canvas2.getContext('2d');
// context2.scale(RATIO, RATIO);

const PADDING_V = HEIGHT / 6;
const TRIHEIGHT = HEIGHT - PADDING_V * 2;
const PADDING_H = Math.max(
  WIDTH / 6,
  (WIDTH - TRIHEIGHT * 2 / Math.sqrt(3)) / 2
);
const TRIWIDTH = WIDTH - PADDING_H * 2;
const MAXZOOM = PADDING_V;
const MINZOOM = Math.max(WIDTH, HEIGHT) / 100;
const INHALE = 4;
const EXHALE = INHALE * 3;
const BREATHPERIOD = 8000;<commit_msg>Revert "attempt to fix mobile fps"<commit_after>// Reset
document.body.style.margin = 0;
document.body.style.backgroundColor = 'black';

// Measure
const WIDTH = window.innerWidth;
const HEIGHT = window.innerHeight;
const RATIO = window.devicePixelRatio;

// Setup master canvas
const canvas = document.createElement('canvas');
canvas.width = WIDTH * RATIO;
canvas.height = HEIGHT * RATIO;
canvas.style.width = WIDTH + 'px';
canvas.style.height = HEIGHT + 'px';
const context = canvas.getContext('2d');
context.scale(RATIO, RATIO);

document.body.appendChild(canvas);

// Setup hidden canvas
const canvas2 = document.createElement('canvas');
canvas2.width = WIDTH * RATIO;
canvas2.height = HEIGHT * RATIO;
const context2 = canvas2.getContext('2d');
// context2.scale(RATIO, RATIO);

const PADDING_V = HEIGHT / 6;
const TRIHEIGHT = HEIGHT - PADDING_V * 2;
const PADDING_H = Math.max(
  WIDTH / 6,
  (WIDTH - TRIHEIGHT * 2 / Math.sqrt(3)) / 2
);
const TRIWIDTH = WIDTH - PADDING_H * 2;
const MAXZOOM = PADDING_V;
const MINZOOM = Math.max(WIDTH, HEIGHT) / 100;
const INHALE = 4;
const EXHALE = INHALE * 3;
const BREATHPERIOD = 8000;
{'fraction_non_alphanumeric': 0.136, 'fraction_numerical': 0.02266666666666667, 'mean_word_length': 4.517156862745098, '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': '2011682', 'n_tokens_mistral': 853, 'n_tokens_neox': 793, 'n_words': 203}