This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: exit-code-126-example | |
spec: | |
containers: | |
- name: failing-container | |
image: busybox | |
command: ["/bin/sh", "-c", "chmod -x /bin/sh && /bin/sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: exit-code-127-example | |
spec: | |
containers: | |
- name: failing-container | |
image: busybox | |
command: ["/bin/sh", "-c", "non_existing_command"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pip install nltk | |
# nltk.download("punkt") | |
from nltk.corpus import movie_reviews | |
from nltk.classify import NaiveBayesClassifier | |
from nltk.corpus import stopwords | |
from nltk.tokenize import word_tokenize | |
from nltk.corpus import subjectivity | |
from nltk.sentiment import SentimentAnalyzer | |
import nltk.sentiment.util |