Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Ted Cassirer committed Dec 1, 2023
1 parent b1f7018 commit 42b2d2c
Show file tree
Hide file tree
Showing 68 changed files with 94 additions and 112 deletions.
2 changes: 1 addition & 1 deletion aoc_cas/aoc2019/day11.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from aoc2019.IntCodeComputer import IntCodeComputerVM
from aoc_cas.aoc2019.IntCodeComputer import IntCodeComputerVM
from collections import defaultdict

BLACK = 0
Expand Down
2 changes: 1 addition & 1 deletion aoc_cas/aoc2019/day21.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from aoc2019.IntCodeComputer import IntCodeComputerVM, read_program
from aoc_cas.aoc2019.IntCodeComputer import IntCodeComputerVM, read_program


def instructions(*inputs):
Expand Down
2 changes: 1 addition & 1 deletion aoc_cas/aoc2022/day5.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
def parseData(data):
stackData, instructionData = data.split("\n\n")
numStacks = (data.index("\n") + 1) // 4
numStacks = int(stackData.split(" ")[-1])
stacks = [[] for _ in range(numStacks)]
instructions = []

Expand Down
2 changes: 1 addition & 1 deletion tests/2019/test_2019_day16.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from aoc2019 import day16 as aoc
from aoc_cas.aoc2019 import day16 as aoc


def testPart1():
Expand Down
2 changes: 1 addition & 1 deletion tests/2019/test_2019_day20.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from aoc2019 import day20 as aoc
from aoc_cas.aoc2019 import day20 as aoc


def testPart1():
Expand Down
2 changes: 1 addition & 1 deletion tests/2019/test_2019_day22.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from aoc2019 import day22 as aoc
from aoc_cas.aoc2019 import day22 as aoc


def testPart1():
Expand Down
2 changes: 1 addition & 1 deletion tests/2019/test_2019_day7.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from aoc2019 import day7 as aoc
from aoc_cas.aoc2019 import day7 as aoc


def testPart1():
Expand Down
2 changes: 1 addition & 1 deletion tests/2020/test_2020_day1.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import aoc2020.day1 as aoc
import aoc_cas.aoc2020.day1 as aoc

testData1 = """
1721
Expand Down
2 changes: 1 addition & 1 deletion tests/2020/test_2020_day10.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from aoc2020 import day10 as aoc
from aoc_cas.aoc2020 import day10 as aoc


data = """
Expand Down
2 changes: 1 addition & 1 deletion tests/2020/test_2020_day11.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from aoc2020 import day11 as aoc
from aoc_cas.aoc2020 import day11 as aoc


data = """
Expand Down
2 changes: 1 addition & 1 deletion tests/2020/test_2020_day12.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from aoc2020 import day12 as aoc
from aoc_cas.aoc2020 import day12 as aoc


data = """
Expand Down
2 changes: 1 addition & 1 deletion tests/2020/test_2020_day13.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from aoc2020 import day13 as aoc
from aoc_cas.aoc2020 import day13 as aoc


data = """
Expand Down
2 changes: 1 addition & 1 deletion tests/2020/test_2020_day14.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from aoc2020 import day14 as aoc
from aoc_cas.aoc2020 import day14 as aoc


def testPart1():
Expand Down
2 changes: 1 addition & 1 deletion tests/2020/test_2020_day15.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from aoc2020 import day15 as aoc
from aoc_cas.aoc2020 import day15 as aoc
import pytest


Expand Down
2 changes: 1 addition & 1 deletion tests/2020/test_2020_day16.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from aoc2020 import day16 as aoc
from aoc_cas.aoc2020 import day16 as aoc


def testPart1():
Expand Down
2 changes: 1 addition & 1 deletion tests/2020/test_2020_day17.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from aoc2020 import day17 as aoc
from aoc_cas.aoc2020 import day17 as aoc


data = """
Expand Down
2 changes: 1 addition & 1 deletion tests/2020/test_2020_day18.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from aoc2020 import day18 as aoc
from aoc_cas.aoc2020 import day18 as aoc


def testPart1():
Expand Down
2 changes: 1 addition & 1 deletion tests/2020/test_2020_day19.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from aoc2020 import day19 as aoc
from aoc_cas.aoc2020 import day19 as aoc

data1 = """
0: 4 1 5
Expand Down
2 changes: 1 addition & 1 deletion tests/2020/test_2020_day2.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import aoc2020.day2 as aoc
import aoc_cas.aoc2020.day2 as aoc

testData = """
1-3 a: abcde
Expand Down
2 changes: 1 addition & 1 deletion tests/2020/test_2020_day20.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from aoc2020 import day20 as aoc
from aoc_cas.aoc2020 import day20 as aoc


def testPart1():
Expand Down
2 changes: 1 addition & 1 deletion tests/2020/test_2020_day21.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from aoc2020 import day21 as aoc
from aoc_cas.aoc2020 import day21 as aoc

data = """
mxmxvkd kfcds sqjhc nhms (contains dairy, fish)
Expand Down
2 changes: 1 addition & 1 deletion tests/2020/test_2020_day22.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from aoc2020 import day22 as aoc
from aoc_cas.aoc2020 import day22 as aoc

data = """
Player 1:
Expand Down
2 changes: 1 addition & 1 deletion tests/2020/test_2020_day23.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from aoc2020 import day23 as aoc
from aoc_cas.aoc2020 import day23 as aoc
import pytest

data = "389125467"
Expand Down
2 changes: 1 addition & 1 deletion tests/2020/test_2020_day24.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from aoc2020 import day24 as aoc
from aoc_cas.aoc2020 import day24 as aoc

data = """
sesenwnenenewseeswwswswwnenewsewsw
Expand Down
2 changes: 1 addition & 1 deletion tests/2020/test_2020_day25.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from aoc2020 import day25 as aoc
from aoc_cas.aoc2020 import day25 as aoc

data = """
5764801
Expand Down
2 changes: 1 addition & 1 deletion tests/2020/test_2020_day3.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import aoc2020.day3 as aoc
import aoc_cas.aoc2020.day3 as aoc

testData = """
..##.......
Expand Down
2 changes: 1 addition & 1 deletion tests/2020/test_2020_day4.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import aoc2020.day4 as aoc
import aoc_cas.aoc2020.day4 as aoc

testData = """
ecl:gry pid:860033327 eyr:2020 hcl:#fffffd
Expand Down
2 changes: 1 addition & 1 deletion tests/2020/test_2020_day5.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import aoc2020.day5 as aoc
import aoc_cas.aoc2020.day5 as aoc


def testSeatId():
Expand Down
2 changes: 1 addition & 1 deletion tests/2020/test_2020_day6.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from aoc2020 import day6 as aoc
from aoc_cas.aoc2020 import day6 as aoc


def testPart1():
Expand Down
2 changes: 1 addition & 1 deletion tests/2020/test_2020_day7.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from aoc2020 import day7 as aoc
from aoc_cas.aoc2020 import day7 as aoc


def testPart1():
Expand Down
2 changes: 1 addition & 1 deletion tests/2020/test_2020_day8.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from aoc2020 import day8 as aoc
from aoc_cas.aoc2020 import day8 as aoc


testProgram = """
Expand Down
2 changes: 1 addition & 1 deletion tests/2020/test_2020_day9.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from aoc2020 import day9 as aoc
from aoc_cas.aoc2020 import day9 as aoc


data = """
Expand Down
2 changes: 1 addition & 1 deletion tests/2021/test_2021_day1.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import aoc2021.day1 as aoc
import aoc_cas.aoc2021.day1 as aoc

testData = """
199
Expand Down
2 changes: 1 addition & 1 deletion tests/2021/test_2021_day10.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import aoc2021.day10 as aoc
import aoc_cas.aoc2021.day10 as aoc

testData = """
[({(<(())[]>[[{[]{<()<>>
Expand Down
2 changes: 1 addition & 1 deletion tests/2021/test_2021_day11.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import aoc2021.day11 as aoc
import aoc_cas.aoc2021.day11 as aoc

testData = """
5483143223
Expand Down
2 changes: 1 addition & 1 deletion tests/2021/test_2021_day12.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import aoc2021.day12 as aoc
import aoc_cas.aoc2021.day12 as aoc

testData1 = """
start-A
Expand Down
2 changes: 1 addition & 1 deletion tests/2021/test_2021_day14.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import aoc2021.day14 as aoc
import aoc_cas.aoc2021.day14 as aoc

testData = """
NNCB
Expand Down
2 changes: 1 addition & 1 deletion tests/2021/test_2021_day15.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import aoc2021.day15 as aoc
import aoc_cas.aoc2021.day15 as aoc

testData = """
1163751742
Expand Down
2 changes: 1 addition & 1 deletion tests/2021/test_2021_day16.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import aoc2021.day16 as aoc
import aoc_cas.aoc2021.day16 as aoc


def testPart1():
Expand Down
2 changes: 1 addition & 1 deletion tests/2021/test_2021_day17.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import aoc2021.day17 as aoc
import aoc_cas.aoc2021.day17 as aoc


def testPart1():
Expand Down
2 changes: 1 addition & 1 deletion tests/2021/test_2021_day18.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import aoc2021.day18 as aoc
import aoc_cas.aoc2021.day18 as aoc

data = """
[[[0,[5,8]],[[1,7],[9,6]]],[[4,[1,2]],[[1,4],2]]]
Expand Down
2 changes: 1 addition & 1 deletion tests/2021/test_2021_day2.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import aoc2021.day2 as aoc
import aoc_cas.aoc2021.day2 as aoc

testData = """
forward 5
Expand Down
2 changes: 1 addition & 1 deletion tests/2021/test_2021_day3.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import aoc2021.day3 as aoc
import aoc_cas.aoc2021.day3 as aoc

testData = """
00100
Expand Down
2 changes: 1 addition & 1 deletion tests/2021/test_2021_day4.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import aoc2021.day4 as aoc
import aoc_cas.aoc2021.day4 as aoc

testData = """
7,4,9,5,11,17,23,2,0,14,21,24,10,16,13,6,15,25,12,22,18,20,8,19,3,26,1
Expand Down
2 changes: 1 addition & 1 deletion tests/2021/test_2021_day5.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import aoc2021.day5 as aoc
import aoc_cas.aoc2021.day5 as aoc

testData = """
0,9 -> 5,9
Expand Down
2 changes: 1 addition & 1 deletion tests/2021/test_2021_day6.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import aoc2021.day6 as aoc
import aoc_cas.aoc2021.day6 as aoc

testData = """
3,4,3,1,2
Expand Down
2 changes: 1 addition & 1 deletion tests/2021/test_2021_day7.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import aoc2021.day7 as aoc
import aoc_cas.aoc2021.day7 as aoc

testData = """
16,1,2,0,4,2,7,1,2,14
Expand Down
2 changes: 1 addition & 1 deletion tests/2021/test_2021_day8.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import aoc2021.day8 as aoc
import aoc_cas.aoc2021.day8 as aoc

testData = """
be cfbegad cbdgef fgaecd cgeb fdcge agebfd fecdb fabcd edb | fdgacbe cefdb cefbgd gcbe
Expand Down
2 changes: 1 addition & 1 deletion tests/2021/test_2021_day9.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import aoc2021.day9 as aoc
import aoc_cas.aoc2021.day9 as aoc

testData = """
2199943210
Expand Down
16 changes: 0 additions & 16 deletions tests/2022/a.txt

This file was deleted.

2 changes: 1 addition & 1 deletion tests/2022/test_2022_day10.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import aoc2022.day10 as aoc
import aoc_cas.aoc2022.day10 as aoc

testData = """
addx 15
Expand Down
2 changes: 1 addition & 1 deletion tests/2022/test_2022_day11.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import aoc2022.day11 as aoc
import aoc_cas.aoc2022.day11 as aoc

testData = """
Monkey 0:
Expand Down
2 changes: 1 addition & 1 deletion tests/2022/test_2022_day12.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import aoc2022.day12 as aoc
import aoc_cas.aoc2022.day12 as aoc

testData = """
Sabqponm
Expand Down
2 changes: 1 addition & 1 deletion tests/2022/test_2022_day13.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import aoc2022.day13 as aoc
import aoc_cas.aoc2022.day13 as aoc

testData = """
[1,1,3,1,1]
Expand Down
2 changes: 1 addition & 1 deletion tests/2022/test_2022_day14.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import aoc2022.day14 as aoc
import aoc_cas.aoc2022.day14 as aoc

testData = """
498,4 -> 498,6 -> 496,6
Expand Down
2 changes: 1 addition & 1 deletion tests/2022/test_2022_day15.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import aoc2022.day15 as aoc
import aoc_cas.aoc2022.day15 as aoc

testData = """
Sensor at x=2, y=18: closest beacon is at x=-2, y=15
Expand Down
2 changes: 1 addition & 1 deletion tests/2022/test_2022_day16.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import aoc2022.day16 as aoc
import aoc_cas.aoc2022.day16 as aoc

testData = """
Valve AA has flow rate=0; tunnels lead to valves DD, II, BB
Expand Down
2 changes: 1 addition & 1 deletion tests/2022/test_2022_day2.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import aoc2022.day2 as aoc
import aoc_cas.aoc2022.day2 as aoc

testData = """
A Y
Expand Down
2 changes: 1 addition & 1 deletion tests/2022/test_2022_day3.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import aoc2022.day3 as aoc
import aoc_cas.aoc2022.day3 as aoc

testData = """
vJrwpWtwJgWrhcsFMMfFFhFp
Expand Down
2 changes: 1 addition & 1 deletion tests/2022/test_2022_day4.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import aoc2022.day4 as aoc
import aoc_cas.aoc2022.day4 as aoc

testData = """
2-4,6-8
Expand Down
2 changes: 1 addition & 1 deletion tests/2022/test_2022_day5.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import aoc2022.day5 as aoc
import aoc_cas.aoc2022.day5 as aoc

testData = """ [D]
[N] [C]
Expand Down
2 changes: 1 addition & 1 deletion tests/2022/test_2022_day6.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import aoc2022.day6 as aoc
import aoc_cas.aoc2022.day6 as aoc


def testPart1():
Expand Down
2 changes: 1 addition & 1 deletion tests/2022/test_2022_day7.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import aoc2022.day7 as aoc
import aoc_cas.aoc2022.day7 as aoc

testData = """
$ cd /
Expand Down
2 changes: 1 addition & 1 deletion tests/2022/test_2022_day8.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import aoc2022.day8 as aoc
import aoc_cas.aoc2022.day8 as aoc

testData = """
30373
Expand Down
Loading

0 comments on commit 42b2d2c

Please sign in to comment.