filename stringlengths 6 103 | patch stringlengths 47 76k | parent_content stringlengths 17 1.6M | id stringlengths 12 19 |
|---|---|---|---|
aiosmtpd/smtp.py | @@ -87,7 +87,7 @@ class _DataState(enum.Enum):
EMPTY_BARR = bytearray()
EMPTYBYTES = b''
MISSING = _Missing.MISSING
-NEWLINE = '\n'
+NEWLINE = '\r\n'
VALID_AUTHMECH = re.compile(r"[A-Z0-9_-]+\Z")
# https://tools.ietf.org/html/rfc3207.html#page-3
@@ -1427,9 +1427,10 @@ async def smtp_DATA(self, arg: str) -> None:... | # Copyright 2014-2021 The aiosmtpd Developers
# SPDX-License-Identifier: Apache-2.0
import asyncio
import asyncio.sslproto as sslproto
import binascii
import collections
import enum
import inspect
import logging
import re
import socket
import ssl
from base64 import b64decode, b64encode
from email._header_value_parser ... | PYSEC-2024-221 |
arches/app/models/concept.py | @@ -32,6 +32,8 @@
from django.utils.translation import ugettext as _
from django.utils.translation import get_language
from django.db import IntegrityError
+from psycopg2.extensions import AsIs
+
import logging
@@ -505,13 +507,12 @@ def get_child_edges(
except:
return []
- ... | """
ARCHES - a program developed to inventory and manage immovable cultural heritage.
Copyright (C) 2013 J. Paul Getty Trust and World Monuments Fund
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software ... | GHSA-gmpq-xrxj-xh8m |
arches/app/views/concept.py | @@ -380,8 +380,7 @@ def dropdown(request):
def paged_dropdown(request):
conceptid = request.GET.get("conceptid")
- query = request.GET.get("query", None)
- query = None if query == "" else query
+ query = request.GET.get("query", "")
page = int(request.GET.get("page", 1))
limit = 50
... | """
ARCHES - a program developed to inventory and manage immovable cultural heritage.
Copyright (C) 2013 J. Paul Getty Trust and World Monuments Fund
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software ... | GHSA-gmpq-xrxj-xh8m |
cps/helper.py | "@@ -734,10 +734,10 @@ def save_cover_from_url(url, book_path):\n if not cli.allow_localhost(...TRUNCATED) | "# -*- coding: utf-8 -*-\n\n# This file is part of the Calibre-Web (https://github.com/janeczku/cal(...TRUNCATED) | GHSA-2647-c639-qv2j |
src/werkzeug/_internal.py | "@@ -34,7 +34,7 @@\n _legal_cookie_chars_re = rb\"[\\w\\d!#%&\\'~_`><@,:/\\$\\*\\+\\-\\.\\^\\|\\)\\((...TRUNCATED) | "import logging\nimport operator\nimport re\nimport string\nimport sys\nimport typing\nimport typing(...TRUNCATED) | GHSA-px8h-6qxv-m22q |
src/werkzeug/sansio/http.py | "@@ -126,10 +126,6 @@ def parse_cookie(\n def _parse_pairs() -> t.Iterator[t.Tuple[str, str]]:\n(...TRUNCATED) | "import re\nimport typing as t\nfrom datetime import datetime\n\nfrom .._internal import _cookie_par(...TRUNCATED) | GHSA-px8h-6qxv-m22q |
tests/test_http.py | "@@ -412,7 +412,8 @@ def test_is_resource_modified_for_range_requests(self):\n def test_parse_co(...TRUNCATED) | "import base64\nfrom datetime import date\nfrom datetime import datetime\nfrom datetime import timed(...TRUNCATED) | GHSA-px8h-6qxv-m22q |
tests/compiler/ir/test_optimize_ir.py | "@@ -143,7 +143,9 @@\n ([\"sub\", \"x\", 0], [\"x\"]),\n ([\"sub\", \"x\", \"x\"], [0]),\n (...TRUNCATED) | "import pytest\n\nfrom vyper.codegen.ir_node import IRnode\nfrom vyper.exceptions import StaticAsser(...TRUNCATED) | GHSA-c647-pxm2-c52w |
tests/parser/functions/test_create_functions.py | "@@ -431,3 +431,212 @@ def test2(target: address, salt: bytes32) -> address:\n # test2 = c.test2(...TRUNCATED) | "import pytest\nimport rlp\nfrom eth.codecs import abi\nfrom hexbytes import HexBytes\n\nimport vype(...TRUNCATED) | GHSA-c647-pxm2-c52w |
tests/parser/functions/test_raw_call.py | "@@ -426,6 +426,164 @@ def baz(_addr: address, should_raise: bool) -> uint256:\n assert caller.b(...TRUNCATED) | "import pytest\nfrom hexbytes import HexBytes\n\nfrom vyper import compile_code\nfrom vyper.builtins(...TRUNCATED) | GHSA-c647-pxm2-c52w |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 3