{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":694456585,"defaultBranch":"main","name":"helper_py","ownerLogin":"elkronos","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2023-09-21T03:16:28.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/130187349?v=4","public":true,"private":false,"isOrgOwned":false},"refInfo":{"name":"","listCacheKey":"v0:1695266190.0","currentOid":""},"activityList":{"items":[{"before":"8bcc4a99ebeb82e77d705e810510fe83bbb11fcd","after":"639dc43e3f863cb036e2a2221bc7f61d08097dfb","ref":"refs/heads/main","pushedAt":"2024-08-25T01:44:37.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"elkronos","name":null,"path":"/elkronos","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/130187349?s=80&v=4"},"commit":{"message":"Update README.md\n\nUpdated to include audio_directory_scanner","shortMessageHtmlLink":"Update README.md"}},{"before":"63f5ce3cdce8f046fd1c6a98dc40c62e0ebba29c","after":"8bcc4a99ebeb82e77d705e810510fe83bbb11fcd","ref":"refs/heads/main","pushedAt":"2024-08-25T01:41:28.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"elkronos","name":null,"path":"/elkronos","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/130187349?s=80&v=4"},"commit":{"message":"Create audio_directory_scanner.py\n\nFunction to scan directories of audio files and create a CSV.","shortMessageHtmlLink":"Create audio_directory_scanner.py"}},{"before":"e5f302216b72a77af139c81ba2991b723dc91581","after":"63f5ce3cdce8f046fd1c6a98dc40c62e0ebba29c","ref":"refs/heads/main","pushedAt":"2024-08-07T01:19:25.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"elkronos","name":null,"path":"/elkronos","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/130187349?s=80&v=4"},"commit":{"message":"detect sentiment enhancements\n\nClass Definitions: Three classes were introduced:\n\nSentimentAnalyzer for sentiment analysis using Afinn and a pre-trained BERT model.\nTextProcessor for processing text to detect sentiments and emotions based on a predefined lexicon.\nSentimentEmotionDetector for detecting sentiments and emotions in text data.\nLogging: Logging was set up for better error tracking and debugging.\n\nBatch Processing: Batch processing for sentiment analysis was added to handle larger datasets efficiently.\n\nError Handling: Error handling was improved with try-except blocks, returning neutral scores in case of errors.\n\nMain Function: A main function was created to initialize components and run an example usage scenario, printing out analysis results.\n\nMethod Refactoring: Functions were refactored into methods within the new classes for better modularity and reuse.\n\nDataFrame Processing: Methods for processing DataFrames were improved to handle text sentiment analysis and emotion detection in specified columns, adding sentiment categories.\n\nExample Usage: The script now includes an example demonstrating how to use the classes and methods to process a DataFrame, analyze sentiments, and print out various statistics.","shortMessageHtmlLink":"detect sentiment enhancements"}},{"before":"fb429637c8aa57fe7d314dfdf69841b4475fb078","after":"e5f302216b72a77af139c81ba2991b723dc91581","ref":"refs/heads/main","pushedAt":"2024-08-03T20:37:21.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"elkronos","name":null,"path":"/elkronos","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/130187349?s=80&v=4"},"commit":{"message":"fixes and updates for apply weights and project path scripts\n\napply_weights:\nAdded a handle_na parameter to the apply_weights function and _check_input function, with options 'drop', 'fill', or 'ignore'.\nUpdated the function docstring to include the handle_na parameter.\nEnhanced NaN handling logic within apply_weights:\nFor 'drop', NaNs are removed.\nFor 'fill', numeric columns are filled with the mean and categorical columns with the mode.\nFor 'ignore', NaNs are left unchanged.\nModified _check_input to validate handle_na values and handle non-NaN levels for demographic weights.\nSimplified initialization of total_weights.\nAdded a new test example for apply_weights demonstrating different NaN handling options.\n\nproject_path:\nRemoved the start_path parameter from the find_project_root method and the corresponding docstring entry.\nEliminated the call to self.get_start_path() and directly used start_path for initializing self.project_root in the ProjectPath class.","shortMessageHtmlLink":"fixes and updates for apply weights and project path scripts"}},{"before":"e94b015518d4a4e0ea4299aa28bf96a800b5e8b8","after":"fb429637c8aa57fe7d314dfdf69841b4475fb078","ref":"refs/heads/main","pushedAt":"2024-07-12T00:54:32.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"elkronos","name":null,"path":"/elkronos","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/130187349?s=80&v=4"},"commit":{"message":"Refinement and enhancements\n\nEnhance `clean_names` function and helper methods\n\n- Added `unicodedata` import to improve handling of unicode characters.\n- Consolidated imports and removed duplicate `unicodedata` import.\n- Updated `clean_names` function:\n - Simplified `replace_dict` initialization.\n - Enhanced `make_valid_names` to handle numerals based on the new parameter.\n - Improved duplicate removal logic in `clean_names`.\n- Improved `apply_replacements` function:\n - Added logging for function input and output.\n- Enhanced `apply_transliterations` function:\n - Added warning for unhandled characters.\n- Refined `sanitize_string` function:\n - Applied regex-based sanitization based on `parsing_option`.\n- Updated `handle_numerals` function:\n - Added logging for function input and output.\n - Ensured trailing underscores and spaces are removed after numeral handling.\n- Enhanced `make_valid_names` function:\n - Added support for numeral options.\n - Improved logging and handling of leading non-alphanumeric characters.\n- Improved `apply_case_conversion` function:\n - Added logging for function input and output.\n- Improved `remove_duplicate_names` function:\n - Refined logic to correctly append numbers to duplicates.\n- Added detailed docstrings for all functions.\n- Added comprehensive unittests for `clean_names` function:\n - Tests for various case conversions.\n - Tests for transliteration, replacement, ASCII conversion, and numeral handling.\n - Test for duplicate name removal.","shortMessageHtmlLink":"Refinement and enhancements"}},{"before":"b9af14db222bfe27cdfb52bdb2c968524bf9cf0c","after":"e94b015518d4a4e0ea4299aa28bf96a800b5e8b8","ref":"refs/heads/main","pushedAt":"2024-07-11T22:52:47.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"elkronos","name":null,"path":"/elkronos","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/130187349?s=80&v=4"},"commit":{"message":"Merge branch 'main' of https://github.com/elkronos/helper_py","shortMessageHtmlLink":"Merge branch 'main' of https://github.com/elkronos/helper_py"}},{"before":"0192ddbb10f290ce9b5bfbb2c9823d1f8adb99f1","after":"b9af14db222bfe27cdfb52bdb2c968524bf9cf0c","ref":"refs/heads/main","pushedAt":"2024-07-04T14:27:10.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"elkronos","name":null,"path":"/elkronos","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/130187349?s=80&v=4"},"commit":{"message":"Rename ProjectPath.py to project_path.py","shortMessageHtmlLink":"Rename ProjectPath.py to project_path.py"}},{"before":"c9a15f9629e37dea259ce465d52489a1676ea95d","after":"0192ddbb10f290ce9b5bfbb2c9823d1f8adb99f1","ref":"refs/heads/main","pushedAt":"2024-06-30T22:34:32.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"elkronos","name":null,"path":"/elkronos","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/130187349?s=80&v=4"},"commit":{"message":"Update README.md\n\nUpdated to include de-dupe function description.","shortMessageHtmlLink":"Update README.md"}},{"before":"1a8a3abdf65d59ead5256f168e17da3128d6ae15","after":"c9a15f9629e37dea259ce465d52489a1676ea95d","ref":"refs/heads/main","pushedAt":"2024-06-30T22:32:40.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"elkronos","name":null,"path":"/elkronos","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/130187349?s=80&v=4"},"commit":{"message":"Merge branch 'main' of https://github.com/elkronos/helper_py","shortMessageHtmlLink":"Merge branch 'main' of https://github.com/elkronos/helper_py"}},{"before":"faef11058ff1ba2e8ae365a1183c459df0fdf942","after":"1a8a3abdf65d59ead5256f168e17da3128d6ae15","ref":"refs/heads/main","pushedAt":"2024-03-28T03:54:19.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"elkronos","name":null,"path":"/elkronos","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/130187349?s=80&v=4"},"commit":{"message":"Update README.md\n\nUpdated readme for projectpath","shortMessageHtmlLink":"Update README.md"}},{"before":"50c566a2aaebb7812d10de68abb9784823aca610","after":"faef11058ff1ba2e8ae365a1183c459df0fdf942","ref":"refs/heads/main","pushedAt":"2024-03-28T03:51:06.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"elkronos","name":null,"path":"/elkronos","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/130187349?s=80&v=4"},"commit":{"message":"Add ProjectPath class for flexible project root discovery\n\nIntroducing the ProjectPath class, a robust and flexible solution for finding and working with paths relative to a project's root directory. This implementation automatically identifies the project root by searching for specified marker files or directories (e.g., .git, .svn). It supports dynamic adjustment of markers, incorporates a caching mechanism for efficient root discovery, and provides clear error messages when the project root cannot be found. Designed to work well in both script and interactive environments, including Jupyter notebooks, enhancing usability across various development scenarios.","shortMessageHtmlLink":"Add ProjectPath class for flexible project root discovery"}},{"before":"bcd4febe5399d365e8c238128431150cf2c70afb","after":"50c566a2aaebb7812d10de68abb9784823aca610","ref":"refs/heads/main","pushedAt":"2023-11-16T04:07:37.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"elkronos","name":null,"path":"/elkronos","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/130187349?s=80&v=4"},"commit":{"message":"Update detect_sentiments_and_emotions.py","shortMessageHtmlLink":"Update detect_sentiments_and_emotions.py"}},{"before":"dd91074fa2f7504917d3d03692344256854aba8b","after":"bcd4febe5399d365e8c238128431150cf2c70afb","ref":"refs/heads/main","pushedAt":"2023-11-16T04:05:00.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"elkronos","name":null,"path":"/elkronos","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/130187349?s=80&v=4"},"commit":{"message":"Update README.md","shortMessageHtmlLink":"Update README.md"}},{"before":"4d2c1ccef1158cdf00cd72f43e53d023730edf27","after":"dd91074fa2f7504917d3d03692344256854aba8b","ref":"refs/heads/main","pushedAt":"2023-11-16T04:04:13.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"elkronos","name":null,"path":"/elkronos","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/130187349?s=80&v=4"},"commit":{"message":"Update README.md","shortMessageHtmlLink":"Update README.md"}},{"before":"5268b9a534c5347d2e5c8214908a3a33fc253561","after":"4d2c1ccef1158cdf00cd72f43e53d023730edf27","ref":"refs/heads/main","pushedAt":"2023-11-16T04:01:32.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"elkronos","name":null,"path":"/elkronos","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/130187349?s=80&v=4"},"commit":{"message":"Create detect_sentiments_and_emotions.py\n\nAttempt to convert an existing R script into python and improve it by adding more specialized models to detect emotions, and afford the ability to look at sentiment at the word or sentence level.","shortMessageHtmlLink":"Create detect_sentiments_and_emotions.py"}},{"before":"19a7981f22b0c68a0bf5876e113bb8c60ce21d11","after":"5268b9a534c5347d2e5c8214908a3a33fc253561","ref":"refs/heads/main","pushedAt":"2023-10-02T05:19:30.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"elkronos","name":null,"path":"/elkronos","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/130187349?s=80&v=4"},"commit":{"message":"Update README.md\n\nAdded description for apply_weights() function","shortMessageHtmlLink":"Update README.md"}},{"before":"558536876271ebdf5e3cd3244886a0a1674d13eb","after":"19a7981f22b0c68a0bf5876e113bb8c60ce21d11","ref":"refs/heads/main","pushedAt":"2023-10-02T05:17:15.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"elkronos","name":null,"path":"/elkronos","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/130187349?s=80&v=4"},"commit":{"message":"Weighting variables\n\nPython function to weight demographic variables.","shortMessageHtmlLink":"Weighting variables"}},{"before":"8f2cd5387d43cdb37333ce3ba57b3acea1f93a17","after":"558536876271ebdf5e3cd3244886a0a1674d13eb","ref":"refs/heads/main","pushedAt":"2023-09-21T03:20:12.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"elkronos","name":null,"path":"/elkronos","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/130187349?s=80&v=4"},"commit":{"message":"Create README.md\n\nAdded `clean_names.py` description","shortMessageHtmlLink":"Create README.md"}},{"before":null,"after":"8f2cd5387d43cdb37333ce3ba57b3acea1f93a17","ref":"refs/heads/main","pushedAt":"2023-09-21T03:16:30.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"elkronos","name":null,"path":"/elkronos","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/130187349?s=80&v=4"},"commit":{"message":"Under development\n\nClean variable names. This is meant to be an implementation of the clean_names function from R.","shortMessageHtmlLink":"Under development"}}],"hasNextPage":false,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"Y3Vyc29yOnYyOpK7MjAyNC0wOC0yNVQwMTo0NDozNy4wMDAwMDBazwAAAASjS3IP","startCursor":"Y3Vyc29yOnYyOpK7MjAyNC0wOC0yNVQwMTo0NDozNy4wMDAwMDBazwAAAASjS3IP","endCursor":"Y3Vyc29yOnYyOpK7MjAyMy0wOS0yMVQwMzoxNjozMC4wMDAwMDBazwAAAAOFWTY1"}},"title":"Activity ยท elkronos/helper_py"}