Graph-tool, breadth_first_search This function uses the breadth_first_search function from the Graph-tool library to find the shortest path in a graph from the source node to the target node. 2024-12-16 12:12:14 Graph-tool algorithm application 6 views
Autobahn, WampProtocol, ApplicationSession, TCP4ServerEndpoint, asyncio, twisted This code creates a WAMP (Wolfram Advanced Messaging Protocol) server application using the Autobahn library. The application publishes a message to a topic named 'my.topic' with two arguments after joining. 2024-12-16 12:12:14 WAMP (Wolfram Advanced Messaging Protocol) server application 4 views
requests This function uses the requests library to fetch a random fact from a public API and returns it. 2024-12-16 12:12:14 Python Function 6 views
Pandas, NumPy, Numpy random integer, Numpy random float, Numpy random choice This function generates a DataFrame with random integer values, random floating-point numbers, and random categorical values. 2024-12-16 12:12:13 The type of code 4 views
Pydantic This function uses the Pydantic library's BaseModel to define a user model and generates a random user instance. 2024-12-16 12:12:13 Custom function 5 views
OAuthlib, requests This function uses the oauth1 module from the OAuthlib library to create an OAuth 1.0a client and obtain an access token through the client. The function accepts client key, client secret, token key, token secret, and URL as parameters, then sends a signed POST request to the token endpoint, and finally parses the response to obtain the access token. 2024-12-16 12:12:13 Function 5 views
Telethon This function accepts a client object and a list of users, then filters out users who are online. 2024-12-16 12:12:12 Telethon API Function 8 views
mysql-connector-python This function queries employee information from the database for a specified department. 2024-12-16 12:12:12 Database query 6 views
Kivy This code creates a simple Kivy application that includes two screens (StartScreen and EndScreen). The application uses Kivy's ScreenManager to manage screens. 2024-12-16 12:12:12 Kivy App 5 views
numpy, pandas, sklearn.ensemble.RandomForestRegressor, shap This function first generates a random dataset, then fits a RandomForestRegressor model to it, and then uses the SHAP library to interpret the model's predictions and generate SHAP values. 2024-12-16 12:12:12 Function 4 views