View dendrogram.py
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
# Perform the necessary imports | |
import matplotlib.pyplot as plt | |
from scipy.cluster.hierarchy import linkage, dendrogram | |
# Calculate the linkage: mergings | |
mergings = linkage(samples, method='single') | |
# Plot the dendrogram | |
dendrogram(mergings, | |
labels=country_names, |
View pipeline.py
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
# Import pipeline | |
from sklearn.pipeline import Pipeline | |
# Import classifiers | |
from sklearn.linear_model import LogisticRegression | |
from sklearn.multiclass import OneVsRestClassifier | |
# Import CountVectorizer | |
from sklearn.feature_extraction.text import CountVectorizer |
View elasticsearch-issue-34142.log
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
[11-28-18 18:51:17] Delete [attachment] pipeline | |
{"acknowledged":true} | |
[11-28-18 18:51:17] Create [attachment] pipeline | |
{"acknowledged":true} | |
[11-28-18 18:51:17] Delete [index1] index | |
{"acknowledged":true} | |
[11-28-18 18:51:17] Create [index1] index |
View elasticsearch-issue-34142.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
#!/usr/bin/env bash | |
# elasticsearch-issue-34142.sh | |
# cURL recreation script to reproduce Elaticsearch issue #34142 | |
# https://github.com/elastic/elasticsearch/issues/34142 | |
NL1="\n" | |
NL2="${NL1}${NL1}" | |
NC='\033[0m' | |
RED='\033[0;31m' |
View elasticsearch-issue-34522.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
#!/usr/bin/env bash | |
# elasticsearch-issue-34522.sh | |
# cURL recreation script to reproduce Elaticsearch issue #34522 | |
# https://github.com/elastic/elasticsearch/issues/34522 | |
NL1="\n" | |
NL2="${NL1}${NL1}" | |
NC='\033[0m' | |
RED='\033[0;31m' |
View exif-others.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
#!/usr/bin/env bash | |
set -e | |
set -u | |
export INPUT_DIR="${HOME}/Pictures/#sync/incoming" | |
export OUTPUT_DIR="${HOME}/Pictures/#sync/timestamps" | |
export REMOTE_DIR="${HOME}/Pictures/#sync/remote" | |
fdupes --recurse --noempty --nohidden --delete --noprompt ${INPUT_DIR} |
View elasticsearch-issue-27178.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
#!/usr/bin/env bash | |
# elasticsearch-issue-27178.sh | |
# cURL recreation script to reproduce Elaticsearch issue #27178 | |
# https://github.com/elastic/elasticsearch/issues/27178 | |
NL1="\n" | |
NL2="${NL1}${NL1}" | |
NC='\033[0m' | |
RED='\033[0;31m' |
View elasticsearch-issue-28309.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
#!/usr/bin/env bash | |
# elasticsearch-issue-28309.sh | |
# cURL recreation script to reproduce Elaticsearch issue #28309 | |
# https://github.com/elastic/elasticsearch/issues/28309 | |
NL1="\n" | |
NL2="${NL1}${NL1}" | |
NC='\033[0m' | |
RED='\033[0;31m' |
View elasticsearch-issue-28390.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
#!/usr/bin/env bash | |
# elasticsearch-issue-28390.sh | |
# cURL recreation script to reproduce Elaticsearch issue #28390 | |
NL1="\n" | |
NL2="${NL1}${NL1}" | |
NC='\033[0m' | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' |
View elasticsearch-issue-33384.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
#!/usr/bin/env bash | |
# elasticsearch-issue-33384.sh | |
# cURL recreation script to reproduce Elaticsearch issue #33384 | |
NL1="\n" | |
NL2="${NL1}${NL1}" | |
NC='\033[0m' | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' |
NewerOlder