<commit_before># Adapted from https://github.com/Jomik/dotfiles/blob/7b11332a0bcb7728dcbaa0da28c58a2808b94dd1/.config/nixpkgs/configurations/neovim/plugins.nix
# which is published under the MIT license with:
# Copyright (c) 2018 <NAME>

{ buildVimPluginFrom2Nix, fetchFromGitHub, nodejs, yarn, yarn2nix }:
let
  pname = "coc-rls";
  version = "1.0.10";

  src = fetchFromGitHub {
    owner = "ceedubs";
    repo = pname;
    rev = "35db2b5c7e901918ef2b87fc10851f4d27db1366";
    sha256 = "1nmyvmlknhh67h1vjm5i9p285khdh77hzlam34r0qqm172qpyw8b";
  };

  deps = yarn2nix.mkYarnModules rec {
    inherit version pname;
    name = "${pname}-modules-${version}";
    packageJSON = src + "/package.json";
    yarnLock = src + "/yarn.lock";
  };
in buildVimPluginFrom2Nix {
  inherit version pname src;

  name = pname + "-" + version;

  propagatedBuildInputs = [ nodejs ];

  configurePhase = ''
    mkdir -p node_modules
    ln -s ${deps}/node_modules/* node_modules/
    ln -s ${deps}/node_modules/.bin node_modules/
  '';

  buildPhase = ''
    ${yarn}/bin/yarn build
  '';
}<commit_msg>Update coc-rls to use more recent upstream<commit_after># Adapted from https://github.com/Jomik/dotfiles/blob/7b11332a0bcb7728dcbaa0da28c58a2808b94dd1/.config/nixpkgs/configurations/neovim/plugins.nix
# which is published under the MIT license with:
# Copyright (c) 2018 <NAME>

{ buildVimPluginFrom2Nix, fetchFromGitHub, nodejs, yarn, yarn2nix }:
let
  pname = "coc-rls";
  version = "1.0.10";

  src = fetchFromGitHub {
    owner = "neoclide";
    repo = pname;
    rev = "0c005a817016412e6fba56ab81d20a949c42fbd1";
    sha256 = "0h5a1a9s9rarafmfy2i77rrsmg9393hdk53v3hfzs0f00q9qk7wn";
  };

  deps = yarn2nix.mkYarnModules rec {
    inherit version pname;
    name = "${pname}-modules-${version}";
    packageJSON = src + "/package.json";
    yarnLock = src + "/yarn.lock";
  };
in buildVimPluginFrom2Nix {
  inherit version pname src;

  name = pname + "-" + version;

  propagatedBuildInputs = [ nodejs ];

  configurePhase = ''
    mkdir -p node_modules
    ln -s ${deps}/node_modules/* node_modules/
    ln -s ${deps}/node_modules/.bin node_modules/
  '';

  buildPhase = ''
    ${yarn}/bin/yarn build
  '';
}
{'fraction_non_alphanumeric': 0.12954545454545455, 'fraction_numerical': 0.07545454545454545, 'mean_word_length': 3.723175965665236, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '5867586', 'n_tokens_mistral': 970, 'n_tokens_neox': 864, 'n_words': 158}