This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ast | |
from collections import Counter | |
code_snippet_1 = """# this doesn't make sense as all lul | |
import requests # TROLOLOLOL | |
headers = { | |
'Referer': 'https://www.transtats.bts.gov/DL_SelectFields.asp?Table_ID=236&DB_Short_Name=On-Time', | |
'Origin': 'https://www.transtats.bts.gov', | |
'Content-Type': 'application/x-www-form-urlencoded', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Python base image with tweaks - Mostly derivied from https://github.com/docker-library/python/blob/218e80410245922ec8e78ca8ca6630c5f47ca445/3.8/bullseye/Dockerfile | |
# Modification are highlighted by comments prefixed by "HACK: " | |
# {{ | |
FROM buildpack-deps:bullseye | |
# ensure local python is preferred over distribution python | |
ENV PATH /usr/local/bin:$PATH | |
# http://bugs.python.org/issue19846 | |
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK. |