text
stringlengths
0
1.05M
meta
dict
"""add fixtures Revision ID: 0c6de0437b27 Revises: 75b78a5e83a9 Create Date: 2016-03-03 06:45:43.814497 """ # revision identifiers, used by Alembic. revision = '0c6de0437b27' down_revision = '75b78a5e83a9' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa def upgrade(): ###...
{ "repo_name": "avanov/assignment", "path": ".alembic/versions/0c6de0437b27_add_fixtures.py", "copies": "1", "size": "1210", "license": "mit", "hash": 1828435711850721000, "line_mean": 27.8095238095, "line_max": 90, "alpha_frac": 0.6520661157, "autogenerated": false, "ratio": 3.723076923076923, ...
"""add flag for ghost id Revision ID: 93d831aa6fb4 Revises: e3272c2dbf9a Create Date: 2019-01-30 14:55:59.604938 """ import model.utils import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = "93d831aa6fb4" down_revision = "e3272c2dbf9a" branch_labels = None depends_on = No...
{ "repo_name": "all-of-us/raw-data-repository", "path": "rdr_service/alembic/versions/93d831aa6fb4_add_flag_for_ghost_id.py", "copies": "1", "size": "1615", "license": "bsd-3-clause", "hash": -5851108034972173000, "line_mean": 28.9074074074, "line_max": 113, "alpha_frac": 0.6773993808, "autogenerate...
# add Flask-related imports before this point from flask.ext.login import LoginManager, login_user, UserMixin, \ login_required, logout_user, current_user from wtforms import Form, TextField, PasswordField, validators # simpleldap is way more convenient than python-ldap import simpleldap # initialize the Flask app...
{ "repo_name": "karthik339/Agni", "path": "MainDemo/venv/ldap.py", "copies": "1", "size": "2510", "license": "apache-2.0", "hash": 912021227792200600, "line_mean": 28.1860465116, "line_max": 72, "alpha_frac": 0.6155378486, "autogenerated": false, "ratio": 3.6324167872648334, "config_test": false...
"""Add flat position column Revision ID: d21933db9ad8 Revises: 8155b83242eb Create Date: 2021-02-08 16:26:37.190842 """ from alembic import op import sqlalchemy as sa import sqlalchemy.types as types import json class StringyJSON(types.TypeDecorator): """ Stores and retrieves JSON as TEXT for SQLite. F...
{ "repo_name": "Phyks/Flatisfy", "path": "migrations/versions/d21933db9ad8_add_flat_position_column.py", "copies": "1", "size": "1921", "license": "mit", "hash": 280822919124026430, "line_mean": 26.8405797101, "line_max": 88, "alpha_frac": 0.6767308693, "autogenerated": false, "ratio": 3.888663967...
"""add-flexfield-table Revision ID: c239f4080b5c Revises: a97dabbd44f4 Create Date: 2016-11-15 11:40:19.663751 """ # revision identifiers, used by Alembic. revision = 'c239f4080b5c' down_revision = 'a97dabbd44f4' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa def upgrade(eng...
{ "repo_name": "fedspendingtransparency/data-act-broker-backend", "path": "dataactcore/migrations/versions/c239f4080b5c_add_flexfield_table.py", "copies": "1", "size": "1629", "license": "cc0-1.0", "hash": 7003241656159850000, "line_mean": 29.1666666667, "line_max": 103, "alpha_frac": 0.6697360344, ...
"""add flow archive flag Revision ID: 2cc5046d4fae Revises: 36a730c5724c Create Date: 2015-11-03 11:14:36.852502 """ # revision identifiers, used by Alembic. revision = '2cc5046d4fae' down_revision = '36a730c5724c' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Al...
{ "repo_name": "codeforamerica/pittsburgh-purchasing-suite", "path": "migrations/versions/2cc5046d4fae_add_flow_archive_flag.py", "copies": "2", "size": "1031", "license": "bsd-3-clause", "hash": 2380703107156381000, "line_mean": 33.3666666667, "line_max": 114, "alpha_frac": 0.6818622696, "autogener...
"""add follow relation Revision ID: ed1f2e57555c Revises: cd35d0723824 Create Date: 2016-08-20 12:33:36.891000 """ # revision identifiers, used by Alembic. revision = 'ed1f2e57555c' down_revision = 'cd35d0723824' from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import mysql def upgrade(): ...
{ "repo_name": "zlasd/flaskr_exercise", "path": "migrations/versions/ed1f2e57555c_add_follow_relation.py", "copies": "1", "size": "1313", "license": "mit", "hash": -6200963548993626000, "line_mean": 31.0243902439, "line_max": 63, "alpha_frac": 0.6481340442, "autogenerated": false, "ratio": 3.59726...
"""Add foreign key constraints Revision ID: 457bbf802239 Revises: e912ea8b3cb1 Create Date: 2016-01-25 23:04:37.492418 """ # revision identifiers, used by Alembic. revision = '457bbf802239' down_revision = 'e912ea8b3cb1' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa def upg...
{ "repo_name": "thejunglejane/datums", "path": "datums/migrations/versions/457bbf802239_add_foreign_key_constraints.py", "copies": "1", "size": "2149", "license": "mit", "hash": -412883407662309000, "line_mean": 34.2295081967, "line_max": 77, "alpha_frac": 0.6826430898, "autogenerated": false, "ra...
"""add foreign keys Revision ID: 4ec1ca506d1f Revises: f26e5c5e347 Create Date: 2015-03-19 11:34:16.695193 """ # revision identifiers, used by Alembic. revision = '4ec1ca506d1f' down_revision = '1eb29cd1981' from alembic import op def upgrade(): op.create_foreign_key(name="fk_vmmaster_log_step_to_session", ...
{ "repo_name": "2gis/vmmaster", "path": "migrations/alembic/versions/4ec1ca506d1f_add_foreign_keys.py", "copies": "1", "size": "1257", "license": "mit", "hash": -2065848418342795800, "line_mean": 32.972972973, "line_max": 74, "alpha_frac": 0.5250596659, "autogenerated": false, "ratio": 3.774774774...
"""Add formation Revision ID: 3bc5fc4758 Revises: 17034142d9b Create Date: 2015-07-20 22:57:54.221307 """ # revision identifiers, used by Alembic. revision = '3bc5fc4758' down_revision = '17034142d9b' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - please...
{ "repo_name": "jschaf/ibolc", "path": "migrations/versions/3bc5fc4758_add_formation.py", "copies": "2", "size": "1328", "license": "bsd-3-clause", "hash": -4771614496317590000, "line_mean": 29.8837209302, "line_max": 66, "alpha_frac": 0.6626506024, "autogenerated": false, "ratio": 3.3877551020408...
"""Add framework and framework status fields Revision ID: 70_add_framework_status Revises: 60_archive_current_services Create Date: 2015-06-16 09:18:05.389816 """ # revision identifiers, used by Alembic. revision = '70_add_framework_status' down_revision = '60_archive_current_services' from alembic import op import...
{ "repo_name": "alphagov/digitalmarketplace-api", "path": "migrations/versions/70_add_framework_and_status.py", "copies": "3", "size": "1399", "license": "mit", "hash": -5308162077476205000, "line_mean": 33.1219512195, "line_max": 85, "alpha_frac": 0.6740528949, "autogenerated": false, "ratio": 3....
"""add framework lifecycle dates Revision ID: 1140 Revises: 1130 Create Date: 2018-04-24 16:12:57.035498 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '1140' down_revision = '1130' def upgrade(): # ### commands auto generated by Alembic - please adjust...
{ "repo_name": "alphagov/digitalmarketplace-api", "path": "migrations/versions/1140_add_framework_lifecycle_dates.py", "copies": "1", "size": "1468", "license": "mit", "hash": -6641100721981109000, "line_mean": 37.6315789474, "line_max": 105, "alpha_frac": 0.6975476839, "autogenerated": false, "ra...
"""Add framework lot constraint to services Revision ID: 540 Revises: 530 Create Date: 2016-01-26 14:22:07.624062 """ # revision identifiers, used by Alembic. revision = '540' down_revision = '530' from alembic import op import sqlalchemy as sa def upgrade(): op.create_foreign_key('archived_services_framework...
{ "repo_name": "alphagov/digitalmarketplace-api", "path": "migrations/versions/540_add_framework_lot_constraint_to_services.py", "copies": "1", "size": "1032", "license": "mit", "hash": -9182355531036815000, "line_mean": 38.6923076923, "line_max": 160, "alpha_frac": 0.7073643411, "autogenerated": fa...
"""add frec_code to submission model Revision ID: c42d328ef2fa Revises: 4d8408c33fee Create Date: 2017-07-10 13:16:56.855163 """ # revision identifiers, used by Alembic. revision = 'c42d328ef2fa' down_revision = '4d8408c33fee' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa d...
{ "repo_name": "fedspendingtransparency/data-act-broker-backend", "path": "dataactcore/migrations/versions/c42d328ef2fa_add_frec_code_to_submission_model.py", "copies": "1", "size": "1050", "license": "cc0-1.0", "hash": -1435241034188922600, "line_mean": 22.8636363636, "line_max": 81, "alpha_frac": 0....
"""add FREC to user model Revision ID: 4d8408c33fee Revises: da2e50d423ff Create Date: 2017-07-06 13:19:01.155328 """ # revision identifiers, used by Alembic. revision = '4d8408c33fee' down_revision = 'da2e50d423ff' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa def upgrade(...
{ "repo_name": "fedspendingtransparency/data-act-broker-backend", "path": "dataactcore/migrations/versions/4d8408c33fee_add_frec_to_user_model.py", "copies": "1", "size": "2519", "license": "cc0-1.0", "hash": -880519483324606100, "line_mean": 39.6290322581, "line_max": 127, "alpha_frac": 0.6756649464,...
"""add friend invites table Revision ID: 553bdd8a749e Revises: 6f74c797dbd0 Create Date: 2017-10-20 10:06:36.730512 """ # revision identifiers, used by Alembic. revision = '553bdd8a749e' down_revision = '6f74c797dbd0' branch_labels = None depends_on = None import datetime from alembic import op import sqlalchemy as...
{ "repo_name": "dgnorth/drift-base", "path": "alembic/versions/553bdd8a749e_add_friendship_tokens_table.py", "copies": "1", "size": "1767", "license": "mit", "hash": -8503179800919376000, "line_mean": 35.8125, "line_max": 171, "alpha_frac": 0.6977928693, "autogenerated": false, "ratio": 3.11091549...
"""add friendships table Revision ID: 553bdd8a749f Revises: 553bdd8a749e Create Date: 2018-04-19 14:24:33.050913 """ # revision identifiers, used by Alembic. revision = '553bdd8a749f' down_revision = '553bdd8a749e' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa utc_now = sa....
{ "repo_name": "dgnorth/drift-base", "path": "alembic/versions/553bdd8a749f_add_clients_indices.py", "copies": "1", "size": "1137", "license": "mit", "hash": -3139868574635064300, "line_mean": 28.9210526316, "line_max": 79, "alpha_frac": 0.6860158311, "autogenerated": false, "ratio": 2.90051020408...
"""add friendships table Revision ID: 6f74c797dbd0 Revises: b43f41a4f76 Create Date: 2017-10-16 14:24:33.050913 """ # revision identifiers, used by Alembic. revision = '6f74c797dbd0' down_revision = 'b43f41a4f76' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa import datetime ...
{ "repo_name": "dgnorth/drift-base", "path": "alembic/versions/6f74c797dbd0_add_friendships_table.py", "copies": "1", "size": "1772", "license": "mit", "hash": 6065413897428494000, "line_mean": 36.7021276596, "line_max": 165, "alpha_frac": 0.6997742664, "autogenerated": false, "ratio": 3.130742049...
"""Add from_developer also to the ActiveMessageTranslation Revision ID: 2943b8eaa095 Revises: 435d360d3398 Create Date: 2015-05-04 18:59:24.113378 """ # revision identifiers, used by Alembic. revision = '2943b8eaa095' down_revision = '435d360d3398' from alembic import op import sqlalchemy as sa import sqlalchemy.sq...
{ "repo_name": "go-lab/appcomposer", "path": "alembic/versions/2943b8eaa095_add_from_developer_also_to_the_.py", "copies": "3", "size": "4346", "license": "bsd-2-clause", "hash": 5796492947327480000, "line_mean": 41.1941747573, "line_max": 300, "alpha_frac": 0.6502531063, "autogenerated": false, "...
"""add_fsrs_indices Revision ID: dcbb5afa125e Revises: 1ae491ca0925 Create Date: 2016-09-08 14:43:04.547230 """ # revision identifiers, used by Alembic. revision = 'dcbb5afa125e' down_revision = '1ae491ca0925' branch_labels = None depends_on = None from alembic import op def upgrade(engine_name): globals()["u...
{ "repo_name": "fedspendingtransparency/data-act-broker-backend", "path": "dataactcore/migrations/versions/dcbb5afa125e_add_fsrs_indices.py", "copies": "2", "size": "1053", "license": "cc0-1.0", "hash": -2052657953942973400, "line_mean": 24.6829268293, "line_max": 119, "alpha_frac": 0.6866096866, "a...
"""add_fsrs_tables Revision ID: caa6895e7450 Revises: b0445ef35b9a Create Date: 2016-08-26 00:44:49.773600 """ # revision identifiers, used by Alembic. revision = 'caa6895e7450' down_revision = 'b0445ef35b9a' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa def upgrade(engine_...
{ "repo_name": "fedspendingtransparency/data-act-broker-backend", "path": "dataactcore/migrations/versions/caa6895e7450_add_fsrs_tables.py", "copies": "2", "size": "12994", "license": "cc0-1.0", "hash": -3911777001794261000, "line_mean": 53.3682008368, "line_max": 88, "alpha_frac": 0.673464676, "aut...
"""Add full menu to gallery Limitations: - Currently only supports sorting albums by name in normal order (can not be reversed). """ import operator import os from sigal import signals def full_tree(gallery): """full menu tree""" sorted_tree = sorted(gallery.albums.items(), key=operator.itemgetter(0)) ...
{ "repo_name": "153957/153957-theme", "path": "153957_theme/full_menu.py", "copies": "1", "size": "1274", "license": "mit", "hash": 3894610338065509400, "line_mean": 22.1636363636, "line_max": 87, "alpha_frac": 0.6248037677, "autogenerated": false, "ratio": 3.692753623188406, "config_test": fals...
"""Add Full Text Search Revision ID: 488e3dae5a17 Revises: 34fa673d7905 Create Date: 2015-12-07 10:49:44.124657 """ # revision identifiers, used by Alembic. revision = '488e3dae5a17' down_revision = '34fa673d7905' from alembic import op import sqlalchemy as sa import sqlalchemy_utils from sqlalchemy_searchable impo...
{ "repo_name": "iamgroot42/braindump", "path": "migrations/versions/488e3dae5a17_add_full_text_search.py", "copies": "1", "size": "1437", "license": "mit", "hash": -157090821099469920, "line_mean": 36.8157894737, "line_max": 118, "alpha_frac": 0.6972860125, "autogenerated": false, "ratio": 3.38117...
"""add fulltext view Revision ID: 21c0f59b5214 Revises: 37b62c1b2866 Create Date: 2015-06-09 14:29:23.154330 """ # revision identifiers, used by Alembic. revision = '21c0f59b5214' down_revision = '37b62c1b2866' from alembic import op import sqlalchemy as sa from purchasing.data.models import TRIGGER_TUPLES index_...
{ "repo_name": "CityofPittsburgh/pittsburgh-purchasing-suite", "path": "migrations/versions/21c0f59b5214_add_fulltext_view.py", "copies": "3", "size": "3574", "license": "bsd-3-clause", "hash": 6128369421355660000, "line_mean": 36.6210526316, "line_max": 117, "alpha_frac": 0.6253497482, "autogenerat...
"""Add functions in this module usually provide no setter for the lamp's 3D rotation, because one usually implicitly sets the rotation by pointing the light to an object (and specifying an up vector), by using :func:`point_light_to`. """ from os.path import basename import numpy as np from ..imprt import preset_impor...
{ "repo_name": "google/neural-light-transport", "path": "third_party/xiuminglib/xiuminglib/blender/light.py", "copies": "1", "size": "8194", "license": "apache-2.0", "hash": 5003744135845470000, "line_mean": 31.0078125, "line_max": 78, "alpha_frac": 0.6206980718, "autogenerated": false, "ratio": 3...
"""add gain table Revision ID: 40dae38fbfe8 Revises: 37edda381f28 Create Date: 2014-11-01 20:09:35.925118 """ # revision identifiers, used by Alembic. revision = '40dae38fbfe8' down_revision = '37edda381f28' from alembic import op import sqlalchemy as sa def upgrade(): op.create_table('meas_GainHistoryTable',...
{ "repo_name": "USGSDenverPychron/pychron", "path": "migration/versions/40dae38fbfe8_add_gain_table.py", "copies": "1", "size": "1595", "license": "apache-2.0", "hash": -224191695119438370, "line_mean": 31.5510204082, "line_max": 88, "alpha_frac": 0.5542319749, "autogenerated": false, "ratio": 3.8...
"""Add game and player context to events Usage: munerator [options] context Options: -v --verbose Verbose logging --events-socket url ZMQ socket for raw events [default: tcp://127.0.0.1:9001] --context-socket url ZMQ socket for context events [default: tcp://0.0.0.0:9002] --rcon-socket url Z...
{ "repo_name": "aequitas/munerator", "path": "munerator/context.py", "copies": "1", "size": "5383", "license": "mit", "hash": -1535824262468400600, "line_mean": 31.6242424242, "line_max": 85, "alpha_frac": 0.5422626788, "autogenerated": false, "ratio": 3.7643356643356642, "config_test": false, ...
add_game_times = lambda count: ''' insert into game_played_time (author_id, name, duration) values {} on conflict (author_id, name) do update set duration = game_played_time.duration + EXCLUDED.duration where game_played_time.author_id = EXCLUDED.author_id ...
{ "repo_name": "best-coloc-ever/globibot", "path": "bot/plugins/stats/queries.py", "copies": "1", "size": "1060", "license": "mit", "hash": 2606553420464164000, "line_mean": 32.125, "line_max": 76, "alpha_frac": 0.5396226415, "autogenerated": false, "ratio": 3.7062937062937062, "config_test": fa...
"""add gateways table Revision ID: 33f748cdc2f Revises: 956b1aac1 Create Date: 2014-03-22 23:28:27.605724 """ # revision identifiers, used by Alembic. revision = '33f748cdc2f' down_revision = '956b1aac1' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - ple...
{ "repo_name": "CCrypto/ccvpn", "path": "alembic/versions/33f748cdc2f_add_gateways_table.py", "copies": "2", "size": "1179", "license": "mit", "hash": 2198781639251720200, "line_mean": 30.0263157895, "line_max": 78, "alpha_frac": 0.6700593723, "autogenerated": false, "ratio": 3.3211267605633803, ...
import sys,os import numpy as np # # Import the module with the I/O scaffolding of the External Attribute # sys.path.insert(0, os.path.join(sys.path[0], '..')) import extattrib as xa # # The attribute parameters # xa.params = { 'Inputs': ['Input'], 'ZSampMargin' : {'Value': [-5,5], 'Hidden': True, 'Symmetric': True},...
{ "repo_name": "waynegm/OpendTect-External-Attributes", "path": "Python_3/Miscellaneous/ex_addnoise.py", "copies": "2", "size": "1603", "license": "mit", "hash": 899343510564055700, "line_mean": 22.9253731343, "line_max": 99, "alpha_frac": 0.6874610106, "autogenerated": false, "ratio": 2.802447552...
"""Add gem date of import. Revision ID: 848be944cda0 Revises: 0190195e45e0 Create Date: 2020-08-28 09:01:29.442539 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '848be944cda0' down_revision = '0190195e45e0' branch_labels = None depends_on = None def upgrade(...
{ "repo_name": "all-of-us/raw-data-repository", "path": "rdr_service/alembic/versions/848be944cda0_add_gem_date_of_import.py", "copies": "1", "size": "1321", "license": "bsd-3-clause", "hash": 9047747878295444000, "line_mean": 25.42, "line_max": 110, "alpha_frac": 0.6684330053, "autogenerated": fals...
"""Add Gem Pass to genomic set member Revision ID: 67710db9e2e1 Revises: df221cca2299 Create Date: 2020-03-06 11:19:17.165251 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '67710db9e2e1' down_revision = 'df221cca2299' branch_labels = None depends_on = None d...
{ "repo_name": "all-of-us/raw-data-repository", "path": "rdr_service/alembic/versions/67710db9e2e1_add_gem_pass_to_genomic_set_member.py", "copies": "1", "size": "1307", "license": "bsd-3-clause", "hash": -2146856419958424800, "line_mean": 24.6274509804, "line_max": 107, "alpha_frac": 0.6679418516, ...
"""add gem ptsc run id to genomic_set_member Revision ID: 8cda4ff4eba7 Revises: 67710db9e2e1 Create Date: 2020-03-11 08:49:20.970167 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '8cda4ff4eba7' down_revision = '67710db9e2e1' branch_labels = None depends_on = N...
{ "repo_name": "all-of-us/raw-data-repository", "path": "rdr_service/alembic/versions/8cda4ff4eba7_add_gem_ptsc_run_id_to_genomic_set_.py", "copies": "1", "size": "1543", "license": "bsd-3-clause", "hash": 4676863545415982000, "line_mean": 28.6730769231, "line_max": 115, "alpha_frac": 0.6701231367, ...
"""add gender_identity to view Revision ID: 629f994cc809 Revises: fdc0fb9ca67a Create Date: 2019-06-06 13:13:57.319280 """ from alembic import op # revision identifiers, used by Alembic. revision = "629f994cc809" down_revision = "fdc0fb9ca67a" branch_labels = None depends_on = None from rdr_service.dao.alembic_util...
{ "repo_name": "all-of-us/raw-data-repository", "path": "rdr_service/alembic/versions/629f994cc809_add_gender_identity_to_view.py", "copies": "1", "size": "6897", "license": "bsd-3-clause", "hash": -281458404064564300, "line_mean": 34.0101522843, "line_max": 111, "alpha_frac": 0.7107438017, "autogen...
"""Add general_ledger_post_date to award_financial tables Revision ID: e5b90e0b2ff8 Revises: 7dd3f4b007e5 Create Date: 2019-05-09 13:16:09.898165 """ # revision identifiers, used by Alembic. revision = 'e5b90e0b2ff8' down_revision = '7dd3f4b007e5' branch_labels = None depends_on = None from alembic import op import...
{ "repo_name": "fedspendingtransparency/data-act-broker-backend", "path": "dataactcore/migrations/versions/e5b90e0b2ff8_add_general_ledger_post_date_to_award_.py", "copies": "1", "size": "1108", "license": "cc0-1.0", "hash": 8334897830454335000, "line_mean": 25.380952381, "line_max": 111, "alpha_frac"...
"""Add genomes to an existing clinical report. Example usages: * Adding male proband genome (id = 1) to a solo or panel report (clinical_report_id = 100) python add_genome_to_cr.py --p 1 --sex m 100 * Adding female proband (id =1), mother (id = 2) and father genome (id = 3) to a family or panel trio report (cli...
{ "repo_name": "Omicia/omicia_api_examples", "path": "python/ClinicalReportLaunchers/add_genome_to_cr.py", "copies": "1", "size": "8794", "license": "mit", "hash": 2100031464069810400, "line_mean": 44.8020833333, "line_max": 116, "alpha_frac": 0.5402547191, "autogenerated": false, "ratio": 3.90844...
"""add genomic_set_member.aw2f_manifest_job_run_id Revision ID: 355854d777d3 Revises: a2d41894a561 Create Date: 2021-06-22 11:08:51.988993 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import mysql # revision identifiers, used by Alembic. revision = '355854d777d3' down_revision = 'a2d41...
{ "repo_name": "all-of-us/raw-data-repository", "path": "rdr_service/alembic/versions/355854d777d3_add_genomic_set_member_aw2f_manifest_.py", "copies": "1", "size": "1842", "license": "bsd-3-clause", "hash": 531629186283137340, "line_mean": 32.4909090909, "line_max": 145, "alpha_frac": 0.6851248643, ...
"""add_genomic_set_member columns_for_aw3_aw4 Revision ID: 2c3a71f9fc04 Revises: c069abb92cc0 Create Date: 2020-08-25 08:57:17.987756 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import mysql # revision identifiers, used by Alembic. revision = '2c3a71f9fc04' down_revision = 'c069abb92c...
{ "repo_name": "all-of-us/raw-data-repository", "path": "rdr_service/alembic/versions/2c3a71f9fc04_add_genomic_set_member_columns_for_aw3_.py", "copies": "1", "size": "3524", "license": "bsd-3-clause", "hash": 6632828655767912000, "line_mean": 42.5061728395, "line_max": 158, "alpha_frac": 0.6955164586...
"""add geoloc tables Revision ID: 2b35f2f2adcb Revises: 29474f196c96 Create Date: 2015-11-09 00:12:02.604229 """ # revision identifiers, used by Alembic. revision = '2b35f2f2adcb' down_revision = '29474f196c96' branch_labels = None depends_on = None import os import json from alembic import op import sqlalchemy as...
{ "repo_name": "atlefren/beerdatabase", "path": "alembic/versions/2b35f2f2adcb_add_geoloc_tables.py", "copies": "1", "size": "1700", "license": "mit", "hash": -3715522950239192000, "line_mean": 27.813559322, "line_max": 88, "alpha_frac": 0.6641176471, "autogenerated": false, "ratio": 3.11355311355...
"""Add github model Revision ID: 22d18de9decd Revises: 2d33b5d9977a Create Date: 2016-01-25 17:05:44.456193 """ # revision identifiers, used by Alembic. revision = '22d18de9decd' down_revision = '2d33b5d9977a' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic...
{ "repo_name": "lord63/flask_toolbox", "path": "migrations/versions/22d18de9decd_add_github_model.py", "copies": "1", "size": "1515", "license": "mit", "hash": 7080131101656141000, "line_mean": 36.875, "line_max": 99, "alpha_frac": 0.6792079208, "autogenerated": false, "ratio": 3.3223684210526314,...
"""Add github roles to sphinx docs. Based entirely on Doug Hellmann's bitbucket version, but adapted for Github. (https://bitbucket.org/dhellmann/sphinxcontrib-bitbucket/) """ from urlparse import urljoin from docutils import nodes, utils from docutils.parsers.rst.roles import set_classes def make_node(rawtext, ap...
{ "repo_name": "todaychi/hue", "path": "desktop/core/ext-py/boto-2.46.1/docs/source/extensions/githublinks/__init__.py", "copies": "102", "size": "1745", "license": "apache-2.0", "hash": -2095034592550934300, "line_mean": 30.7272727273, "line_max": 71, "alpha_frac": 0.6303724928, "autogenerated": fa...
addglobals = lambda x: globals().update(x) def frange(start, stop, step): return [x*step+start for x in range(0,round(abs((stop-start)/step)+0.5001), int((stop-start)/step<0)*-2+1)] def myrange(x): return random.randint(flr(x[0]), flr(x[1])) def myrange_f(x): retur...
{ "repo_name": "trentspi/PX8", "path": "games/BR/utils.py", "copies": "1", "size": "1399", "license": "mit", "hash": -3019427250104677000, "line_mean": 21.9508196721, "line_max": 79, "alpha_frac": 0.507505361, "autogenerated": false, "ratio": 2.634651600753296, "config_test": false, "has_no_ke...
addglobals = lambda x: globals().update(x) from utils import Vec2, frange class Building(object): def __init__(self, w, h, pos, height, color): self.w = w self.h = h self.pos = pos self.height = height self.color = color self.s = Vec2(0, 0) class Buildings(object):...
{ "repo_name": "trentspi/PX8", "path": "games/BR/buildings.py", "copies": "1", "size": "2688", "license": "mit", "hash": 1416428345949004500, "line_mean": 33.4615384615, "line_max": 108, "alpha_frac": 0.4601934524, "autogenerated": false, "ratio": 3.347447073474471, "config_test": false, "has_...
addglobals = lambda x: globals().update(x) from utils import Vec2 class Tree(object): def __init__(self, pos, height, girth, leaves): self.pos = pos self.height = height self.girth = girth self.leaves = leaves self.s = Vec2(pos.x, pos.y) class Trees(object): def __init...
{ "repo_name": "trentspi/PX8", "path": "games/BR/trees.py", "copies": "1", "size": "2251", "license": "mit", "hash": -4201222314047814700, "line_mean": 34.7301587302, "line_max": 124, "alpha_frac": 0.4837849845, "autogenerated": false, "ratio": 3.2111269614835947, "config_test": true, "has_no_...
"""Add GoLabOAuthUser Revision ID: e220a74734b Revises: 16ac195d729e Create Date: 2015-04-09 20:45:48.373302 """ # revision identifiers, used by Alembic. revision = 'e220a74734b' down_revision = '16ac195d729e' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic...
{ "repo_name": "morelab/appcomposer", "path": "alembic/versions/e220a74734b_add_golaboauthuser.py", "copies": "3", "size": "2043", "license": "bsd-2-clause", "hash": 6444252288711774000, "line_mean": 43.4130434783, "line_max": 125, "alpha_frac": 0.7165932452, "autogenerated": false, "ratio": 3.376...
"""Add google analytics to sphinx documentation imported from sphinxcontrib google analytics package https://bitbucket.org/birkenfeld/sphinx-contrib/src/e758073384efd1ed5ed1e6286301b7bef71b27cf/googleanalytics/ """ from sphinx.errors import ExtensionError def add_ga_javascript(app, pagename, templatename, context, ...
{ "repo_name": "Dekken/tick", "path": "doc/sphinxext/google_analytics.py", "copies": "2", "size": "1518", "license": "bsd-3-clause", "hash": 1482822960633527300, "line_mean": 36.0243902439, "line_max": 121, "alpha_frac": 0.6627140975, "autogenerated": false, "ratio": 3.4578587699316627, "config_...
"""add Google user model Revision ID: ad5ccc47d004 Revises: fe028940e19b Create Date: 2017-02-01 08:38:14.233344 """ from alembic import op import sqlalchemy as sa import sqlalchemy_utils.types.url # revision identifiers, used by Alembic. revision = 'ad5ccc47d004' down_revision = 'fe028940e19b' branch_labels = None...
{ "repo_name": "rjw57/bitsbox", "path": "migrations/versions/ad5ccc47d004_add_google_user_model.py", "copies": "1", "size": "1394", "license": "mit", "hash": -7780925809125393000, "line_mean": 31.4186046512, "line_max": 83, "alpha_frac": 0.6771879484, "autogenerated": false, "ratio": 3.47630922693...
"""Add GradientAccumulator to checkpoint file.""" from absl import app from absl import flags from absl import logging import numpy as np import tensorflow.compat.v1 as tf FLAGS = flags.FLAGS flags.DEFINE_string( "old", "//je-d/home/staging-brain-gpu-dedicated/bert/pretrained_model/converted", "old checkp...
{ "repo_name": "mlcommons/training", "path": "language_model/tensorflow/bert/checkpoint_add_gradacc.py", "copies": "1", "size": "1162", "license": "apache-2.0", "hash": -6056771784004940000, "line_mean": 27.3414634146, "line_max": 78, "alpha_frac": 0.6445783133, "autogenerated": false, "ratio": 3....
"""Add GradientAccumulator to checkpoint file.""" from absl import app from absl import flags from absl import logging import numpy as np import tensorflow.google.compat.v1 as tf FLAGS = flags.FLAGS flags.DEFINE_string( "old", "//je-d/home/staging-brain-gpu-dedicated/bert/pretrained_model/converted", "old...
{ "repo_name": "mlperf/training_results_v0.7", "path": "Google/benchmarks/bert/implementations/bert-research-TF-tpu-v3-8192/checkpoint_add_gradacc.py", "copies": "1", "size": "1168", "license": "apache-2.0", "hash": 6911735071488794000, "line_mean": 28.2, "line_max": 78, "alpha_frac": 0.6464041096, ...
"""Add Graph and GraphCache models Revision ID: 654121a84a33 Revises: fc7bc5c66c63 Create Date: 2020-11-16 21:02:36.249989 """ # revision identifiers, used by Alembic. revision = '654121a84a33' down_revision = 'fc7bc5c66c63' from alembic import op import sqlalchemy as sa def upgrade(): # ### commands auto gen...
{ "repo_name": "google/timesketch", "path": "timesketch/migrations/versions/654121a84a33_.py", "copies": "1", "size": "3278", "license": "apache-2.0", "hash": 8384118425084914000, "line_mean": 39.975, "line_max": 66, "alpha_frac": 0.6555826724, "autogenerated": false, "ratio": 3.432460732984293, ...
"""Add grating_couplers to a component.""" from typing import Callable, List, Tuple from phidl.device_layout import Label import pp from pp.cell import cell from pp.component import Component from pp.components.grating_coupler.elliptical_trenches import ( grating_coupler_te, grating_coupler_tm, ) from pp.rout...
{ "repo_name": "gdsfactory/gdsfactory", "path": "pp/add_grating_couplers.py", "copies": "1", "size": "2276", "license": "mit", "hash": -7820169289808934000, "line_mean": 27.45, "line_max": 81, "alpha_frac": 0.6691564148, "autogenerated": false, "ratio": 3.2056338028169016, "config_test": false, ...
"""add gror columns to summary Revision ID: 6f26f7c49be7 Revises: 64e68e221460 Create Date: 2020-02-17 14:42:24.710777 """ from alembic import op import sqlalchemy as sa import model.utils from rdr_service.participant_enums import PhysicalMeasurementsStatus, QuestionnaireStatus, OrderStatus from rdr_service.partici...
{ "repo_name": "all-of-us/raw-data-repository", "path": "rdr_service/alembic/versions/6f26f7c49be7_add_gror_columns_to_summary.py", "copies": "1", "size": "2587", "license": "bsd-3-clause", "hash": 3599250495784827400, "line_mean": 38.196969697, "line_max": 133, "alpha_frac": 0.7526091998, "autogene...
""" add (groupable) categories Revision ID: 419965394d38 Revises: 2fa92ef6570b Create Date: 2014-09-22 16:33:46.225247 """ # revision identifiers, used by Alembic. revision = '419965394d38' down_revision = '2fa92ef6570b' from alembic import op import sqlalchemy as sa def upgrade(): op.create_table('categorygr...
{ "repo_name": "pyfidelity/rest-seed", "path": "backend/backrest/migrations/versions/419965394d38_add_categories.py", "copies": "1", "size": "1438", "license": "bsd-2-clause", "hash": 2074898051449491500, "line_mean": 31.6818181818, "line_max": 83, "alpha_frac": 0.6481223922, "autogenerated": false,...
"""Add group_permission_id Revision ID: f1ce7950ae8 Revises: 3614197cb5da Create Date: 2014-01-13 16:54:33.181578 """ # revision identifiers, used by Alembic. revision = 'f1ce7950ae8' down_revision = '3614197cb5da' import time import datetime from alembic import op import sqlalchemy as sa import sqlalchemy.sql as s...
{ "repo_name": "zstars/weblabdeusto", "path": "server/src/weblab/db/upgrade/regular/versions/f1ce7950ae8_add_group_permission.py", "copies": "1", "size": "14772", "license": "bsd-2-clause", "hash": -4965578458558324000, "line_mean": 39.694214876, "line_max": 195, "alpha_frac": 0.6216490658, "autogen...
"""add group_provision table Revision ID: 1badb81476e Revises: 220610eeac6 Create Date: 2015-03-24 18:01:10.425116 """ # revision identifiers, used by Alembic. revision = '1badb81476e' down_revision = '220610eeac6' branch_labels = None depends_on = None import sqlalchemy as sa from alembic import op from sqlalchemy...
{ "repo_name": "wappulehti-apy/diilikone-api", "path": "diilikone/migrations/versions/1badb81476e_add_group_provision_table.py", "copies": "1", "size": "1062", "license": "mit", "hash": -8870890568830623000, "line_mean": 22.0869565217, "line_max": 60, "alpha_frac": 0.5960451977, "autogenerated": fal...
"""Add GroupRequest table. Revision ID: 39a5823a808 Revises: a364e6e9c14 Create Date: 2013-09-21 15:40:31.274287 """ # revision identifiers, used by Alembic. revision = '39a5823a808' down_revision = 'a364e6e9c14' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alem...
{ "repo_name": "ucsb-cs/submit", "path": "submit/migrations/versions/39a5823a808_add_grouprequest_tab.py", "copies": "1", "size": "1146", "license": "bsd-2-clause", "hash": 4346621596143835000, "line_mean": 29.972972973, "line_max": 72, "alpha_frac": 0.6701570681, "autogenerated": false, "ratio": ...
"""add groups Revision ID: f2e13b567540 Revises: 6ff1fdc328a5 Create Date: 2018-08-28 13:37:47.945953 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'f2e13b567540' down_revision = '6ff1fdc328a5' branch_labels = None depends_on = None def upgrade(): # ###...
{ "repo_name": "gregcowell/BAM", "path": "migrations/versions/f2e13b567540_add_groups.py", "copies": "2", "size": "2894", "license": "apache-2.0", "hash": -4233407464158037000, "line_mean": 43.5230769231, "line_max": 100, "alpha_frac": 0.6624049758, "autogenerated": false, "ratio": 3.3927315357561...
"""Add groups + permissions to posts Revision ID: 36baffc5df12 Revises: 1b385158fd32 Create Date: 2016-11-02 15:37:12.808143 """ # revision identifiers, used by Alembic. revision = '36baffc5df12' down_revision = '1b385158fd32' from alembic import op import sqlalchemy as sa def upgrade(): op.create_table('grou...
{ "repo_name": "airbnb/knowledge-repo", "path": "knowledge_repo/app/migrations/versions/36baffc5df12_add_groups_permissions_to_posts.py", "copies": "1", "size": "1400", "license": "apache-2.0", "hash": -7581097927115234000, "line_mean": 28.7872340426, "line_max": 78, "alpha_frac": 0.6578571429, "aut...
"""Add hail_endpoint to user Revision ID: 411fcaee167b Revises: 26311efc301f Create Date: 2015-04-25 18:12:55.584619 """ # revision identifiers, used by Alembic. revision = '411fcaee167b' down_revision = '26311efc301f' from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql old_op...
{ "repo_name": "openmaraude/APITaxi_models", "path": "APITaxi_models2/migrations/versions/20150425_18:12:55_411fcaee167b_add_hail_endpoint_to_user.py.py", "copies": "2", "size": "1934", "license": "mit", "hash": -1789294889502129400, "line_mean": 35.4905660377, "line_max": 71, "alpha_frac": 0.67269906...
"""Add handshake support and logging.""" import atexit, os, subprocess, zmq from client_1 import MAYAEXE, kill from client_2 import SETCMD from client_6 import sendrecv COMMAND = ('python("import mayaserver.server;' 'mayaserver.server.runserver(%s)");') #(1) ORIGCOMMAND = COMMAND COMMAND = SETCMD('_handsh...
{ "repo_name": "rgalanakis/practicalmayapython", "path": "src/chapter6/mayaserver/client_7.py", "copies": "1", "size": "1312", "license": "mit", "hash": 7914667642525311000, "line_mean": 30.2380952381, "line_max": 57, "alpha_frac": 0.6295731707, "autogenerated": false, "ratio": 3.2235872235872236,...
"""Add has function and dependent pgcrpyto Revision ID: 5552dfae2cb0 Revises: c225ea8fbf5e Create Date: 2019-09-14 06:19:36.520447 """ # revision identifiers, used by Alembic. revision = '5552dfae2cb0' down_revision = 'c225ea8fbf5e' branch_labels = None depends_on = None from alembic import op import sqlalchemy as ...
{ "repo_name": "fake-name/ReadableWebProxy", "path": "alembic/versions/2019-09-14_5552dfae2cb0_add_hash_function_and_dependent_pgcrpyto.py", "copies": "1", "size": "1402", "license": "bsd-3-clause", "hash": 4563255934391378000, "line_mean": 27.612244898, "line_max": 113, "alpha_frac": 0.7703281027, ...
"""Add hash and parent hash columns Revision ID: c225ea8fbf5e Revises: ea8987f915b8 Create Date: 2019-09-08 16:33:03.743328 """ # revision identifiers, used by Alembic. revision = 'c225ea8fbf5e' down_revision = 'ea8987f915b8' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa fro...
{ "repo_name": "fake-name/ReadableWebProxy", "path": "alembic/versions/2019-09-08_c225ea8fbf5e_add_hash_and_parent_hash_columns.py", "copies": "1", "size": "4843", "license": "bsd-3-clause", "hash": -8766424176848119000, "line_mean": 49.9789473684, "line_max": 135, "alpha_frac": 0.7125748503, "autog...
# AddHeaderForEdgeR/AddHeaderForEdgeR.py - a self annotated version of rgToolFactory.py generated by running rgToolFactory.py # to make a new Galaxy tool called AddHeaderForEdgeR # User mika.yoshimura@riken.jp at 30/01/2015 16:38:14 # rgToolFactory.py # see https://bitbucket.org/fubar/galaxytoolfactory/wiki/Home # # c...
{ "repo_name": "myoshimura080822/tools_of_rnaseq_on_docker_galaxy", "path": "AddGroupIdForDEGAnalysis/AddGroupIdForDEGAnalysis.py", "copies": "1", "size": "32429", "license": "mit", "hash": 4437572277015331300, "line_mean": 42.2963951936, "line_max": 241, "alpha_frac": 0.584261001, "autogenerated": ...
"""addHeadersDuplicated Revision ID: 608afa719fb8 Revises: cdb714f6f374 Create Date: 2016-03-23 10:13:52.614000 """ # revision identifiers, used by Alembic. revision = '608afa719fb8' down_revision = 'cdb714f6f374' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa def upgrade(en...
{ "repo_name": "fedspendingtransparency/data-act-core", "path": "dataactcore/migrations/versions/608afa719fb8_addheadersduplicated.py", "copies": "1", "size": "1402", "license": "cc0-1.0", "hash": 3371912650279566300, "line_mean": 20.90625, "line_max": 91, "alpha_frac": 0.6661911555, "autogenerated"...
"""Add high comp officer fields to detached_award_procurement table Revision ID: 3f24399ddd1b Revises: ad3dd1c0cf20 Create Date: 2019-05-24 09:31:12.678128 """ # revision identifiers, used by Alembic. revision = '3f24399ddd1b' down_revision = 'ad3dd1c0cf20' branch_labels = None depends_on = None from alembic import...
{ "repo_name": "fedspendingtransparency/data-act-broker-backend", "path": "dataactcore/migrations/versions/3f24399ddd1b_add_high_comp_officer_fields_to_.py", "copies": "1", "size": "2692", "license": "cc0-1.0", "hash": 147442505260819140, "line_mean": 45.4137931034, "line_max": 114, "alpha_frac": 0.71...
"""Add high comp officer fields to published_award_financial_assistance table Revision ID: ad3dd1c0cf20 Revises: 5f29b283f23e Create Date: 2019-05-23 08:31:35.225654 """ # revision identifiers, used by Alembic. revision = 'ad3dd1c0cf20' down_revision = '5f29b283f23e' branch_labels = None depends_on = None from alem...
{ "repo_name": "fedspendingtransparency/data-act-broker-backend", "path": "dataactcore/migrations/versions/ad3dd1c0cf20_add_high_comp_officer_fields_to_.py", "copies": "1", "size": "2902", "license": "cc0-1.0", "hash": -5788116176003698000, "line_mean": 49.0344827586, "line_max": 124, "alpha_frac": 0....
"""add-hikes Revision ID: f7888bd46c75 Revises: 820bb005f2c5 Create Date: 2017-02-16 07:36:06.108806 """ # revision identifiers, used by Alembic. revision = 'f7888bd46c75' down_revision = 'fc92ba2ffd7f' from alembic import op import sqlalchemy as sa import geoalchemy2 def upgrade(): ### commands auto generate...
{ "repo_name": "thusoy/blag", "path": "blag/migrations/versions/f7888bd46c75_add_hikes.py", "copies": "1", "size": "1664", "license": "mit", "hash": -8943776809270185000, "line_mean": 35.1739130435, "line_max": 101, "alpha_frac": 0.6748798077, "autogenerated": false, "ratio": 3.314741035856574, ...
"""Add history fields Revision ID: a25a6c551233 Revises: a04da4b32a36 Create Date: 2016-01-29 16:46:54.522253 """ # revision identifiers, used by Alembic. revision = 'a25a6c551233' down_revision = 'a04da4b32a36' from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql def upgrade()...
{ "repo_name": "openmaraude/APITaxi_models", "path": "APITaxi_models2/migrations/versions/20160129_16:46:54_a25a6c551233_add_history_fields.py.py", "copies": "3", "size": "2183", "license": "mit", "hash": -5199625217772000000, "line_mean": 48.6136363636, "line_max": 100, "alpha_frac": 0.6999541915, ...
"""Add history to hail Revision ID: 7d563dd0c13 Revises: 3b8033532af1 Create Date: 2015-04-22 12:12:16.658415 """ # revision identifiers, used by Alembic. revision = '7d563dd0c13' down_revision = '3b8033532af1' from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql sources_enum = ...
{ "repo_name": "openmaraude/APITaxi_models", "path": "APITaxi_models2/migrations/versions/20150422_12:12:16_7d563dd0c13_add_history_to_hail.py.py", "copies": "4", "size": "2670", "license": "mit", "hash": -72732749841591380, "line_mean": 43.5, "line_max": 88, "alpha_frac": 0.6599250936, "autogenerat...
"""Add ifttt integration so users can call their own ifttt hooks.""" import json import re from json import JSONDecodeError import CommonMark from plumeria.command import commands, CommandError from plumeria.core.user_prefs import prefs_manager from plumeria.message import Message from plumeria.perms import direct_o...
{ "repo_name": "sk89q/Plumeria", "path": "orchard/ifttt.py", "copies": "1", "size": "2645", "license": "mit", "hash": 1943384562390999800, "line_mean": 30.4880952381, "line_max": 120, "alpha_frac": 0.6676748582, "autogenerated": false, "ratio": 3.5079575596816976, "config_test": false, "has_no...
"""Add ignore_flag column to genomic_manifest_file and feedback Revision ID: 99fb6b79b5f7 Revises: 50d9eeb498c3 Create Date: 2021-01-04 15:40:41.792027 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '99fb6b79b5f7' down_revision = '50d9eeb498c3' branch_labels = ...
{ "repo_name": "all-of-us/raw-data-repository", "path": "rdr_service/alembic/versions/99fb6b79b5f7_add_ignore_flag_column_to_genomic_.py", "copies": "1", "size": "1344", "license": "bsd-3-clause", "hash": -1411925241348412000, "line_mean": 25.88, "line_max": 107, "alpha_frac": 0.6785714286, "autogen...
""" Add image model table definition and relationship to product Revision ID: 0051eed6ee5d Revises: cad65db44e62 Create Date: 2016-07-16 00:57:34.439371 """ # revision identifiers, used by Alembic. revision = '0051eed6ee5d' down_revision = '4d2c8abdff95' from alembic import op import sqlalchemy as sa def upgrade(...
{ "repo_name": "betterlife/flask-psi", "path": "psi/migrations/versions/26_0051eed6ee5d_.py", "copies": "2", "size": "1274", "license": "mit", "hash": -534509956291055200, "line_mean": 30.0731707317, "line_max": 65, "alpha_frac": 0.6711145997, "autogenerated": false, "ratio": 3.424731182795699, ...
"""add indexes Revision ID: 4328f2c08f05 Revises: eb61567ea005 Create Date: 2019-02-05 19:23:02.744161 """ from alembic import op import sqlalchemy as sa from docassemble.webapp.database import dbtableprefix # revision identifiers, used by Alembic. revision = '4328f2c08f05' down_revision = 'eb61567ea005' branch_lab...
{ "repo_name": "jhpyle/docassemble", "path": "docassemble_webapp/docassemble/webapp/alembic/versions/4328f2c08f05_add_indexes.py", "copies": "1", "size": "4573", "license": "mit", "hash": 3217402970439389000, "line_mean": 62.5138888889, "line_max": 104, "alpha_frac": 0.7089438006, "autogenerated": f...
"""Add indexes to improve various sql query performance Revision ID: c107fa0468ff Revises: 236318ee3d3e Create Date: 2017-08-22 15:33:13.706301 """ # revision identifiers, used by Alembic. revision = 'c107fa0468ff' down_revision = '236318ee3d3e' from alembic import op import sqlalchemy as sa import doorman.database...
{ "repo_name": "mwielgoszewski/doorman", "path": "migrations/versions/c107fa0468ff_add_indexes_to_improve_various_sql_.py", "copies": "1", "size": "1891", "license": "mit", "hash": -6286771938265299000, "line_mean": 47.4871794872, "line_max": 129, "alpha_frac": 0.6901110524, "autogenerated": false, ...
"""add index for geo DB Revision ID: 84fc7bc201e6 Revises: 2159f60b94ab Create Date: 2017-08-20 12:42:40.461404 """ from alembic import op # revision identifiers, used by Alembic. revision = '84fc7bc201e6' down_revision = '2159f60b94ab' def upgrade(): # ### commands auto generated by Alembic - please adjust! ...
{ "repo_name": "HaManhDong/pgscm", "path": "migrations/versions/84fc7bc201e6_add_index_for_geo_db.py", "copies": "2", "size": "1159", "license": "apache-2.0", "hash": -7125211678547969000, "line_mean": 33.0882352941, "line_max": 75, "alpha_frac": 0.6548748921, "autogenerated": false, "ratio": 3.21...
"""add indexing to DUNS table Revision ID: d35ecdfc1da7 Revises: 4b1ee78268fb Create Date: 2017-08-31 12:03:16.395760 """ # revision identifiers, used by Alembic. revision = 'd35ecdfc1da7' down_revision = '4b1ee78268fb' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa def upgr...
{ "repo_name": "fedspendingtransparency/data-act-broker-backend", "path": "dataactcore/migrations/versions/d35ecdfc1da7_add_indexing_to_duns_table.py", "copies": "1", "size": "1220", "license": "cc0-1.0", "hash": 4112935135808350000, "line_mean": 26.7272727273, "line_max": 99, "alpha_frac": 0.68442622...
"""add index Revision ID: 52a2df18b1d4 Revises: 2bca06a823a0 Create Date: 2018-12-14 17:39:48.110670 """ from alembic import op revision = '52a2df18b1d4' down_revision = '2bca06a823a0' branch_labels = None depends_on = None def upgrade(): op.create_index('idx_spaceId', 'environments', ['space_id'], unique=Fals...
{ "repo_name": "meolu/walle-web", "path": "migrations/versions/52a2df18b1d4_02_add_index.py", "copies": "1", "size": "1613", "license": "apache-2.0", "hash": -3157693497198885400, "line_mean": 31.26, "line_max": 109, "alpha_frac": 0.6608803472, "autogenerated": false, "ratio": 2.970534069981584, ...
"""Add indexs and adjust forum accounts Revision ID: 20025e7424d Revises: 59abfc7b45d Create Date: 2014-06-10 19:05:40.599138 """ # revision identifiers, used by Alembic. revision = '20025e7424d' down_revision = '59abfc7b45d' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto gene...
{ "repo_name": "ModulousSmash/Modulous", "path": "alembic/versions/20025e7424d_add_indexs_and_adjust_forum_accounts.py", "copies": "5", "size": "1182", "license": "mit", "hash": 5431469936181214000, "line_mean": 33.7647058824, "line_max": 85, "alpha_frac": 0.6641285956, "autogenerated": false, "ra...
"""Add indexs and adjust forum accounts Revision ID: 20025e7424d Revises: 59abfc7b45d Create Date: 2014-06-10 19:05:40.599138 """ # revision identifiers, used by Alembic. revision = '20025e7424d' down_revision = '59abfc7b45d' from alembic import op import sqlalchemy as sa def upgrade(): ### c...
{ "repo_name": "EIREXE/SpaceDock", "path": "alembic/versions/20025e7424d_add_indexs_and_adjust_forum_accounts.py", "copies": "2", "size": "1216", "license": "mit", "hash": 4542202109131910000, "line_mean": 33.7647058824, "line_max": 85, "alpha_frac": 0.6455592105, "autogenerated": false, "ratio": ...
"""add indexs for participant and ps Revision ID: 58e8df756d74 Revises: edb6d45e5e45 Create Date: 2019-01-29 14:55:01.135611 """ from alembic import op # revision identifiers, used by Alembic. revision = "58e8df756d74" down_revision = "edb6d45e5e45" branch_labels = None depends_on = None def upgrade(engine_name): ...
{ "repo_name": "all-of-us/raw-data-repository", "path": "rdr_service/alembic/versions/58e8df756d74_add_indexs_for_participant_and_ps.py", "copies": "1", "size": "2105", "license": "bsd-3-clause", "hash": -4231493008693136000, "line_mean": 30.8939393939, "line_max": 113, "alpha_frac": 0.6736342043, "...
"""Add index to biobank_order_identifier table Revision ID: 641372364227 Revises: 8ab7f6708ea3 Create Date: 2020-10-22 10:54:56.188687 """ from alembic import op import sqlalchemy as sa import rdr_service.model.utils from rdr_service.participant_enums import PhysicalMeasurementsStatus, QuestionnaireStatus, OrderSt...
{ "repo_name": "all-of-us/raw-data-repository", "path": "rdr_service/alembic/versions/641372364227_add_index_to_biobank_order_identifier_.py", "copies": "1", "size": "2252", "license": "bsd-3-clause", "hash": 6210660020559056000, "line_mean": 35.3225806452, "line_max": 131, "alpha_frac": 0.7508880995,...
"""add index to PS Revision ID: f17f0686ea6b Revises: adb4ea532f1a Create Date: 2018-03-19 17:17:59.110590 """ from alembic import op # revision identifiers, used by Alembic. revision = "f17f0686ea6b" down_revision = "adb4ea532f1a" branch_labels = None depends_on = None def upgrade(engine_name): globals()["upg...
{ "repo_name": "all-of-us/raw-data-repository", "path": "rdr_service/alembic/versions/f17f0686ea6b_add_index_to_ps.py", "copies": "1", "size": "1166", "license": "bsd-3-clause", "hash": -5781132419942818000, "line_mean": 23.2916666667, "line_max": 109, "alpha_frac": 0.6603773585, "autogenerated": fa...
"""Add index to user email. Revision ID: 1db076d08d78 Revises: 4b73b02d9536 Create Date: 2015-01-19 17:34:30.214618 """ # revision identifiers, used by Alembic. revision = '1db076d08d78' down_revision = '4b73b02d9536' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa def upgrad...
{ "repo_name": "Code4SA/pmg-cms-2", "path": "migrations/versions/1db076d08d78_add_index_to_user_email.py", "copies": "1", "size": "5171", "license": "apache-2.0", "hash": 683200029542673900, "line_mean": 49.6960784314, "line_max": 168, "alpha_frac": 0.7014117192, "autogenerated": false, "ratio": 3...
"""add indices for all tables Revision ID: 3aba96e0a6ab Revises: 1abce90e550b Create Date: 2015-05-18 23:40:57.850712 """ # revision identifiers, used by Alembic. revision = '3aba96e0a6ab' down_revision = '1abce90e550b' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated ...
{ "repo_name": "codeforamerica/pittsburgh-purchasing-suite", "path": "migrations/versions/3aba96e0a6ab_add_indices_for_all_tables.py", "copies": "3", "size": "3483", "license": "bsd-3-clause", "hash": -3674779484113913000, "line_mean": 59.0517241379, "line_max": 135, "alpha_frac": 0.6899224806, "aut...
"""adding 1sal2 collection method Revision ID: e4a837723c94 Revises: 86880fe5065e Create Date: 2020-10-30 13:34:08.237109 """ from alembic import op import sqlalchemy as sa import rdr_service.model.utils from sqlalchemy.dialects import mysql from rdr_service.participant_enums import PhysicalMeasurementsStatus, Quest...
{ "repo_name": "all-of-us/raw-data-repository", "path": "rdr_service/alembic/versions/e4a837723c94_adding_1sal2_collection_method.py", "copies": "1", "size": "2626", "license": "bsd-3-clause", "hash": 4430201402964534300, "line_mean": 35.4722222222, "line_max": 154, "alpha_frac": 0.7223914699, "auto...
"""Adding accountpatternauditscore table Revision ID: 6d2354fb841c Revises: 67ea2aac5ea0 Create Date: 2016-06-21 19:58:12.949279 """ # revision identifiers, used by Alembic. revision = '6d2354fb841c' down_revision = '67ea2aac5ea0' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto...
{ "repo_name": "stackArmor/security_monkey", "path": "migrations/versions/6d2354fb841c_.py", "copies": "3", "size": "1110", "license": "apache-2.0", "hash": -6553932882600029000, "line_mean": 30.7142857143, "line_max": 78, "alpha_frac": 0.7018018018, "autogenerated": false, "ratio": 3.404907975460...
"""Adding additional_reporting to (certified_)award_procurement table Revision ID: 737cae4d1c76 Revises: 3fd9a578c9c5 Create Date: 2020-05-21 10:12:14.687816 """ # revision identifiers, used by Alembic. revision = '737cae4d1c76' down_revision = '3fd9a578c9c5' branch_labels = None depends_on = None from alembic impo...
{ "repo_name": "fedspendingtransparency/data-act-broker-backend", "path": "dataactcore/migrations/versions/737cae4d1c76_adding_additional_reporting_to_award_.py", "copies": "1", "size": "1112", "license": "cc0-1.0", "hash": -5588142659321194000, "line_mean": 25.4761904762, "line_max": 109, "alpha_frac...
"""Adding ADU by build ID. Revision ID: 58d0dc2f6aa4 Revises: 3a5471a358bf Create Date: 2013-12-02 10:41:26.866644 """ # revision identifiers, used by Alembic. revision = '58d0dc2f6aa4' down_revision = '46c7fb8a8671' from alembic import op from socorro.lib import citexttype, jsontype from socorro.lib.migrations imp...
{ "repo_name": "twobraids/socorro", "path": "alembic/versions/58d0dc2f6aa4_adding_adu_by_build_.py", "copies": "11", "size": "2023", "license": "mpl-2.0", "hash": 1935244946528874500, "line_mean": 37.1886792453, "line_max": 80, "alpha_frac": 0.6786950074, "autogenerated": false, "ratio": 3.2368, ...
"""Adding AgencyUsers Revision ID: 52a4062502bb Revises: 971f341c0204 Create Date: 2017-05-25 19:28:31.144382 """ # revision identifiers, used by Alembic. revision = "52a4062502bb" down_revision = "971f341c0204" from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alemb...
{ "repo_name": "CityOfNewYork/NYCOpenRecords", "path": "migrations/versions/52a4062502bb_adding_agencyusers.py", "copies": "1", "size": "1693", "license": "apache-2.0", "hash": 9168606210826346000, "line_mean": 29.2321428571, "line_max": 77, "alpha_frac": 0.5593620791, "autogenerated": false, "rat...
"""adding album trigger Revision ID: 003 Revises: 002 Create Date: 2015-11-06 07:56:12.062064 """ # revision identifiers, used by Alembic. revision = '003' down_revision = '002' from alembic import op import sqlalchemy as sa def upgrade(): conn = op.get_bind() conn.execute(sa.sql.text(''' CREATE OR REPLAC...
{ "repo_name": "Tjorriemorrie/speler", "path": "migrations/versions/003.py", "copies": "1", "size": "1805", "license": "mit", "hash": -1845261852061724000, "line_mean": 22.141025641, "line_max": 96, "alpha_frac": 0.6703601108, "autogenerated": false, "ratio": 3.1778169014084505, "config_test": f...
"""Adding a migration for the exploitability report. Revision ID: 3a5471a358bf Revises: 191d0453cc07 Create Date: 2013-10-25 07:07:33.968691 """ # revision identifiers, used by Alembic. revision = '3a5471a358bf' down_revision = '4aacaea3eb48' from alembic import op from socorro.lib import citexttype, jsontype from ...
{ "repo_name": "adngdb/socorro", "path": "alembic/versions/3a5471a358bf_adding_a_migration_f.py", "copies": "3", "size": "1624", "license": "mpl-2.0", "hash": -7502828997213379000, "line_mean": 32.8333333333, "line_max": 108, "alpha_frac": 0.7025862069, "autogenerated": false, "ratio": 3.369294605...
# Adding Annotations import matplotlib.pyplot as plt import matplotlib.dates as mdates import matplotlib.ticker as mticker from matplotlib.finance import candlestick_ohlc from matplotlib import style import numpy as np import urllib def convert_date(date_format, encoding='utf-8'): string_converter = mdates.strpd...
{ "repo_name": "mayankdcoder/Matplotlib", "path": "20 - Adding Annotations.py", "copies": "1", "size": "2654", "license": "mit", "hash": 167636133290178600, "line_mean": 38.6119402985, "line_max": 120, "alpha_frac": 0.5655614167, "autogenerated": false, "ratio": 3.496706192358366, "config_test":...
"""Adding ARN column and latest_revision_complete_hash and latest_revision_durable_hash to item table Revision ID: bfb550a500ab Revises: ae5c0a6aebb3 Create Date: 2016-06-23 21:16:35.951815 """ # revision identifiers, used by Alembic. revision = 'bfb550a500ab' down_revision = 'ae5c0a6aebb3' from alembic import op i...
{ "repo_name": "Netflix/security_monkey", "path": "migrations/versions/bfb550a500ab_.py", "copies": "1", "size": "7562", "license": "apache-2.0", "hash": -6472899544180492000, "line_mean": 31.3162393162, "line_max": 158, "alpha_frac": 0.6481089659, "autogenerated": false, "ratio": 3.58728652751423...
"""adding artist trigger Revision ID: 004 Revises: 003 Create Date: 2015-11-06 08:00:50.481484 """ # revision identifiers, used by Alembic. revision = '004' down_revision = '003' from alembic import op import sqlalchemy as sa def upgrade(): conn = op.get_bind() conn.execute(sa.sql.text(''' CREATE OR REPLA...
{ "repo_name": "Tjorriemorrie/speler", "path": "migrations/versions/004.py", "copies": "1", "size": "2021", "license": "mit", "hash": 1418983158014537500, "line_mean": 23.3493975904, "line_max": 99, "alpha_frac": 0.6763978229, "autogenerated": false, "ratio": 3.218152866242038, "config_test": fa...
""" Adding banner header and type to submission window Revision ID: 505f4b28d33d Revises: de5e3fa1d2d2 Create Date: 2019-12-05 13:38:19.627635 """ # revision identifiers, used by Alembic. revision = '505f4b28d33d' down_revision = 'de5e3fa1d2d2' branch_labels = None depends_on = None from alembic import op import sq...
{ "repo_name": "fedspendingtransparency/data-act-broker-backend", "path": "dataactcore/migrations/versions/505f4b28d33d_adding_banner_header_and_type_to_.py", "copies": "1", "size": "1266", "license": "cc0-1.0", "hash": 5117512835296025000, "line_mean": 25.9361702128, "line_max": 90, "alpha_frac": 0.6...
""" Adding business_types for duns Revision ID: c3db0b20bdef Revises: 6a7dfeb64b27 Create Date: 2020-01-22 18:58:55.987646 """ # revision identifiers, used by Alembic. revision = 'c3db0b20bdef' down_revision = '6a7dfeb64b27' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa from ...
{ "repo_name": "fedspendingtransparency/data-act-broker-backend", "path": "dataactcore/migrations/versions/c3db0b20bdef_adding_business_types_for_duns.py", "copies": "1", "size": "1061", "license": "cc0-1.0", "hash": 6138519799474753000, "line_mean": 24.2619047619, "line_max": 99, "alpha_frac": 0.6889...
"""Adding cascade to foreign keys in RuleSetting Revision ID: 2592f3bdae72 Revises: 42e11ab5cea3 Create Date: 2020-02-11 17:02:00.651727 """ # revision identifiers, used by Alembic. revision = '2592f3bdae72' down_revision = '42e11ab5cea3' branch_labels = None depends_on = None from alembic import op import sqlalche...
{ "repo_name": "fedspendingtransparency/data-act-broker-backend", "path": "dataactcore/migrations/versions/2592f3bdae72_adding_cascade_to_foreign_keys_in_.py", "copies": "1", "size": "1517", "license": "cc0-1.0", "hash": 866388217622406100, "line_mean": 31.9782608696, "line_max": 125, "alpha_frac": 0....
"""Adding category and population groups. Revision ID: 157debc89661 Revises: 51589067470d Create Date: 2015-08-25 22:19:38.050000 """ # revision identifiers, used by Alembic. revision = '157debc89661' down_revision = '51589067470d' from alembic import op import sqlalchemy as s...
{ "repo_name": "radioprotector/radremedy", "path": "remedy/rad/migrations/versions/157debc89661_adding_category_and_population_groups.py", "copies": "2", "size": "1765", "license": "mpl-2.0", "hash": -4492683694251681300, "line_mean": 23.2142857143, "line_max": 87, "alpha_frac": 0.645325779, "autoge...
"""adding cdr version to workbench workspaces Revision ID: 66765ee98a07 Revises: 942d61446bfa Create Date: 2021-01-26 16:38:11.859021 """ from alembic import op import sqlalchemy as sa import rdr_service.model.utils from rdr_service.participant_enums import PhysicalMeasurementsStatus, QuestionnaireStatus, OrderStat...
{ "repo_name": "all-of-us/raw-data-repository", "path": "rdr_service/alembic/versions/66765ee98a07_adding_cdr_version_to_workbench_.py", "copies": "1", "size": "2146", "license": "bsd-3-clause", "hash": 938757293726289400, "line_mean": 33.6129032258, "line_max": 125, "alpha_frac": 0.7516309413, "aut...
"""Adding census_year to state_congressional_table Revision ID: 5456e2207d32 Revises: 17105e26eef4 Create Date: 2018-05-03 12:20:05.945295 """ # revision identifiers, used by Alembic. revision = '5456e2207d32' down_revision = '17105e26eef4' branch_labels = None depends_on = None from alembic import op import sqlalc...
{ "repo_name": "fedspendingtransparency/data-act-broker-backend", "path": "dataactcore/migrations/versions/5456e2207d32_adding_census_year_to_state_.py", "copies": "1", "size": "1112", "license": "cc0-1.0", "hash": -8666728030887368000, "line_mean": 25.4761904762, "line_max": 117, "alpha_frac": 0.6978...