<commit_before>#version 130

uniform sampler2D u_texture;

const float blur = 1.0/3072.0;

void main(void)
{
  vec4 sum = vec4(0.0);

  sum += texture2D(u_texture, vec2(gl_TexCoord[0].x - 4.0*blur, gl_TexCoord[0].y - 4.0*blur)) * 0.05;
  sum += texture2D(u_texture, vec2(gl_TexCoord[0].x - 3.0*blur, gl_TexCoord[0].y - 3.0*blur)) * 0.09;
  sum += texture2D(u_texture, vec2(gl_TexCoord[0].x - 2.0*blur, gl_TexCoord[0].y - 2.0*blur)) * 0.12;
  sum += texture2D(u_texture, vec2(gl_TexCoord[0].x - 1.0*blur, gl_TexCoord[0].y - 1.0*blur)) * 0.15;
  sum += texture2D(u_texture, vec2(gl_TexCoord[0].x           , gl_TexCoord[0].y           )) * 0.16;
  sum += texture2D(u_texture, vec2(gl_TexCoord[0].x + 1.0*blur, gl_TexCoord[0].y + 1.0*blur)) * 0.15;
  sum += texture2D(u_texture, vec2(gl_TexCoord[0].x + 2.0*blur, gl_TexCoord[0].y + 2.0*blur)) * 0.12;
  sum += texture2D(u_texture, vec2(gl_TexCoord[0].x + 3.0*blur, gl_TexCoord[0].y + 3.0*blur)) * 0.09;
  sum += texture2D(u_texture, vec2(gl_TexCoord[0].x + 4.0*blur, gl_TexCoord[0].y + 4.0*blur)) * 0.05;

  float grey = sum.r * 0.299 + sum.g * 0.587 + sum.b * 0.114;
  grey *= 0.85;

  gl_FragColor = vec4(grey, grey, grey, 1.0f);
}<commit_msg>Make unfocused thumbnails slightly transparent<commit_after>#version 130

uniform sampler2D u_texture;

const float alpha = 0.75;

const float blur = 1.0/3072.0;

void main(void)
{
  vec4 sum = vec4(0.0);

  sum += texture2D(u_texture, vec2(gl_TexCoord[0].x - 4.0*blur, gl_TexCoord[0].y - 4.0*blur)) * 0.05;
  sum += texture2D(u_texture, vec2(gl_TexCoord[0].x - 3.0*blur, gl_TexCoord[0].y - 3.0*blur)) * 0.09;
  sum += texture2D(u_texture, vec2(gl_TexCoord[0].x - 2.0*blur, gl_TexCoord[0].y - 2.0*blur)) * 0.12;
  sum += texture2D(u_texture, vec2(gl_TexCoord[0].x - 1.0*blur, gl_TexCoord[0].y - 1.0*blur)) * 0.15;
  sum += texture2D(u_texture, vec2(gl_TexCoord[0].x           , gl_TexCoord[0].y           )) * 0.16;
  sum += texture2D(u_texture, vec2(gl_TexCoord[0].x + 1.0*blur, gl_TexCoord[0].y + 1.0*blur)) * 0.15;
  sum += texture2D(u_texture, vec2(gl_TexCoord[0].x + 2.0*blur, gl_TexCoord[0].y + 2.0*blur)) * 0.12;
  sum += texture2D(u_texture, vec2(gl_TexCoord[0].x + 3.0*blur, gl_TexCoord[0].y + 3.0*blur)) * 0.09;
  sum += texture2D(u_texture, vec2(gl_TexCoord[0].x + 4.0*blur, gl_TexCoord[0].y + 4.0*blur)) * 0.05;

  float red   = sum.r * 0.299;
  float green = sum.g * 0.587;
  float blue  = sum.b * 0.114;
  float grey  = red * alpha + green * alpha + blue * alpha;

  gl_FragColor = vec4(grey, grey, grey, alpha);
}
{'fraction_non_alphanumeric': 0.19722222222222222, 'fraction_numerical': 0.1007936507936508, 'mean_word_length': 3.6945996275605215, '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': '55156', 'n_tokens_mistral': 1301, 'n_tokens_neox': 1156, 'n_words': 198}