index
int64
repo_name
string
branch_name
string
path
string
content
string
import_graph
string
52,256
kicon/armstrong.dev
refs/heads/master
/armstrong/dev/tests/utils/base.py
from django.test import TestCase as DjangoTestCase import fudge from django.db import models # Backport override_settings from Django 1.4 try: from django.test.utils import override_settings except ImportError: from .backports import override_settings class ArmstrongTestCase(DjangoTestCase): def setUp(s...
{"/armstrong/dev/tests/utils/__init__.py": ["/armstrong/dev/tests/utils/base.py"], "/armstrong/dev/virtualdjango/test_runner.py": ["/armstrong/dev/virtualdjango/base.py"], "/armstrong/dev/tests/utils/users.py": ["/armstrong/dev/tests/utils/base.py"]}
52,257
kicon/armstrong.dev
refs/heads/master
/armstrong/dev/tasks/__init__.py
from pkgutil import extend_path __path__ = extend_path(__path__, __name__) from contextlib import contextmanager try: import coverage as coverage except ImportError: coverage = False import os from os.path import basename, dirname import sys from functools import wraps import unittest import json from fabr...
{"/armstrong/dev/tests/utils/__init__.py": ["/armstrong/dev/tests/utils/base.py"], "/armstrong/dev/virtualdjango/test_runner.py": ["/armstrong/dev/virtualdjango/base.py"], "/armstrong/dev/tests/utils/users.py": ["/armstrong/dev/tests/utils/base.py"]}
52,258
kicon/armstrong.dev
refs/heads/master
/armstrong/dev/tests/utils/concrete.py
from django.db import connection from django.core.management.color import no_style import random def create_concrete_table(func=None, model=None): style = no_style() seen_models = connection.introspection.installed_models( connection.introspection.table_names()) def actual_create(model): ...
{"/armstrong/dev/tests/utils/__init__.py": ["/armstrong/dev/tests/utils/base.py"], "/armstrong/dev/virtualdjango/test_runner.py": ["/armstrong/dev/virtualdjango/base.py"], "/armstrong/dev/tests/utils/users.py": ["/armstrong/dev/tests/utils/base.py"]}
52,259
kicon/armstrong.dev
refs/heads/master
/armstrong/dev/virtualdjango/base.py
import django import os, sys DEFAULT_SETTINGS = { 'DATABASE_ENGINE': 'sqlite3', 'DATABASES': { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': 'mydatabase' } }, } class VirtualDjango(object): def __init__(self, caller=sys.modules['_...
{"/armstrong/dev/tests/utils/__init__.py": ["/armstrong/dev/tests/utils/base.py"], "/armstrong/dev/virtualdjango/test_runner.py": ["/armstrong/dev/virtualdjango/base.py"], "/armstrong/dev/tests/utils/users.py": ["/armstrong/dev/tests/utils/base.py"]}
52,260
kicon/armstrong.dev
refs/heads/master
/armstrong/dev/virtualdjango/test_runner.py
from armstrong.dev.virtualdjango.base import VirtualDjango class VirtualDjangoTestRunner(VirtualDjango): def run(self, my_settings, *apps_to_test): super(VirtualDjangoTestRunner, self).run(my_settings) self.call_command('test', *apps_to_test) def __call__(self, *args, **kwargs): self.r...
{"/armstrong/dev/tests/utils/__init__.py": ["/armstrong/dev/tests/utils/base.py"], "/armstrong/dev/virtualdjango/test_runner.py": ["/armstrong/dev/virtualdjango/base.py"], "/armstrong/dev/tests/utils/users.py": ["/armstrong/dev/tests/utils/base.py"]}
52,261
kicon/armstrong.dev
refs/heads/master
/armstrong/dev/tests/utils/users.py
from armstrong.dev.tests.utils.base import ArmstrongTestCase from django.contrib.auth.models import User import random def generate_random_user(): r = random.randint(10000, 20000) return User.objects.create(username="random-user-%d" % r, first_name="Some", last_name="Random User %d" % r) def gene...
{"/armstrong/dev/tests/utils/__init__.py": ["/armstrong/dev/tests/utils/base.py"], "/armstrong/dev/virtualdjango/test_runner.py": ["/armstrong/dev/virtualdjango/base.py"], "/armstrong/dev/tests/utils/users.py": ["/armstrong/dev/tests/utils/base.py"]}
52,266
CourtJesterG/mirror-catfacts-python
refs/heads/master
/push/handler.py
# Copyright (C) 2014 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
{"/push/handler.py": ["/util.py"], "/settings/handler.py": ["/errors.py", "/util.py"], "/index/handler.py": ["/util.py"]}
52,267
CourtJesterG/mirror-catfacts-python
refs/heads/master
/errors.py
# Copyright (C) 2014 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
{"/push/handler.py": ["/util.py"], "/settings/handler.py": ["/errors.py", "/util.py"], "/index/handler.py": ["/util.py"]}
52,268
CourtJesterG/mirror-catfacts-python
refs/heads/master
/util.py
# Copyright (C) 2014 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
{"/push/handler.py": ["/util.py"], "/settings/handler.py": ["/errors.py", "/util.py"], "/index/handler.py": ["/util.py"]}
52,269
CourtJesterG/mirror-catfacts-python
refs/heads/master
/oauth/handler.py
# Copyright (C) 2013 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
{"/push/handler.py": ["/util.py"], "/settings/handler.py": ["/errors.py", "/util.py"], "/index/handler.py": ["/util.py"]}
52,270
CourtJesterG/mirror-catfacts-python
refs/heads/master
/settings/handler.py
# Copyright (C) 2014 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
{"/push/handler.py": ["/util.py"], "/settings/handler.py": ["/errors.py", "/util.py"], "/index/handler.py": ["/util.py"]}
52,271
CourtJesterG/mirror-catfacts-python
refs/heads/master
/index/handler.py
# Copyright (C) 2014 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
{"/push/handler.py": ["/util.py"], "/settings/handler.py": ["/errors.py", "/util.py"], "/index/handler.py": ["/util.py"]}
52,275
zackhillman/weather
refs/heads/master
/weather/email_service.py
import smtplib, ssl from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText import time def sendEmail(location, weather, toEmail): """ Sends an email to given toEmail. Body of email includes given location and weather. """ port = 465 smtp_server = "smtp.gmail.com" se...
{"/weather/admin.py": ["/weather/models.py", "/weather/forms.py"], "/weather/management/commands/sendemail.py": ["/weather/models.py", "/weather/weather_service.py", "/weather/email_service.py"], "/weather/migrations/0001_initial.py": ["/weather/models.py"], "/weather/forms.py": ["/weather/models.py"]}
52,276
zackhillman/weather
refs/heads/master
/weather/admin.py
from django.contrib import admin from .models import Location, User from django.contrib import admin from .forms import SubscribeForm # Register your models here. admin.site.register(Location) class UserAdmin(admin.ModelAdmin): form = SubscribeForm admin.site.register(User, UserAdmin)
{"/weather/admin.py": ["/weather/models.py", "/weather/forms.py"], "/weather/management/commands/sendemail.py": ["/weather/models.py", "/weather/weather_service.py", "/weather/email_service.py"], "/weather/migrations/0001_initial.py": ["/weather/models.py"], "/weather/forms.py": ["/weather/models.py"]}
52,277
zackhillman/weather
refs/heads/master
/weather/management/commands/sendemail.py
from django.core.management.base import BaseCommand, CommandError from weather.models import User from weather.weather_service import WeatherData from weather.email_service import sendEmail class Command(BaseCommand): help = 'Sends email to users' def handle(self, *args, **options): wd = WeatherData()...
{"/weather/admin.py": ["/weather/models.py", "/weather/forms.py"], "/weather/management/commands/sendemail.py": ["/weather/models.py", "/weather/weather_service.py", "/weather/email_service.py"], "/weather/migrations/0001_initial.py": ["/weather/models.py"], "/weather/forms.py": ["/weather/models.py"]}
52,278
zackhillman/weather
refs/heads/master
/weather/migrations/0001_initial.py
# Generated by Django 2.2.6 on 2019-10-16 01:28 from django.db import migrations, models import django.db.models.deletion import os,csv from weather.models import Location def top_cities(apps, schema_editor): # We can't import the Person model directly as it may be a newer # version than this migration expect...
{"/weather/admin.py": ["/weather/models.py", "/weather/forms.py"], "/weather/management/commands/sendemail.py": ["/weather/models.py", "/weather/weather_service.py", "/weather/email_service.py"], "/weather/migrations/0001_initial.py": ["/weather/models.py"], "/weather/forms.py": ["/weather/models.py"]}
52,279
zackhillman/weather
refs/heads/master
/weather/forms.py
from django import forms from .models import User from dal import autocomplete class SubscribeForm(forms.ModelForm): class Meta: model = User fields = ['email', 'location'] widgets = { 'location': autocomplete.ModelSelect2(url='select2_fk') #for autocomplete view }
{"/weather/admin.py": ["/weather/models.py", "/weather/forms.py"], "/weather/management/commands/sendemail.py": ["/weather/models.py", "/weather/weather_service.py", "/weather/email_service.py"], "/weather/migrations/0001_initial.py": ["/weather/models.py"], "/weather/forms.py": ["/weather/models.py"]}
52,280
zackhillman/weather
refs/heads/master
/weather/weather_service.py
import requests, json class WeatherData(): def __init__(self): self.info = {} self.key = '4e2cd17eb05943aa8192f7ccabec1a22' def getWeather(self, coord): if coord in self.info: return self.info[coord] else: return self.callAPI(coord) def callAPI...
{"/weather/admin.py": ["/weather/models.py", "/weather/forms.py"], "/weather/management/commands/sendemail.py": ["/weather/models.py", "/weather/weather_service.py", "/weather/email_service.py"], "/weather/migrations/0001_initial.py": ["/weather/models.py"], "/weather/forms.py": ["/weather/models.py"]}
52,281
zackhillman/weather
refs/heads/master
/weather/models.py
from django.db import models class Location(models.Model): name = models.CharField(max_length=100) #city name state = models.CharField(max_length=100) lon = models.DecimalField(max_digits=9, decimal_places=6) lat = models.DecimalField(max_digits=9, decimal_places=6) def __str__(self): ret...
{"/weather/admin.py": ["/weather/models.py", "/weather/forms.py"], "/weather/management/commands/sendemail.py": ["/weather/models.py", "/weather/weather_service.py", "/weather/email_service.py"], "/weather/migrations/0001_initial.py": ["/weather/models.py"], "/weather/forms.py": ["/weather/models.py"]}
52,282
luckytheyukondog/my-first-blog
refs/heads/master
/blog/forms.py
from django import forms from django.forms import TextInput from .models import Post, thick class PostForm(forms.ModelForm): class Meta: model = Post fields = ('title', 'text',) class ThicknessForm(forms.ModelForm): class Meta: model = thick fields = ('angle', 'dhthick...
{"/blog/forms.py": ["/blog/models.py"]}
52,283
luckytheyukondog/my-first-blog
refs/heads/master
/blog/migrations/0002_thick.py
# Generated by Django 2.2.1 on 2019-05-14 03:16 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0001_initial'), ] operations = [ migrations.CreateModel( name='thick', fields=[ ('id', model...
{"/blog/forms.py": ["/blog/models.py"]}
52,284
luckytheyukondog/my-first-blog
refs/heads/master
/blog/truethickness.py
from flask import Flask, request from calculator import calc app = Flask(__name__) app.config["DEBUG"] = True @app.route("/", methods=["GET", "POST"]) def adder_page(): errors = "" if request.method == "POST": a = None d = None try: a = float(request.form["a"]) ex...
{"/blog/forms.py": ["/blog/models.py"]}
52,285
luckytheyukondog/my-first-blog
refs/heads/master
/blog/models.py
from django.conf import settings from django.db import models from django.utils import timezone from bokeh.core.properties import List, String, Dict, Int from bokeh.models import LayoutDOM class Post(models.Model): author = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE) title = models.C...
{"/blog/forms.py": ["/blog/models.py"]}
52,286
luckytheyukondog/my-first-blog
refs/heads/master
/blog/calculator.py
import math def calc(angle,dhthick): angle=math.radians(angle) angle=math.sin(angle) return angle*dhthick
{"/blog/forms.py": ["/blog/models.py"]}
52,289
YAZAH/StrategyIA
refs/heads/dev
/tests/Executors/test_coachExecutor.py
# Under MIT License, see LICENSE.txt """ Module de test pour CoachExecutor, nosetests style """ from nose.tools import assert_equal from ai.InfoManager import InfoManager from ai.Executor.CoachExecutor import CoachExecutor from RULEngine.Game import Ball, Field, Player, Team __author__ = 'RoboCupULaval' class TestCo...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,290
YAZAH/StrategyIA
refs/heads/dev
/ai/STP/Skill/sNull.py
#Under MIT License, see LICENSE.txt from ai.STP.Skill.SkillBase import SkillBase from RULEngine.Util.Pose import Pose import copy __author__ = 'RoboCupULaval' class sNull(SkillBase): """ sNull generate next pose which is its pose """ def __init__(self): SkillBase.__init__(self, self.__class__...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,291
YAZAH/StrategyIA
refs/heads/dev
/ai/STP/Play/pDemoGoalKeeper.py
#Under MIT License, see LICENSE.txt from ai.STP.Play.PlayBase import PlayBase __author__ = 'RoboCupULaval' SEQUENCE_DEMO_GOAL_KEEPER = ['tGoalKeeper', 'tGoalKeeper', 'tGoalKeeper', 'tGoalKeeper', 'tGoalKeeper', 'tGoalKeeper'] class pDemoGoalKeeper(PlayBase): """ Demonstration mo...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,292
YAZAH/StrategyIA
refs/heads/dev
/UltimateStrategy.py
#Under MIT License, see LICENSE.txt """ Module supérieur de l'IA """ from RULEngine.Strategy.Strategy import Strategy from RULEngine.Command import Command from RULEngine.Util.Pose import Pose import RULEngine.Util.geometry as geometry from ai.Executor.CoachExecutor import CoachExecutor from ai.Executor.PlayExecutor ...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,293
YAZAH/StrategyIA
refs/heads/dev
/tests/Executors/test_pathfinderExecutor.py
#Under MIT License, see LICENSE.txt # TODO Faire des tests quand le pathfinder sera implemente from unittest import TestCase from ai.Executor.PathfinderExecutor import * from RULEngine.Game.Field import Field from RULEngine.Game.Ball import Ball from RULEngine.Game.Team import Team from RULEngine.Game.Player import ...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,294
YAZAH/StrategyIA
refs/heads/dev
/tests/STP/Play/test_playBase.py
#Under MIT License, see LICENSE.txt import unittest from ai.STP.Play.PlayBase import PlayBase __author__ = 'RoboCupULaval' class TestPlayBase(unittest.TestCase): def setUp(self): self.play_book = PlayBase() def test_getTactics(self): pass def test_getBook(self): self.assertIsInstance(self.play_bo...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,295
YAZAH/StrategyIA
refs/heads/dev
/ai/STP/Play/pDefense.py
##Under MIT License, see LICENSE.txt from ai.STP.Play.PlayBase import PlayBase __author__ = 'RoboCupULaval' SEQUENCE_DEFENSE = ['tGoalKeeper', 'tGoalKeeper', 'tGoalKeeper', 'tGoalKeeper', 'tGoalKeeper', 'tGoalKeeper'] class pDefense(PlayBase): """ Competition mode: x GoalKeeper beha...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,296
YAZAH/StrategyIA
refs/heads/dev
/tests/STP/Skill/test_sFollowTarget.py
# Under MIT License, see LICENSE.txt from unittest import TestCase from ai.STP.Skill.sFollowTarget import sFollowTarget from RULEngine.Util.Pose import Pose, Position from RULEngine.Util.geometry import get_angle __author__ = 'RoboCupULaval' class TestSkillFollowTarget(TestCase): """ Tests de la classe sGoToTarg...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,297
YAZAH/StrategyIA
refs/heads/dev
/tests/STP/test_sFollowTarget.py
# Under MIT License, see LICENSE.txt """ Module de test pour Action GoToTarget """ from nose.tools import assert_equal from ai.STP.Skill.sFollowTarget import sFollowTarget from RULEngine.Util.geometry import get_angle from RULEngine.Util.Position import Position from RULEngine.Util.Pose import Pose __author__ = 'Robo...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,298
YAZAH/StrategyIA
refs/heads/dev
/tests/STP/Skill/test_sGeneratePath.py
# Under MIT License, see LICENSE.txt from unittest import TestCase from ai.STP.Skill.sGeneratePath import sGeneratePath from RULEngine.Util.Pose import Pose, Position __author__ = 'RoboCupULaval' class TestSkillGeneratePath(TestCase): """ Tests de la classe sGeneratePath """ def setUp(self): self.ski...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,299
YAZAH/StrategyIA
refs/heads/dev
/tests/STP/Tactic/test_tGoalKeeper.py
# Under MIT License, see LICENSE.txt from unittest import TestCase from RULEngine.Game.Field import Field from RULEngine.Game.Ball import Ball from RULEngine.Game.Team import Team from RULEngine.Game.Player import Player from RULEngine.Util.Pose import Pose, Position from ai.STP.Tactic.tGoalKeeper import tGoalKeeper ...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,300
YAZAH/StrategyIA
refs/heads/dev
/ai/Algorithm/RVOPathfinder.py
# Under MIT License, see LICENSE.txt from RULEngine.Util.geometry import Position, get_angle, get_distance import timeit as t import math as m from StrategyIA.UltimateStrat.InfoManager import InfoManager __author__ = 'RoboCupULaval' class RVOPathfinder: """Pathfinder qui esquive les obstacles mobiles. Calcu...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,301
YAZAH/StrategyIA
refs/heads/dev
/ai/Executor/TacticExecutor.py
# Under MIT License, see LICENSE.txt """ Cet Executor se charge d'assigner les Skill aux robots en fonction de leur Tactic. """ from ai.Executor.Executor import Executor __author__ = 'RoboCupULaval' class TacticExecutor(Executor): """ TacticExecutor est une séquence de requêtes qui assigne un Skill à ...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,302
YAZAH/StrategyIA
refs/heads/dev
/ai/STP/Tactic/tGoalKeeper.py
#Under MIT License, see LICENSE.txt from RULEngine.Util.constant import * from ai.STP.Tactic.TacticBase import TacticBase from RULEngine.Util.geometry import * __author__ = 'RoboCupULaval' class tGoalKeeper(TacticBase): """ Basic behaviour for Goal Keeper. """ def __init__(self): TacticBase.__...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,303
YAZAH/StrategyIA
refs/heads/dev
/ai/STP/Skill/sKickLow.py
#Under MIT License, see LICENSE.txt from ai.STP.Skill.SkillBase import SkillBase __author__ = 'jama' class sKickLow(SkillBase): """ sKickLow generate kick if ball is front of it with low speed """ def __init__(self): SkillBase.__init__(self, self.__class__.__name__) def act(s...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,304
YAZAH/StrategyIA
refs/heads/dev
/ai/STP/Tactic/tStop.py
#Under MIT License, see LICENSE.txt from ai.STP.Tactic.TacticBase import TacticBase __author__ = 'RoboCupULaval' class tStop(TacticBase): def __init__(self): TacticBase.__init__(self, self.__class__.__name__) def apply(self, info_manager, id_player): bot_position = info_manager.get_player_po...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,305
YAZAH/StrategyIA
refs/heads/dev
/ai/STP/Play/PlayBase.py
# Under MIT License, see LICENSE.txt """ Module contenant la classe abstraite PlayBase """ from abc import abstractmethod __author__ = 'RoboCupULaval' class PlayBase: """ Un Play contients: + Une séquence de Tactic pour chaque robot. + Le PlayBook -> un dictionnaire {PlayName: Play object} """...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,306
YAZAH/StrategyIA
refs/heads/dev
/ai/STP/Skill/sKickMedium.py
#Under MIT License, see LICENSE.txt from ai.STP.Skill.SkillBase import SkillBase __author__ = 'jama' class sKickMedium(SkillBase): """ sKickMedium generate kick if ball is front of it with medium speed """ def __init__(self): SkillBase.__init__(self, self.__class__.__name__) ...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,307
YAZAH/StrategyIA
refs/heads/dev
/ai/STP/Skill/sGeneratePath.py
#Under MIT License, see LICENSE.txt from ai.STP.Skill.SkillBase import SkillBase from RULEngine.Util.Pose import Pose, Position __author__ = 'RoboCupULaval' class sGeneratePath(SkillBase): """ sGeneratePath generate a predefined path """ def __init__(self): SkillBase.__init__(self, self.__cla...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,308
YAZAH/StrategyIA
refs/heads/dev
/ai/STP/Skill/sFollowTarget.py
# Under MIT License, see LICENSE.txt """ Action: fait suivre le robot une cible """ from ai.STP.Skill.SkillBase import SkillBase from RULEngine.Util.Pose import Pose from RULEngine.Util.geometry import get_angle __author__ = 'RoboCupULaval' class sFollowTarget(SkillBase): """ sFollowTarget génère une Pose selon ...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,309
YAZAH/StrategyIA
refs/heads/dev
/ai/Executor/PathfinderExecutor.py
#Under MIT License, see LICENSE.txt # TODO: Implementer l'algorithme de pathfinding et rendre générique pour cette fonction from ai.Executor.Executor import Executor from ai.InfoManager import InfoManager import random import math __author__ = 'agingrasc' class PathfinderExecutor: """ PathfinderExecutor est u...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,310
YAZAH/StrategyIA
refs/heads/dev
/ai/STP/Tactic/tFollowBall.py
#Under MIT License, see LICENSE.txt from ai.STP.Tactic.TacticBase import TacticBase from RULEngine.Util.geometry import * __author__ = 'RoboCupULaval' class tFollowBall(TacticBase): def __init__(self): TacticBase.__init__(self, self.__class__.__name__) def apply(self, info_manager, id_player): ...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,311
YAZAH/StrategyIA
refs/heads/dev
/tests/STP/Tactic/test_tPath.py
# Under MIT License, see LICENSE.txt from unittest import TestCase from RULEngine.Game.Field import Field from RULEngine.Game.Ball import Ball from RULEngine.Game.Team import Team from RULEngine.Game.Player import Player from RULEngine.Util.Pose import Pose, Position from ai.STP.Tactic.tPath import tPath from ai.Info...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,312
YAZAH/StrategyIA
refs/heads/dev
/tests/STP/Skill/test_sKickMedium.py
# Under MIT License, see LICENSE.txt from unittest import TestCase from ai.STP.Skill.sKickMedium import sKickMedium from RULEngine.Util.Pose import Pose, Position __author__ = 'RoboCupULaval' class TestSkillKickMedium(TestCase): """ Tests de la classe sKickMedium """ def setUp(self): self.skill = sKi...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,313
YAZAH/StrategyIA
refs/heads/dev
/tests/STP/Play/test_pHalt.py
# Under MIT License, see LICENSE.txt """ Module test pHalt """ import unittest from ai.STP.Play.pHalt import pHalt, SEQUENCE_HALT class testPPathAxis(unittest.TestCase): """ Class test pHalt """ def setUp(self): self.pHalt = pHalt() def test_getTactics_with_no_args(self): self.assertEqual(...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,314
YAZAH/StrategyIA
refs/heads/dev
/ai/Executor/Executor.py
#Under MIT License, see LICENSE.txt from abc import abstractmethod from ai.STP.Skill.SkillBase import SkillBase from ai.STP.Tactic.TacticBase import TacticBase from ai.STP.Play.PlayBase import PlayBase __author__ = 'RoboCupULaval' class Executor: def __init__(self, info_manager): self.info_manager = info...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,315
YAZAH/StrategyIA
refs/heads/dev
/ai/STP/Skill/sWait.py
#Under MIT License, see LICENSE.txt from ai.STP.Skill.SkillBase import SkillBase __author__ = 'RoboCupULaval' class sWait(SkillBase): """ sWait is a no-change action """ def __init__(self): SkillBase.__init__(self, self.__class__.__name__) def act(self, pose_player, pose_target, pose_goa...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,316
YAZAH/StrategyIA
refs/heads/dev
/ai/STP/Skill/SkillBase.py
#Under MIT License, see LICENSE.txt from abc import abstractmethod __author__ = 'RoboCupULaval' class SkillBase: """ Skill contain : + Analyze current situation on the field and generate next specific robot position thanks to its target and goal. + Skill book - Regroup all skill action in dictionary ...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,317
YAZAH/StrategyIA
refs/heads/dev
/ai/STP/Play/__init__.py
#Under MIT License, see LICENSE.txt __author__ = 'RoboCupULaval' import ai.STP.Play.pDemoGoalKeeper import ai.STP.Play.pDemoFollowBall import ai.STP.Play.pHalt import ai.STP.Play.pPath import ai.STP.Play.pQueueLeuLeu import ai.STP.Play.pTestBench
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,318
YAZAH/StrategyIA
refs/heads/dev
/ai/STP/Tactic/tPath.py
#Under MIT License, see LICENSE.txt from ai.STP.Tactic.TacticBase import TacticBase from RULEngine.Util.geometry import * from RULEngine.Util.Pose import Pose, Position __author__ = 'RoboCupULaval' DEAD_ZONE = 300 class tPath(TacticBase): def __init__(self): TacticBase.__init__(self, self.__class__.__nam...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,319
YAZAH/StrategyIA
refs/heads/dev
/tests/Executors/test_tacticExecutor.py
# Under MIT License, see LICENSE.txt """ Module de test pour TacticExecutor """ from unittest import TestCase from RULEngine.Game.Field import Field from RULEngine.Game.Ball import Ball from RULEngine.Game.Team import Team from RULEngine.Game.Player import Player from RULEngine.Util.Pose import Position from ai.STP....
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,320
YAZAH/StrategyIA
refs/heads/dev
/ai/STP/Tactic/tTestBench.py
# Under MIT License, see LICENSE.txt from RULEngine.Util.Position import Position from ai.STP.Tactic.TacticBase import TacticBase from ai.Util.geometry import distance __author__ = 'RoboCupULaval' class tTestBench(TacticBase): def __init__(self): TacticBase.__init__(self, self.__class__.__name__) de...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,321
YAZAH/StrategyIA
refs/heads/dev
/ai/STP/Tactic/tFollowPrevFriend.py
# Under MIT License, see LICENSE.txt """ Tactic pour suivre le précédent robot """ from ai.STP.Tactic.TacticBase import TacticBase from RULEngine.Util.geometry import * __author__ = 'RoboCupULaval' class tFollowPrevFriend(TacticBase): def __init__(self): TacticBase.__init__(self, self.__class__.__name__)...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,322
YAZAH/StrategyIA
refs/heads/dev
/ai/STP/Play/pTestBench.py
#Under MIT License, see LICENSE.txt from ai.STP.Play.PlayBase import PlayBase __author__ = 'RoboCupULaval' SEQUENCE_TEST_BENCH = ['tTestBench', 'tStop', 'tStop', 'tStop', 'tStop', 'tStop'] class pTestBench(PlayBase): """ pTestBench is a test bench play for testing some tactics """ def __init__(self):...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,323
YAZAH/StrategyIA
refs/heads/dev
/ai/Executor/PlayExecutor.py
# Under MIT License, see LICENSE.txt """ Executor qui se charge de mettre en place les Tactic d'un Play. """ from ai.Executor.Executor import Executor __author__ = 'RoboCupULaval' class PlayExecutor(Executor): """ PlayExecutor est une série de requêtes qui sélectionnes les Tactic des joueurs. """ ...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,324
YAZAH/StrategyIA
refs/heads/dev
/ai/Executor/CoachExecutor.py
# Under MIT License, see LICENSE.txt """ Cet Executor détermine selon les informations du GameState le prochain Play. """ from ai.Executor.Executor import Executor __author__ = 'RoboCupULaval' class CoachExecutor(Executor): """ CoachExecutor est une série de requêtes pour choisir un Play. 1 - Quel est le n...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,325
YAZAH/StrategyIA
refs/heads/dev
/tests/STP/Tactic/test_tFollowPrevFriend.py
# Under MIT License, see LICENSE.txt from unittest import TestCase from RULEngine.Game.Field import Field from RULEngine.Game.Ball import Ball from RULEngine.Game.Team import Team from RULEngine.Game.Player import Player from RULEngine.Util.Pose import Pose, Position from ai.STP.Tactic.tFollowPrevFriend import tFollo...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,326
YAZAH/StrategyIA
refs/heads/dev
/tests/STP/Skill/test_sGoToTarget.py
# Under MIT License, see LICENSE.txt from unittest import TestCase from ai.STP.Skill.sGoToTarget import sGoToTarget from RULEngine.Util.Pose import Pose, Position __author__ = 'RoboCupULaval' class TestSkillGoToTarget(TestCase): """ Tests de la classe sGoToTarget """ def setUp(self): self.skill = sGo...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,327
YAZAH/StrategyIA
refs/heads/dev
/tests/STP/Skill/test_sGoBehindTargetGoal_GK.py
# Under MIT License, see LICENSE.txt from unittest import TestCase from ai.STP.Skill.sGoBehindTargetGoal_GK import sGoBehindTargetGoal_GK from RULEngine.Util.Pose import Pose, Position from RULEngine.Util.geometry import get_angle, get_distance from RULEngine.Util.area import stayInsideCircle __author__ = 'RoboCupULav...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,328
YAZAH/StrategyIA
refs/heads/dev
/ai/STP/Skill/sKickHigh.py
#Under MIT License, see LICENSE.txt from ai.STP.Skill.SkillBase import SkillBase __author__ = 'RoboCupULaval' class sKickHigh(SkillBase): """ sKick generate kick if ball is front of it with maximum speed """ def __init__(self): SkillBase.__init__(self, self.__class__.__name__) def act(se...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,329
YAZAH/StrategyIA
refs/heads/dev
/ai/STP/Play/pDemoFollowBall.py
#Under MIT License, see LICENSE.txt from ai.STP.Play.PlayBase import PlayBase __author__ = 'RoboCupULaval' SEQUENCE_DEMO_FOLLOW_BALL = ['tFollowBall', 'tFollowBall', 'tFollowBall', 'tFollowBall', 'tFollowBall', 'tFollowBall'] class pDemoFollowBall(PlayBase): """ Demonstration mod...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,330
YAZAH/StrategyIA
refs/heads/dev
/tests/STP/Skill/test_sStop.py
# Under MIT License, see LICENSE.txt from unittest import TestCase from ai.STP.Skill.sStop import sStop from RULEngine.Util.Pose import Pose, Position __author__ = 'RoboCupULaval' class TestSkillStop(TestCase): """ Tests de la classe sWait """ def setUp(self): self.skill = sStop() self.target...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,331
YAZAH/StrategyIA
refs/heads/dev
/tests/STP/Play/test_pPath.py
#Under MIT License, see LICENSE.txt import unittest from ai.STP.Play.pPath import * class testPPathAxis(unittest.TestCase): def setUp(self): self.pPath = pPath() def test_getTactics_with_no_args(self): self.assertEqual(SEQUENCE_PATH, self.pPath.getTactics()) def test_getTactics_with_index(self): ...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,332
YAZAH/StrategyIA
refs/heads/dev
/ai/STP/Skill/sGoBehindTargetGoal_GK.py
#Under MIT License, see LICENSE.txt import math as m from ai.STP.Skill.SkillBase import SkillBase from RULEngine.Util.Pose import Pose, Position from RULEngine.Util.area import * __author__ = 'RoboCupULaval' class sGoBehindTargetGoal_GK(SkillBase): """ Skill which set position between ball and yellow goal ins...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,333
YAZAH/StrategyIA
refs/heads/dev
/ai/STP/Skill/sPath.py
#Under MIT License, see LICENSE.txt from ai.STP.Skill.SkillBase import SkillBase from RULEngine.Util.Pose import Pose, Position from RULEngine.Util.geometry import * import math as m LEN_VECTOR = 850 DST_SAFE = 650 AGL_FRONT = 0.90 __author__ = 'RoboCupULaval' class sPath(SkillBase): def __init__(self): ...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,334
YAZAH/StrategyIA
refs/heads/dev
/tests/STP/Play/test_pDemoFollwBall.py
#Under MIT License, see LICENSE.txt import unittest from ai.STP.Play.pDemoFollowBall import * class testPPathAxis(unittest.TestCase): def setUp(self): self.pDemoFollowBall = pDemoFollowBall() def test_getTactics_with_no_args(self): self.assertEqual(SEQUENCE_DEMO_FOLLOW_BALL, self.pDemoFollowBall.getTacti...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,335
YAZAH/StrategyIA
refs/heads/dev
/tests/STP/Tactic/test_tFollowBall.py
# Under MIT License, see LICENSE.txt from unittest import TestCase from RULEngine.Game.Field import Field from RULEngine.Game.Ball import Ball from RULEngine.Game.Team import Team from RULEngine.Game.Player import Player from RULEngine.Util.Pose import Pose, Position from ai.STP.Tactic.tFollowBall import tFollowBall ...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,336
YAZAH/StrategyIA
refs/heads/dev
/ai/STP/Tactic/tKickerTest.py
# Under MIT License, see LICENSE.txt from ai.STP.Tactic.TacticBase import TacticBase from ai.Util.geometry import distance from RULEngine.Util.Position import Position __author__ = 'RoboCupULaval' class tKickerTest(TacticBase): def __init__(self): TacticBase.__init__(self, self.__class__.__name__) d...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,337
YAZAH/StrategyIA
refs/heads/dev
/tests/STP/Skill/test_sWait.py
# Under MIT License, see LICENSE.txt from unittest import TestCase from ai.STP.Skill.sWait import sWait __author__ = 'RoboCupULaval' class TestSkillWait(TestCase): """ Tests de la classe sWait """ def setUp(self): self.skill = sWait() def test_construction(self): self.assertNotEqual(self...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,338
YAZAH/StrategyIA
refs/heads/dev
/ai/STP/Play/pQueueLeuLeu.py
#Under MIT License, see LICENSE.txt from ai.STP.Play.PlayBase import PlayBase __author__ = 'RoboCupULaval' SEQUENCE_QUEUELEULEU = ['tFollowBall', 'tFollowPrevFriend', 'tFollowPrevFriend', 'tFollowPrevFriend', 'tFollowPrevFriend', 'tFollowPrevFriend'] class pQueueLeuLeu(PlayBase): """ ...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,339
YAZAH/StrategyIA
refs/heads/dev
/ai/STP/Skill/__init__.py
#Under MIT License, see LICENSE.txt __author__ = 'RoboCupULaval' import ai.STP.Skill.sKickHigh import ai.STP.Skill.sKickLow import ai.STP.Skill.sGoToTarget import ai.STP.Skill.sGoBehindTargetGoal_GK import ai.STP.Skill.sNull import ai.STP.Skill.sPath import ai.STP.Skill.sFollowTarget import ai.STP.Skill.sKickHigh impo...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,340
YAZAH/StrategyIA
refs/heads/dev
/ai/STP/Skill/sStop.py
#Under MIT License, see LICENSE.txt from ai.STP.Skill.SkillBase import SkillBase from RULEngine.Util.Pose import Pose, Position __author__ = 'RoboCupULaval' class sStop(SkillBase): """ sStop immobilize bot with current position """ def __init__(self): SkillBase.__init__(self, self.__class__._...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,341
YAZAH/StrategyIA
refs/heads/dev
/ai/Executor/SkillExecutor.py
#Under MIT License, see LICENSE.txt # TODO: Execeptions personnalisees pour les edges cases (ex: current_skill == None) from ai.Executor.Executor import Executor __author__ = 'RoboCupULaval' class SkillExecutor(Executor): """ SkillExecutor est une sequence de requetes qui choisie la prochaine pose pour ...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,342
YAZAH/StrategyIA
refs/heads/dev
/tests/STP/Play/test_pQueueLeuLeu.py
#Under MIT License, see LICENSE.txt import unittest from ai.STP.Play.pQueueLeuLeu import * class TestPQueueLeuLeu(unittest.TestCase): def setUp(self): self.pTestQueueLeuLeu = pQueueLeuLeu() def test_getTactics_with_no_args(self): self.assertEqual(SEQUENCE_QUEUELEULEU, self.pTestQueueLeuLeu.getTactics()) ...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,343
YAZAH/StrategyIA
refs/heads/dev
/ai/STP/Play/pPath.py
#Under MIT License, see LICENSE.txt from ai.STP.Play.PlayBase import PlayBase __author__ = 'RoboCupULaval' SEQUENCE_PATH = ['tNull', 'tNull', 'tNull', 'tNull', 'tPath', 'tNull'] class pPath(PlayBase): """ Default mode: + All bots stop their current action. """ def __init__(self)...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,344
YAZAH/StrategyIA
refs/heads/dev
/ai/STP/Skill/sGoToTarget.py
#Under MIT License, see LICENSE.txt from ai.STP.Skill.SkillBase import SkillBase from RULEngine.Util.Pose import Pose __author__ = 'RoboCupULaval' class sGoToTarget(SkillBase): """ sGoToTarget generate next pose which is target pose """ def __init__(self): SkillBase.__init__(self, self.__clas...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,345
YAZAH/StrategyIA
refs/heads/dev
/main.py
# Under MIT License, see LICENSE.txt """ Point d'entrée de l'intelligence artificielle. """ from RULEngine.Framework import Framework from UltimateStrategy import UltimateStrategy __author__ = 'RoboCupULaval' if __name__ == '__main__': Framework().start_game(UltimateStrategy)
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,346
YAZAH/StrategyIA
refs/heads/dev
/tests/STP/Skill/test_sNull.py
# Under MIT License, see LICENSE.txt from unittest import TestCase from ai.STP.Skill.sNull import sNull from RULEngine.Util.Pose import Pose, Position __author__ = 'RoboCupULaval' class TestSkillNull(TestCase): """ Tests de la classe sNull """ def setUp(self): self.skill = sNull() self.target...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,347
YAZAH/StrategyIA
refs/heads/dev
/tests/Executors/test_playExecutor.py
# Under MIT License, see LICENSE.txt """ Module pour tester PlayExecutor """ from unittest import TestCase from RULEngine.Game.Field import Field from RULEngine.Game.Ball import Ball from RULEngine.Game.Team import Team from RULEngine.Game.Player import Player from RULEngine.Util.Pose import Pose, Position from ai.ST...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,348
YAZAH/StrategyIA
refs/heads/dev
/tests/STP/Play/test_pDemoGoalKeeper.py
#Under MIT License, see LICENSE.txt import unittest from ai.STP.Play.pDemoGoalKeeper import * from ai.STP.Play.pDemoGoalKeeper import pDemoGoalKeeper class testPPathAxis(unittest.TestCase): def setUp(self): self.pDemoGoalKeeper = pDemoGoalKeeper() def test_getTactics_with_no_args(self): self.assertEqual(...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,349
YAZAH/StrategyIA
refs/heads/dev
/tests/STP/Play/test_pTestBench.py
# Under MIT License, see LICENSE.txt """ Module de test de pTestBench """ from nose.tools import assert_equal, assert_raises from ai.STP.Play.pTestBench import pTestBench, SEQUENCE_TEST_BENCH class TestTestBench: """ Class test pTestBench """ @classmethod def setup(cls): cls.pTestBench = pTestBench...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,350
YAZAH/StrategyIA
refs/heads/dev
/ai/STP/Play/pHalt.py
# Under MIT License, see LICENSE.txt """ Module contenant la stratégie pHalt. """ from ai.STP.Play.PlayBase import PlayBase __author__ = 'RoboCupULaval' SEQUENCE_HALT = ['tNull', 'tNull', 'tNull', 'tNull', 'tNull', 'tNull'] class pHalt(PlayBase): """ Cette stratégie applique la Tactic tHalt à t...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,351
YAZAH/StrategyIA
refs/heads/dev
/ai/STP/Tactic/__init__.py
#Under MIT License, see LICENSE.txt __author__ = 'RoboCupULaval' import ai.STP.Tactic.tFollowBall import ai.STP.Tactic.tFollowPrevFriend import ai.STP.Tactic.tGoalKeeper import ai.STP.Tactic.tNull import ai.STP.Tactic.tPath import ai.STP.Tactic.tKickerTest import ai.STP.Tactic.tStop import ai.STP.Tactic.tTestBench imp...
{"/tests/Executors/test_coachExecutor.py": ["/ai/Executor/CoachExecutor.py"], "/ai/STP/Skill/sNull.py": ["/ai/STP/Skill/SkillBase.py"], "/ai/STP/Play/pDemoGoalKeeper.py": ["/ai/STP/Play/PlayBase.py"], "/UltimateStrategy.py": ["/ai/Executor/CoachExecutor.py", "/ai/Executor/PlayExecutor.py", "/ai/Executor/TacticExecutor....
52,372
reptileinx/backup_aws_resources
refs/heads/master
/test_copy_manual_failsafe_snapshot_standalone.py
import sure from boto3 import client from botocore.exceptions import ClientError from mock import MagicMock from moto import mock_rds2, mock_sns import os os.environ['FAILSAFE_ACCOUNT_ID'] = '23423525334242' import rdscopysnapshots as copy_service def test_get_snapshot_date_is_now_when_snapshot_is_not_available(): ...
{"/test_copy_manual_failsafe_snapshot_standalone.py": ["/rdscopysnapshots.py"], "/test_save_manual_failsafe_snapshot_standalone.py": ["/rdssavesnapshot.py"]}
52,373
reptileinx/backup_aws_resources
refs/heads/master
/test_save_manual_failsafe_snapshot_standalone.py
import datetime import sure from boto3 import client from mock import MagicMock from moto import mock_rds2 import rdssavesnapshot as save_service @mock_rds2 def test_delete_snapshot_before_copying(): rds = client('rds', region_name='ap-southeast-2') save_service.logger = MagicMock() rds.create_db_instanc...
{"/test_copy_manual_failsafe_snapshot_standalone.py": ["/rdscopysnapshots.py"], "/test_save_manual_failsafe_snapshot_standalone.py": ["/rdssavesnapshot.py"]}
52,374
reptileinx/backup_aws_resources
refs/heads/master
/rdscopysnapshots.py
from __future__ import print_function import json import logging import os import re import time from datetime import datetime, timedelta, timezone from boto3 import client from botocore.exceptions import ClientError """ This Lambda function, when deployed using the AWS SAM template 'rds_copy_snap_template.yaml', wi...
{"/test_copy_manual_failsafe_snapshot_standalone.py": ["/rdscopysnapshots.py"], "/test_save_manual_failsafe_snapshot_standalone.py": ["/rdssavesnapshot.py"]}
52,375
reptileinx/backup_aws_resources
refs/heads/master
/test_rdscopysnapshots.py
from datetime import tzinfo, timedelta, datetime import pytest import sure from boto3 import client import rdscopysnapshots as automated_snapshot_processor REGION = 'ap-southeast-2' INSTANCES = ["devarch-db"] # Handle timezones correctly ZERO = timedelta(0) class UTC(tzinfo): def utcoffset(self, dt): ...
{"/test_copy_manual_failsafe_snapshot_standalone.py": ["/rdscopysnapshots.py"], "/test_save_manual_failsafe_snapshot_standalone.py": ["/rdssavesnapshot.py"]}
52,376
reptileinx/backup_aws_resources
refs/heads/master
/rdssavesnapshot.py
""" A Lambda saves the most recently shared failsafe RDS manual snapshot to the Failsafe account. The RDS Instance should be tagged with 'Failsafe=true' to get its snapshots backed up. The Lambda will be extended to send a success message to a slack channel in future. Use the AWS SAM Templates (rds_...
{"/test_copy_manual_failsafe_snapshot_standalone.py": ["/rdscopysnapshots.py"], "/test_save_manual_failsafe_snapshot_standalone.py": ["/rdssavesnapshot.py"]}
52,388
anevolina/GoogleCalendarBot
refs/heads/master
/tg_bot/add_event_bot.py
"""Main module to start telegram bot - it connects all functions to telegram API""" import os from dotenv import load_dotenv from os.path import join, dirname from telegram.ext import Updater, CommandHandler, MessageHandler, Filters import tg_bot.GC_TelegramBot as GC_TelegramBot # Load .env & token for the bot do...
{"/tg_bot/add_event_bot.py": ["/tg_bot/GC_TelegramBot.py"], "/core/calendar_core.py": ["/core/logger.py"], "/core/main_api.py": ["/core/calendar_core.py", "/core/exceptions.py", "/core/logger.py"], "/tg_bot/GC_TelegramBot.py": ["/tg_bot/bot_answers.py", "/core/main_api.py", "/core/exceptions.py"]}
52,389
anevolina/GoogleCalendarBot
refs/heads/master
/core/calendar_core.py
"""Core module to communicate with Google Calendar API""" import datetime import pickle import os from pymongo import MongoClient from google_auth_oauthlib.flow import Flow from googleapiclient.discovery import build from googleapiclient.errors import HttpError from core.logger import GCLogger MongoDB = 'mongodb://...
{"/tg_bot/add_event_bot.py": ["/tg_bot/GC_TelegramBot.py"], "/core/calendar_core.py": ["/core/logger.py"], "/core/main_api.py": ["/core/calendar_core.py", "/core/exceptions.py", "/core/logger.py"], "/tg_bot/GC_TelegramBot.py": ["/tg_bot/bot_answers.py", "/core/main_api.py", "/core/exceptions.py"]}
52,390
anevolina/GoogleCalendarBot
refs/heads/master
/core/logger.py
"""Settings for project logger""" import logging class GCLogger(): def __init__(self): """Define logging parameters: level, file, format for messages""" self.logger = logging.getLogger('GCAddEvent') self.logger.setLevel(logging.INFO) fh = logging.FileHandler('GCAddEvent.log') ...
{"/tg_bot/add_event_bot.py": ["/tg_bot/GC_TelegramBot.py"], "/core/calendar_core.py": ["/core/logger.py"], "/core/main_api.py": ["/core/calendar_core.py", "/core/exceptions.py", "/core/logger.py"], "/tg_bot/GC_TelegramBot.py": ["/tg_bot/bot_answers.py", "/core/main_api.py", "/core/exceptions.py"]}
52,391
anevolina/GoogleCalendarBot
refs/heads/master
/core/exceptions.py
class GCFlaskException(Exception): """ Base exception """ pass class GCUnauthorisedUserError(GCFlaskException): """ Error raised when we don't have credentials for current user (function get_user_settings returns None) to authorise they in Google Calendar service """ pass
{"/tg_bot/add_event_bot.py": ["/tg_bot/GC_TelegramBot.py"], "/core/calendar_core.py": ["/core/logger.py"], "/core/main_api.py": ["/core/calendar_core.py", "/core/exceptions.py", "/core/logger.py"], "/tg_bot/GC_TelegramBot.py": ["/tg_bot/bot_answers.py", "/core/main_api.py", "/core/exceptions.py"]}
52,392
anevolina/GoogleCalendarBot
refs/heads/master
/core/create_tables.py
"""Auxiliary module for creating tables for the project. _______________________________________________________ settings - table - for storing users settings; settings_backup - table - for storing backups just in case save_backup - trigger - for saving previous settings before their updates """ import sqlite3 conn =...
{"/tg_bot/add_event_bot.py": ["/tg_bot/GC_TelegramBot.py"], "/core/calendar_core.py": ["/core/logger.py"], "/core/main_api.py": ["/core/calendar_core.py", "/core/exceptions.py", "/core/logger.py"], "/tg_bot/GC_TelegramBot.py": ["/tg_bot/bot_answers.py", "/core/main_api.py", "/core/exceptions.py"]}
52,393
anevolina/GoogleCalendarBot
refs/heads/master
/core/test_calendar_core.py
import unittest from datetime import datetime from main_api import get_start_end_time import calendar_core class CalendarCoreTest(unittest.TestCase): def test_get_start_end_time(self): """Test parsing start and end time from a given string to datetime format""" start1, end1 = get_start_end_time...
{"/tg_bot/add_event_bot.py": ["/tg_bot/GC_TelegramBot.py"], "/core/calendar_core.py": ["/core/logger.py"], "/core/main_api.py": ["/core/calendar_core.py", "/core/exceptions.py", "/core/logger.py"], "/tg_bot/GC_TelegramBot.py": ["/tg_bot/bot_answers.py", "/core/main_api.py", "/core/exceptions.py"]}
52,394
anevolina/GoogleCalendarBot
refs/heads/master
/tg_bot/bot_answers.py
"""Module with text messages bot will send to users""" def get_calendar_status_message(status, message): if status == 'FETCHED': message = 'Calendar ' + message + ' was bind with your account' elif status == 'CREATED': message = 'Calendar ' + message + ' was created' else: message...
{"/tg_bot/add_event_bot.py": ["/tg_bot/GC_TelegramBot.py"], "/core/calendar_core.py": ["/core/logger.py"], "/core/main_api.py": ["/core/calendar_core.py", "/core/exceptions.py", "/core/logger.py"], "/tg_bot/GC_TelegramBot.py": ["/tg_bot/bot_answers.py", "/core/main_api.py", "/core/exceptions.py"]}
52,395
anevolina/GoogleCalendarBot
refs/heads/master
/core/main_api.py
import datefinder import datetime import re from functools import wraps import core.calendar_core as calendar_core from core.exceptions import GCUnauthorisedUserError from core.logger import GCLogger logger = GCLogger() def check_auth(func): """Decorator to quick check if we have records for given user in our ...
{"/tg_bot/add_event_bot.py": ["/tg_bot/GC_TelegramBot.py"], "/core/calendar_core.py": ["/core/logger.py"], "/core/main_api.py": ["/core/calendar_core.py", "/core/exceptions.py", "/core/logger.py"], "/tg_bot/GC_TelegramBot.py": ["/tg_bot/bot_answers.py", "/core/main_api.py", "/core/exceptions.py"]}