<commit_before>#!/usr/bin/env python
#
# flypwd -- gestione sicura delle password utente
# 
#
# Questa versione NON funziona con i file trattati con flypwd/bash

"""Library (and UI) for flypwd password management"""

import getpass
from Crypto.PublicKey import RSA
from Crypto.Cipher import PKCS1_v1_5
import os.path
import os
from subprocess import PIPE, Popen
import sys
import pam
import errno
import argparse

import logging
logging.basicConfig()
log = logging.getLogger(__name__)
log.setLevel(logging.INFO)

def mkdir_p(path):
    try:
        os.makedirs(path)
    except OSError as exc: # Python >2.5
        if exc.errno == errno.EEXIST and os.path.isdir(path):
            pass
        else: raise

HOME = os.path.expanduser("~")
WDIR = os.path.join(HOME, ".ssh")

# Assert you have .ssh ;)
mkdir_p(WDIR)<commit_msg>adds info<commit_after>#!/usr/bin/env python
#
# flypwd -- gestione sicura delle password utente
# 

"""Library (and UI) for flypwd password management"""

import getpass
from Crypto.PublicKey import RSA
from Crypto.Cipher import PKCS1_v1_5
import os.path
import os
from subprocess import PIPE, Popen
import sys

# The following 'pam' package can be found here:
# http://atlee.ca/software/pam/index.html

import pam

import errno
import argparse

import logging
logging.basicConfig()
log = logging.getLogger(__name__)
log.setLevel(logging.INFO)

def mkdir_p(path):
    try:
        os.makedirs(path)
    except OSError as exc: # Python >2.5
        if exc.errno == errno.EEXIST and os.path.isdir(path):
            pass
        else: raise

HOME = os.path.expanduser("~")
WDIR = os.path.join(HOME, ".ssh")

# Assert you have .ssh ;)
mkdir_p(WDIR)
{'fraction_non_alphanumeric': 0.10532615200478755, 'fraction_numerical': 0.005984440454817474, 'mean_word_length': 3.670391061452514, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4392208', 'n_tokens_mistral': 594, 'n_tokens_neox': 570, 'n_words': 171}