text stringlengths 0 1.05M | meta dict |
|---|---|
"""Add order info
Revision ID: 272c7585b868
Revises: 4e8daad637a6
Create Date: 2017-06-22 10:21:59.098063
"""
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = "272c7585b868"
down_revision = "4e8daad637a6"
branch_labels = None
depends_on = None
def upgrade(engine_na... | {
"repo_name": "all-of-us/raw-data-repository",
"path": "rdr_service/alembic/versions/272c7585b868_add_order_info.py",
"copies": "1",
"size": "2073",
"license": "bsd-3-clause",
"hash": -8429880459242701000,
"line_mean": 34.1355932203,
"line_max": 105,
"alpha_frac": 0.6767969127,
"autogenerated": fal... |
"""Add order navigation children alphabetically.
Revision ID: 0d279cc03c6e
Revises: da44c279ce0a
Create Date: 2018-05-08 10:02:51.009181
"""
import sqlalchemy as sa
from alembic import op
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker, relationship
# revision identifi... | {
"repo_name": "viaict/viaduct",
"path": "migrations/versions/2018_05_08_0d279cc03c6e_add_order_navigation_children_.py",
"copies": "1",
"size": "1198",
"license": "mit",
"hash": -4964307900123449000,
"line_mean": 24.4893617021,
"line_max": 74,
"alpha_frac": 0.6886477462,
"autogenerated": false,
"... |
"""Add orders plugin metadata table and relationships
Revision ID: 4070806f6972
Revises: 47b69e523451
Create Date: 2014-08-21 14:06:48.237701
"""
# revision identifiers, used by Alembic.
revision = '4070806f6972'
down_revision = '47b69e523451'
from alembic import op
import sqlalchemy as sa
def upgrade():
ctx ... | {
"repo_name": "cneill/barbican",
"path": "barbican/model/migration/alembic_migrations/versions/4070806f6972_add_orders_plugin_metadata_table_and_.py",
"copies": "3",
"size": "1328",
"license": "apache-2.0",
"hash": 309786294439759400,
"line_mean": 33.0512820513,
"line_max": 77,
"alpha_frac": 0.633283... |
"""addOriginalFilenames
Revision ID: cdb714f6f374
Revises: 37bf5b71b83f
Create Date: 2016-03-22 16:07:16.229000
"""
# revision identifiers, used by Alembic.
revision = 'cdb714f6f374'
down_revision = '37bf5b71b83f'
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/cdb714f6f374_addoriginalfilenames.py",
"copies": "1",
"size": "5612",
"license": "cc0-1.0",
"hash": 3276386913787422700,
"line_mean": 32.0117647059,
"line_max": 89,
"alpha_frac": 0.5580898076,
"autogener... |
"""add_origin_to_biobank_order
Revision ID: 1ebd26a7612c
Revises: c2fa79ef2fca
Create Date: 2020-02-26 12:00:50.340756
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '1ebd26a7612c'
down_revision = 'c2fa79ef2fca'
branch_labels = None
depends_on = None
def upgr... | {
"repo_name": "all-of-us/raw-data-repository",
"path": "rdr_service/alembic/versions/1ebd26a7612c_add_origin_to_biobank_order.py",
"copies": "1",
"size": "1284",
"license": "bsd-3-clause",
"hash": -8481909600619556000,
"line_mean": 24.1764705882,
"line_max": 100,
"alpha_frac": 0.6682242991,
"autoge... |
"""Add 'other' to qb classifications enum (and remove obsolete 'followup')
Revision ID: da6506c5899a
Revises: 9c6788e6db2f
Create Date: 2019-10-01 15:31:47.918164
"""
from alembic import op
import sqlalchemy as sa
from portal.models.questionnaire_bank import classification_types
# revision identifiers, used by Alem... | {
"repo_name": "uwcirg/true_nth_usa_portal",
"path": "portal/migrations/versions/da6506c5899a_.py",
"copies": "1",
"size": "2620",
"license": "bsd-3-clause",
"hash": -6403418252722871000,
"line_mean": 33.4736842105,
"line_max": 78,
"alpha_frac": 0.708778626,
"autogenerated": false,
"ratio": 3.8081... |
# Add our library code directory to the import search path. This allows things like
# `import fourier` to work. It relies on the relative filesystem position of this
# file to the `library` directory.
import sys
sys.path.append('../library')
def pickle_curve_positions (Xs, Ts, period):
import numpy
samples =... | {
"repo_name": "vdods/heisenberg",
"path": "attic/initial-conditions-dynamics/main.py",
"copies": "1",
"size": "2261",
"license": "mit",
"hash": -2078107404035822600,
"line_mean": 38.6666666667,
"line_max": 135,
"alpha_frac": 0.6886333481,
"autogenerated": false,
"ratio": 3.1622377622377624,
"co... |
"""Add Outcome model
Revision ID: 1200
Revises: 1210
Create Date: 2018-05-10 17:22:50.773017
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '1210'
down_revision = '1200'
def upgrade():
op.create_unique_constraint('uq_brief_responses_id_brief_id', 'brief... | {
"repo_name": "alphagov/digitalmarketplace-api",
"path": "migrations/versions/1210_add_outcome_model.py",
"copies": "1",
"size": "5612",
"license": "mit",
"hash": -8936139951313304000,
"line_mean": 43.5396825397,
"line_max": 181,
"alpha_frac": 0.6174269423,
"autogenerated": false,
"ratio": 3.4074... |
"""Add output_limit_exceeded to TCR.status enum.
Revision ID: 4f99b161d06c
Revises: 592873dff501
Create Date: 2013-02-12 17:00:33.069428
"""
# revision identifiers, used by Alembic.
revision = '4f99b161d06c'
down_revision = '592873dff501'
from alembic import op
import sqlalchemy as sa
old_options = ('nonexistent_e... | {
"repo_name": "ucsb-cs/submit",
"path": "submit/migrations/versions/4f99b161d06c_add_output_limit_exc.py",
"copies": "1",
"size": "2051",
"license": "bsd-2-clause",
"hash": -2197395043640117000,
"line_mean": 37.6981132075,
"line_max": 76,
"alpha_frac": 0.6811311555,
"autogenerated": false,
"ratio... |
#add parent dir to find package. Only needed for source code build, pip install doesn't need it.
import os, inspect
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
parentdir = os.path.dirname(os.path.dirname(currentdir))
os.sys.path.insert(0, parentdir)
from pybullet_envs.bullet.... | {
"repo_name": "MTASZTAKI/ApertusVR",
"path": "plugins/physics/bulletPhysics/3rdParty/bullet3/examples/pybullet/gym/pybullet_envs/examples/kukaCamGymEnvTest.py",
"copies": "4",
"size": "1552",
"license": "mit",
"hash": 9031457480948977000,
"line_mean": 36.8536585366,
"line_max": 96,
"alpha_frac": 0.73... |
#add parent dir to find package. Only needed for source code build, pip install doesn't need it.
import os
import inspect
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
parentdir = os.path.dirname(os.path.dirname(currentdir))
os.sys.path.insert(0, parentdir)
import pybullet
impor... | {
"repo_name": "MTASZTAKI/ApertusVR",
"path": "plugins/physics/bulletPhysics/3rdParty/bullet3/examples/pybullet/gym/pybullet_envs/examples/enjoy_TF_AntBulletEnv_v0_2017may.py",
"copies": "2",
"size": "132255",
"license": "mit",
"hash": 3718009380563957000,
"line_mean": 59.9751037344,
"line_max": 96,
"... |
"""Add parent duns and parent legal business name to DUNS table
Revision ID: 6973101b6853
Revises: c4d42e86c655
Create Date: 2018-03-28 10:31:51.687556
"""
# revision identifiers, used by Alembic.
revision = '6973101b6853'
down_revision = 'c4d42e86c655'
branch_labels = None
depends_on = None
from alembic import op
... | {
"repo_name": "fedspendingtransparency/data-act-broker-backend",
"path": "dataactcore/migrations/versions/6973101b6853_add_parent_duns_and_name_to_duns_table.py",
"copies": "1",
"size": "1047",
"license": "cc0-1.0",
"hash": -6336872828829000000,
"line_mean": 25.8461538462,
"line_max": 92,
"alpha_frac... |
# Add parent path,
# Allow starting the app without installing the module.
import sys
from os.path import dirname, join, realpath
import django
sys.path.insert(0, dirname(dirname(realpath(__file__))))
DEBUG = True
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
"def... | {
"repo_name": "edoburu/django-fluent-contents",
"path": "example/settings.py",
"copies": "2",
"size": "4164",
"license": "apache-2.0",
"hash": 5547531644685149000,
"line_mean": 26.9463087248,
"line_max": 85,
"alpha_frac": 0.631364073,
"autogenerated": false,
"ratio": 3.4786967418546366,
"config... |
#add parents and children counts to the node attributes in the database
#haven't confirmed that I'm counting the right thing
#if want all relationships, not just unique, just delete calls to unique() and rename par and chil
from py2neo import neo4j, cypher
graph_db = neo4j.GraphDatabaseService("http://localhost... | {
"repo_name": "gharp/phyet",
"path": "add_prop_counts.py",
"copies": "1",
"size": "1453",
"license": "apache-2.0",
"hash": -8529767435190600000,
"line_mean": 32.5952380952,
"line_max": 98,
"alpha_frac": 0.5932553338,
"autogenerated": false,
"ratio": 3.854111405835544,
"config_test": false,
"h... |
"""add participant origin
Revision ID: 2a9c885158ac
Revises: bce6d443874f
Create Date: 2019-11-13 10:20:37.557338
"""
from alembic import op
import sqlalchemy as sa
import model.utils
from rdr_service.participant_enums import PhysicalMeasurementsStatus, QuestionnaireStatus, OrderStatus
from rdr_service.participant_... | {
"repo_name": "all-of-us/raw-data-repository",
"path": "rdr_service/alembic/versions/2a9c885158ac_add_participant_origin.py",
"copies": "1",
"size": "3129",
"license": "bsd-3-clause",
"hash": 6911441839676834000,
"line_mean": 34.9655172414,
"line_max": 125,
"alpha_frac": 0.6740172579,
"autogenerate... |
"""add participant summary last modified
Revision ID: adb4ea532f1a
Revises: e4518d7d1af1
Create Date: 2018-03-08 13:23:40.782964
"""
import model.utils
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = "adb4ea532f1a"
down_revision = "e4518d7d1af1"
branch_labels = None... | {
"repo_name": "all-of-us/raw-data-repository",
"path": "rdr_service/alembic/versions/adb4ea532f1a_add_participant_summary_last_modified.py",
"copies": "1",
"size": "1175",
"license": "bsd-3-clause",
"hash": 5707010583975885000,
"line_mean": 23.4791666667,
"line_max": 110,
"alpha_frac": 0.6757446809,
... |
"""Add parties references to the 'users' and 'fraternities'
Revision ID: 6451c45cc96d
Revises: e2200226cabc
Create Date: 2016-04-15 19:15:32.280974
"""
# revision identifiers, used by Alembic.
revision = '6451c45cc96d'
down_revision = 'e2200226cabc'
from alembic import op
import sqlalchemy as sa
def upgrade():
... | {
"repo_name": "Rdbaker/WPI-IFC",
"path": "migrations/versions/6451c45cc96d_.py",
"copies": "1",
"size": "1075",
"license": "bsd-3-clause",
"hash": 2426179893888569000,
"line_mean": 32.59375,
"line_max": 86,
"alpha_frac": 0.68,
"autogenerated": false,
"ratio": 3.1432748538011697,
"config_test": ... |
"""Add paste sha col
Revision ID: e78f9d818988
Revises: d3dad4db468d
Create Date: 2017-03-22 19:20:28.949724
"""
import hashlib
from alembic import op
import sqlalchemy as sa
from sqlalchemy import sql
# revision identifiers, used by Alembic.
revision = 'e78f9d818988'
down_revision = 'd3dad4db468d'
branch_labels =... | {
"repo_name": "d0ugal/discode-server",
"path": "alembic/versions/e78f9d818988_add_paste_sha_col.py",
"copies": "1",
"size": "1245",
"license": "bsd-2-clause",
"hash": -9118585614909667000,
"line_mean": 24.4081632653,
"line_max": 84,
"alpha_frac": 0.6610441767,
"autogenerated": false,
"ratio": 3.1... |
"""Add path cache.
Revision ID: b050aa239139
Revises: 6c0e33ba7f1d
Create Date: 2016-08-22 17:37:09.343948
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
revision = 'b050aa239139'
down_revision = '6c0e33ba7f1d'
def upgrade():
op.create_table('path',
sa.Col... | {
"repo_name": "OpenGazettes/aleph",
"path": "aleph/migrate/versions/b050aa239139_add_path_cache.py",
"copies": "4",
"size": "1258",
"license": "mit",
"hash": -8852663323998172000,
"line_mean": 34.9428571429,
"line_max": 99,
"alpha_frac": 0.6637519873,
"autogenerated": false,
"ratio": 3.1687657430... |
# Add path to API
#import sys
#sys.path.insert(0, '../api')
#import utils
import argparse
import subprocess
import json
from pprint import pprint
parser = argparse.ArgumentParser(
description="Create an atlas of SVG maps",
epilog="Example usage: python makeatlas.py -C IN")
parser.add_argument("-C", "--hasc"... | {
"repo_name": "WikimapsAtlas/WikimapsAtlas-generator",
"path": "script/makeatlas.py",
"copies": "2",
"size": "2602",
"license": "mit",
"hash": -1467066772004977000,
"line_mean": 32.3717948718,
"line_max": 132,
"alpha_frac": 0.6087624904,
"autogenerated": false,
"ratio": 3.4832663989290493,
"con... |
## Add path to library (just for examples; you do not need this)
import sys, os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..'))
from pyqtgraph.Qt import QtGui, QtCore
import pyqtgraph as pg
import user
app = QtGui.QApplication([])
view = pg.GraphicsView()
l = pg.GraphicsLayout(border=pg.mkPen(... | {
"repo_name": "robertsj/poropy",
"path": "pyqtgraph/examples/GraphicsLayout.py",
"copies": "1",
"size": "1075",
"license": "mit",
"hash": 8226626389694727000,
"line_mean": 22.3695652174,
"line_max": 71,
"alpha_frac": 0.6734883721,
"autogenerated": false,
"ratio": 2.471264367816092,
"config_test... |
"""Add payments table
Revision ID: 4b7ccf8ac448
Create Date: 2015-12-14 20:13:00.029117
"""
# revision identifiers, used by Alembic.
revision = '4b7ccf8ac448'
down_revision = None
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
def ... | {
"repo_name": "smilledge/transient",
"path": "transient/migrations/versions/4b7ccf8ac448_add_payments_table.py",
"copies": "1",
"size": "1681",
"license": "mit",
"hash": 3336188112918411000,
"line_mean": 42.1025641026,
"line_max": 190,
"alpha_frac": 0.7031528852,
"autogenerated": false,
"ratio": ... |
"""add pending actions
Revision ID: 46b175bfa277
Revises: 3d429503a29a
Create Date: 2014-08-31 09:20:11.789330
"""
# revision identifiers, used by Alembic.
revision = '46b175bfa277'
down_revision = '3d429503a29a'
import warnings
from alembic import op
import sqlalchemy as sa
from gertty.dbsupport import sqlite_al... | {
"repo_name": "aspiers/gertty",
"path": "gertty/alembic/versions/46b175bfa277_add_pending_actions.py",
"copies": "1",
"size": "2586",
"license": "apache-2.0",
"hash": -4226229469413500400,
"line_mean": 38.1818181818,
"line_max": 103,
"alpha_frac": 0.6218097448,
"autogenerated": false,
"ratio": 3.... |
"""add_pending_artifact
Revision ID: 0f81e9efc84a
Revises: 61a1763b9c8d
Create Date: 2019-10-24 15:13:36.705288
"""
import zeus.db.types
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = "0f81e9efc84a"
down_revision = "61a1763b9c8d"
branch_labels = ()
depends_on = No... | {
"repo_name": "getsentry/zeus",
"path": "zeus/migrations/0f81e9efc84a_add_pending_artifact.py",
"copies": "1",
"size": "2442",
"license": "apache-2.0",
"hash": -2913646036425878500,
"line_mean": 32,
"line_max": 85,
"alpha_frac": 0.6134316134,
"autogenerated": false,
"ratio": 3.4786324786324787,
... |
"""Add Pending Certificates models and relations
Revision ID: 556ceb3e3c3e
Revises: 47baffaae1a7
Create Date: 2018-01-05 01:18:45.571595
"""
# revision identifiers, used by Alembic.
revision = '556ceb3e3c3e'
down_revision = '449c3d5c7299'
from alembic import op
import sqlalchemy as sa
from lemur.utils import Vault
... | {
"repo_name": "kevgliss/lemur",
"path": "lemur/migrations/versions/556ceb3e3c3e_.py",
"copies": "1",
"size": "5656",
"license": "apache-2.0",
"hash": 3599226470030670300,
"line_mean": 56.1313131313,
"line_max": 166,
"alpha_frac": 0.7066831683,
"autogenerated": false,
"ratio": 3.6443298969072164,
... |
"""Add Pending Certificates models and relations
Revision ID: 556ceb3e3c3e
Revises: 47baffaae1a7
Create Date: 2018-01-05 01:18:45.571595
"""
# revision identifiers, used by Alembic.
revision = "556ceb3e3c3e"
down_revision = "449c3d5c7299"
from alembic import op
import sqlalchemy as sa
from lemur.utils import Vault
... | {
"repo_name": "Netflix/lemur",
"path": "lemur/migrations/versions/556ceb3e3c3e_.py",
"copies": "1",
"size": "6410",
"license": "apache-2.0",
"hash": -986524030391539000,
"line_mean": 37.8484848485,
"line_max": 88,
"alpha_frac": 0.6235569423,
"autogenerated": false,
"ratio": 3.8661037394451148,
... |
"""Add people table
Revision ID: 27e81ea4d86
Revises: None
Create Date: 2014-02-27 00:50:04.698519
"""
from alembic import context
from alembic.op import (create_index, create_table,
drop_index, drop_table, execute)
from sqlalchemy.schema import Column, PrimaryKeyConstraint
from sqlalchemy.typ... | {
"repo_name": "clicheio/cliche",
"path": "cliche/migrations/versions/27e81ea4d86_add_people_table.py",
"copies": "2",
"size": "1165",
"license": "mit",
"hash": -3389692139543552000,
"line_mean": 28.125,
"line_max": 70,
"alpha_frac": 0.6703862661,
"autogenerated": false,
"ratio": 3.584615384615384... |
"""add permissions and roles
Revision ID: 556574b57514
Revises: bbdff842b0cb
Create Date: 2018-09-06 00:00:17.419441
"""
# revision identifiers, used by Alembic.
revision = '556574b57514'
down_revision = 'bbdff842b0cb'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.create_table('roles',
... | {
"repo_name": "rivalrockets/benchmarks.rivalrockets.com",
"path": "migrations/versions/556574b57514_add_permissions_and_roles.py",
"copies": "2",
"size": "1508",
"license": "mit",
"hash": -2298493925427330800,
"line_mean": 32.5111111111,
"line_max": 103,
"alpha_frac": 0.6624668435,
"autogenerated":... |
"""Add personal access tokens
Revision ID: 1f6738730753
Revises: 356b8985ae7c
Create Date: 2021-06-29 12:05:07.347139
"""
import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
from indico.core.db.sqlalchemy import UTCDateTime
# revision identifiers, used by Alembic.
revision = '... | {
"repo_name": "indico/indico",
"path": "indico/migrations/versions/20210630_1205_1f6738730753_add_personal_access_tokens.py",
"copies": "1",
"size": "1375",
"license": "mit",
"hash": 237061705680459740,
"line_mean": 31.7380952381,
"line_max": 93,
"alpha_frac": 0.6661818182,
"autogenerated": false,
... |
"""Add pg_trgm indexes on certain attributes used for CN / Name filtering in ILIKE queries.
Revision ID: ee827d1e1974
Revises: 7ead443ba911
Create Date: 2018-11-05 09:49:40.226368
"""
# revision identifiers, used by Alembic.
revision = "ee827d1e1974"
down_revision = "7ead443ba911"
from alembic import op
from sqlalc... | {
"repo_name": "Netflix/lemur",
"path": "lemur/migrations/versions/ee827d1e1974_.py",
"copies": "1",
"size": "1285",
"license": "apache-2.0",
"hash": -578502383957617400,
"line_mean": 24.7,
"line_max": 91,
"alpha_frac": 0.6249027237,
"autogenerated": false,
"ratio": 3.435828877005348,
"config_te... |
"""Add physical measurement cols
Revision ID: b14e7aca2366
Revises: 0ffdadea0b92
Create Date: 2017-09-01 15:59:56.936727
"""
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = "b14e7aca2366"
down_revision = "0ffdadea0b92"
branch_labels = None
depends_on = None
def up... | {
"repo_name": "all-of-us/raw-data-repository",
"path": "rdr_service/alembic/versions/b14e7aca2366_add_physical_measurement_cols.py",
"copies": "1",
"size": "2016",
"license": "bsd-3-clause",
"hash": -5547538237532095000,
"line_mean": 34.3684210526,
"line_max": 113,
"alpha_frac": 0.6899801587,
"auto... |
"""add_pin adss a Pin to a port, add_pins adds Pins to all ports:
- pins
- outline
Some functions modify a component without changing its name.
Make sure these functions are inside a new Component.
They modify the geometry of a component (add pins, labels, grating couplers ...) without modifying the cell name
"""
im... | {
"repo_name": "gdsfactory/gdsfactory",
"path": "pp/add_pins.py",
"copies": "1",
"size": "14139",
"license": "mit",
"hash": 1172399217442574800,
"line_mean": 26.5077821012,
"line_max": 112,
"alpha_frac": 0.5801683287,
"autogenerated": false,
"ratio": 3.3728530534351147,
"config_test": false,
"... |
"""add plate table
Revision ID: 88fa93c68dab
Revises: 3311cbf4b2bd
Create Date: 2016-12-05 15:08:07.137235
"""
# revision identifiers, used by Alembic.
revision = "88fa93c68dab"
down_revision = "3311cbf4b2bd"
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
def upgrade():
... | {
"repo_name": "Clinical-Genomics/taboo",
"path": "alembic/versions/88fa93c68dab_add_plate_table.py",
"copies": "1",
"size": "1219",
"license": "mit",
"hash": -3427932506001298400,
"line_mean": 27.3488372093,
"line_max": 68,
"alpha_frac": 0.6267432322,
"autogenerated": false,
"ratio": 3.5333333333... |
"""Add points to TestableResult.
Revision ID: 305b60854a99
Revises: 4d7019b218d4
Create Date: 2013-10-27 22:07:10.819122
"""
# revision identifiers, used by Alembic.
revision = '305b60854a99'
down_revision = '1cf84ddb034c'
from alembic import op
from collections import defaultdict
from sqlalchemy.sql import table, ... | {
"repo_name": "ucsb-cs/submit",
"path": "submit/migrations/versions/305b60854a99_add_points_to_testab.py",
"copies": "1",
"size": "3550",
"license": "bsd-2-clause",
"hash": -1619103159729879300,
"line_mean": 38.4444444444,
"line_max": 78,
"alpha_frac": 0.5512676056,
"autogenerated": false,
"ratio... |
"""add pol stock table
Revision ID: f4bd4ce67f
Revises: 4defa86894e6
Create Date: 2015-11-17 23:29:30.839431
"""
# revision identifiers, used by Alembic.
revision = 'f4bd4ce67f'
down_revision = '4defa86894e6'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
def upgrade():
... | {
"repo_name": "atlefren/beerdatabase",
"path": "alembic/versions/f4bd4ce67f_add_pol_stock_table.py",
"copies": "1",
"size": "1371",
"license": "mit",
"hash": -327841609993801900,
"line_mean": 27.5625,
"line_max": 90,
"alpha_frac": 0.6185266229,
"autogenerated": false,
"ratio": 3.1517241379310343,... |
"""Add po metadata.
Revision ID: 85e1d78ef077
Revises: deb5c1dad94a
Create Date: 2017-05-15 08:10:55.332994
"""
# revision identifiers, used by Alembic.
revision = '85e1d78ef077'
down_revision = 'deb5c1dad94a'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dial... | {
"repo_name": "socialwifi/dila",
"path": "dila/data/alembic/versions/85e1d78ef077_add_po_metadata.py",
"copies": "1",
"size": "1264",
"license": "bsd-3-clause",
"hash": -5192184664559114000,
"line_mean": 32.2631578947,
"line_max": 113,
"alpha_frac": 0.6827531646,
"autogenerated": false,
"ratio": ... |
"""add portfolio table
Revision ID: 1c9398290e4
Revises: 3c4f298b063
Create Date: 2014-05-31 21:43:26.498832
"""
# revision identifiers, used by Alembic.
revision = '1c9398290e4'
down_revision = '3c4f298b063'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.create_table(
... | {
"repo_name": "thomaserlang/stocksum",
"path": "src/stocksum/web/alembic/versions/1c9398290e4_add_portfolio_table.py",
"copies": "1",
"size": "1210",
"license": "mit",
"hash": 6778855040876310000,
"line_mean": 28.25,
"line_max": 118,
"alpha_frac": 0.6223140496,
"autogenerated": false,
"ratio": 3.... |
"""Add 'ports' column to certificate_associations table
Revision ID: 4fe230f7a26e
Revises: c301c59688d2
Create Date: 2021-05-07 10:57:16.964743
"""
# revision identifiers, used by Alembic.
revision = '4fe230f7a26e'
down_revision = 'c301c59688d2'
import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialect... | {
"repo_name": "Netflix/lemur",
"path": "lemur/migrations/versions/4fe230f7a26e_.py",
"copies": "1",
"size": "1302",
"license": "apache-2.0",
"hash": 990876660132240800,
"line_mean": 32.3846153846,
"line_max": 112,
"alpha_frac": 0.653609831,
"autogenerated": false,
"ratio": 4.006153846153846,
"c... |
"""Add position and category in each message, so as to order the XML
Revision ID: 435d360d3398
Revises: 2a68ba66c32b
Create Date: 2015-05-03 19:00:38.124617
"""
# revision identifiers, used by Alembic.
revision = '435d360d3398'
down_revision = '2a68ba66c32b'
from alembic import op
import sqlalchemy as sa
def upgr... | {
"repo_name": "porduna/appcomposer",
"path": "alembic/versions/435d360d3398_add_position_and_category_in_each_.py",
"copies": "3",
"size": "1306",
"license": "bsd-2-clause",
"hash": -3769629058901679600,
"line_mean": 39.8125,
"line_max": 118,
"alpha_frac": 0.7450229709,
"autogenerated": false,
"r... |
"""Add position to newsletter link tables.
Revision ID: 40f652bd98a8
Revises: 7525fd3b67d5
Create Date: 2018-02-10 13:12:04.962735
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
# revision identifiers, used by Alembic.
revision = '40f652bd98a8'
down_revision = '7525fd3b67d5'... | {
"repo_name": "viaict/viaduct",
"path": "migrations/versions/2018_02_10_40f652bd98a8_add_position_to_newsletter_link_tables.py",
"copies": "1",
"size": "3450",
"license": "mit",
"hash": 4295671342576529400,
"line_mean": 50.4925373134,
"line_max": 170,
"alpha_frac": 0.671884058,
"autogenerated": fal... |
"""Add Post and Tag models
Revision ID: 24bf1036f54
Revises: a53d3cd492
Create Date: 2014-07-09 03:40:28.445072
"""
# revision identifiers, used by Alembic.
revision = '24bf1036f54'
down_revision = 'a53d3cd492'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembi... | {
"repo_name": "logston/plog-work",
"path": "alembic/versions/24bf1036f54_add_post_and_tag_models.py",
"copies": "1",
"size": "1542",
"license": "bsd-3-clause",
"hash": -199391626221408100,
"line_mean": 30.4693877551,
"line_max": 77,
"alpha_frac": 0.649156939,
"autogenerated": false,
"ratio": 3.33... |
"""Add post class for blog posts
Revision ID: 4dfdaa23de0
Revises: 48eb772b7a93
Create Date: 2017-08-17 14:02:27.133734
"""
# revision identifiers, used by Alembic.
revision = '4dfdaa23de0'
down_revision = '48eb772b7a93'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated... | {
"repo_name": "Code4SA/pmg-cms-2",
"path": "migrations/versions/4dfdaa23de0_add_post_class_for_blog_posts.py",
"copies": "1",
"size": "1687",
"license": "apache-2.0",
"hash": 3640085407836329000,
"line_mean": 39.1666666667,
"line_max": 129,
"alpha_frac": 0.6668642561,
"autogenerated": false,
"rat... |
"""Add Poster model
Revision ID: b26756ac7225
Revises:
Create Date: 2017-08-08 15:06:59.785568
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = 'b26756ac7225'
down_revision = None
branch_labels = None
depends_on = None
... | {
"repo_name": "TailorDev/pauling",
"path": "api/migrations/versions/b26756ac7225_.py",
"copies": "1",
"size": "1297",
"license": "mit",
"hash": -1548809211486354000,
"line_mean": 30.6341463415,
"line_max": 81,
"alpha_frac": 0.6792598304,
"autogenerated": false,
"ratio": 3.431216931216931,
"conf... |
"""Add post form."""
from django import forms
from posts.models import Post, Comment
class AddPostForm(forms.ModelForm):
"""Form to add new post."""
def __init__(self, *args, **kwargs):
"""Initialize the form."""
super(AddPostForm, self).__init__(*args, **kwargs)
self.fields['categ... | {
"repo_name": "CodeFN/thecodefellowsnetwork",
"path": "cfn/posts/forms.py",
"copies": "1",
"size": "1302",
"license": "apache-2.0",
"hash": 8543438935928442000,
"line_mean": 21.4482758621,
"line_max": 67,
"alpha_frac": 0.5230414747,
"autogenerated": false,
"ratio": 4.4135593220338984,
"config_t... |
"""add post
Revision ID: 10adf78bec0
Revises: 423fc08700e
Create Date: 2015-08-11 18:19:22.981569
"""
# revision identifiers, used by Alembic.
revision = '10adf78bec0'
down_revision = '423fc08700e'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - please ad... | {
"repo_name": "hanks-zyh/Flask-blog",
"path": "migrations/versions/10adf78bec0_add_post.py",
"copies": "2",
"size": "1139",
"license": "apache-2.0",
"hash": -7289263656546297000,
"line_mean": 29.7837837838,
"line_max": 89,
"alpha_frac": 0.6654960492,
"autogenerated": false,
"ratio": 3.27298850574... |
"""add post
Revision ID: f661af5e4d2a
Revises: 49c5959628c4
Create Date: 2017-07-01 11:14:18.714676
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'f661af5e4d2a'
down_revision = '49c5959628c4'
branch_labels = None
depends_on = None
def upgrade():
# ### c... | {
"repo_name": "keer2345/flasky",
"path": "migrations/versions/f661af5e4d2a_add_post.py",
"copies": "1",
"size": "1053",
"license": "mit",
"hash": -5030697196212103000,
"line_mean": 27.4594594595,
"line_max": 85,
"alpha_frac": 0.6628679962,
"autogenerated": false,
"ratio": 3.270186335403727,
"co... |
"""add posts
Revision ID: 660ebcd1bcea
Revises: 0b255cff863a
Create Date: 2017-08-06 10:30:01.525541
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '660ebcd1bcea'
down_revision = '0b255cff863a'
branch_labels = None
depends_on = None
def upgrade():
# ### ... | {
"repo_name": "weqopy/blog_instance",
"path": "migrations/versions/660ebcd1bcea_add_posts.py",
"copies": "1",
"size": "1115",
"license": "mit",
"hash": -2899121239160574000,
"line_mean": 28.3421052632,
"line_max": 85,
"alpha_frac": 0.66367713,
"autogenerated": false,
"ratio": 3.338323353293413,
... |
"""add Posts table and user.posts
Revision ID: 56a3d184ac27
Revises: 4c1db97c5ebf
Create Date: 2017-09-27 23:15:03.380657
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '56a3d184ac27'
down_revision = '4c1db97c5ebf'
branch_labels = None
depends_on = None
def ... | {
"repo_name": "mikkylok/mikky.lu",
"path": "migrations/versions/56a3d184ac27_add_posts_table_and_user_posts.py",
"copies": "1",
"size": "1075",
"license": "mit",
"hash": -2946210626049359000,
"line_mean": 28.0540540541,
"line_max": 85,
"alpha_frac": 0.6660465116,
"autogenerated": false,
"ratio": ... |
"""Add preference table and seed setting for default preference.
Revision ID: 251c5e751233
Revises: 389881771619
Create Date: 2015-06-25 17:00:40.502776
"""
# revision identifiers, used by Alembic.
revision = '251c5e751233'
down_revision = '389881771619'
from alembic import op
import sqlalchemy as sa
def upgrade(... | {
"repo_name": "betterlife/flask-psi",
"path": "psi/migrations/versions/02_251c5e751233_.py",
"copies": "2",
"size": "3050",
"license": "mit",
"hash": 9076862342051554000,
"line_mean": 49.8333333333,
"line_max": 137,
"alpha_frac": 0.6780327869,
"autogenerated": false,
"ratio": 3.1704781704781704,
... |
"""Add primary key constraints
Revision ID: 728b24c64cea
Revises: 785ab1c2c255
Create Date: 2016-01-25 22:54:18.023243
"""
# revision identifiers, used by Alembic.
revision = '728b24c64cea'
down_revision = '785ab1c2c255'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
def upg... | {
"repo_name": "thejunglejane/datums",
"path": "datums/migrations/versions/728b24c64cea_add_primary_key_constraints.py",
"copies": "1",
"size": "1936",
"license": "mit",
"hash": -6152621809591751000,
"line_mean": 35.5283018868,
"line_max": 79,
"alpha_frac": 0.6957644628,
"autogenerated": false,
"r... |
"""Add primary keys to users, user_requests, and agency_users
Revision ID: b12d4ba1cfd4
Revises: 838a6ad16cf4
Create Date: 2019-03-18 16:44:35.911810
"""
# revision identifiers, used by Alembic.
revision = "b12d4ba1cfd4"
down_revision = "aeb1852855b4"
from alembic import op
import sqlalchemy as sa
from sqlalchemy.d... | {
"repo_name": "CityOfNewYork/NYCOpenRecords",
"path": "migrations/versions/b12d4ba1cfd4_add_primary_keys_to_users_user_requests_.py",
"copies": "1",
"size": "21873",
"license": "apache-2.0",
"hash": 8628072912599670000,
"line_mean": 47.0725274725,
"line_max": 123,
"alpha_frac": 0.547021442,
"autoge... |
"""Add primary key to RepositoryApp2languages
Revision ID: 331f2c45f5a
Revises: b100c13976f
Create Date: 2017-07-25 16:48:31.860599
"""
# revision identifiers, used by Alembic.
revision = '331f2c45f5a'
down_revision = 'b100c13976f'
from alembic import op
from sqlalchemy import Integer, and_
from sqlalchemy.sql impo... | {
"repo_name": "go-lab/appcomposer",
"path": "alembic/versions/331f2c45f5a_add_primary_key_to_.py",
"copies": "3",
"size": "1515",
"license": "bsd-2-clause",
"hash": 7797797033233198000,
"line_mean": 29.3,
"line_max": 155,
"alpha_frac": 0.6264026403,
"autogenerated": false,
"ratio": 3.722358722358... |
"""add primary language column to participant summary
Revision ID: 9b2ec162bfde
Revises: 378ee128c23f
Create Date: 2018-10-18 14:44:48.566768
"""
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = "9b2ec162bfde"
down_revision = "378ee128c23f"
branch_labels = None
depen... | {
"repo_name": "all-of-us/raw-data-repository",
"path": "rdr_service/alembic/versions/9b2ec162bfde_add_primary_language_column_to_.py",
"copies": "1",
"size": "1170",
"license": "bsd-3-clause",
"hash": 4779199750218844000,
"line_mean": 23.8936170213,
"line_max": 108,
"alpha_frac": 0.6752136752,
"aut... |
"""Add principal group system
Revision ID: 1d84b7d16aa9
Revises: 179651effcbd
Create Date: 2015-08-07 00:05:42.996683
"""
# revision identifiers, used by Alembic.
revision = '1d84b7d16aa9'
down_revision = '179651effcbd'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
def u... | {
"repo_name": "404d/Temporals-Web",
"path": "temporals_web/migration/versions/201508070005_1d84b7d16aa9_add_principal_group_system.py",
"copies": "1",
"size": "1285",
"license": "mit",
"hash": -7546771122862709000,
"line_mean": 31.9487179487,
"line_max": 78,
"alpha_frac": 0.6645914397,
"autogenerat... |
"""Add Product version table.
Also product_ref_id is removed from the product table.
Revision ID: 35bf54e2c13c
Revises: 709452f38a5c
Create Date: 2016-07-30 17:59:57.912306
"""
# revision identifiers, used by Alembic.
revision = '35bf54e2c13c'
down_revision = '709452f38a5c'
MYSQL_CHARSET = 'utf8'
from alembic impo... | {
"repo_name": "openstack/refstack",
"path": "refstack/db/migrations/alembic/versions/35bf54e2c13c_add_product_version.py",
"copies": "2",
"size": "1485",
"license": "apache-2.0",
"hash": 67221813143468710,
"line_mean": 31.2826086957,
"line_max": 76,
"alpha_frac": 0.6383838384,
"autogenerated": fals... |
"""add profile
Revision ID: 9007329423de
Revises: ef2afb4882cd
Create Date: 2017-08-01 07:41:14.913197
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '9007329423de'
down_revision = 'ef2afb4882cd'
branch_labels = None
depends_on = None
def upgrade():
# ##... | {
"repo_name": "weqopy/blog_instance",
"path": "migrations/versions/9007329423de_add_profile.py",
"copies": "1",
"size": "1145",
"license": "mit",
"hash": -4278269357071764000,
"line_mean": 30.8055555556,
"line_max": 86,
"alpha_frac": 0.6689956332,
"autogenerated": false,
"ratio": 3.21629213483146... |
"""add profiles
Revision ID: b153adef93d6
Revises: 504b785dbd6c
Create Date: 2017-05-27 01:22:10.267494
"""
# revision identifiers, used by Alembic.
revision = 'b153adef93d6'
down_revision = '504b785dbd6c'
from alembic import op
import sqlalchemy as sa
def upgrade():
# ### commands auto generated by Alembic -... | {
"repo_name": "delitamakanda/socialite",
"path": "migrations/versions/b153adef93d6_add_profiles.py",
"copies": "1",
"size": "1107",
"license": "mit",
"hash": 2669189706268359700,
"line_mean": 31.5588235294,
"line_max": 86,
"alpha_frac": 0.6666666667,
"autogenerated": false,
"ratio": 3.18103448275... |
"""Add project labels
Revision ID: 4a5bf96b558d
Revises: 5581aa8a3cd
Create Date: 2016-06-02 23:42:17.332659
"""
# revision identifiers, used by Alembic.
revision = '4a5bf96b558d'
down_revision = '5581aa8a3cd'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.create_table(
'label',
... | {
"repo_name": "ethan-nelson/osm-tasking-manager2",
"path": "alembic/versions/4a5bf96b558d_add_project_labels.py",
"copies": "2",
"size": "1216",
"license": "bsd-2-clause",
"hash": 5498982448065892000,
"line_mean": 24.8723404255,
"line_max": 73,
"alpha_frac": 0.6274671053,
"autogenerated": false,
... |
"""add Project Model
Revision ID: 3c1cf09049e6
Revises: 271a6a190066
Create Date: 2014-07-27 11:26:40.603738
"""
# revision identifiers, used by Alembic.
revision = '3c1cf09049e6'
down_revision = '271a6a190066'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembi... | {
"repo_name": "tuistudio/tuistudio.com",
"path": "migrations/versions/3c1cf09049e6_add_project_model.py",
"copies": "1",
"size": "1058",
"license": "apache-2.0",
"hash": 7974460300408724000,
"line_mean": 28.3888888889,
"line_max": 63,
"alpha_frac": 0.6739130435,
"autogenerated": false,
"ratio": 3... |
"""Add provision table.
Revision ID: 3a550b296ce
Revises: 57a85bc4692
Create Date: 2015-02-06 21:57:35.790120
"""
# revision identifiers, used by Alembic.
revision = '3a550b296ce'
down_revision = '57a85bc4692'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
from sqlalchemy_util... | {
"repo_name": "wappulehti-apy/diilikone-api",
"path": "diilikone/migrations/versions/3a550b296ce_add_provision_table.py",
"copies": "1",
"size": "1115",
"license": "mit",
"hash": -3259084841637556700,
"line_mean": 22.2291666667,
"line_max": 76,
"alpha_frac": 0.6080717489,
"autogenerated": false,
... |
"""Add proxy_image_stored
Revision ID: 7fb89edaa44d
Revises: 2639af76b6d1
Create Date: 2018-02-19 23:27:24.310094
"""
# revision identifiers, used by Alembic.
revision = '7fb89edaa44d'
down_revision = '2639af76b6d1'
from alembic import op
import sqlalchemy as sa
def upgrade():
# ### commands auto generated by... | {
"repo_name": "go-lab/appcomposer",
"path": "alembic/versions/7fb89edaa44d_add_proxy_image_stored.py",
"copies": "3",
"size": "1297",
"license": "bsd-2-clause",
"hash": 4510198446424874000,
"line_mean": 39.53125,
"line_max": 137,
"alpha_frac": 0.7208943716,
"autogenerated": false,
"ratio": 3.2103... |
"""Add .pth and site-packages support to IronPython
Since this code is a modified version of the standard CPython distribution,
it is licensed with the same license:
http://www.python.org/download/releases/2.4.3/license/
"""
import sys
import os
def makepath(*paths):
dir = os.path.abspath(os.path.join(*paths))... | {
"repo_name": "longde123/MultiversePlatform",
"path": "lib/IPCE/Lib/_pth_support.py",
"copies": "1",
"size": "3753",
"license": "mit",
"hash": -8512186404761254000,
"line_mean": 29.024,
"line_max": 79,
"alpha_frac": 0.6040500933,
"autogenerated": false,
"ratio": 3.889119170984456,
"config_test"... |
"""add_publish_status
Revision ID: 1f5613e38200
Revises: c2b6d88e6d44
Create Date: 2016-08-04 13:49:32.364079
"""
# revision identifiers, used by Alembic.
revision = '1f5613e38200'
down_revision = 'c2b6d88e6d44'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
def upgrade(engi... | {
"repo_name": "chambers-brian/SIG_Digital-Strategy_SI_ODP_Backend",
"path": "dataactcore/migrations/versions/1f5613e38200_add_publish_status.py",
"copies": "2",
"size": "1956",
"license": "cc0-1.0",
"hash": 6997973228560116000,
"line_mean": 33.3157894737,
"line_max": 147,
"alpha_frac": 0.686605317,
... |
"""add pubsub
Revision ID: ff8e10fe44d7
Revises: e1d41654e85b
Create Date: 2018-03-12 19:24:31.822104
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = 'ff8e10fe44d7'
down_revision = 'e1d41654e85b'
def upgrade():
op... | {
"repo_name": "pudo/aleph",
"path": "aleph/migrate/versions/ff8e10fe44d7_add_pubsub.py",
"copies": "1",
"size": "1992",
"license": "mit",
"hash": 3701770846252288000,
"line_mean": 39.6530612245,
"line_max": 97,
"alpha_frac": 0.688253012,
"autogenerated": false,
"ratio": 3.331103678929766,
"conf... |
from Instruction import Instruction
import unittest
from Stack import StackStateException
from Instructions.Instruction import register
from Variable import Variable
class add(Instruction):
def __init__(self, arguments):
self.name = 'add'
self.opcode = 0x58
def execute(self, vm):
st... | {
"repo_name": "martydill/PyCIL",
"path": "src/Instructions/add.py",
"copies": "1",
"size": "1511",
"license": "bsd-2-clause",
"hash": -8000691601365797000,
"line_mean": 24.1833333333,
"line_max": 71,
"alpha_frac": 0.6101919259,
"autogenerated": false,
"ratio": 3.730864197530864,
"config_test": ... |
# Add Python code
from common.methods import set_progress
"""
Sample for appending any-any edge firewall rule with HTTP and HTTPS
"""
def run(job, resources=None, **kwargs):
"""
`resources` is a queryset of length 1 containing the resource being operated on.
"""
resource = resources.first()
... | {
"repo_name": "CloudBoltSoftware/cloudbolt-forge",
"path": "actions/service/nsx_edge_firewall_rule_append/edge_fw_rule_append.py",
"copies": "1",
"size": "1747",
"license": "apache-2.0",
"hash": 9222777814642951000,
"line_mean": 31.5961538462,
"line_max": 90,
"alpha_frac": 0.6101888952,
"autogenera... |
"""Add Python to the search path on Windows
This is a simple script to add Python to the Windows search path. It
modifies the current user (HKCU) tree of the registry.
Copyright (c) 2008 by Christian Heimes <christian@cheimes.de>
Licensed to PSF under a Contributor Agreement.
"""
import sys
import site
import os
imp... | {
"repo_name": "wanliming11/MurlocAlgorithms",
"path": "Last/OpenSource/Python-3.6.1/Tools/scripts/win_add2path.py",
"copies": "27",
"size": "1658",
"license": "mit",
"hash": -5758703966863306000,
"line_mean": 27.5862068966,
"line_max": 70,
"alpha_frac": 0.6351025332,
"autogenerated": false,
"rati... |
"""Add Python to the search path on Windows
This is a simple script to add Python to the Windows search path. It
modifies the current user (HKCU) tree of the registry.
Copyright (c) 2008 by Christian Heimes <christian@cheimes.de>
Licensed to PSF under a Contributor Agreement.
"""
import sys
import site
im... | {
"repo_name": "MattDevo/edk2",
"path": "AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/win_add2path.py",
"copies": "12",
"size": "1677",
"license": "bsd-2-clause",
"hash": 3918935948949015600,
"line_mean": 27.4210526316,
"line_max": 72,
"alpha_frac": 0.6141920095,
"autogenerated": false,
"... |
"""Add QB Time Line Table
Revision ID: 9026af5fe040
Revises: 883fd1095361
Create Date: 2018-11-28 06:39:34.215999
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '9026af5fe040'
down_revision = 'e5aec2aebe7e'
def upgrade():
# ### commands auto generated by ... | {
"repo_name": "uwcirg/true_nth_usa_portal",
"path": "portal/migrations/versions/9026af5fe040_.py",
"copies": "1",
"size": "1867",
"license": "bsd-3-clause",
"hash": 1289511942001310200,
"line_mean": 35.6078431373,
"line_max": 74,
"alpha_frac": 0.6138189609,
"autogenerated": false,
"ratio": 3.4702... |
"""Add qc_status to genomic_set_member for AW4.
Revision ID: 994dfe6e53ee
Revises: 2e1d3f329efd
Create Date: 2020-09-28 14:31:44.732565
"""
from alembic import op
import sqlalchemy as sa
import rdr_service.model.utils
# revision identifiers, used by Alembic.
from rdr_service.genomic_enums import GenomicQcStatus
rev... | {
"repo_name": "all-of-us/raw-data-repository",
"path": "rdr_service/alembic/versions/994dfe6e53ee_add_qc_status_to_genomic_set_member_for_.py",
"copies": "1",
"size": "1492",
"license": "bsd-3-clause",
"hash": 7368381596196990000,
"line_mean": 26.1272727273,
"line_max": 103,
"alpha_frac": 0.672252010... |
addr = 0
registers = {'a': 0, 'b': 0, 'c': 0, 'd': 0}
instructions = [line.split() for line in open('input.txt', 'r')]
def cpy(x, y):
if y not in registers:
return
registers[y] = registers[x] if x in registers else int(x)
def inc(x):
registers[x] += 1
def dec(x):
registers[x] -= 1
def jnz(x... | {
"repo_name": "ultramega/adventofcode2016",
"path": "day25/part1.py",
"copies": "1",
"size": "1435",
"license": "unlicense",
"hash": -1172018382836329000,
"line_mean": 22.5245901639,
"line_max": 122,
"alpha_frac": 0.4885017422,
"autogenerated": false,
"ratio": 3.188888888888889,
"config_test": ... |
addr = 0
registers = {'a': 12, 'b': 0, 'c': 0, 'd': 0}
instructions = [line.split() for line in open('input2.txt', 'r')]
toggleMap = {'inc': 'dec', 'dec': 'inc', 'tgl': 'inc', 'cpy': 'jnz', 'jnz': 'cpy', 'mul': 'mul', 'nop': 'nop'}
def cpy(x, y):
if y not in registers:
return
registers[y] = registers[... | {
"repo_name": "ultramega/adventofcode2016",
"path": "day23/part2.py",
"copies": "1",
"size": "1473",
"license": "unlicense",
"hash": -4334157170070256600,
"line_mean": 23.9661016949,
"line_max": 110,
"alpha_frac": 0.5213849287,
"autogenerated": false,
"ratio": 2.9519038076152304,
"config_test":... |
addr = 0
registers = {'a': 7, 'b': 0, 'c': 0, 'd': 0}
instructions = [line.split() for line in open('input.txt', 'r')]
toggleMap = {'inc': 'dec', 'dec': 'inc', 'tgl': 'inc', 'cpy': 'jnz', 'jnz': 'cpy'}
def cpy(x, y):
if y not in registers:
return
registers[y] = registers[x] if x in registers else int(... | {
"repo_name": "ultramega/adventofcode2016",
"path": "day23/part1.py",
"copies": "1",
"size": "1201",
"license": "unlicense",
"hash": 5470859333623032000,
"line_mean": 23.5102040816,
"line_max": 82,
"alpha_frac": 0.5270607827,
"autogenerated": false,
"ratio": 2.958128078817734,
"config_test": fa... |
"""add random_id for users, productions and performances
Revision ID: 11680e8c4bf
Revises: 48567f3faf
Create Date: 2015-03-11 20:29:18.326587
"""
# revision identifiers, used by Alembic.
revision = '11680e8c4bf'
down_revision = '48567f3faf'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.exec... | {
"repo_name": "rjw57/cubbie",
"path": "migrations/versions/11680e8c4bf_add_random_id_for_users.py",
"copies": "1",
"size": "1299",
"license": "mit",
"hash": -132758004405863950,
"line_mean": 29.2093023256,
"line_max": 80,
"alpha_frac": 0.688221709,
"autogenerated": false,
"ratio": 3.0928571428571... |
"""Add ranking data to participants table
Revision ID: 451d4bb125cb
Revises: 49be2190c22d
Create Date: 2017-11-10 13:57:37.807238+00:00
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
# revision identifiers, used by Alembic.
revision = '451d4bb125cb'
down_revision = '49be219... | {
"repo_name": "HaliteChallenge/Halite-II",
"path": "apiserver/alembic/versions/201711101357_451d4bb125cb_add_ranking_data_to_participants_table.py",
"copies": "1",
"size": "1055",
"license": "mit",
"hash": 1322590390178205700,
"line_mean": 22.9772727273,
"line_max": 58,
"alpha_frac": 0.6123222749,
... |
from __future__ import print_function, absolute_import, division
import sys
import os
import argparse
###############################################################################
# FUNCTION DEFINITIONS
###############################################################################
def check_file(file_path, direc... | {
"repo_name": "dacuevas/bioinformatics",
"path": "rast/add_rast_anno.py",
"copies": "1",
"size": "3326",
"license": "mit",
"hash": 3050428830669168600,
"line_mean": 32.26,
"line_max": 79,
"alpha_frac": 0.5478051714,
"autogenerated": false,
"ratio": 4.141967621419676,
"config_test": false,
"ha... |
"""add reason to measurement
Revision ID: e6605d4b0dba
Revises: 2b328e8e5eb8
Create Date: 2018-09-28 11:23:58.812115
"""
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = "e6605d4b0dba"
down_revision = "2b328e8e5eb8"
branch_labels = None
depends_on = None
def upgrad... | {
"repo_name": "all-of-us/raw-data-repository",
"path": "rdr_service/alembic/versions/e6605d4b0dba_add_reason_to_measurement.py",
"copies": "1",
"size": "1125",
"license": "bsd-3-clause",
"hash": -4326717021576476700,
"line_mean": 22.9361702128,
"line_max": 96,
"alpha_frac": 0.6675555556,
"autogener... |
"""Add receiving, shipping and inventory_transaction related tables
Revision ID: 1b3411739b82
Revises: 7b2d863b105
Create Date: 2015-07-03 21:45:51.072263
"""
# revision identifiers, used by Alembic.
revision = '1b3411739b82'
down_revision = '7b2d863b105'
from alembic import op
import sqlalchemy as sa
def upgrade... | {
"repo_name": "betterlife/psi",
"path": "psi/migrations/versions/06_1b3411739b82_.py",
"copies": "2",
"size": "5031",
"license": "mit",
"hash": -5854749377444286000,
"line_mean": 48.3235294118,
"line_max": 110,
"alpha_frac": 0.6797853309,
"autogenerated": false,
"ratio": 3.55045871559633,
"conf... |
"""Add recipient_id to email_messages table and populate
Revision ID: 677b8b841cb3
Revises: da6506c5899a
Create Date: 2019-10-23 11:36:41.947859
"""
from alembic import op
import logging
import re
import sqlalchemy as sa
from sqlalchemy.orm import sessionmaker
from sqlalchemy.sql import text
from portal.models.audit... | {
"repo_name": "uwcirg/true_nth_usa_portal",
"path": "portal/migrations/versions/677b8b841cb3_.py",
"copies": "1",
"size": "3202",
"license": "bsd-3-clause",
"hash": -5163088252173919000,
"line_mean": 32.7052631579,
"line_max": 81,
"alpha_frac": 0.6467832605,
"autogenerated": false,
"ratio": 3.753... |
"""add_records - Add information to results about when a new record was reached
Usage:
foo | addrecords client_count | search record=*
"""
import sys,splunk.Intersplunk
import re
try:
keywords, options = splunk.Intersplunk.getKeywordsAndOptions()
field = "_raw"
if keywords:
field = keywords[0... | {
"repo_name": "Frende/splunk-scripts",
"path": "addrecords.py",
"copies": "3",
"size": "1418",
"license": "mit",
"hash": 6088254507442567000,
"line_mean": 26.8039215686,
"line_max": 89,
"alpha_frac": 0.5952045134,
"autogenerated": false,
"ratio": 4.01699716713881,
"config_test": false,
"has_n... |
"""Add reference for a grating coupler array."""
from typing import List
import pp
from pp.component import ComponentReference
from pp.port import Port
from pp.routing.manhattan import round_corners
from pp.types import ComponentFactory
def gen_loopback(
start_port: Port,
end_port: Port,
gc: ComponentFac... | {
"repo_name": "gdsfactory/gdsfactory",
"path": "pp/add_loopback.py",
"copies": "1",
"size": "2845",
"license": "mit",
"hash": -5945152039640318000,
"line_mean": 26.0952380952,
"line_max": 85,
"alpha_frac": 0.5711775044,
"autogenerated": false,
"ratio": 3.236632536973834,
"config_test": false,
... |
"""Add refnos to threads
Revision ID: ffcec420c0bd
Revises: ac1680bc48
Create Date: 2016-07-17 18:40:09.411372
"""
# revision identifiers, used by Alembic.
from sqlalchemy.orm import Session
from uchan.lib.ormmodel import BoardOrmModel
from uchan.lib.ormmodel import ThreadOrmModel
revision = 'ffcec420c0bd'
down_re... | {
"repo_name": "Floens/uchan",
"path": "migrations/versions/ffcec420c0bd_add_refnos_to_threads.py",
"copies": "1",
"size": "1726",
"license": "mit",
"hash": -7974569169701197000,
"line_mean": 29.8214285714,
"line_max": 120,
"alpha_frac": 0.6796060255,
"autogenerated": false,
"ratio": 3.24436090225... |
"""add_refs
Revision ID: 8536b0fcf0a2
Revises: 1782e8a9f689
Create Date: 2019-11-22 11:50:53.872660
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = "8536b0fcf0a2"
down_revision = "1782e8a9f689"
branch_labels = ()
depend... | {
"repo_name": "getsentry/zeus",
"path": "zeus/migrations/8536b0fcf0a2_add_refs.py",
"copies": "1",
"size": "2419",
"license": "apache-2.0",
"hash": -1646295567096471000,
"line_mean": 29.2375,
"line_max": 88,
"alpha_frac": 0.616370401,
"autogenerated": false,
"ratio": 3.36908077994429,
"config_t... |
"""add registered_date to user
Revision ID: 54d08f9adc8c
Revises: 2d472fe79b95
Create Date: 2012-03-10 11:12:39.353857
"""
from __future__ import unicode_literals
import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects.postgresql.base import PGDialect
# revision identifiers, used by Alembic.
revisio... | {
"repo_name": "ergo/ziggurat_foundations",
"path": "ziggurat_foundations/migrations/versions/54d08f9adc8c_add_registered_date_.py",
"copies": "1",
"size": "1029",
"license": "bsd-3-clause",
"hash": 618539069930424200,
"line_mean": 21.8666666667,
"line_max": 58,
"alpha_frac": 0.5782312925,
"autogene... |
"""Add relationship column to dependents
Revision ID: 2f1aa232102
Revises: 51acb6b52ed
Create Date: 2020-12-14 20:17:33.378756
"""
# revision identifiers, used by Alembic.
revision = '2f1aa232102'
down_revision = '51acb6b52ed'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.sql import table
def upg... | {
"repo_name": "jlutz777/FreeStore",
"path": "alembic/versions/2f1aa232102_add_relationship_column_to_dependents.py",
"copies": "1",
"size": "1229",
"license": "mit",
"hash": 6912577493493027000,
"line_mean": 24.6041666667,
"line_max": 68,
"alpha_frac": 0.5858421481,
"autogenerated": false,
"ratio... |
"""Add reminder table.
Revision ID: 9f50538504b1
Revises: c877a04b8181
Create Date: 2017-02-05 18:00:11.916186
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '9f50538504b1'
down_revision = 'c877a04b8181'
branch_labels = None
depends_on = None
def upgrade():
... | {
"repo_name": "MJB47/Jokusoramame",
"path": "migrations/versions/9f50538504b1_add_reminder_table.py",
"copies": "1",
"size": "1144",
"license": "mit",
"hash": -2137709166337210000,
"line_mean": 28.3333333333,
"line_max": 65,
"alpha_frac": 0.6634615385,
"autogenerated": false,
"ratio": 3.296829971... |
"""Add Re-Opening to Reasons enum
Revision ID: ebeb3491636e
Revises: dc926c74551d
Create Date: 2018-06-12 20:01:56.529081
"""
# revision identifiers, used by Alembic.
revision = "ebeb3491636e"
down_revision = "b722969f38a6"
from alembic import op
import sqlalchemy as sa
old_options = ("closing", "denial")
new_opti... | {
"repo_name": "CityOfNewYork/NYCOpenRecords",
"path": "migrations/versions/ebeb3491636e_add_re-opening_to_reasons_enum.py",
"copies": "1",
"size": "1817",
"license": "apache-2.0",
"hash": 5434249733208378000,
"line_mean": 30.8771929825,
"line_max": 69,
"alpha_frac": 0.6714364337,
"autogenerated": f... |
"""Add rep exercises taxonomy table
Revision ID: a0620f5c7597
Revises: 053b42be855e
Create Date: 2016-12-28 11:03:42.904961
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'a0620f5c7597'
down_revision = '053b42be855e'
branch_labels = None
depends_on = None
def... | {
"repo_name": "pbraunstein/trackercise",
"path": "migrations/versions/a0620f5c7597_.py",
"copies": "1",
"size": "1221",
"license": "mit",
"hash": -2741658390896943000,
"line_mean": 31.1315789474,
"line_max": 69,
"alpha_frac": 0.6486486486,
"autogenerated": false,
"ratio": 3.204724409448819,
"co... |
"""add reports table
Revision ID: 8240039fd3
Revises: 1c9398290e4
Create Date: 2014-06-06 19:38:39.487416
"""
# revision identifiers, used by Alembic.
revision = '8240039fd3'
down_revision = '1c9398290e4'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.sql import table, column
def ... | {
"repo_name": "thomaserlang/stocksum",
"path": "src/stocksum/web/alembic/versions/8240039fd3_add_reports_table.py",
"copies": "1",
"size": "2751",
"license": "mit",
"hash": -5159194273122570000,
"line_mean": 36.7464788732,
"line_max": 140,
"alpha_frac": 0.6103235187,
"autogenerated": false,
"rati... |
"""Add RepositoryApplications to models
Revision ID: 3f1d7cfafe36
Revises: 2d3d6675101a
Create Date: 2014-12-04 12:48:03.328935
"""
# revision identifiers, used by Alembic.
revision = '3f1d7cfafe36'
down_revision = '2d3d6675101a'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto ... | {
"repo_name": "porduna/appcomposer",
"path": "alembic/versions/3f1d7cfafe36_add_repositoryapplic.py",
"copies": "3",
"size": "1443",
"license": "bsd-2-clause",
"hash": -5006095769189821000,
"line_mean": 34.1951219512,
"line_max": 78,
"alpha_frac": 0.6881496881,
"autogenerated": false,
"ratio": 3.... |
"""Add RepositoryOption
Revision ID: 152c9c780e
Revises: 4d302aa44bc8
Create Date: 2013-11-26 17:48:21.180630
"""
# revision identifiers, used by Alembic.
revision = '152c9c780e'
down_revision = '4d302aa44bc8'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic... | {
"repo_name": "dropbox/changes",
"path": "migrations/versions/152c9c780e_add_repositoryoption.py",
"copies": "4",
"size": "1042",
"license": "apache-2.0",
"hash": -4633846371034302000,
"line_mean": 28.7714285714,
"line_max": 81,
"alpha_frac": 0.6842610365,
"autogenerated": false,
"ratio": 3.48494... |
"""Add reprieve and ban
Revision ID: f0ae9448295b
Revises: bc1f34a0615a
Create Date: 2016-07-04 11:19:22.508966
"""
# revision identifiers, used by Alembic.
revision = 'f0ae9448295b'
down_revision = 'bc1f34a0615a'
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/20160704_11:19:22_f0ae9448295b_add_reprieve_and_ban.py.py",
"copies": "3",
"size": "1153",
"license": "mit",
"hash": 8942789000471687000,
"line_mean": 35.03125,
"line_max": 106,
"alpha_frac": 0.7042497832,
"aut... |
"""Add request ``method`` to ``ntorque_tasks``.
Revision ID: 32ee88d6d6d
Revises: 4ae58a31c179
Created: 2014-12-22 10:36:23.871146
"""
# Revision identifiers, used by Alembic.
revision = '32ee88d6d6d'
down_revision = '4ae58a31c179'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.sql import tabl... | {
"repo_name": "thruflo/ntorque",
"path": "alembic/versions/32ee88d6d6d_.py",
"copies": "1",
"size": "1131",
"license": "unlicense",
"hash": -2302488408458421000,
"line_mean": 25.3023255814,
"line_max": 62,
"alpha_frac": 0.6162687887,
"autogenerated": false,
"ratio": 3.25,
"config_test": false,
... |
"""Add request
Revision ID: 50d3cad50bb8
Revises: 53c3b75c86ed
Create Date: 2013-09-12 00:52:18.549450
"""
# revision identifiers, used by Alembic.
revision = '50d3cad50bb8'
down_revision = '53c3b75c86ed'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.create_table('requests',
sa.Column('i... | {
"repo_name": "uskudnik/ggrc-core",
"path": "src/ggrc/migrations/versions/20130912005218_50d3cad50bb8_add_request.py",
"copies": "2",
"size": "1551",
"license": "apache-2.0",
"hash": 5520163553018287000,
"line_mean": 38.7692307692,
"line_max": 141,
"alpha_frac": 0.6789168279,
"autogenerated": false... |
"""add research_id to participant table
Revision ID: 400f222cdab0
Revises: 415b87cb2eee
Create Date: 2020-09-03 16:37:55.342453
"""
from alembic import op
import sqlalchemy as sa
import rdr_service.model.utils
from rdr_service.participant_enums import PhysicalMeasurementsStatus, QuestionnaireStatus, OrderStatus
fro... | {
"repo_name": "all-of-us/raw-data-repository",
"path": "rdr_service/alembic/versions/400f222cdab0_add_research_id_to_participant_table.py",
"copies": "1",
"size": "2200",
"license": "bsd-3-clause",
"hash": -3260257317109075000,
"line_mean": 33.375,
"line_max": 125,
"alpha_frac": 0.7431818182,
"auto... |
"""Add reservation link table
Revision ID: 416f9c877300
Revises: cbe630695800
Create Date: 2019-01-18 15:14:29.749357
"""
import sqlalchemy as sa
from alembic import op
from indico.core.db.sqlalchemy import PyIntEnum
from indico.core.db.sqlalchemy.links import LinkType
# revision identifiers, used by Alembic.
revi... | {
"repo_name": "indico/indico",
"path": "indico/migrations/versions/20190118_1514_416f9c877300_add_reservationlink_table.py",
"copies": "7",
"size": "4272",
"license": "mit",
"hash": 5525058497097158000,
"line_mean": 44.4468085106,
"line_max": 118,
"alpha_frac": 0.6404494382,
"autogenerated": false,... |
"""add reserve type
Revision ID: 436fca55d46a
Revises: dff614136e01
Create Date: 2017-10-18 04:49:32.331235
"""
import sys
from pathlib import Path
from alembic import op
import sqlalchemy as sa
from sqlalchemy.sql import expression
monocle_dir = str(Path(__file__).resolve().parents[2])
if monocle_dir not in sys.path... | {
"repo_name": "DavisPoGo/Monocle",
"path": "migrations/versions/436fca55d46a_add_reserve_type.py",
"copies": "1",
"size": "1394",
"license": "mit",
"hash": -6993977357752784000,
"line_mean": 31.4186046512,
"line_max": 127,
"alpha_frac": 0.6771879484,
"autogenerated": false,
"ratio": 3.4,
"confi... |
"""add resource_id to hpo/organization table
Revision ID: 93f2bab71572
Revises: 806f7c2031a5
Create Date: 2019-10-24 10:26:53.309794
"""
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/93f2bab71572_add_resource_id_to_hpo_organization_.py",
"copies": "1",
"size": "2191",
"license": "bsd-3-clause",
"hash": -6170051574351134000,
"line_mean": 34.9344262295,
"line_max": 125,
"alpha_frac": 0.7416704701,
... |
"""add resource locks table
Revision ID: 3cb15662f688
Revises: 370964c4a364
Create Date: 2020-02-22 13:52:52.211013
"""
# revision identifiers, used by Alembic.
revision = '3cb15662f688'
down_revision = '370964c4a364'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
def upgrad... | {
"repo_name": "c4fcm/CivilServant",
"path": "alembic/versions/3cb15662f688_add_resource_locks_table.py",
"copies": "1",
"size": "4176",
"license": "mit",
"hash": -3354227779877209600,
"line_mean": 39.5436893204,
"line_max": 111,
"alpha_frac": 0.6786398467,
"autogenerated": false,
"ratio": 3.41455... |
"""Add resource record."""
# :license: MIT, see LICENSE for more details.
import click
import SoftLayer
from SoftLayer.CLI import environment
from SoftLayer.CLI import exceptions
from SoftLayer.CLI import helpers
# pylint: disable=redefined-builtin
@click.command()
@click.argument('record')
@click.argument('record_... | {
"repo_name": "allmightyspiff/softlayer-python",
"path": "SoftLayer/CLI/dns/record_add.py",
"copies": "3",
"size": "3602",
"license": "mit",
"hash": 5617266814533882000,
"line_mean": 39.0222222222,
"line_max": 117,
"alpha_frac": 0.640755136,
"autogenerated": false,
"ratio": 3.759916492693111,
"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.