index
int64
repo_name
string
branch_name
string
path
string
content
string
import_graph
string
45,396,821
lea98/search_books
refs/heads/main
/views/add_oglas.py
import os from flask import Blueprint, render_template, current_app, url_for from flask_login import login_required, current_user from flask_wtf import FlaskForm from flask_wtf.file import FileRequired from werkzeug.utils import redirect, secure_filename from datetime import datetime from wtforms import StringField, T...
{"/app.py": ["/beautifulsoup_bookstores/znanje.py", "/helpers/general.py", "/selenium_bookstores/knjiga.py", "/views/__init__.py", "/helpers/models.py"], "/views/edit_oglas.py": ["/helpers/models.py"], "/views/register.py": ["/helpers/models.py"], "/views/dashboard.py": ["/helpers/models.py", "/views/add_oglas.py"], "/...
45,396,822
lea98/search_books
refs/heads/main
/views/logout.py
from flask import Blueprint, url_for from flask_login import login_required, logout_user from werkzeug.utils import redirect bp = Blueprint("logout", __name__) @bp.route("/logout") @login_required def logout(): logout_user() return redirect(url_for("landing.index"))
{"/app.py": ["/beautifulsoup_bookstores/znanje.py", "/helpers/general.py", "/selenium_bookstores/knjiga.py", "/views/__init__.py", "/helpers/models.py"], "/views/edit_oglas.py": ["/helpers/models.py"], "/views/register.py": ["/helpers/models.py"], "/views/dashboard.py": ["/helpers/models.py", "/views/add_oglas.py"], "/...
45,396,823
lea98/search_books
refs/heads/main
/views/__init__.py
from views import ( landing, add_oglas, dashboard, delete_oglas, edit_oglas, handle_data, login, logout, oglasnik, register, scraper, ) blueprints = ( landing, add_oglas, dashboard, delete_oglas, edit_oglas, handle_data, login, logout, ogl...
{"/app.py": ["/beautifulsoup_bookstores/znanje.py", "/helpers/general.py", "/selenium_bookstores/knjiga.py", "/views/__init__.py", "/helpers/models.py"], "/views/edit_oglas.py": ["/helpers/models.py"], "/views/register.py": ["/helpers/models.py"], "/views/dashboard.py": ["/helpers/models.py", "/views/add_oglas.py"], "/...
45,396,824
lea98/search_books
refs/heads/main
/views/landing.py
from flask import Blueprint, render_template bp = Blueprint("landing", __name__) @bp.route("/", methods=["GET", "POST"]) def index(): return render_template("landing.html")
{"/app.py": ["/beautifulsoup_bookstores/znanje.py", "/helpers/general.py", "/selenium_bookstores/knjiga.py", "/views/__init__.py", "/helpers/models.py"], "/views/edit_oglas.py": ["/helpers/models.py"], "/views/register.py": ["/helpers/models.py"], "/views/dashboard.py": ["/helpers/models.py", "/views/add_oglas.py"], "/...
45,409,860
CadeSummers/Cryptocurrency_Analysis
refs/heads/main
/crypto_analysis.py
from bs4 import BeautifulSoup as bs from urllib.request import urlopen ###Project Start: 6/14/21 ###Project Last Updated: 6/21/21 ####### Functions ####### #TODO this function does not work properly, but the for loop below does -- figure out why #parsing top ten cryptocurrencies and other crypto currencies ...
{"/merge_coin_dicts.py": ["/grab_others.py", "/toptendatagrab.py"], "/export_coin_info.py": ["/merge_coin_dicts.py"], "/export_to_database.py": ["/merge_coin_dicts.py"]}
45,459,557
xfluo2014/Priority-aware-LND-simulator
refs/heads/main
/p_mailbox.py
import random import time from pq import MyPriorityQueue from multiprocessing import Process,Manager from multiprocessing.managers import SyncManager from channels import channel import datetime class MyManager(SyncManager): pass MyManager.register("PriorityQueue", MyPriorityQueue) # Register a shared PriorityQu...
{"/simulation_lnd.py": ["/channels.py", "/p_peers.py", "/payments.py", "/a_core.py"], "/p_mailbox.py": ["/pq.py", "/channels.py"], "/a_core.py": ["/a_env.py", "/utilities.py"], "/p_peers.py": ["/p_mailbox.py", "/payments.py", "/a_core.py"]}
45,459,558
xfluo2014/Priority-aware-LND-simulator
refs/heads/main
/pq.py
import queue,heapq from heapq import heappush, heappop class MyPriorityQueue(queue.Queue): def _init(self,maxsize): self.queue = [] def _qsize(self): return len(self.queue) def _put(self,entry): heappush(self.queue,entry) def remove(self,t): idx_list = [...
{"/simulation_lnd.py": ["/channels.py", "/p_peers.py", "/payments.py", "/a_core.py"], "/p_mailbox.py": ["/pq.py", "/channels.py"], "/a_core.py": ["/a_env.py", "/utilities.py"], "/p_peers.py": ["/p_mailbox.py", "/payments.py", "/a_core.py"]}
45,471,747
lucascplusmart/Django
refs/heads/master
/blog_dj/app_blog/migrations/0003_auto_20210105_1546.py
# Generated by Django 3.1.4 on 2021-01-05 18:46 from django.db import migrations, models import django.db.models.manager class Migration(migrations.Migration): dependencies = [ ('app_blog', '0002_auto_20210102_1603'), ] operations = [ migrations.AlterModelManagers( name='pos...
{"/e_shop/product/admin.py": ["/e_shop/product/models.py"], "/blog_dj/app_blog/admin.py": ["/blog_dj/app_blog/models.py"], "/app_enquetes/polls/views.py": ["/app_enquetes/polls/models.py"], "/app_enquetes/polls/admin.py": ["/app_enquetes/polls/models.py"], "/blog_dj/app_blog/forms.py": ["/blog_dj/app_blog/models.py"], ...
45,471,748
lucascplusmart/Django
refs/heads/master
/blog_dj/accounts/forms.py
from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User class UserCreationFormWithEmail(UserCreationForm): email = forms.EmailField(required=True, help_text="Obrigatorio digite um e-mail valido") class Meta: model = User fi...
{"/e_shop/product/admin.py": ["/e_shop/product/models.py"], "/blog_dj/app_blog/admin.py": ["/blog_dj/app_blog/models.py"], "/app_enquetes/polls/views.py": ["/app_enquetes/polls/models.py"], "/app_enquetes/polls/admin.py": ["/app_enquetes/polls/models.py"], "/blog_dj/app_blog/forms.py": ["/blog_dj/app_blog/models.py"], ...
45,471,749
lucascplusmart/Django
refs/heads/master
/blog_dj/app_blog/admin.py
from django.contrib import admin from .models import Post, Category # Register your models here. @admin.register(Post) class PostAdmin(admin.ModelAdmin): list_display = ('title','slug','author','published','status') search_fields = ('title','content') list_filter = ('status','created','published','author')...
{"/e_shop/product/admin.py": ["/e_shop/product/models.py"], "/blog_dj/app_blog/admin.py": ["/blog_dj/app_blog/models.py"], "/app_enquetes/polls/views.py": ["/app_enquetes/polls/models.py"], "/app_enquetes/polls/admin.py": ["/app_enquetes/polls/models.py"], "/blog_dj/app_blog/forms.py": ["/blog_dj/app_blog/models.py"], ...
45,471,750
lucascplusmart/Django
refs/heads/master
/app_enquetes/polls/views.py
# Create your views here. ''' Uma view é um “tipo” de página Web em sua aplicação Django que em geral serve a uma função específica e tem um template específico. Por exemplo, => em uma aplicação de blog, você deve ter as seguintes views: -Página inicial do blog - exibe os artigos mais recentes. -Página de ...
{"/e_shop/product/admin.py": ["/e_shop/product/models.py"], "/blog_dj/app_blog/admin.py": ["/blog_dj/app_blog/models.py"], "/app_enquetes/polls/views.py": ["/app_enquetes/polls/models.py"], "/app_enquetes/polls/admin.py": ["/app_enquetes/polls/models.py"], "/blog_dj/app_blog/forms.py": ["/blog_dj/app_blog/models.py"], ...
45,471,751
lucascplusmart/Django
refs/heads/master
/app_enquetes/polls/admin.py
from django.contrib import admin # Register your models here. from .models import Question, Choice ''' => admin.site.register(Question) => admin.site.register(Choice) Ao registrarmos o modelo de Question através da linha admin.site.register(Question), o Django constrói um formulário padrão para representá-lo. ...
{"/e_shop/product/admin.py": ["/e_shop/product/models.py"], "/blog_dj/app_blog/admin.py": ["/blog_dj/app_blog/models.py"], "/app_enquetes/polls/views.py": ["/app_enquetes/polls/models.py"], "/app_enquetes/polls/admin.py": ["/app_enquetes/polls/models.py"], "/blog_dj/app_blog/forms.py": ["/blog_dj/app_blog/models.py"], ...
45,471,752
lucascplusmart/Django
refs/heads/master
/app_enquetes/polls/urls.py
from django.urls import path from . import views #A função path() são passado quatro argumentos, dois obrigatórios: route e view, #e dois opcionais: kwargs, e name. Neste ponto, vale a pena revisar para o que estes argumentos servem. ''' app_name = 'polls' urlpatterns = [ # ex: /polls/ path('', views.index...
{"/e_shop/product/admin.py": ["/e_shop/product/models.py"], "/blog_dj/app_blog/admin.py": ["/blog_dj/app_blog/models.py"], "/app_enquetes/polls/views.py": ["/app_enquetes/polls/models.py"], "/app_enquetes/polls/admin.py": ["/app_enquetes/polls/models.py"], "/blog_dj/app_blog/forms.py": ["/blog_dj/app_blog/models.py"], ...
45,471,753
lucascplusmart/Django
refs/heads/master
/blog_dj/app_blog/forms.py
from ckeditor.widgets import CKEditorWidget from .models import Post from django import forms class PostForm(forms.ModelForm): #title = forms.CharField(max_length=100) content = forms.CharField(widget=CKEditorWidget()) class Meta: model = Post fields = fields = ('title','content','image'...
{"/e_shop/product/admin.py": ["/e_shop/product/models.py"], "/blog_dj/app_blog/admin.py": ["/blog_dj/app_blog/models.py"], "/app_enquetes/polls/views.py": ["/app_enquetes/polls/models.py"], "/app_enquetes/polls/admin.py": ["/app_enquetes/polls/models.py"], "/blog_dj/app_blog/forms.py": ["/blog_dj/app_blog/models.py"], ...
45,471,754
lucascplusmart/Django
refs/heads/master
/app_enquetes/polls/tests.py
# Create your tests here. import datetime from django.test import TestCase from django.utils import timezone from .models import Question class QuestionModelTests(TestCase): def test_was_published_recently_with_future_question(self): """ was_published_recently() returns False for questions w...
{"/e_shop/product/admin.py": ["/e_shop/product/models.py"], "/blog_dj/app_blog/admin.py": ["/blog_dj/app_blog/models.py"], "/app_enquetes/polls/views.py": ["/app_enquetes/polls/models.py"], "/app_enquetes/polls/admin.py": ["/app_enquetes/polls/models.py"], "/blog_dj/app_blog/forms.py": ["/blog_dj/app_blog/models.py"], ...
45,471,755
lucascplusmart/Django
refs/heads/master
/blog_dj/app_blog/models.py
from django.db import models from django.utils import timezone from django.contrib.auth.models import User from django.urls import reverse from django.utils.text import slugify from django.db.models.signals import post_save from django.dispatch import receiver from ckeditor.fields import RichTextField from django....
{"/e_shop/product/admin.py": ["/e_shop/product/models.py"], "/blog_dj/app_blog/admin.py": ["/blog_dj/app_blog/models.py"], "/app_enquetes/polls/views.py": ["/app_enquetes/polls/models.py"], "/app_enquetes/polls/admin.py": ["/app_enquetes/polls/models.py"], "/blog_dj/app_blog/forms.py": ["/blog_dj/app_blog/models.py"], ...
45,471,756
lucascplusmart/Django
refs/heads/master
/app_enquetes/app_enquetes/urls.py
"""app_enquetes URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-...
{"/e_shop/product/admin.py": ["/e_shop/product/models.py"], "/blog_dj/app_blog/admin.py": ["/blog_dj/app_blog/models.py"], "/app_enquetes/polls/views.py": ["/app_enquetes/polls/models.py"], "/app_enquetes/polls/admin.py": ["/app_enquetes/polls/models.py"], "/blog_dj/app_blog/forms.py": ["/blog_dj/app_blog/models.py"], ...
45,471,757
lucascplusmart/Django
refs/heads/master
/blog_dj/social/admin.py
from django.contrib import admin from .models import Link # Register your models here. @admin.register(Link) class LinkManager(admin.ModelAdmin): readonly_fields = ('created','changed') list_display = ('chave','created','changed')
{"/e_shop/product/admin.py": ["/e_shop/product/models.py"], "/blog_dj/app_blog/admin.py": ["/blog_dj/app_blog/models.py"], "/app_enquetes/polls/views.py": ["/app_enquetes/polls/models.py"], "/app_enquetes/polls/admin.py": ["/app_enquetes/polls/models.py"], "/blog_dj/app_blog/forms.py": ["/blog_dj/app_blog/models.py"], ...
45,471,758
lucascplusmart/Django
refs/heads/master
/blog_dj/accounts/views.py
from django.shortcuts import render from django.contrib.auth.forms import UserCreationForm from django.urls import reverse_lazy from django.views import generic from .forms import UserCreationFormWithEmail # Create your views here. class SignUpView(generic.CreateView): form_class = UserCreationFormWithEma...
{"/e_shop/product/admin.py": ["/e_shop/product/models.py"], "/blog_dj/app_blog/admin.py": ["/blog_dj/app_blog/models.py"], "/app_enquetes/polls/views.py": ["/app_enquetes/polls/models.py"], "/app_enquetes/polls/admin.py": ["/app_enquetes/polls/models.py"], "/blog_dj/app_blog/forms.py": ["/blog_dj/app_blog/models.py"], ...
45,471,759
lucascplusmart/Django
refs/heads/master
/blog_dj/contact/views.py
from django.shortcuts import render from .forms import ContactForm from django.core.mail import EmailMessage # Create your views here. def contact(request): send = False form = ContactForm(request.POST or None) if form.is_valid(): nome = request.POST.get('nome','') email = request.POS...
{"/e_shop/product/admin.py": ["/e_shop/product/models.py"], "/blog_dj/app_blog/admin.py": ["/blog_dj/app_blog/models.py"], "/app_enquetes/polls/views.py": ["/app_enquetes/polls/models.py"], "/app_enquetes/polls/admin.py": ["/app_enquetes/polls/models.py"], "/blog_dj/app_blog/forms.py": ["/blog_dj/app_blog/models.py"], ...
45,471,760
lucascplusmart/Django
refs/heads/master
/app_enquetes/polls/models.py
# Create your models here. from django.db import models from django.utils import timezone import datetime ''' => Um modelo é a fonte única e definitiva de dados sobre os seus dados. Ele contém os campos e comportamentos essenciais dos dados que você está gravando. Geralmente, cada modelo mapeia para uma única tabela...
{"/e_shop/product/admin.py": ["/e_shop/product/models.py"], "/blog_dj/app_blog/admin.py": ["/blog_dj/app_blog/models.py"], "/app_enquetes/polls/views.py": ["/app_enquetes/polls/models.py"], "/app_enquetes/polls/admin.py": ["/app_enquetes/polls/models.py"], "/blog_dj/app_blog/forms.py": ["/blog_dj/app_blog/models.py"], ...
45,564,934
adrianborkowski/apod_pocket
refs/heads/dev
/request/migrations/0006_auto_20151018_1904.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import datetime from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('request', '0005_data_dat'), ] operations = [ migrations.RemoveField( ...
{"/request/get_json.py": ["/request/models.py"], "/request/get_older_jsons.py": ["/request/models.py"], "/request/get_newest_json.py": ["/request/models.py"], "/request/admin.py": ["/request/models.py"]}
45,564,935
adrianborkowski/apod_pocket
refs/heads/dev
/update.py
from apscheduler.schedulers.blocking import BlockingScheduler sched = BlockingScheduler() @sched.scheduled_job('interval', hours=1) def timed_job(): from request import get_newest_json sched.start()
{"/request/get_json.py": ["/request/models.py"], "/request/get_older_jsons.py": ["/request/models.py"], "/request/get_newest_json.py": ["/request/models.py"], "/request/admin.py": ["/request/models.py"]}
45,564,936
adrianborkowski/apod_pocket
refs/heads/dev
/request/get_older_jsons.py
from urllib.request import urlopen from .models import Data from datetime import date, timedelta DATE = date(2016, 1, 8) # DATE OF BEGIN ADDING JSONS' DATA TO DB(YYYY, MM, DD) for i in range(5): # HOW MANY DAYS ADD (SINCE DATE FROM VAR. DATE TO PAST) past_url = 'https://api.nasa.gov/planetary/apod?concept_tags=...
{"/request/get_json.py": ["/request/models.py"], "/request/get_older_jsons.py": ["/request/models.py"], "/request/get_newest_json.py": ["/request/models.py"], "/request/admin.py": ["/request/models.py"]}
45,564,937
adrianborkowski/apod_pocket
refs/heads/dev
/request/get_newest_json.py
from urllib.request import urlopen from .models import Data from datetime import date URL = 'https://api.nasa.gov/planetary/apod?concept_tags=True&hd=True&api_key=DEMO_KEY' d = eval(urlopen(URL).read().decode("utf-8")) # CREATING DICTIONARY WHICH INCLUDE CONTENT OF URL (JSON). qs = Data.objects.all() if qs.filter(ti...
{"/request/get_json.py": ["/request/models.py"], "/request/get_older_jsons.py": ["/request/models.py"], "/request/get_newest_json.py": ["/request/models.py"], "/request/admin.py": ["/request/models.py"]}
45,564,938
adrianborkowski/apod_pocket
refs/heads/dev
/request/migrations/0005_data_dat.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import datetime from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('request', '0004_auto_20151018_1850'), ] operations = [ migrations.AddF...
{"/request/get_json.py": ["/request/models.py"], "/request/get_older_jsons.py": ["/request/models.py"], "/request/get_newest_json.py": ["/request/models.py"], "/request/admin.py": ["/request/models.py"]}
45,564,939
adrianborkowski/apod_pocket
refs/heads/dev
/request/migrations/0003_auto_20151018_1342.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('request', '0002_auto_20151018_1255'), ] operations = [ migrations.AlterField( model_name='data', nam...
{"/request/get_json.py": ["/request/models.py"], "/request/get_older_jsons.py": ["/request/models.py"], "/request/get_newest_json.py": ["/request/models.py"], "/request/admin.py": ["/request/models.py"]}
45,564,940
adrianborkowski/apod_pocket
refs/heads/dev
/request/admin.py
from django.contrib import admin from .models import Data class DataAdmin(admin.ModelAdmin): search_fields = ('title', 'created_date') list_display = ('title', 'created_date', 'media_type', 'concepts') ordering = ['-created_date', ] admin.site.register(Data, DataAdmin)
{"/request/get_json.py": ["/request/models.py"], "/request/get_older_jsons.py": ["/request/models.py"], "/request/get_newest_json.py": ["/request/models.py"], "/request/admin.py": ["/request/models.py"]}
45,564,941
adrianborkowski/apod_pocket
refs/heads/dev
/request/models.py
from django.db import models MEDIA_TYPES = ( ('image', 'Image'), ('video', 'Video'), ) class Data(models.Model): title = models.CharField(max_length=150) created_date = models.DateField(null=True, blank=True) url = models.URLField() hd_url = models.URLField(null=True, blank=True) media_ty...
{"/request/get_json.py": ["/request/models.py"], "/request/get_older_jsons.py": ["/request/models.py"], "/request/get_newest_json.py": ["/request/models.py"], "/request/admin.py": ["/request/models.py"]}
45,697,272
animesh21/covid-vaccine-alerts
refs/heads/master
/main.py
from datetime import datetime from constants import DATETIME_FORMAT from cowin_client import CoWinClient from twilio_client import TwilioClient from utilities import get_active_users, get_active_district_ids, update_last_notified def send_alerts(): district_ids = get_active_district_ids() for district_id in ...
{"/tasks.py": ["/main.py"], "/setup.py": ["/constants.py"], "/main.py": ["/constants.py", "/cowin_client.py", "/twilio_client.py", "/utilities.py"], "/utilities.py": ["/constants.py"], "/test_cowin_client.py": ["/cowin_client.py"], "/add_user.py": ["/constants.py"]}
45,731,651
yudanta/dodolbots
refs/heads/main
/config.py
import os import sys from os import path from datetime import datetime, timedelta APP_NAME = 'Simple Chat App' BASEDIR = os.path.abspath(os.path.dirname(__file__)) # DEBUG DEBUG = True SECRET_KEY = 'ca2b84ac72a91a20cbda8be2d1f2c1fb7521' # telegram configs # TELEGRAM_BOT_TOKEN = '116624917:AAGVY6-uWzGQDESs-IBY...
{"/app/api/v_0_1/qa/__init__.py": ["/app/question_answering/__init__.py"], "/telegram/bot.py": ["/config.py"], "/app/__init__.py": ["/app/api/v_0_1/__init__.py"], "/run.py": ["/app/__init__.py"], "/app/tests/integrations/test_query_qa.py": ["/app/__init__.py"], "/telegram/serve.py": ["/telegram/bot.py", "/app/question_...
45,873,239
prakhar-ai/Hops-UI
refs/heads/main
/hops/views.py
from django.shortcuts import render import requests import json from django.http import HttpResponse from hops.models import OngoingJobs from django.http import JsonResponse from django.views.decorators.csrf import csrf_exempt # Create your views here. def home_page(request): return render(request,'base.html') de...
{"/hops/views.py": ["/hops/models.py"]}
45,914,965
zjustarstar/Pixelator
refs/heads/master
/pixelator_grid.py
import cv2 import numpy as np def process001(img, outH, outW): #对轮廓区域进行处理 image = img h0 = image.shape[0] # 高 w0 = image.shape[1] # 宽 if h0 == w0 and h0 % outH ==0: #正方形整除关系 Grid = h0/ outH if Grid < 40: pixel = Grid h, w = int(pixel * outH), int(pixel * outW)...
{"/main.py": ["/pixel_one.py", "/pixelator_grid.py"]}
45,914,966
zjustarstar/Pixelator
refs/heads/master
/KMeans.py
import cv2 import numpy as np from sklearn.cluster import KMeans import glob def calculate_perc(clusters): width = 300 palette = np.zeros((50, width, 3), np.uint8) steps = width / clusters.cluster_centers_.shape[0] for idx, centers in enumerate(clusters.cluster_centers_): palette[:, int(idx * s...
{"/main.py": ["/pixel_one.py", "/pixelator_grid.py"]}
45,914,967
zjustarstar/Pixelator
refs/heads/master
/main.py
import cv2 import pixelator_grid as pl import glob import os input_path = "F:\\PythonProj\\Pixelator\\testpic\\b2\\" output_folder = "result\\" outH = int(input('请输入目标输出高 H 的分辨率:')) outW = int(input('请输入目标输出宽 W 的分辨率:')) # 在当前目录自动生成用于保存的文件夹 if not os.path.exists(input_path+output_folder): os.makedirs(input_path+o...
{"/main.py": ["/pixel_one.py", "/pixelator_grid.py"]}
45,914,968
zjustarstar/Pixelator
refs/heads/master
/pixel_one.py
import cv2 import numpy as np import matplotlib.pyplot as plt from PIL import Image from collections import Counter import glob def get_colors(infile): #获得图片颜色 image = Image.open(infile) result = image.convert("P", palette=Image.ADAPTIVE) palette = result.getpalette() colors = list() color_count...
{"/main.py": ["/pixel_one.py", "/pixelator_grid.py"]}
45,932,593
carankt/FastSpeech2-1
refs/heads/hifi-fs2
/core/discriminator.py
import torch import torch.nn as nn import torch.nn.functional as F class Discriminator(nn.Module): def __init__(self): super(Discriminator, self).__init__() self.discriminator = nn.Sequential( nn.Conv2d(1, 16, kernel_size=3, stride=1, padding = 1), nn.LeakyReLU(0.2...
{"/nvidia_preprocessing.py": ["/utils/util.py", "/dataset/audio/pitch_mod.py", "/dataset/audio/energy.py"], "/core/variance_predictor.py": ["/core/modules.py"], "/dataset/ljspeech.py": ["/utils/util.py"], "/utils/fastspeech2_script.py": ["/core/variance_predictor.py", "/utils/util.py", "/core/encoder.py", "/core/module...
45,932,594
carankt/FastSpeech2-1
refs/heads/hifi-fs2
/core/variance_predictor.py
import torch import torch.nn.functional as F from typing import Optional from core.modules import LayerNorm class VariancePredictor(torch.nn.Module): def __init__( self, idim: int, n_layers: int = 2, n_chans: int = 256, out: int = 1, kernel_size: int = 3, dr...
{"/nvidia_preprocessing.py": ["/utils/util.py", "/dataset/audio/pitch_mod.py", "/dataset/audio/energy.py"], "/core/variance_predictor.py": ["/core/modules.py"], "/dataset/ljspeech.py": ["/utils/util.py"], "/utils/fastspeech2_script.py": ["/core/variance_predictor.py", "/utils/util.py", "/core/encoder.py", "/core/module...
45,978,032
vocart/Todo-App
refs/heads/master
/todo/urls.py
from . import views from django.urls import path urlpatterns = [ path('', views.home, name = 'home'), path('delete/<todo_title>/', views.delete_todo, name = 'delete_todo') ]
{"/todo/views.py": ["/todo/forms.py"]}
45,978,033
vocart/Todo-App
refs/heads/master
/todo/views.py
from django.shortcuts import render, redirect from django.http import HttpResponse from .models import Todo from .forms import TodoForm def home(request): form = TodoForm() todos = Todo.objects.all() todo_data = [] for todo in todos: todo_list = { 'name': todo.title, 'message': todo.message } todo...
{"/todo/views.py": ["/todo/forms.py"]}