index
int64
repo_name
string
branch_name
string
path
string
content
string
import_graph
string
61,644
p5-vbnekit/p5-python3-aiogoldsrcrcon
refs/heads/main
/setup.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import setuptools import setuptools.command.build_py def _make_long_description(): with open(os.path.join(os.path.dirname(__file__), "README.md"), "r") as _stream: return _stream.read() def _make_packages(): _packages = setuptools.find_namespace_pack...
{"/src/p5/aiogoldsrcrcon/_common/module_helpers/lazy_attributes.py": ["/src/p5/aiogoldsrcrcon/_common/module_helpers/__init__.py"], "/src/p5/aiogoldsrcrcon/__init__.py": ["/src/p5/aiogoldsrcrcon/_common/__init__.py"], "/src/p5/aiogoldsrcrcon/__main__.py": ["/src/p5/aiogoldsrcrcon/__init__.py"], "/src/p5/aiogoldsrcrcon/...
61,645
p5-vbnekit/p5-python3-aiogoldsrcrcon
refs/heads/main
/src/p5/aiogoldsrcrcon/__init__.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ asyncio rcon client for GoldSrc engine There's 2 parts 1. python library (p5.aiogoldsrcrcon) 2. executable python script (p5-aiogoldsrcrcon[.exe]) with cli and interactive interface """ if "__main__" != __name__: def _private(): from . _common import mod...
{"/src/p5/aiogoldsrcrcon/_common/module_helpers/lazy_attributes.py": ["/src/p5/aiogoldsrcrcon/_common/module_helpers/__init__.py"], "/src/p5/aiogoldsrcrcon/__init__.py": ["/src/p5/aiogoldsrcrcon/_common/__init__.py"], "/src/p5/aiogoldsrcrcon/__main__.py": ["/src/p5/aiogoldsrcrcon/__init__.py"], "/src/p5/aiogoldsrcrcon/...
61,646
p5-vbnekit/p5-python3-aiogoldsrcrcon
refs/heads/main
/src/p5/aiogoldsrcrcon/__main__.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- def _private(): from . import entry_point as _entry_point class _Result(object): entry_point = _entry_point return _Result _private = _private() try: _private.entry_point() finally: del _private
{"/src/p5/aiogoldsrcrcon/_common/module_helpers/lazy_attributes.py": ["/src/p5/aiogoldsrcrcon/_common/module_helpers/__init__.py"], "/src/p5/aiogoldsrcrcon/__init__.py": ["/src/p5/aiogoldsrcrcon/_common/__init__.py"], "/src/p5/aiogoldsrcrcon/__main__.py": ["/src/p5/aiogoldsrcrcon/__init__.py"], "/src/p5/aiogoldsrcrcon/...
61,647
p5-vbnekit/p5-python3-aiogoldsrcrcon
refs/heads/main
/src/p5/aiogoldsrcrcon/_entry_point.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- if "__main__" != __name__: def _private(): import io import os import sys import typing import atexit import asyncio import argparse from . import connection as _connection_module _interactive_c...
{"/src/p5/aiogoldsrcrcon/_common/module_helpers/lazy_attributes.py": ["/src/p5/aiogoldsrcrcon/_common/module_helpers/__init__.py"], "/src/p5/aiogoldsrcrcon/__init__.py": ["/src/p5/aiogoldsrcrcon/_common/__init__.py"], "/src/p5/aiogoldsrcrcon/__main__.py": ["/src/p5/aiogoldsrcrcon/__init__.py"], "/src/p5/aiogoldsrcrcon/...
61,648
p5-vbnekit/p5-python3-aiogoldsrcrcon
refs/heads/main
/src/p5/aiogoldsrcrcon/_common/__init__.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- if "__main__" != __name__: def _private(): from . import module_helpers as _module_helpers_module class _Result(object): module_getter = _module_helpers_module.lazy_attributes.make_getter() return _Result _private = _private(...
{"/src/p5/aiogoldsrcrcon/_common/module_helpers/lazy_attributes.py": ["/src/p5/aiogoldsrcrcon/_common/module_helpers/__init__.py"], "/src/p5/aiogoldsrcrcon/__init__.py": ["/src/p5/aiogoldsrcrcon/_common/__init__.py"], "/src/p5/aiogoldsrcrcon/__main__.py": ["/src/p5/aiogoldsrcrcon/__init__.py"], "/src/p5/aiogoldsrcrcon/...
61,649
p5-vbnekit/p5-python3-aiogoldsrcrcon
refs/heads/main
/src/p5/aiogoldsrcrcon/_common/module_helpers/__init__.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- if "__main__" != __name__: def _private(): from . import lazy_attributes as _lazy_attributes_module class _Result(object): module_getter = _lazy_attributes_module.make_getter() return _Result _private = _private() def __g...
{"/src/p5/aiogoldsrcrcon/_common/module_helpers/lazy_attributes.py": ["/src/p5/aiogoldsrcrcon/_common/module_helpers/__init__.py"], "/src/p5/aiogoldsrcrcon/__init__.py": ["/src/p5/aiogoldsrcrcon/_common/__init__.py"], "/src/p5/aiogoldsrcrcon/__main__.py": ["/src/p5/aiogoldsrcrcon/__init__.py"], "/src/p5/aiogoldsrcrcon/...
61,650
p5-vbnekit/p5-python3-aiogoldsrcrcon
refs/heads/main
/example.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import asyncio import p5.aiogoldsrcrcon async def _coroutine(): async with p5.aiogoldsrcrcon.Connection(address = ("hlds.host.address.example.com", 27015), password = "super-secret-rcon-password") as _connection: await _connection.open() _response = ...
{"/src/p5/aiogoldsrcrcon/_common/module_helpers/lazy_attributes.py": ["/src/p5/aiogoldsrcrcon/_common/module_helpers/__init__.py"], "/src/p5/aiogoldsrcrcon/__init__.py": ["/src/p5/aiogoldsrcrcon/_common/__init__.py"], "/src/p5/aiogoldsrcrcon/__main__.py": ["/src/p5/aiogoldsrcrcon/__init__.py"], "/src/p5/aiogoldsrcrcon/...
61,651
p5-vbnekit/p5-python3-aiogoldsrcrcon
refs/heads/main
/src/p5/aiogoldsrcrcon/_common/module_helpers/import_module.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- if "__main__" != __name__: def _private(): import sys import importlib _this_module = sys.modules[__name__] def _execute(*args, **kwargs): return importlib.import_module(*args, **kwargs) class _Callable(_this_module.__class__)...
{"/src/p5/aiogoldsrcrcon/_common/module_helpers/lazy_attributes.py": ["/src/p5/aiogoldsrcrcon/_common/module_helpers/__init__.py"], "/src/p5/aiogoldsrcrcon/__init__.py": ["/src/p5/aiogoldsrcrcon/_common/__init__.py"], "/src/p5/aiogoldsrcrcon/__main__.py": ["/src/p5/aiogoldsrcrcon/__init__.py"], "/src/p5/aiogoldsrcrcon/...
61,664
cloudmesh/cloudmesh-nn
refs/heads/main
/service/service.py
from flask import jsonify import connexion import os from pathlib import Path from cloudmesh.nn.spec import specification_dir print(specification_dir) # Create the application instance app = connexion.App(__name__, specification_dir=specification_dir) # Read the yaml file to configure the endpoints app.add_api("nn....
{"/service/service.py": ["/cloudmesh/nn/spec/__init__.py"], "/cloudmesh/nn/service/partition.py": ["/cloudmesh/nn/service/__init__.py"], "/cloudmesh/nn/command/nn.py": ["/service/__init__.py"], "/cloudmesh/nn/service/control.py": ["/cloudmesh/nn/service/data.py"], "/cloudmesh/nn/service/data.py": ["/cloudmesh/nn/servic...
61,665
cloudmesh/cloudmesh-nn
refs/heads/main
/cloudmesh/nn/service/train.py
import requests import numpy as np from sklearn.externals.joblib import Memory from sklearn.datasets import load_svmlight_file from sklearn.svm import SVC from os import listdir from flask import Flask, request from flask import jsonify def get_data(filename): data = load_svmlight_file(filename) return data[0...
{"/service/service.py": ["/cloudmesh/nn/spec/__init__.py"], "/cloudmesh/nn/service/partition.py": ["/cloudmesh/nn/service/__init__.py"], "/cloudmesh/nn/command/nn.py": ["/service/__init__.py"], "/cloudmesh/nn/service/control.py": ["/cloudmesh/nn/service/data.py"], "/cloudmesh/nn/service/data.py": ["/cloudmesh/nn/servic...
61,666
cloudmesh/cloudmesh-nn
refs/heads/main
/cloudmesh/nn/service/svm.py
import requests import numpy as np from sklearn.externals.joblib import Memory from sklearn.datasets import load_svmlight_file from sklearn.svm import SVC from os import listdir from flask import Flask, request from flask import jsonify def get_data(filename): data = load_svmlight_file(filename) return data[0...
{"/service/service.py": ["/cloudmesh/nn/spec/__init__.py"], "/cloudmesh/nn/service/partition.py": ["/cloudmesh/nn/service/__init__.py"], "/cloudmesh/nn/command/nn.py": ["/service/__init__.py"], "/cloudmesh/nn/service/control.py": ["/cloudmesh/nn/service/data.py"], "/cloudmesh/nn/service/data.py": ["/cloudmesh/nn/servic...
61,667
cloudmesh/cloudmesh-nn
refs/heads/main
/cloudmesh/nn/service/partition.py
import pandas as pd import numpy as np import matplotlib.pyplot as plt from scipy.spatial import distance import requests from flask import Flask, request, jsonify, send_file, make_response import random from numpy.random import permutation from sklearn.neighbors import KNeighborsRegressor import math import io from cl...
{"/service/service.py": ["/cloudmesh/nn/spec/__init__.py"], "/cloudmesh/nn/service/partition.py": ["/cloudmesh/nn/service/__init__.py"], "/cloudmesh/nn/command/nn.py": ["/service/__init__.py"], "/cloudmesh/nn/service/control.py": ["/cloudmesh/nn/service/data.py"], "/cloudmesh/nn/service/data.py": ["/cloudmesh/nn/servic...
61,668
cloudmesh/cloudmesh-nn
refs/heads/main
/cloudmesh/nn/service/__init__.py
import os code_dir = os.path.dirname(__file__)
{"/service/service.py": ["/cloudmesh/nn/spec/__init__.py"], "/cloudmesh/nn/service/partition.py": ["/cloudmesh/nn/service/__init__.py"], "/cloudmesh/nn/command/nn.py": ["/service/__init__.py"], "/cloudmesh/nn/service/control.py": ["/cloudmesh/nn/service/data.py"], "/cloudmesh/nn/service/data.py": ["/cloudmesh/nn/servic...
61,669
cloudmesh/cloudmesh-nn
refs/heads/main
/cloudmesh/nn/spec/__init__.py
import os specification_dir = os.path.dirname(__file__)
{"/service/service.py": ["/cloudmesh/nn/spec/__init__.py"], "/cloudmesh/nn/service/partition.py": ["/cloudmesh/nn/service/__init__.py"], "/cloudmesh/nn/command/nn.py": ["/service/__init__.py"], "/cloudmesh/nn/service/control.py": ["/cloudmesh/nn/service/data.py"], "/cloudmesh/nn/service/data.py": ["/cloudmesh/nn/servic...
61,670
cloudmesh/cloudmesh-nn
refs/heads/main
/cloudmesh/nn/command/nn.py
from cloudmesh.shell.command import command from cloudmesh.shell.command import PluginCommand from cloudmesh.nn.api.manager import Manager from cloudmesh.common.console import Console from cloudmesh.common.util import path_expand from pprint import pprint import os from service import server_dir class NnCommand(Plugi...
{"/service/service.py": ["/cloudmesh/nn/spec/__init__.py"], "/cloudmesh/nn/service/partition.py": ["/cloudmesh/nn/service/__init__.py"], "/cloudmesh/nn/command/nn.py": ["/service/__init__.py"], "/cloudmesh/nn/service/control.py": ["/cloudmesh/nn/service/data.py"], "/cloudmesh/nn/service/data.py": ["/cloudmesh/nn/servic...
61,671
cloudmesh/cloudmesh-nn
refs/heads/main
/cloudmesh/nn/service/nfl_2019.py
import sys import os import pandas import numpy as np import matplotlib.pyplot as plt from scipy.spatial import distance # prompt user for file name to read, assuming this is a csv pwd = os.getcwd() pwd = str(pwd) + "/" file_name = input("Enter the name of the file including the extension: ") file_path = str(pwd) + st...
{"/service/service.py": ["/cloudmesh/nn/spec/__init__.py"], "/cloudmesh/nn/service/partition.py": ["/cloudmesh/nn/service/__init__.py"], "/cloudmesh/nn/command/nn.py": ["/service/__init__.py"], "/cloudmesh/nn/service/control.py": ["/cloudmesh/nn/service/data.py"], "/cloudmesh/nn/service/data.py": ["/cloudmesh/nn/servic...
61,672
cloudmesh/cloudmesh-nn
refs/heads/main
/cloudmesh/nn/service/control.py
from flask import Flask, send_file, make_response from cloudmesh.nn.service.data import generate_figure def create_boxplot(): bytes_obj = generate_figure() return send_file(bytes_obj, attachment_filename='plot.png', mimetype='image/png')
{"/service/service.py": ["/cloudmesh/nn/spec/__init__.py"], "/cloudmesh/nn/service/partition.py": ["/cloudmesh/nn/service/__init__.py"], "/cloudmesh/nn/command/nn.py": ["/service/__init__.py"], "/cloudmesh/nn/service/control.py": ["/cloudmesh/nn/service/data.py"], "/cloudmesh/nn/service/data.py": ["/cloudmesh/nn/servic...
61,673
cloudmesh/cloudmesh-nn
refs/heads/main
/cloudmesh/nn/service/data.py
# This is the data downloading module and it also includes plotting defs import requests import io import os import pandas as pd import numpy as np import matplotlib.pyplot as plt from sklearn.externals.joblib import Memory from sklearn.datasets import load_svmlight_file from sklearn.svm import SVC from os import list...
{"/service/service.py": ["/cloudmesh/nn/spec/__init__.py"], "/cloudmesh/nn/service/partition.py": ["/cloudmesh/nn/service/__init__.py"], "/cloudmesh/nn/command/nn.py": ["/service/__init__.py"], "/cloudmesh/nn/service/control.py": ["/cloudmesh/nn/service/data.py"], "/cloudmesh/nn/service/data.py": ["/cloudmesh/nn/servic...
61,674
cloudmesh/cloudmesh-nn
refs/heads/main
/tests/test_nn_service.py
from cloudmesh.management.configuration.config import Config from cloudmesh.management.debug import myself, HEADING from pprint import pprint # nosetests -v --nocapture tests/test_nn_service.py class TestConfig: def setup(self): self.config = Config() def test_00_config(self): HEADING(myse...
{"/service/service.py": ["/cloudmesh/nn/spec/__init__.py"], "/cloudmesh/nn/service/partition.py": ["/cloudmesh/nn/service/__init__.py"], "/cloudmesh/nn/command/nn.py": ["/service/__init__.py"], "/cloudmesh/nn/service/control.py": ["/cloudmesh/nn/service/data.py"], "/cloudmesh/nn/service/data.py": ["/cloudmesh/nn/servic...
61,675
cloudmesh/cloudmesh-nn
refs/heads/main
/cloudmesh/nn/service/test.py
import requests import numpy as np from sklearn.externals.joblib import Memory from sklearn.datasets import load_svmlight_file from sklearn.svm import SVC from os import listdir from flask import Flask, request from flask import jsonify def get_data(filename): data = load_svmlight_file(filename) return data[0...
{"/service/service.py": ["/cloudmesh/nn/spec/__init__.py"], "/cloudmesh/nn/service/partition.py": ["/cloudmesh/nn/service/__init__.py"], "/cloudmesh/nn/command/nn.py": ["/service/__init__.py"], "/cloudmesh/nn/service/control.py": ["/cloudmesh/nn/service/data.py"], "/cloudmesh/nn/service/data.py": ["/cloudmesh/nn/servic...
61,676
cloudmesh/cloudmesh-nn
refs/heads/main
/service/__init__.py
import os server_dir = os.path.dirname(__file__)
{"/service/service.py": ["/cloudmesh/nn/spec/__init__.py"], "/cloudmesh/nn/service/partition.py": ["/cloudmesh/nn/service/__init__.py"], "/cloudmesh/nn/command/nn.py": ["/service/__init__.py"], "/cloudmesh/nn/service/control.py": ["/cloudmesh/nn/service/data.py"], "/cloudmesh/nn/service/data.py": ["/cloudmesh/nn/servic...
61,677
chimez/GoalSkill
refs/heads/master
/service/skill_tree/views.py
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import get_object_or_404, render from django.urls import reverse from .models import Skill, SkillFamily, User, UserMethod, UserSkill def index(request): user = User.objects.get(name="me") skil...
{"/service/skill_tree_api/serializers.py": ["/service/skill_tree_api/models.py"], "/service/skill_tree_api/views.py": ["/service/skill_tree_api/models.py", "/service/skill_tree_api/serializers.py"]}
61,678
chimez/GoalSkill
refs/heads/master
/service/skill_tree/admin.py
from django.contrib import admin # Register your models here. from .models import Level, Method, MethodFamily, Skill, SkillFamily, User, UserMethod, UserSkill # Register your models here. admin.site.register(Level) admin.site.register(Method) admin.site.register(MethodFamily) admin.site.register(Skill) admin.site.reg...
{"/service/skill_tree_api/serializers.py": ["/service/skill_tree_api/models.py"], "/service/skill_tree_api/views.py": ["/service/skill_tree_api/models.py", "/service/skill_tree_api/serializers.py"]}
61,679
chimez/GoalSkill
refs/heads/master
/service/skill_tree_api/models.py
from django.db import models # Create your models here. class Level(models.Model): short_name = models.CharField(max_length=10, unique=True) name = models.CharField(max_length=30, unique=True) describe = models.TextField() need_exp = models.IntegerField() def __str__(self): return self.s...
{"/service/skill_tree_api/serializers.py": ["/service/skill_tree_api/models.py"], "/service/skill_tree_api/views.py": ["/service/skill_tree_api/models.py", "/service/skill_tree_api/serializers.py"]}
61,680
chimez/GoalSkill
refs/heads/master
/service/skill_tree_api/serializers.py
from rest_framework import serializers from .models import (Level, Method, MethodFamily, Skill, SkillFamily, User, UserMethod, UserSkill) class LevelSerializer(serializers.ModelSerializer): class Meta: model = Level fields = ('id', 'short_name', 'name', 'describe', 'need_exp'...
{"/service/skill_tree_api/serializers.py": ["/service/skill_tree_api/models.py"], "/service/skill_tree_api/views.py": ["/service/skill_tree_api/models.py", "/service/skill_tree_api/serializers.py"]}
61,681
chimez/GoalSkill
refs/heads/master
/service/skill_tree_api/urls.py
from django.conf.urls import include, url from rest_framework.documentation import include_docs_urls from rest_framework.routers import DefaultRouter from rest_framework.schemas import get_schema_view from skill_tree_api import views schema_view = get_schema_view(title='Pastebin API') skill_family_detail = views.User...
{"/service/skill_tree_api/serializers.py": ["/service/skill_tree_api/models.py"], "/service/skill_tree_api/views.py": ["/service/skill_tree_api/models.py", "/service/skill_tree_api/serializers.py"]}
61,682
chimez/GoalSkill
refs/heads/master
/service/skill_tree_api/views.py
from rest_framework import mixins, status, viewsets from rest_framework.decorators import action from rest_framework.response import Response from .models import (Level, Method, MethodFamily, Skill, SkillFamily, User, UserMethod, UserSkill) from .serializers import ( AllSkillSerializer, LevelS...
{"/service/skill_tree_api/serializers.py": ["/service/skill_tree_api/models.py"], "/service/skill_tree_api/views.py": ["/service/skill_tree_api/models.py", "/service/skill_tree_api/serializers.py"]}
61,683
chimez/GoalSkill
refs/heads/master
/service/skill_tree_api/utils.py
from skill_tree_api.models import Level, Method, Skill, User, UserMethod, UserSkill def flush_all_userskill(): me = User.objects.get(name="me") level_f = Level.objects.get(short_name="F") skills = Skill.objects.all() for skill in skills: UserSkill.objects.get_or_create( user=me, sk...
{"/service/skill_tree_api/serializers.py": ["/service/skill_tree_api/models.py"], "/service/skill_tree_api/views.py": ["/service/skill_tree_api/models.py", "/service/skill_tree_api/serializers.py"]}
61,684
chimez/GoalSkill
refs/heads/master
/service/skill_tree_api/apps.py
from django.apps import AppConfig class SkillTreeApiConfig(AppConfig): name = 'skill_tree_api'
{"/service/skill_tree_api/serializers.py": ["/service/skill_tree_api/models.py"], "/service/skill_tree_api/views.py": ["/service/skill_tree_api/models.py", "/service/skill_tree_api/serializers.py"]}
61,685
chimez/GoalSkill
refs/heads/master
/service/skill_tree/urls.py
from django.urls import path from . import views app_name = "skill_tree" urlpatterns = [ path('', views.index, name="index"), path('<str:skill_family_name>/', views.skill_family, name="skill_family"), path( '<str:skill_family_name>/<str:skill_name>/', views.skill, name="skill"), path( ...
{"/service/skill_tree_api/serializers.py": ["/service/skill_tree_api/models.py"], "/service/skill_tree_api/views.py": ["/service/skill_tree_api/models.py", "/service/skill_tree_api/serializers.py"]}
61,686
victorhos/merge_requirements
refs/heads/master
/setup.py
#!/usr/bin/env python # encoding: utf-8 from setuptools import setup setup( name='merge-requirements', version='0.6', keywords=['merge requirements'], url='https://github.com/victorhos/merge_requirements', license='MIT', author='victorhos', author_email='victor.hos@gmail.com', descript...
{"/merge_requirements/manage_file.py": ["/merge_requirements/utils.py"]}
61,687
victorhos/merge_requirements
refs/heads/master
/merge_requirements/manage_file.py
#!/usr/bin/env python # encoding: utf-8 import sys import os import logging from merge_requirements.utils import remove_comments, merge_dict CURRENT_DIRECTORY = os.getcwd() DIR = os.path.dirname(os.path.realpath(__file__)) class ManageFile(object): def __init__(self, ff, sf): self.first_file = self.gen...
{"/merge_requirements/manage_file.py": ["/merge_requirements/utils.py"]}
61,688
victorhos/merge_requirements
refs/heads/master
/merge_requirements/utils.py
#!/usr/bin/env python # encoding: utf-8 import re import sys from packaging.version import parse, InvalidVersion def remove_comments(text): #remove comments rx_comments = re.compile( '#+.*?\\n|^\\n|\\n$', re.M | re.S) #remove whitespace rx_whitespace = re.compile( '\\n+', re.M | re.S) text = rx_...
{"/merge_requirements/manage_file.py": ["/merge_requirements/utils.py"]}
61,689
victorhos/merge_requirements
refs/heads/master
/merge_requirements/main.py
#!/usr/bin/env python # encoding: utf-8 import argparse from manage_file import ManageFile, Merge parser = argparse.ArgumentParser() parser.add_argument( 'first_file', help='first file to merged' ) parser.add_argument( 'second_file', help='second file to merged' ) args = parser.parse_args() def ma...
{"/merge_requirements/manage_file.py": ["/merge_requirements/utils.py"]}
61,690
victorhos/merge_requirements
refs/heads/master
/merge_requirements/tests/tests_utils.py
#!/usr/bin/env python # encoding: utf-8 from unittest import TestCase from unittest.mock import MagicMock from utils import remove_comments, merge_dict class TestUtils(TestCase): def test_remove_comments(self): text_file = '#COMENTARIOS\nCherryPy==3.2.4\nDjango==2.1.7\nIPTCInfo==1.9.5-6\nIon==0.6.4.2\n#...
{"/merge_requirements/manage_file.py": ["/merge_requirements/utils.py"]}
61,691
MKaczkow/reversi_game
refs/heads/master
/player.py
''' Author: Maciej Kaczkowski 26.03-13.04.2021 ''' from config import * from minimax import * class AlgoPlayer(object): def __init__(self, color, board_instance, max_depth=MAX_DEPTH): self.max_depth = max_depth self.minimax_object = Minimax(heuristic_evaluation=0) self.color = color ...
{"/player.py": ["/config.py", "/minimax.py"], "/reversi.py": ["/player.py", "/board.py", "/config.py"], "/board.py": ["/config.py"], "/minimax.py": ["/board.py"]}
61,692
MKaczkow/reversi_game
refs/heads/master
/reversi.py
''' Author: Maciej Kaczkowski 26.03-07.04.2021 ''' import numpy as np import player import board from config import * class Reversi: def __init__(self, first_player, second_player): self.board_instance = board.Board() if first_player == RANDOM: self.black_player = player.RandomPlay...
{"/player.py": ["/config.py", "/minimax.py"], "/reversi.py": ["/player.py", "/board.py", "/config.py"], "/board.py": ["/config.py"], "/minimax.py": ["/board.py"]}
61,693
MKaczkow/reversi_game
refs/heads/master
/config.py
''' Author: Maciej Kaczkowski 26.03-13.04.2021 ''' # configuration file with constans, etc. # using "reversi convention" - black has first move, # hence BLACK is Max player, while WHITE is Min player WHITE = -1 BLACK = 1 EMPTY = 0 # player's codenames RANDOM = 'random' ALGO = 'minmax' # min-max parameters MAX_DEPT...
{"/player.py": ["/config.py", "/minimax.py"], "/reversi.py": ["/player.py", "/board.py", "/config.py"], "/board.py": ["/config.py"], "/minimax.py": ["/board.py"]}
61,694
MKaczkow/reversi_game
refs/heads/master
/board.py
''' Author: Maciej Kaczkowski 26.03-13.04.2021 ''' import numpy as np import copy from config import * class Board: def __init__(self, board_size=8): self.board_state = np.zeros((board_size, board_size), dtype=int) self.board_state[3, 4] = BLACK self.board_state[4, 3] = BLACK se...
{"/player.py": ["/config.py", "/minimax.py"], "/reversi.py": ["/player.py", "/board.py", "/config.py"], "/board.py": ["/config.py"], "/minimax.py": ["/board.py"]}
61,695
MKaczkow/reversi_game
refs/heads/master
/minimax.py
''' Author: Maciej Kaczkowski 26.03-13.04.2021 ''' import numpy as np import board class Minimax(object): def __init__(self, heuristic_evaluation=0): self.heuristic_evaluation = heuristic_evaluation def minimax(self, board_instance: board.Board, parent_board, depth, player, opponent, ...
{"/player.py": ["/config.py", "/minimax.py"], "/reversi.py": ["/player.py", "/board.py", "/config.py"], "/board.py": ["/config.py"], "/minimax.py": ["/board.py"]}
61,701
shyamtarams/studentManagementSystem
refs/heads/dev
/home/forms.py
from django import forms from .models import * from accounts.models import myUser class studentRegisterForm(forms.ModelForm): name=forms.CharField(max_length=254) contact =forms.CharField(max_length=15) email = forms.EmailField(max_length=254, help_text='Required. Inform a valid email address.') statu...
{"/home/forms.py": ["/home/models.py"], "/home/views.py": ["/home/models.py", "/home/forms.py"], "/home/urls.py": ["/home/views.py"]}
61,702
shyamtarams/studentManagementSystem
refs/heads/dev
/accounts/migrations/0003_alter_myuser_password.py
# Generated by Django 3.2.7 on 2021-09-07 19:18 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0002_myuser_name'), ] operations = [ migrations.AlterField( model_name='myuser', name='password', ...
{"/home/forms.py": ["/home/models.py"], "/home/views.py": ["/home/models.py", "/home/forms.py"], "/home/urls.py": ["/home/views.py"]}
61,703
shyamtarams/studentManagementSystem
refs/heads/dev
/accounts/urls.py
from django.contrib import admin from django.urls import path,include from .views import * from django.contrib.auth.views import LoginView urlpatterns = [ path('login',LoginView.as_view(),name='login'), path('',include('django.contrib.auth.urls')), ]
{"/home/forms.py": ["/home/models.py"], "/home/views.py": ["/home/models.py", "/home/forms.py"], "/home/urls.py": ["/home/views.py"]}
61,704
shyamtarams/studentManagementSystem
refs/heads/dev
/home/views.py
from django.shortcuts import render, redirect from .models import * from home.forms import studentRegisterForm from accounts.models import myUser from django.contrib.auth import login, authenticate from django.contrib.auth.decorators import login_required # Create your views here. # def signup(request): # if ...
{"/home/forms.py": ["/home/models.py"], "/home/views.py": ["/home/models.py", "/home/forms.py"], "/home/urls.py": ["/home/views.py"]}
61,705
shyamtarams/studentManagementSystem
refs/heads/dev
/home/models.py
from django.db import models # Create your models here. class Login(models.Model): username=models.CharField(max_length=150) password=models.CharField(max_length=200) def __str__(self): return '{} {}'.format(self.username, self.password) class Student(models.Model): name=models.CharField(max...
{"/home/forms.py": ["/home/models.py"], "/home/views.py": ["/home/models.py", "/home/forms.py"], "/home/urls.py": ["/home/views.py"]}
61,706
shyamtarams/studentManagementSystem
refs/heads/dev
/accounts/migrations/0002_myuser_name.py
# Generated by Django 3.2.7 on 2021-09-07 18:53 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0001_initial'), ] operations = [ migrations.AddField( model_name='myuser', name='name', fiel...
{"/home/forms.py": ["/home/models.py"], "/home/views.py": ["/home/models.py", "/home/forms.py"], "/home/urls.py": ["/home/views.py"]}
61,707
shyamtarams/studentManagementSystem
refs/heads/dev
/accounts/forms.py
from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from .models import myUser class CustomUserCreationForm(UserCreationForm): class meta: model = myUser field = "__all__"
{"/home/forms.py": ["/home/models.py"], "/home/views.py": ["/home/models.py", "/home/forms.py"], "/home/urls.py": ["/home/views.py"]}
61,708
shyamtarams/studentManagementSystem
refs/heads/dev
/home/urls.py
from django.urls import path,include from .views import * urlpatterns = [ # path('student/', student), # path('signup/', signup), path('login/', login), path('logout/', logout), path('adminsite/', adminsite,name="admin site"), path('addstudent/', studentRegister,name="studentRegister"), pat...
{"/home/forms.py": ["/home/models.py"], "/home/views.py": ["/home/models.py", "/home/forms.py"], "/home/urls.py": ["/home/views.py"]}
61,710
kuldeepmewara/Trio
refs/heads/master
/student.py
import csv filename = "record.csv" fields = ['name', 'regi_no', '11', '12', '13', '14', '15', '16','T1', '21', '22', '23', '24', '25', '26','T2', '31', '32', '33', '34', '35', '36', 'T3','41', '42', '43', '44', '45', '46', 'T4','51', '52', '53', '54', '55', '56','T5', '61', '62',...
{"/start.py": ["/admin.py", "/teacher.py", "/student.py"]}
61,711
kuldeepmewara/Trio
refs/heads/master
/start.py
import os import subprocess os.system('cls') def clear(): subprocess.call("cls",shell=True) mode=1 os.system('cls') while mode!=0: print("\n[1]\tAdmin \n[2]\tTeacher\n[3]\tStudent\n[4]\tExit") while True: try: mode=int(input("\n\nEnter the mode : ")) break ...
{"/start.py": ["/admin.py", "/teacher.py", "/student.py"]}
61,712
kuldeepmewara/Trio
refs/heads/master
/admin.py
import csv import datetime import string fields = ['name', 'regi_no', '11', '12', '13', '14', '15', '16','T1', '21', '22', '23', '24', '25', '26','T2', '31', '32', '33', '34', '35', '36', 'T3','41', '42', '43', '44', '45', '46', 'T4','51', '52', '53', '54', '55', '56','T5', '61', ...
{"/start.py": ["/admin.py", "/teacher.py", "/student.py"]}
61,713
kuldeepmewara/Trio
refs/heads/master
/teacher.py
import csv import os import datetime fields = ['name', 'regi_no', '11', '12', '13', '14', '15', '16','T1', '21', '22', '23', '24', '25', '26','T2', '31', '32', '33', '34', '35', '36', 'T3','41', '42', '43', '44', '45', '46', 'T4','51', '52', '53', '54', '55', '56','T5', '61', '6...
{"/start.py": ["/admin.py", "/teacher.py", "/student.py"]}
61,732
chui101/xmlvis
refs/heads/master
/app.py
from flask import Flask, request, Response, make_response from flask_cors import CORS import json import kaplanmeier from io import StringIO import csv from pymongo import MongoClient state_postal_fips_mapping = {} us_states = [] app = Flask(__name__) CORS(app) client = MongoClient(host="localhost",port=27017) db = c...
{"/app.py": ["/kaplanmeier.py"]}
61,733
chui101/xmlvis
refs/heads/master
/kaplanmeier.py
class KaplanMeier: def __init__(self): self.km_counts = {} self.population = 0 def to_timepoints(self): result= [] for time in sorted(self.km_counts): row = { "t": time, "d": self.km_counts[time][0], "n": self.km_count...
{"/app.py": ["/kaplanmeier.py"]}
61,734
Muki-v/XiahangFlightOptimize
refs/heads/master
/src/PlaneJobLine.py
from src.CommonDirectory import commonDirectory as D class planeJobLine: def __init__(self, planeID): self.planeID = planeID self.planeType = D.planeID_totype(planeID) self.planeFlightList = [] def insert_airline(self, newAirline): """ Insert a new airline based on the ...
{"/src/PlaneJobLine.py": ["/src/CommonDirectory.py"], "/src/CommonDirectory.py": ["/src/CommonParameter.py"], "/src/AirLine.py": ["/src/CommonDirectory.py", "/src/CommonParameter.py"]}
61,735
Muki-v/XiahangFlightOptimize
refs/heads/master
/src/CommonDirectory.py
import csv from datetime import datetime from datetime import timedelta from src.TimePeriod import timePeriod from src.CommonParameter import commonParameter as cpara class commonDirectory: dict_NationalityToNum = {'国内':0, '国际':1} # dict_PlaneIDToType = {} dict_NumToNationality = {0:'国内', 1:'国际'} ...
{"/src/PlaneJobLine.py": ["/src/CommonDirectory.py"], "/src/CommonDirectory.py": ["/src/CommonParameter.py"], "/src/AirLine.py": ["/src/CommonDirectory.py", "/src/CommonParameter.py"]}
61,736
Muki-v/XiahangFlightOptimize
refs/heads/master
/src/CommonParameter.py
# from src.CommonParameter import commonParameter as cpara class commonParameter: DATE_FORM = "%m/%d/%Y" # D.DATE_FORM DATETIME_FORM = "%m/%d/%Y %H:%M" # D.DATETIME_FORM
{"/src/PlaneJobLine.py": ["/src/CommonDirectory.py"], "/src/CommonDirectory.py": ["/src/CommonParameter.py"], "/src/AirLine.py": ["/src/CommonDirectory.py", "/src/CommonParameter.py"]}
61,737
Muki-v/XiahangFlightOptimize
refs/heads/master
/src/AirLine.py
from datetime import datetime, date from src.CommonDirectory import commonDirectory as D from src.CommonParameter import commonParameter as cpara from src.TimePeriod import timePeriod import csv class airLine: def __init__(self, line_info): if len(line_info) != 11: raise ValueError("line_info ...
{"/src/PlaneJobLine.py": ["/src/CommonDirectory.py"], "/src/CommonDirectory.py": ["/src/CommonParameter.py"], "/src/AirLine.py": ["/src/CommonDirectory.py", "/src/CommonParameter.py"]}
61,749
duspeccoll/astools
refs/heads/master
/2019/auth.py
#!/usr/bin/env python # This script just logs you into your ArchivesSpace backend and prints a session ID. # You can copy it into whatever script you want to write to do useful things with your database. import configparser, requests config = configparser.ConfigParser() config.read('local_settings.cfg') dictionary ...
{"/make_digital_object_gui.py": ["/make_digital_object.py"]}
61,750
duspeccoll/astools
refs/heads/master
/make_digital_object.py
#!/usr/bin/env python # What this script does: # 1. logs into the ArchivesSpace backend via the ArchivesSnake library (you will need to configure that before you # run the script) # 2. accepts a digital object package constructed according to the Digital Repository ingest specification as input # 3. checks to see if u...
{"/make_digital_object_gui.py": ["/make_digital_object.py"]}
61,751
duspeccoll/astools
refs/heads/master
/2019/get_kaltura_ids.py
#!/usr/bin/env python ########## # # get_kaltura_ids.py -- get Kaltura IDs from a bulk ingest log XML file # # Feed this script an XML log file of a Kaltura bulk ingest; it will scan the # Reference ID (if it's a digital_object_component URI), download the object # found at that URI, and add the Kaltura entry ID to it...
{"/make_digital_object_gui.py": ["/make_digital_object.py"]}
61,752
duspeccoll/astools
refs/heads/master
/make_digital_object_gui.py
import tkinter as tk from tkinter import filedialog from tkinter import ttk import make_digital_object from make_digital_object import * from asnake.client.web_client import ASnakeAuthError import threading from requests.exceptions import MissingSchema, InvalidSchema, ConnectionError import configparser item_dict = di...
{"/make_digital_object_gui.py": ["/make_digital_object.py"]}
61,753
duspeccoll/astools
refs/heads/master
/2019/dalbey.py
#!/usr/bin/env python ################ # # dalbey.py -- normalize Fridlyand Archive metadata enough that I can work with it in OpenRefine # ################ import json from lxml import etree namespaces = {'mods': 'http://www.loc.gov/mods/v3'} def parse_title(xml): titleInfo = xml.find("mods:titleInfo", namesp...
{"/make_digital_object_gui.py": ["/make_digital_object.py"]}
61,754
duspeccoll/astools
refs/heads/master
/2019/add.py
#!/usr/bin/env python import argparse import csv import json import os from asnake.aspace import ASpace AS = ASpace() repo = AS.repositories(2) parser = argparse.ArgumentParser() parser.add_argument('-f', '--file', help="A CSV list of URIs to pass to the script") args = parser.parse_args() def get_json(uri): r ...
{"/make_digital_object_gui.py": ["/make_digital_object.py"]}
61,755
duspeccoll/astools
refs/heads/master
/2019/reports.py
#!/usr/bin/env python import configparser, requests, json, os, sys config = configparser.ConfigParser() config.read('local_settings.cfg') dictionary = { 'baseURL': config.get('ArchivesSpace', 'baseURL'), 'repository':config.get('ArchivesSpace', 'repository'), 'user': config.get('ArchivesSpace', 'user'), 'pas...
{"/make_digital_object_gui.py": ["/make_digital_object.py"]}
61,756
duspeccoll/astools
refs/heads/master
/2019/uris.py
#!/usr/bin/env python ############################################################################### # # uris.py -- generate uri.txt files # # The Special Collections @ DU ingest process requires a uri.txt file # alongside the digital object files, so that the repository knows from which # ArchivesSpace record it sho...
{"/make_digital_object_gui.py": ["/make_digital_object.py"]}
61,757
duspeccoll/astools
refs/heads/master
/2019/updates.py
#!/usr/bin/env python # this only works on subjects but it would be rad if it worked on any data model you want import json, configparser, requests, argparse, os, re, csv # let configparser get our local settings config = configparser.ConfigParser() config.read('local_settings.cfg') dictionary = { 'baseURL': confi...
{"/make_digital_object_gui.py": ["/make_digital_object.py"]}
61,758
duspeccoll/astools
refs/heads/master
/2019/make_digital_objects.py
#!/usr/bin/env python ############################################################################### # # make_digital_objects.py -- make a bunch of digital object records at once # # Takes as input the URI for whatever series contains the digitized material, # as well as a list of handles/file names (in CSV), and con...
{"/make_digital_object_gui.py": ["/make_digital_object.py"]}
61,759
duspeccoll/astools
refs/heads/master
/2019/marc_export.py
#!/usr/bin/env python import configparser, requests, time config = configparser.ConfigParser() config.read('local_settings.cfg') dictionary = { 'baseURL': config.get('ArchivesSpace', 'baseURL'), 'repository':config.get('ArchivesSpace', 'repository'), 'user': config.get('ArchivesSpace', 'user'), 'password': c...
{"/make_digital_object_gui.py": ["/make_digital_object.py"]}
61,760
duspeccoll/astools
refs/heads/master
/2019/kaltura_bulk_upload.py
#!/usr/bin/env python ########## # # kaltura_bulk_upload.py -- uses the Kaltura Work Order plugin to build Bulk Upload XML # # Requires a CSV file of URIs as input; will then create an mrss/channel XML object, # add the 'item' tree for the Kaltura XML for each URI in the CSV file, and save the # resulting XML object a...
{"/make_digital_object_gui.py": ["/make_digital_object.py"]}
61,775
techstonia/enimkommenteeritud
refs/heads/master
/app/views.py
# -*- coding: utf-8 -*- from flask import render_template, flash, redirect, url_for, g from app import app, db from forms import CommentForm from markupsafe import Markup from models import Novelty, Comment from datetime import datetime, timedelta from config import POSTS_PER_PAGE, SITES from werkzeug.exceptions import...
{"/app/views.py": ["/app/__init__.py", "/config.py"], "/app/__init__.py": ["/app/views.py"], "/runp-heroku.py": ["/app/__init__.py", "/app/parse.py"], "/app/models.py": ["/app/__init__.py"]}
61,776
techstonia/enimkommenteeritud
refs/heads/master
/app/forms.py
from flask_wtf import Form from wtforms import TextAreaField, TextField from wtforms.validators import Required class CommentForm(Form): nimi = TextField('post', validators=[Required()]) comment = TextAreaField('post', validators=[Required()]) nickname = TextField('post')
{"/app/views.py": ["/app/__init__.py", "/config.py"], "/app/__init__.py": ["/app/views.py"], "/runp-heroku.py": ["/app/__init__.py", "/app/parse.py"], "/app/models.py": ["/app/__init__.py"]}
61,777
techstonia/enimkommenteeritud
refs/heads/master
/app/__init__.py
import os from flask import Flask from flask.ext.sqlalchemy import SQLAlchemy app = Flask(__name__) app.config.from_object('config') db = SQLAlchemy(app) def log_message(msg): if not app.debug and os.environ.get('HEROKU') is None: import logging from logging.handlers import RotatingFileHandler ...
{"/app/views.py": ["/app/__init__.py", "/config.py"], "/app/__init__.py": ["/app/views.py"], "/runp-heroku.py": ["/app/__init__.py", "/app/parse.py"], "/app/models.py": ["/app/__init__.py"]}
61,778
techstonia/enimkommenteeritud
refs/heads/master
/runp-heroku.py
#!flask/bin/python from app import app from app.parse import parse_sites, update_all_sites parse_sites() update_all_sites()
{"/app/views.py": ["/app/__init__.py", "/config.py"], "/app/__init__.py": ["/app/views.py"], "/runp-heroku.py": ["/app/__init__.py", "/app/parse.py"], "/app/models.py": ["/app/__init__.py"]}
61,779
techstonia/enimkommenteeritud
refs/heads/master
/app/helpers.py
from flask import g def active_time_mode(time_mode): if g.time_mode == time_mode: return 'class=active'
{"/app/views.py": ["/app/__init__.py", "/config.py"], "/app/__init__.py": ["/app/views.py"], "/runp-heroku.py": ["/app/__init__.py", "/app/parse.py"], "/app/models.py": ["/app/__init__.py"]}
61,780
techstonia/enimkommenteeritud
refs/heads/master
/app/models.py
from app import db class Novelty(db.Model): id = db.Column(db.Integer, primary_key=True) site = db.Column(db.String(15)) url = db.Column(db.String(2048), unique=True, index=True, nullable=False) headline = db.Column(db.String(512), nullable=False) published_date = db.Column(db.DateTime) commen...
{"/app/views.py": ["/app/__init__.py", "/config.py"], "/app/__init__.py": ["/app/views.py"], "/runp-heroku.py": ["/app/__init__.py", "/app/parse.py"], "/app/models.py": ["/app/__init__.py"]}
61,781
techstonia/enimkommenteeritud
refs/heads/master
/config.py
# -*- coding: utf-8 -*- from collections import OrderedDict import os basedir = os.path.abspath(os.path.dirname(__file__)) CSRF_ENABLED = True SECRET_KEY = 'This is a secret!' if os.environ.get('DATABASE_URL') is None: SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'app.db') else: SQLALCHEMY...
{"/app/views.py": ["/app/__init__.py", "/config.py"], "/app/__init__.py": ["/app/views.py"], "/runp-heroku.py": ["/app/__init__.py", "/app/parse.py"], "/app/models.py": ["/app/__init__.py"]}
61,782
techstonia/enimkommenteeritud
refs/heads/master
/app/parse.py
#!flask/bin/python # -*- coding: utf-8 -*- import urllib2 from app import db, log_message from app.decorators import async from app.models import Novelty from bs4 import BeautifulSoup from config import UPDATE_FREQUENCY, SITES import feedparser import time from datetime import datetime, timedelta def parse_site(feed_...
{"/app/views.py": ["/app/__init__.py", "/config.py"], "/app/__init__.py": ["/app/views.py"], "/runp-heroku.py": ["/app/__init__.py", "/app/parse.py"], "/app/models.py": ["/app/__init__.py"]}
61,784
Brandon-Ritchie/PythonSlidingPuzzle
refs/heads/main
/main.py
""" Found bugs: Game is not always solveable """ import classes import random def generate_list_of_num(): list_of_num = [] while len(list_of_num) < 15: random_num = random.randint(1, 15) if random_num not in list_of_num: list_of_num.append(random_num) return lis...
{"/main.py": ["/classes.py"], "/tests.py": ["/classes.py", "/main.py"]}
61,785
Brandon-Ritchie/PythonSlidingPuzzle
refs/heads/main
/classes.py
class Game(): @property def board(self): return self._board @board.setter def board(self, board): self._board = board @property def piece_dictionary(self): return self._piece_dictionary @piece_dictionary.setter def piece_dictionary(self, dict_of_pieces): ...
{"/main.py": ["/classes.py"], "/tests.py": ["/classes.py", "/main.py"]}
61,786
Brandon-Ritchie/PythonSlidingPuzzle
refs/heads/main
/tests.py
import unittest import classes from main import generate_pieces class TestGameMethods(unittest.TestCase): def setUp(self): pieces = generate_pieces() self.pieces = pieces self.game = classes.Game() self.game.generate_board(pieces) self.game.create_piece_dictionary(pieces) ...
{"/main.py": ["/classes.py"], "/tests.py": ["/classes.py", "/main.py"]}
61,796
latifanoor/Mydjangoproject
refs/heads/master
/members/models.py
from django.db import models class Members(models.Model): full_name = models.CharField(max_length=100) phone_number=models.IntegerField() national_id = models.IntegerField() email=models.CharField(max_length=20) biography=models.CharField(max_length=100) Gender=models.CharField(max_length=20) dob = models.Date...
{"/members/views.py": ["/members/models.py"]}
61,797
latifanoor/Mydjangoproject
refs/heads/master
/members/migrations/0001_initial.py
# Generated by Django 2.0.5 on 2018-05-29 07:58 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Members', fields=[ ('id', models.AutoField(...
{"/members/views.py": ["/members/models.py"]}
61,798
latifanoor/Mydjangoproject
refs/heads/master
/polls/models.py
from django.db import models # Create your models here. class Question(models.Model): question =models.CharField(max_length=200) pub_date =models.DateTimeField('date published') location =models.CharField(max_length=50)
{"/members/views.py": ["/members/models.py"]}
61,799
latifanoor/Mydjangoproject
refs/heads/master
/members/views.py
from django.shortcuts import render # Create your views here. from .models import Members def members(request): members_names = Members.objects.all() print(members_names) return render(request, 'members/my.html', {'members_names':members_names})
{"/members/views.py": ["/members/models.py"]}
61,800
latifanoor/Mydjangoproject
refs/heads/master
/swahilipot/apps.py
from django.apps import AppConfig class SwahilipotConfig(AppConfig): name = 'swahilipot'
{"/members/views.py": ["/members/models.py"]}
61,801
latifanoor/Mydjangoproject
refs/heads/master
/swahilipot/migrations/0001_initial.py
# Generated by Django 2.0.5 on 2018-05-17 09:29 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Members', fields=[ ('id', models.AutoField(...
{"/members/views.py": ["/members/models.py"]}
61,802
latifanoor/Mydjangoproject
refs/heads/master
/swahilipot/views.py
from django.shortcuts import render # Create your views here. from django.http import HttpResponse from .models import Board def home(request): boards_names = Board.objects.all() print(boards_names) return render(request, 'swahilipot/list.html', {'boards_names':boards_names}) def swahilipot(request): ...
{"/members/views.py": ["/members/models.py"]}
61,803
latifanoor/Mydjangoproject
refs/heads/master
/swahilipot/migrations/0003_delete_members.py
# Generated by Django 2.0.5 on 2018-05-29 08:43 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('swahilipot', '0002_auto_20180523_0826'), ] operations = [ migrations.DeleteModel( name='Members', ), ]
{"/members/views.py": ["/members/models.py"]}
61,804
latifanoor/Mydjangoproject
refs/heads/master
/pygirls/apps.py
from django.apps import AppConfig class PygirlsConfig(AppConfig): name = 'pygirls'
{"/members/views.py": ["/members/models.py"]}
61,805
elees1219/LineBot
refs/heads/master
/game/rps.py
# -*- coding: utf-8 -*- from enum import Enum from tool import random_gen from error import error import time from collections import defaultdict class battle_item(Enum): rock = 1 paper = 2 scissor = 3 class battle_item_representative(object): def __init__(self, battle_item, is_sticker, content): ...
{"/game/rps.py": ["/tool/__init__.py"], "/bot/game_object_holder.py": ["/game/__init__.py"], "/msg_handler/text_msg.py": ["/db/__init__.py", "/bot/__init__.py", "/bot/system.py", "/tool/__init__.py"], "/tool/__init__.py": ["/tool/random_gen.py"], "/msg_handler/game_msg.py": ["/bot/system.py", "/game/__init__.py"], "/ms...
61,806
elees1219/LineBot
refs/heads/master
/bot/system.py
# -*- coding: utf-8 -*- import enum from datetime import datetime, timedelta from collections import defaultdict from linebot import exceptions import hashlib import operator import traceback from math import * class _command(object): def __init__(self, min_split=2, max_split=2, non_user_permission_required=False)...
{"/game/rps.py": ["/tool/__init__.py"], "/bot/game_object_holder.py": ["/game/__init__.py"], "/msg_handler/text_msg.py": ["/db/__init__.py", "/bot/__init__.py", "/bot/system.py", "/tool/__init__.py"], "/tool/__init__.py": ["/tool/random_gen.py"], "/msg_handler/game_msg.py": ["/bot/system.py", "/game/__init__.py"], "/ms...
61,807
elees1219/LineBot
refs/heads/master
/bot/game_object_holder.py
# -*- coding: utf-8 -*- import game from collections import defaultdict class game_objects(object): def __init__(self): self._rps = defaultdict(game.rps) @property def rps_instance_count(self): return len(self._rps) def set_rps(self, cid, rps): self._rps[cid] = rps def d...
{"/game/rps.py": ["/tool/__init__.py"], "/bot/game_object_holder.py": ["/game/__init__.py"], "/msg_handler/text_msg.py": ["/db/__init__.py", "/bot/__init__.py", "/bot/system.py", "/tool/__init__.py"], "/tool/__init__.py": ["/tool/random_gen.py"], "/msg_handler/game_msg.py": ["/bot/system.py", "/game/__init__.py"], "/ms...
61,808
elees1219/LineBot
refs/heads/master
/msg_handler/text_msg.py
# -*- coding: utf-8 -*- import errno, os, sys import validators import urllib from urlparse import urlparse import requests from flask import Flask, request, abort, url_for import hashlib from linebot import ( LineBotApi, WebhookHandler, exceptions ) from linebot.models import ( MessageEvent, TextMessage, Te...
{"/game/rps.py": ["/tool/__init__.py"], "/bot/game_object_holder.py": ["/game/__init__.py"], "/msg_handler/text_msg.py": ["/db/__init__.py", "/bot/__init__.py", "/bot/system.py", "/tool/__init__.py"], "/tool/__init__.py": ["/tool/random_gen.py"], "/msg_handler/game_msg.py": ["/bot/system.py", "/game/__init__.py"], "/ms...
61,809
elees1219/LineBot
refs/heads/master
/bot/webpage_auto_gen.py
# -*- coding: utf-8 -*- from enum import Enum from error import error from cgi import escape from collections import defaultdict import traceback import time from datetime import datetime, timedelta from flask import request, url_for, render_template from linebot.models import TextSendMessage class webpage(object):...
{"/game/rps.py": ["/tool/__init__.py"], "/bot/game_object_holder.py": ["/game/__init__.py"], "/msg_handler/text_msg.py": ["/db/__init__.py", "/bot/__init__.py", "/bot/system.py", "/tool/__init__.py"], "/tool/__init__.py": ["/tool/random_gen.py"], "/msg_handler/game_msg.py": ["/bot/system.py", "/game/__init__.py"], "/ms...
61,810
elees1219/LineBot
refs/heads/master
/tool/__init__.py
from .mff import ( mff_dmg_calc, job, dmg_bonus ) from .random_gen import ( random_drawer )
{"/game/rps.py": ["/tool/__init__.py"], "/bot/game_object_holder.py": ["/game/__init__.py"], "/msg_handler/text_msg.py": ["/db/__init__.py", "/bot/__init__.py", "/bot/system.py", "/tool/__init__.py"], "/tool/__init__.py": ["/tool/random_gen.py"], "/msg_handler/game_msg.py": ["/bot/system.py", "/game/__init__.py"], "/ms...
61,811
elees1219/LineBot
refs/heads/master
/db/groupban.py
# -*- coding: utf-8 -*- import os, sys import urlparse import psycopg2 from sqlalchemy.exc import IntegrityError import hashlib from enum import Enum import collections class group_ban(object): def __init__(self, scheme, db_url): urlparse.uses_netloc.append(scheme) self.url = urlparse.urlparse(...
{"/game/rps.py": ["/tool/__init__.py"], "/bot/game_object_holder.py": ["/game/__init__.py"], "/msg_handler/text_msg.py": ["/db/__init__.py", "/bot/__init__.py", "/bot/system.py", "/tool/__init__.py"], "/tool/__init__.py": ["/tool/random_gen.py"], "/msg_handler/game_msg.py": ["/bot/system.py", "/game/__init__.py"], "/ms...
61,812
elees1219/LineBot
refs/heads/master
/tool/txt_calc.py
# -*- coding: utf-8 -*- from math import * class text_calculator(object): @staticmethod def calc(text, debug=False): result = '' if text.startswith('0'): return try: if 'result=' not in text: exec('result={}'.format(text)) else: ...
{"/game/rps.py": ["/tool/__init__.py"], "/bot/game_object_holder.py": ["/game/__init__.py"], "/msg_handler/text_msg.py": ["/db/__init__.py", "/bot/__init__.py", "/bot/system.py", "/tool/__init__.py"], "/tool/__init__.py": ["/tool/random_gen.py"], "/msg_handler/game_msg.py": ["/bot/system.py", "/game/__init__.py"], "/ms...
61,813
elees1219/LineBot
refs/heads/master
/msg_handler/game_msg.py
# -*- coding: utf-8 -*- import os, sys from error import error from bot.system import line_api_proc, string_can_be_int import game from linebot.models import SourceUser class game_msg(object): def __init__(self, game_data, line_api_proc): self._game_data = game_data self._line_api = line_api_pro...
{"/game/rps.py": ["/tool/__init__.py"], "/bot/game_object_holder.py": ["/game/__init__.py"], "/msg_handler/text_msg.py": ["/db/__init__.py", "/bot/__init__.py", "/bot/system.py", "/tool/__init__.py"], "/tool/__init__.py": ["/tool/random_gen.py"], "/msg_handler/game_msg.py": ["/bot/system.py", "/game/__init__.py"], "/ms...
61,814
elees1219/LineBot
refs/heads/master
/msg_handler/__init__.py
from .text_msg import ( text_msg, oxford_dict, line_api_proc ) from .game_msg import ( game_msg )
{"/game/rps.py": ["/tool/__init__.py"], "/bot/game_object_holder.py": ["/game/__init__.py"], "/msg_handler/text_msg.py": ["/db/__init__.py", "/bot/__init__.py", "/bot/system.py", "/tool/__init__.py"], "/tool/__init__.py": ["/tool/random_gen.py"], "/msg_handler/game_msg.py": ["/bot/system.py", "/game/__init__.py"], "/ms...