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
| class NeuMF(torch.nn.Module): | |
| def __init__(self, config): | |
| super(NeuMF, self).__init__() | |
| #mf part | |
| self.embedding_user_mf = torch.nn.Embedding(num_embeddings=self.num_users, embedding_dim=self.latent_dim_mf) | |
| self.embedding_item_mf = torch.nn.Embedding(num_embeddings=self.num_items, embedding_dim=self.latent_dim_mf) | |
| #mlp part | |
| self.embedding_user_mlp = torch.nn.Embedding(num_embeddings=self.num_users, embedding_dim=self.latent_dim_mlp) |
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 re | |
| import requests | |
| import js2py | |
| def getContent(url): | |
| javascript=js2py.EvalJs() | |
| javascript.eval(requests.get(re.search("(https?://.*?\.[a-zA-Z0-9.]{0,20})",url).group(1)+"/aes.js").text) | |
| return requests.get(url, headers={"Cookie":javascript.eval(re.search("\<script\>(fu.*?;)\<", requests.get(url).text).group(1).replace("document.cookie", "cookie").replace("location.", "")+"cookie")}) | |
| print(getContent("http://krypton-byte.byethost5.com/")) |
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
| #!/usr/bin/env python | |
| # Dependencies: | |
| # ffmpeg: https://www.ffmpeg.org/download.html | |
| # fpcalc: https://acoustid.org/chromaprint | |
| from datetime import datetime | |
| import os | |
| import os.path | |
| import json | |
| import math | |
| import shutil |
OlderNewer