text stringlengths 0 1.05M | meta dict |
|---|---|
"""Added recruit time to user table
Revision ID: 2e37930ecb54
Revises: 2de0d2488523
Create Date: 2013-08-15 18:35:30.985537
"""
# revision identifiers, used by Alembic.
revision = '2e37930ecb54'
down_revision = '2de0d2488523'
from alembic import op
import sqlalchemy as sa
def upgrade(engine_name):
eval("upgra... | {
"repo_name": "atiaxi/chromabot",
"path": "alembic/versions/2e37930ecb54_added_recruit_time_t.py",
"copies": "1",
"size": "1520",
"license": "mit",
"hash": -5289358319553231000,
"line_mean": 23.5161290323,
"line_max": 79,
"alpha_frac": 0.6638157895,
"autogenerated": false,
"ratio": 3.494252873563... |
"""Added relationship between groups and instances
Revision ID: 35360c0a6b47
Revises: c16f3da9876
Create Date: 2012-02-08 17:00:43.792045
"""
# downgrade revision identifier, used by Alembic.
revision = '35360c0a6b47'
down_revision = 'c16f3da9876'
from alembic import op
import sqlalchemy as sa
def upgrade():
... | {
"repo_name": "asidev/aybu-manager",
"path": "migrations/versions/35360c0a6b47_.py",
"copies": "1",
"size": "1117",
"license": "apache-2.0",
"hash": -8758575051074596000,
"line_mean": 30.0277777778,
"line_max": 67,
"alpha_frac": 0.5881826321,
"autogenerated": false,
"ratio": 3.6266233766233764,
... |
"""Added roles.
Revision ID: 4453e9c3a9be
Revises: e58b593ca6c9
Create Date: 2017-10-05 18:59:49.721641
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '4453e9c3a9be'
down_revision = 'e58b593ca6c9'
branch_labels = None
depends_on = None
def upgrade():
# #... | {
"repo_name": "saseumn/website",
"path": "migrations/versions/4453e9c3a9be_.py",
"copies": "1",
"size": "1141",
"license": "mit",
"hash": -1234480173237632500,
"line_mean": 26.8292682927,
"line_max": 67,
"alpha_frac": 0.6581945662,
"autogenerated": false,
"ratio": 3.2693409742120343,
"config_te... |
"""Added schedule
Revision ID: 37924d95f098
Revises: 41808ec16aa1
Create Date: 2013-08-19 16:21:48.293000
"""
# revision identifiers, used by Alembic.
revision = '37924d95f098'
down_revision = '41808ec16aa1'
from alembic import op
import sqlalchemy as sa
def upgrade():
### co... | {
"repo_name": "ebu/radiodns-plugit",
"path": "RadioDns-PlugIt/alembic/versions/37924d95f098_added_schedule.py",
"copies": "1",
"size": "1157",
"license": "bsd-3-clause",
"hash": -9211281909057578000,
"line_mean": 17.9830508475,
"line_max": 63,
"alpha_frac": 0.6300777874,
"autogenerated": false,
"... |
"""added search_vector to items table
Revision ID: 35b2b9f7b64e
Revises: 1c047a351906
Create Date: 2015-02-28 17:00:36.979960
"""
# revision identifiers, used by Alembic.
revision = '35b2b9f7b64e'
down_revision = '1c047a351906'
from alembic import op
import sqlalchemy as sa
from sqlalchemy_searchable import sync_tr... | {
"repo_name": "rosariomgomez/tradyfit",
"path": "vagrant/tradyfit/migrations/versions/35b2b9f7b64e_added_search_vector_to_items_table.py",
"copies": "1",
"size": "1108",
"license": "mit",
"hash": -8169733350559735000,
"line_mean": 32.5757575758,
"line_max": 111,
"alpha_frac": 0.6958483755,
"autogen... |
"""Added Section Layout Settings and Site Settings
Revision ID: 698cc06661d6
Revises: 958a9358a256
Create Date: 2016-02-29 00:03:36.777728
"""
# revision identifiers, used by Alembic.
revision = '698cc06661d6'
down_revision = '958a9358a256'
branch_labels = None
depends_on = None
from alembic import op
import sqlalc... | {
"repo_name": "matslindh/kimochi",
"path": "alembic/versions/698cc06661d6_added_section_layout_settings_and_site_.py",
"copies": "1",
"size": "1657",
"license": "mit",
"hash": 6368856217526752000,
"line_mean": 35.0217391304,
"line_max": 99,
"alpha_frac": 0.6813518407,
"autogenerated": false,
"rat... |
"""added series to invoice
Revision ID: 2d70356c6c5f
Revises: 77a9fbbe4cd9
Create Date: 2021-01-07 23:38:39.086260
"""
# revision identifiers, used by Alembic.
revision = '2d70356c6c5f'
down_revision = '77a9fbbe4cd9'
from alembic import op
import sqlalchemy as sa
from sqlalchemy import orm
from sqlalchemy.ext.decla... | {
"repo_name": "skazi0/yaia",
"path": "migrations/versions/2d70356c6c5f_added_series_to_invoice.py",
"copies": "1",
"size": "2038",
"license": "mit",
"hash": 463199026116752600,
"line_mean": 28.1142857143,
"line_max": 134,
"alpha_frac": 0.6864573111,
"autogenerated": false,
"ratio": 3.351973684210... |
"""Added service following tables
Revision ID: 4121a98095b5
Revises: 37924d95f098
Create Date: 2013-08-23 09:00:32.793000
"""
# revision identifiers, used by Alembic.
revision = '4121a98095b5'
down_revision = '37924d95f098'
from alembic import op
import sqlalchemy as sa
def upgrade... | {
"repo_name": "ebu/radiodns-plugit",
"path": "RadioDns-PlugIt/alembic/versions/4121a98095b5_added_service_follow.py",
"copies": "1",
"size": "1300",
"license": "bsd-3-clause",
"hash": 2634011017034615000,
"line_mean": 20.0333333333,
"line_max": 67,
"alpha_frac": 0.6476923077,
"autogenerated": false... |
"""Added Service Provider
Revision ID: 4891307e6a8c
Revises: e4619239aac
Create Date: 2014-11-21 17:33:21.610477
"""
# revision identifiers, used by Alembic.
revision = '4891307e6a8c'
down_revision = 'e4619239aac'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Ale... | {
"repo_name": "ebu/radiodns-plugit",
"path": "RadioDns-PlugIt/alembic/versions/4891307e6a8c_added_service_provider.py",
"copies": "1",
"size": "2371",
"license": "bsd-3-clause",
"hash": 19878428672184810,
"line_mean": 41.3392857143,
"line_max": 117,
"alpha_frac": 0.6866301139,
"autogenerated": fals... |
"""Added Services to Station Model
Revision ID: 423350744c8c
Revises: 519654f4eb9c
Create Date: 2014-12-04 11:28:14.972747
"""
# revision identifiers, used by Alembic.
revision = '423350744c8c'
down_revision = '519654f4eb9c'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto gener... | {
"repo_name": "ebu/radiodns-plugit",
"path": "RadioDns-PlugIt/alembic/versions/423350744c8c_added_services_to_station_model.py",
"copies": "1",
"size": "1367",
"license": "bsd-3-clause",
"hash": -4597954878787607600,
"line_mean": 36.9722222222,
"line_max": 97,
"alpha_frac": 0.6986100951,
"autogener... |
"""Added session
Revision ID: 1fcee2e6280
Revises: 1925329c798a
Create Date: 2013-11-08 19:24:18.721591
"""
# revision identifiers, used by Alembic.
revision = '1fcee2e6280'
down_revision = '1925329c798a'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - pl... | {
"repo_name": "jace/failconfunnel",
"path": "alembic/versions/1fcee2e6280_added_session.py",
"copies": "1",
"size": "1987",
"license": "bsd-2-clause",
"hash": -6338683961034127000,
"line_mean": 38.74,
"line_max": 90,
"alpha_frac": 0.6758933065,
"autogenerated": false,
"ratio": 3.4496527777777777,... |
"""Added simple movement in the x-y plane with arrow keys.
This is just independent experimentation and not part of the original tutorial."""
import sys,os,math
import pygame as pg
from OpenGL import GL
sys.path.append("..")
sys.path.append("data")
import myframework
from vertices_perspective import VERTICES
KEYDICT ... | {
"repo_name": "Mekire/gltut-pygame",
"path": "04_objects_at_rest/04_AspectRatio_interactive.py",
"copies": "1",
"size": "3698",
"license": "mit",
"hash": 1715360839114872300,
"line_mean": 35.2549019608,
"line_max": 119,
"alpha_frac": 0.6208761493,
"autogenerated": false,
"ratio": 3.03861955628594... |
"""added slug to port
Revision ID: 3ada503c2991
Revises: 38745782554d
Create Date: 2017-06-08 11:41:45.995039
"""
from alembic import op
import sqlalchemy as sa
from alembic import op
from sqlalchemy import Integer, String
from sqlalchemy.sql import table, column, text
# revision identifiers, used by Alembic.
revisi... | {
"repo_name": "eubr-bigsea/tahiti",
"path": "migrations/versions/3ada503c2991_added_slug_to_port.py",
"copies": "1",
"size": "1629",
"license": "apache-2.0",
"hash": 5382263895481748000,
"line_mean": 31.58,
"line_max": 92,
"alpha_frac": 0.6464088398,
"autogenerated": false,
"ratio": 3.80607476635... |
"""Added Source table and many-to-many with Event and Variable.
Revision ID: 362ecdf08386
Revises: 499accc505c3
Create Date: 2013-06-07 09:28:34.281518
"""
# revision identifiers, used by Alembic.
revision = '362ecdf08386'
down_revision = '499accc505c3'
from alembic import op
import sqlalchemy as sa
def upgrade()... | {
"repo_name": "msscully/datamart",
"path": "alembic/versions/362ecdf08386_added_source_table_a.py",
"copies": "1",
"size": "1939",
"license": "mit",
"hash": -5699638766684028000,
"line_mean": 33.0175438596,
"line_max": 68,
"alpha_frac": 0.6441464673,
"autogenerated": false,
"ratio": 3.59074074074... |
# added specifically to make floating point division apply to code in bar position calculation
from __future__ import division
import libtcodpy as libtcod
import xp_loader
import gzip
from vec2d import Vec2d
from model.attribute import AttributeTag
from ui.frame import Frame
from ui.ui_event import UIEvent, UIEventT... | {
"repo_name": "RCIX/RogueP",
"path": "ui/game/frame_libraries.py",
"copies": "1",
"size": "2774",
"license": "mit",
"hash": -8444959130486290000,
"line_mean": 39.2173913043,
"line_max": 151,
"alpha_frac": 0.7332372026,
"autogenerated": false,
"ratio": 2.895615866388309,
"config_test": false,
... |
"""Added Spec table
Revision ID: 2614c3bbec2a
Revises: 561b1cc23d6
Create Date: 2014-11-19 10:07:53.610437
"""
# revision identifiers, used by Alembic.
import traceback
from appcomposer.models import *
revision = '2614c3bbec2a'
down_revision = '561b1cc23d6'
from alembic import op
import sqlalchemy as sa
from sqlal... | {
"repo_name": "porduna/appcomposer",
"path": "alembic/versions/2614c3bbec2a_added_spec_table.py",
"copies": "3",
"size": "2217",
"license": "bsd-2-clause",
"hash": -1561859867548810200,
"line_mean": 30.2253521127,
"line_max": 174,
"alpha_frac": 0.6382498872,
"autogenerated": false,
"ratio": 3.599... |
"""Added spec_url to replace spec appvar
Revision ID: 561b1cc23d6
Revises: 4211b3736e90
Create Date: 2014-11-04 09:57:23.710248
"""
# revision identifiers, used by Alembic.
import json
import traceback
from appcomposer.models import App
revision = '561b1cc23d6'
down_revision = '4211b3736e90'
from alembic import... | {
"repo_name": "porduna/appcomposer",
"path": "alembic/versions/561b1cc23d6_added_spec_url_to_re.py",
"copies": "3",
"size": "1699",
"license": "bsd-2-clause",
"hash": 5363048259341549000,
"line_mean": 29.8909090909,
"line_max": 113,
"alpha_frac": 0.6509711595,
"autogenerated": false,
"ratio": 3.5... |
"""Added SQS table
Revision ID: 4c25c6cb647b
Revises: 465c323b7bf2
Create Date: 2017-01-22 22:24:55.993561
"""
# revision identifiers, used by Alembic.
revision = '4c25c6cb647b'
down_revision = '465c323b7bf2'
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/4c25c6cb647b_added_sqs_table.py",
"copies": "1",
"size": "1084",
"license": "cc0-1.0",
"hash": -4007039563733743000,
"line_mean": 22.0638297872,
"line_max": 63,
"alpha_frac": 0.6688191882,
"aut... |
"""added station overrides
Revision ID: 7045978e05ec
Revises: b1f1f87a08d8
Create Date: 2018-10-15 09:45:24.256760
"""
# revision identifiers, used by Alembic.
revision = '7045978e05ec'
down_revision = 'b1f1f87a08d8'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
def upgrade(... | {
"repo_name": "ebu/radiodns-plugit",
"path": "RadioDns-PlugIt/alembic/versions/7045978e05ec_added_station_overrides.py",
"copies": "1",
"size": "1077",
"license": "bsd-3-clause",
"hash": -4390575369357088000,
"line_mean": 34.9,
"line_max": 118,
"alpha_frac": 0.7019498607,
"autogenerated": false,
... |
"""Added Subject table, ExternalID table, and subject.id foreign key to Facts.
Revision ID: 33dee8e1b22c
Revises: 362ecdf08386
Create Date: 2013-06-11 10:49:27.559636
"""
# revision identifiers, used by Alembic.
revision = '33dee8e1b22c'
down_revision = '362ecdf08386'
from alembic import op
import sqlalchemy as sa
... | {
"repo_name": "msscully/datamart",
"path": "alembic/versions/33dee8e1b22c_added_subject_table_.py",
"copies": "1",
"size": "1425",
"license": "mit",
"hash": -6413467736652968000,
"line_mean": 32.1395348837,
"line_max": 82,
"alpha_frac": 0.6785964912,
"autogenerated": false,
"ratio": 3.40095465393... |
"""Added summary_id to SkirmishAction
Revision ID: 28f8622f68c3
Revises: 391058ac6f40
Create Date: 2013-07-07 16:05:54.554858
"""
# revision identifiers, used by Alembic.
revision = '28f8622f68c3'
down_revision = '391058ac6f40'
from alembic import op
import sqlalchemy as sa
def upgrade(engine_name):
eval("upg... | {
"repo_name": "atiaxi/chromabot",
"path": "alembic/versions/28f8622f68c3_added_summary_id_to_.py",
"copies": "1",
"size": "1591",
"license": "mit",
"hash": -3121878894910684000,
"line_mean": 24.6612903226,
"line_max": 90,
"alpha_frac": 0.6719044626,
"autogenerated": false,
"ratio": 3.414163090128... |
"""Added table data for the prediction stuff
Revision ID: 21f77e60814
Revises: 465365d933e
Create Date: 2015-12-30 16:33:40.491732
"""
# revision identifiers, used by Alembic.
revision = '21f77e60814'
down_revision = '465365d933e'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa... | {
"repo_name": "gigglearrows/anniesbot",
"path": "alembic/versions/21f77e60814_added_table_data_for_the_prediction_.py",
"copies": "1",
"size": "1419",
"license": "mit",
"hash": -7835828607382526000,
"line_mean": 31.25,
"line_max": 84,
"alpha_frac": 0.6765327696,
"autogenerated": false,
"ratio": 3... |
"""Added table for front pages
Revision ID: 4d46b88366fc
Revises:
Create Date: 2016-06-08 19:08:11.281686
"""
# revision identifiers, used by Alembic.
revision = '4d46b88366fc'
down_revision = None
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import... | {
"repo_name": "c4fcm/CivilServant",
"path": "alembic/versions/4d46b88366fc_added_table_for_front_pages.py",
"copies": "1",
"size": "2067",
"license": "mit",
"hash": 1457758832660858000,
"line_mean": 25.164556962,
"line_max": 63,
"alpha_frac": 0.6613449444,
"autogenerated": false,
"ratio": 3.68449... |
"""Added tables for pure banphrases
Revision ID: 15712d19833
Revises: 162dd748b57
Create Date: 2015-12-24 02:17:41.959007
"""
# revision identifiers, used by Alembic.
revision = '15712d19833'
down_revision = '162dd748b57'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
def up... | {
"repo_name": "gigglearrows/anniesbot",
"path": "alembic/versions/15712d19833_added_tables_for_pure_banphrases.py",
"copies": "1",
"size": "1572",
"license": "mit",
"hash": 2323388562591786500,
"line_mean": 32.4468085106,
"line_max": 81,
"alpha_frac": 0.6755725191,
"autogenerated": false,
"ratio"... |
"""added tags to logs
Revision ID: 3154c750f093
Revises: 337c8696cf2a
Create Date: 2015-09-07 13:57:53.932576
"""
# revision identifiers, used by Alembic.
revision = '3154c750f093'
down_revision = '337c8696cf2a'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alemb... | {
"repo_name": "jeffthemaximum/jeffPD",
"path": "migrations/versions/3154c750f093_added_tags_to_logs.py",
"copies": "1",
"size": "1666",
"license": "mit",
"hash": -6248773273340749000,
"line_mean": 38.6666666667,
"line_max": 94,
"alpha_frac": 0.6776710684,
"autogenerated": false,
"ratio": 3.234951... |
"""Added target table
Revision ID: 28374b800521
Revises: 460741ff1212
Create Date: 2016-08-24 23:55:14.231624
"""
# revision identifiers, used by Alembic.
revision = '28374b800521'
down_revision = '460741ff1212'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.create_table(
'bazeltarge... | {
"repo_name": "dropbox/changes",
"path": "migrations/versions/28374b800521_added_target_table.py",
"copies": "1",
"size": "1062",
"license": "apache-2.0",
"hash": 2559668249549127700,
"line_mean": 27.7027027027,
"line_max": 65,
"alpha_frac": 0.6242937853,
"autogenerated": false,
"ratio": 3.470588... |
"""added task cells
Revision ID: 167914646830
Revises: 724cde206c17
Create Date: 2018-06-23 07:46:30.221922
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '167914646830'
down_revision = '724cde206c17'
branch_labels = None
depends_on = None
def _get_or_create... | {
"repo_name": "jhamrick/nbgrader",
"path": "nbgrader/alembic/versions/167914646830_added_task_cells.py",
"copies": "2",
"size": "4277",
"license": "bsd-3-clause",
"hash": -4809585646483568000,
"line_mean": 28.7013888889,
"line_max": 77,
"alpha_frac": 0.6025251344,
"autogenerated": false,
"ratio":... |
"""Added TeamInfo table
Revision ID: c71a1b0747a0
Revises: 2a147893565a
Create Date: 2016-02-27 19:38:42.508684
"""
# revision identifiers, used by Alembic.
revision = 'c71a1b0747a0'
down_revision = '2a147893565a'
from alembic import op
import sqlalchemy as sa
def upgrade(engine_name):
eval("upgrade_%s" % eng... | {
"repo_name": "atiaxi/chromabot",
"path": "alembic/versions/c71a1b0747a0_added_teaminfo_table.py",
"copies": "1",
"size": "1952",
"license": "mit",
"hash": -7930698694532358000,
"line_mean": 24.3506493506,
"line_max": 63,
"alpha_frac": 0.6521516393,
"autogenerated": false,
"ratio": 3.479500891265... |
"""Added Term models
Revision ID: 8e49c4425462
Revises: 3da45596c5c1
Create Date: 2016-08-28 17:19:39.131717
"""
# revision identifiers, used by Alembic.
revision = '8e49c4425462'
down_revision = '3da45596c5c1'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembi... | {
"repo_name": "disconnect3d/TermsScheduler",
"path": "backend/src/migrations/versions/8e49c4425462_added_term_models.py",
"copies": "1",
"size": "2194",
"license": "mit",
"hash": -7404360004104402000,
"line_mean": 37.4912280702,
"line_max": 136,
"alpha_frac": 0.6517775752,
"autogenerated": false,
... |
"""Added the deck table
Revision ID: 46e47b8f160
Revises: 4f48d3dd0fb
Create Date: 2015-11-04 00:03:57.770809
"""
# revision identifiers, used by Alembic.
revision = '46e47b8f160'
down_revision = '4f48d3dd0fb'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
def upgrade():
... | {
"repo_name": "gigglearrows/anniesbot",
"path": "alembic/versions/46e47b8f160_added_the_deck_table.py",
"copies": "1",
"size": "1040",
"license": "mit",
"hash": 5996744944749684000,
"line_mean": 27.1081081081,
"line_max": 63,
"alpha_frac": 0.6740384615,
"autogenerated": false,
"ratio": 3.26018808... |
"""Added the status table.
Revision ID: e421977e17
Revises: 208ea31c61b
Create Date: 2015-10-03 16:08:03.843081
"""
# revision identifiers, used by Alembic.
revision = 'e421977e17'
down_revision = '208ea31c61b'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
def upgrade():
... | {
"repo_name": "sayeghr/harpy-network",
"path": "alembic/versions/e421977e17_added_the_status_table.py",
"copies": "1",
"size": "1227",
"license": "mit",
"hash": -794771918949396500,
"line_mean": 29.675,
"line_max": 71,
"alpha_frac": 0.6731866341,
"autogenerated": false,
"ratio": 3.380165289256198... |
"""added thing_id to experiment_things
Revision ID: 370964c4a364
Revises: a0cca001e8a7
Create Date: 2018-04-22 11:13:22.370143
"""
# revision identifiers, used by Alembic.
revision = '370964c4a364'
down_revision = 'a0cca001e8a7'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
... | {
"repo_name": "c4fcm/CivilServant",
"path": "alembic/versions/370964c4a364_added_thing_id_to_experiment_things.py",
"copies": "1",
"size": "2288",
"license": "mit",
"hash": -3613151045142145500,
"line_mean": 31.6857142857,
"line_max": 107,
"alpha_frac": 0.6774475524,
"autogenerated": false,
"rati... |
"""Added threshold support.
Revision ID: 4fa888fd7eda
Revises: 3dd7e13527f3
Create Date: 2015-05-05 14:39:24.562388
"""
# revision identifiers, used by Alembic.
revision = '4fa888fd7eda'
down_revision = '3dd7e13527f3'
from alembic import op
import sqlalchemy as sa
def upgrade():
# NOTE(sheeprine): Hack to let... | {
"repo_name": "FNST-OpenStack/cloudkitty",
"path": "cloudkitty/rating/hash/db/sqlalchemy/alembic/versions/4fa888fd7eda_added_threshold_support.py",
"copies": "2",
"size": "1839",
"license": "apache-2.0",
"hash": -3151534792239106000,
"line_mean": 36.5306122449,
"line_max": 73,
"alpha_frac": 0.6503534... |
"""added timestamp completed to logs
Revision ID: 1abfb1cdc0ea
Revises: 38c25da6e018
Create Date: 2015-10-10 08:56:25.842989
"""
# revision identifiers, used by Alembic.
revision = '1abfb1cdc0ea'
down_revision = '38c25da6e018'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql... | {
"repo_name": "jeffthemaximum/jeffPD",
"path": "migrations/versions/1abfb1cdc0ea_added_timestamp_completed_to_logs.py",
"copies": "1",
"size": "1100",
"license": "mit",
"hash": 8079580909490246000,
"line_mean": 33.375,
"line_max": 93,
"alpha_frac": 0.7,
"autogenerated": false,
"ratio": 3.42679127... |
"""Added timezones
Revision ID: 40f60062ddd5
Revises: ceddbf7c791c
Create Date: 2017-10-12 20:48:54.112515
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '40f60062ddd5'
down_revision = 'ceddbf7c791c'
branch_labels = None
depends_on = None
def upgrade():
... | {
"repo_name": "alethiophile/openakun",
"path": "alembic/versions/40f60062ddd5_added_timezones.py",
"copies": "1",
"size": "1063",
"license": "mit",
"hash": 2407421502505692000,
"line_mean": 22.1086956522,
"line_max": 65,
"alpha_frac": 0.6255879586,
"autogenerated": false,
"ratio": 3.4852459016393... |
"""Added Topology Discovery Table
Revision ID: 388cbc17f111
Revises: 32076c59a4c1
Create Date: 2017-01-04 00:19:06.384325
"""
# revision identifiers, used by Alembic.
revision = '388cbc17f111'
down_revision = '32076c59a4c1'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
def ... | {
"repo_name": "CiscoSystems/fabric_enabler",
"path": "dfa/db/migration/versions/388cbc17f111_added_topology_discovery_table.py",
"copies": "1",
"size": "1448",
"license": "apache-2.0",
"hash": -538450905722037700,
"line_mean": 34.3170731707,
"line_max": 76,
"alpha_frac": 0.6581491713,
"autogenerate... |
"""Added total_score to ExamsTaken
Revision ID: 49783ae83566
Revises: 6723848870f0
Create Date: 2017-11-24 15:02:39.633000
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
# revision identifiers, used by Alembic.
revision = '49783ae83566'
down_revision = '6723848870f0'
branch_... | {
"repo_name": "iamOgunyinka/sproot",
"path": "migrations/versions/49783ae83566_added_total_score_to_examstaken.py",
"copies": "1",
"size": "1838",
"license": "apache-2.0",
"hash": 286535817712303680,
"line_mean": 34.3461538462,
"line_max": 88,
"alpha_frac": 0.6158868335,
"autogenerated": false,
"... |
"""Added transactions table
Revision ID: 5632aa202d89
Revises: 3a47813ce501
Create Date: 2015-03-18 14:54:09.061787
"""
# revision identifiers, used by Alembic.
revision = '5632aa202d89'
down_revision = '4d3ed7925db3'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.create_table('quark_transac... | {
"repo_name": "asadoughi/quark",
"path": "quark/db/migration/alembic/versions/5632aa202d89_added_transactions_table.py",
"copies": "7",
"size": "1152",
"license": "apache-2.0",
"hash": -2396718754030776300,
"line_mean": 31,
"line_max": 75,
"alpha_frac": 0.5815972222,
"autogenerated": false,
"rati... |
"""Added travel_multiplier to Region
Revision ID: 15cb2e66f74
Revises: 4effbf7f3fe7
Create Date: 2015-03-14 10:19:58.780850
"""
# revision identifiers, used by Alembic.
revision = '15cb2e66f74'
down_revision = '4effbf7f3fe7'
from alembic import op
import sqlalchemy as sa
def upgrade(engine_name):
eval("upgrad... | {
"repo_name": "atiaxi/chromabot",
"path": "alembic/versions/15cb2e66f74_added_travel_multiplier_to_region.py",
"copies": "1",
"size": "1642",
"license": "mit",
"hash": -3003194992372215000,
"line_mean": 25.4838709677,
"line_max": 110,
"alpha_frac": 0.6729598051,
"autogenerated": false,
"ratio": 3... |
#Added two arguements
def add(a,b):
return a + b
c = add(3, 4)
print c
#Subtraction two arguements
def sub(j,k):
return j - k
l = sub(5, 3)
print l
#Multiplied two arguements
def mul(r,t):
return r * t
e = mul(4,4)
print e
#Divided two arguements
def div(q,w):
return float(q / w)
y = div(2,3)
print y
#Def... | {
"repo_name": "joook1710-cmis/joook1710-cmis-cs2",
"path": "function.py",
"copies": "1",
"size": "3016",
"license": "cc0-1.0",
"hash": 5947570063472755000,
"line_mean": 22.9365079365,
"line_max": 130,
"alpha_frac": 0.6863395225,
"autogenerated": false,
"ratio": 2.4863973619126134,
"config_test"... |
#Added two arguments
def add(a,b):
return a + b
print add(7,7)
#Subtracted two arguments
def sub(a,b):
return a - b
print sub(8,4)
#Multiplied two arguments
def mul(a,b):
return a*b
print mul(9,2)
#Divided two arguments
def div(a,b):
return float(a)/b
print div(4,2)
#Conversion of hours to seconds
d... | {
"repo_name": "grace1912-cmis/grace1912-cmis-cs2",
"path": "functions.py",
"copies": "1",
"size": "3368",
"license": "cc0-1.0",
"hash": -1872668364780696000,
"line_mean": 28.0344827586,
"line_max": 121,
"alpha_frac": 0.7019002375,
"autogenerated": false,
"ratio": 2.6149068322981366,
"config_tes... |
"""add education and disability for workbench research
Revision ID: f4316bf05797
Revises: 038364a84126
Create Date: 2020-01-09 14:48:57.556654
"""
from alembic import op
import sqlalchemy as sa
import rdr_service.model.utils
from rdr_service.participant_enums import WorkbenchResearcherEducation, WorkbenchResearcher... | {
"repo_name": "all-of-us/raw-data-repository",
"path": "rdr_service/alembic/versions/f4316bf05797_add_education_and_disability_for_.py",
"copies": "1",
"size": "5082",
"license": "bsd-3-clause",
"hash": 2932792771540345000,
"line_mean": 51.9375,
"line_max": 120,
"alpha_frac": 0.6727666273,
"autogen... |
"""added uploaded_images table
Revision ID: 20b9c5b88f9
Revises: 46f4932e624
Create Date: 2015-08-06 15:35:09.129482
"""
# revision identifiers, used by Alembic.
revision = '20b9c5b88f9'
down_revision = '38331aa4875'
from alembic import op
import sqlalchemy as sa
from project.lib.orm.types import TypeEnum
from proj... | {
"repo_name": "saklar13/Meowth",
"path": "migrations/versions/2015_08_06_20b9_added_uploaded_images_table.py",
"copies": "2",
"size": "1047",
"license": "bsd-3-clause",
"hash": 6103767115889642000,
"line_mean": 25.8461538462,
"line_max": 72,
"alpha_frac": 0.6723973257,
"autogenerated": false,
"ra... |
"""Added User, FacebookAccount
Revision ID: 58533af39fd7
Revises: None
Create Date: 2013-02-04 19:44:58.018873
"""
# revision identifiers, used by Alembic.
revision = '58533af39fd7'
down_revision = None
from alembic import op
import sqlalchemy as sa
def upgrade():
op.create_table('users',
sa.Column('id', ... | {
"repo_name": "funnyplan/Pager",
"path": "migration/versions/58533af39fd7_added_user_facebooka.py",
"copies": "1",
"size": "1460",
"license": "cc0-1.0",
"hash": 1757702474925226000,
"line_mean": 30.7391304348,
"line_max": 67,
"alpha_frac": 0.6719178082,
"autogenerated": false,
"ratio": 3.47619047... |
"""Added user following relation to user
Revision ID: 1e3be3ff186d
Revises: 29918969a90
Create Date: 2016-10-24 13:02:49.915605
"""
# revision identifiers, used by Alembic.
revision = '1e3be3ff186d'
down_revision = '29918969a90'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto g... | {
"repo_name": "Code4SA/pmg-cms-2",
"path": "migrations/versions/1e3be3ff186d_added_user_following_relation_to_user.py",
"copies": "1",
"size": "1343",
"license": "apache-2.0",
"hash": -2373656006607441000,
"line_mean": 37.3714285714,
"line_max": 139,
"alpha_frac": 0.69545793,
"autogenerated": false... |
"""Added users table
Revision ID: 4503a2e36a01
Revises:
Create Date: 2015-06-01 15:30:52.565284
"""
# revision identifiers, used by Alembic.
revision = '4503a2e36a01'
down_revision = None
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto ge... | {
"repo_name": "vigov5/oshougatsu2015",
"path": "alembic/versions/4503a2e36a01_added_users_table.py",
"copies": "1",
"size": "1611",
"license": "mit",
"hash": 64856040441691700,
"line_mean": 34.0217391304,
"line_max": 76,
"alpha_frac": 0.6809435133,
"autogenerated": false,
"ratio": 3.3773584905660... |
"""added users table
Revision ID: 46a8aad56
Revises: 35b2b9f7b64e
Create Date: 2015-03-01 07:04:44.409709
"""
# revision identifiers, used by Alembic.
revision = '46a8aad56'
down_revision = '35b2b9f7b64e'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - pl... | {
"repo_name": "rosariomgomez/tradyfit",
"path": "vagrant/tradyfit/migrations/versions/46a8aad56_added_users_table.py",
"copies": "1",
"size": "1828",
"license": "mit",
"hash": 8555893766896678000,
"line_mean": 37.0833333333,
"line_max": 82,
"alpha_frac": 0.6635667396,
"autogenerated": false,
"rat... |
"""Added user table and updated other tables accordingly
Revision ID: 1568b7548f2
Revises: 1b64df25658
Create Date: 2015-07-26 02:03:46.590328
"""
# revision identifiers, used by Alembic.
revision = '1568b7548f2'
down_revision = '1b64df25658'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.cr... | {
"repo_name": "timesqueezer/mooddiary",
"path": "migrations/versions/1568b7548f2_.py",
"copies": "2",
"size": "1513",
"license": "mit",
"hash": 7675769835843664000,
"line_mean": 36.825,
"line_max": 100,
"alpha_frac": 0.6602775942,
"autogenerated": false,
"ratio": 3.2123142250530785,
"config_tes... |
"""Added venue, room details
Revision ID: 1925329c798a
Revises: 316aaa757c8c
Create Date: 2013-11-05 19:48:59.132327
"""
# revision identifiers, used by Alembic.
revision = '1925329c798a'
down_revision = '316aaa757c8c'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated b... | {
"repo_name": "jace/failconfunnel",
"path": "alembic/versions/1925329c798a_added_venue_room_det.py",
"copies": "1",
"size": "2473",
"license": "bsd-2-clause",
"hash": -6030646271547781000,
"line_mean": 40.2166666667,
"line_max": 76,
"alpha_frac": 0.6789324707,
"autogenerated": false,
"ratio": 3.4... |
"""Added vote tables
Revision ID: 7210849b51fe
Revises: 1c465843735b
Create Date: 2020-09-27 15:47:08.142317
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '7210849b51fe'
down_revision = '1c465843735b'
branch_labels = None
depends_on = None
def upgrade():
... | {
"repo_name": "alethiophile/openakun",
"path": "alembic/versions/7210849b51fe_added_vote_tables.py",
"copies": "1",
"size": "3172",
"license": "mit",
"hash": 3727293589787159000,
"line_mean": 43.0555555556,
"line_max": 113,
"alpha_frac": 0.657629256,
"autogenerated": false,
"ratio": 3.17517517517... |
"""add-ehr-metrics
Revision ID: 4825a0ad42e1
Revises: 3513057132ca
Create Date: 2019-03-04 10:31:53.101508
"""
import model.utils
import sqlalchemy as sa
from alembic import op
from rdr_service.participant_enums import EhrStatus
# revision identifiers, used by Alembic.
revision = "4825a0ad42e1"
down_revision = "351... | {
"repo_name": "all-of-us/raw-data-repository",
"path": "rdr_service/alembic/versions/4825a0ad42e1_add_ehr_metrics.py",
"copies": "1",
"size": "21362",
"license": "bsd-3-clause",
"hash": -2934578967365020000,
"line_mean": 40.0807692308,
"line_max": 113,
"alpha_frac": 0.7151483943,
"autogenerated": f... |
"""" add electrical labels to each device port
"""
import phidl.device_layout as pd
import pp
from omegaconf.listconfig import ListConfig
from phidl.device_layout import Label
from pp.component import Component, ComponentReference
from pp.port import Port
from typing import Optional, Union
def add_label(component, ... | {
"repo_name": "psiq/gdsfactory",
"path": "pp/add_labels.py",
"copies": "1",
"size": "3893",
"license": "mit",
"hash": -8168506198754939000,
"line_mean": 25.8482758621,
"line_max": 86,
"alpha_frac": 0.6362702286,
"autogenerated": false,
"ratio": 3.417910447761194,
"config_test": false,
"has_no... |
"""Add electron lifetime
"""
import sympy
import pytz
import hax
from pax import configuration, units
from sympy.parsing.sympy_parser import parse_expr
from cax import config
from cax.task import Task
PAX_CONFIG = configuration.load_configuration('XENON1T')
PAX_CONFIG_MV = configuration.load_configuration('XENON1T_MV... | {
"repo_name": "XENON1T/cax",
"path": "cax/tasks/corrections.py",
"copies": "1",
"size": "8398",
"license": "isc",
"hash": 8844547248270687000,
"line_mean": 40.7810945274,
"line_max": 119,
"alpha_frac": 0.6299118838,
"autogenerated": false,
"ratio": 3.991444866920152,
"config_test": true,
"has... |
"""add_email_and_verified_institution_to_workbench_researcher
Revision ID: 64e68e221460
Revises: f5520e9dde27
Create Date: 2020-02-18 12:05:18.783714
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '64e68e221460'
down_revision = 'f5520e9dde27'
branch_labels = No... | {
"repo_name": "all-of-us/raw-data-repository",
"path": "rdr_service/alembic/versions/64e68e221460_add_email_and_verified_institution_to_.py",
"copies": "1",
"size": "1719",
"license": "bsd-3-clause",
"hash": 1068102314247900000,
"line_mean": 30.2545454545,
"line_max": 120,
"alpha_frac": 0.695753345,
... |
"""add email column
Revision ID: 02bcf59a82c9
Revises:
Create Date: 2017-09-17 20:37:18.323728
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '02bcf59a82c9'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto g... | {
"repo_name": "mikkylok/mikky.lu",
"path": "migrations/versions/02bcf59a82c9_add_email_column.py",
"copies": "1",
"size": "1555",
"license": "mit",
"hash": 4243794847522219000,
"line_mean": 31.3958333333,
"line_max": 82,
"alpha_frac": 0.6559485531,
"autogenerated": false,
"ratio": 3.2944915254237... |
"""Add embed application model
Revision ID: 4811ae4298e3
Revises: 51d493c4d3e1
Create Date: 2015-07-31 15:01:02.135850
"""
# revision identifiers, used by Alembic.
revision = '4811ae4298e3'
down_revision = '51d493c4d3e1'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated... | {
"repo_name": "go-lab/appcomposer",
"path": "alembic/versions/4811ae4298e3_add_embed_application_model.py",
"copies": "3",
"size": "2032",
"license": "bsd-2-clause",
"hash": -7919287928071256000,
"line_mean": 43.1739130435,
"line_max": 108,
"alpha_frac": 0.7160433071,
"autogenerated": false,
"rat... |
"""add emergency models
Revision ID: 98ecbc1e5b66
Revises: 8e7a2acd24b8
Create Date: 2019-04-26 14:07:15.245678
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '98ecbc1e5b66'
down_revision = '8e7a2acd24b8'
branch_labels = None
depends_on = None
def upgrade():
... | {
"repo_name": "beproud/beproudbot",
"path": "src/alembic/migrations/versions/98ecbc1e5b66_add_emergency_models.py",
"copies": "1",
"size": "1598",
"license": "mit",
"hash": -5968449500678388000,
"line_mean": 33,
"line_max": 74,
"alpha_frac": 0.6714643304,
"autogenerated": false,
"ratio": 3.329166... |
"""Add end notifications
Revision ID: 081d4c97060a
Revises: 7aabedfb5e3a
Create Date: 2019-02-27 15:23:31.582776
"""
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = '081d4c97060a'
down_revision = '7aabedfb5e3a'
branch_labels = None
depends_on = None
def upgrade()... | {
"repo_name": "pferreir/indico",
"path": "indico/migrations/versions/20190227_1523_081d4c97060a_add_end_notifications.py",
"copies": "7",
"size": "1601",
"license": "mit",
"hash": -769335640972611000,
"line_mean": 41.1315789474,
"line_max": 110,
"alpha_frac": 0.6958151156,
"autogenerated": false,
... |
"""add enrolling status
Revision ID: 2be6f6d054e8
Revises: f17f0686ea6b
Create Date: 2018-03-21 13:57:41.685020
"""
import model.utils
import sqlalchemy as sa
from alembic import op
from rdr_service.model.site_enums import EnrollingStatus
# revision identifiers, used by Alembic.
revision = "2be6f6d054e8"
down_revis... | {
"repo_name": "all-of-us/raw-data-repository",
"path": "rdr_service/alembic/versions/2be6f6d054e8_add_enrolling_status.py",
"copies": "1",
"size": "1200",
"license": "bsd-3-clause",
"hash": 8340926055682165000,
"line_mean": 23,
"line_max": 106,
"alpha_frac": 0.6783333333,
"autogenerated": false,
... |
"""add enrollment site to participant table
Revision ID: c069abb92cc0
Revises: df7c40b6a209
Create Date: 2020-08-18 20:59:18.237666
"""
from alembic import op
import sqlalchemy as sa
import rdr_service.model.utils
from rdr_service.participant_enums import PhysicalMeasurementsStatus, QuestionnaireStatus, OrderStatus... | {
"repo_name": "all-of-us/raw-data-repository",
"path": "rdr_service/alembic/versions/c069abb92cc0_add_enrollment_site_to_participant_table.py",
"copies": "1",
"size": "2559",
"license": "bsd-3-clause",
"hash": 6976407588853596000,
"line_mean": 36.0869565217,
"line_max": 125,
"alpha_frac": 0.734271199... |
"""add enrollment site to ps
Revision ID: d28bd6bd0a8c
Revises: a233678becb4
Create Date: 2020-10-15 14:17:35.828066
"""
from alembic import op
import sqlalchemy as sa
import rdr_service.model.utils
from rdr_service.participant_enums import PhysicalMeasurementsStatus, QuestionnaireStatus, OrderStatus
from rdr_servi... | {
"repo_name": "all-of-us/raw-data-repository",
"path": "rdr_service/alembic/versions/d28bd6bd0a8c_add_enrollment_site_to_ps.py",
"copies": "1",
"size": "2108",
"license": "bsd-3-clause",
"hash": 914825404124579300,
"line_mean": 33,
"line_max": 125,
"alpha_frac": 0.745256167,
"autogenerated": false,... |
"""add enrollment status time to participant summary
Revision ID: c7c4b2f17f46
Revises: 147b312fe1c1
Create Date: 2018-10-31 11:34:00.788777
"""
import model.utils
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = "c7c4b2f17f46"
down_revision = "147b312fe1c1"
branch_l... | {
"repo_name": "all-of-us/raw-data-repository",
"path": "rdr_service/alembic/versions/c7c4b2f17f46_add_enrollment_status_time_to_.py",
"copies": "1",
"size": "1733",
"license": "bsd-3-clause",
"hash": 391299010633236100,
"line_mean": 27.8833333333,
"line_max": 115,
"alpha_frac": 0.679746105,
"autoge... |
"""add entries to lots table for DOS
Revision ID: 430
Revises: 420
Create Date: 2015-11-16 11:34:41.412730
"""
# revision identifiers, used by Alembic.
revision = '430'
down_revision = '420'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.sql import table, column
def upgrade():
# Insert DOS lot... | {
"repo_name": "alphagov/digitalmarketplace-api",
"path": "migrations/versions/430_add_entries_to_lots_table_for_dos.py",
"copies": "1",
"size": "2077",
"license": "mit",
"hash": -8205103368155994000,
"line_mean": 30.4696969697,
"line_max": 99,
"alpha_frac": 0.6186807896,
"autogenerated": false,
"... |
"""Add Envelope Functionality
Revision ID: b3c0c76ac2e6
Revises: c7f05adcf7d9
Create Date: 2018-04-06 20:17:17.556595
"""
# revision identifiers, used by Alembic.
revision = "b3c0c76ac2e6"
down_revision = "c7f05adcf7d9"
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated ... | {
"repo_name": "CityOfNewYork/NYCOpenRecords",
"path": "migrations/versions/b3c0c76ac2e6_add_envelope_functionality.py",
"copies": "1",
"size": "1238",
"license": "apache-2.0",
"hash": -2084686863915391700,
"line_mean": 28.4761904762,
"line_max": 68,
"alpha_frac": 0.640549273,
"autogenerated": false... |
"""Add epoch column for smarter refetch tracking
Revision ID: d5dba845418b
Revises: 2d10f39bfbfd
Create Date: 2020-04-26 09:51:40.312747
"""
# revision identifiers, used by Alembic.
revision = 'd5dba845418b'
down_revision = '2d10f39bfbfd'
branch_labels = None
depends_on = None
from alembic import op
import sqlalche... | {
"repo_name": "fake-name/ReadableWebProxy",
"path": "alembic/versions/2020-04-26_d5dba845418b_add_epoch_column_for_smarter_refetch_.py",
"copies": "1",
"size": "1729",
"license": "bsd-3-clause",
"hash": 3645558356344198000,
"line_mean": 32.25,
"line_max": 112,
"alpha_frac": 0.7374204743,
"autogener... |
# Add error handling to Exercise P3.10. If the user provides an invalid unit for the
# altitude, print an error message and end the program.
from sys import exit
FREEZE_CELSIUS = 0
FREEZE_FAHRENHEIT = 32
boil_celsius = 100
boil_fahrenheit = 212
temperature = float(input("Enter the temperature: "))
type = str(input("... | {
"repo_name": "futurepr0n/Books-solutions",
"path": "Python-For-Everyone-Horstmann/Chapter3-Decisions/P3.11.py",
"copies": "1",
"size": "1229",
"license": "mit",
"hash": -5177496381354171000,
"line_mean": 22.6538461538,
"line_max": 84,
"alpha_frac": 0.6159479251,
"autogenerated": false,
"ratio": ... |
"""Add ErrorLog table.
Revision ID: 9715822acf6c
Revises: 860cb49889a9
Create Date: 2017-02-27 10:15:42.372833
"""
# revision identifiers, used by Alembic.
revision = '9715822acf6c'
down_revision = '860cb49889a9'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.create_table('errorlog',
... | {
"repo_name": "airbnb/knowledge-repo",
"path": "knowledge_repo/app/migrations/versions/9715822acf6c_add_errorlog_table.py",
"copies": "1",
"size": "1213",
"license": "apache-2.0",
"hash": 6429767738368144000,
"line_mean": 30.1025641026,
"line_max": 82,
"alpha_frac": 0.6628194559,
"autogenerated": f... |
"""addErrorsPresent
Revision ID: a17156edb8a0
Revises: cdcaa9c693e3
Create Date: 2016-04-08 11:40:49.599000
"""
# revision identifiers, used by Alembic.
revision = 'a17156edb8a0'
down_revision = 'a87f915e4b62'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
def upgrade(engine... | {
"repo_name": "fedspendingtransparency/data-act-core",
"path": "dataactcore/migrations/versions/a17156edb8a0_adderrorspresent.py",
"copies": "1",
"size": "1393",
"license": "cc0-1.0",
"hash": -5968881429426676000,
"line_mean": 20.765625,
"line_max": 90,
"alpha_frac": 0.664034458,
"autogenerated": f... |
"""add_error_table_fks
Revision ID: 0c857b50962a
Revises: 51679e7bfe01
Create Date: 2016-09-26 21:42:17.896556
"""
# revision identifiers, used by Alembic.
revision = '0c857b50962a'
down_revision = '51679e7bfe01'
branch_labels = None
depends_on = None
from alembic import op
def upgrade(engine_name):
globals()... | {
"repo_name": "fedspendingtransparency/data-act-broker-backend",
"path": "dataactcore/migrations/versions/0c857b50962a_add_error_table_fks.py",
"copies": "2",
"size": "1347",
"license": "cc0-1.0",
"hash": 3923069668894865400,
"line_mean": 30.3255813953,
"line_max": 137,
"alpha_frac": 0.6837416481,
... |
"""Add event_id to Announcements and sponsor Levels
Revision ID: 4a435efab65
Revises: 177a65486a0
Create Date: 2015-04-28 00:07:35.365746
"""
# revision identifiers, used by Alembic.
revision = '4a435efab65'
down_revision = '4fb5af01b5'
from alembic import op
import sqlalchemy as sa
def upgrade():
### command... | {
"repo_name": "djds23/pygotham-1",
"path": "migrations/versions/4a435efab65_add_event_id_to_announcements_and_.py",
"copies": "3",
"size": "2134",
"license": "bsd-3-clause",
"hash": -2158877892630555000,
"line_mean": 34.5666666667,
"line_max": 113,
"alpha_frac": 0.6298031865,
"autogenerated": false... |
"""Add event log.
Revision ID: d17d4d4fd1ee
Revises: 95779b509fe4
Create Date: 2016-07-22 12:21:14.296489
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = 'd17d4d4fd1ee'
down_revision = '95779b509fe4'
def upgrade():
... | {
"repo_name": "pudo/aleph",
"path": "aleph/migrate/versions/d17d4d4fd1ee_add_event_log.py",
"copies": "4",
"size": "1225",
"license": "mit",
"hash": -7103205565923469000,
"line_mean": 33.0277777778,
"line_max": 87,
"alpha_frac": 0.6579591837,
"autogenerated": false,
"ratio": 3.232189973614776,
... |
"""Add event roles table
Revision ID: f1eee7b4880a
Revises:
Create Date: 2017-09-05 14:45:28.673606
"""
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = 'f1eee7b4880a'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
op.create_table(
... | {
"repo_name": "indico/indico",
"path": "indico/migrations/versions/20170905_1445_f1eee7b4880a_add_event_roles_table.py",
"copies": "7",
"size": "1423",
"license": "mit",
"hash": -5614272291211560000,
"line_mean": 29.9347826087,
"line_max": 72,
"alpha_frac": 0.6268446943,
"autogenerated": false,
"... |
"""add events
Revision ID: 1ae579134fd
Revises: 1bd59c36b7b
Create Date: 2013-10-26 17:46:21.489618
"""
# revision identifiers, used by Alembic.
revision = '1ae579134fd'
down_revision = '1bd59c36b7b'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - please ... | {
"repo_name": "dirn/Secret-Santa",
"path": "migrations/versions/1ae579134fd_add_events.py",
"copies": "1",
"size": "1407",
"license": "bsd-3-clause",
"hash": -6131925884669122000,
"line_mean": 30.2666666667,
"line_max": 72,
"alpha_frac": 0.6602700782,
"autogenerated": false,
"ratio": 3.3985507246... |
"""add events table
Revision ID: 34133c318c56
Revises: 1710dfa54dbd
Create Date: 2014-02-08 16:04:20.919954
"""
# revision identifiers, used by Alembic.
revision = '34133c318c56'
down_revision = '1710dfa54dbd'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic... | {
"repo_name": "kartyboyz/n64-storage-flask",
"path": "migrations/versions/34133c318c56_add_events_table.py",
"copies": "1",
"size": "1392",
"license": "mit",
"hash": 3652565531179057000,
"line_mean": 33.8,
"line_max": 145,
"alpha_frac": 0.6609195402,
"autogenerated": false,
"ratio": 3.36231884057... |
"""Add expected file source and handling options.
Revision ID: 29c521f4449c
Revises: 2ad667bb4592
Create Date: 2013-04-03 22:13:32.034983
"""
# revision identifiers, used by Alembic.
revision = '29c521f4449c'
down_revision = '2ad667bb4592'
from alembic import op
import sqlalchemy as sa
output_type_type = sa.Enum(u... | {
"repo_name": "ucsb-cs/submit",
"path": "submit/migrations/versions/29c521f4449c_add_expected_file_so.py",
"copies": "1",
"size": "1663",
"license": "bsd-2-clause",
"hash": -6278748922898100000,
"line_mean": 33.6458333333,
"line_max": 76,
"alpha_frac": 0.6416115454,
"autogenerated": false,
"ratio... |
"""Add Expedition table and relationship
Revision ID: ecf3973e1118
Revises: 62f3d26f34ea
Create Date: 2016-01-21 22:34:38.311542
"""
# revision identifiers, used by Alembic.
revision = 'ecf3973e1118'
down_revision = '62f3d26f34ea'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgr... | {
"repo_name": "KanColleTool/kcsrv",
"path": "migrations/versions/ecf3973e1118_add_expedition_table_and_relationship.py",
"copies": "1",
"size": "1229",
"license": "mit",
"hash": -8914400695824412000,
"line_mean": 30.5128205128,
"line_max": 67,
"alpha_frac": 0.688364524,
"autogenerated": false,
"r... |
"""add external identity tables
Revision ID: 24ab8d11f014
Revises: 2bb1ba973f0b
Create Date: 2011-11-10 23:18:19.446844
"""
from __future__ import unicode_literals
import sqlalchemy as sa
from alembic import op
# downgrade revision identifier, used by Alembic.
revision = "24ab8d11f014"
down_revision = "2bb1ba973f0b... | {
"repo_name": "ergo/ziggurat_foundations",
"path": "ziggurat_foundations/migrations/versions/24ab8d11f014_external_identities.py",
"copies": "1",
"size": "1071",
"license": "bsd-3-clause",
"hash": 9150653764453551000,
"line_mean": 27.9459459459,
"line_max": 85,
"alpha_frac": 0.6367880486,
"autogene... |
"""add external id to participant
Revision ID: 147b312fe1c1
Revises: 9b2ec162bfde
Create Date: 2018-10-24 11:01:57.219090
"""
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = "147b312fe1c1"
down_revision = "9b2ec162bfde"
branch_labels = None
depends_on = None
def u... | {
"repo_name": "all-of-us/raw-data-repository",
"path": "rdr_service/alembic/versions/147b312fe1c1_add_external_id_to_participant.py",
"copies": "1",
"size": "1405",
"license": "bsd-3-clause",
"hash": -5168182029271392000,
"line_mean": 26.5490196078,
"line_max": 98,
"alpha_frac": 0.6725978648,
"auto... |
"""Add extra attendees to CustomForm.
Revision ID: 825dad56a2c3
Revises: 7525fd3b67d5
Create Date: 2018-01-13 16:19:50.651900
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '825dad56a2c3'
down_revision = '009352d11348'
def upgrade():
# ### commands auto g... | {
"repo_name": "viaict/viaduct",
"path": "migrations/versions/2018_01_13_825dad56a2c3_add_extra_attendees_to_customform.py",
"copies": "1",
"size": "1077",
"license": "mit",
"hash": -6332718407557932000,
"line_mean": 28.9166666667,
"line_max": 79,
"alpha_frac": 0.6165273909,
"autogenerated": false,
... |
"""Add failing tables
Revision ID: a3997837668c
Revises: dfc939482d8d
Create Date: 2017-10-15 15:03:08.130965
"""
# revision identifiers, used by Alembic.
revision = 'a3997837668c'
down_revision = 'dfc939482d8d'
from alembic import op
import sqlalchemy as sa
def upgrade():
# ### commands auto generated by Ale... | {
"repo_name": "porduna/appcomposer",
"path": "alembic/versions/a3997837668c_add_failing_tables.py",
"copies": "3",
"size": "4444",
"license": "bsd-2-clause",
"hash": -5431394034482506000,
"line_mean": 59.0540540541,
"line_max": 138,
"alpha_frac": 0.7229972997,
"autogenerated": false,
"ratio": 3.3... |
"""Add FailureReason
Revision ID: 1c5907e309f1
Revises: 4a12e7f0159d
Create Date: 2014-06-02 15:31:02.991394
"""
# revision identifiers, used by Alembic.
revision = '1c5907e309f1'
down_revision = '4a12e7f0159d'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembi... | {
"repo_name": "alex/changes",
"path": "migrations/versions/1c5907e309f1_add_failurereason.py",
"copies": "4",
"size": "1593",
"license": "apache-2.0",
"hash": 7627041655368663000,
"line_mean": 37.8536585366,
"line_max": 98,
"alpha_frac": 0.6578782172,
"autogenerated": false,
"ratio": 3.4258064516... |
"""add fall and reverse
Revision ID: 566b0cc2f2c
Revises: 20c9101ad47f
Create Date: 2014-04-09 21:30:57.061767
"""
# revision identifiers, used by Alembic.
revision = '566b0cc2f2c'
down_revision = '20c9101ad47f'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alemb... | {
"repo_name": "kartyboyz/n64-storage-flask",
"path": "migrations/versions/566b0cc2f2c_add_fall_and_reverse.py",
"copies": "1",
"size": "1061",
"license": "mit",
"hash": 6618206265198975000,
"line_mean": 32.15625,
"line_max": 128,
"alpha_frac": 0.6211121583,
"autogenerated": false,
"ratio": 3.1671... |
"""Add FastCache for avoiding retrieving the app_url in every single update
Revision ID: 471e6f7722a7
Revises: 6d09f595667
Create Date: 2015-04-14 07:40:57.006143
"""
# revision identifiers, used by Alembic.
revision = '471e6f7722a7'
down_revision = '6d09f595667'
from alembic import op
import sqlalchemy as sa
def... | {
"repo_name": "go-lab/appcomposer",
"path": "alembic/versions/471e6f7722a7_add_fastcache_for_avoiding_retrieving_.py",
"copies": "3",
"size": "1130",
"license": "bsd-2-clause",
"hash": -3582429246096965000,
"line_mean": 32.2352941176,
"line_max": 107,
"alpha_frac": 0.7123893805,
"autogenerated": fa... |
"""AddFeeds
Revision ID: 6620d1c95ab9
Revises: bdce5a60ee7d
Create Date: 2017-08-12 14:52:19.067761
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '6620d1c95ab9'
down_revision = 'bdce5a60ee7d'
branch_labels = None
depends_on = None
feed_table_name = 'feeds'
f... | {
"repo_name": "charlesj/Apollo",
"path": "database/versions/6620d1c95ab9_addfeeds.py",
"copies": "1",
"size": "1544",
"license": "mit",
"hash": -7582440735881333000,
"line_mean": 31.8510638298,
"line_max": 81,
"alpha_frac": 0.6670984456,
"autogenerated": false,
"ratio": 3.20997920997921,
"confi... |
"""Add fetch ref column
Revision ID: 725816dc500
Revises: 38104b4c1b84
Create Date: 2014-05-31 14:51:08.078616
"""
# revision identifiers, used by Alembic.
revision = '725816dc500'
down_revision = '38104b4c1b84'
import warnings
from alembic import op
import sqlalchemy as sa
from gertty.dbsupport import sqlite_alt... | {
"repo_name": "aspiers/gertty",
"path": "gertty/alembic/versions/725816dc500_add_fetch_ref_column.py",
"copies": "1",
"size": "1291",
"license": "apache-2.0",
"hash": 8670674877061080000,
"line_mean": 30.487804878,
"line_max": 111,
"alpha_frac": 0.6646010844,
"autogenerated": false,
"ratio": 3.13... |
"""add field deleted, updated_at, user_id in Vacancy
Revision ID: 38331aa4875
Revises: 46f4932e624
Create Date: 2015-08-07 16:37:12.968236
"""
# revision identifiers, used by Alembic.
import datetime
revision = '38331aa4875'
down_revision = '46f4932e624'
from alembic import op
import sqlalchemy as sa
from sqlalche... | {
"repo_name": "uaprom-summer-2015/Meowth",
"path": "migrations/versions/2015_08_07_3833_add_field_deleted_updated_at_user_id_in_.py",
"copies": "2",
"size": "1226",
"license": "bsd-3-clause",
"hash": 640873795420560500,
"line_mean": 33.0555555556,
"line_max": 104,
"alpha_frac": 0.6508972268,
"autog... |
"""Add Fields and FieldEntries tables
Revision ID: 75e8ab9a0014
Revises: 0366ba6575ca
Create Date: 2020-08-19 00:36:17.579497
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = "75e8ab9a0014"
down_revision = "0366ba6575ca"
branch_labels = None
depends_on = None
... | {
"repo_name": "CTFd/CTFd",
"path": "migrations/versions/75e8ab9a0014_add_fields_and_fieldentries_tables.py",
"copies": "4",
"size": "1867",
"license": "apache-2.0",
"hash": 8510370309069660000,
"line_mean": 34.2264150943,
"line_max": 81,
"alpha_frac": 0.6282806642,
"autogenerated": false,
"ratio"... |
"""add fields for workbench api
Revision ID: 038364a84126
Revises: 27b812b403cc
Create Date: 2020-01-08 14:06:44.251432
"""
from alembic import op
import sqlalchemy as sa
import rdr_service.model.utils
from rdr_service.participant_enums import WorkbenchResearcherSexAtBirth, WorkbenchResearcherSexualOrientation
# r... | {
"repo_name": "all-of-us/raw-data-repository",
"path": "rdr_service/alembic/versions/038364a84126_add_fields_for_workbench_api.py",
"copies": "1",
"size": "4057",
"license": "bsd-3-clause",
"hash": -8822634046017681000,
"line_mean": 46.1744186047,
"line_max": 120,
"alpha_frac": 0.6275573084,
"autog... |
"""Add fields on SVM Classifier at scikit learn.
Revision ID: 4c1ebd8863a8
Revises: ba0fe62f7174
Create Date: 2019-11-04 16:20:48.481455
"""
from alembic import op
import sqlalchemy as sa
from alembic import context
from alembic import op
from sqlalchemy import String, Integer, Text
from sqlalchemy.orm import session... | {
"repo_name": "eubr-bigsea/tahiti",
"path": "migrations/versions/4c1ebd8863a8_add_fields_on_svm_classifier_at_scikit_.py",
"copies": "1",
"size": "5405",
"license": "apache-2.0",
"hash": 532660604140538900,
"line_mean": 36.4305555556,
"line_max": 163,
"alpha_frac": 0.5988868275,
"autogenerated": fa... |
"""Add fields to ItemAudit table to support a future revamp of the issue system.
Mostly not using these new fields yet.
Action Instructions will hold information for how the user can fix the issue.
Background Information will hold information on why something is a problem, likely with links to AWS documentation for t... | {
"repo_name": "markofu/security_monkey",
"path": "migrations/versions/c9dd06c919ac_.py",
"copies": "3",
"size": "1710",
"license": "apache-2.0",
"hash": 4885280905147781000,
"line_mean": 44.0263157895,
"line_max": 143,
"alpha_frac": 0.7467836257,
"autogenerated": false,
"ratio": 3.366141732283464... |
"""addFileData
Revision ID: 7ee5e2cfb9cd
Revises: b8cf7fa342bb
Create Date: 2016-04-06 09:30:37.743000
"""
# revision identifiers, used by Alembic.
revision = '7ee5e2cfb9cd'
down_revision = 'b8cf7fa342bb'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
def upgrade(engine_name... | {
"repo_name": "fedspendingtransparency/data-act-core",
"path": "dataactcore/migrations/versions/7ee5e2cfb9cd_addfiledata.py",
"copies": "1",
"size": "1516",
"license": "cc0-1.0",
"hash": 7631710345375738000,
"line_mean": 22.3230769231,
"line_max": 89,
"alpha_frac": 0.6609498681,
"autogenerated": fa... |
"""add file format to file generation table
Revision ID: 3c16b4d8506c
Revises: 0a36baf32413
Create Date: 2019-07-23 14:02:47.454725
"""
# revision identifiers, used by Alembic.
revision = '3c16b4d8506c'
down_revision = '0a36baf32413'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as... | {
"repo_name": "fedspendingtransparency/data-act-broker-backend",
"path": "dataactcore/migrations/versions/3c16b4d8506c_add_file_format_to_file_generation_table.py",
"copies": "1",
"size": "1685",
"license": "cc0-1.0",
"hash": -9053915860865724000,
"line_mean": 29.0892857143,
"line_max": 154,
"alpha_f... |
"""add_file_generation_task
Revision ID: 7d4f322c7661
Revises: 31876fecc214
Create Date: 2016-09-02 12:08:21.113516
"""
# revision identifiers, used by Alembic.
revision = '7d4f322c7661'
down_revision = '31876fecc214'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
from sqlalch... | {
"repo_name": "fedspendingtransparency/data-act-broker-backend",
"path": "dataactcore/migrations/versions/7d4f322c7661_add_file_generation_task.py",
"copies": "2",
"size": "3141",
"license": "cc0-1.0",
"hash": 4603836465478573000,
"line_mean": 43.2394366197,
"line_max": 134,
"alpha_frac": 0.699777141... |
"""Add file paths to genomic gc validation metrics
Revision ID: d5d97368b14d
Revises: 4507ede4f552
Create Date: 2020-07-24 14:14:21.478839
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'd5d97368b14d'
down_revision = '4507ede4f552'
branch_labels = None
depends... | {
"repo_name": "all-of-us/raw-data-repository",
"path": "rdr_service/alembic/versions/d5d97368b14d_add_file_paths_to_genomic_gc_validation_.py",
"copies": "1",
"size": "3798",
"license": "bsd-3-clause",
"hash": 2730617545783588000,
"line_mean": 48.3246753247,
"line_max": 122,
"alpha_frac": 0.704318062... |
"""add file relation
Revision ID: 52f4346513a8
Revises: d7067cd4169
Create Date: 2014-04-02 16:33:16.710455
"""
# revision identifiers, used by Alembic.
revision = '52f4346513a8'
down_revision = 'd7067cd4169'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
def upgrade():
... | {
"repo_name": "clkao/grano",
"path": "alembic/versions/52f4346513a8_add_file_relation.py",
"copies": "1",
"size": "1062",
"license": "mit",
"hash": -1350846510885262800,
"line_mean": 29.3428571429,
"line_max": 68,
"alpha_frac": 0.6826741996,
"autogenerated": false,
"ratio": 3.2181818181818183,
... |
""" add file uuids
Revision ID: 1e0ff2269c43
Revises: 47ecebadac41
Create Date: 2015-02-04 17:39:38.648599
"""
# revision identifiers, used by Alembic.
revision = '1e0ff2269c43'
down_revision = '47ecebadac41'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
def upgrade():
... | {
"repo_name": "pyfidelity/rest-seed",
"path": "backend/backrest/migrations/versions/1e0ff2269c43_add_file_uuids.py",
"copies": "1",
"size": "1117",
"license": "bsd-2-clause",
"hash": -2415287159661793300,
"line_mean": 32.8484848485,
"line_max": 95,
"alpha_frac": 0.6696508505,
"autogenerated": false... |
"""Add financial accounts and transactions
Revision ID: 0f5e47ad79bf
Revises: 2cd16ae229a1
Create Date: 2018-06-09 18:21:26.287275
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects.postgresql import ARRAY
# revision identifiers, used by Alembic.
revision = '0f5e47ad79bf'
down_revision = '2c... | {
"repo_name": "charlesj/Apollo",
"path": "database/versions/0f5e47ad79bf_add_financial_accounts_and_transactions.py",
"copies": "1",
"size": "1929",
"license": "mit",
"hash": 3524037043406542300,
"line_mean": 36.8431372549,
"line_max": 77,
"alpha_frac": 0.6879212027,
"autogenerated": false,
"rati... |
"""add fingerprint_path to genomic_set_member
Revision ID: f73a5e7b1822
Revises: 0d5e58df7917
Create Date: 2020-11-09 12:17:28.477732
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'f73a5e7b1822'
down_revision = '0d5e58df7917'
branch_labels = None
depends_on = ... | {
"repo_name": "all-of-us/raw-data-repository",
"path": "rdr_service/alembic/versions/f73a5e7b1822_add_fingerprint_path_to_genomic_set_.py",
"copies": "1",
"size": "1348",
"license": "bsd-3-clause",
"hash": -8008895209632775000,
"line_mean": 25.96,
"line_max": 116,
"alpha_frac": 0.6787833828,
"autog... |
"""Add first structure
Revision ID: 41daf2bf458b
Revises: 552742dd018b
Create Date: 2015-02-09 15:24:54.607237
"""
# revision identifiers, used by Alembic.
revision = '41daf2bf458b'
down_revision = '552742dd018b'
import hashlib
from alembic import op
import sqlalchemy as sa
metadata = sa.MetaData()
users_table = ... | {
"repo_name": "porduna/weblabdeusto",
"path": "tools/wcloud/alembic/versions/41daf2bf458b_add_first_structure.py",
"copies": "4",
"size": "2564",
"license": "bsd-2-clause",
"hash": 5076644707450121000,
"line_mean": 36.1594202899,
"line_max": 161,
"alpha_frac": 0.6626365055,
"autogenerated": false,
... |
"""Add first tables
Revision ID: 4d58a25d196b
Revises: 121482e6f837
Create Date: 2015-12-27 20:08:17.082959
"""
# revision identifiers, used by Alembic.
revision = '4d58a25d196b'
down_revision = '121482e6f837'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic... | {
"repo_name": "procool/mygw",
"path": "globals/alembic/versions/4d58a25d196b_add_first_tables.py",
"copies": "1",
"size": "1214",
"license": "bsd-2-clause",
"hash": 4397480432864277500,
"line_mean": 28.6097560976,
"line_max": 65,
"alpha_frac": 0.6663920923,
"autogenerated": false,
"ratio": 3.2634... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.