{"id":19570556,"url":"https://github.com/sizableshrimp/adventofcode2023","last_synced_at":"2026-06-13T11:33:46.026Z","repository":{"id":209398173,"uuid":"723954033","full_name":"SizableShrimp/AdventOfCode2023","owner":"SizableShrimp","description":"My solutions for the Advent of Code 2023 challenges","archived":false,"fork":false,"pushed_at":"2023-12-27T17:19:03.000Z","size":201,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-26T10:37:11.372Z","etag":null,"topics":["advent-of-code","advent-of-code-2023","advent-of-code-java","advent-of-code-kotlin","adventofcode","adventofcode2023","aoc-2023-in-java","aoc-2023-in-kotlin"],"latest_commit_sha":null,"homepage":"https://adventofcode.com/2023","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SizableShrimp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-27T05:11:05.000Z","updated_at":"2023-11-27T05:14:21.000Z","dependencies_parsed_at":"2023-12-27T18:30:05.509Z","dependency_job_id":null,"html_url":"https://github.com/SizableShrimp/AdventOfCode2023","commit_stats":null,"previous_names":["sizableshrimp/adventofcode2023"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SizableShrimp/AdventOfCode2023","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SizableShrimp%2FAdventOfCode2023","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SizableShrimp%2FAdventOfCode2023/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SizableShrimp%2FAdventOfCode2023/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SizableShrimp%2FAdventOfCode2023/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SizableShrimp","download_url":"https://codeload.github.com/SizableShrimp/AdventOfCode2023/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SizableShrimp%2FAdventOfCode2023/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34283390,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["advent-of-code","advent-of-code-2023","advent-of-code-java","advent-of-code-kotlin","adventofcode","adventofcode2023","aoc-2023-in-java","aoc-2023-in-kotlin"],"created_at":"2024-11-11T06:15:33.646Z","updated_at":"2026-06-13T11:33:45.999Z","avatar_url":"https://github.com/SizableShrimp.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AdventOfCode2023\nThis repository holds my solutions and helper code (in Java/Kotlin) for [Advent Of Code 2023](https://adventofcode.com/2023).\nA large part of the util code is based on code I have built up from prior years which you can find in my other AOC GitHub repos.\n\n## Technical Information\nThis repository supports downloading and caching input data from the Advent Of Code servers.\nTo set up, you must create a `session.txt` file in the program working directory which holds your session cookie from the Advent Of Code website.\nThis cookie expires after a month, so it has to be updated from time to time.\n\nEach day's input file is formatted as `dayXX.txt`. If the day is 1-9, then the file will be named `day01.txt`, `day02.txt`, etc.\n\nWhen running a specific day, the program will look for an input file in the following order:\n1. Checks the `days` folder on the classpath, if it's there.\n2. Checks the `aoc_input` folder in the current working directory, if it's there.\n3. If there's a `session.txt` file with a logged-in cookie, it downloads the input from the AOC servers and saves it to the `aoc_input` folder (creating it if necessary).\n4. If the input file can't be found, it throws an exception.\n\nThe `session.txt` file should be a single line and should contain your session cookie from the AOC website.\nYou can find this cookie by logging into the AOC website, opening the developer tools, and looking for the \"session\" cookie.\nOnly the cookie's value should be pasted into the file.\n\n### Running A Specific Day\nThis program runs a specific day based on a few factors inside the `Main` class.\nIf it is the month of December in EST time and the 25th or earlier, whatever current day it is in EST time will be selected to run.\nIf this program is not run during Advent season, it will run ALL days by default.\nAn output from a day looks like the following:\n```text\nDay 1:\nPart 1: 123\nPart 2: 456\nCompleted in 5.298ms\n```\nNote that \"Completed in X.XXXms\" is not a real or accurate benchmark, but an approximate measure of how long a day takes to run using nano time.\nFor real benchmarks, please see `gradle jmh` and the `benchmarks` package (which is still based on your specific hardware).\nIf you would like to run a specific day outside the month of the December, use `run(int)` in the `Main` class.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsizableshrimp%2Fadventofcode2023","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsizableshrimp%2Fadventofcode2023","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsizableshrimp%2Fadventofcode2023/lists"}