index int64 | repo_name string | branch_name string | path string | content string | import_graph string |
|---|---|---|---|---|---|
85,597 | aazabal1/TDAB | refs/heads/main | /evaluate_model.py | import argparse
import logging
import os
import pandas as pd
import numpy as np
import tensorflow as tf
import matplotlib.pyplot as plt
import seaborn as sns
from sklearn.metrics import classification_report
from sklearn.metrics import confusion_matrix
from tensorflow.keras.models import load_model
LOG = logging.g... | {"/data_input_model.py": ["/src/scalers.py"]} |
85,598 | aazabal1/TDAB | refs/heads/main | /select_features.py | import argparse
import logging
import os
import pandas as pd
import numpy as np
import json
LOG = logging.getLogger(__name__)
def select_features(input_args):
""" Select only appropriate features to input to model """
with open(input_args.features) as write_file:
features = json.load(write_file)
... | {"/data_input_model.py": ["/src/scalers.py"]} |
85,599 | aazabal1/TDAB | refs/heads/main | /src/scalers.py | from sklearn.base import BaseEstimator, TransformerMixin
from sklearn.preprocessing import MinMaxScaler
from sklearn.model_selection import train_test_split
import numpy as np
class RNN_Transform_Wrap(BaseEstimator, TransformerMixin):
""" Wrapper to apply scaling transformation to 3d shaped array required
... | {"/data_input_model.py": ["/src/scalers.py"]} |
85,600 | aazabal1/TDAB | refs/heads/main | /data_cleaning.py | import argparse
import logging
import os
import pandas as pd
import numpy as np
import datetime
LOG = logging.getLogger(__name__)
def load_data(input_data):
""" Load data from raw csv dataset and return dataframe """
data = pd.read_csv(input_data)
LOG.info(f"Dataset read from {input_data}")
return d... | {"/data_input_model.py": ["/src/scalers.py"]} |
85,612 | akirbaes/grapheditor | refs/heads/master | /EditorGraphDrawer.py | try:
import Tkinter as Tk
except ImportError:
import tkinter as Tk
margin=30
class NodeDrawing:
def __init__(self,x,y,canvas,empty=False,content=""):
self.content="5"
self.canvas=canvas
self.x=x
self.y=y
self.empty=empty
self.lowerbound = margin
self.upperbound = int(self.canvas.cget("width"))-... | {"/EditorGui.py": ["/EditorGraphDrawer.py"]} |
85,613 | akirbaes/grapheditor | refs/heads/master | /EditorGui.py | # /usr/bin/env python 3
# -*- coding: utf-8 -*-
import os
import EditorGraphDrawer as GraphDrawer
from random import randint
from random import choice
try:
import Tkinter as Tk
except ImportError:
import tkinter as Tk
from tkinter import messagebox
try:
from tkinter.filedialog import askopenfilename #python 3
ex... | {"/EditorGui.py": ["/EditorGraphDrawer.py"]} |
85,615 | lancelee98/archer | refs/heads/main | /archer/archer4_visir.py | from __future__ import print_function
import matplotlib
matplotlib.use('agg') # AJW 16Aug2018
import matplotlib.pyplot as plt
import matplotlib.patches as patches
import matplotlib.gridspec as gridspec
from matplotlib import cm
from mpl_toolkits.axes_grid1 import make_axes_locatable
plt.close('all')
matplotlib.rcPara... | {"/archer/archer4_visir.py": ["/archer/utilities/DisplayToolbox.py", "/archer/utilities/MapToolbox.py", "/archer/utilities/ScoreFuncs.py", "/archer/utilities/Conversions.py", "/archer/utilities/NavToolbox.py"], "/archer/archer4.py": ["/archer/archer4_mw.py", "/archer/archer4_visir.py", "/archer/utilities/fdeckToolbox.p... |
85,616 | lancelee98/archer | refs/heads/main | /archer/utilities/IntenTools.py |
from __future__ import print_function
import numpy as np
def lookupNearest(x0, y0):
xi = numpy.abs(x-x0).argmin()
yi = numpy.abs(y-y0).argmin()
return data[yi,xi]
def lookupNearest_arr(x0_arr, y0_arr, x_arr, y_arr, data):
# x0_arr, y0_arr: Set of points for nearest neighbor interpolation
# x_ar... | {"/archer/archer4_visir.py": ["/archer/utilities/DisplayToolbox.py", "/archer/utilities/MapToolbox.py", "/archer/utilities/ScoreFuncs.py", "/archer/utilities/Conversions.py", "/archer/utilities/NavToolbox.py"], "/archer/archer4.py": ["/archer/archer4_mw.py", "/archer/archer4_visir.py", "/archer/utilities/fdeckToolbox.p... |
85,617 | lancelee98/archer | refs/heads/main | /data/convert_h5_to_nc.py | import matplotlib
matplotlib.use('agg') # AJW 16Aug2018
import matplotlib.pyplot as plt
import matplotlib.patches as patches
import matplotlib.gridspec as gridspec
from matplotlib import cm
from mpl_toolkits.axes_grid1 import make_axes_locatable
plt.close('all')
matplotlib.rcParams['axes.titlesize'] = 10
matplotlib.r... | {"/archer/archer4_visir.py": ["/archer/utilities/DisplayToolbox.py", "/archer/utilities/MapToolbox.py", "/archer/utilities/ScoreFuncs.py", "/archer/utilities/Conversions.py", "/archer/utilities/NavToolbox.py"], "/archer/archer4.py": ["/archer/archer4_mw.py", "/archer/archer4_visir.py", "/archer/utilities/fdeckToolbox.p... |
85,618 | lancelee98/archer | refs/heads/main | /archer/utilities/NavToolbox.py | from __future__ import print_function
import numpy as np
import time, pandas, os
from pyproj import Geod ### REQUIRES SPECIAL INSTALL: conda install pyproj
def antemeridian_decross(lonGrid, first_guess_lon):
# If the TC is close to the antemeridian, choose a side (positive lon)
if np.any(lonGrid > 170) and n... | {"/archer/archer4_visir.py": ["/archer/utilities/DisplayToolbox.py", "/archer/utilities/MapToolbox.py", "/archer/utilities/ScoreFuncs.py", "/archer/utilities/Conversions.py", "/archer/utilities/NavToolbox.py"], "/archer/archer4.py": ["/archer/archer4_mw.py", "/archer/archer4_visir.py", "/archer/utilities/fdeckToolbox.p... |
85,619 | lancelee98/archer | refs/heads/main | /archer/utilities/write_archer_out_nc.py |
import time, calendar
import numpy as np
import netCDF4
from os import remove
from os.path import isfile
def write_rdf_paths_netcdf(filename, lonPathGrid, latPathGrid,
sourceTime, destinTime, lonArr, latArr, netcdf_format):
# This is necessary to fix a bug in the Netcdf4 module with f... | {"/archer/archer4_visir.py": ["/archer/utilities/DisplayToolbox.py", "/archer/utilities/MapToolbox.py", "/archer/utilities/ScoreFuncs.py", "/archer/utilities/Conversions.py", "/archer/utilities/NavToolbox.py"], "/archer/archer4.py": ["/archer/archer4_mw.py", "/archer/archer4_visir.py", "/archer/utilities/fdeckToolbox.p... |
85,620 | lancelee98/archer | refs/heads/main | /archer/utilities/InterpToolbox.py | # -*- coding: utf-8 -*-
"""
Created on Wed Feb 24 10:56:54 2016
@author: wimmers
"""
from __future__ import print_function
import numpy as np
from scipy.interpolate import griddata
#from scipy import interpolate
def InterpSwathToGlobalRectGridSet(lonSwath, latSwath, dataSwath, footprintSwath, timeSwath, lonGridArr,... | {"/archer/archer4_visir.py": ["/archer/utilities/DisplayToolbox.py", "/archer/utilities/MapToolbox.py", "/archer/utilities/ScoreFuncs.py", "/archer/utilities/Conversions.py", "/archer/utilities/NavToolbox.py"], "/archer/archer4.py": ["/archer/archer4_mw.py", "/archer/archer4_visir.py", "/archer/utilities/fdeckToolbox.p... |
85,621 | lancelee98/archer | refs/heads/main | /archer/archer4.py | from __future__ import print_function
from archer.archer4_mw import archer4_mw
from archer.archer4_visir import archer4_visir
import archer.utilities.fdeckToolbox as fdtbx
def archer4(image, attrib, first_guess, sector_info=None, para_fix=True, display_filename=None):
# archer4:
#
# This function channe... | {"/archer/archer4_visir.py": ["/archer/utilities/DisplayToolbox.py", "/archer/utilities/MapToolbox.py", "/archer/utilities/ScoreFuncs.py", "/archer/utilities/Conversions.py", "/archer/utilities/NavToolbox.py"], "/archer/archer4.py": ["/archer/archer4_mw.py", "/archer/archer4_visir.py", "/archer/utilities/fdeckToolbox.p... |
85,622 | lancelee98/archer | refs/heads/main | /archer/utilities/MapToolbox.py | # -*- coding: utf-8 -*-
"""
Created on Thu Feb 25 17:10:01 2016
@author: wimmers
"""
from __future__ import print_function
import numpy as np
import netCDF4
import os
def distance_deg(lat1, lon1, lat2, lon2):
lat_dist_deg = lat1 - lat2
avg_lat = (lat1 + lat2) / 2
lon_dist_deg = (lon1 - lon2) * np.cos(np... | {"/archer/archer4_visir.py": ["/archer/utilities/DisplayToolbox.py", "/archer/utilities/MapToolbox.py", "/archer/utilities/ScoreFuncs.py", "/archer/utilities/Conversions.py", "/archer/utilities/NavToolbox.py"], "/archer/archer4.py": ["/archer/archer4_mw.py", "/archer/archer4_visir.py", "/archer/utilities/fdeckToolbox.p... |
85,623 | lancelee98/archer | refs/heads/main | /archer/utilities/ScoreFuncs.py | from __future__ import print_function
import numpy as np
import archer.utilities.InterpToolbox as intbx
#from importlib import reload
#reload(intbx)
def ind2sub(array_shape, ind):
rows = (ind.astype('int') // array_shape[1])
cols = (ind.astype('int') % array_shape[1]) # or numpy.mod(ind.astype('int'), array_s... | {"/archer/archer4_visir.py": ["/archer/utilities/DisplayToolbox.py", "/archer/utilities/MapToolbox.py", "/archer/utilities/ScoreFuncs.py", "/archer/utilities/Conversions.py", "/archer/utilities/NavToolbox.py"], "/archer/archer4.py": ["/archer/archer4_mw.py", "/archer/archer4_visir.py", "/archer/utilities/fdeckToolbox.p... |
85,624 | lancelee98/archer | refs/heads/main | /demo.py |
from scipy.io import loadmat
import time, calendar, datetime
import numpy as np
import netCDF4, h5py # Note that you might get funny behavior if you import these in reverse order
from archer.archer4 import archer4
# This instructs the script to calculate all the examples. Otherwise, edit the
# script on a case by c... | {"/archer/archer4_visir.py": ["/archer/utilities/DisplayToolbox.py", "/archer/utilities/MapToolbox.py", "/archer/utilities/ScoreFuncs.py", "/archer/utilities/Conversions.py", "/archer/utilities/NavToolbox.py"], "/archer/archer4.py": ["/archer/archer4_mw.py", "/archer/archer4_visir.py", "/archer/utilities/fdeckToolbox.p... |
85,625 | lancelee98/archer | refs/heads/main | /archer/utilities/fdeckToolbox.py | from __future__ import print_function
import numpy as np
import datetime
def generate_string(attrib, in_dict, out_dict, sector_info=None):
if sector_info is not None:
bn = sector_info['storm_basin']
cy = sector_info['storm_num']
else:
# Placeholders
bn = 'BB'
cy = 'NN... | {"/archer/archer4_visir.py": ["/archer/utilities/DisplayToolbox.py", "/archer/utilities/MapToolbox.py", "/archer/utilities/ScoreFuncs.py", "/archer/utilities/Conversions.py", "/archer/utilities/NavToolbox.py"], "/archer/archer4.py": ["/archer/archer4_mw.py", "/archer/archer4_visir.py", "/archer/utilities/fdeckToolbox.p... |
85,626 | lancelee98/archer | refs/heads/main | /archer/utilities/Conversions.py | from __future__ import print_function
import numpy as np
import archer.utilities.InterpToolbox as intbx
#from importlib import reload
#reload(intbx)
def confidence_to_alpha(confidence_score, archer_channel_type, fxHr, vmax):
alpha_floor = 0.5
if archer_channel_type == 'RSCAT':
m_fit = 1.8
b_... | {"/archer/archer4_visir.py": ["/archer/utilities/DisplayToolbox.py", "/archer/utilities/MapToolbox.py", "/archer/utilities/ScoreFuncs.py", "/archer/utilities/Conversions.py", "/archer/utilities/NavToolbox.py"], "/archer/archer4.py": ["/archer/archer4_mw.py", "/archer/archer4_visir.py", "/archer/utilities/fdeckToolbox.p... |
85,627 | lancelee98/archer | refs/heads/main | /archer/utilities/DisplayToolbox.py | # -*- coding: utf-8 -*-
"""
Created on Thu Feb 25 17:10:01 2016
@author: wimmers
"""
from __future__ import print_function
import matplotlib
matplotlib.use('agg') # AJW 16Aug2018
import matplotlib.pyplot as plt
import matplotlib.patches as patches
import matplotlib.gridspec as gridspec
from matplotlib import cm
from ... | {"/archer/archer4_visir.py": ["/archer/utilities/DisplayToolbox.py", "/archer/utilities/MapToolbox.py", "/archer/utilities/ScoreFuncs.py", "/archer/utilities/Conversions.py", "/archer/utilities/NavToolbox.py"], "/archer/archer4.py": ["/archer/archer4_mw.py", "/archer/archer4_visir.py", "/archer/utilities/fdeckToolbox.p... |
85,628 | lancelee98/archer | refs/heads/main | /archer/archer4_mw.py | from __future__ import print_function
import matplotlib
matplotlib.use('agg') # AJW 16Aug2018
import matplotlib.pyplot as plt
import matplotlib.patches as patches
import matplotlib.gridspec as gridspec
from matplotlib import cm
from mpl_toolkits.axes_grid1 import make_axes_locatable
plt.close('all')
matplotlib.rcPara... | {"/archer/archer4_visir.py": ["/archer/utilities/DisplayToolbox.py", "/archer/utilities/MapToolbox.py", "/archer/utilities/ScoreFuncs.py", "/archer/utilities/Conversions.py", "/archer/utilities/NavToolbox.py"], "/archer/archer4.py": ["/archer/archer4_mw.py", "/archer/archer4_visir.py", "/archer/utilities/fdeckToolbox.p... |
85,629 | lancelee98/archer | refs/heads/main | /archer/utilities/NetcdfToolbox.py | from __future__ import print_function
import time, calendar
import numpy as np
import netCDF4
from os import remove
from os.path import isfile
import utilities.ScoreFuncs as sftbx
def write_archer_out_nc(filename, mi_dict, score_dict, stats_dict, processed_dict):
# This is necessary to fix a bug in the Netcdf4 m... | {"/archer/archer4_visir.py": ["/archer/utilities/DisplayToolbox.py", "/archer/utilities/MapToolbox.py", "/archer/utilities/ScoreFuncs.py", "/archer/utilities/Conversions.py", "/archer/utilities/NavToolbox.py"], "/archer/archer4.py": ["/archer/archer4_mw.py", "/archer/archer4_visir.py", "/archer/utilities/fdeckToolbox.p... |
85,639 | Cloud6Tech/battleship | refs/heads/master | /ship.py | # Final Project: Battleship Game
# CST 205
# Group Seven: Brett Hansen, Jason Lloyd, Matthew Mason, Heather McCabe
# Last modified: Dec 14, 2015
# ship.py
from media import *
class Ship:
def __init__(self, size, description):
# Number of hits a ship can take, and number of squares it takes up on the board
... | {"/player.py": ["/ship.py", "/board.py"], "/cpuPlayer.py": ["/ship.py", "/board.py"], "/battleship.py": ["/player.py", "/cpuPlayer.py", "/ship.py", "/board.py", "/sounds.py"]} |
85,640 | Cloud6Tech/battleship | refs/heads/master | /player.py | # Final Project: Battleship Game
# CST 205
# Group Seven: Brett Hansen, Jason Lloyd, Matthew Mason, Heather McCabe
# Last modified: Dec 14, 2015
# Player.py
from media import *
from ship import Ship
from board import Board
from javax.swing import JOptionPane
# Display an option dialog with given title (string), messa... | {"/player.py": ["/ship.py", "/board.py"], "/cpuPlayer.py": ["/ship.py", "/board.py"], "/battleship.py": ["/player.py", "/cpuPlayer.py", "/ship.py", "/board.py", "/sounds.py"]} |
85,641 | Cloud6Tech/battleship | refs/heads/master | /board.py | # Final Project: Battleship Game
# CST 205
# Group Seven: Brett Hansen, Jason Lloyd, Matthew Mason, Heather McCabe
# Last modified: Dec 14, 2015
# board.py
from media import *
import string
class Board:
def __init__(self, description = ''):
self._description = description
self._size = 10 # By default ... | {"/player.py": ["/ship.py", "/board.py"], "/cpuPlayer.py": ["/ship.py", "/board.py"], "/battleship.py": ["/player.py", "/cpuPlayer.py", "/ship.py", "/board.py", "/sounds.py"]} |
85,642 | Cloud6Tech/battleship | refs/heads/master | /cpuPlayer.py | # Final Project: Battleship Game
# CST 205
# Group Seven: Brett Hansen, Jason Lloyd, Matthew Mason, Heather McCabe
# Last modified: Dec 14, 2015
# CPUPlayer.py
from media import *
from ship import Ship
from board import Board
import random
class CPUPlayer:
def __init__(self, name=''):
self._name = name
s... | {"/player.py": ["/ship.py", "/board.py"], "/cpuPlayer.py": ["/ship.py", "/board.py"], "/battleship.py": ["/player.py", "/cpuPlayer.py", "/ship.py", "/board.py", "/sounds.py"]} |
85,643 | Cloud6Tech/battleship | refs/heads/master | /sounds.py | # Final Project: Battleship Game
# CST 205
# Group Seven: Brett Hansen, Jason Lloyd, Matthew Mason, Heather McCabe
# Last modified: Dec 14, 2015
# sounds.py
from media import *
from time import *
class SoundEffect:
def __init__(self, filePath):
self._sound = makeSound(filePath)
def playStart(self):
... | {"/player.py": ["/ship.py", "/board.py"], "/cpuPlayer.py": ["/ship.py", "/board.py"], "/battleship.py": ["/player.py", "/cpuPlayer.py", "/ship.py", "/board.py", "/sounds.py"]} |
85,644 | Cloud6Tech/battleship | refs/heads/master | /battleship.py | # Final Project: Battleship Game
# Group Seven: Brett Hansen, Jason Lloyd, Matthew Mason, Heather McCabe
# Last modified: Dec 13, 2015
# battleship.py
# Set the directory for imports and sound files
showInformation('Please select the folder containing the library files.')
libPath = pickAFolder()
setLibPath(libPath)
so... | {"/player.py": ["/ship.py", "/board.py"], "/cpuPlayer.py": ["/ship.py", "/board.py"], "/battleship.py": ["/player.py", "/cpuPlayer.py", "/ship.py", "/board.py", "/sounds.py"]} |
85,651 | Aryparikh/textSummarizer | refs/heads/master | /pdf2txt.py | """ Author - Aryamaan Parikh
Python 2.7
Look at pdfTextExtractor for documentation on this
"""
import subprocess
from pypdfocr.pypdfocr import PyPDFOCR
import PyPDF2
from cStringIO import StringIO
from pdfminer.pdfinterp import PDFResourceManager, PDFPageInterpreter
from pdfminer.converter import TextConverter
from pd... | {"/autoSummarizer.py": ["/pdf2txt.py"]} |
85,652 | Aryparikh/textSummarizer | refs/heads/master | /autoSummarizer.py | """ Author - Aryamaan Parikh
Python 2.7
"""
from gensim.summarization import summarize
import pdf2txt
import re
def particularRangeSearch(textlist, frompage,topage):
summarized = []
print("Summarized Text is :" + "\n")
for t in range(frompage,topage+1):
# print(type(textlist[t]))
print("P... | {"/autoSummarizer.py": ["/pdf2txt.py"]} |
85,655 | nmaslov255/industry | refs/heads/master | /industry/main/migrations/0005_auto_20201201_0510.py | # Generated by Django 3.1.1 on 2020-12-01 05:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0004_auto_20200930_1647'),
]
operations = [
migrations.AddField(
model_name='category',
name='disabled',
... | {"/industry/main/admin.py": ["/industry/main/models.py"], "/industry/main/views.py": ["/industry/main/models.py", "/industry/main/services/CRUD.py", "/industry/main/services/helpers.py"], "/industry/main/services/CRUD.py": ["/industry/main/services/helpers.py"]} |
85,656 | nmaslov255/industry | refs/heads/master | /industry/main/migrations/0008_auto_20201202_0222.py | # Generated by Django 3.1.1 on 2020-12-02 02:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0007_category_slug'),
]
operations = [
migrations.AlterModelOptions(
name='category',
options={'ordering': [... | {"/industry/main/admin.py": ["/industry/main/models.py"], "/industry/main/views.py": ["/industry/main/models.py", "/industry/main/services/CRUD.py", "/industry/main/services/helpers.py"], "/industry/main/services/CRUD.py": ["/industry/main/services/helpers.py"]} |
85,657 | nmaslov255/industry | refs/heads/master | /industry/main/migrations/0014_auto_20201218_0150.py | # Generated by Django 3.1.1 on 2020-12-18 01:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0013_auto_20201218_0150'),
]
operations = [
migrations.CreateModel(
name='Feed',
fields=[
('... | {"/industry/main/admin.py": ["/industry/main/models.py"], "/industry/main/views.py": ["/industry/main/models.py", "/industry/main/services/CRUD.py", "/industry/main/services/helpers.py"], "/industry/main/services/CRUD.py": ["/industry/main/services/helpers.py"]} |
85,658 | nmaslov255/industry | refs/heads/master | /industry/main/admin.py | from django.contrib import admin
from .models import Category, Post, Feed
admin.site.register(Category)
admin.site.register(Post)
admin.site.register(Feed)
| {"/industry/main/admin.py": ["/industry/main/models.py"], "/industry/main/views.py": ["/industry/main/models.py", "/industry/main/services/CRUD.py", "/industry/main/services/helpers.py"], "/industry/main/services/CRUD.py": ["/industry/main/services/helpers.py"]} |
85,659 | nmaslov255/industry | refs/heads/master | /industry/main/models.py | from django.db import models
class Category(models.Model):
name = models.CharField(max_length=50)
slug = models.SlugField(max_length=50, blank=True)
is_news = models.BooleanField(default=False)
order = models.PositiveIntegerField(default=0, blank=False, null=False)
logo = models.CharField(max... | {"/industry/main/admin.py": ["/industry/main/models.py"], "/industry/main/views.py": ["/industry/main/models.py", "/industry/main/services/CRUD.py", "/industry/main/services/helpers.py"], "/industry/main/services/CRUD.py": ["/industry/main/services/helpers.py"]} |
85,660 | nmaslov255/industry | refs/heads/master | /industry/main/migrations/0009_auto_20201202_0243.py | # Generated by Django 3.1.1 on 2020-12-02 02:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0008_auto_20201202_0222'),
]
operations = [
migrations.AlterField(
model_name='category',
name='my_order',
... | {"/industry/main/admin.py": ["/industry/main/models.py"], "/industry/main/views.py": ["/industry/main/models.py", "/industry/main/services/CRUD.py", "/industry/main/services/helpers.py"], "/industry/main/services/CRUD.py": ["/industry/main/services/helpers.py"]} |
85,661 | nmaslov255/industry | refs/heads/master | /industry/main/services/helpers.py | import datetime
from datetime import timedelta
def datetime_calendar(from_date, to_date, delta):
"""
Arguments:
from_date {datetime.datetime} -- start_date
to_date {datetime.datetime} -- end_date
timedelta {datetime.timedelta} -- delta/step of time
Returns:
list -- list... | {"/industry/main/admin.py": ["/industry/main/models.py"], "/industry/main/views.py": ["/industry/main/models.py", "/industry/main/services/CRUD.py", "/industry/main/services/helpers.py"], "/industry/main/services/CRUD.py": ["/industry/main/services/helpers.py"]} |
85,662 | nmaslov255/industry | refs/heads/master | /industry/main/urls.py | from django.urls import path
from . import views
app_name = 'main'
urlpatterns = [
path('', views.landing, name='landing'),
path('news/<str:category_slug>', views.news, name='news'),
path('news_ajax/<int:category_id>/<str:start_date>/<int:limit>',
views.news_ajax, name='news_ajax'),
path('m... | {"/industry/main/admin.py": ["/industry/main/models.py"], "/industry/main/views.py": ["/industry/main/models.py", "/industry/main/services/CRUD.py", "/industry/main/services/helpers.py"], "/industry/main/services/CRUD.py": ["/industry/main/services/helpers.py"]} |
85,663 | nmaslov255/industry | refs/heads/master | /industry/main/views.py | from django.http import HttpResponse, JsonResponse
from django.template import loader
from .models import Post, Category, Feed
from .services.CRUD import get_posts, get_category, get_all_categories
from .services.helpers import datetime_calendar
import datetime
from datetime import timedelta
from django.utils.datepa... | {"/industry/main/admin.py": ["/industry/main/models.py"], "/industry/main/views.py": ["/industry/main/models.py", "/industry/main/services/CRUD.py", "/industry/main/services/helpers.py"], "/industry/main/services/CRUD.py": ["/industry/main/services/helpers.py"]} |
85,664 | nmaslov255/industry | refs/heads/master | /industry/gunicorn_config.py | command = '/home/user/industry/env/bin/gunicorn'
pythonpath = '/home/user/industry/industry'
bind = '127.0.0.1:8001'
workers = 3
user = 'user'
limit_requests_fields = 3200
limit_requests_field_size = 0
raw_env = 'DJANGO_SETTINGS_MODULE=industry.settings'
| {"/industry/main/admin.py": ["/industry/main/models.py"], "/industry/main/views.py": ["/industry/main/models.py", "/industry/main/services/CRUD.py", "/industry/main/services/helpers.py"], "/industry/main/services/CRUD.py": ["/industry/main/services/helpers.py"]} |
85,665 | nmaslov255/industry | refs/heads/master | /industry/main/migrations/0003_new_section.py | # Generated by Django 3.1.1 on 2020-09-30 16:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0002_auto_20200930_1214'),
]
operations = [
migrations.AddField(
model_name='new',
name='section',
... | {"/industry/main/admin.py": ["/industry/main/models.py"], "/industry/main/views.py": ["/industry/main/models.py", "/industry/main/services/CRUD.py", "/industry/main/services/helpers.py"], "/industry/main/services/CRUD.py": ["/industry/main/services/helpers.py"]} |
85,666 | nmaslov255/industry | refs/heads/master | /industry/main/migrations/0012_category_logo.py | # Generated by Django 3.1.1 on 2020-12-03 08:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0011_auto_20201202_0319'),
]
operations = [
migrations.AddField(
model_name='category',
name='logo',
... | {"/industry/main/admin.py": ["/industry/main/models.py"], "/industry/main/views.py": ["/industry/main/models.py", "/industry/main/services/CRUD.py", "/industry/main/services/helpers.py"], "/industry/main/services/CRUD.py": ["/industry/main/services/helpers.py"]} |
85,667 | nmaslov255/industry | refs/heads/master | /industry/main/migrations/0013_auto_20201218_0150.py | # Generated by Django 3.1.1 on 2020-12-18 01:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0012_category_logo'),
]
operations = [
migrations.AlterField(
model_name='post',
name='title',
f... | {"/industry/main/admin.py": ["/industry/main/models.py"], "/industry/main/views.py": ["/industry/main/models.py", "/industry/main/services/CRUD.py", "/industry/main/services/helpers.py"], "/industry/main/services/CRUD.py": ["/industry/main/services/helpers.py"]} |
85,668 | nmaslov255/industry | refs/heads/master | /industry/main/migrations/0011_auto_20201202_0319.py | # Generated by Django 3.1.1 on 2020-12-02 03:19
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('main', '0010_auto_20201202_0245'),
]
operations = [
migrations.AlterModelOptions(
name='category',
options={'ordering': ['or... | {"/industry/main/admin.py": ["/industry/main/models.py"], "/industry/main/views.py": ["/industry/main/models.py", "/industry/main/services/CRUD.py", "/industry/main/services/helpers.py"], "/industry/main/services/CRUD.py": ["/industry/main/services/helpers.py"]} |
85,669 | nmaslov255/industry | refs/heads/master | /industry/main/services/CRUD.py | from main.models import Post, Category
from .helpers import datetime_calendar
from django.http import Http404
def get_posts(start_date, end_date, category_id):
return Post.objects.order_by('-pub_date', '-id')\
.filter(category=category_id, pub_date__gte=start_date)\
.exclude(pub_date... | {"/industry/main/admin.py": ["/industry/main/models.py"], "/industry/main/views.py": ["/industry/main/models.py", "/industry/main/services/CRUD.py", "/industry/main/services/helpers.py"], "/industry/main/services/CRUD.py": ["/industry/main/services/helpers.py"]} |
85,670 | nmaslov255/industry | refs/heads/master | /industry/main/migrations/0010_auto_20201202_0245.py | # Generated by Django 3.1.1 on 2020-12-02 02:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0009_auto_20201202_0243'),
]
operations = [
migrations.AlterModelOptions(
name='category',
options={},
... | {"/industry/main/admin.py": ["/industry/main/models.py"], "/industry/main/views.py": ["/industry/main/models.py", "/industry/main/services/CRUD.py", "/industry/main/services/helpers.py"], "/industry/main/services/CRUD.py": ["/industry/main/services/helpers.py"]} |
85,671 | nmaslov255/industry | refs/heads/master | /industry/main/migrations/0006_auto_20201201_0511.py | # Generated by Django 3.1.1 on 2020-12-01 05:11
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('main', '0005_auto_20201201_0510'),
]
operations = [
migrations.RenameField(
model_name='category',
old_name='disabled',
... | {"/industry/main/admin.py": ["/industry/main/models.py"], "/industry/main/views.py": ["/industry/main/models.py", "/industry/main/services/CRUD.py", "/industry/main/services/helpers.py"], "/industry/main/services/CRUD.py": ["/industry/main/services/helpers.py"]} |
85,674 | ljy0ustc/privacy-preserving-bandits | refs/heads/master | /bandipy/__init__.py | name = "bndipy"
| {"/bandipy/environment.py": ["/bandipy/__init__.py"], "/bandipy/simulation.py": ["/bandipy/__init__.py"]} |
85,675 | ljy0ustc/privacy-preserving-bandits | refs/heads/master | /bandipy/policy.py | import numpy as np
###____________ Policy Interface ____________###
class Policy:
def __init__(self, num_actions, num_contexts):
self.num_actions = num_actions
self.num_contexts = num_contexts
self.total_rewards = np.zeros(num_actions, dtype = np.longdouble)
self.total_counts = np.... | {"/bandipy/environment.py": ["/bandipy/__init__.py"], "/bandipy/simulation.py": ["/bandipy/__init__.py"]} |
85,676 | ljy0ustc/privacy-preserving-bandits | refs/heads/master | /bandipy/experiment.py | import numpy as np
###____________ Experiment Interface ____________###
class Experiment():
def __init__(self, env, agent):
self.env = env
self.agent = agent
self.con_act_rew_hist = list()
self.cumulative_reward = 0.0
self.cumulative_regret = 0.0
def run_bandit(sel... | {"/bandipy/environment.py": ["/bandipy/__init__.py"], "/bandipy/simulation.py": ["/bandipy/__init__.py"]} |
85,677 | ljy0ustc/privacy-preserving-bandits | refs/heads/master | /bandipy/environment.py | import numpy as np
from bandipy import prior
class ContextSpace:
def __init__(self, contexts,
context_type=None, contexts_dist=None,
contexts_dist_params=None, contexts_data=None):
self.contexts = contexts
self.size = len(contexts)
self.context_type = context... | {"/bandipy/environment.py": ["/bandipy/__init__.py"], "/bandipy/simulation.py": ["/bandipy/__init__.py"]} |
85,678 | ljy0ustc/privacy-preserving-bandits | refs/heads/master | /bandipy/simulation.py | ## Basics
import os
import sys
import random
import numpy as np
import pandas as pd
import scipy.stats as stats
import matplotlib.pyplot as plt
## To save a trained ML Models
import pickle
from sklearn.cluster import KMeans
## To calculate possible combinations of a histograms
from scipy.special import comb
## To round... | {"/bandipy/environment.py": ["/bandipy/__init__.py"], "/bandipy/simulation.py": ["/bandipy/__init__.py"]} |
85,679 | ljy0ustc/privacy-preserving-bandits | refs/heads/master | /bandipy/plotter.py | import numpy as np
import matplotlib.pyplot as plt
class Plotter():
def __init__(self):
self.scale = 1
def plot_pms(self, p_mat, scale=1, save_fig=False, file_name="prior_pms.png"):
"""
To plot a Probaility Mass Function.
p_mat is a PMS each row sums to 1.
scale... | {"/bandipy/environment.py": ["/bandipy/__init__.py"], "/bandipy/simulation.py": ["/bandipy/__init__.py"]} |
85,680 | ljy0ustc/privacy-preserving-bandits | refs/heads/master | /bandipy/prior.py | import numpy as np
class PrefPriors():
def __init__(self, rand_gen=np.random):
self.random = rand_gen
def random_prior(self, size):
pr_mat = self.random.rand(size[0], size[1])
pr_mat = pr_mat/(pr_mat.sum(axis=1)[np.newaxis].T)
return pr_mat
def dirichlet_prior(self... | {"/bandipy/environment.py": ["/bandipy/__init__.py"], "/bandipy/simulation.py": ["/bandipy/__init__.py"]} |
85,681 | ljy0ustc/privacy-preserving-bandits | refs/heads/master | /bandipy/datasets.py | import numpy as np
import matplotlib.pyplot as plt
import pairing as pf
from skmultilearn.cluster import MatrixLabelSpaceClusterer
from sklearn.cluster import KMeans
from skmultilearn.dataset import load_dataset
from category_encoders.hashing import HashingEncoder
from sklearn.feature_selection import VarianceThreshol... | {"/bandipy/environment.py": ["/bandipy/__init__.py"], "/bandipy/simulation.py": ["/bandipy/__init__.py"]} |
85,682 | ljy0ustc/privacy-preserving-bandits | refs/heads/master | /bandipy/basepolicy.py | import numpy as np
###____________ BasePolicy Interface ____________###
class BasePolicy:
"""
num_actions: (int) Number of arms [indexed by 0 ... num_actions-1]
num_contexts: (int) Number of features [indexed by 0 ... num_contexts-1].
"""
def __init__(self, num_actions, context_combinations_size):... | {"/bandipy/environment.py": ["/bandipy/__init__.py"], "/bandipy/simulation.py": ["/bandipy/__init__.py"]} |
85,685 | ruslaan7/Sort | refs/heads/master | /bubble.py | def bubble_sort(array):
length = len(array) - 1
for i in range(length):
for j in range(length-i):
if array[j] > array[j+1]:
array[j], array[j+1] = array[j+1], array[j]
return array
| {"/main.py": ["/bubble.py", "/shell.py", "/quick.py", "/heap.py", "/radix.py"]} |
85,686 | ruslaan7/Sort | refs/heads/master | /quick.py | import random
def quick_sort(nums):
if len(nums) <= 1:
return nums
else:
q = random.choice(nums)
s_nums = []
m_nums = []
e_nums = []
for n in nums:
if n < q:
s_nums.append(n)
elif n > q:
m_nums.append(n)
... | {"/main.py": ["/bubble.py", "/shell.py", "/quick.py", "/heap.py", "/radix.py"]} |
85,687 | ruslaan7/Sort | refs/heads/master | /shell.py | def shell_sort(array):
length = len(array)
increment = len(array) // 2
while increment > 0:
for start in range(increment):
for i in range(start + increment, length, increment):
current = array[i]
position = i
while position >= increment an... | {"/main.py": ["/bubble.py", "/shell.py", "/quick.py", "/heap.py", "/radix.py"]} |
85,688 | ruslaan7/Sort | refs/heads/master | /radix.py | import numpy as np
def radix_sort(nums):
radix = 10
placement = 1
max_digit = max(nums)
while placement < max_digit:
buckets = [list() for _ in range(radix)]
for i in nums:
tmp = int((i / placement) % radix)
buckets[tmp].append(i)
a = 0
for b in... | {"/main.py": ["/bubble.py", "/shell.py", "/quick.py", "/heap.py", "/radix.py"]} |
85,689 | ruslaan7/Sort | refs/heads/master | /main.py | import numpy as np
import random
from bubble import bubble_sort
from shell import shell_sort
from quick import quick_sort
from merge import merge_sort
from heap import heap_sort
from radix import radix_sort, date_radix_sort, str_radix_sort
from time import perf_counter_ns
import string
from dataclasses import dataclass... | {"/main.py": ["/bubble.py", "/shell.py", "/quick.py", "/heap.py", "/radix.py"]} |
85,690 | ruslaan7/Sort | refs/heads/master | /heap.py | def heap_data(nums, index, heap_size):
largest_num = index
left_index = 2 * index + 1
right_index = 2 * index + 2
if left_index < heap_size and nums[left_index] > nums[largest_num]:
largest_num = left_index
if right_index < heap_size and nums[right_index] > nums[largest_num]:
larges... | {"/main.py": ["/bubble.py", "/shell.py", "/quick.py", "/heap.py", "/radix.py"]} |
85,691 | anatolyburtsev/wg_tank_to_data | refs/heads/master | /wg_api.py | import requests
import config
import logging
class WGAPIException(Exception):
pass
class TankNameId:
name = ""
tank_id = ""
def __init__(self, name, tank_id):
self.name = name
self.tank_id = tank_id
def __str__(self):
result = """id: {}, name: {}""".format(self.tank_id,... | {"/wg_api.py": ["/config.py"], "/tank.py": ["/wg_api.py", "/gun.py", "/turret.py", "/suspension.py", "/armor.py", "/shells.py"], "/web.py": ["/wg_api.py", "/tank.py", "/sql_api.py"], "/sql_api.py": ["/wg_api.py"]} |
85,692 | anatolyburtsev/wg_tank_to_data | refs/heads/master | /turret.py | import json
class Turret:
view_range = 0
traverse_speed = 0
def fill_fields(self, json_response):
turret_data = json_response["turret"]
self.view_range = turret_data["view_range"]
self.traverse_speed = turret_data["traverse_speed"]
def __str__(self):
result = """
Башня... | {"/wg_api.py": ["/config.py"], "/tank.py": ["/wg_api.py", "/gun.py", "/turret.py", "/suspension.py", "/armor.py", "/shells.py"], "/web.py": ["/wg_api.py", "/tank.py", "/sql_api.py"], "/sql_api.py": ["/wg_api.py"]} |
85,693 | anatolyburtsev/wg_tank_to_data | refs/heads/master | /armor.py | import json
from pprint import pprint
class TurretArmor:
is_exist = False
front = 0
sides = 0
rear = 0
def __init__(self):
self.is_exist = False
self.front = 0
self.sides = 0
self.rear = 0
def __str__(self):
result = """
Башня:
лоб - {} мм
борта - {} м... | {"/wg_api.py": ["/config.py"], "/tank.py": ["/wg_api.py", "/gun.py", "/turret.py", "/suspension.py", "/armor.py", "/shells.py"], "/web.py": ["/wg_api.py", "/tank.py", "/sql_api.py"], "/sql_api.py": ["/wg_api.py"]} |
85,694 | anatolyburtsev/wg_tank_to_data | refs/heads/master | /gun.py | import json
class Gun:
move_down_arc = 0
move_up_arc = 0
name = ""
fire_rate = 0
dispersion = 0
reload_time = 0
aim_time = 0
def fill_fields(self, json_response):
gun_data = json_response["gun"]
self.move_down_arc = gun_data["move_down_arc"]
self.move_up_arc = ... | {"/wg_api.py": ["/config.py"], "/tank.py": ["/wg_api.py", "/gun.py", "/turret.py", "/suspension.py", "/armor.py", "/shells.py"], "/web.py": ["/wg_api.py", "/tank.py", "/sql_api.py"], "/sql_api.py": ["/wg_api.py"]} |
85,695 | anatolyburtsev/wg_tank_to_data | refs/heads/master | /tank.py | import wg_api
import gun
import turret
import suspension
import armor
import shells
type_dict = {"lightTank": "Легкий танк", "mediumTank": "Средний танк", "heavyTank": "Тяжелый танк",
"AT-SPG": "ПТ-САУ"}
nation_dict = {"ussr": "СССР", "usa": "США", "germany": "Германия", "uk": "Англия", "japan": "Япони... | {"/wg_api.py": ["/config.py"], "/tank.py": ["/wg_api.py", "/gun.py", "/turret.py", "/suspension.py", "/armor.py", "/shells.py"], "/web.py": ["/wg_api.py", "/tank.py", "/sql_api.py"], "/sql_api.py": ["/wg_api.py"]} |
85,696 | anatolyburtsev/wg_tank_to_data | refs/heads/master | /shells.py | import json
shell_type = {"ARMOR_PIERCING": "ББ", "HOLLOW_CHARGE": "КС", "HIGH_EXPLOSIVE": "ОФ", "ARMOR_PIERCING_CR": "БП"}
class Shell:
penetration = 0
type = ""
type_rus = ""
damage = 0
def __init__(self):
self.penetration = 0
self.type = ""
self.type_rus = ""
... | {"/wg_api.py": ["/config.py"], "/tank.py": ["/wg_api.py", "/gun.py", "/turret.py", "/suspension.py", "/armor.py", "/shells.py"], "/web.py": ["/wg_api.py", "/tank.py", "/sql_api.py"], "/sql_api.py": ["/wg_api.py"]} |
85,697 | anatolyburtsev/wg_tank_to_data | refs/heads/master | /suspension.py | import json
class Suspension:
traverse_speed = 0
def fill_fields(self, json_response):
suspension_data = json_response["suspension"]
self.traverse_speed = suspension_data["traverse_speed"]
def __str__(self):
result = """
Корпус:
Скорость вращения - {} гр/с""".format(self.traverse_... | {"/wg_api.py": ["/config.py"], "/tank.py": ["/wg_api.py", "/gun.py", "/turret.py", "/suspension.py", "/armor.py", "/shells.py"], "/web.py": ["/wg_api.py", "/tank.py", "/sql_api.py"], "/sql_api.py": ["/wg_api.py"]} |
85,698 | anatolyburtsev/wg_tank_to_data | refs/heads/master | /web.py | from flask import Flask
from flask import render_template
from flask import request
from flask import send_from_directory, send_file, url_for
from flask import abort
import time
import wg_api
import tank
import sql_api
app = Flask(__name__)
@app.route("/old_style")
def tanks_and_ids():
tanks = wg_api.get_tanks_a... | {"/wg_api.py": ["/config.py"], "/tank.py": ["/wg_api.py", "/gun.py", "/turret.py", "/suspension.py", "/armor.py", "/shells.py"], "/web.py": ["/wg_api.py", "/tank.py", "/sql_api.py"], "/sql_api.py": ["/wg_api.py"]} |
85,699 | anatolyburtsev/wg_tank_to_data | refs/heads/master | /config.py | wargaming_id = "77636487a299e95a72583de66dba7a63" | {"/wg_api.py": ["/config.py"], "/tank.py": ["/wg_api.py", "/gun.py", "/turret.py", "/suspension.py", "/armor.py", "/shells.py"], "/web.py": ["/wg_api.py", "/tank.py", "/sql_api.py"], "/sql_api.py": ["/wg_api.py"]} |
85,700 | anatolyburtsev/wg_tank_to_data | refs/heads/master | /sql_api.py | import sqlite3
import json
import wg_api
import os
class TanksDB:
db_name = ""
api_version = 0
conn_db = None
curs_db = None
def __init__(self, api_version=False, db_name="tank_db"):
assert len(db_name.split(".")) < 2
if not api_version:
api_version = wg_api.get_api_ve... | {"/wg_api.py": ["/config.py"], "/tank.py": ["/wg_api.py", "/gun.py", "/turret.py", "/suspension.py", "/armor.py", "/shells.py"], "/web.py": ["/wg_api.py", "/tank.py", "/sql_api.py"], "/sql_api.py": ["/wg_api.py"]} |
85,775 | lashwang/crash_analyser_flask | refs/heads/master | /obj_finder.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import logging
import requests
from bs4 import BeautifulSoup
import json
import arrow
import os
import os.path
import urllib
import time
import tarfile
import subprocess
import commands
logger = logging.getLogger(__name__)
class ObjFinder(object):
'''
http://10.10... | {"/test_obj_finder.py": ["/obj_finder.py"]} |
85,776 | lashwang/crash_analyser_flask | refs/heads/master | /crash_analyser_flask.py | from flask import Flask
from flask import request
from obj_finder import ObjFinder
import sys
app = Flask(__name__)
@app.route('/')
def index():
return app.send_static_file('index_ajax.html')
@app.route('/new')
def index_new():
return app.send_static_file('index_ajax.html')
@app.route('/query')
def query()... | {"/test_obj_finder.py": ["/obj_finder.py"]} |
85,777 | lashwang/crash_analyser_flask | refs/heads/master | /test_obj_finder.py | import unittest
from obj_finder import ObjFinder
import tarfile
test_stack_logs = '''
07-09 16:04:56.011 2419 2486 E [Native]OCEngine: 07-09 16:04:56.015 +0100 2486 [E] [oc_backtrace.cpp:76] (-2) - dumpping backtrace for client:700505113
07-09 16:04:56.021 2419 2486 E [Native]OCEngine: 07-09 16:04:56.027 +0100 24... | {"/test_obj_finder.py": ["/obj_finder.py"]} |
85,778 | lashwang/crash_analyser_flask | refs/heads/master | /find_address.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import fire
import commands
import os
import tarfile
brand_job_path = ''
next_build_number = 0
CACHE_FOLDER = 'caches'
def init(version,brand,lib,address):
global brand_job_path
global next_build_number
global CACHE_FOLDER
brand_job_path = '/jenkins_jobs/... | {"/test_obj_finder.py": ["/obj_finder.py"]} |
85,782 | yeleman/lakalici | refs/heads/master | /manager/utils.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: ai ts=4 sts=4 et sw=4 nu
from __future__ import (unicode_literals, absolute_import,
division, print_function)
import logging
import tempfile
import unicodedata
from django.utils import timezone
from manager.models import Contact, Group, Tas... | {"/manager/utils.py": ["/manager/models.py"], "/manager/sms_handler.py": ["/manager/models.py"], "/manager/admin.py": ["/manager/models.py"], "/manager/views.py": ["/manager/models.py", "/manager/forms.py", "/manager/utils.py", "/manager/xls_import.py"], "/manager/migrations/0001_initial.py": ["/manager/models.py"], "/... |
85,783 | yeleman/lakalici | refs/heads/master | /manager/forms.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: ai ts=4 sts=4 et sw=4 nu
from __future__ import (unicode_literals, absolute_import,
division, print_function)
import logging
from django import forms
# import floppyforms.__future__ as forms
# from manager.models import Contact
from manager... | {"/manager/utils.py": ["/manager/models.py"], "/manager/sms_handler.py": ["/manager/models.py"], "/manager/admin.py": ["/manager/models.py"], "/manager/views.py": ["/manager/models.py", "/manager/forms.py", "/manager/utils.py", "/manager/xls_import.py"], "/manager/migrations/0001_initial.py": ["/manager/models.py"], "/... |
85,784 | yeleman/lakalici | refs/heads/master | /manager/sms_handler.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: ai ts=4 sts=4 et sw=4 nu
from __future__ import (unicode_literals, absolute_import,
division, print_function)
import logging
import re
from django.utils import timezone
from manager.models import Task, TaskItem
from manager.numbers import n... | {"/manager/utils.py": ["/manager/models.py"], "/manager/sms_handler.py": ["/manager/models.py"], "/manager/admin.py": ["/manager/models.py"], "/manager/views.py": ["/manager/models.py", "/manager/forms.py", "/manager/utils.py", "/manager/xls_import.py"], "/manager/migrations/0001_initial.py": ["/manager/models.py"], "/... |
85,785 | yeleman/lakalici | refs/heads/master | /manager/urls.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: ai ts=4 sts=4 et sw=4 nu
from __future__ import (unicode_literals, absolute_import,
division, print_function)
from django.conf.urls import patterns, url
from django.views.generic.base import TemplateView
urlpatterns = patterns(
'',
... | {"/manager/utils.py": ["/manager/models.py"], "/manager/sms_handler.py": ["/manager/models.py"], "/manager/admin.py": ["/manager/models.py"], "/manager/views.py": ["/manager/models.py", "/manager/forms.py", "/manager/utils.py", "/manager/xls_import.py"], "/manager/migrations/0001_initial.py": ["/manager/models.py"], "/... |
85,786 | yeleman/lakalici | refs/heads/master | /manager/migrations/0005_auto_20140925_1841.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('manager', '0004_auto_20140924_1759'),
]
operations = [
migrations.AlterField(
model_name='contact',
... | {"/manager/utils.py": ["/manager/models.py"], "/manager/sms_handler.py": ["/manager/models.py"], "/manager/admin.py": ["/manager/models.py"], "/manager/views.py": ["/manager/models.py", "/manager/forms.py", "/manager/utils.py", "/manager/xls_import.py"], "/manager/migrations/0001_initial.py": ["/manager/models.py"], "/... |
85,787 | yeleman/lakalici | refs/heads/master | /manager/processors.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: ai ts=4 sts=4 et sw=4 nu
from __future__ import (unicode_literals, absolute_import,
division, print_function)
import logging
logger = logging.getLogger(__name__)
def default_context(request, *args, **kwargs):
context = {}
if not r... | {"/manager/utils.py": ["/manager/models.py"], "/manager/sms_handler.py": ["/manager/models.py"], "/manager/admin.py": ["/manager/models.py"], "/manager/views.py": ["/manager/models.py", "/manager/forms.py", "/manager/utils.py", "/manager/xls_import.py"], "/manager/migrations/0001_initial.py": ["/manager/models.py"], "/... |
85,788 | yeleman/lakalici | refs/heads/master | /lakalici/settings.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: ai ts=4 sts=4 et sw=4 nu
from __future__ import (unicode_literals, absolute_import,
division, print_function)
"""
Django settings for lakalici project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/sett... | {"/manager/utils.py": ["/manager/models.py"], "/manager/sms_handler.py": ["/manager/models.py"], "/manager/admin.py": ["/manager/models.py"], "/manager/views.py": ["/manager/models.py", "/manager/forms.py", "/manager/utils.py", "/manager/xls_import.py"], "/manager/migrations/0001_initial.py": ["/manager/models.py"], "/... |
85,789 | yeleman/lakalici | refs/heads/master | /manager/migrations/0002_auto_20140924_1744.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('manager', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='organization',
name='ba... | {"/manager/utils.py": ["/manager/models.py"], "/manager/sms_handler.py": ["/manager/models.py"], "/manager/admin.py": ["/manager/models.py"], "/manager/views.py": ["/manager/models.py", "/manager/forms.py", "/manager/utils.py", "/manager/xls_import.py"], "/manager/migrations/0001_initial.py": ["/manager/models.py"], "/... |
85,790 | yeleman/lakalici | refs/heads/master | /manager/xls_import.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: ai ts=4 sts=4 et sw=4 nu
from __future__ import (unicode_literals, absolute_import,
division, print_function)
import logging
import xlrd
from py3compat import text_type
logger = logging.getLogger(__name__)
def handle_xls_file(fpath, handl... | {"/manager/utils.py": ["/manager/models.py"], "/manager/sms_handler.py": ["/manager/models.py"], "/manager/admin.py": ["/manager/models.py"], "/manager/views.py": ["/manager/models.py", "/manager/forms.py", "/manager/utils.py", "/manager/xls_import.py"], "/manager/migrations/0001_initial.py": ["/manager/models.py"], "/... |
85,791 | yeleman/lakalici | refs/heads/master | /manager/migrations/0006_auto_20140926_0902.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('manager', '0005_auto_20140925_1841'),
]
operations = [
migrations.AddField(
model_name='task',
name=... | {"/manager/utils.py": ["/manager/models.py"], "/manager/sms_handler.py": ["/manager/models.py"], "/manager/admin.py": ["/manager/models.py"], "/manager/views.py": ["/manager/models.py", "/manager/forms.py", "/manager/utils.py", "/manager/xls_import.py"], "/manager/migrations/0001_initial.py": ["/manager/models.py"], "/... |
85,792 | yeleman/lakalici | refs/heads/master | /manager/admin.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: ai ts=4 sts=4 et sw=4 nu
from __future__ import (unicode_literals, absolute_import,
division, print_function)
import logging
from django.contrib import admin
from manager.models import Contact, Organization, Task, TaskItem, User
logger = l... | {"/manager/utils.py": ["/manager/models.py"], "/manager/sms_handler.py": ["/manager/models.py"], "/manager/admin.py": ["/manager/models.py"], "/manager/views.py": ["/manager/models.py", "/manager/forms.py", "/manager/utils.py", "/manager/xls_import.py"], "/manager/migrations/0001_initial.py": ["/manager/models.py"], "/... |
85,793 | yeleman/lakalici | refs/heads/master | /manager/views.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: ai ts=4 sts=4 et sw=4 nu
from __future__ import (unicode_literals, absolute_import,
division, print_function)
import logging
from django.http import Http404, JsonResponse
from django.utils import timezone
from django.shortcuts import render,... | {"/manager/utils.py": ["/manager/models.py"], "/manager/sms_handler.py": ["/manager/models.py"], "/manager/admin.py": ["/manager/models.py"], "/manager/views.py": ["/manager/models.py", "/manager/forms.py", "/manager/utils.py", "/manager/xls_import.py"], "/manager/migrations/0001_initial.py": ["/manager/models.py"], "/... |
85,794 | yeleman/lakalici | refs/heads/master | /lakalici/urls.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: ai ts=4 sts=4 et sw=4 nu
from __future__ import (unicode_literals, absolute_import,
division, print_function)
import logging
from django.conf.urls import patterns, include, url
from django.contrib import admin
from manager import urls as man... | {"/manager/utils.py": ["/manager/models.py"], "/manager/sms_handler.py": ["/manager/models.py"], "/manager/admin.py": ["/manager/models.py"], "/manager/views.py": ["/manager/models.py", "/manager/forms.py", "/manager/utils.py", "/manager/xls_import.py"], "/manager/migrations/0001_initial.py": ["/manager/models.py"], "/... |
85,795 | yeleman/lakalici | refs/heads/master | /manager/migrations/0007_auto_20141003_1220.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('manager', '0006_auto_20140926_0902'),
]
operations = [
migrations.CreateModel(
name... | {"/manager/utils.py": ["/manager/models.py"], "/manager/sms_handler.py": ["/manager/models.py"], "/manager/admin.py": ["/manager/models.py"], "/manager/views.py": ["/manager/models.py", "/manager/forms.py", "/manager/utils.py", "/manager/xls_import.py"], "/manager/migrations/0001_initial.py": ["/manager/models.py"], "/... |
85,796 | yeleman/lakalici | refs/heads/master | /manager/migrations/0001_initial.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.core.validators
import django.utils.timezone
import re
import manager.models
class Migration(migrations.Migration):
dependencies = [
('auth', '0001_initial'),
]
operations = [
... | {"/manager/utils.py": ["/manager/models.py"], "/manager/sms_handler.py": ["/manager/models.py"], "/manager/admin.py": ["/manager/models.py"], "/manager/views.py": ["/manager/models.py", "/manager/forms.py", "/manager/utils.py", "/manager/xls_import.py"], "/manager/migrations/0001_initial.py": ["/manager/models.py"], "/... |
85,797 | yeleman/lakalici | refs/heads/master | /manager/templatetags/lklc.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: ai ts=4 sts=4 et sw=4 nu
from __future__ import (unicode_literals, absolute_import,
division, print_function)
import locale
from django import template
from django.conf import settings
from django.template.defaultfilters import stringfilter
... | {"/manager/utils.py": ["/manager/models.py"], "/manager/sms_handler.py": ["/manager/models.py"], "/manager/admin.py": ["/manager/models.py"], "/manager/views.py": ["/manager/models.py", "/manager/forms.py", "/manager/utils.py", "/manager/xls_import.py"], "/manager/migrations/0001_initial.py": ["/manager/models.py"], "/... |
85,798 | yeleman/lakalici | refs/heads/master | /manager/migrations/0004_auto_20140924_1759.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('manager', '0003_auto_20140924_1756'),
]
operations = [
migrations.AddField(
model_name='group',
name... | {"/manager/utils.py": ["/manager/models.py"], "/manager/sms_handler.py": ["/manager/models.py"], "/manager/admin.py": ["/manager/models.py"], "/manager/views.py": ["/manager/models.py", "/manager/forms.py", "/manager/utils.py", "/manager/xls_import.py"], "/manager/migrations/0001_initial.py": ["/manager/models.py"], "/... |
85,799 | yeleman/lakalici | refs/heads/master | /manager/migrations/0003_auto_20140924_1756.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('manager', '0002_auto_20140924_1744'),
]
operations = [
migrations.CreateModel(
name='Group',
fields=... | {"/manager/utils.py": ["/manager/models.py"], "/manager/sms_handler.py": ["/manager/models.py"], "/manager/admin.py": ["/manager/models.py"], "/manager/views.py": ["/manager/models.py", "/manager/forms.py", "/manager/utils.py", "/manager/xls_import.py"], "/manager/migrations/0001_initial.py": ["/manager/models.py"], "/... |
85,800 | yeleman/lakalici | refs/heads/master | /manager/models.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: ai ts=4 sts=4 et sw=4 nu
from __future__ import (unicode_literals, absolute_import,
division, print_function)
import logging
import re
# import uuid
import random
from django.utils import timezone
from django.db import models
from django.db.... | {"/manager/utils.py": ["/manager/models.py"], "/manager/sms_handler.py": ["/manager/models.py"], "/manager/admin.py": ["/manager/models.py"], "/manager/views.py": ["/manager/models.py", "/manager/forms.py", "/manager/utils.py", "/manager/xls_import.py"], "/manager/migrations/0001_initial.py": ["/manager/models.py"], "/... |
85,803 | sharikgrg/week3.Airport_Staff_Interface | refs/heads/master | /class_plane.py | class Plane():
def __init__(self, model, cabin_crew, engine_type, capacity):
self.model = model
self.cabin_crew = cabin_crew
self.engine_type = engine_type
self.capacity = capacity
def plane(self):
return self.model + ',' + self.cabin_crew
def fuelling_plane(self):
... | {"/class_passenger.py": ["/class_flight.py"], "/venv/run.py": ["/class_flight.py", "/class_passenger.py", "/class_plane.py"]} |
85,804 | sharikgrg/week3.Airport_Staff_Interface | refs/heads/master | /class_passenger.py | from class_flight import *
class Passenger():
def __init__(self, f_name, l_name, phnnumber, email, passportNO):
self.f_name = f_name
self.l_name = l_name
self.phonenumber = phnnumber
self.email = email
self.passportNO = passportNO
def name(self):
return self.f_n... | {"/class_passenger.py": ["/class_flight.py"], "/venv/run.py": ["/class_flight.py", "/class_passenger.py", "/class_plane.py"]} |
85,805 | sharikgrg/week3.Airport_Staff_Interface | refs/heads/master | /venv/run.py | from class_flight import *
from class_passenger import *
from class_plane import *
flight = Flight('KTM', 'LHR', 'BA5626')
flight1 = Flight('AMS', 'LTN', 'BA5627')
flight2 = Flight('DOH', 'LGW', 'BA5628')
passenger = Passenger('Sharik', 'Gurung', '7555736178', 'sharikgrg@hotmail.com', '33656549')
passenger1 = Passen... | {"/class_passenger.py": ["/class_flight.py"], "/venv/run.py": ["/class_flight.py", "/class_passenger.py", "/class_plane.py"]} |
85,806 | sharikgrg/week3.Airport_Staff_Interface | refs/heads/master | /class_flight.py | class Flight():
def __init__(self, destination, origin, flight_number):
self.destination = destination
self.origin = origin
self.flight_number = flight_number
self.passengerlist = []
self.planelist = []
def delays(self):
return 'Sorry the flight has been delayed... | {"/class_passenger.py": ["/class_flight.py"], "/venv/run.py": ["/class_flight.py", "/class_passenger.py", "/class_plane.py"]} |
85,809 | fodrh1201/transfer_leanring_video_caption | refs/heads/master | /util.py | import numpy as np
import re
import itertools
from collections import Counter
def clean_str(string, downcase=True):
"""
Tokenization/string cleaning for strings.
Taken from https://github.com/yoonkim/CNN_sentence/blob/master/process_data.py
"""
string = re.sub(r"[^A-Za-z0-9(),!?\'\`]", " ", string... | {"/LSMDCData.py": ["/util.py"]} |
85,810 | fodrh1201/transfer_leanring_video_caption | refs/heads/master | /LSMDCData.py | import util
import pandas as pd
import os
import hickle as hkl
import h5py
import numpy as np
# DataFrame Path
LSMDC_DATAFRAME_PATH = '/data/captiongaze/DataFrame'
TEST_DF_PATH = os.path.join(LSMDC_DATAFRAME_PATH, 'LSMDC_test.csv')
TRAIN_DF_PATH = os.path.join(LSMDC_DATAFRAME_PATH, 'LSMDC_train.csv')
VAL_DF_PATH = os... | {"/LSMDCData.py": ["/util.py"]} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.