From 731ac19e549c84c06387b38745acf870f5868a42 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 9 Nov 2023 18:45:08 +0000 Subject: [PATCH 1/9] Bump mediapipe from 0.10.7 to 0.10.8 Bumps [mediapipe](https://github.com/google/mediapipe) from 0.10.7 to 0.10.8. - [Release notes](https://github.com/google/mediapipe/releases) - [Commits](https://github.com/google/mediapipe/commits) --- updated-dependencies: - dependency-name: mediapipe dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- Hand-Motion-Detection/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Hand-Motion-Detection/requirements.txt b/Hand-Motion-Detection/requirements.txt index 2d618146455..b1dad3dac2b 100644 --- a/Hand-Motion-Detection/requirements.txt +++ b/Hand-Motion-Detection/requirements.txt @@ -1,3 +1,3 @@ numpy==1.26.1 opencv_python==4.8.1.78 -mediapipe==0.10.7 +mediapipe==0.10.8 From 0d1bf2348c75d44873958a379e48340bad2e9771 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 Nov 2023 18:53:44 +0000 Subject: [PATCH 2/9] Bump numpy from 1.26.1 to 1.26.2 Bumps [numpy](https://github.com/numpy/numpy) from 1.26.1 to 1.26.2. - [Release notes](https://github.com/numpy/numpy/releases) - [Changelog](https://github.com/numpy/numpy/blob/main/doc/RELEASE_WALKTHROUGH.rst) - [Commits](https://github.com/numpy/numpy/compare/v1.26.1...v1.26.2) --- updated-dependencies: - dependency-name: numpy dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- Hand-Motion-Detection/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Hand-Motion-Detection/requirements.txt b/Hand-Motion-Detection/requirements.txt index b1dad3dac2b..a08d8c0d1d2 100644 --- a/Hand-Motion-Detection/requirements.txt +++ b/Hand-Motion-Detection/requirements.txt @@ -1,3 +1,3 @@ -numpy==1.26.1 +numpy==1.26.2 opencv_python==4.8.1.78 mediapipe==0.10.8 From fde40afa738b01fb74f2da7cba17b1ede4e63387 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 17 Nov 2023 18:13:09 +0000 Subject: [PATCH 3/9] Bump solara from 1.22.0 to 1.23.0 Bumps [solara](https://github.com/widgetti/solara) from 1.22.0 to 1.23.0. - [Changelog](https://github.com/widgetti/solara/blob/master/CHANGELOG.md) - [Commits](https://github.com/widgetti/solara/compare/v1.22.0...v1.23.0) --- updated-dependencies: - dependency-name: solara dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- News_App/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/News_App/requirements.txt b/News_App/requirements.txt index fc3a139b2d4..f4a02e19d43 100644 --- a/News_App/requirements.txt +++ b/News_App/requirements.txt @@ -1,4 +1,4 @@ -solara == 1.22.0 +solara == 1.23.0 Flask gunicorn ==21.2.0 simple-websocket From 2f2b812524f1c062df4e66cfeebd6a78d532df9f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 20 Nov 2023 18:59:58 +0000 Subject: [PATCH 4/9] Bump aiohttp from 3.8.6 to 3.9.0 Bumps [aiohttp](https://github.com/aio-libs/aiohttp) from 3.8.6 to 3.9.0. - [Release notes](https://github.com/aio-libs/aiohttp/releases) - [Changelog](https://github.com/aio-libs/aiohttp/blob/master/CHANGES.rst) - [Commits](https://github.com/aio-libs/aiohttp/compare/v3.8.6...v3.9.0) --- updated-dependencies: - dependency-name: aiohttp dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- async_downloader/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/async_downloader/requirements.txt b/async_downloader/requirements.txt index 45f1bccb697..7629a9fab81 100644 --- a/async_downloader/requirements.txt +++ b/async_downloader/requirements.txt @@ -1 +1 @@ -aiohttp==3.8.6 +aiohttp==3.9.0 From a93eed8b5a2bd3b42235ecf919f5816a4af48875 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 24 Nov 2023 18:13:27 +0000 Subject: [PATCH 5/9] Bump solara from 1.23.0 to 1.24.0 Bumps [solara](https://github.com/widgetti/solara) from 1.23.0 to 1.24.0. - [Changelog](https://github.com/widgetti/solara/blob/master/CHANGELOG.md) - [Commits](https://github.com/widgetti/solara/compare/v1.23.0...v1.24.0) --- updated-dependencies: - dependency-name: solara dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- News_App/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/News_App/requirements.txt b/News_App/requirements.txt index f4a02e19d43..7e7fdecca0b 100644 --- a/News_App/requirements.txt +++ b/News_App/requirements.txt @@ -1,4 +1,4 @@ -solara == 1.23.0 +solara == 1.24.0 Flask gunicorn ==21.2.0 simple-websocket From 6c2f17644f05559f89aed4f7c22548ee308ac4f8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 4 Dec 2023 18:21:40 +0000 Subject: [PATCH 6/9] Bump solara from 1.24.0 to 1.25.0 Bumps [solara](https://github.com/widgetti/solara) from 1.24.0 to 1.25.0. - [Changelog](https://github.com/widgetti/solara/blob/master/CHANGELOG.md) - [Commits](https://github.com/widgetti/solara/compare/v1.24.0...v1.25.0) --- updated-dependencies: - dependency-name: solara dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- News_App/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/News_App/requirements.txt b/News_App/requirements.txt index 7e7fdecca0b..044c00966ce 100644 --- a/News_App/requirements.txt +++ b/News_App/requirements.txt @@ -1,4 +1,4 @@ -solara == 1.24.0 +solara == 1.25.0 Flask gunicorn ==21.2.0 simple-websocket From 5c01b3a21adb0e755dc10780eb2a3550953a2ff0 Mon Sep 17 00:00:00 2001 From: AndrewB50 <97339555+AndrewB50@users.noreply.github.com> Date: Sat, 9 Dec 2023 03:33:01 -0600 Subject: [PATCH 7/9] Update Python Program to Sort Words in Alphabetic Order.py Changes: >Removes punctuation >Sorts all words alphabetically by using consistent case (.lower()) >Ignores duplicate words >Output is a dictionary which assigns each alphabetized word (value) a respective number (key) --- ...ogram to Sort Words in Alphabetic Order.py | 38 +++++++++++++++---- 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/Python Program to Sort Words in Alphabetic Order.py b/Python Program to Sort Words in Alphabetic Order.py index f4ebe04a29c..3e4bd3564e5 100644 --- a/Python Program to Sort Words in Alphabetic Order.py +++ b/Python Program to Sort Words in Alphabetic Order.py @@ -1,18 +1,42 @@ -# Program to sort alphabetically the words form a string provided by the user +# Program to sort words alphabetically and put them in a dictionary with corresponding numbered keys +# We are also removing punctuation to ensure the desired output, without importing a library for assistance. -my_str = "Hello this Is an Example With cased letters" +# Declare base variables +word_Dict = {} +count = 0 +my_str = "Hello this Is an Example With cased letters. Hello, this is a good string" +#Initialize punctuation +punctuations = '''!()-[]{};:'",<>./?@#$%^&*_~''' # To take input from the user #my_str = input("Enter a string: ") +# remove punctuation from the string and use an empty variable to put the alphabetic characters into +no_punct = "" +for char in my_str: + if char not in punctuations: + no_punct = no_punct + char + +# Make all words in string lowercase. my_str now equals the original string without the punctuation +my_str = no_punct.lower() + # breakdown the string into a list of words words = my_str.split() -# sort the list +# sort the list and remove duplicate words words.sort() -# display the sorted words - -print("The sorted words are:") +new_Word_List = [] for word in words: - print(word) + if word not in new_Word_List: + new_Word_List.append(word) + else: + continue + +# insert sorted words into dictionary with key + +for word in new_Word_List: + count+=1 + word_Dict[count] = word + +print(word_Dict) From 3683f857a104f45823f5f694de0c0519865dc095 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 13 Dec 2023 18:31:14 +0000 Subject: [PATCH 8/9] Bump mediapipe from 0.10.8 to 0.10.9 Bumps [mediapipe](https://github.com/google/mediapipe) from 0.10.8 to 0.10.9. - [Release notes](https://github.com/google/mediapipe/releases) - [Commits](https://github.com/google/mediapipe/compare/v0.10.8...v0.10.9) --- updated-dependencies: - dependency-name: mediapipe dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- Hand-Motion-Detection/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Hand-Motion-Detection/requirements.txt b/Hand-Motion-Detection/requirements.txt index a08d8c0d1d2..c8e45b52a78 100644 --- a/Hand-Motion-Detection/requirements.txt +++ b/Hand-Motion-Detection/requirements.txt @@ -1,3 +1,3 @@ numpy==1.26.2 opencv_python==4.8.1.78 -mediapipe==0.10.8 +mediapipe==0.10.9 From 0d31cc34ba585992260e062d605a40e9bc6cf0f9 Mon Sep 17 00:00:00 2001 From: devpoisons <149255418+devpoisons@users.noreply.github.com> Date: Thu, 14 Dec 2023 13:02:27 +0100 Subject: [PATCH 9/9] this changes files extension password is 4121 enter the names of files or use these two wildcards * selects all r give random files range from 1 to 5 files enter the extensions add a dot before any extension e.g .mp4, .mp3 you can give more than one extension and it wil arrange them according to the files. Good luck. email: devpoison@outlook.com --- file_ext_changer.py | 129 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 129 insertions(+) create mode 100644 file_ext_changer.py diff --git a/file_ext_changer.py b/file_ext_changer.py new file mode 100644 index 00000000000..4d80261b052 --- /dev/null +++ b/file_ext_changer.py @@ -0,0 +1,129 @@ +'''' Multiple extension changer''' +import time +from pathlib import Path as p +import random as rand +import hashlib + + +def chxten_(files, xten): + chfile = [] + for file in files: + ch_file = file.split('.') + ch_file = ch_file[0] + chfile.append(ch_file) + if len(xten) == len(chfile): + chxten = [] + for i in range(len(chfile)): + ch_xten = chfile[i] + xten[i] + chxten.append(ch_xten) + elif len(xten) < len(chfile) and len(xten) != 1: + chxten = [] + for i in range(len(xten)): + ch_xten = chfile[i] + xten[i] + chxten.append(ch_xten) + for i in range(1, (len(chfile) + 1) - len(xten)): + ch_xten = chfile[- + i] + xten[-1] + chxten.append(ch_xten) + elif len(xten) == 1: + chxten = [] + for i in range(len(chfile)): + ch_xten = chfile[i] + xten[0] + chxten.append(ch_xten) + elif len(xten) > len(chfile): + chxten = [] + for i in range(1, (len(xten) + 1) - len(chfile)): + f = p(files[-i]) + p.touch(chfile[-i] + xten[-1]) + new = f.read_bytes() + p(chfile[-i] + xten[-1]).write_bytes(new) + for i in range(len(chfile)): + ch_xten = chfile[i] + xten[i] + chxten.append(ch_xten) + else: + return 'an error occured' + return chxten + + +# End of function definitions +# Beggining of execution of code +#password +password = input('Enter password:') + +password = password.encode() + +password = hashlib.sha512(password).hexdigest() +if password == 'c99d3d8f321ff63c2f4aaec6f96f8df740efa2dc5f98fccdbbb503627fd69a9084073574ee4df2b888f9fe2ed90e29002c318be476bb62dabf8386a607db06c4': + pass +else: + print('wrong password!') + time.sleep(0.3) + exit(404) +files = input('Enter file names and thier extensions (seperated by commas):') +xten = input('Enter Xtensions to change with (seperated by commas):') + +if files == '*': + pw = p.cwd() + files = '' + for i in pw.iterdir(): + if not p.is_dir(i): + i = str(i) + if not i.endswith('.py'): + # if not i.endswith('exe'): + if not i.endswith('.log'): + files = files + i + ',' +if files == 'r': + pw = p.cwd() + files = '' + filer = [] + for i in pw.iterdir(): + if p.is_file(i): + i = str(i) + if not i.endswith('.py'): + if not i.endswith('.exe'): + if not i.endswith('.log'): + filer.append(i) + for i in range(5): + pos = rand.randint(0,len(filer)) + files = files + filer[pos] + ',' + + print(files) +files = files.split(',') +xten = xten.split(',') + +# Validation +for file in files: + check = p(file).exists() + if check == False: + print(f'{file} is not found. Paste this file in the directory of {file}') + files.remove(file) +# Ended validation + +count = len(files) +chxten = chxten_(files, xten) + +# Error Handlings +if chxten == 'an error occured': + print('Check your inputs correctly') + time.sleep(1) + exit(404) +else: + try: + for i in range(len(files)): + f = p(files[i]) + f.rename(chxten[i]) + print('All files has been changed') + except PermissionError: + pass + except FileNotFoundError: + # Validation + for file in files: + check = p(file).exists() + if check == False: + print(f'{file} is not found. Paste this file in the directory of {file}') + files.remove(file) + # except Exception: + # print('An Error Has Occured in exception') + # time.sleep(1) + # exit(404) + +# last modified 3:25PM 12/12/2023 (DD/MM/YYYY)