<commit_before>---

- name: remove-node | Drain node except daemonsets resource
  command: >-
    {{ bin_dir }}/kubectl --kubeconfig /etc/kubernetes/admin.conf drain
      --force
      --ignore-daemonsets
      --grace-period {{ drain_grace_period }}
      --timeout {{ drain_timeout }}
      --delete-local-data {{ item }}
  with_items:
    - "{{ node.split(',') | default(groups['kube-node']) }}"
  failed_when: false
  delegate_to: "{{ groups['kube-master']|first }}"
  run_once: true
  ignore_errors: yes
<commit_msg>cordon all deleted nodes before drain (#4756)<commit_after>---
- name: cordon-node | Mark all nodes as unschedulable before drain
  command: >-
    {{ bin_dir }}/kubectl cordon {{ item }}
  with_items:
    - "{{ node.split(',') | default(groups['kube-node']) }}"
  failed_when: false
  delegate_to: "{{ groups['kube-master']|first }}"
  run_once: true
  ignore_errors: yes

- name: remove-node | Drain node except daemonsets resource
  command: >-
    {{ bin_dir }}/kubectl --kubeconfig /etc/kubernetes/admin.conf drain
      --force
      --ignore-daemonsets
      --grace-period {{ drain_grace_period }}
      --timeout {{ drain_timeout }}
      --delete-local-data {{ item }}
  with_items:
    - "{{ node.split(',') | default(groups['kube-node']) }}"
  failed_when: false
  delegate_to: "{{ groups['kube-master']|first }}"
  run_once: true
  ignore_errors: yes

{'fraction_non_alphanumeric': 0.1681096681096681, 'fraction_numerical': 0.002886002886002886, 'mean_word_length': 3.1526946107784433, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '3859814', 'n_tokens_mistral': 474, 'n_tokens_neox': 470, 'n_words': 97}