
Security News
Potemkin Understanding in LLMs: New Study Reveals Flaws in AI Benchmarks
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
AI GitHub is a Python package that allows you to search for GitHub repositories using the GitHub API. It provides a simple interface to search for repositories based on different criteria.
You can install the package using pip:
pip install github-ai
import github_ai
# Basic search
results = github_ai.search(query="machine learning")
print(f"Found {results['total_count']} repositories.")
for repo in results['items']:
print(f"Name: {repo['name']}")
print(f"Owner: {repo['owner']['login']}")
print(f"Stars: {repo['stargazers_count']}")
print(f"Forks: {repo['forks_count']}")
print(f"URL: {repo['html_url']}")
print('-' * 40)
import github_ai
# Search with pagination
results = github_ai.search(query="machine learning", per_page=5, page=1)
print(f"Found {results['total_count']} repositories.")
for repo in results['items']:
print(f"Name: {repo['name']}")
print(f"Owner: {repo['owner']['login']}")
print(f"Stars: {repo['stargazers_count']}")
print(f"Forks: {repo['forks_count']}")
print(f"URL: {repo['html_url']}")
print('-' * 40)
import github_ai
# Search repositories by a specific user
results = github_ai.search_by_user(user="username")
print(f"Found {results['total_count']} repositories.")
for repo in results['items']:
print(f"Name: {repo['name']}")
print(f"Owner: {repo['owner']['login']}")
print(f"Stars: {repo['stargazers_count']}")
print(f"Forks: {repo['forks_count']}")
print(f"URL: {repo['html_url']}")
print('-' * 40)
import github_ai
# Search repositories by programming language
results = github_ai.search_by_language(language="python")
print(f"Found {results['total_count']} Python repositories.")
for repo in results['items']:
print(f"Name: {repo['name']}")
print(f"Owner: {repo['owner']['login']}")
print(f"Stars: {repo['stargazers_count']}")
print(f"Forks: {repo['forks_count']}")
print(f"URL: {repo['html_url']}")
print('-' * 40)
import github_ai
# Search repositories by topic
results = github_ai.search_by_topic(topic="data science")
print(f"Found {results['total_count']} Data Science repositories.")
for repo in results['items']:
print(f"Name: {repo['name']}")
print(f"Owner: {repo['owner']['login']}")
print(f"Stars: {repo['stargazers_count']}")
print(f"Forks: {repo['forks_count']}")
print(f"URL: {repo['html_url']}")
print('-' * 40)
import github_ai
import os
try:
# Search with pagination
results = github_ai.search(query="machine learning", per_page=5, page=1)
def format_search_results(results):
formatted_results = []
for index, repo in enumerate(results['items'], start=1):
formatted_result = f"[{index:02d}] {repo['name']} - {repo['html_url']}"
print(formatted_result)
formatted_results.append(repo['html_url'])
return formatted_results
formatted_results = format_search_results(results)
except Exception as e:
print(f"An error occurred: {e}")
# Get user input
git_index = input("Enter the number of the repository to download: ")
try:
git_index = int(git_index)
if 1 <= git_index <= len(formatted_results):
repo_url = formatted_results[git_index - 1]
os.system(f"git clone {repo_url}")
else:
print("Invalid number entered.")
except ValueError:
print("Please enter a valid number.")
import github_ai
# Search repositories by stars
results = github_ai.search(query="stars:>1000", per_page=10)
print(f"Found {results['total_count']} repositories with more than 1000 stars.")
for repo in results['items']:
print(f"Name: {repo['name']}")
print(f"Owner: {repo['owner']['login']}")
print(f"Stars: {repo['stargazers_count']}")
print(f"Forks: {repo['forks_count']}")
print(f"URL: {repo['html_url']}")
print('-' * 40)
Thank you for using AI GitHub! If you find it useful, consider starring the repository on GitHub.
Thank you for using AI GitHub! If you find it useful, consider starring the repository on GitHub.
FAQs
A tool to search GitHub repositories using the GitHub API
We found that github-ai demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.