index
int64
repo_name
string
branch_name
string
path
string
content
string
import_graph
string
64,187
SUPEngineer/webAuto
refs/heads/master
/testing/test_js.py
# @Time : 2021/2/24 16:08 # @Author : qiulingfeng # @File : test_js.py from time import sleep from selenium.webdriver.common.by import By from testing.base import Base class TestJS(Base): def test_js(self): self.driver.get('http://www.baidu.com') self.driver.find_element(By.ID, 'kw').send_keys(...
{"/testing/test_file.py": ["/testing/base.py"], "/testing/test_js.py": ["/testing/base.py"], "/testing/test_alert.py": ["/testing/base.py"], "/testing/test_frame.py": ["/testing/base.py"], "/testing/addStuff/page/main_page.py": ["/testing/addStuff/page/address_page.py"], "/testing/addStuff/testCase/test_addStuff.py": [...
64,188
SUPEngineer/webAuto
refs/heads/master
/testing/test_ActionChains.py
import time import pytest from selenium import webdriver from selenium.webdriver import ActionChains from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys class TestActionChains: def setup(self): self.driver = webdriver.Chrome() self.driver.maximize_window() ...
{"/testing/test_file.py": ["/testing/base.py"], "/testing/test_js.py": ["/testing/base.py"], "/testing/test_alert.py": ["/testing/base.py"], "/testing/test_frame.py": ["/testing/base.py"], "/testing/addStuff/page/main_page.py": ["/testing/addStuff/page/address_page.py"], "/testing/addStuff/testCase/test_addStuff.py": [...
64,189
SUPEngineer/webAuto
refs/heads/master
/testing/test_remote.py
# @Time : 2021/2/26 11:49 # @Author : qiulingfeng # @File : test_remote.py import json from selenium import webdriver from time import sleep class TestRemote(): def setup(self): # 设置option参数,打开调试窗口 chrome_arg = webdriver.ChromeOptions() chrome_arg.debugger_address = '127.0.0.1:9222' ...
{"/testing/test_file.py": ["/testing/base.py"], "/testing/test_js.py": ["/testing/base.py"], "/testing/test_alert.py": ["/testing/base.py"], "/testing/test_frame.py": ["/testing/base.py"], "/testing/addStuff/page/main_page.py": ["/testing/addStuff/page/address_page.py"], "/testing/addStuff/testCase/test_addStuff.py": [...
64,190
SUPEngineer/webAuto
refs/heads/master
/testing/test_alert.py
# @Time : 2021/2/24 20:10 # @Author : qiulingfeng # @File : test_alert.py from time import sleep from selenium.webdriver import ActionChains from selenium.webdriver.common.by import By from testing.base import Base class TestAlert(Base): def test_alert(self): self.driver.get("https://www.runoob.com/try...
{"/testing/test_file.py": ["/testing/base.py"], "/testing/test_js.py": ["/testing/base.py"], "/testing/test_alert.py": ["/testing/base.py"], "/testing/test_frame.py": ["/testing/base.py"], "/testing/addStuff/page/main_page.py": ["/testing/addStuff/page/address_page.py"], "/testing/addStuff/testCase/test_addStuff.py": [...
64,191
SUPEngineer/webAuto
refs/heads/master
/testing/test_frame.py
# @Time : 2021/2/24 15:02 # @Author : qiulingfeng # @File : test_frame.py from selenium.webdriver.common.by import By from testing.base import Base class TestFrame(Base): def test_frame(self): self.driver.get("https://www.runoob.com/try/try.php?filename=jqueryui-api-droppable") self.driver.switc...
{"/testing/test_file.py": ["/testing/base.py"], "/testing/test_js.py": ["/testing/base.py"], "/testing/test_alert.py": ["/testing/base.py"], "/testing/test_frame.py": ["/testing/base.py"], "/testing/addStuff/page/main_page.py": ["/testing/addStuff/page/address_page.py"], "/testing/addStuff/testCase/test_addStuff.py": [...
64,192
SUPEngineer/webAuto
refs/heads/master
/testing/addStuff/page/address_page.py
from selenium.webdriver.support.wait import WebDriverWait class AddressPage: def __init__(self, driver): self.driver = driver def add_stuff(self): """ 在通讯录中添加成员 :return: """ def waite_username(x): self.driver.find_elements_by_xpath("//*[@class='qui_...
{"/testing/test_file.py": ["/testing/base.py"], "/testing/test_js.py": ["/testing/base.py"], "/testing/test_alert.py": ["/testing/base.py"], "/testing/test_frame.py": ["/testing/base.py"], "/testing/addStuff/page/main_page.py": ["/testing/addStuff/page/address_page.py"], "/testing/addStuff/testCase/test_addStuff.py": [...
64,193
SUPEngineer/webAuto
refs/heads/master
/testing/addStuff/page/main_page.py
from selenium import webdriver from testing.addStuff.page.address_page import AddressPage class MainPage: def __init__(self): # 设置option参数,打开调试窗口 chrome_arg = webdriver.ChromeOptions() chrome_arg.debugger_address = '127.0.0.1:9222' # 复用浏览器 self.driver = webdriver.Chrome(op...
{"/testing/test_file.py": ["/testing/base.py"], "/testing/test_js.py": ["/testing/base.py"], "/testing/test_alert.py": ["/testing/base.py"], "/testing/test_frame.py": ["/testing/base.py"], "/testing/addStuff/page/main_page.py": ["/testing/addStuff/page/address_page.py"], "/testing/addStuff/testCase/test_addStuff.py": [...
64,194
SUPEngineer/webAuto
refs/heads/master
/testing/base.py
# @Time : 2021/2/23 15:24 # @Author : qiulingfeng # @File : base.py ''' 执行时使用命令执行 browser=firefox pytest test_frame.py 即可方便得指定浏览器运行测试用例 ''' import os from selenium import webdriver class Base(): def setup(self): browser = os.getenv('browser') if browser == 'firefox': self.driver = we...
{"/testing/test_file.py": ["/testing/base.py"], "/testing/test_js.py": ["/testing/base.py"], "/testing/test_alert.py": ["/testing/base.py"], "/testing/test_frame.py": ["/testing/base.py"], "/testing/addStuff/page/main_page.py": ["/testing/addStuff/page/address_page.py"], "/testing/addStuff/testCase/test_addStuff.py": [...
64,195
SUPEngineer/webAuto
refs/heads/master
/testing/addStuff/testCase/test_addStuff.py
from testing.addStuff.page.main_page import MainPage class TestAddStuff: def test_add_stuff(self): """ 测试添加成员 1.复用浏览器 2.进入通讯录 3.添加成员 :return: """ mainPage =MainPage() mainPage.goto_address_page().add_stuff()
{"/testing/test_file.py": ["/testing/base.py"], "/testing/test_js.py": ["/testing/base.py"], "/testing/test_alert.py": ["/testing/base.py"], "/testing/test_frame.py": ["/testing/base.py"], "/testing/addStuff/page/main_page.py": ["/testing/addStuff/page/address_page.py"], "/testing/addStuff/testCase/test_addStuff.py": [...
64,196
SUPEngineer/webAuto
refs/heads/master
/testing/test_windows.py
# @Time : 2021/2/23 15:24 # @Author : qiulingfeng # @File : test_windows.py from selenium.webdriver.common.by import By from testing.base import Base from time import sleep class TestWindows(Base): def test_windows(self): self.driver.get("http://www.baidu.com/") self.driver.find_element(By.LINK_...
{"/testing/test_file.py": ["/testing/base.py"], "/testing/test_js.py": ["/testing/base.py"], "/testing/test_alert.py": ["/testing/base.py"], "/testing/test_frame.py": ["/testing/base.py"], "/testing/addStuff/page/main_page.py": ["/testing/addStuff/page/address_page.py"], "/testing/addStuff/testCase/test_addStuff.py": [...
64,197
SUPEngineer/webAuto
refs/heads/master
/testing/test_pageObject.py
from selenium import webdriver from time import sleep from selenium.webdriver.support.wait import WebDriverWait class TestPageObjec(): def setup(self): chrome_arg = webdriver.ChromeOptions() chrome_arg.debugger_address = '127.0.0.1:9222' self.driver = webdriver.Chrome(options=chrome_arg) ...
{"/testing/test_file.py": ["/testing/base.py"], "/testing/test_js.py": ["/testing/base.py"], "/testing/test_alert.py": ["/testing/base.py"], "/testing/test_frame.py": ["/testing/base.py"], "/testing/addStuff/page/main_page.py": ["/testing/addStuff/page/address_page.py"], "/testing/addStuff/testCase/test_addStuff.py": [...
64,200
bernardogbecker/UnfollowInstagramBot
refs/heads/master
/FollowWeb.py
from selenium import webdriver from time import sleep from FollowList import Follow import pyautogui class InstaBot: def __init__(self, username, pw, usernameToFollow): self.driver = webdriver.Edge(path) self.username = username self.pw = pw self.usernameToFollow = usernam...
{"/FollowWeb.py": ["/FollowList.py"], "/UnfollowWeb.py": ["/UnfollowList.py"]}
64,201
bernardogbecker/UnfollowInstagramBot
refs/heads/master
/UnfollowWeb.py
from selenium import webdriver from time import sleep from UnfollowList import unFollow import pyautogui class InstaBot: def __init__(self, username, pw): self.driver = webdriver.Edge(path) self.username = username self.pw = pw self.driver.get("https://instagram.com") ...
{"/FollowWeb.py": ["/FollowList.py"], "/UnfollowWeb.py": ["/UnfollowList.py"]}
64,202
bernardogbecker/UnfollowInstagramBot
refs/heads/master
/UnfollowList.py
import time from InstagramAPI import InstagramAPI import random def getTotalFollowers(api, user_id): """ Returns the list of followers of the user. """ followers = [] next_max_id = True while next_max_id: # first iteration hack if next_max_id is True: ...
{"/FollowWeb.py": ["/FollowList.py"], "/UnfollowWeb.py": ["/UnfollowList.py"]}
64,203
bernardogbecker/UnfollowInstagramBot
refs/heads/master
/FollowList.py
from time import sleep import pyautogui def Follow(driver): sleep(2) driver.find_element_by_xpath('/html/body/div[1]/section/main/div/header/section/ul/li[3]')\ .click() sleep(2) scroll_box = driver.find_element_by_xpath("/html/body/div[4]/div/div/div[2]/ul/div") ...
{"/FollowWeb.py": ["/FollowList.py"], "/UnfollowWeb.py": ["/UnfollowList.py"]}
64,229
emiliotebar/Kwranking
refs/heads/master
/inicio.py
""" KWRANKING Emilio Tébar Reto semanal --> https://j2logo.com/#retoSemanal """ import requests from bs4 import BeautifulSoup import db from models import Keyword from datos import exportar_resultados_a_xlsx keywords = [] dominio = "https://cookpad.com/" dominio_google_search ...
{"/inicio.py": ["/db.py", "/models.py", "/datos.py"], "/models.py": ["/db.py"]}
64,230
emiliotebar/Kwranking
refs/heads/master
/models.py
import db from sqlalchemy.exc import IntegrityError from sqlalchemy import Column, Integer, String class Keyword(db.Base): __tablename__ = 'keyword' id = Column(Integer, primary_key = True) keywords = Column(String, nullable = False, unique = True) posicion = Column(Integer, nullable = True) def ...
{"/inicio.py": ["/db.py", "/models.py", "/datos.py"], "/models.py": ["/db.py"]}
64,231
emiliotebar/Kwranking
refs/heads/master
/db.py
from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from sqlalchemy.ext.declarative import declarative_base # Crea el engine indicando la cadena de conexión a la base de datos engine = create_engine('sqlite:///keywords.sqlite') # Crea el objeto para manejar la sesión de base de datos Session ...
{"/inicio.py": ["/db.py", "/models.py", "/datos.py"], "/models.py": ["/db.py"]}
64,232
emiliotebar/Kwranking
refs/heads/master
/datos.py
import openpyxl def exportar_resultados_a_xlsx(keywords): wb = openpyxl.Workbook() hoja = wb.active hoja.title = "Valores" # Fila del encabezado con los títulos hoja.append(('Keywords','Posición')) for key in keywords: hoja.append(key) wb.save('keywords.xlsx')
{"/inicio.py": ["/db.py", "/models.py", "/datos.py"], "/models.py": ["/db.py"]}
64,234
annyeremchenko/my_project
refs/heads/master
/job/migrations/0002_auto_20170415_0916.py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-04-15 03:16 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('job', '0001_initial'), ] operations = [ migrations.AlterField( mo...
{"/user/admin.py": ["/user/models.py"], "/job/views.py": ["/job/models.py"], "/job/models.py": ["/user/models.py"], "/user/views.py": ["/job/models.py", "/user/models.py"]}
64,235
annyeremchenko/my_project
refs/heads/master
/user/admin.py
from django.contrib import admin from .models import UserInfo, Location admin.site.register(UserInfo) admin.site.register(Location) # Register your models here.
{"/user/admin.py": ["/user/models.py"], "/job/views.py": ["/job/models.py"], "/job/models.py": ["/user/models.py"], "/user/views.py": ["/job/models.py", "/user/models.py"]}
64,236
annyeremchenko/my_project
refs/heads/master
/user/urls.py
from django.conf.urls import url, include from django.contrib import admin import user from . import views urlpatterns = [ url(r'login/', views.Login.as_view(), name='log in'), # вхід url(r'logout/', views.Logout.as_view(), name='sign out'), # вихід url(r'signup/', views.Signup.as_view(), name='...
{"/user/admin.py": ["/user/models.py"], "/job/views.py": ["/job/models.py"], "/job/models.py": ["/user/models.py"], "/user/views.py": ["/job/models.py", "/user/models.py"]}
64,237
annyeremchenko/my_project
refs/heads/master
/job/views.py
from django.shortcuts import render, redirect from django.views.generic import View from django.utils.decorators import method_decorator from django.contrib.auth.decorators import login_required from .models import Job, Location from django.shortcuts import HttpResponse from django.db.models import Q import math, json ...
{"/user/admin.py": ["/user/models.py"], "/job/views.py": ["/job/models.py"], "/job/models.py": ["/user/models.py"], "/user/views.py": ["/job/models.py", "/user/models.py"]}
64,238
annyeremchenko/my_project
refs/heads/master
/job/models.py
from django.db import models from django.contrib.auth.models import User from user.models import Location class Job(models.Model): allTypes = ((0, "Прогулянка із псом"), (1, "Похід за продуктами"), (2, "Миття вікон"), (3, "Ремонт меблів"), (4, "Супро...
{"/user/admin.py": ["/user/models.py"], "/job/views.py": ["/job/models.py"], "/job/models.py": ["/user/models.py"], "/user/views.py": ["/job/models.py", "/user/models.py"]}
64,239
annyeremchenko/my_project
refs/heads/master
/user/views.py
from django.shortcuts import render from django.views.generic import View from django.utils.decorators import method_decorator from django.contrib.auth.decorators import login_required from django.contrib.auth import login, authenticate from django.contrib.auth.models import User from django.contrib.auth import logout ...
{"/user/admin.py": ["/user/models.py"], "/job/views.py": ["/job/models.py"], "/job/models.py": ["/user/models.py"], "/user/views.py": ["/job/models.py", "/user/models.py"]}
64,240
annyeremchenko/my_project
refs/heads/master
/user/models.py
from django.db import models from django.contrib.auth.models import User # Create your models here. class Location(models.Model): x = models.FloatField() y = models.FloatField() info = models.TextField(null=True) def dict(self): return {"x": self.x, "y": self.y} class UserIn...
{"/user/admin.py": ["/user/models.py"], "/job/views.py": ["/job/models.py"], "/job/models.py": ["/user/models.py"], "/user/views.py": ["/job/models.py", "/user/models.py"]}
64,241
annyeremchenko/my_project
refs/heads/master
/job/migrations/0001_initial.py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-04-09 05:07 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('user', '...
{"/user/admin.py": ["/user/models.py"], "/job/views.py": ["/job/models.py"], "/job/models.py": ["/user/models.py"], "/user/views.py": ["/job/models.py", "/user/models.py"]}
64,242
annyeremchenko/my_project
refs/heads/master
/job/urls.py
from django.conf.urls import url, include from django.contrib import admin import user from . import views urlpatterns = [ url(r'map/', views.Map.as_view(), name='job location'), # дорога до роботи url(r'all/', views.JobAll.as_view(), name='all jobs'), # усі роботи url(r'$', views.JobS...
{"/user/admin.py": ["/user/models.py"], "/job/views.py": ["/job/models.py"], "/job/models.py": ["/user/models.py"], "/user/views.py": ["/job/models.py", "/user/models.py"]}
64,243
mozilla/marketplace-api-mock
refs/heads/master
/factory/langpack.py
# -*- coding: utf-8 -*- import random import uuid from factory.utils import text LANGUAGES = { 'fr': u'Français', 'it': u'Italiano', 'de': u'Deutsch', 'en-US': u'English (US)', 'pt-BR': u'Português (do Brasil)', 'pl': u'Polski' } def langpack(url_root): uuid_ = uuid.uuid4() language...
{"/factory/langpack.py": ["/factory/utils.py"], "/factory/feed.py": ["/factory/__init__.py", "/factory/constants.py", "/factory/utils.py"], "/factory/__init__.py": ["/factory/constants.py", "/factory/utils.py"], "/main.py": ["/app.py", "/factory/__init__.py", "/factory/constants.py"], "/factory/comm.py": ["/factory/__i...
64,244
mozilla/marketplace-api-mock
refs/heads/master
/factory/feed.py
""" Generate Feed-related objects. """ import random from mpconstants.collection_colors import COLLECTION_COLORS from factory import app, carrier, preview, region from factory.constants import AUTHORS, SAMPLE_BG from factory.utils import rand_bool, rand_text, text counter = 0 COLLECTION_COLORS = COLLECTION_COLORS....
{"/factory/langpack.py": ["/factory/utils.py"], "/factory/feed.py": ["/factory/__init__.py", "/factory/constants.py", "/factory/utils.py"], "/factory/__init__.py": ["/factory/constants.py", "/factory/utils.py"], "/main.py": ["/app.py", "/factory/__init__.py", "/factory/constants.py"], "/factory/comm.py": ["/factory/__i...
64,245
mozilla/marketplace-api-mock
refs/heads/master
/factory/__init__.py
import random import string from cgi import escape from uuid import uuid4 from factory.constants import (AUTHORS, CARRIERS, MESSAGES, PROMO_IMAGES, SPECIAL_APP_SLUGS, REGIONS, SAMPLE_BG, SCREENSHOT_MAP, SPECIAL_SLUGS_TO_IDS, U...
{"/factory/langpack.py": ["/factory/utils.py"], "/factory/feed.py": ["/factory/__init__.py", "/factory/constants.py", "/factory/utils.py"], "/factory/__init__.py": ["/factory/constants.py", "/factory/utils.py"], "/main.py": ["/app.py", "/factory/__init__.py", "/factory/constants.py"], "/factory/comm.py": ["/factory/__i...
64,246
mozilla/marketplace-api-mock
refs/heads/master
/factory/utils.py
from datetime import datetime, timedelta import random XSS = False xss_text = '"\'><script>alert("poop");</script><\'"' def text(default): return xss_text if XSS else default dummy_text = ('foo bar zip zap cvan fizz buzz something martian salad ' 'potato quality space ship rotfl alfalfa platyp...
{"/factory/langpack.py": ["/factory/utils.py"], "/factory/feed.py": ["/factory/__init__.py", "/factory/constants.py", "/factory/utils.py"], "/factory/__init__.py": ["/factory/constants.py", "/factory/utils.py"], "/main.py": ["/app.py", "/factory/__init__.py", "/factory/constants.py"], "/factory/comm.py": ["/factory/__i...
64,247
mozilla/marketplace-api-mock
refs/heads/master
/main.py
""" This is a simple application which mocks out the APIs used by Fireplace. Pointing your instance of Fireplace using settings.js will allow you to quickly get up and running without needing your own installation of Zamboni or without needing to use -dev (offline mode). """ import json import random from flask import...
{"/factory/langpack.py": ["/factory/utils.py"], "/factory/feed.py": ["/factory/__init__.py", "/factory/constants.py", "/factory/utils.py"], "/factory/__init__.py": ["/factory/constants.py", "/factory/utils.py"], "/main.py": ["/app.py", "/factory/__init__.py", "/factory/constants.py"], "/factory/comm.py": ["/factory/__i...
64,248
mozilla/marketplace-api-mock
refs/heads/master
/factory/comm.py
from factory import app counter = 0 def thread(**kw): global counter counter += 1 return { 'app': app(), 'id': counter, 'notes_count': 5, 'version': { 'deleted': False, 'id': 45, 'version': '1.6' } } def note(**kw): r...
{"/factory/langpack.py": ["/factory/utils.py"], "/factory/feed.py": ["/factory/__init__.py", "/factory/constants.py", "/factory/utils.py"], "/factory/__init__.py": ["/factory/constants.py", "/factory/utils.py"], "/main.py": ["/app.py", "/factory/__init__.py", "/factory/constants.py"], "/factory/comm.py": ["/factory/__i...
64,249
mozilla/marketplace-api-mock
refs/heads/master
/factory/constants.py
from utils import text AUTHORS = [ text('Lord Basta of the Iron Isles'), text('Chris Van Halen'), text('Ngo Way'), text('Huck Charmston'), text('Davor van der Beergulpen') ] CARRIERS = { 'america_movil': 'America Movil', 'kddi': 'Kddi', 'o2': 'O2', 'telefonica': 'Telefonica', ...
{"/factory/langpack.py": ["/factory/utils.py"], "/factory/feed.py": ["/factory/__init__.py", "/factory/constants.py", "/factory/utils.py"], "/factory/__init__.py": ["/factory/constants.py", "/factory/utils.py"], "/main.py": ["/app.py", "/factory/__init__.py", "/factory/constants.py"], "/factory/comm.py": ["/factory/__i...
64,250
mozilla/marketplace-api-mock
refs/heads/master
/app.py
import json import os import sys import time import traceback import urllib import urlparse from functools import wraps from optparse import OptionParser from flask import Flask, make_response, request, Response import factory LATENCY = 0 PER_PAGE = 25 Response.default_mimetype = 'application/json' app = Flask('Fl...
{"/factory/langpack.py": ["/factory/utils.py"], "/factory/feed.py": ["/factory/__init__.py", "/factory/constants.py", "/factory/utils.py"], "/factory/__init__.py": ["/factory/constants.py", "/factory/utils.py"], "/main.py": ["/app.py", "/factory/__init__.py", "/factory/constants.py"], "/factory/comm.py": ["/factory/__i...
64,282
shahsarick/clueless
refs/heads/master
/StartServer.py
#!/usr/bin/env python import logging import socket from server.CluelessServer import CluelessServer # Setup logger logging.basicConfig(level=logging.DEBUG, format='%(asctime)s.%(msecs)d | %(levelname)s | %(module)s.%(funcName)s : %(message)s', datefmt="%H:%M:%S") # Create the server host = socket.gethostbyname(sock...
{"/StartServer.py": ["/server/CluelessServer.py"], "/server/CluelessServer.py": ["/common/MessageProtocol.py", "/server/ServerMessage.py"], "/server/ServerModel.py": ["/common/Gameboard.py", "/common/Player.py", "/common/PlayerEnum.py", "/common/RoomEnum.py", "/common/TurnEnum.py", "/common/WeaponEnum.py"], "/client/Cl...
64,283
shahsarick/clueless
refs/heads/master
/server/CluelessServer.py
#!/usr/bin/env python import logging import Queue import select import socket import threading from common.MessageProtocol import MessageProtocol from server.ServerMessage import ServerMessage class CluelessServer: __connection_backlog = 10 __select_timeout = 0.5 __read_size = 4096 def __init__(sel...
{"/StartServer.py": ["/server/CluelessServer.py"], "/server/CluelessServer.py": ["/common/MessageProtocol.py", "/server/ServerMessage.py"], "/server/ServerModel.py": ["/common/Gameboard.py", "/common/Player.py", "/common/PlayerEnum.py", "/common/RoomEnum.py", "/common/TurnEnum.py", "/common/WeaponEnum.py"], "/client/Cl...
64,284
shahsarick/clueless
refs/heads/master
/pseudoGUI.py
__author__ = 'Stephen Bailey' #!/usr/bin/env python import logging import socket import sys from client.ClientMessage import ClientMessage from common.Message import Message from common.MessageEnum import MessageEnum from observer.observer import Observer, observerObject from time import sleep #TODO: Move all relevan...
{"/StartServer.py": ["/server/CluelessServer.py"], "/server/CluelessServer.py": ["/common/MessageProtocol.py", "/server/ServerMessage.py"], "/server/ServerModel.py": ["/common/Gameboard.py", "/common/Player.py", "/common/PlayerEnum.py", "/common/RoomEnum.py", "/common/TurnEnum.py", "/common/WeaponEnum.py"], "/client/Cl...
64,285
shahsarick/clueless
refs/heads/master
/common/MessageProtocol.py
#!/usr/bin/env python import cPickle as pickle import struct import time class MessageProtocol: timeout = 0.5 @staticmethod def send_msg(sock, message): data_string = pickle.dumps(message) length = len(data_string) sock.sendall(struct.pack('!I', length)) sock....
{"/StartServer.py": ["/server/CluelessServer.py"], "/server/CluelessServer.py": ["/common/MessageProtocol.py", "/server/ServerMessage.py"], "/server/ServerModel.py": ["/common/Gameboard.py", "/common/Player.py", "/common/PlayerEnum.py", "/common/RoomEnum.py", "/common/TurnEnum.py", "/common/WeaponEnum.py"], "/client/Cl...
64,286
shahsarick/clueless
refs/heads/master
/common/PlayerEnum.py
#!/usr/bin/env python class PlayerEnum(object): MISS_SCARLET = 1 COLONEL_MUSTARD = 2 PROFESSOR_PLUM = 3 MR_GREEN = 4 MRS_WHITE = 5 MRS_PEACOCK = 6 ENVELOPE = 7 @staticmethod def to_string(player_enum): if player_enum == PlayerEnum.MISS_SCARLET: return 'Miss ...
{"/StartServer.py": ["/server/CluelessServer.py"], "/server/CluelessServer.py": ["/common/MessageProtocol.py", "/server/ServerMessage.py"], "/server/ServerModel.py": ["/common/Gameboard.py", "/common/Player.py", "/common/PlayerEnum.py", "/common/RoomEnum.py", "/common/TurnEnum.py", "/common/WeaponEnum.py"], "/client/Cl...
64,287
shahsarick/clueless
refs/heads/master
/server/ServerModel.py
#!/usr/bin/env python import logging from random import randint from common.Gameboard import Gameboard from common.Player import Player from common.PlayerEnum import PlayerEnum from common.RoomEnum import RoomEnum from common.TurnEnum import TurnEnum from common.WeaponEnum import WeaponEnum class ServerModel: ...
{"/StartServer.py": ["/server/CluelessServer.py"], "/server/CluelessServer.py": ["/common/MessageProtocol.py", "/server/ServerMessage.py"], "/server/ServerModel.py": ["/common/Gameboard.py", "/common/Player.py", "/common/PlayerEnum.py", "/common/RoomEnum.py", "/common/TurnEnum.py", "/common/WeaponEnum.py"], "/client/Cl...
64,288
shahsarick/clueless
refs/heads/master
/common/WeaponEnum.py
#!/usr/bin/env python class WeaponEnum(object): CANDLESTICK = 1 ROPE = 2 LEAD_PIPE = 3 REVOLVER = 4 WRENCH = 5 KNIFE = 6
{"/StartServer.py": ["/server/CluelessServer.py"], "/server/CluelessServer.py": ["/common/MessageProtocol.py", "/server/ServerMessage.py"], "/server/ServerModel.py": ["/common/Gameboard.py", "/common/Player.py", "/common/PlayerEnum.py", "/common/RoomEnum.py", "/common/TurnEnum.py", "/common/WeaponEnum.py"], "/client/Cl...
64,289
shahsarick/clueless
refs/heads/master
/observer/observer.py
# basic observer classes class Observable: def __init__(self): self.__observers = [] def register_observer(self, observer): self.__observers.append(observer) def notify_observers(self, *args, **kwargs): for observer in self.__observers: observer.notify(self, *args, **kw...
{"/StartServer.py": ["/server/CluelessServer.py"], "/server/CluelessServer.py": ["/common/MessageProtocol.py", "/server/ServerMessage.py"], "/server/ServerModel.py": ["/common/Gameboard.py", "/common/Player.py", "/common/PlayerEnum.py", "/common/RoomEnum.py", "/common/TurnEnum.py", "/common/WeaponEnum.py"], "/client/Cl...
64,290
shahsarick/clueless
refs/heads/master
/common/MessageEnum.py
#!/usr/bin/env python class MessageEnum(object): MOVE = 1 SUGGEST = 2 ACCUSE = 3 LOBBY_ADD = 4 LOBBY_READY = 5 LOBBY_UNREADY = 6 LOBBY_CHANGE_PLAYER = 7 GAME_STATE_CHANGE = 8 TURN_OVER = 9 TURN_BEGIN = 10 ERROR = 11
{"/StartServer.py": ["/server/CluelessServer.py"], "/server/CluelessServer.py": ["/common/MessageProtocol.py", "/server/ServerMessage.py"], "/server/ServerModel.py": ["/common/Gameboard.py", "/common/Player.py", "/common/PlayerEnum.py", "/common/RoomEnum.py", "/common/TurnEnum.py", "/common/WeaponEnum.py"], "/client/Cl...
64,291
shahsarick/clueless
refs/heads/master
/client/ClientModel.py
#!/usr/bin/env python class ClientModel: def __init__(self): pass # Gets the player_enum def get_player_enum(self): return self._player_enum # Sets the player_enum def set_player_enum(self, player_enum): self._player_enum = player_enum
{"/StartServer.py": ["/server/CluelessServer.py"], "/server/CluelessServer.py": ["/common/MessageProtocol.py", "/server/ServerMessage.py"], "/server/ServerModel.py": ["/common/Gameboard.py", "/common/Player.py", "/common/PlayerEnum.py", "/common/RoomEnum.py", "/common/TurnEnum.py", "/common/WeaponEnum.py"], "/client/Cl...
64,292
shahsarick/clueless
refs/heads/master
/common/Room.py
#!/usr/bin/env python class Room: def __init__(self, room_list): self._connected_rooms = room_list # Check to see if a move to the destination room is valid def is_valid_move(self, destination_room): # Check to see if the destination room matches any of the rooms connected to this...
{"/StartServer.py": ["/server/CluelessServer.py"], "/server/CluelessServer.py": ["/common/MessageProtocol.py", "/server/ServerMessage.py"], "/server/ServerModel.py": ["/common/Gameboard.py", "/common/Player.py", "/common/PlayerEnum.py", "/common/RoomEnum.py", "/common/TurnEnum.py", "/common/WeaponEnum.py"], "/client/Cl...
64,293
shahsarick/clueless
refs/heads/master
/common/RoomEnum.py
#!/usr/bin/env python class RoomEnum(object): STUDY = 1 HALL = 2 LOUNGE = 3 DINING_ROOM = 4 KITCHEN = 5 BALLROOM = 6 CONSERVATORY = 7 LIBRARY = 8 BILLIARD_ROOM = 9 HALLWAY_STUDY_HALL = 10 HALLWAY_HALL_LOUNGE = 11 HALLWAY_LOUNGE_DINING_ROOM = 12 HALLWAY_DINING_ROOM_KI...
{"/StartServer.py": ["/server/CluelessServer.py"], "/server/CluelessServer.py": ["/common/MessageProtocol.py", "/server/ServerMessage.py"], "/server/ServerModel.py": ["/common/Gameboard.py", "/common/Player.py", "/common/PlayerEnum.py", "/common/RoomEnum.py", "/common/TurnEnum.py", "/common/WeaponEnum.py"], "/client/Cl...
64,294
shahsarick/clueless
refs/heads/master
/observer/__init__.py
__author__ = 'Stephen Bailey'
{"/StartServer.py": ["/server/CluelessServer.py"], "/server/CluelessServer.py": ["/common/MessageProtocol.py", "/server/ServerMessage.py"], "/server/ServerModel.py": ["/common/Gameboard.py", "/common/Player.py", "/common/PlayerEnum.py", "/common/RoomEnum.py", "/common/TurnEnum.py", "/common/WeaponEnum.py"], "/client/Cl...
64,295
shahsarick/clueless
refs/heads/master
/client/ClientMessage.py
#!/usr/bin/env python import cPickle as pickle import logging import Queue import threading from client.Client import Client from client.ClientModel import ClientModel from common.MessageEnum import MessageEnum from common.PlayerEnum import PlayerEnum from common.RoomEnum import RoomEnum class ClientMessage: ...
{"/StartServer.py": ["/server/CluelessServer.py"], "/server/CluelessServer.py": ["/common/MessageProtocol.py", "/server/ServerMessage.py"], "/server/ServerModel.py": ["/common/Gameboard.py", "/common/Player.py", "/common/PlayerEnum.py", "/common/RoomEnum.py", "/common/TurnEnum.py", "/common/WeaponEnum.py"], "/client/Cl...
64,296
shahsarick/clueless
refs/heads/master
/common/TurnEnum.py
#!/usr/bin/env python class TurnEnum(object): MOVE = 1 SUGGEST = 2 DISPROVE = 3
{"/StartServer.py": ["/server/CluelessServer.py"], "/server/CluelessServer.py": ["/common/MessageProtocol.py", "/server/ServerMessage.py"], "/server/ServerModel.py": ["/common/Gameboard.py", "/common/Player.py", "/common/PlayerEnum.py", "/common/RoomEnum.py", "/common/TurnEnum.py", "/common/WeaponEnum.py"], "/client/Cl...
64,297
shahsarick/clueless
refs/heads/master
/common/Gameboard.py
#!/usr/bin/env python import logging from common.Room import Room from common.RoomEnum import RoomEnum class Gameboard: def __init__(self): self._logger = logging.getLogger('Gameboard') # Setup the rooms def setup_rooms(self): self._logger.debug('Setting up gameboard.') ...
{"/StartServer.py": ["/server/CluelessServer.py"], "/server/CluelessServer.py": ["/common/MessageProtocol.py", "/server/ServerMessage.py"], "/server/ServerModel.py": ["/common/Gameboard.py", "/common/Player.py", "/common/PlayerEnum.py", "/common/RoomEnum.py", "/common/TurnEnum.py", "/common/WeaponEnum.py"], "/client/Cl...
64,298
shahsarick/clueless
refs/heads/master
/server/ServerMessage.py
#!/usr/bin/env python import logging from common.Message import Message from common.MessageEnum import MessageEnum from common.PlayerEnum import PlayerEnum from server.ServerModel import ServerModel class ServerMessage: def __init__(self, output_queue): self._logger = logging.getLogger('ServerMessage')...
{"/StartServer.py": ["/server/CluelessServer.py"], "/server/CluelessServer.py": ["/common/MessageProtocol.py", "/server/ServerMessage.py"], "/server/ServerModel.py": ["/common/Gameboard.py", "/common/Player.py", "/common/PlayerEnum.py", "/common/RoomEnum.py", "/common/TurnEnum.py", "/common/WeaponEnum.py"], "/client/Cl...
64,299
shahsarick/clueless
refs/heads/master
/common/Player.py
#!/usr/bin/env python class Player: def __init__(self, address, player_enum): self._address = address self._player_enum = player_enum self._player_name = '' self._ready_state = False def get_address(self): return self._address def get_player_enum(...
{"/StartServer.py": ["/server/CluelessServer.py"], "/server/CluelessServer.py": ["/common/MessageProtocol.py", "/server/ServerMessage.py"], "/server/ServerModel.py": ["/common/Gameboard.py", "/common/Player.py", "/common/PlayerEnum.py", "/common/RoomEnum.py", "/common/TurnEnum.py", "/common/WeaponEnum.py"], "/client/Cl...
64,300
shahsarick/clueless
refs/heads/master
/common/CardEnum.py
#!/usr/bin/env python class CardEnum(object): STUDY = 1 HALL = 2 LOUNGE = 3 DINING_ROOM = 4 KITCHEN = 5 BALLROOM = 6 CONSERVATORY = 7 LIBRARY = 8 BILLIARD_ROOM = 9 CANDLESTICK = 10 ROPE = 11 LEAD_PIPE = 12 REVOLVER = 13 WRENCH = 14 KNIFE = 15 MISS_SCARLET...
{"/StartServer.py": ["/server/CluelessServer.py"], "/server/CluelessServer.py": ["/common/MessageProtocol.py", "/server/ServerMessage.py"], "/server/ServerModel.py": ["/common/Gameboard.py", "/common/Player.py", "/common/PlayerEnum.py", "/common/RoomEnum.py", "/common/TurnEnum.py", "/common/WeaponEnum.py"], "/client/Cl...
64,301
shahsarick/clueless
refs/heads/master
/client/Client.py
#!/usr/bin/env python import logging import select import socket import sys from observer.observer import observerObject from common.MessageProtocol import MessageProtocol # reference the subject obsObj = observerObject() class Client: __socket_timeout = 2 __select_timeout = 0.5 __read_size = 4096 ...
{"/StartServer.py": ["/server/CluelessServer.py"], "/server/CluelessServer.py": ["/common/MessageProtocol.py", "/server/ServerMessage.py"], "/server/ServerModel.py": ["/common/Gameboard.py", "/common/Player.py", "/common/PlayerEnum.py", "/common/RoomEnum.py", "/common/TurnEnum.py", "/common/WeaponEnum.py"], "/client/Cl...
64,302
shahsarick/clueless
refs/heads/master
/common/Message.py
#!/usr/bin/env python class Message: def __init__(self, message_enum, num_args, arg_list): self._message_enum = message_enum self._num_args = num_args self._arg_list = arg_list def get_message_contents(self): return (self._message_enum, self._num_args, self._arg_list) ...
{"/StartServer.py": ["/server/CluelessServer.py"], "/server/CluelessServer.py": ["/common/MessageProtocol.py", "/server/ServerMessage.py"], "/server/ServerModel.py": ["/common/Gameboard.py", "/common/Player.py", "/common/PlayerEnum.py", "/common/RoomEnum.py", "/common/TurnEnum.py", "/common/WeaponEnum.py"], "/client/Cl...
64,303
assertpy/assertpy
refs/heads/main
/tests/test_readme.py
# Copyright (c) 2015-2019, Activision Publishing, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of ...
{"/tests/test_readme.py": ["/assertpy/__init__.py"], "/tests/test_custom_dict.py": ["/assertpy/__init__.py"], "/tests/test_collection.py": ["/assertpy/__init__.py"], "/tests/test_dict.py": ["/assertpy/__init__.py"], "/tests/test_custom_list.py": ["/assertpy/__init__.py"], "/tests/test_same_as.py": ["/assertpy/__init__....
64,304
assertpy/assertpy
refs/heads/main
/tests/test_custom_dict.py
# Copyright (c) 2015-2019, Activision Publishing, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of ...
{"/tests/test_readme.py": ["/assertpy/__init__.py"], "/tests/test_custom_dict.py": ["/assertpy/__init__.py"], "/tests/test_collection.py": ["/assertpy/__init__.py"], "/tests/test_dict.py": ["/assertpy/__init__.py"], "/tests/test_custom_list.py": ["/assertpy/__init__.py"], "/tests/test_same_as.py": ["/assertpy/__init__....
64,305
assertpy/assertpy
refs/heads/main
/tests/test_collection.py
# Copyright (c) 2015-2019, Activision Publishing, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of ...
{"/tests/test_readme.py": ["/assertpy/__init__.py"], "/tests/test_custom_dict.py": ["/assertpy/__init__.py"], "/tests/test_collection.py": ["/assertpy/__init__.py"], "/tests/test_dict.py": ["/assertpy/__init__.py"], "/tests/test_custom_list.py": ["/assertpy/__init__.py"], "/tests/test_same_as.py": ["/assertpy/__init__....
64,306
assertpy/assertpy
refs/heads/main
/tests/test_dict.py
# Copyright (c) 2015-2019, Activision Publishing, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of ...
{"/tests/test_readme.py": ["/assertpy/__init__.py"], "/tests/test_custom_dict.py": ["/assertpy/__init__.py"], "/tests/test_collection.py": ["/assertpy/__init__.py"], "/tests/test_dict.py": ["/assertpy/__init__.py"], "/tests/test_custom_list.py": ["/assertpy/__init__.py"], "/tests/test_same_as.py": ["/assertpy/__init__....
64,307
assertpy/assertpy
refs/heads/main
/tests/test_custom_list.py
# Copyright (c) 2015-2019, Activision Publishing, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of ...
{"/tests/test_readme.py": ["/assertpy/__init__.py"], "/tests/test_custom_dict.py": ["/assertpy/__init__.py"], "/tests/test_collection.py": ["/assertpy/__init__.py"], "/tests/test_dict.py": ["/assertpy/__init__.py"], "/tests/test_custom_list.py": ["/assertpy/__init__.py"], "/tests/test_same_as.py": ["/assertpy/__init__....
64,308
assertpy/assertpy
refs/heads/main
/assertpy/helpers.py
# Copyright (c) 2015-2019, Activision Publishing, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of ...
{"/tests/test_readme.py": ["/assertpy/__init__.py"], "/tests/test_custom_dict.py": ["/assertpy/__init__.py"], "/tests/test_collection.py": ["/assertpy/__init__.py"], "/tests/test_dict.py": ["/assertpy/__init__.py"], "/tests/test_custom_list.py": ["/assertpy/__init__.py"], "/tests/test_same_as.py": ["/assertpy/__init__....
64,309
assertpy/assertpy
refs/heads/main
/tests/test_same_as.py
# Copyright (c) 2015-2019, Activision Publishing, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of ...
{"/tests/test_readme.py": ["/assertpy/__init__.py"], "/tests/test_custom_dict.py": ["/assertpy/__init__.py"], "/tests/test_collection.py": ["/assertpy/__init__.py"], "/tests/test_dict.py": ["/assertpy/__init__.py"], "/tests/test_custom_list.py": ["/assertpy/__init__.py"], "/tests/test_same_as.py": ["/assertpy/__init__....
64,310
assertpy/assertpy
refs/heads/main
/docs/fixup.py
import os import re # conf PROJECT = 'assertpy' SRC_DIR = os.path.join(os.getcwd(), 'build') SRC = os.path.join(SRC_DIR, 'assertpy.html') OUT_DIR = os.path.join(os.getcwd(), 'out') OUT = os.path.join(OUT_DIR, 'docs.html') def load(filename): with open(filename, 'r') as fp: return fp.read() def save(ta...
{"/tests/test_readme.py": ["/assertpy/__init__.py"], "/tests/test_custom_dict.py": ["/assertpy/__init__.py"], "/tests/test_collection.py": ["/assertpy/__init__.py"], "/tests/test_dict.py": ["/assertpy/__init__.py"], "/tests/test_custom_list.py": ["/assertpy/__init__.py"], "/tests/test_same_as.py": ["/assertpy/__init__....
64,311
assertpy/assertpy
refs/heads/main
/setup.py
from distutils.core import setup import assertpy desc = """ assertpy ======== Simple assertions library for unit testing in Python with a nice fluent API. Supports both Python 2 and 3. Usage ----- Just import the ``assert_that`` function, and away you go...:: from assertpy import assert_that def test_some...
{"/tests/test_readme.py": ["/assertpy/__init__.py"], "/tests/test_custom_dict.py": ["/assertpy/__init__.py"], "/tests/test_collection.py": ["/assertpy/__init__.py"], "/tests/test_dict.py": ["/assertpy/__init__.py"], "/tests/test_custom_list.py": ["/assertpy/__init__.py"], "/tests/test_same_as.py": ["/assertpy/__init__....
64,312
assertpy/assertpy
refs/heads/main
/assertpy/contains.py
# Copyright (c) 2015-2019, Activision Publishing, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of ...
{"/tests/test_readme.py": ["/assertpy/__init__.py"], "/tests/test_custom_dict.py": ["/assertpy/__init__.py"], "/tests/test_collection.py": ["/assertpy/__init__.py"], "/tests/test_dict.py": ["/assertpy/__init__.py"], "/tests/test_custom_list.py": ["/assertpy/__init__.py"], "/tests/test_same_as.py": ["/assertpy/__init__....
64,313
assertpy/assertpy
refs/heads/main
/assertpy/dynamic.py
# Copyright (c) 2015-2019, Activision Publishing, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of ...
{"/tests/test_readme.py": ["/assertpy/__init__.py"], "/tests/test_custom_dict.py": ["/assertpy/__init__.py"], "/tests/test_collection.py": ["/assertpy/__init__.py"], "/tests/test_dict.py": ["/assertpy/__init__.py"], "/tests/test_custom_list.py": ["/assertpy/__init__.py"], "/tests/test_same_as.py": ["/assertpy/__init__....
64,314
assertpy/assertpy
refs/heads/main
/tests/test_numbers.py
# Copyright (c) 2015-2019, Activision Publishing, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of ...
{"/tests/test_readme.py": ["/assertpy/__init__.py"], "/tests/test_custom_dict.py": ["/assertpy/__init__.py"], "/tests/test_collection.py": ["/assertpy/__init__.py"], "/tests/test_dict.py": ["/assertpy/__init__.py"], "/tests/test_custom_list.py": ["/assertpy/__init__.py"], "/tests/test_same_as.py": ["/assertpy/__init__....
64,315
assertpy/assertpy
refs/heads/main
/assertpy/date.py
# Copyright (c) 2015-2019, Activision Publishing, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of ...
{"/tests/test_readme.py": ["/assertpy/__init__.py"], "/tests/test_custom_dict.py": ["/assertpy/__init__.py"], "/tests/test_collection.py": ["/assertpy/__init__.py"], "/tests/test_dict.py": ["/assertpy/__init__.py"], "/tests/test_custom_list.py": ["/assertpy/__init__.py"], "/tests/test_same_as.py": ["/assertpy/__init__....
64,316
assertpy/assertpy
refs/heads/main
/tests/test_dyn.py
# Copyright (c) 2015-2019, Activision Publishing, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of ...
{"/tests/test_readme.py": ["/assertpy/__init__.py"], "/tests/test_custom_dict.py": ["/assertpy/__init__.py"], "/tests/test_collection.py": ["/assertpy/__init__.py"], "/tests/test_dict.py": ["/assertpy/__init__.py"], "/tests/test_custom_list.py": ["/assertpy/__init__.py"], "/tests/test_same_as.py": ["/assertpy/__init__....
64,317
assertpy/assertpy
refs/heads/main
/tests/test_dict_compare.py
# Copyright (c) 2015-2019, Activision Publishing, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of ...
{"/tests/test_readme.py": ["/assertpy/__init__.py"], "/tests/test_custom_dict.py": ["/assertpy/__init__.py"], "/tests/test_collection.py": ["/assertpy/__init__.py"], "/tests/test_dict.py": ["/assertpy/__init__.py"], "/tests/test_custom_list.py": ["/assertpy/__init__.py"], "/tests/test_same_as.py": ["/assertpy/__init__....
64,318
assertpy/assertpy
refs/heads/main
/tests/test_extracting.py
# Copyright (c) 2015-2019, Activision Publishing, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of ...
{"/tests/test_readme.py": ["/assertpy/__init__.py"], "/tests/test_custom_dict.py": ["/assertpy/__init__.py"], "/tests/test_collection.py": ["/assertpy/__init__.py"], "/tests/test_dict.py": ["/assertpy/__init__.py"], "/tests/test_custom_list.py": ["/assertpy/__init__.py"], "/tests/test_same_as.py": ["/assertpy/__init__....
64,319
assertpy/assertpy
refs/heads/main
/assertpy/extracting.py
# Copyright (c) 2015-2019, Activision Publishing, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of ...
{"/tests/test_readme.py": ["/assertpy/__init__.py"], "/tests/test_custom_dict.py": ["/assertpy/__init__.py"], "/tests/test_collection.py": ["/assertpy/__init__.py"], "/tests/test_dict.py": ["/assertpy/__init__.py"], "/tests/test_custom_list.py": ["/assertpy/__init__.py"], "/tests/test_same_as.py": ["/assertpy/__init__....
64,320
assertpy/assertpy
refs/heads/main
/assertpy/file.py
# Copyright (c) 2015-2019, Activision Publishing, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of ...
{"/tests/test_readme.py": ["/assertpy/__init__.py"], "/tests/test_custom_dict.py": ["/assertpy/__init__.py"], "/tests/test_collection.py": ["/assertpy/__init__.py"], "/tests/test_dict.py": ["/assertpy/__init__.py"], "/tests/test_custom_list.py": ["/assertpy/__init__.py"], "/tests/test_same_as.py": ["/assertpy/__init__....
64,321
assertpy/assertpy
refs/heads/main
/tests/test_class.py
# Copyright (c) 2015-2019, Activision Publishing, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of ...
{"/tests/test_readme.py": ["/assertpy/__init__.py"], "/tests/test_custom_dict.py": ["/assertpy/__init__.py"], "/tests/test_collection.py": ["/assertpy/__init__.py"], "/tests/test_dict.py": ["/assertpy/__init__.py"], "/tests/test_custom_list.py": ["/assertpy/__init__.py"], "/tests/test_same_as.py": ["/assertpy/__init__....
64,322
assertpy/assertpy
refs/heads/main
/tests/test_expected_exception.py
# Copyright (c) 2015-2019, Activision Publishing, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of ...
{"/tests/test_readme.py": ["/assertpy/__init__.py"], "/tests/test_custom_dict.py": ["/assertpy/__init__.py"], "/tests/test_collection.py": ["/assertpy/__init__.py"], "/tests/test_dict.py": ["/assertpy/__init__.py"], "/tests/test_custom_list.py": ["/assertpy/__init__.py"], "/tests/test_same_as.py": ["/assertpy/__init__....
64,323
assertpy/assertpy
refs/heads/main
/tests/test_extensions.py
# Copyright (c) 2015-2019, Activision Publishing, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of ...
{"/tests/test_readme.py": ["/assertpy/__init__.py"], "/tests/test_custom_dict.py": ["/assertpy/__init__.py"], "/tests/test_collection.py": ["/assertpy/__init__.py"], "/tests/test_dict.py": ["/assertpy/__init__.py"], "/tests/test_custom_list.py": ["/assertpy/__init__.py"], "/tests/test_same_as.py": ["/assertpy/__init__....
64,324
assertpy/assertpy
refs/heads/main
/assertpy/dict.py
# Copyright (c) 2015-2019, Activision Publishing, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of ...
{"/tests/test_readme.py": ["/assertpy/__init__.py"], "/tests/test_custom_dict.py": ["/assertpy/__init__.py"], "/tests/test_collection.py": ["/assertpy/__init__.py"], "/tests/test_dict.py": ["/assertpy/__init__.py"], "/tests/test_custom_list.py": ["/assertpy/__init__.py"], "/tests/test_same_as.py": ["/assertpy/__init__....
64,325
assertpy/assertpy
refs/heads/main
/assertpy/string.py
# Copyright (c) 2015-2019, Activision Publishing, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of ...
{"/tests/test_readme.py": ["/assertpy/__init__.py"], "/tests/test_custom_dict.py": ["/assertpy/__init__.py"], "/tests/test_collection.py": ["/assertpy/__init__.py"], "/tests/test_dict.py": ["/assertpy/__init__.py"], "/tests/test_custom_list.py": ["/assertpy/__init__.py"], "/tests/test_same_as.py": ["/assertpy/__init__....
64,326
assertpy/assertpy
refs/heads/main
/docs/conf.py
# fixup path import os import sys sys.path.insert(0, os.path.abspath('..')) print('SYS.PATH=', sys.path) # proj info project = 'assertpy' copyright = '2015-2019 Activision Publishing, Inc.' author = 'Activision' # extensions (for Google-style doc strings) extensions = [ 'sphinx.ext.autodoc', 'sphinxcontrib.na...
{"/tests/test_readme.py": ["/assertpy/__init__.py"], "/tests/test_custom_dict.py": ["/assertpy/__init__.py"], "/tests/test_collection.py": ["/assertpy/__init__.py"], "/tests/test_dict.py": ["/assertpy/__init__.py"], "/tests/test_custom_list.py": ["/assertpy/__init__.py"], "/tests/test_same_as.py": ["/assertpy/__init__....
64,327
assertpy/assertpy
refs/heads/main
/tests/test_namedtuple.py
# Copyright (c) 2015-2021, Activision Publishing, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of ...
{"/tests/test_readme.py": ["/assertpy/__init__.py"], "/tests/test_custom_dict.py": ["/assertpy/__init__.py"], "/tests/test_collection.py": ["/assertpy/__init__.py"], "/tests/test_dict.py": ["/assertpy/__init__.py"], "/tests/test_custom_list.py": ["/assertpy/__init__.py"], "/tests/test_same_as.py": ["/assertpy/__init__....
64,328
assertpy/assertpy
refs/heads/main
/tests/test_snapshots.py
# Copyright (c) 2015-2019, Activision Publishing, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of ...
{"/tests/test_readme.py": ["/assertpy/__init__.py"], "/tests/test_custom_dict.py": ["/assertpy/__init__.py"], "/tests/test_collection.py": ["/assertpy/__init__.py"], "/tests/test_dict.py": ["/assertpy/__init__.py"], "/tests/test_custom_list.py": ["/assertpy/__init__.py"], "/tests/test_same_as.py": ["/assertpy/__init__....
64,329
assertpy/assertpy
refs/heads/main
/assertpy/exception.py
# Copyright (c) 2015-2019, Activision Publishing, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of ...
{"/tests/test_readme.py": ["/assertpy/__init__.py"], "/tests/test_custom_dict.py": ["/assertpy/__init__.py"], "/tests/test_collection.py": ["/assertpy/__init__.py"], "/tests/test_dict.py": ["/assertpy/__init__.py"], "/tests/test_custom_list.py": ["/assertpy/__init__.py"], "/tests/test_same_as.py": ["/assertpy/__init__....
64,330
assertpy/assertpy
refs/heads/main
/tests/test_core.py
# Copyright (c) 2015-2019, Activision Publishing, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of ...
{"/tests/test_readme.py": ["/assertpy/__init__.py"], "/tests/test_custom_dict.py": ["/assertpy/__init__.py"], "/tests/test_collection.py": ["/assertpy/__init__.py"], "/tests/test_dict.py": ["/assertpy/__init__.py"], "/tests/test_custom_list.py": ["/assertpy/__init__.py"], "/tests/test_same_as.py": ["/assertpy/__init__....
64,331
assertpy/assertpy
refs/heads/main
/tests/test_string.py
# Copyright (c) 2015-2019, Activision Publishing, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of ...
{"/tests/test_readme.py": ["/assertpy/__init__.py"], "/tests/test_custom_dict.py": ["/assertpy/__init__.py"], "/tests/test_collection.py": ["/assertpy/__init__.py"], "/tests/test_dict.py": ["/assertpy/__init__.py"], "/tests/test_custom_list.py": ["/assertpy/__init__.py"], "/tests/test_same_as.py": ["/assertpy/__init__....
64,332
assertpy/assertpy
refs/heads/main
/tests/test_soft_fail.py
# Copyright (c) 2015-2019, Activision Publishing, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of ...
{"/tests/test_readme.py": ["/assertpy/__init__.py"], "/tests/test_custom_dict.py": ["/assertpy/__init__.py"], "/tests/test_collection.py": ["/assertpy/__init__.py"], "/tests/test_dict.py": ["/assertpy/__init__.py"], "/tests/test_custom_list.py": ["/assertpy/__init__.py"], "/tests/test_same_as.py": ["/assertpy/__init__....
64,333
assertpy/assertpy
refs/heads/main
/assertpy/snapshot.py
# Copyright (c) 2015-2019, Activision Publishing, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of ...
{"/tests/test_readme.py": ["/assertpy/__init__.py"], "/tests/test_custom_dict.py": ["/assertpy/__init__.py"], "/tests/test_collection.py": ["/assertpy/__init__.py"], "/tests/test_dict.py": ["/assertpy/__init__.py"], "/tests/test_custom_list.py": ["/assertpy/__init__.py"], "/tests/test_same_as.py": ["/assertpy/__init__....
64,334
assertpy/assertpy
refs/heads/main
/assertpy/assertpy.py
# Copyright (c) 2015-2019, Activision Publishing, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of ...
{"/tests/test_readme.py": ["/assertpy/__init__.py"], "/tests/test_custom_dict.py": ["/assertpy/__init__.py"], "/tests/test_collection.py": ["/assertpy/__init__.py"], "/tests/test_dict.py": ["/assertpy/__init__.py"], "/tests/test_custom_list.py": ["/assertpy/__init__.py"], "/tests/test_same_as.py": ["/assertpy/__init__....
64,335
assertpy/assertpy
refs/heads/main
/tests/test_file.py
# Copyright (c) 2015-2019, Activision Publishing, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of ...
{"/tests/test_readme.py": ["/assertpy/__init__.py"], "/tests/test_custom_dict.py": ["/assertpy/__init__.py"], "/tests/test_collection.py": ["/assertpy/__init__.py"], "/tests/test_dict.py": ["/assertpy/__init__.py"], "/tests/test_custom_list.py": ["/assertpy/__init__.py"], "/tests/test_same_as.py": ["/assertpy/__init__....
64,336
assertpy/assertpy
refs/heads/main
/assertpy/base.py
# Copyright (c) 2015-2019, Activision Publishing, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of ...
{"/tests/test_readme.py": ["/assertpy/__init__.py"], "/tests/test_custom_dict.py": ["/assertpy/__init__.py"], "/tests/test_collection.py": ["/assertpy/__init__.py"], "/tests/test_dict.py": ["/assertpy/__init__.py"], "/tests/test_custom_list.py": ["/assertpy/__init__.py"], "/tests/test_same_as.py": ["/assertpy/__init__....
64,337
assertpy/assertpy
refs/heads/main
/tests/test_equals.py
# Copyright (c) 2015-2019, Activision Publishing, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of ...
{"/tests/test_readme.py": ["/assertpy/__init__.py"], "/tests/test_custom_dict.py": ["/assertpy/__init__.py"], "/tests/test_collection.py": ["/assertpy/__init__.py"], "/tests/test_dict.py": ["/assertpy/__init__.py"], "/tests/test_custom_list.py": ["/assertpy/__init__.py"], "/tests/test_same_as.py": ["/assertpy/__init__....
64,338
assertpy/assertpy
refs/heads/main
/tests/test_soft.py
# Copyright (c) 2015-2019, Activision Publishing, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of ...
{"/tests/test_readme.py": ["/assertpy/__init__.py"], "/tests/test_custom_dict.py": ["/assertpy/__init__.py"], "/tests/test_collection.py": ["/assertpy/__init__.py"], "/tests/test_dict.py": ["/assertpy/__init__.py"], "/tests/test_custom_list.py": ["/assertpy/__init__.py"], "/tests/test_same_as.py": ["/assertpy/__init__....
64,339
assertpy/assertpy
refs/heads/main
/tests/test_datetime.py
# Copyright (c) 2015-2019, Activision Publishing, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of ...
{"/tests/test_readme.py": ["/assertpy/__init__.py"], "/tests/test_custom_dict.py": ["/assertpy/__init__.py"], "/tests/test_collection.py": ["/assertpy/__init__.py"], "/tests/test_dict.py": ["/assertpy/__init__.py"], "/tests/test_custom_list.py": ["/assertpy/__init__.py"], "/tests/test_same_as.py": ["/assertpy/__init__....
64,340
assertpy/assertpy
refs/heads/main
/assertpy/numeric.py
# Copyright (c) 2015-2019, Activision Publishing, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of ...
{"/tests/test_readme.py": ["/assertpy/__init__.py"], "/tests/test_custom_dict.py": ["/assertpy/__init__.py"], "/tests/test_collection.py": ["/assertpy/__init__.py"], "/tests/test_dict.py": ["/assertpy/__init__.py"], "/tests/test_custom_list.py": ["/assertpy/__init__.py"], "/tests/test_same_as.py": ["/assertpy/__init__....
64,341
assertpy/assertpy
refs/heads/main
/assertpy/collection.py
# Copyright (c) 2015-2019, Activision Publishing, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of ...
{"/tests/test_readme.py": ["/assertpy/__init__.py"], "/tests/test_custom_dict.py": ["/assertpy/__init__.py"], "/tests/test_collection.py": ["/assertpy/__init__.py"], "/tests/test_dict.py": ["/assertpy/__init__.py"], "/tests/test_custom_list.py": ["/assertpy/__init__.py"], "/tests/test_same_as.py": ["/assertpy/__init__....
64,342
assertpy/assertpy
refs/heads/main
/assertpy/__init__.py
from __future__ import absolute_import from .assertpy import assert_that, assert_warn, soft_assertions, fail, soft_fail, add_extension, remove_extension, WarningLoggingAdapter, __version__ from .file import contents_of
{"/tests/test_readme.py": ["/assertpy/__init__.py"], "/tests/test_custom_dict.py": ["/assertpy/__init__.py"], "/tests/test_collection.py": ["/assertpy/__init__.py"], "/tests/test_dict.py": ["/assertpy/__init__.py"], "/tests/test_custom_list.py": ["/assertpy/__init__.py"], "/tests/test_same_as.py": ["/assertpy/__init__....
64,343
assertpy/assertpy
refs/heads/main
/tests/test_warn.py
# Copyright (c) 2015-2019, Activision Publishing, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of ...
{"/tests/test_readme.py": ["/assertpy/__init__.py"], "/tests/test_custom_dict.py": ["/assertpy/__init__.py"], "/tests/test_collection.py": ["/assertpy/__init__.py"], "/tests/test_dict.py": ["/assertpy/__init__.py"], "/tests/test_custom_list.py": ["/assertpy/__init__.py"], "/tests/test_same_as.py": ["/assertpy/__init__....
64,344
assertpy/assertpy
refs/heads/main
/tests/test_list.py
# Copyright (c) 2015-2019, Activision Publishing, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of ...
{"/tests/test_readme.py": ["/assertpy/__init__.py"], "/tests/test_custom_dict.py": ["/assertpy/__init__.py"], "/tests/test_collection.py": ["/assertpy/__init__.py"], "/tests/test_dict.py": ["/assertpy/__init__.py"], "/tests/test_custom_list.py": ["/assertpy/__init__.py"], "/tests/test_same_as.py": ["/assertpy/__init__....
64,345
assertpy/assertpy
refs/heads/main
/tests/test_traceback.py
# Copyright (c) 2015-2019, Activision Publishing, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of ...
{"/tests/test_readme.py": ["/assertpy/__init__.py"], "/tests/test_custom_dict.py": ["/assertpy/__init__.py"], "/tests/test_collection.py": ["/assertpy/__init__.py"], "/tests/test_dict.py": ["/assertpy/__init__.py"], "/tests/test_custom_list.py": ["/assertpy/__init__.py"], "/tests/test_same_as.py": ["/assertpy/__init__....