Skip to content

Commit

Permalink
Merge branch 'main' into test2
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjay-kv committed Aug 28, 2024
2 parents ddedfab + c066a28 commit 9d8cdc7
Show file tree
Hide file tree
Showing 11 changed files with 475 additions and 84 deletions.
2 changes: 2 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Contributor Covenant Code of Conduct

We follow the [Code of Conduct](https://recodehive.github.io/awesome-github-profiles/pages/exploremore.html#) to ensure a welcoming and inclusive community. Please read and adhere to the guidelines.

## Our Pledge

We as members, contributors, and leaders pledge to make participation in our
Expand Down
1 change: 1 addition & 0 deletions Website/assets/Images/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Website/assets/Images/machine-learning-repos.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Website/assets/Images/recodehive.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Website/assets/Images/scrape-ml.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
200 changes: 144 additions & 56 deletions Website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,23 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<meta name="title" content="Machine Learning Repositories">
<meta name="description"
content="A curated collection of diverse machine learning repositories available on GitHub, presented by the RecodeHive community">
<meta name="keywords"
content="machine learning, machine learning repositories, machine learning repos, machine learning recode hive, recode hive, recode hive ml repos, recode give ml, ml, ml repositories, github repositories ml, machine learning github repositories">
<meta name="robots" content="index, follow">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="language" content="English">
<meta name="revisit-after" content="1 days">
<meta name="author" content="Recode Hive">
<meta property="og:type" content="website" />
<!-- <meta property="og:url" content="url" /> define URL when deployed -->
<meta property="og:description"
content="A curated collection of diverse machine learning repositories available on GitHub, presented by the RecodeHive community" />
<title>Machine Learning Repositories</title>
<!-- <link rel="canonical" href="url-here" /> define base(root) link of deployment here -->
<link rel="stylesheet" href="styles.css">
<link rel="icon" href="/assets/recode-hive.png" type="image/png"> <!-- Added favicon -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
Expand Down Expand Up @@ -33,7 +49,7 @@
</li>
<li>
<button id="toggle-dark-mode">
<i class="fas fa-moon"></i>
<i class="fas fa-moon"></i>
</button>
</li>
</div>
Expand All @@ -59,58 +75,58 @@ <h2>Welcome to the <span>Machine Learning Repositories</span></h2>
</section>

<!-- Statistics Cards -->
<section id="statistics-cards">
<h2>Repository Statistics</h2>
<div class="stats-grid">
<div class="stat-card">
<i class="fas fa-star stat-icon"></i>
<h3>Total Stars</h3>
<p id="total-stars">Loading...</p>
</div>
<div class="stat-card">
<i class="fas fa-code-branch stat-icon"></i>
<h3>Total Forks</h3>
<p id="total-forks">Loading...</p>
</div>
<div class="stat-card">
<i class="fas fa-exclamation-circle stat-icon"></i>
<h3>Open Issues</h3>
<p id="open-issues">Loading...</p>
</div>
<div class="stat-card">
<i class="fas fa-balance-scale stat-icon"></i>
<h3>License</h3>
<p id="license">Loading...</p>
</div>
<div class="stat-card">
<i class="fas fa-database stat-icon"></i>
<h3>Repository Size</h3>
<p id="repo-size">Loading...</p>
</div>
<div class="stat-card">
<i class="fas fa-code stat-icon"></i>
<h3>Most Used Language</h3>
<p id="most-used-language">Loading...</p>
<section id="statistics-cards">
<h2>Repository Statistics</h2>
<div class="stats-grid">
<div class="stat-card">
<i class="fas fa-star stat-icon"></i>
<h3>Total Stars</h3>
<p id="total-stars">Loading...</p>
</div>
<div class="stat-card">
<i class="fas fa-code-branch stat-icon"></i>
<h3>Total Forks</h3>
<p id="total-forks">Loading...</p>
</div>
<div class="stat-card">
<i class="fas fa-exclamation-circle stat-icon"></i>
<h3>Open Issues</h3>
<p id="open-issues">Loading...</p>
</div>
<div class="stat-card">
<i class="fas fa-balance-scale stat-icon"></i>
<h3>License</h3>
<p id="license">Loading...</p>
</div>
<div class="stat-card">
<i class="fas fa-database stat-icon"></i>
<h3>Repository Size</h3>
<p id="repo-size">Loading...</p>
</div>
<div class="stat-card">
<i class="fas fa-code stat-icon"></i>
<h3>Most Used Language</h3>
<p id="most-used-language">Loading...</p>
</div>
</div>
</div>
</section>

<!-- Languages and Milestone-->

<section class="language-and-milestone">
<section id="languages">
<div class="text-base">Languages</div>
<ul id="language-list"></ul>
</section>
<section id="milestone">
<div class="text-base">Milestones Progress</div>
<div class="chart-container">
<canvas id="milestoneChart"></canvas>
<div class="legend">

<!-- Languages and Milestone-->

<section class="language-and-milestone">
<section id="languages">
<div class="text-base">Languages</div>
<ul id="language-list"></ul>
</section>
<section id="milestone">
<div class="text-base">Milestones Progress</div>
<div class="chart-container">
<canvas id="milestoneChart"></canvas>
<div class="legend">
</div>
</div>
</div>
</section>
</section>
</section>

<section id="repo-list">
<h2>Repositories</h2>
Expand Down Expand Up @@ -193,7 +209,9 @@ <h3>Recommendation Models</h3>
</div>
</div>
</section>



<section id="testimonials" class="testimonial-section">
<h2>Testimonials</h2>
<h3>Here's what our users are saying about their experince with Recodehive</h3>
Expand All @@ -216,16 +234,45 @@ <h3>John Doe</h3>
</div>
</section>


<!-- GitHub Repositories Section -->
<section class="github-section">
<h2>Here are some of our active GitHub repositories</h2>
<p>Everyone is welcome to come and contribute to our open source projects.</p>

<div class="github-container">
<!-- Repository Buttons -->
<div class="github-buttons">
<button onclick="changeImage('assets/Images/awesome-github-profiles.png')">Awesome GitHub Profiles</button>
<button onclick="changeImage('assets/Images/machine-learning-repos.png')">Machine Learning Repo</button>
<button onclick="changeImage('assets/Images/scrape-ml.png')">Scrape ML</button>
</div>

<!-- Image Display -->
<div class="github-image">
<img id="repoImage" src="assets/Images/recodehive.png" alt="GitHub Repository">
</div>
</div>
</section>

<script>
function changeImage(image) {
document.getElementById('repoImage').src = image;
}
</script>



</main>

<!-- Chatbot Button -->
<div class="chatbot-button" id="chatbot-button">
<img src="assets/chatbot.png" height="50px" width="50px" id="chatbot-img" class="floating">
<img src="assets/chatbot.png" height="50px" width="50px" id="chatbot-img" class="floating" alt="chatbot">
<div class="tooltip">Welcome to RecodeHive - Machine Learning Repos, How can we help you?</div>
</div>

<!-- Chatbox -->
<div class="chatbot" id="chatbot">
<!-- Chatbox -->
<div class="chatbot" id="chatbot">
<div class="chatbot-header">
Recodehive's Chatbot
<span class="close-btn" id="close-chatbot">&times;</span>
Expand All @@ -249,23 +296,64 @@ <h3>John Doe</h3>
<path d="M256 512c70.684 0 134.695-28.658 181.019-74.981C483.342 390.695 512 326.691 512 256s-28.658-134.695-74.981-181.019C390.695 28.658 326.691 0 256 0S121.305 28.658 74.981 74.981C28.658 121.305 0 185.309 0 256s28.658 134.695 74.981 181.019C121.305 483.342 185.309 512 256 512zm-79.003-200.641c-30.983 17.861-46.316-6.963-29.012-25.063l88.741-101.046c16.129-16.136 22.426-16.136 38.563 0l88.741 101.046c17.18 18.187 2.203 42.867-29.02 25.063l-79.003-46.932-79.01 46.932z"/>
</svg>
</button>


<!-- Side Icons -->


<div class="side-icons">
<div class="icon-content">
<a href="https://www.facebook.com/recodehive" target="_blank" aria-label="Facebook" data-social="facebook">
<i class="fab fa-facebook-f"></i>
<div class="filled"></div>
</a>
</div>
<div class="icon-content">
<a href="https://www.linkedin.com/in/sanjay-k-v/" target="_blank" aria-label="LinkedIn" data-social="linkedin">
<i class="fab fa-linkedin-in"></i>
<div class="filled"></div>
</a>
</div>
<div class="icon-content">
<a href="https://twitter.com/sanjay_kv" target="_blank" aria-label="Twitter" data-social="twitter">
<i class="fab fa-twitter"></i>
<div class="filled"></div>
</a>
</div>
<div class="icon-content">
<a href="https://youtube.com" target="_blank" aria-label="YouTube" data-social="youtube">
<i class="fab fa-youtube"></i>
<div class="filled"></div>
</a>
</div>
<div class="icon-content">
<a href="https://github.com/recodehive" target="_blank" aria-label="GitHub" data-social="github">
<i class="fab fa-github"></i>
<div class="filled"></div>
</a>
</div>
</div>


<footer class="footer">
<div>&copy; <span id="year"></span> Machine Learning Repos - <a href="https://github.com/recodehive" id="footer-link">RecodeHive</a>. All rights reserved.</div>
<div class="code-of-conduct-button">
<a href="conduct.html">View Code of Conduct</a>
</div>
</footer>




<script>
const year = new Date().getFullYear();
document.getElementById("year").textContent = year;
</script>

<script src="js/script.js"></script>

<script>
function changeImage(image) {
document.getElementById('repoImage').src = image;
}
</script>
</body>
</html>
</html>
38 changes: 38 additions & 0 deletions Website/js/models.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// Function to fetch and display subdirectories (models) of the selected directory
async function fetchSubdirectories() {
const params = new URLSearchParams(window.location.search);
const directoryName = params.get('directory');
const subdirectoriesList = document.getElementById('subdirectories');

try {
const response = await fetch(`https://api.github.com/repos/recodehive/machine-learning-repos/contents/${directoryName}`);
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);
}
const data = await response.json();
const subdirectories = data.filter(item => item.type === 'dir');

subdirectories.forEach(subdirectory => {
const li = document.createElement('li');
li.classList.add('card');

const h3 = document.createElement('h3');
h3.textContent = subdirectory.name;

const a = document.createElement('a');
a.href = subdirectory.html_url;
a.textContent = 'View Repository';
a.classList.add('btn-view-repo');

li.appendChild(h3);
li.appendChild(a);
subdirectoriesList.appendChild(li);
});
} catch (error) {
console.error('Error fetching subdirectories:', error);
subdirectoriesList.innerHTML = '<li class="card">Failed to load models.</li>';
}
}

// Call the function when the page loads
document.addEventListener('DOMContentLoaded', fetchSubdirectories);
55 changes: 28 additions & 27 deletions Website/js/script.js
Original file line number Diff line number Diff line change
@@ -1,36 +1,37 @@
document.addEventListener('DOMContentLoaded', function() {
// Function to fetch and display directories
async function fetchDirectories() {
const directoriesList = document.getElementById('directories');
try {
const response = await fetch('/api/github/repos');
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);
}
const data = await response.json();
const directories = data.filter(item => item.type === 'dir' && item.name !== 'Website' && item.name !== '.github');
// Function to fetch and display directories
async function fetchDirectories() {
const directoriesList = document.getElementById('directories');
try {
const response = await fetch('/api/github/repos');
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);
}
const data = await response.json();
const directories = data.filter(item => item.type === 'dir' && item.name !== 'Website' && item.name !== '.github');

directories.forEach(directory => {
const li = document.createElement('li');
li.classList.add('card');
directories.forEach(directory => {
const li = document.createElement('li');
li.classList.add('card');

const h3 = document.createElement('h3');
h3.textContent = directory.name;
const h3 = document.createElement('h3');
h3.textContent = directory.name;

const a = document.createElement('a');
a.href = directory.html_url;
a.textContent = 'View Repository';
a.classList.add('btn-view-repo');
const a = document.createElement('a');
a.href = `models.html?directory=${encodeURIComponent(directory.name)}`;
a.textContent = 'View Models';
a.classList.add('btn-view-repo');

li.appendChild(h3);
li.appendChild(a);
directoriesList.appendChild(li);
});
} catch (error) {
console.error('Error fetching directories:', error);
directoriesList.innerHTML = '<li class="card">Failed to load directories.</li>';
}
li.appendChild(h3);
li.appendChild(a);
directoriesList.appendChild(li);
});
} catch (error) {
console.error('Error fetching directories:', error);
directoriesList.innerHTML = '<li class="card">Failed to load directories.</li>';
}
}

// Function to fetch and count subdirectories for each directory
async function fetchSubdirectoryCounts() {
try {
Expand Down
Loading

0 comments on commit 9d8cdc7

Please sign in to comment.