2ef5c047b4296a807eea8366f67d7f271f0d47de,bin/password-strength-checker.py,,pass1,#,10

Before Change




def pass1():
    password = raw_input("Enter the password ")
    special = "!@//$%^&*()?"
    if len(password) >= 8 and not password.islower() and not password.isupper() and not password.isalpha() and not password.isdigit() and any((c in special) for c in password):
        print("Strong Password")
        return 1
    else:
        print("Weak Password")
        pass1()


checkx()

After Change


            print(" your password is less than 10 characters")
        
        if len(password)>= 10 :
            if (any(x.isdigit() for x in password)) and (any(x.islower() for x in password)) and any(char in invalidcharacters for char in password) and (any(x.isupper() for x in password)) :
                print("Good! You have created a strong password ")
                break
            else:
                print("Please enter Atleast, an upper case , lowercase , special character !@//$%^&*()? and digit")
            
            
            
               

if __name__== "__main__":
    checkx()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: Logan1x/Python-Scripts
Commit Name: 2ef5c047b4296a807eea8366f67d7f271f0d47de
Time: 2020-06-28
Author: 59202862+Monsieurvishal@users.noreply.github.com
File Name: bin/password-strength-checker.py
Class Name:
Method Name: pass1


Project Name: ContextLab/hypertools
Commit Name: 1cfe4b2736a91865a44d73ff179a52144af8a6ce
Time: 2018-01-22
Author: andrew.heusser@gmail.com
File Name: hypertools/tools/format_data.py
Class Name:
Method Name: format_data


Project Name: silvandeleemput/memcnn
Commit Name: 66b91e3151beca3ccb8a529ee22b3b4c5ee67b22
Time: 2020-03-05
Author: silvandeleemput@gmail.com
File Name: memcnn/models/revop.py
Class Name:
Method Name: is_invertible_module


Project Name: brian-team/brian2
Commit Name: fefe628658fbbca925a35d0fc741b77acee35bad
Time: 2017-10-03
Author: marcel.stimberg@inserm.fr
File Name: brian2/codegen/generators/GSL_generator.py
Class Name:
Method Name: valid_gsl_dir