<commit_before>const path = require('path');

describe('linter-glsl', () => {
  const lint = require('../lib/linter-glsl').provideLinter().lint;

  beforeEach(() => {
    waitsForPromise(() => atom.packages.activatePackage('linter-glsl'));
  });

  const vsTest = (messages) => {
    expect(messages.length).toEqual(2);
    expect(messages[0].type).toEqual('ERROR');
    expect(messages[0].text).toEqual("'main' : illegal use of type 'void'");
    expect(messages[1].type).toEqual('ERROR');
    expect(messages[1].text).toEqual("'' : compilation terminated");
  };

  const fsTest = (messages) => {
    expect(messages.length).toEqual(3);
    expect(messages[0].type).toEqual('ERROR');
    expect(messages[0].text).toEqual("'vec5' : no matching overloaded function found");
    expect(messages[1].type).toEqual('ERROR');
    expect(messages[1].text).toEqual("'assign' :  cannot convert from 'const float' to 'fragColor 4-component vector of float FragColor'");
    expect(messages[2].type).toEqual('ERROR');
    expect(messages[2].text).toEqual("'' : compilation terminated");
  };

  const gsTest = (messages) => {
    expect(messages.length).toEqual(2);
    expect(messages[0].type).toEqual('ERROR');
    expect(messages[0].text).toEqual("'line_stripp' : unrecognized layout identifier, or qualifier requires assignment (e.g., binding = 4)");
    expect(messages[1].type).toEqual('ERROR');
    expect(messages[1].text).toEqual("'' : compilation terminated");
  };

  const tcTest = (messages) => {
    expect(messages.length).toEqual(2);
    expect(messages[0].type).toEqual('ERROR');
    expect(messages[0].text).toEqual("'verticaes' : there is no such layout identifier for this stage taking an assigned value");
    expect(messages[1].type).toEqual('ERROR');
    expect(messages[1].text).toEqual("'' : compilation terminated");
  };<commit_msg>Update the specs for latest glsllangValidator<commit_after>const path = require('path');

describe('linter-glsl', () => {
  const lint = require('../lib/linter-glsl').provideLinter().lint;

  beforeEach(() => {
    waitsForPromise(() => atom.packages.activatePackage('linter-glsl'));
  });

  const vsTest = (messages) => {
    expect(messages.length).toEqual(2);
    expect(messages[0].type).toEqual('ERROR');
    expect(messages[0].text).toEqual("'main' : illegal use of type 'void'");
    expect(messages[1].type).toEqual('ERROR');
    expect(messages[1].text).toEqual("'' : compilation terminated");
  };

  const fsTest = (messages) => {
    expect(messages.length).toEqual(3);
    expect(messages[0].type).toEqual('ERROR');
    expect(messages[0].text).toEqual("'vec5' : no matching overloaded function found");
    expect(messages[1].type).toEqual('ERROR');
    expect(messages[1].text).toEqual("'assign' :  cannot convert from ' const float' to ' fragColor 4-component vector of float FragColor'");
    expect(messages[2].type).toEqual('ERROR');
    expect(messages[2].text).toEqual("'' : compilation terminated");
  };

  const gsTest = (messages) => {
    expect(messages.length).toEqual(2);
    expect(messages[0].type).toEqual('ERROR');
    expect(messages[0].text).toEqual("'line_stripp' : unrecognized layout identifier, or qualifier requires assignment (e.g., binding = 4)");
    expect(messages[1].type).toEqual('ERROR');
    expect(messages[1].text).toEqual("'' : compilation terminated");
  };

  const tcTest = (messages) => {
    expect(messages.length).toEqual(2);
    expect(messages[0].type).toEqual('ERROR');
    expect(messages[0].text).toEqual("'verticaes' : there is no such layout identifier for this stage taking an assigned value");
    expect(messages[1].type).toEqual('ERROR');
    expect(messages[1].text).toEqual("'' : compilation terminated");
  };
{'fraction_non_alphanumeric': 0.1907824222936763, 'fraction_numerical': 0.01339764201500536, 'mean_word_length': 4.944267515923567, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, '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': '2326386', 'n_tokens_mistral': 1115, 'n_tokens_neox': 1133, 'n_words': 201}