<commit_before>#!/bin/bash
#
# Script to list open TCP-connections on Mac OS X 10.6, 10.7, 10.8, 10.9, 10.10 and 10.11 and Linux
# The script came to life in 2011
# 
# Copyright 2015 <NAME>, Dept of Copmuter Science, Lund University
# 
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# 
#     http://www.apache.org/licenses/LICENSE-2.0
# 
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# 
# Script home page (english):
# http://cs.lth.se/kontakt/peter_moller/script/open_portssh_en
# Script home page (swedish):
# http://cs.lth.se/kontakt/peter_moller/script/open_portssh
# 2011-06-23  All comments translated to english (phew!)
# 2011-07-13  Auto-update disabled! Instead, it notify the user of updates
#             Also feedback for when data is generated
#             Bug-fix from <NAME> about IPv6-parsing (thanks!)
# 2011-08-27  Changed URL of "whatismyip"
# 2011-11-30  Polished
# 2011-12-07  Version included in curl call
# 2013-03-11  Disabled  the use of geoiptool (sadly). Looking for a replacement
#             Also changed the external IP-address lookup
# 2013-04-23  Fixed garbage in the $IP_CACHE-file
# 2014-03-01  Implemented a new IP-lookup system using http://db-ip.com/ (Thank you, guys!)
# 2015-09-16  Moved to GitHub (finally!)
#
# Version:
VER="2.7"
#
# Note: The script is dependant on two external web-addresses:
# 1. http://api.db-ip.com/addrinfo?addr=172.16.17.32&api_key=123456789123456789
#    Performs the mapping from IP address to Country and City<commit_msg>Corrected version number<commit_after>#!/bin/bash
#
# Script to list open TCP-connections on Mac OS X 10.6, 10.7, 10.8, 10.9, 10.10 and 10.11 and Linux
# The script came to life in 2011
# 
# Copyright 2015 <NAME>, Dept of Copmuter Science, Lund University
# 
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# 
#     http://www.apache.org/licenses/LICENSE-2.0
# 
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# 
# Script home page (english):
# http://cs.lth.se/kontakt/peter_moller/script/open_portssh_en
# Script home page (swedish):
# http://cs.lth.se/kontakt/peter_moller/script/open_portssh
# 2011-06-23  All comments translated to english (phew!)
# 2011-07-13  Auto-update disabled! Instead, it notify the user of updates
#             Also feedback for when data is generated
#             Bug-fix from <NAME> about IPv6-parsing (thanks!)
# 2011-08-27  Changed URL of "whatismyip"
# 2011-11-30  Polished
# 2011-12-07  Version included in curl call
# 2013-03-11  Disabled  the use of geoiptool (sadly). Looking for a replacement
#             Also changed the external IP-address lookup
# 2013-04-23  Fixed garbage in the $IP_CACHE-file
# 2014-03-01  Implemented a new IP-lookup system using http://db-ip.com/ (Thank you, guys!)
# 2015-09-16  Moved to GitHub (finally!)
#
# Version:
VER="2.7.2"
#
# Note: The script is dependant on two external web-addresses:
# 1. http://api.db-ip.com/addrinfo?addr=8.9.10.11&api_key=123456789123456789
#    Performs the mapping from IP address to Country and City
{'fraction_non_alphanumeric': 0.09889240506329114, 'fraction_numerical': 0.07067510548523206, 'mean_word_length': 3.6597051597051595, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 2, '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': '3983631', 'n_tokens_mistral': 1394, 'n_tokens_neox': 1173, 'n_words': 457}