This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import faiss | |
from sentence_transformers import SentenceTransformer | |
from sklearn.neighbors import NearestNeighbors | |
from tqdm import tqdm | |
# CONFIG - IMPROVED | |
N = 100_000 | |
Qn = 2_000 | |
M_MAX = 8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function autoCompleteUdemy() { | |
const interval = setInterval(() => { | |
// Handle the accordion toggle buttons: Open any closed panels | |
const accordionToggles = document.querySelectorAll('.js-panel-toggler[aria-expanded="false"]'); | |
accordionToggles.forEach((toggle) => { | |
toggle.click(); // Simulate click to expand section | |
console.log("Expanded section"); | |
}); | |
// Find the checkbox to mark as complete (if not already checked) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const reducer = (state = [], action) => { | |
if (action.type === 'split'){ | |
return action.payload.split('') | |
} | |
return state | |
}; | |
const store = Redux.createStore(reducer); | |
//displays empty array (state = []) | |
store.getState(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io.restassured.RestAssured; | |
import org.json.JSONException; | |
import org.json.JSONObject; | |
import org.junit.Before; | |
import org.junit.Test; | |
import static io.restassured.RestAssured.given; | |
import static org.hamcrest.CoreMatchers.hasItems; | |
import static org.hamcrest.core.Is.is; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins { | |
id 'java' | |
} | |
group 'test' | |
version '1.0-SNAPSHOT' | |
sourceCompatibility = 1.8 | |
repositories { |