index int64 | repo_name string | branch_name string | path string | content string | import_graph string |
|---|---|---|---|---|---|
41,387 | irmakcakmak/great-circle-distance | refs/heads/master | /point.py | import math
EARTH_RADIUS = 6378.137 # km
class Point:
def __init__(self, lat, lon):
if lat < -90.0 or lat > 90.0:
raise ValueError("Latitude must be between -90.0 and 90.0")
if lon < -180.0 or lon > 180.0:
raise ValueError("Longitude must be between -180.0 and 180.0")
... | {"/test/test_user.py": ["/user.py"], "/main.py": ["/point.py", "/user.py", "/reader.py"], "/test/test_point.py": ["/point.py"], "/test/test_reader.py": ["/reader.py"]} |
41,388 | irmakcakmak/great-circle-distance | refs/heads/master | /main.py | import argparse
import logging
from point import Point
from user import User
import reader
logging.basicConfig()
LOGGER = logging.getLogger(__name__)
LOGGER.setLevel(logging.INFO)
ORIGIN = (53.339428, -6.257664)
MAX_DIST = 100 # km
def latitude(lat):
lat = float(lat)
if lat < -90.0 or lat > 90.0:
... | {"/test/test_user.py": ["/user.py"], "/main.py": ["/point.py", "/user.py", "/reader.py"], "/test/test_point.py": ["/point.py"], "/test/test_reader.py": ["/reader.py"]} |
41,389 | irmakcakmak/great-circle-distance | refs/heads/master | /user.py | class User:
def __init__(self, user_id, name):
self.user_id = user_id
self.name = name
def __lt__(self, other):
if isinstance(other, User):
return self.user_id < other.user_id
else:
raise NotImplementedError
@classmethod
def from_record(cls, data... | {"/test/test_user.py": ["/user.py"], "/main.py": ["/point.py", "/user.py", "/reader.py"], "/test/test_point.py": ["/point.py"], "/test/test_reader.py": ["/reader.py"]} |
41,390 | irmakcakmak/great-circle-distance | refs/heads/master | /test/test_point.py | import unittest
from point import Point
class PointTest(unittest.TestCase):
def test_dist_to(self):
a = Point(0, 0) # origin meridian on the Equator
b = Point(1, 0) # first meridian on the Equator
self.assertAlmostEqual(a.dist_to(b), 111.3, places=1)
def test_within_dist(self):
... | {"/test/test_user.py": ["/user.py"], "/main.py": ["/point.py", "/user.py", "/reader.py"], "/test/test_point.py": ["/point.py"], "/test/test_reader.py": ["/reader.py"]} |
41,391 | irmakcakmak/great-circle-distance | refs/heads/master | /test/test_reader.py | import unittest
import reader
class ReaderTest(unittest.TestCase):
def test_read(self):
records = []
for record in reader.read("test/resources/test_file.json"):
records.append(record)
self.assertEqual(len(records), 1)
record = records[0]
fields = [key for key in... | {"/test/test_user.py": ["/user.py"], "/main.py": ["/point.py", "/user.py", "/reader.py"], "/test/test_point.py": ["/point.py"], "/test/test_reader.py": ["/reader.py"]} |
41,392 | irmakcakmak/great-circle-distance | refs/heads/master | /reader.py | import json
from json import JSONDecodeError
import logging
logging.basicConfig()
LOGGER = logging.getLogger(__name__)
LOGGER.setLevel(logging.ERROR)
VALID_FIELDS = ["latitude", "longitude", "user_id", "name"]
def read(filename):
with open(filename, 'r') as f:
for line in f:
try:
... | {"/test/test_user.py": ["/user.py"], "/main.py": ["/point.py", "/user.py", "/reader.py"], "/test/test_point.py": ["/point.py"], "/test/test_reader.py": ["/reader.py"]} |
41,403 | junglefive/EightPoleModuleTester | refs/heads/master | /CSM37F58_APP_ui.py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'CSM37F58_APP.ui'
#
# Created by: PyQt5 UI code generator 5.10.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
Mai... | {"/CSM37F58_APP.py": ["/CSM37F58_APP_ui.py"]} |
41,404 | junglefive/EightPoleModuleTester | refs/heads/master | /CSM37F58_APP.py | import sys,time,os
from CSM37F58_APP_ui import *
from PyQt5.QtGui import *
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
from serial.tools.list_ports import *
from picture_qrc import *
import datetime
from IIC_CH341 import *
from PyQt5.QtCore import QTimer
import numpy as np
class MyApp(QtWidgets.QMainWi... | {"/CSM37F58_APP.py": ["/CSM37F58_APP_ui.py"]} |
41,410 | cresumerjang/Django_std_v2 | refs/heads/master | /accounts/urls.py | from django.conf.urls import url, include
from django.conf import settings
from django.contrib.auth.views import login, logout
from . import views
# settings.LOGIN_REDIRECT_URL = '/blog/list'
# login redirect 옵션, template옵션 찾기
# logout redirect 옵션, template옵션 찾기
# ?next=/accounts/accountList
#
urlpatterns = [
# 회원가입... | {"/accounts/views.py": ["/accounts/forms.py", "/accounts/models.py"], "/accounts/admin.py": ["/accounts/models.py"], "/accounts/forms.py": ["/accounts/models.py"]} |
41,411 | cresumerjang/Django_std_v2 | refs/heads/master | /blog/urls.py | from django.conf.urls import url, include
from blog import views
urlpatterns = [
url(r'^list$', views.list, name='list'),
]
| {"/accounts/views.py": ["/accounts/forms.py", "/accounts/models.py"], "/accounts/admin.py": ["/accounts/models.py"], "/accounts/forms.py": ["/accounts/models.py"]} |
41,412 | cresumerjang/Django_std_v2 | refs/heads/master | /accounts/views.py | from django.shortcuts import render, redirect, get_object_or_404
from django.core.urlresolvers import reverse
from django.contrib.auth.views import login, logout
from django.contrib.auth.decorators import login_required
from django.http import HttpResponse
from accounts.forms import SignupForm
from accounts.models impo... | {"/accounts/views.py": ["/accounts/forms.py", "/accounts/models.py"], "/accounts/admin.py": ["/accounts/models.py"], "/accounts/forms.py": ["/accounts/models.py"]} |
41,413 | cresumerjang/Django_std_v2 | refs/heads/master | /blog/views.py | from django.shortcuts import render, redirect, get_object_or_404
from django.http import HttpResponse
def list(request):
return HttpResponse('blog list')
| {"/accounts/views.py": ["/accounts/forms.py", "/accounts/models.py"], "/accounts/admin.py": ["/accounts/models.py"], "/accounts/forms.py": ["/accounts/models.py"]} |
41,414 | cresumerjang/Django_std_v2 | refs/heads/master | /accounts/admin.py | from django.contrib import admin
from accounts.models import Member
admin.site.register(Member)
| {"/accounts/views.py": ["/accounts/forms.py", "/accounts/models.py"], "/accounts/admin.py": ["/accounts/models.py"], "/accounts/forms.py": ["/accounts/models.py"]} |
41,415 | cresumerjang/Django_std_v2 | refs/heads/master | /accounts/models.py | from django.db import models
from django.conf import settings
class Member(models.Model):
# OneToOneField는 기존 테이블을 확장해서 다른 테이블을 만들 때 유용
user = models.OneToOneField(settings.AUTH_USER_MODEL)
# 모델의 제약조건 매개변수의 name은 실제 테플릿 필드에서 꺼내쓸때 사용가능
# ->즉 queryset에서 참조 가능한 맵핑된 이름
# name = models.CharField(name='이... | {"/accounts/views.py": ["/accounts/forms.py", "/accounts/models.py"], "/accounts/admin.py": ["/accounts/models.py"], "/accounts/forms.py": ["/accounts/models.py"]} |
41,416 | cresumerjang/Django_std_v2 | refs/heads/master | /accounts/forms.py | from django import forms
from django.contrib.auth.forms import UserCreationForm
from accounts.models import Member
class SignupForm(UserCreationForm):
name = forms.CharField(max_length=30)
age = forms.IntegerField()
sex = forms.CharField(max_length=2)
def save(self):
user = super(SignupForm, ... | {"/accounts/views.py": ["/accounts/forms.py", "/accounts/models.py"], "/accounts/admin.py": ["/accounts/models.py"], "/accounts/forms.py": ["/accounts/models.py"]} |
41,419 | jareena-git/First_Project | refs/heads/master | /Serializer_module.py | from sqlalchemy.inspection import inspect
from sqlalchemy.ext.declarative import declared_attr
from sqlalchemy.orm import relationship
from sqlalchemy.ext.declarative import declared_attr
class Serializer(object):
# @declared_attr
# def salary_relation(cls):
# return relationship("salary",backref="user... | {"/AddressModule.py": ["/AddressMixinModule.py", "/Serializer_module.py"], "/psqlconfigutils.py": ["/userMixin.py", "/model.py"], "/dbquerycls.py": ["/psqlconfigutils.py", "/models.py"], "/project/BluePrint21.py": ["/psqlconfigutils.py", "/model.py"], "/project/UserModules.py": ["/userMixin.py"], "/project/BlueprintRou... |
41,420 | jareena-git/First_Project | refs/heads/master | /AddressModule.py | from sqlalchemy import Column,Integer,String
from sqlalchemy.orm import relationship
from AddressMixinModule import AddressMixin
from Serializer_module import Serializer
class Address(AddressMixin,Serializer):
__tablename__ = 'addresses'
id = Column(Integer, primary_key=True)
email_address = Column(Stri... | {"/AddressModule.py": ["/AddressMixinModule.py", "/Serializer_module.py"], "/psqlconfigutils.py": ["/userMixin.py", "/model.py"], "/dbquerycls.py": ["/psqlconfigutils.py", "/models.py"], "/project/BluePrint21.py": ["/psqlconfigutils.py", "/model.py"], "/project/UserModules.py": ["/userMixin.py"], "/project/BlueprintRou... |
41,421 | jareena-git/First_Project | refs/heads/master | /nessaceryInfo.py | # user = user(id=1, name="jareena", full_name="jareena shaik")
# base.metadata.create_all(engine)
# user1 = User(id=5,name="sulthana", full_name="sulthana shaik")
# session.add(user1)
# session.commit()
# qry=session.query(User).filter_by(name="jareena").first()
# for name, fullname in session.query(U... | {"/AddressModule.py": ["/AddressMixinModule.py", "/Serializer_module.py"], "/psqlconfigutils.py": ["/userMixin.py", "/model.py"], "/dbquerycls.py": ["/psqlconfigutils.py", "/models.py"], "/project/BluePrint21.py": ["/psqlconfigutils.py", "/model.py"], "/project/UserModules.py": ["/userMixin.py"], "/project/BlueprintRou... |
41,422 | jareena-git/First_Project | refs/heads/master | /project/UserMixinModule.py | from sqlalchemy.inspection import inspect
from sqlalchemy.ext.declarative import declared_attr
from sqlalchemy.orm import relationship
class Serializer(object):
# @declared_attr
# def User_Addresses(cls):
# return relationship("Address", order_by=Address.id, backref="user")
def serialize(self):
... | {"/AddressModule.py": ["/AddressMixinModule.py", "/Serializer_module.py"], "/psqlconfigutils.py": ["/userMixin.py", "/model.py"], "/dbquerycls.py": ["/psqlconfigutils.py", "/models.py"], "/project/BluePrint21.py": ["/psqlconfigutils.py", "/model.py"], "/project/UserModules.py": ["/userMixin.py"], "/project/BlueprintRou... |
41,423 | jareena-git/First_Project | refs/heads/master | /psqlconfigutils.py | import psycopg2
from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
from os.path import expanduser
import os
from userMixin import(UserMixin)
from model import(address,user,base)
# from Usercls import(user)
# from models import(User,base)
... | {"/AddressModule.py": ["/AddressMixinModule.py", "/Serializer_module.py"], "/psqlconfigutils.py": ["/userMixin.py", "/model.py"], "/dbquerycls.py": ["/psqlconfigutils.py", "/models.py"], "/project/BluePrint21.py": ["/psqlconfigutils.py", "/model.py"], "/project/UserModules.py": ["/userMixin.py"], "/project/BlueprintRou... |
41,424 | jareena-git/First_Project | refs/heads/master | /dbquerycls.py | from sqlalchemy.ext.declarative import declarative_base
from psqlconfigutils import PsUtils
from models import User
user.address=relationship("Address",backref="user")
| {"/AddressModule.py": ["/AddressMixinModule.py", "/Serializer_module.py"], "/psqlconfigutils.py": ["/userMixin.py", "/model.py"], "/dbquerycls.py": ["/psqlconfigutils.py", "/models.py"], "/project/BluePrint21.py": ["/psqlconfigutils.py", "/model.py"], "/project/UserModules.py": ["/userMixin.py"], "/project/BlueprintRou... |
41,425 | jareena-git/First_Project | refs/heads/master | /project/dbconnect.py | from config import config
import psycopg2
def dbConnect():
con = None
try:
#reading config file
params = config()
# connect method is used to connect to the database
con = psycopg2.connect(**params)
except(Exception, psycopg2.DatabaseError) as error:
print(error)
... | {"/AddressModule.py": ["/AddressMixinModule.py", "/Serializer_module.py"], "/psqlconfigutils.py": ["/userMixin.py", "/model.py"], "/dbquerycls.py": ["/psqlconfigutils.py", "/models.py"], "/project/BluePrint21.py": ["/psqlconfigutils.py", "/model.py"], "/project/UserModules.py": ["/userMixin.py"], "/project/BlueprintRou... |
41,426 | jareena-git/First_Project | refs/heads/master | /project/BluePrint21.py | from flask.blueprints import Blueprint
from flask import jsonify,request
import psqlconfigutils
from model import(base,user,address)
import json
from sqlalchemy import desc
from sqlalchemy import and_
addressBluePrint=Blueprint('addressBluePrint21',__name__)
# @userBluePrint.route('/',methods=['GET'])
# def get():
... | {"/AddressModule.py": ["/AddressMixinModule.py", "/Serializer_module.py"], "/psqlconfigutils.py": ["/userMixin.py", "/model.py"], "/dbquerycls.py": ["/psqlconfigutils.py", "/models.py"], "/project/BluePrint21.py": ["/psqlconfigutils.py", "/model.py"], "/project/UserModules.py": ["/userMixin.py"], "/project/BlueprintRou... |
41,427 | jareena-git/First_Project | refs/heads/master | /sum.py | # https://realpython.com/how-to-use-numpy-arange/
# def sum_of_two_nums(num1,num2):
# try:
# num1=int(num1)
# num2=int(num2)
# total = num1 + num2
# if (total == 20 or
# num1 == 20 or
# num2 == 20):
# print("True")
# else:
# ... | {"/AddressModule.py": ["/AddressMixinModule.py", "/Serializer_module.py"], "/psqlconfigutils.py": ["/userMixin.py", "/model.py"], "/dbquerycls.py": ["/psqlconfigutils.py", "/models.py"], "/project/BluePrint21.py": ["/psqlconfigutils.py", "/model.py"], "/project/UserModules.py": ["/userMixin.py"], "/project/BlueprintRou... |
41,428 | jareena-git/First_Project | refs/heads/master | /project/UserModules.py | from sqlalchemy import (Column,ForeignKey,Integer,Table,Sequence,String,MetaData)
from sqlalchemy.orm import relationship,mapper
from userMixin import(UserMixin)
import userMixin
from sqlalchemy.ext.declarative import declarative_base
from UserMixinModule import Serializer
class User(Serializer):
__tablename__ =... | {"/AddressModule.py": ["/AddressMixinModule.py", "/Serializer_module.py"], "/psqlconfigutils.py": ["/userMixin.py", "/model.py"], "/dbquerycls.py": ["/psqlconfigutils.py", "/models.py"], "/project/BluePrint21.py": ["/psqlconfigutils.py", "/model.py"], "/project/UserModules.py": ["/userMixin.py"], "/project/BlueprintRou... |
41,429 | jareena-git/First_Project | refs/heads/master | /UserModule.py | from sqlalchemy import (Column,ForeignKey,Integer,Table,Sequence,String,MetaData)
from sqlalchemy.orm import relationship,mapper
from sqlalchemy.ext.declarative import declarative_base
from UserMixinModule import Serializer
base=declarative_base()
class user(Serializer):
__tablename__= "users"
id = Column(In... | {"/AddressModule.py": ["/AddressMixinModule.py", "/Serializer_module.py"], "/psqlconfigutils.py": ["/userMixin.py", "/model.py"], "/dbquerycls.py": ["/psqlconfigutils.py", "/models.py"], "/project/BluePrint21.py": ["/psqlconfigutils.py", "/model.py"], "/project/UserModules.py": ["/userMixin.py"], "/project/BlueprintRou... |
41,430 | jareena-git/First_Project | refs/heads/master | /project/app.py | from flask import Flask,request,jsonify
# from flask import
from flask.blueprints import Blueprint
from BlueprintRount import userBluePrint as userBluePrint_20
from BluePrint21 import addressBluePrint as addressBluePrint_21
# from . import pscons
import os
app=Flask(__name__)
# db = SQLAlchemy(app)
app.register_blue... | {"/AddressModule.py": ["/AddressMixinModule.py", "/Serializer_module.py"], "/psqlconfigutils.py": ["/userMixin.py", "/model.py"], "/dbquerycls.py": ["/psqlconfigutils.py", "/models.py"], "/project/BluePrint21.py": ["/psqlconfigutils.py", "/model.py"], "/project/UserModules.py": ["/userMixin.py"], "/project/BlueprintRou... |
41,431 | jareena-git/First_Project | refs/heads/master | /project/BlueprintRount.py | from flask.blueprints import Blueprint
from flask import jsonify,request
import psqlconfigutils
from models import(User,base)
import json
userBluePrint=Blueprint('userBluePrint20',__name__)
@userBluePrint.route('/',methods=['GET'])
def get():
records = psqlconfigutils.session.query(User).all()
return json.d... | {"/AddressModule.py": ["/AddressMixinModule.py", "/Serializer_module.py"], "/psqlconfigutils.py": ["/userMixin.py", "/model.py"], "/dbquerycls.py": ["/psqlconfigutils.py", "/models.py"], "/project/BluePrint21.py": ["/psqlconfigutils.py", "/model.py"], "/project/UserModules.py": ["/userMixin.py"], "/project/BlueprintRou... |
41,432 | jareena-git/First_Project | refs/heads/master | /project/create_table.py | from dbconnect import dbConnect
import psycopg2
con = dbConnect()
# def create_tables(emp_list):
# try:
# if con:
# cur = con.cursor()
# query = "CREATE TABLE Employee(Id INTEGER PRIMARY KEY,Name VARCHAR(25) NOT NULL,City VARCHAR(20) NOT NULL)"
# cur.execute(query)
# ... | {"/AddressModule.py": ["/AddressMixinModule.py", "/Serializer_module.py"], "/psqlconfigutils.py": ["/userMixin.py", "/model.py"], "/dbquerycls.py": ["/psqlconfigutils.py", "/models.py"], "/project/BluePrint21.py": ["/psqlconfigutils.py", "/model.py"], "/project/UserModules.py": ["/userMixin.py"], "/project/BlueprintRou... |
41,433 | jareena-git/First_Project | refs/heads/master | /model.py | from sqlalchemy.ext.declarative import declarative_base
from userMixin import(UserMixin)
from UserModules import User
from AddressModule import Address
from Serializer_module import Serializer
base=declarative_base()
class user(base,User):
pass
class address(base,Address):
pass
| {"/AddressModule.py": ["/AddressMixinModule.py", "/Serializer_module.py"], "/psqlconfigutils.py": ["/userMixin.py", "/model.py"], "/dbquerycls.py": ["/psqlconfigutils.py", "/models.py"], "/project/BluePrint21.py": ["/psqlconfigutils.py", "/model.py"], "/project/UserModules.py": ["/userMixin.py"], "/project/BlueprintRou... |
41,434 | jareena-git/First_Project | refs/heads/master | /project/Usercls.py | from sqlalchemy import (Column,ForeignKey,Integer,Table,Sequence,String,MetaData)
from sqlalchemy.orm import relationship,mapper
from userMixin import(UserMixin)
import userMixin
from Serializer_module import Serializer
# metadata=MetaData()
#
# usertb=Table("users",metadata,Column("id",Integer,primary_key=True),Column... | {"/AddressModule.py": ["/AddressMixinModule.py", "/Serializer_module.py"], "/psqlconfigutils.py": ["/userMixin.py", "/model.py"], "/dbquerycls.py": ["/psqlconfigutils.py", "/models.py"], "/project/BluePrint21.py": ["/psqlconfigutils.py", "/model.py"], "/project/UserModules.py": ["/userMixin.py"], "/project/BlueprintRou... |
41,435 | jareena-git/First_Project | refs/heads/master | /random_generator.py | #https://docs.sqlalchemy.org/en/14/orm/extensions/associationproxy.html
# import random
#
#
# def incorrect_attempts():
# attempts_remaining = input("how many incorrect attempts do you want?[1-25]")
# if attempts_remaining.isdigit():
# attempts_remaining = int(attempts_remaining)
# if attempts... | {"/AddressModule.py": ["/AddressMixinModule.py", "/Serializer_module.py"], "/psqlconfigutils.py": ["/userMixin.py", "/model.py"], "/dbquerycls.py": ["/psqlconfigutils.py", "/models.py"], "/project/BluePrint21.py": ["/psqlconfigutils.py", "/model.py"], "/project/UserModules.py": ["/userMixin.py"], "/project/BlueprintRou... |
41,436 | jareena-git/First_Project | refs/heads/master | /userMixin.py | from sqlalchemy import (Column,ForeignKey,Integer,Table,Sequence,String)
class UserMixin(object):
id = Column(Integer,primary_key=True)
name = Column(String(25),nullable=False)
def get_id(self):
return id
def get_name(self):
return name
| {"/AddressModule.py": ["/AddressMixinModule.py", "/Serializer_module.py"], "/psqlconfigutils.py": ["/userMixin.py", "/model.py"], "/dbquerycls.py": ["/psqlconfigutils.py", "/models.py"], "/project/BluePrint21.py": ["/psqlconfigutils.py", "/model.py"], "/project/UserModules.py": ["/userMixin.py"], "/project/BlueprintRou... |
41,437 | jareena-git/First_Project | refs/heads/master | /project/Salary_module.py | # from sqlalchemy import Column,Integer,Float,ForeignKey,Text
# from sqlalchemy.orm import relationship
# from salary_fk_Mixin import FkMixin
# from Serializer_module import Serializer
# class salary(FkMixin,Serializer):
# __tablename__='salaries'
# id = Column(Integer,primary_key=True)
# emp_sa... | {"/AddressModule.py": ["/AddressMixinModule.py", "/Serializer_module.py"], "/psqlconfigutils.py": ["/userMixin.py", "/model.py"], "/dbquerycls.py": ["/psqlconfigutils.py", "/models.py"], "/project/BluePrint21.py": ["/psqlconfigutils.py", "/model.py"], "/project/UserModules.py": ["/userMixin.py"], "/project/BlueprintRou... |
41,438 | jareena-git/First_Project | refs/heads/master | /AddressMixinModule.py | from sqlalchemy import ForeignKey,Column,Integer
from sqlalchemy.orm import relationship
from sqlalchemy.ext.declarative import declared_attr
class AddressMixin(object):
@declared_attr
def user_id(cls):
return Column(Integer, ForeignKey('users.id'))
@declared_attr
def user(cls):
relati... | {"/AddressModule.py": ["/AddressMixinModule.py", "/Serializer_module.py"], "/psqlconfigutils.py": ["/userMixin.py", "/model.py"], "/dbquerycls.py": ["/psqlconfigutils.py", "/models.py"], "/project/BluePrint21.py": ["/psqlconfigutils.py", "/model.py"], "/project/UserModules.py": ["/userMixin.py"], "/project/BlueprintRou... |
41,439 | jareena-git/First_Project | refs/heads/master | /models.py | from sqlalchemy.ext.declarative import declarative_base
from userMixin import(UserMixin)
from Usercls import user
# from examplesmodel import example_model
# from Salary_module import salary
base=declarative_base(cls=UserMixin)
class User(base,user):
pass
# class ExampleModel(base,example_model):
# pass
#
#... | {"/AddressModule.py": ["/AddressMixinModule.py", "/Serializer_module.py"], "/psqlconfigutils.py": ["/userMixin.py", "/model.py"], "/dbquerycls.py": ["/psqlconfigutils.py", "/models.py"], "/project/BluePrint21.py": ["/psqlconfigutils.py", "/model.py"], "/project/UserModules.py": ["/userMixin.py"], "/project/BlueprintRou... |
41,440 | jareena-git/First_Project | refs/heads/master | /project/salary_fk_Mixin.py | # from sqlalchemy.ext.declarative import declared_attr
# from sqlalchemy import Column,Integer,ForeignKey
# from sqlalchemy.orm import relationship
#
# class FkMixin(object):
# @declared_attr
# def user_id(cls):
# return Column(Integer,ForeignKey('users.id'))
# @declared_attr
# def relation_to(c... | {"/AddressModule.py": ["/AddressMixinModule.py", "/Serializer_module.py"], "/psqlconfigutils.py": ["/userMixin.py", "/model.py"], "/dbquerycls.py": ["/psqlconfigutils.py", "/models.py"], "/project/BluePrint21.py": ["/psqlconfigutils.py", "/model.py"], "/project/UserModules.py": ["/userMixin.py"], "/project/BlueprintRou... |
41,441 | jareena-git/First_Project | refs/heads/master | /Bhargave_Game.py | # Python Program to illustrate
# Hangman Game
import random
from collections import Counter
someWords = '''apple banana'''
someWords = someWords.split(' ')
# randomly choose a secret word from our "someWords" LIST.
word = random.choice(someWords)
if __name__ == '__main__':
print('Guess the word! HINT: word is a... | {"/AddressModule.py": ["/AddressMixinModule.py", "/Serializer_module.py"], "/psqlconfigutils.py": ["/userMixin.py", "/model.py"], "/dbquerycls.py": ["/psqlconfigutils.py", "/models.py"], "/project/BluePrint21.py": ["/psqlconfigutils.py", "/model.py"], "/project/UserModules.py": ["/userMixin.py"], "/project/BlueprintRou... |
41,442 | jareena-git/First_Project | refs/heads/master | /project/config.py | # from configparser import ConfigParser
# def config(filename = "database.ini", session = 'postgresql'):
# db = {}
# parser = ConfigParser()
# parser.read(filename)
# if parser.has_section(session):
# params = parser.items(session) # parser returns list of tuples
# for param in params: ... | {"/AddressModule.py": ["/AddressMixinModule.py", "/Serializer_module.py"], "/psqlconfigutils.py": ["/userMixin.py", "/model.py"], "/dbquerycls.py": ["/psqlconfigutils.py", "/models.py"], "/project/BluePrint21.py": ["/psqlconfigutils.py", "/model.py"], "/project/UserModules.py": ["/userMixin.py"], "/project/BlueprintRou... |
41,446 | jackyluo-learning/SocketIODemo | refs/heads/master | /utils.py | def resultVo(data, status):
dict = {}
dict["data"] = data
dict["status"] = status
return dict
def statusVo(message, status):
dict = {}
dict["message"] = message
dict["status"] = status
return dict
def args_verification(*args):
for each in args:
if each is None:
... | {"/app.py": ["/utils.py"]} |
41,447 | jackyluo-learning/SocketIODemo | refs/heads/master | /app.py | from flask import Flask, render_template, request
from flask_socketio import SocketIO, emit, join_room, leave_room, send
from utils import args_verification, statusVo, resultVo
app = Flask(__name__)
app.config['SECRET_KEY'] = 'iems5722'
socketio = SocketIO(app)
@app.route("/api/a4/broadcast_room", methods=["GET", "P... | {"/app.py": ["/utils.py"]} |
41,463 | dipee/notification_app | refs/heads/master | /home/models.py | from django.db import models
from channels.layers import get_channel_layer
from asgiref.sync import async_to_sync
import json
from django.contrib.auth.models import User
class Notification(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE)
notification = models.TextField(max_length=100)
... | {"/home/consumers.py": ["/home/models.py"]} |
41,464 | dipee/notification_app | refs/heads/master | /home/consumers.py | from channels.generic.websocket import WebsocketConsumer, AsyncJsonWebsocketConsumer
from asgiref.sync import async_to_sync
import json
from django.core import serializers
from .models import Notification
class TestConsumer(WebsocketConsumer):
def connect(self):
# print(self.scope['user'])
... | {"/home/consumers.py": ["/home/models.py"]} |
41,465 | dipee/notification_app | refs/heads/master | /home/views.py | import re
import channels
from django.shortcuts import render
from django.http import HttpResponse
from django.template import loader
import time
from asgiref.sync import async_to_sync
import json
from channels.layers import get_channel_layer
# Create your views here.
def index(request):
template = loader.get_tem... | {"/home/consumers.py": ["/home/models.py"]} |
41,472 | Vaishnavi476/final-Year-project | refs/heads/master | /app/migrations/0008_auto_20210624_0107.py | # Generated by Django 3.1.7 on 2021-06-23 19:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0007_product_purchasemodel'),
]
operations = [
migrations.AddField(
model_name='servicerequest',
name='age',
... | {"/app/admin.py": ["/app/models.py"], "/app/forms.py": ["/app/models.py"], "/app/views.py": ["/app/forms.py", "/app/models.py"], "/app/urls.py": ["/app/views.py"]} |
41,473 | Vaishnavi476/final-Year-project | refs/heads/master | /app/admin.py | from django.contrib import admin
from .models import Profile,Equipment,EquipmentRental,Human_Resource,Purchase,ServiceRequest,Feedback,Contact
from app.models import Product
# Register your models here.
admin.site.register(Profile)
admin.site.register(Equipment)
admin.site.register(EquipmentRental)
admin.site.register... | {"/app/admin.py": ["/app/models.py"], "/app/forms.py": ["/app/models.py"], "/app/views.py": ["/app/forms.py", "/app/models.py"], "/app/urls.py": ["/app/views.py"]} |
41,474 | Vaishnavi476/final-Year-project | refs/heads/master | /app/migrations/0013_auto_20210624_1314.py | # Generated by Django 3.1.7 on 2021-06-24 07:44
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('app', '0012_auto_20210624_1302'),
]
operations = [
migrations.RenameField(
model_name='equipment',
old_name='image_1',
... | {"/app/admin.py": ["/app/models.py"], "/app/forms.py": ["/app/models.py"], "/app/views.py": ["/app/forms.py", "/app/models.py"], "/app/urls.py": ["/app/views.py"]} |
41,475 | Vaishnavi476/final-Year-project | refs/heads/master | /app/migrations/0004_human_resource_pic.py | # Generated by Django 3.1.7 on 2021-06-08 08:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0003_human_resource_phone'),
]
operations = [
migrations.AddField(
model_name='human_resource',
name='pic',
... | {"/app/admin.py": ["/app/models.py"], "/app/forms.py": ["/app/models.py"], "/app/views.py": ["/app/forms.py", "/app/models.py"], "/app/urls.py": ["/app/views.py"]} |
41,476 | Vaishnavi476/final-Year-project | refs/heads/master | /app/migrations/0011_auto_20210624_0150.py | # Generated by Django 3.1.7 on 2021-06-23 20:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0010_auto_20210624_0148'),
]
operations = [
migrations.AlterField(
model_name='servicerequest',
name='duratio... | {"/app/admin.py": ["/app/models.py"], "/app/forms.py": ["/app/models.py"], "/app/views.py": ["/app/forms.py", "/app/models.py"], "/app/urls.py": ["/app/views.py"]} |
41,477 | Vaishnavi476/final-Year-project | refs/heads/master | /app/migrations/0007_product_purchasemodel.py | # Generated by Django 3.1.7 on 2021-06-18 07:59
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('app', '0006_profile_addr... | {"/app/admin.py": ["/app/models.py"], "/app/forms.py": ["/app/models.py"], "/app/views.py": ["/app/forms.py", "/app/models.py"], "/app/urls.py": ["/app/views.py"]} |
41,478 | Vaishnavi476/final-Year-project | refs/heads/master | /app/forms.py | from app.models import Feedback
from django import forms
from django.db.models import fields
from .models import Profile
from django.forms.fields import IntegerField
from .models import PurchaseModel, Purchase, ServiceRequest
class ProfileForm(forms.ModelForm):
class Meta:
model = Profile
fields = ... | {"/app/admin.py": ["/app/models.py"], "/app/forms.py": ["/app/models.py"], "/app/views.py": ["/app/forms.py", "/app/models.py"], "/app/urls.py": ["/app/views.py"]} |
41,479 | Vaishnavi476/final-Year-project | refs/heads/master | /app/migrations/0012_auto_20210624_1302.py | # Generated by Django 3.1.7 on 2021-06-24 07:32
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('app', '0011_auto_20210624_0150'),
]
operations = [
migrations.AlterField(
model_name='servicere... | {"/app/admin.py": ["/app/models.py"], "/app/forms.py": ["/app/models.py"], "/app/views.py": ["/app/forms.py", "/app/models.py"], "/app/urls.py": ["/app/views.py"]} |
41,480 | Vaishnavi476/final-Year-project | refs/heads/master | /userauth/urls.py | from django.urls import path,include
from.views import dashboard_view,register_user
urlpatterns = [
path('', dashboard_view, name='dashboard'),
path('register/',register_user, name='register'),
path('oauth/',include('social_django.urls'))
] | {"/app/admin.py": ["/app/models.py"], "/app/forms.py": ["/app/models.py"], "/app/views.py": ["/app/forms.py", "/app/models.py"], "/app/urls.py": ["/app/views.py"]} |
41,481 | Vaishnavi476/final-Year-project | refs/heads/master | /userauth/models.py | from django.db.models.fields import CharField, TextField
# Create your models here.
| {"/app/admin.py": ["/app/models.py"], "/app/forms.py": ["/app/models.py"], "/app/views.py": ["/app/forms.py", "/app/models.py"], "/app/urls.py": ["/app/views.py"]} |
41,482 | Vaishnavi476/final-Year-project | refs/heads/master | /app/views.py | from app.forms import FeedbackForm
from app.forms import ProfileForm, ServiceRequestForm
from typing import ContextManager
from django.shortcuts import render, redirect
from .models import Human_Resource, Profile, Purchase, ServiceRequest, Contact, EquipmentRental
from django.http import HttpResponse
from django.cont... | {"/app/admin.py": ["/app/models.py"], "/app/forms.py": ["/app/models.py"], "/app/views.py": ["/app/forms.py", "/app/models.py"], "/app/urls.py": ["/app/views.py"]} |
41,483 | Vaishnavi476/final-Year-project | refs/heads/master | /app/urls.py | from django.urls import path
from .views import homeview, welcomeview, ordering, view_hr, detail_hr, purchase, rent, equipment, user_profileview
from .views import service_request, edit_profileview, contact
from .views import index
from django.views.generic import TemplateView
from app import views
urlpatterns = [
... | {"/app/admin.py": ["/app/models.py"], "/app/forms.py": ["/app/models.py"], "/app/views.py": ["/app/forms.py", "/app/models.py"], "/app/urls.py": ["/app/views.py"]} |
41,484 | Vaishnavi476/final-Year-project | refs/heads/master | /app/models.py | from django.db import models
from django.db.models.deletion import CASCADE
from django.contrib.auth.models import User
from django.db.models.fields import CharField, DateTimeField, IntegerField, TextField, EmailField
from django.db.models.fields.related import ForeignKey
from django.core.validators import RegexValidat... | {"/app/admin.py": ["/app/models.py"], "/app/forms.py": ["/app/models.py"], "/app/views.py": ["/app/forms.py", "/app/models.py"], "/app/urls.py": ["/app/views.py"]} |
41,485 | Vaishnavi476/final-Year-project | refs/heads/master | /app/migrations/0010_auto_20210624_0148.py | # Generated by Django 3.1.7 on 2021-06-23 20:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0009_contact'),
]
operations = [
migrations.AlterField(
model_name='servicerequest',
name='durations',
... | {"/app/admin.py": ["/app/models.py"], "/app/forms.py": ["/app/models.py"], "/app/views.py": ["/app/forms.py", "/app/models.py"], "/app/urls.py": ["/app/views.py"]} |
41,487 | AnniKalani123/E-Bus-Pass-System | refs/heads/master | /payments/migrations/0007_auto_20210529_0341.py | # Generated by Django 3.2 on 2021-05-28 22:11
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('myapp', '0014_auto_20210527_1517'),
('payments', '0006_alter_transaction_made_by'),
]
operations = [
... | {"/payments/models.py": ["/myapp/models.py"], "/myapp/views.py": ["/myapp/models.py", "/payments/models.py"]} |
41,488 | AnniKalani123/E-Bus-Pass-System | refs/heads/master | /myapp/models.py | from django.db import models
from django.utils import timezone
# Create your models here.
class User(models.Model):
Username = models.CharField(max_length=256, unique=True, null=True, blank=True)
fname = models.CharField(max_length=100)
lname = models.CharField(max_length=100)
contact = models.CharFiel... | {"/payments/models.py": ["/myapp/models.py"], "/myapp/views.py": ["/myapp/models.py", "/payments/models.py"]} |
41,489 | AnniKalani123/E-Bus-Pass-System | refs/heads/master | /payments/migrations/0004_transaction_pay_status.py | # Generated by Django 3.2 on 2021-05-28 20:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('payments', '0003_alter_transaction_made_by'),
]
operations = [
migrations.AddField(
model_name='transaction',
name='pa... | {"/payments/models.py": ["/myapp/models.py"], "/myapp/views.py": ["/myapp/models.py", "/payments/models.py"]} |
41,490 | AnniKalani123/E-Bus-Pass-System | refs/heads/master | /myapp/migrations/0015_alter_pass_end_date.py | # Generated by Django 3.2 on 2021-05-30 10:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myapp', '0014_auto_20210527_1517'),
]
operations = [
migrations.AlterField(
model_name='pass',
name='End_date',
... | {"/payments/models.py": ["/myapp/models.py"], "/myapp/views.py": ["/myapp/models.py", "/payments/models.py"]} |
41,491 | AnniKalani123/E-Bus-Pass-System | refs/heads/master | /payments/migrations/0003_alter_transaction_made_by.py | # Generated by Django 3.2 on 2021-05-27 15:52
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('myapp', '0014_auto_20210527_1517'),
('payments', '0002_alter_transaction_id'),
]
operations = [
migra... | {"/payments/models.py": ["/myapp/models.py"], "/myapp/views.py": ["/myapp/models.py", "/payments/models.py"]} |
41,492 | AnniKalani123/E-Bus-Pass-System | refs/heads/master | /myapp/migrations/0016_alter_pass_issue_date.py | # Generated by Django 3.2 on 2021-06-02 06:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myapp', '0015_alter_pass_end_date'),
]
operations = [
migrations.AlterField(
model_name='pass',
name='Issue_date',
... | {"/payments/models.py": ["/myapp/models.py"], "/myapp/views.py": ["/myapp/models.py", "/payments/models.py"]} |
41,493 | AnniKalani123/E-Bus-Pass-System | refs/heads/master | /payments/migrations/0008_alter_transaction_amount.py | # Generated by Django 3.2 on 2021-05-28 22:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('payments', '0007_auto_20210529_0341'),
]
operations = [
migrations.AlterField(
model_name='transaction',
name='amount'... | {"/payments/models.py": ["/myapp/models.py"], "/myapp/views.py": ["/myapp/models.py", "/payments/models.py"]} |
41,494 | AnniKalani123/E-Bus-Pass-System | refs/heads/master | /myapp/migrations/0013_alter_user_age.py | # Generated by Django 3.2 on 2021-05-24 05:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myapp', '0012_user_verify'),
]
operations = [
migrations.AlterField(
model_name='user',
name='age',
field=... | {"/payments/models.py": ["/myapp/models.py"], "/myapp/views.py": ["/myapp/models.py", "/payments/models.py"]} |
41,495 | AnniKalani123/E-Bus-Pass-System | refs/heads/master | /myapp/migrations/0012_user_verify.py | # Generated by Django 3.2 on 2021-05-24 04:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myapp', '0011_remove_user_verify'),
]
operations = [
migrations.AddField(
model_name='user',
name='verify',
... | {"/payments/models.py": ["/myapp/models.py"], "/myapp/views.py": ["/myapp/models.py", "/payments/models.py"]} |
41,496 | AnniKalani123/E-Bus-Pass-System | refs/heads/master | /myapp/migrations/0011_remove_user_verify.py | # Generated by Django 3.2 on 2021-05-24 04:42
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('myapp', '0010_alter_user_gender'),
]
operations = [
migrations.RemoveField(
model_name='user',
name='verify',
),
]... | {"/payments/models.py": ["/myapp/models.py"], "/myapp/views.py": ["/myapp/models.py", "/payments/models.py"]} |
41,497 | AnniKalani123/E-Bus-Pass-System | refs/heads/master | /myapp/migrations/0004_alter_user_profile_pic.py | # Generated by Django 3.2 on 2021-04-21 11:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myapp', '0003_alter_user_profile_pic'),
]
operations = [
migrations.AlterField(
model_name='user',
name='Profile_pic',... | {"/payments/models.py": ["/myapp/models.py"], "/myapp/views.py": ["/myapp/models.py", "/payments/models.py"]} |
41,498 | AnniKalani123/E-Bus-Pass-System | refs/heads/master | /myapp/migrations/0002_passid_pass_charges.py | # Generated by Django 3.2 on 2021-04-20 10:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myapp', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='passid',
name='pass_charges',
f... | {"/payments/models.py": ["/myapp/models.py"], "/myapp/views.py": ["/myapp/models.py", "/payments/models.py"]} |
41,499 | AnniKalani123/E-Bus-Pass-System | refs/heads/master | /myapp/migrations/0003_alter_user_profile_pic.py | # Generated by Django 3.2 on 2021-04-21 11:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myapp', '0002_passid_pass_charges'),
]
operations = [
migrations.AlterField(
model_name='user',
name='Profile_pic',
... | {"/payments/models.py": ["/myapp/models.py"], "/myapp/views.py": ["/myapp/models.py", "/payments/models.py"]} |
41,500 | AnniKalani123/E-Bus-Pass-System | refs/heads/master | /myapp/migrations/0010_alter_user_gender.py | # Generated by Django 3.2 on 2021-05-21 10:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myapp', '0009_alter_user_gender'),
]
operations = [
migrations.AlterField(
model_name='user',
name='Gender',
... | {"/payments/models.py": ["/myapp/models.py"], "/myapp/views.py": ["/myapp/models.py", "/payments/models.py"]} |
41,501 | AnniKalani123/E-Bus-Pass-System | refs/heads/master | /payments/models.py | from django.db import models
from myapp.models import Pass, User
class Transaction(models.Model):
made_by = models.ForeignKey(User, related_name='transactions', on_delete=models.CASCADE)
pass_id = models.ForeignKey(Pass, related_name='Pass', on_delete=models.CASCADE,null=True, blank=True)
made_on = models... | {"/payments/models.py": ["/myapp/models.py"], "/myapp/views.py": ["/myapp/models.py", "/payments/models.py"]} |
41,502 | AnniKalani123/E-Bus-Pass-System | refs/heads/master | /myapp/views.py | from django.shortcuts import render
from django.urls.base import reverse_lazy
from .models import *
from django.conf import settings
from django.core.mail import send_mail
import random
from django.http import HttpResponse , HttpResponseRedirect
from django.urls import reverse
from django.template.loader import get_te... | {"/payments/models.py": ["/myapp/models.py"], "/myapp/views.py": ["/myapp/models.py", "/payments/models.py"]} |
41,503 | AnniKalani123/E-Bus-Pass-System | refs/heads/master | /myapp/urls.py | from django.urls import path
from . import views
urlpatterns = [
path('',views.index, name='index'),
path('login/', views.login, name = 'login'),
path('signup/', views.signup, name = 'signup'),
path('forgot_password/',views.forgot_password,name='forgot_password'),
path('otp_verify/',views.otp_verify... | {"/payments/models.py": ["/myapp/models.py"], "/myapp/views.py": ["/myapp/models.py", "/payments/models.py"]} |
41,504 | AnniKalani123/E-Bus-Pass-System | refs/heads/master | /myapp/migrations/0014_auto_20210527_1517.py | # Generated by Django 3.2 on 2021-05-27 09:47
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('myapp', '0013_alter_user_age'),
]
operations = [
migrations.RemoveField(
... | {"/payments/models.py": ["/myapp/models.py"], "/myapp/views.py": ["/myapp/models.py", "/payments/models.py"]} |
41,505 | AnniKalani123/E-Bus-Pass-System | refs/heads/master | /myapp/migrations/0001_initial.py | # Generated by Django 3.2 on 2021-04-20 10:26
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='LocationDestination',
fields... | {"/payments/models.py": ["/myapp/models.py"], "/myapp/views.py": ["/myapp/models.py", "/payments/models.py"]} |
41,506 | AnniKalani123/E-Bus-Pass-System | refs/heads/master | /payments/migrations/0008_transaction_pass_id.py | # Generated by Django 3.2 on 2021-05-30 21:38
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('myapp', '0015_alter_pass_end_date'),
('payments', '0007_alter_transaction_made_by'),
]
operations = [
... | {"/payments/models.py": ["/myapp/models.py"], "/myapp/views.py": ["/myapp/models.py", "/payments/models.py"]} |
41,507 | AnniKalani123/E-Bus-Pass-System | refs/heads/master | /myapp/migrations/0008_user_profile_pic.py | # Generated by Django 3.2 on 2021-04-22 05:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myapp', '0007_user_verify'),
]
operations = [
migrations.AddField(
model_name='user',
name='Profile_pic',
... | {"/payments/models.py": ["/myapp/models.py"], "/myapp/views.py": ["/myapp/models.py", "/payments/models.py"]} |
41,508 | AnniKalani123/E-Bus-Pass-System | refs/heads/master | /payments/migrations/0007_alter_transaction_made_by.py | # Generated by Django 3.2 on 2021-05-30 20:53
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('myapp', '0015_alter_pass_end_date'),
('payments', '0006_alter_transaction_made_by'),
]
operations = [
... | {"/payments/models.py": ["/myapp/models.py"], "/myapp/views.py": ["/myapp/models.py", "/payments/models.py"]} |
41,511 | bidlocoder1422/DataBase1.0 | refs/heads/master | /mainWindow.py | # -*- coding: utf-8 -*-
# добавить скан договора к компании %3 отдел%
# mainWindow : Проверить на Ошибки парсинг xls file %отдел прикладного тестирования%
from PyQt5 import QtCore, QtGui, QtWidgets
import sys,xlrd
from companyAbout import Ui_aboutCompanyWindow
from addcompany import addCompanyDialog
from bilCard impor... | {"/mainWindow.py": ["/companyAbout.py", "/bilCard.py", "/editCompany.py"]} |
41,512 | bidlocoder1422/DataBase1.0 | refs/heads/master | /companyAbout.py | # -*- coding: utf-8 -*-
#DONE1!1
from PyQt5 import QtCore, QtGui, QtWidgets
import xlrd
class Ui_aboutCompanyWindow(object):
def setupUi(self, aboutCompanyWindow,companyName):
self.companyName=companyName
aboutCompanyWindow.setObjectName("aboutCompanyWindow")
aboutCompanyWindow.resize(490... | {"/mainWindow.py": ["/companyAbout.py", "/bilCard.py", "/editCompany.py"]} |
41,513 | bidlocoder1422/DataBase1.0 | refs/heads/master | /bilCard.py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '.\billcard.ui'
#
# Created by: PyQt5 UI code generator 5.9
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
import sys, xlrd,math
class Ui_bilCard(QtWidgets.QWidget):
def setupUi(self... | {"/mainWindow.py": ["/companyAbout.py", "/bilCard.py", "/editCompany.py"]} |
41,514 | bidlocoder1422/DataBase1.0 | refs/heads/master | /editCompany.py | # -*- coding: utf-8 -*-
from PyQt5 import QtCore, QtGui, QtWidgets
import openpyxl,xlwt,xlrd
class editCompanyDialog(QtWidgets.QWidget):
def setupUi(self, Dialog):
Dialog.setObjectName("Dialog")
Dialog.resize(468, 324)
self.companyNameInput = QtWidgets.QLineEdit(Dialog)
self.compa... | {"/mainWindow.py": ["/companyAbout.py", "/bilCard.py", "/editCompany.py"]} |
41,515 | gtoban/kerasTimeSeries | refs/heads/master | /rnntune.py | import pandas as pd
import numpy as np
from kerasOOP import keras_ann, cnn_data
import os
import json
numOfInputFiles = 5
def main():
print("Initializing")
myAnn = keras_ann()
myloc = os.path.expanduser('~') + "/kerasTimeSeries/"
myData = cnn_data(dataPath= os.path.expanduser('~') + "/eegData/")
... | {"/rnntune.py": ["/kerasOOP.py"], "/testRNN.py": ["/kerasOOP.py"], "/graphModel.py": ["/kerasOOP.py"], "/tune.py": ["/kerasOOP.py"], "/makeConvData.py": ["/kerasOOP.py"], "/getFourier.py": ["/kerasOOP.py"]} |
41,516 | gtoban/kerasTimeSeries | refs/heads/master | /notifyWhenFinished.py | import smtplib, ssl
import subprocess
import time
import sys
def sendEmail(password):
port = 465
email = "gtoban87@gmail.com"
message = "Subject: Job Complete\n\n\n\nThe job is complete"
context = ssl.create_default_context()
with smtplib.SMTP_SSL("smtp.gmail.com",port,context=context) as ... | {"/rnntune.py": ["/kerasOOP.py"], "/testRNN.py": ["/kerasOOP.py"], "/graphModel.py": ["/kerasOOP.py"], "/tune.py": ["/kerasOOP.py"], "/makeConvData.py": ["/kerasOOP.py"], "/getFourier.py": ["/kerasOOP.py"]} |
41,517 | gtoban/kerasTimeSeries | refs/heads/master | /kerasOOP.py | import numpy as np
import json
import tensorflow as tf
from tensorflow.keras.models import Sequential, Model, load_model
from tensorflow.keras.layers import Dense, Conv1D, Flatten, MaxPooling1D, AveragePooling1D, Input, Concatenate, Embedding,LSTM, GRU, TimeDistributed, Bidirectional
from tensorflow.keras.callbacks imp... | {"/rnntune.py": ["/kerasOOP.py"], "/testRNN.py": ["/kerasOOP.py"], "/graphModel.py": ["/kerasOOP.py"], "/tune.py": ["/kerasOOP.py"], "/makeConvData.py": ["/kerasOOP.py"], "/getFourier.py": ["/kerasOOP.py"]} |
41,518 | gtoban/kerasTimeSeries | refs/heads/master | /printResults.py | import pandas as pd
import numpy as np
import sys
import json
from os import walk, path, listdir
def main():
if (len(sys.argv) < 2):
print("id number required")
exit(0)
idNum = f"{int(sys.argv[1]):05d}"
myDir = path.expanduser('~') + "/localstorage/kerasTimeSeries/modelResults"
if (path... | {"/rnntune.py": ["/kerasOOP.py"], "/testRNN.py": ["/kerasOOP.py"], "/graphModel.py": ["/kerasOOP.py"], "/tune.py": ["/kerasOOP.py"], "/makeConvData.py": ["/kerasOOP.py"], "/getFourier.py": ["/kerasOOP.py"]} |
41,519 | gtoban/kerasTimeSeries | refs/heads/master | /testRNN.py | import pandas as pd
import numpy as np
from kerasOOP import keras_ann, cnn_data
import os
import json
from os import listdir
numOfInputFiles = 5
def main():
print("Initializing")
myAnn = keras_ann()
myloc = os.path.expanduser('~') + "/kerasTimeSeries/myweights/rnn"
myloc = '/nfshome/gst2d/localstorage... | {"/rnntune.py": ["/kerasOOP.py"], "/testRNN.py": ["/kerasOOP.py"], "/graphModel.py": ["/kerasOOP.py"], "/tune.py": ["/kerasOOP.py"], "/makeConvData.py": ["/kerasOOP.py"], "/getFourier.py": ["/kerasOOP.py"]} |
41,520 | gtoban/kerasTimeSeries | refs/heads/master | /getFrequencies.py | import numpy as np
def main():
print("Initializing")
myloc = os.path.expanduser('~') + "/kerasTimeSeries/"
myData = ann_data(dataPath= os.path.expanduser('~') + "/eegData/")
myAnn.updatePaths(outputPath = os.path.dirname(os.path.realpath(__file__)) + "/")
testing = True
if (testing):... | {"/rnntune.py": ["/kerasOOP.py"], "/testRNN.py": ["/kerasOOP.py"], "/graphModel.py": ["/kerasOOP.py"], "/tune.py": ["/kerasOOP.py"], "/makeConvData.py": ["/kerasOOP.py"], "/getFourier.py": ["/kerasOOP.py"]} |
41,521 | gtoban/kerasTimeSeries | refs/heads/master | /bestSore.py | import pandas as pd
import numpy as np
import sys
import json
from os import walk, path, listdir
def main():
if (len(sys.argv) < 3):
print("test ID range [min max) required")
exit(0)
try:
amin = int(sys.argv[1])
amax = int(sys.argv[2])
if (amin >= amax):
t = ... | {"/rnntune.py": ["/kerasOOP.py"], "/testRNN.py": ["/kerasOOP.py"], "/graphModel.py": ["/kerasOOP.py"], "/tune.py": ["/kerasOOP.py"], "/makeConvData.py": ["/kerasOOP.py"], "/getFourier.py": ["/kerasOOP.py"]} |
41,522 | gtoban/kerasTimeSeries | refs/heads/master | /graphModel.py | import pandas as pd
import numpy as np
import json
import os
from os import listdir
from kerasOOP import keras_ann, ann_data
from modelBuilder import ModelBuilder
import sys
#NOTE: FLAG FOR TESTING SMALL MODELS ONLY!!
smallModelOnly = True
numOfInputFiles = 10
def main():
if (len(sys.argv) < 2):
freqBand = ... | {"/rnntune.py": ["/kerasOOP.py"], "/testRNN.py": ["/kerasOOP.py"], "/graphModel.py": ["/kerasOOP.py"], "/tune.py": ["/kerasOOP.py"], "/makeConvData.py": ["/kerasOOP.py"], "/getFourier.py": ["/kerasOOP.py"]} |
41,523 | gtoban/kerasTimeSeries | refs/heads/master | /updateCandidates.py | import pandas as pd
import numpy as np
import sys
import json
from os import walk, path, listdir
def main():
if (len(sys.argv) < 2):
print("test ID required")
exit(0)
elif (len(sys.argv) < 3):
amin = amax = -1
idNum = f"{int(sys.argv[1]):05d}"
else:
try:
... | {"/rnntune.py": ["/kerasOOP.py"], "/testRNN.py": ["/kerasOOP.py"], "/graphModel.py": ["/kerasOOP.py"], "/tune.py": ["/kerasOOP.py"], "/makeConvData.py": ["/kerasOOP.py"], "/getFourier.py": ["/kerasOOP.py"]} |
41,524 | gtoban/kerasTimeSeries | refs/heads/master | /getCandidates.py | import pandas as pd
import numpy as np
import sys
import json
from os import walk, path, listdir
def main():
if (len(sys.argv) < 3):
print("test ID range [min max) required")
exit(0)
try:
amin = int(sys.argv[1])
amax = int(sys.argv[2])
if (amin >= amax):
t = ... | {"/rnntune.py": ["/kerasOOP.py"], "/testRNN.py": ["/kerasOOP.py"], "/graphModel.py": ["/kerasOOP.py"], "/tune.py": ["/kerasOOP.py"], "/makeConvData.py": ["/kerasOOP.py"], "/getFourier.py": ["/kerasOOP.py"]} |
41,525 | gtoban/kerasTimeSeries | refs/heads/master | /kerasNN.py | import numpy as np
import tensorflow as tf
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Conv1D, Flatten
print(tf.version.VERSION)
print(tf.keras.__version__)
model = Sequential()
model.add(Conv1D(filters=32, kernel_size=10, activation="relu", input_shape=(3000,1))) #shape ... | {"/rnntune.py": ["/kerasOOP.py"], "/testRNN.py": ["/kerasOOP.py"], "/graphModel.py": ["/kerasOOP.py"], "/tune.py": ["/kerasOOP.py"], "/makeConvData.py": ["/kerasOOP.py"], "/getFourier.py": ["/kerasOOP.py"]} |
41,526 | gtoban/kerasTimeSeries | refs/heads/master | /tune.py | import pandas as pd
import numpy as np
import tensorflow as tf
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Conv1D, Flatten
from tensorflow.keras.wrappers.scikit_learn import KerasClassifier
from sklearn.model_selection import RandomizedSearchCV
from kerasOOP import keras_an... | {"/rnntune.py": ["/kerasOOP.py"], "/testRNN.py": ["/kerasOOP.py"], "/graphModel.py": ["/kerasOOP.py"], "/tune.py": ["/kerasOOP.py"], "/makeConvData.py": ["/kerasOOP.py"], "/getFourier.py": ["/kerasOOP.py"]} |
41,527 | gtoban/kerasTimeSeries | refs/heads/master | /makeConvData.py | import numpy as np
import json
from os import listdir, path
from kerasOOP import ann_data, keras_ann
def main():
# load models and weights
print("Initializing")
myAnn = keras_ann()
mySaveLoc = path.expanduser('~') + "/eegData/"
myLoadLoc = path.expanduser('~') + "/localstorage/kerasTimeSeries/myweig... | {"/rnntune.py": ["/kerasOOP.py"], "/testRNN.py": ["/kerasOOP.py"], "/graphModel.py": ["/kerasOOP.py"], "/tune.py": ["/kerasOOP.py"], "/makeConvData.py": ["/kerasOOP.py"], "/getFourier.py": ["/kerasOOP.py"]} |
41,528 | gtoban/kerasTimeSeries | refs/heads/master | /storeFiles.py | import subprocess
import datetime
import sys
import os
def main():
if (len(sys.argv) < 2):
print("id number required")
exit(0)
idNumI = int(sys.argv[1])
d = datetime.date.today()
idDate = f"{idNumI:05d}.{d.year}{d.month:02d}{d.day:02d}."
model = idDate + "fileModel.csv"
result ... | {"/rnntune.py": ["/kerasOOP.py"], "/testRNN.py": ["/kerasOOP.py"], "/graphModel.py": ["/kerasOOP.py"], "/tune.py": ["/kerasOOP.py"], "/makeConvData.py": ["/kerasOOP.py"], "/getFourier.py": ["/kerasOOP.py"]} |
41,529 | gtoban/kerasTimeSeries | refs/heads/master | /getFourier.py | import pandas as pd
import numpy as np
import os
import json
from kerasOOP import keras_ann, ann_data
from matplotlib import pyplot as plt
from sklearn.cluster import KMeans
from scipy import stats
#import progressbar
numOfInputFiles = 5
def main():
myloc = os.path.expanduser('~') + "/kerasTimeSeries/"
myData ... | {"/rnntune.py": ["/kerasOOP.py"], "/testRNN.py": ["/kerasOOP.py"], "/graphModel.py": ["/kerasOOP.py"], "/tune.py": ["/kerasOOP.py"], "/makeConvData.py": ["/kerasOOP.py"], "/getFourier.py": ["/kerasOOP.py"]} |
41,562 | Anonymous0064/CyberUserBot | refs/heads/master | /userbot/modules/lyrics.py | # CYBERUSERBOT - Luciferxz #
import os
import lyricsgenius
import asyncio
from userbot.events import register
from userbot import CMD_HELP, GENIUS
from userbot.cmdhelp import CmdHelp
# ██████ LANGUAGE CONSTANTS ██████ #
from userbot.language import get_value
LANG = get_value("lyrics")
# ██████████████████████████... | {"/userbot/modules/lyrics.py": ["/userbot/events.py", "/userbot/__init__.py"], "/userbot/modules/store.py": ["/userbot/events.py", "/userbot/__init__.py", "/userbot/main.py"], "/userbot/modules/glitcher.py": ["/userbot/__init__.py", "/userbot/events.py", "/userbot/utils/__init__.py"], "/userbot/modules/github.py": ["/u... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.