id int64 0 458k | file_name stringlengths 4 119 | file_path stringlengths 14 227 | content stringlengths 24 9.96M | size int64 24 9.96M | language stringclasses 1
value | extension stringclasses 14
values | total_lines int64 1 219k | avg_line_length float64 2.52 4.63M | max_line_length int64 5 9.91M | alphanum_fraction float64 0 1 | repo_name stringlengths 7 101 | repo_stars int64 100 139k | repo_forks int64 0 26.4k | repo_open_issues int64 0 2.27k | repo_license stringclasses 12
values | repo_extraction_date stringclasses 433
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
33,200 | test_logging.py | ronf_asyncssh/tests/test_logging.py | # Copyright (c) 2017-2024 by Ron Frederick <ronf@timeheart.net> and others.
#
# This program and the accompanying materials are made available under
# the terms of the Eclipse Public License v2.0 which accompanies this
# distribution and is available at:
#
# http://www.eclipse.org/legal/epl-2.0/
#
# This program ma... | 6,223 | Python | .py | 144 | 33.541667 | 75 | 0.608175 | ronf/asyncssh | 1,534 | 150 | 11 | EPL-2.0 | 9/5/2024, 5:14:46 PM (Europe/Amsterdam) |
33,201 | sspi_stub.py | ronf_asyncssh/tests/sspi_stub.py | # Copyright (c) 2017-2022 by Ron Frederick <ronf@timeheart.net> and others.
#
# This program and the accompanying materials are made available under
# the terms of the Eclipse Public License v2.0 which accompanies this
# distribution and is available at:
#
# http://www.eclipse.org/legal/epl-2.0/
#
# This program ma... | 3,907 | Python | .py | 100 | 31.86 | 78 | 0.647637 | ronf/asyncssh | 1,534 | 150 | 11 | EPL-2.0 | 9/5/2024, 5:14:46 PM (Europe/Amsterdam) |
33,202 | test_agent.py | ronf_asyncssh/tests/test_agent.py | # Copyright (c) 2016-2024 by Ron Frederick <ronf@timeheart.net> and others.
#
# This program and the accompanying materials are made available under
# the terms of the Eclipse Public License v2.0 which accompanies this
# distribution and is available at:
#
# http://www.eclipse.org/legal/epl-2.0/
#
# This program ma... | 15,710 | Python | .py | 358 | 34.159218 | 76 | 0.615395 | ronf/asyncssh | 1,534 | 150 | 11 | EPL-2.0 | 9/5/2024, 5:14:46 PM (Europe/Amsterdam) |
33,203 | test_asn1.py | ronf_asyncssh/tests/test_asn1.py | # Copyright (c) 2015-2021 by Ron Frederick <ronf@timeheart.net> and others.
#
# This program and the accompanying materials are made available under
# the terms of the Eclipse Public License v2.0 which accompanies this
# distribution and is available at:
#
# http://www.eclipse.org/legal/epl-2.0/
#
# This program ma... | 8,564 | Python | .py | 152 | 47.993421 | 79 | 0.445825 | ronf/asyncssh | 1,534 | 150 | 11 | EPL-2.0 | 9/5/2024, 5:14:46 PM (Europe/Amsterdam) |
33,204 | test_forward.py | ronf_asyncssh/tests/test_forward.py | # Copyright (c) 2016-2022 by Ron Frederick <ronf@timeheart.net> and others.
#
# This program and the accompanying materials are made available under
# the terms of the Eclipse Public License v2.0 which accompanies this
# distribution and is available at:
#
# http://www.eclipse.org/legal/epl-2.0/
#
# This program ma... | 50,561 | Python | .py | 1,024 | 36.939453 | 80 | 0.590708 | ronf/asyncssh | 1,534 | 150 | 11 | EPL-2.0 | 9/5/2024, 5:14:46 PM (Europe/Amsterdam) |
33,205 | keysign_stub.py | ronf_asyncssh/tests/keysign_stub.py | # Copyright (c) 2018-2019 by Ron Frederick <ronf@timeheart.net> and others.
#
# This program and the accompanying materials are made available under
# the terms of the Eclipse Public License v2.0 which accompanies this
# distribution and is available at:
#
# http://www.eclipse.org/legal/epl-2.0/
#
# This program ma... | 1,844 | Python | .py | 47 | 34.148936 | 75 | 0.688515 | ronf/asyncssh | 1,534 | 150 | 11 | EPL-2.0 | 9/5/2024, 5:14:46 PM (Europe/Amsterdam) |
33,206 | test_encryption.py | ronf_asyncssh/tests/test_encryption.py | # Copyright (c) 2015-2020 by Ron Frederick <ronf@timeheart.net> and others.
#
# This program and the accompanying materials are made available under
# the terms of the Eclipse Public License v2.0 which accompanies this
# distribution and is available at:
#
# http://www.eclipse.org/legal/epl-2.0/
#
# This program ma... | 2,748 | Python | .py | 59 | 40.033898 | 77 | 0.678545 | ronf/asyncssh | 1,534 | 150 | 11 | EPL-2.0 | 9/5/2024, 5:14:46 PM (Europe/Amsterdam) |
33,207 | test_compression.py | ronf_asyncssh/tests/test_compression.py | # Copyright (c) 2015-2018 by Ron Frederick <ronf@timeheart.net> and others.
#
# This program and the accompanying materials are made available under
# the terms of the Eclipse Public License v2.0 which accompanies this
# distribution and is available at:
#
# http://www.eclipse.org/legal/epl-2.0/
#
# This program ma... | 1,540 | Python | .py | 37 | 36.135135 | 77 | 0.713329 | ronf/asyncssh | 1,534 | 150 | 11 | EPL-2.0 | 9/5/2024, 5:14:46 PM (Europe/Amsterdam) |
33,208 | test_connection.py | ronf_asyncssh/tests/test_connection.py | # Copyright (c) 2016-2024 by Ron Frederick <ronf@timeheart.net> and others.
#
# This program and the accompanying materials are made available under
# the terms of the Eclipse Public License v2.0 which accompanies this
# distribution and is available at:
#
# http://www.eclipse.org/legal/epl-2.0/
#
# This program ma... | 89,845 | Python | .py | 1,892 | 37.043869 | 80 | 0.630512 | ronf/asyncssh | 1,534 | 150 | 11 | EPL-2.0 | 9/5/2024, 5:14:46 PM (Europe/Amsterdam) |
33,209 | test_packet.py | ronf_asyncssh/tests/test_packet.py | # Copyright (c) 2016-2021 by Ron Frederick <ronf@timeheart.net> and others.
#
# This program and the accompanying materials are made available under
# the terms of the Eclipse Public License v2.0 which accompanies this
# distribution and is available at:
#
# http://www.eclipse.org/legal/epl-2.0/
#
# This program ma... | 6,864 | Python | .py | 138 | 39.847826 | 78 | 0.449619 | ronf/asyncssh | 1,534 | 150 | 11 | EPL-2.0 | 9/5/2024, 5:14:46 PM (Europe/Amsterdam) |
33,210 | test_known_hosts.py | ronf_asyncssh/tests/test_known_hosts.py | # Copyright (c) 2015-2024 by Ron Frederick <ronf@timeheart.net> and others.
#
# This program and the accompanying materials are made available under
# the terms of the Eclipse Public License v2.0 which accompanies this
# distribution and is available at:
#
# http://www.eclipse.org/legal/epl-2.0/
#
# This program ma... | 11,509 | Python | .py | 224 | 38.977679 | 80 | 0.433791 | ronf/asyncssh | 1,534 | 150 | 11 | EPL-2.0 | 9/5/2024, 5:14:46 PM (Europe/Amsterdam) |
33,211 | test_channel.py | ronf_asyncssh/tests/test_channel.py | # Copyright (c) 2016-2024 by Ron Frederick <ronf@timeheart.net> and others.
#
# This program and the accompanying materials are made available under
# the terms of the Eclipse Public License v2.0 which accompanies this
# distribution and is available at:
#
# http://www.eclipse.org/legal/epl-2.0/
#
# This program ma... | 65,296 | Python | .py | 1,384 | 35.357659 | 80 | 0.592225 | ronf/asyncssh | 1,534 | 150 | 11 | EPL-2.0 | 9/5/2024, 5:14:46 PM (Europe/Amsterdam) |
33,212 | test_auth_keys.py | ronf_asyncssh/tests/test_auth_keys.py | # Copyright (c) 2015-2024 by Ron Frederick <ronf@timeheart.net> and others.
#
# This program and the accompanying materials are made available under
# the terms of the Eclipse Public License v2.0 which accompanies this
# distribution and is available at:
#
# http://www.eclipse.org/legal/epl-2.0/
#
# This program ma... | 8,710 | Python | .py | 180 | 37.188889 | 78 | 0.565166 | ronf/asyncssh | 1,534 | 150 | 11 | EPL-2.0 | 9/5/2024, 5:14:46 PM (Europe/Amsterdam) |
33,213 | test_connection_auth.py | ronf_asyncssh/tests/test_connection_auth.py | # Copyright (c) 2016-2022 by Ron Frederick <ronf@timeheart.net> and others.
#
# This program and the accompanying materials are made available under
# the terms of the Eclipse Public License v2.0 which accompanies this
# distribution and is available at:
#
# http://www.eclipse.org/legal/epl-2.0/
#
# This program ma... | 77,780 | Python | .py | 1,582 | 38.132111 | 80 | 0.631208 | ronf/asyncssh | 1,534 | 150 | 11 | EPL-2.0 | 9/5/2024, 5:14:46 PM (Europe/Amsterdam) |
33,214 | test_config.py | ronf_asyncssh/tests/test_config.py | # Copyright (c) 2020-2024 by Ron Frederick <ronf@timeheart.net> and others.
#
# This program and the accompanying materials are made available under
# the terms of the Eclipse Public License v2.0 which accompanies this
# distribution and is available at:
#
# http://www.eclipse.org/legal/epl-2.0/
#
# This program ma... | 20,523 | Python | .py | 402 | 38.768657 | 79 | 0.586036 | ronf/asyncssh | 1,534 | 150 | 11 | EPL-2.0 | 9/5/2024, 5:14:46 PM (Europe/Amsterdam) |
33,215 | test_x11.py | ronf_asyncssh/tests/test_x11.py | # Copyright (c) 2016-2022 by Ron Frederick <ronf@timeheart.net> and others.
#
# This program and the accompanying materials are made available under
# the terms of the Eclipse Public License v2.0 which accompanies this
# distribution and is available at:
#
# http://www.eclipse.org/legal/epl-2.0/
#
# This program ma... | 21,389 | Python | .py | 467 | 35.297645 | 80 | 0.610412 | ronf/asyncssh | 1,534 | 150 | 11 | EPL-2.0 | 9/5/2024, 5:14:46 PM (Europe/Amsterdam) |
33,216 | test_editor.py | ronf_asyncssh/tests/test_editor.py | # Copyright (c) 2016-2022 by Ron Frederick <ronf@timeheart.net> and others.
#
# This program and the accompanying materials are made available under
# the terms of the Eclipse Public License v2.0 which accompanies this
# distribution and is available at:
#
# http://www.eclipse.org/legal/epl-2.0/
#
# This program ma... | 18,220 | Python | .py | 394 | 35.736041 | 79 | 0.585253 | ronf/asyncssh | 1,534 | 150 | 11 | EPL-2.0 | 9/5/2024, 5:14:46 PM (Europe/Amsterdam) |
33,217 | pkcs11_stub.py | ronf_asyncssh/tests/pkcs11_stub.py | # Copyright (c) 2020-2024 by Ron Frederick <ronf@timeheart.net> and others.
#
# This program and the accompanying materials are made available under
# the terms of the Eclipse Public License v2.0 which accompanies this
# distribution and is available at:
#
# http://www.eclipse.org/legal/epl-2.0/
#
# This program ma... | 6,985 | Python | .py | 165 | 34.460606 | 80 | 0.629042 | ronf/asyncssh | 1,534 | 150 | 11 | EPL-2.0 | 9/5/2024, 5:14:46 PM (Europe/Amsterdam) |
33,218 | test_x509.py | ronf_asyncssh/tests/test_x509.py | # Copyright (c) 2017-2020 by Ron Frederick <ronf@timeheart.net> and others.
#
# This program and the accompanying materials are made available under
# the terms of the Eclipse Public License v2.0 which accompanies this
# distribution and is available at:
#
# http://www.eclipse.org/legal/epl-2.0/
#
# This program ma... | 10,219 | Python | .py | 193 | 42.746114 | 79 | 0.647035 | ronf/asyncssh | 1,534 | 150 | 11 | EPL-2.0 | 9/5/2024, 5:14:46 PM (Europe/Amsterdam) |
33,219 | test_mac.py | ronf_asyncssh/tests/test_mac.py | # Copyright (c) 2015-2021 by Ron Frederick <ronf@timeheart.net> and others.
#
# This program and the accompanying materials are made available under
# the terms of the Eclipse Public License v2.0 which accompanies this
# distribution and is available at:
#
# http://www.eclipse.org/legal/epl-2.0/
#
# This program ma... | 2,324 | Python | .py | 56 | 33.642857 | 75 | 0.63879 | ronf/asyncssh | 1,534 | 150 | 11 | EPL-2.0 | 9/5/2024, 5:14:46 PM (Europe/Amsterdam) |
33,220 | gssapi_stub.py | ronf_asyncssh/tests/gssapi_stub.py | # Copyright (c) 2017-2019 by Ron Frederick <ronf@timeheart.net> and others.
#
# This program and the accompanying materials are made available under
# the terms of the Eclipse Public License v2.0 which accompanies this
# distribution and is available at:
#
# http://www.eclipse.org/legal/epl-2.0/
#
# This program ma... | 3,682 | Python | .py | 99 | 30.272727 | 75 | 0.644451 | ronf/asyncssh | 1,534 | 150 | 11 | EPL-2.0 | 9/5/2024, 5:14:46 PM (Europe/Amsterdam) |
33,221 | server.py | ronf_asyncssh/tests/server.py | # Copyright (c) 2016-2024 by Ron Frederick <ronf@timeheart.net> and others.
#
# This program and the accompanying materials are made available under
# the terms of the Eclipse Public License v2.0 which accompanies this
# distribution and is available at:
#
# http://www.eclipse.org/legal/epl-2.0/
#
# This program ma... | 13,295 | Python | .py | 258 | 39.624031 | 80 | 0.593958 | ronf/asyncssh | 1,534 | 150 | 11 | EPL-2.0 | 9/5/2024, 5:14:46 PM (Europe/Amsterdam) |
33,222 | test_pkcs11.py | ronf_asyncssh/tests/test_pkcs11.py | # Copyright (c) 2020-2021 by Ron Frederick <ronf@timeheart.net> and others.
#
# This program and the accompanying materials are made available under
# the terms of the Eclipse Public License v2.0 which accompanies this
# distribution and is available at:
#
# http://www.eclipse.org/legal/epl-2.0/
#
# This program ma... | 6,427 | Python | .py | 135 | 38.859259 | 79 | 0.640602 | ronf/asyncssh | 1,534 | 150 | 11 | EPL-2.0 | 9/5/2024, 5:14:46 PM (Europe/Amsterdam) |
33,223 | setup.py | nylas_sync-engine/setup.py | import glob
import os
from setuptools import setup, find_packages
setup(
name="inbox-sync",
version="17.3.8", # Release Mar 8, 2017
packages=find_packages(),
install_requires=[],
include_package_data=True,
package_data={
# "inbox-sync": ["alembic.ini"],
# If any package cont... | 2,531 | Python | .py | 67 | 27.283582 | 99 | 0.554923 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,224 | backfix-duplicate-categories.py | nylas_sync-engine/bin/backfix-duplicate-categories.py | #!/usr/bin/env python
# Duplicate categories were created because of an inadequate unique constraint
# in MySQL. This script deletes duplicate categories with no messages
# associated. If two or more duplicate categories exist with associated
# messages, they are consolidated into a single category and the other
# cate... | 7,655 | Python | .py | 138 | 39.384058 | 98 | 0.57717 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,225 | backfix-generic-imap-separators.py | nylas_sync-engine/bin/backfix-generic-imap-separators.py | #!/usr/bin/env python
# We previously didn't store IMAP path separators for generic imap accounts.
# This script backfixes the accounts.
import click
from inbox.crispin import connection_pool
from nylas.logging import get_logger, configure_logging
from inbox.models.backends.generic import GenericAccount
from inbox.mo... | 2,537 | Python | .py | 55 | 36.672727 | 78 | 0.64596 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,226 | script.py.mako | nylas_sync-engine/migrations/script.py.mako | """${message}
Revision ID: ${up_revision}
Revises: ${down_revision}
Create Date: ${create_date}
"""
# revision identifiers, used by Alembic.
revision = ${repr(up_revision)}
down_revision = ${repr(down_revision)}
from alembic import op
import sqlalchemy as sa
${imports if imports else ""}
def upgrade():
${upgra... | 412 | Python | .py | 15 | 25.466667 | 43 | 0.730769 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,227 | env.py | nylas_sync-engine/migrations/env.py | from __future__ import with_statement
from alembic import context
from logging.config import fileConfig
# Interpret the config file for Python logging.
# This line sets up loggers basically.
fileConfig(context.config.config_file_name)
# add your model's MetaData object here
# for 'autogenerate' support
# from myapp ... | 2,894 | Python | .py | 72 | 34.236111 | 78 | 0.700928 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,228 | 013_add_spool_msg.py | nylas_sync-engine/migrations/versions/013_add_spool_msg.py | """Add SpoolMessage table
Revision ID: f7dbd9bf4a6
Revises: 13102e0e6fbd
Create Date: 2014-04-16 03:51:49.484697
"""
# revision identifiers, used by Alembic.
revision = 'f7dbd9bf4a6'
down_revision = '193802835c33'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Ale... | 1,490 | Python | .py | 39 | 30.333333 | 76 | 0.615545 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,229 | 154_add_message_indices.py | nylas_sync-engine/migrations/versions/154_add_message_indices.py | """add message indices
Revision ID: 1f06c15ae796
Revises: 4032709362da
Create Date: 2015-03-26 21:54:13.037161
"""
# revision identifiers, used by Alembic.
revision = '1f06c15ae796'
down_revision = '4032709362da'
from alembic import op
def upgrade():
conn = op.get_bind()
data_sha256_index_exists = conn.ex... | 1,075 | Python | .py | 29 | 30.448276 | 74 | 0.656702 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,230 | 216_add_folder_separator_column_for_generic_.py | nylas_sync-engine/migrations/versions/216_add_folder_separator_column_for_generic_.py | """add folder_separator column for generic imap
Revision ID: 4f8e995d1dba
Revises: 31aae1ecb374
Create Date: 2016-02-02 01:17:24.746355
"""
# revision identifiers, used by Alembic.
revision = '4f8e995d1dba'
down_revision = '4bfecbcc7dbd'
from alembic import op
from sqlalchemy.sql import text
def upgrade():
co... | 840 | Python | .py | 20 | 39 | 92 | 0.758621 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,231 | 077_add_supports_condstore_column_to_.py | nylas_sync-engine/migrations/versions/077_add_supports_condstore_column_to_.py | """add supports_condstore column to generic account
Revision ID: 3c74cbe7882e
Revises: 3c02d8204335
Create Date: 2014-08-06 14:41:01.072742
"""
# revision identifiers, used by Alembic.
revision = '3c74cbe7882e'
down_revision = '3de3979f94bd'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.add... | 532 | Python | .py | 15 | 30.333333 | 75 | 0.715128 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,232 | 070_fix_folder_easfoldersyncstatus_unique_constraints.py | nylas_sync-engine/migrations/versions/070_fix_folder_easfoldersyncstatus_unique_constraints.py | """Fix Folder, EASFolderSyncStatus unique constraints
Revision ID: 2525c5245cc2
Revises: 479b3b84a73e
Create Date: 2014-07-28 18:57:24.476123
"""
# revision identifiers, used by Alembic.
revision = '2525c5245cc2'
down_revision = '479b3b84a73e'
from alembic import op
import sqlalchemy as sa
def upgrade():
from... | 1,244 | Python | .py | 29 | 33.344828 | 73 | 0.621779 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,233 | 069_aol.py | nylas_sync-engine/migrations/versions/069_aol.py | """aol
Revision ID: 479b3b84a73e
Revises: 1ceff61ec112
Create Date: 2014-07-22 17:08:39.477001
"""
# revision identifiers, used by Alembic.
revision = '479b3b84a73e'
down_revision = '1ceff61ec112'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.create_table('aolaccount',
s... | 686 | Python | .py | 20 | 25.3 | 72 | 0.594225 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,234 | 113_add_custom_imap_overrides.py | nylas_sync-engine/migrations/versions/113_add_custom_imap_overrides.py | """Add custom IMAP overrides
Revision ID: 26bfb2e45c47
Revises:26911668870a
Create Date: 2014-10-17 01:41:47.989310
"""
# revision identifiers, used by Alembic.
revision = '26bfb2e45c47'
down_revision = '26911668870a'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.add_column('imapaccount', s... | 1,309 | Python | .py | 28 | 32.035714 | 77 | 0.540456 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,235 | 119_store_full_message_body.py | nylas_sync-engine/migrations/versions/119_store_full_message_body.py | """store full message body
Revision ID: 58732bb5d14b
Revises: 26911668870a
Create Date: 2014-10-22 17:37:10.712061
"""
# revision identifiers, used by Alembic.
revision = '58732bb5d14b'
down_revision = '4634999269'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.add_column('message', sa.Colum... | 660 | Python | .py | 18 | 30.722222 | 72 | 0.654574 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,236 | 177_add_run_state_eas_folderstatus.py | nylas_sync-engine/migrations/versions/177_add_run_state_eas_folderstatus.py | """add run state to eas folders
Revision ID: 2b9dd6f7593a
Revises: 48a1991e5dbd
Create Date: 2015-05-28 00:47:47.636511
"""
# revision identifiers, used by Alembic.
revision = '2b9dd6f7593a'
down_revision = '48a1991e5dbd'
from alembic import op
import sqlalchemy as sa
def upgrade():
from inbox.ignition import... | 942 | Python | .py | 24 | 31.666667 | 105 | 0.668132 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,237 | 089_revert_encryption.py | nylas_sync-engine/migrations/versions/089_revert_encryption.py | """ Revert encryption
Revision ID: 2c577a8a01b7
Revises: 2b89164aa9cd
Create Date: 2014-09-06 03:24:54.292086
"""
# revision identifiers, used by Alembic.
revision = '2c577a8a01b7'
down_revision = '24e9afe91349'
from alembic import op
import sqlalchemy as sa
def upgrade():
# Block table
op.drop_column('b... | 1,859 | Python | .py | 51 | 28.686275 | 78 | 0.641457 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,238 | 215_add_actionlog_status_type_index.py | nylas_sync-engine/migrations/versions/215_add_actionlog_status_type_index.py | """add actionlog (status, type) index
Revision ID: 4bfecbcc7dbd
Revises: 4b83e064dd49
Create Date: 2016-02-11 16:49:20.765262
"""
# revision identifiers, used by Alembic.
revision = '4bfecbcc7dbd'
down_revision = '4b83e064dd49'
from alembic import op
def upgrade():
op.create_index('idx_status_type', 'actionlo... | 458 | Python | .py | 14 | 29.142857 | 71 | 0.71789 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,239 | 054_dont_specially_store_mailing_list_.py | nylas_sync-engine/migrations/versions/054_dont_specially_store_mailing_list_.py | """Dont specially store mailing list headers
Revision ID: 5143154fb1a2
Revises: 3795b2a97af1
Create Date: 2014-07-16 22:19:27.152773
"""
# revision identifiers, used by Alembic.
revision = '5143154fb1a2'
down_revision = '3795b2a97af1'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import my... | 841 | Python | .py | 21 | 33.857143 | 76 | 0.684729 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,240 | 163_drop_transaction_snapshot.py | nylas_sync-engine/migrations/versions/163_drop_transaction_snapshot.py | """drop transaction snapshot
Revision ID: 457164360472
Revises:2235895f313b
Create Date: 2015-05-06 18:31:46.061688
"""
# revision identifiers, used by Alembic.
revision = '457164360472'
down_revision = '2235895f313b'
from alembic import op
def upgrade():
op.drop_column(u'transaction', 'snapshot')
def downg... | 350 | Python | .py | 13 | 24.692308 | 46 | 0.781155 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,241 | 037_shorten_addresses.py | nylas_sync-engine/migrations/versions/037_shorten_addresses.py | """Shorten email addresses so they can be indexed by default
Revision ID: 1d7374c286c5
Revises: 21878b1b3d4b
Create Date: 2014-06-06 21:55:51.363742
"""
# revision identifiers, used by Alembic.
revision = '1d7374c286c5'
down_revision = '21878b1b3d4b'
from alembic import op
from sqlalchemy.dialects import mysql
de... | 648 | Python | .py | 16 | 38 | 73 | 0.758013 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,242 | 076_add_thread_order_column.py | nylas_sync-engine/migrations/versions/076_add_thread_order_column.py | """add thread order column
Revision ID: 3de3979f94bd
Revises: 322c2800c401
Create Date: 2014-07-25 15:38:30.254843
"""
# revision identifiers, used by Alembic.
revision = '3de3979f94bd'
down_revision = '1763103db266'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.add_column("message", sa.Col... | 473 | Python | .py | 15 | 26.866667 | 66 | 0.704444 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,243 | 081_move_imapfolder_highestmodseq_to_bigint.py | nylas_sync-engine/migrations/versions/081_move_imapfolder_highestmodseq_to_bigint.py | """move imapfolder highestmodseq to bigint
Revision ID: 1bc2536b8bc6
Revises: 4e3e8abea884
Create Date: 2014-08-18 18:57:29.833221
"""
# revision identifiers, used by Alembic.
revision = '1bc2536b8bc6'
down_revision = '4e3e8abea884'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.alter_column... | 800 | Python | .py | 21 | 30.380952 | 69 | 0.674026 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,244 | 045_new_password_storage.py | nylas_sync-engine/migrations/versions/045_new_password_storage.py | """Store passwords in plaintext.
Revision ID: 7a117720554
Revises: 247cd689758c
Create Date: 2014-06-30 20:36:30.705550
"""
# revision identifiers, used by Alembic.
revision = '7a117720554'
down_revision = '247cd689758c'
import os
from alembic import op
import sqlalchemy as sa
# We're deleting this value from the ... | 2,941 | Python | .py | 71 | 33.492958 | 78 | 0.657765 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,245 | 024_remote_folders_and_inbox_tags_split.py | nylas_sync-engine/migrations/versions/024_remote_folders_and_inbox_tags_split.py | """more folder names, separate remote folders and inbox tags
Revision ID: 4c1eb89f6bed
Revises: 4c529b9bc68d
Create Date: 2014-05-01 02:20:00.936927
"""
# revision identifiers, used by Alembic.
revision = '4c1eb89f6bed'
down_revision = '4e04f752b7ad'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.o... | 16,295 | Python | .py | 318 | 34.707547 | 79 | 0.524978 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,246 | 023_tighten_nullable_constraints_on_.py | nylas_sync-engine/migrations/versions/023_tighten_nullable_constraints_on_.py | """Tighten nullable constraints on ImapUids.
Will help prevent future heisenbugs.
Revision ID: 4e04f752b7ad
Revises: 2c313b6ddd9b
Create Date: 2014-05-08 19:26:07.253333
"""
# revision identifiers, used by Alembic.
revision = '4e04f752b7ad'
down_revision = '2c313b6ddd9b'
from alembic import op
from sqlalchemy.ex... | 1,375 | Python | .py | 33 | 36.484848 | 77 | 0.725076 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,247 | 152_add_message_id_to_event.py | nylas_sync-engine/migrations/versions/152_add_message_id_to_event.py | """add message column to event
Revision ID: 211e93aff1e1
Revises: 2493281d621
Create Date: 2015-03-20 18:50:29.961734
"""
# revision identifiers, used by Alembic.
revision = '211e93aff1e1'
down_revision = '2f3c8fa3fc3a'
from alembic import op
from sqlalchemy.sql import text
def upgrade():
conn = op.get_bind()... | 867 | Python | .py | 21 | 37.333333 | 86 | 0.725537 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,248 | 235_change_imapfolderinfo_column.py | nylas_sync-engine/migrations/versions/235_change_imapfolderinfo_column.py | """empty Change imapfolderinfo uidnext to bigint from int
Revision ID: 34815f9e639c
Revises: 53e6a7446c45
Create Date: 2016-10-14 23:13:19.620120
"""
# revision identifiers, used by Alembic.
revision = '34815f9e639c'
down_revision = '53e6a7446c45'
from alembic import op
import sqlalchemy as sa
def upgrade():
... | 795 | Python | .py | 20 | 31.95 | 69 | 0.674055 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,249 | 158_update_eas_schema_part_2.py | nylas_sync-engine/migrations/versions/158_update_eas_schema_part_2.py | """update_eas_schema_part_2
Revision ID: 5aa3f27457c
Revises: 18064f5205dd
Create Date: 2015-04-06 23:22:23.038022
"""
# revision identifiers, used by Alembic.
revision = '5aa3f27457c'
down_revision = '18064f5205dd'
from alembic import op
def upgrade():
from inbox.ignition import main_engine
engine = main... | 1,976 | Python | .py | 46 | 35.565217 | 74 | 0.710417 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,250 | 090_parts_block_ids.py | nylas_sync-engine/migrations/versions/090_parts_block_ids.py | """relationship between blocks and parts is 1-to-many
Revision ID: 2b89164aa9cd
Revises: 4e3e8abea884
Create Date: 2014-08-27 16:12:06.828258
"""
# revision identifiers, used by Alembic.
revision = '2b89164aa9cd'
down_revision = '2c577a8a01b7'
from datetime import datetime
from alembic import op
import sqlalchemy a... | 1,889 | Python | .py | 48 | 32.104167 | 79 | 0.651366 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,251 | 173_add_owner2.py | nylas_sync-engine/migrations/versions/173_add_owner2.py | """fix owner column length --- it's a varchar(255) on our prod db
when it should be a varchar(1024)
Revision ID: fd32a69381a
Revises: 365071c47fa7
Create Date: 2015-05-11 11:47:01.710610
"""
# revision identifiers, used by Alembic.
revision = 'fd32a69381a'
down_revision = 'd0427f9f3d1'
from alembic import op
from s... | 721 | Python | .py | 20 | 32.35 | 70 | 0.709957 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,252 | 157_update_eas_schema.py | nylas_sync-engine/migrations/versions/157_update_eas_schema.py | """update_eas_schema_part_1
Revision ID: 18064f5205dd
Revises: 3c7f059a68ba
Create Date: 2015-04-06 22:15:51.908303
"""
# revision identifiers, used by Alembic.
revision = '18064f5205dd'
down_revision = '3c7f059a68ba'
from alembic import op
def upgrade():
from inbox.ignition import main_engine
engine = ma... | 3,570 | Python | .py | 78 | 37.384615 | 77 | 0.671655 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,253 | 167_create_index_for_querying_messages_by_.py | nylas_sync-engine/migrations/versions/167_create_index_for_querying_messages_by_.py | """create index for querying messages by namespace and is_created
Revision ID: 576f5310e8fc
Revises: 3d4f5741e1d7
Create Date: 2015-05-19 15:47:16.760020
"""
# revision identifiers, used by Alembic.
revision = '576f5310e8fc'
down_revision = '3d4f5741e1d7'
from alembic import op
def upgrade():
op.create_index(... | 532 | Python | .py | 14 | 34.428571 | 77 | 0.739216 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,254 | 096_migrate_secret_data.py | nylas_sync-engine/migrations/versions/096_migrate_secret_data.py | """migrate_secret_data
Revision ID: 38c29430efeb
Revises: 1683790906cf
Create Date: 2014-09-18 03:03:42.131932
"""
# revision identifiers, used by Alembic.
revision = '38c29430efeb'
down_revision = '1683790906cf'
import sqlalchemy as sa
def upgrade():
from inbox.config import config
import nacl.secret
... | 2,459 | Python | .py | 59 | 31.661017 | 79 | 0.620588 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,255 | 123_remove_gmail_inbox_syncs.py | nylas_sync-engine/migrations/versions/123_remove_gmail_inbox_syncs.py | """Remove gmail inbox syncs
Revision ID: 3c743bd31ee2
Revises:476c5185121b
Create Date: 2014-12-08 03:53:36.829238
"""
# revision identifiers, used by Alembic.
revision = '3c743bd31ee2'
down_revision = '476c5185121b'
def upgrade():
# Remove UIDs and sync status for inbox IMAP syncs -- otherwise
# archives/... | 1,697 | Python | .py | 38 | 36.052632 | 78 | 0.675758 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,256 | 171_update_easuid_schema_3.py | nylas_sync-engine/migrations/versions/171_update_easuid_schema_3.py | """update_easuid_schema_3.py
Revision ID: 584356bf23a3
Revises: 3ee78a8b1ac6
Create Date: 2015-05-19 21:21:36.593525
"""
# revision identifiers, used by Alembic.
revision = '584356bf23a3'
down_revision = '3ee78a8b1ac6'
import sqlalchemy as sa
def upgrade():
from sqlalchemy.ext.declarative import declarative_b... | 1,020 | Python | .py | 29 | 30.068966 | 79 | 0.708163 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,257 | 227_remove_message_foreignkeys.py | nylas_sync-engine/migrations/versions/227_remove_message_foreignkeys.py | """Remove Message ForeignKeys
Revision ID: 17b147c1d53c
Revises: 2dbf6da0775b
Create Date: 2016-08-22 18:19:12.911710
"""
# revision identifiers, used by Alembic.
revision = '17b147c1d53c'
down_revision = '2dbf6da0775b'
from alembic import op
from sqlalchemy.sql import text
def upgrade():
conn = op.get_bind()... | 1,204 | Python | .py | 29 | 32.310345 | 70 | 0.628106 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,258 | 162_update_folder_unique_constraint.py | nylas_sync-engine/migrations/versions/162_update_folder_unique_constraint.py | """update folder unique constraint
Revision ID: 2235895f313b
Revises: 365071c47fa7
Create Date: 2015-05-12 01:51:34.556738
"""
# revision identifiers, used by Alembic.
revision = '2235895f313b'
down_revision = '365071c47fa7'
from alembic import op
def upgrade():
op.create_unique_constraint('account_id_2', 'fo... | 709 | Python | .py | 18 | 31.666667 | 72 | 0.628111 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,259 | 192_add_receivedrecentdate_column_to_threads.py | nylas_sync-engine/migrations/versions/192_add_receivedrecentdate_column_to_threads.py | """add receivedrecentdate column to threads
Revision ID: 2758cefad87d
Revises: 246a6bf050bc
Create Date: 2015-07-17 20:40:31.951910
"""
# revision identifiers, used by Alembic.
revision = '2758cefad87d'
down_revision = '47aec237051e'
from alembic import op
import sqlalchemy as sa
def upgrade():
from inbox.ign... | 1,120 | Python | .py | 29 | 31.551724 | 74 | 0.672207 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,260 | 063_drop_misc_keyval_column_on_parts.py | nylas_sync-engine/migrations/versions/063_drop_misc_keyval_column_on_parts.py | """Drop misc_keyval column on parts
We're currently neither using it nor doing length checking, which is
causing problems.
Revision ID: 4fd3fcd46a3b
Revises: 4c03aaa1fa47
Create Date: 2014-07-19 04:26:55.064832
"""
# revision identifiers, used by Alembic.
revision = '4fd3fcd46a3b'
down_revision = '4c03aaa1fa47'
from ... | 453 | Python | .py | 15 | 28.266667 | 68 | 0.782407 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,261 | 225_drop_messagecategory_foreign_keys.py | nylas_sync-engine/migrations/versions/225_drop_messagecategory_foreign_keys.py | """drop messagecategory foreign keys
Revision ID: 25129e0316d4
Revises: 29a1f2ef5653
Create Date: 2016-05-26 00:07:08.261977
"""
# revision identifiers, used by Alembic.
revision = '25129e0316d4'
down_revision = '29a1f2ef5653'
from alembic import op
from sqlalchemy.sql import text
def upgrade():
conn = op.get... | 994 | Python | .py | 24 | 33.5 | 74 | 0.669792 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,262 | 066_kill_spoolmessage.py | nylas_sync-engine/migrations/versions/066_kill_spoolmessage.py | """Kill SpoolMessage
Revision ID: 4f3a1f6eaee3
Revises: 2e6120c97485
Create Date: 2014-07-21 17:35:46.026443
"""
# revision identifiers, used by Alembic.
revision = '4f3a1f6eaee3'
down_revision = '2e6120c97485'
from alembic import op
import sqlalchemy as sa
def upgrade():
from sqlalchemy.ext.declarative impor... | 2,448 | Python | .py | 59 | 29.898305 | 76 | 0.568297 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,263 | 121_add_searchindexcursor.py | nylas_sync-engine/migrations/versions/121_add_searchindexcursor.py | """add searchindexcursor.
Revision ID: 526eefc1d600
Revises: 8c2406df6f8
Create Date: 2014-11-24 22:16:26.353729
"""
# revision identifiers, used by Alembic.
revision = '526eefc1d600'
down_revision = '8c2406df6f8'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.create_table(
'searchin... | 1,449 | Python | .py | 33 | 36.606061 | 79 | 0.666667 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,264 | 205_fix_categories_cascade.py | nylas_sync-engine/migrations/versions/205_fix_categories_cascade.py | """fix_categories_cascade
Revision ID: 302d9f6b22f3
Revises: 420ccbea2c5e
Create Date: 2015-09-08 16:38:15.335787
"""
# revision identifiers, used by Alembic.
revision = '302d9f6b22f3'
down_revision = '583e083d4512'
from alembic import op
from sqlalchemy.sql import text
def upgrade():
conn = op.get_bind()
... | 1,537 | Python | .py | 30 | 45.033333 | 88 | 0.686957 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,265 | 191_add_new_events_and_calendars_flags.py | nylas_sync-engine/migrations/versions/191_add_new_events_and_calendars_flags.py | """add new events and calendars flags
Revision ID: 47aec237051e
Revises: 246a6bf050bc
Create Date: 2015-07-08 17:43:01.086439
"""
# revision identifiers, used by Alembic.
revision = '47aec237051e'
down_revision = '246a6bf050bc'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.add_column(
... | 1,152 | Python | .py | 37 | 26.081081 | 68 | 0.675113 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,266 | 094_eas_passwords.py | nylas_sync-engine/migrations/versions/094_eas_passwords.py | """EAS passwords
Revision ID: 427812c1e849
Revises:159607944f52
Create Date: 2014-09-14 22:15:51.225342
"""
# revision identifiers, used by Alembic.
revision = '427812c1e849'
down_revision = '159607944f52'
from datetime import datetime
from alembic import op
import sqlalchemy as sa
def upgrade():
from inbox.i... | 2,164 | Python | .py | 54 | 32.296296 | 77 | 0.653295 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,267 | 031_add_indexes_to_timestamps.py | nylas_sync-engine/migrations/versions/031_add_indexes_to_timestamps.py | """Adds indexes to columns created_at, deleted_at, updated_at
Revision ID: 55f0ff54c776
Revises: 1b6ceae51b43
Create Date: 2014-05-20 05:45:52.568827
"""
# revision identifiers, used by Alembic.
revision = '55f0ff54c776'
down_revision = '1b6ceae51b43'
from alembic import op
from sqlalchemy.ext.declarative import d... | 11,328 | Python | .py | 154 | 68.344156 | 121 | 0.708135 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,268 | 214_introduce_accounttransaction.py | nylas_sync-engine/migrations/versions/214_introduce_accounttransaction.py | """Introduce AccountTransaction.
Revision ID: 4b83e064dd49
Revises: 31aae1ecb374
Create Date: 2016-01-29 22:31:12.638080
"""
# revision identifiers, used by Alembic.
revision = '4b83e064dd49'
down_revision = 'bc1119471fe'
from alembic import op, context
import sqlalchemy as sa
def upgrade():
shard_id = int(co... | 2,626 | Python | .py | 48 | 42.458333 | 87 | 0.607087 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,269 | 028_tag_api_migration.py | nylas_sync-engine/migrations/versions/028_tag_api_migration.py | """tag API migration
Revision ID: 40629415951c
Revises: 924ffd092832
Create Date: 2014-05-13 03:20:41.488982
"""
# revision identifiers, used by Alembic.
revision = '40629415951c'
down_revision = '924ffd092832'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.orm import relationship, sessionmaker
from... | 6,509 | Python | .py | 143 | 31.965035 | 78 | 0.551246 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,270 | 213_add_metadata_table.py | nylas_sync-engine/migrations/versions/213_add_metadata_table.py | """Add metadata table
Revision ID: bc1119471fe
Revises: 31aae1ecb374
Create Date: 2016-01-26 06:01:15.339018
"""
# revision identifiers, used by Alembic.
revision = 'bc1119471fe'
down_revision = '501f6b2fef28'
from alembic import op, context
import sqlalchemy as sa
def upgrade():
from inbox.sqlalchemy_ext.uti... | 3,223 | Python | .py | 61 | 45.032787 | 78 | 0.643288 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,271 | 142_add_sync_run_bit.py | nylas_sync-engine/migrations/versions/142_add_sync_run_bit.py | """Add sync_should_run bit to Account
Revision ID: 2d8a350b4885
Revises: 3ab34bc85c8d
Create Date: 2015-02-17 19:39:08.096367
"""
# revision identifiers, used by Alembic.
revision = '2d8a350b4885'
down_revision = '3ab34bc85c8d'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.add_column('accou... | 511 | Python | .py | 15 | 29.4 | 74 | 0.70082 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,272 | 237_add_new_contacts_index.py | nylas_sync-engine/migrations/versions/237_add_new_contacts_index.py | """Add new contacts Index
Revision ID: 780b1dabd51
Revises: 3eb4f30c8ed3
Create Date: 2017-02-09 01:50:33.546883
"""
# revision identifiers, used by Alembic.
revision = '780b1dabd51'
down_revision = '3eb4f30c8ed3'
from alembic import op
from sqlalchemy.sql import text
def upgrade():
conn = op.get_bind()
c... | 592 | Python | .py | 18 | 28.111111 | 84 | 0.701413 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,273 | 197_add_message_categories_change_counter.py | nylas_sync-engine/migrations/versions/197_add_message_categories_change_counter.py | """Add Message.categories_change_counter
Revision ID: 3cf51fb0e76a
Revises: 691fa97024d
Create Date: 2015-07-23 22:56:25.945108
"""
# revision identifiers, used by Alembic.
revision = '3cf51fb0e76a'
down_revision = '4fa0540482f8'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.alter_column(
... | 936 | Python | .py | 26 | 28.807692 | 76 | 0.641509 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,274 | 206_add_phone_numbers_table.py | nylas_sync-engine/migrations/versions/206_add_phone_numbers_table.py | """create phone number table
Revision ID: 2ac4e3c4e049
Revises: 3a58d466f61d
Create Date: 2015-06-30 21:21:56.843813
"""
# revision identifiers, used by Alembic.
revision = 'gu8eqpm6f2x1n0fg'
down_revision = '302d9f6b22f3'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
def up... | 1,502 | Python | .py | 36 | 34.722222 | 74 | 0.655007 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,275 | 075_drop_contacts_search_signals.py | nylas_sync-engine/migrations/versions/075_drop_contacts_search_signals.py | """drop contacts search signals
Revision ID: 1763103db266
Revises: 3c02d8204335
Create Date: 2014-08-07 04:50:58.382371
"""
# revision identifiers, used by Alembic.
revision = '1763103db266'
down_revision = '3c02d8204335'
from alembic import op
def upgrade():
op.drop_table('searchsignal')
op.drop_table('s... | 391 | Python | .py | 14 | 25.5 | 40 | 0.772358 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,276 | 223_time_mixins_fix.py | nylas_sync-engine/migrations/versions/223_time_mixins_fix.py | """Drop unused timestamp mixins
Revision ID: 539ce0291298
Revises: 361972a1de3e
Create Date: 2016-05-05 17:58:05.637106
"""
# revision identifiers, used by Alembic.
revision = '539ce0291298'
down_revision = '361972a1de3e'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
from sqla... | 4,849 | Python | .py | 79 | 48.481013 | 107 | 0.624264 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,277 | 073_generic_providers.py | nylas_sync-engine/migrations/versions/073_generic_providers.py | # flake8: noqa: F821
# Not 100% sure where Secret is, but it may have been refactored away.
"""generic_imap
Revision ID: 43cd2de5ad85
Revises: 2525c5245cc2
Create Date: 2014-08-01 14:36:09.980388
"""
# revision identifiers, used by Alembic.
revision = '43cd2de5ad85'
down_revision = '4e93522b5b62'
from alembic impo... | 5,143 | Python | .py | 115 | 31.930435 | 72 | 0.574089 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,278 | 136_add_actionlog_index.py | nylas_sync-engine/migrations/versions/136_add_actionlog_index.py | """add actionlog index
Revision ID: 39fa82d3168e
Revises: 4ee8aab06ee
Create Date: 2015-02-11 21:14:14.402620
"""
# revision identifiers, used by Alembic.
revision = '39fa82d3168e'
down_revision = '4ee8aab06ee'
from alembic import op
def upgrade():
op.create_index('ix_actionlog_status_retries', 'actionlog',
... | 468 | Python | .py | 14 | 29.857143 | 72 | 0.730942 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,279 | 020_store_webhook_parameters.py | nylas_sync-engine/migrations/versions/020_store_webhook_parameters.py | """store webhook parameters
Revision ID: 10ef1d46f016
Revises: 5a787816e2bc
Create Date: 2014-05-01 23:26:27.531705
"""
# revision identifiers, used by Alembic.
revision = '10ef1d46f016'
down_revision = '5a787816e2bc'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
def upgrade... | 2,470 | Python | .py | 51 | 39.823529 | 74 | 0.639154 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,280 | 084_mutable_drafts.py | nylas_sync-engine/migrations/versions/084_mutable_drafts.py | """Mutable drafts
Revision ID: 10db12da2005
Revises: 43e5867a6ef1
Create Date: 2014-08-22 22:04:10.763048
"""
# revision identifiers, used by Alembic.
revision = '10db12da2005'
down_revision = '10a1129fe685'
from alembic import op
from sqlalchemy.sql import text
import sqlalchemy as sa
def upgrade():
from in... | 1,510 | Python | .py | 42 | 28.214286 | 65 | 0.630674 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,281 | 209_recreate_easuid_index.py | nylas_sync-engine/migrations/versions/209_recreate_easuid_index.py | """Re-create EASUid index.
Revision ID: 3618838f5bc6
Revises: 1962d17d1c0a
Create Date: 2015-11-06 00:35:50.859321
"""
# revision identifiers, used by Alembic.
revision = '3618838f5bc6'
down_revision = '1962d17d1c0a'
from alembic import op
from sqlalchemy.sql import text
def upgrade():
conn = op.get_bind()
... | 682 | Python | .py | 21 | 27.619048 | 76 | 0.673813 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,282 | 148_add_last_modified_column_for_events.py | nylas_sync-engine/migrations/versions/148_add_last_modified_column_for_events.py | """add last_modified column for events
Revision ID: 54dcea22a268
Revises: 486c7fa5b533
Create Date: 2015-03-16 23:15:55.908307
"""
# revision identifiers, used by Alembic.
revision = '54dcea22a268'
down_revision = '486c7fa5b533'
from alembic import op
from sqlalchemy.sql import text
def upgrade():
conn = op.g... | 634 | Python | .py | 18 | 32.444444 | 77 | 0.743421 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,283 | 128_fix_cascades.py | nylas_sync-engine/migrations/versions/128_fix_cascades.py | """fix_cascades
Revision ID: 284227d72f51
Revises: 581e91bd7141
Create Date: 2015-01-15 14:03:36.379402
"""
# revision identifiers, used by Alembic.
revision = '284227d72f51'
down_revision = '581e91bd7141'
from alembic import op
def upgrade():
connection = op.get_bind()
connection.execute(
'''
... | 1,263 | Python | .py | 29 | 38.137931 | 146 | 0.741436 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,284 | 107_drop_eas_state.py | nylas_sync-engine/migrations/versions/107_drop_eas_state.py | """Drop eas_state
Revision ID: 3cea90bfcdea
Revises: 118b3cdd0185
Create Date: 2014-10-01 19:31:24.110587
"""
# revision identifiers, used by Alembic.
revision = '3cea90bfcdea'
down_revision = '118b3cdd0185'
from alembic import op
import sqlalchemy as sa
def upgrade():
from inbox.ignition import main_engine
... | 573 | Python | .py | 19 | 27 | 49 | 0.750459 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,285 | 166_migrate_body_format.py | nylas_sync-engine/migrations/versions/166_migrate_body_format.py | """migrate body format
Revision ID: 3d4f5741e1d7
Revises: 29698176aa8d
Create Date: 2015-05-10 03:16:04.846781
"""
# revision identifiers, used by Alembic.
revision = '3d4f5741e1d7'
down_revision = '29698176aa8d'
import sqlalchemy as sa
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm imp... | 1,403 | Python | .py | 36 | 31.861111 | 71 | 0.664945 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,286 | 055_add_account_liveness.py | nylas_sync-engine/migrations/versions/055_add_account_liveness.py | """add account liveness
Revision ID: 4b4674f1a726
Revises: 1925c535a52d
Create Date: 2014-07-15 17:21:31.618746
"""
# revision identifiers, used by Alembic.
revision = '4b4674f1a726'
down_revision = '5143154fb1a2'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.add_column(
'account',
... | 457 | Python | .py | 16 | 25.5625 | 78 | 0.725173 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,287 | 169_update_easuid_schema.py | nylas_sync-engine/migrations/versions/169_update_easuid_schema.py | """update eas schema
Revision ID: 281b07fa75bb
Revises:1740b45aa815
Create Date: 2015-05-19 01:08:57.101681
"""
# revision identifiers, used by Alembic.
revision = '281b07fa75bb'
down_revision = '1740b45aa815'
from alembic import op
def upgrade():
from inbox.ignition import main_engine
engine = main_engin... | 887 | Python | .py | 25 | 30.48 | 73 | 0.71897 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,288 | 232_add_thread_deleted_at.py | nylas_sync-engine/migrations/versions/232_add_thread_deleted_at.py | """At Thread.deleted_at
Revision ID: 4a44b06cd53b
Revises: c48fc8dea1b
Create Date: 2016-09-30 21:37:00.824566
"""
# revision identifiers, used by Alembic.
revision = '4a44b06cd53b'
down_revision = 'c48fc8dea1b'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.add_column('thread', sa.Column('d... | 674 | Python | .py | 18 | 31.777778 | 75 | 0.675926 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,289 | 217_add_genericaccount_ssl_required.py | nylas_sync-engine/migrations/versions/217_add_genericaccount_ssl_required.py | """Add GenericAccount.ssl_required
Revision ID: 3d8b5977eaa8
Revises: 4f8e995d1dba
Create Date: 2016-02-18 21:15:56.703467
"""
# revision identifiers, used by Alembic.
revision = '3d8b5977eaa8'
down_revision = '4f8e995d1dba'
from alembic import op
from sqlalchemy.sql import text
def upgrade():
conn = op.get_b... | 578 | Python | .py | 18 | 28.277778 | 58 | 0.718693 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,290 | 190_eas_add_device_retirement.py | nylas_sync-engine/migrations/versions/190_eas_add_device_retirement.py | """eas_add_device_retirement
Revision ID: 246a6bf050bc
Revises: 3b093f2d7419
Create Date: 2015-07-17 02:46:47.842573
"""
# revision identifiers, used by Alembic.
revision = '246a6bf050bc'
down_revision = '3b093f2d7419'
from alembic import op
import sqlalchemy as sa
def upgrade():
from inbox.ignition import ma... | 856 | Python | .py | 25 | 28.04 | 69 | 0.675577 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,291 | 040_gmailaccount.py | nylas_sync-engine/migrations/versions/040_gmailaccount.py | """gmailaccount
Revision ID: 4085dd542739
Revises: 1c72d8a0120e
Create Date: 2014-06-17 22:48:01.928601
"""
# revision identifiers, used by Alembic.
revision = '4085dd542739'
down_revision = '1c72d8a0120e'
from alembic import op
import sqlalchemy as sa
def upgrade():
print 'Creating new table gmailaccount'
... | 4,976 | Python | .py | 98 | 37.030612 | 77 | 0.567373 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,292 | 059_add_action_log.py | nylas_sync-engine/migrations/versions/059_add_action_log.py | """Add action log
Revision ID: 15dfc756a1b0
Revises:4af5952e8a5b
Create Date: 2014-06-26 02:18:24.575796
"""
# revision identifiers, used by Alembic.
revision = '15dfc756a1b0'
down_revision = '4af5952e8a5b'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.create_table(
'actionlog',
... | 1,810 | Python | .py | 40 | 38.075 | 79 | 0.651532 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,293 | 228_increase_gmailaccount_token_length.py | nylas_sync-engine/migrations/versions/228_increase_gmailaccount_token_length.py | """increase gmailaccount token length
Revision ID: 3df39f4fbdec
Revises: 17b147c1d53c
Create Date: 2016-08-30 19:22:00.546553
"""
# revision identifiers, used by Alembic.
revision = '3df39f4fbdec'
down_revision = '17b147c1d53c'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.alter_column('gma... | 669 | Python | .py | 18 | 34.388889 | 87 | 0.751166 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,294 | 017_haspublicid.py | nylas_sync-engine/migrations/versions/017_haspublicid.py | """HasPublicID
Revision ID: 2c9f3a06de09
Revises: 5093433b073
Create Date: 2014-04-26 04:05:57.715053
"""
from __future__ import division
# revision identifiers, used by Alembic.
revision = '2c9f3a06de09'
down_revision = '5093433b073'
import sys
from gc import collect as garbage_collect
from alembic import op
imp... | 3,002 | Python | .py | 80 | 28.6875 | 76 | 0.602277 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,295 | 120_simplify_transaction_log.py | nylas_sync-engine/migrations/versions/120_simplify_transaction_log.py | """simplify transaction log
Revision ID: 8c2406df6f8
Revises:58732bb5d14b
Create Date: 2014-08-08 01:57:17.144405
"""
# revision identifiers, used by Alembic.
revision = '8c2406df6f8'
down_revision = '58732bb5d14b'
from alembic import op
from sqlalchemy.sql import text
def upgrade():
conn = op.get_bind()
... | 688 | Python | .py | 22 | 25.909091 | 76 | 0.694529 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,296 | 176_add_run_state_folderstatus.py | nylas_sync-engine/migrations/versions/176_add_run_state_folderstatus.py | """add run state to non-eas folders
Revision ID: 48a1991e5dbd
Revises: 6e5b154d917
Create Date: 2015-05-28 00:43:37.868434
"""
# revision identifiers, used by Alembic.
revision = '48a1991e5dbd'
down_revision = '6e5b154d917'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.add_column('imapfolde... | 620 | Python | .py | 16 | 30.25 | 106 | 0.642617 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,297 | 048_remove_storage_of_access_token.py | nylas_sync-engine/migrations/versions/048_remove_storage_of_access_token.py | """remove storage of access_token
Revision ID: 4e44216e9830
Revises: 161b88c17615
Create Date: 2014-07-02 00:48:38.438393
"""
# revision identifiers, used by Alembic.
revision = '4e44216e9830'
down_revision = '161b88c17615'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.drop_column('gmailacc... | 875 | Python | .py | 21 | 32.857143 | 82 | 0.632388 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,298 | 185_backfill_gmail_auth_credentials_table.py | nylas_sync-engine/migrations/versions/185_backfill_gmail_auth_credentials_table.py | """backfill_gmail_auth_credentials_table
Revision ID: 14692efd261b
Revises: 2ac4e3c4e049
Create Date: 2015-07-01 00:26:38.736689
"""
# revision identifiers, used by Alembic.
revision = '14692efd261b'
down_revision = '2ac4e3c4e049'
def upgrade():
import datetime
from sqlalchemy.ext.declarative import declar... | 2,764 | Python | .py | 64 | 31.59375 | 77 | 0.593657 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |
33,299 | 052_store_google_client_id_and_secret_on_.py | nylas_sync-engine/migrations/versions/052_store_google_client_id_and_secret_on_.py | """store google client id and secret on gmailaccounts.
Revision ID: 358d0320397f
Revises: 1925c535a52d
Create Date: 2014-07-14 23:52:43.524840
"""
# revision identifiers, used by Alembic.
revision = '358d0320397f'
down_revision = '1925c535a52d'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.... | 760 | Python | .py | 19 | 30.789474 | 79 | 0.626194 | nylas/sync-engine | 3,502 | 354 | 69 | AGPL-3.0 | 9/5/2024, 5:14:54 PM (Europe/Amsterdam) |