bcrypt This set of functions provides methods to create password hashes, verify passwords, and generate salts using the bcrypt library. 2024-12-16 12:13:13 Function set 24 views
Faker This function uses the Faker library to generate a random personal information dictionary, including name, address, phone number, and email. 2024-12-16 12:13:12 Function 12 views
TensorFlow, NumPy This function generates a random tensor of the specified shape and data type, usually used for testing or data generation. 2024-12-16 12:13:12 The type of code 8 views
CatBoost, scikit-learn This function uses the CatBoost library to train a classification model. It takes a feature matrix X and a label vector y as input, splits the dataset into training and validation sets, and then trains a CatBoost classifier. 2024-12-16 12:13:12 Function 9 views
Tkinter, messagebox This function will pop up a message box containing a random message. 2024-12-16 12:13:12 Tkinter GUI Application 8 views
Bokeh library; Data visualization; Bar chart; HTML file creation This function uses the Bokeh library to create a bar chart. It accepts data, x-axis and y-axis labels, and chart title as parameters. The data should be a dictionary containing x and y values, where x is the category and y is the corresponding value. The function creates a bar chart and saves it as an HTML file. 2024-12-16 12:13:11 The type of code 9 views
Bottle This function creates a simple web route that responds to HTTP GET requests. Users can get a greeting by accessing the /greet/ path followed by a name. 2024-12-16 12:13:11 Web framework 7 views
Celery, logging, retry This function uses the Celery library's logging and retry features to define a function named random_task_name that accepts a task_id parameter and performs a task. The task logs its running status and retries if an exception occurs. 2024-12-16 12:13:11 Celery task function 19 views
Pyglet This code creates a Pyglet window and draws a colored circle that can be moved around the window using the arrow keys. 2024-12-16 12:13:11 Pyglet Graphics Programming 16 views
Scikit-learn This function uses a Random Forest classifier to classify the training data and make predictions on the test set, returning the accuracy of the predictions. 2024-12-16 12:13:10 Machine learning 7 views