text stringlengths 0 1.05M | meta dict |
|---|---|
"""Add LocationCache
Revision ID: 292d93c545f2
Revises: 17d2927a8743
Create Date: 2017-06-09 18:40:25.576169
"""
# revision identifiers, used by Alembic.
revision = '292d93c545f2'
down_revision = '17d2927a8743'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembi... | {
"repo_name": "gateway4labs/labmanager",
"path": "alembic/versions/292d93c545f2_add_locationcache.py",
"copies": "5",
"size": "2935",
"license": "bsd-2-clause",
"hash": 2948110497520516600,
"line_mean": 48.7457627119,
"line_max": 128,
"alpha_frac": 0.7045996593,
"autogenerated": false,
"ratio": 3... |
""" Add logging capabilities to DSS
"""
from __future__ import absolute_import
import os
import os.path
import datetime
import makeobj
from ..config import config
from . import thread
logdir = config['log']['dir']
class Levels(makeobj.Obj):
debug = 0
info = 1
warn = 2
error = 3
max = 99
class ... | {
"repo_name": "terabit-software/dynamic-stream-server",
"path": "dss/tools/log.py",
"copies": "2",
"size": "1852",
"license": "bsd-3-clause",
"hash": -5530340332969568000,
"line_mean": 22.4430379747,
"line_max": 70,
"alpha_frac": 0.56587473,
"autogenerated": false,
"ratio": 3.8989473684210525,
... |
"""add login_phone_number column
Revision ID: 380d2c363481
Revises: e6605d4b0dba
Create Date: 2018-10-03 11:42:59.993435
"""
import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import mysql
# revision identifiers, used by Alembic.
revision = "380d2c363481"
down_revision = "e6605d4b0dba"
branch_la... | {
"repo_name": "all-of-us/raw-data-repository",
"path": "rdr_service/alembic/versions/380d2c363481_add_login_phone_number_column.py",
"copies": "1",
"size": "1408",
"license": "bsd-3-clause",
"hash": 1273473990162187800,
"line_mean": 27.16,
"line_max": 110,
"alpha_frac": 0.6882102273,
"autogenerated... |
"""Add LogSource and LogChunk
Revision ID: 393be9b08e4c
Revises: 4901f27ade8e
Create Date: 2013-11-12 11:05:50.757171
"""
# revision identifiers, used by Alembic.
revision = '393be9b08e4c'
down_revision = '4901f27ade8e'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.create_table(
'lo... | {
"repo_name": "dropbox/changes",
"path": "migrations/versions/393be9b08e4c_add_logsource_and_lo.py",
"copies": "4",
"size": "2003",
"license": "apache-2.0",
"hash": -6167412444864061000,
"line_mean": 34.7678571429,
"line_max": 76,
"alpha_frac": 0.6265601598,
"autogenerated": false,
"ratio": 3.355... |
"""Add LogSource unique constraint on name
Revision ID: 2dfac13a4c78
Revises: 5896e31725d
Create Date: 2013-12-06 10:56:15.727933
"""
from __future__ import absolute_import, print_function
# revision identifiers, used by Alembic.
revision = '2dfac13a4c78'
down_revision = '5896e31725d'
from alembic import op
from s... | {
"repo_name": "bowlofstew/changes",
"path": "migrations/versions/2dfac13a4c78_add_logsource_unique.py",
"copies": "4",
"size": "2138",
"license": "apache-2.0",
"hash": 5574094116646417000,
"line_mean": 27.8918918919,
"line_max": 76,
"alpha_frac": 0.5935453695,
"autogenerated": false,
"ratio": 3.5... |
"""Add Log Table for User Actions
Revision ID: 117567def844
Revises: 2c3193839c9d
Create Date: 2017-06-19 00:39:17.408944
"""
# revision identifiers, used by Alembic.
revision = '117567def844'
down_revision = '2c3193839c9d'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
d... | {
"repo_name": "RamZallan/conditional",
"path": "migrations/versions/117567def844_.py",
"copies": "2",
"size": "1223",
"license": "mit",
"hash": -1038309435042204300,
"line_mean": 32.9722222222,
"line_max": 146,
"alpha_frac": 0.6794766966,
"autogenerated": false,
"ratio": 3.4353932584269664,
"co... |
"""Add longer ip address called pack
Revision ID: 585d74c833a6
Revises: 42bd0c8938f9
Create Date: 2016-11-23 17:43:03.266314
"""
# revision identifiers, used by Alembic.
revision = '585d74c833a6'
down_revision = '42bd0c8938f9'
from alembic import op
import sqlalchemy as sa
import sqlalchemy.sql as sql
metadata = s... | {
"repo_name": "porduna/weblabdeusto",
"path": "server/src/weblab/db/upgrade/regular/versions/585d74c833a6_add_longer_ip_address_called_pack.py",
"copies": "3",
"size": "1265",
"license": "bsd-2-clause",
"hash": 1021066919290035800,
"line_mean": 32.2894736842,
"line_max": 94,
"alpha_frac": 0.701185770... |
"""Add lots of models
Revision ID: 7cb3cc8cc18b
Revises: 1da99da59d35
Create Date: 2017-02-04 20:46:41.924579
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy import BigInteger
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = '7cb3cc8cc18b'
down_revisio... | {
"repo_name": "MJB47/Jokusoramame",
"path": "migrations/versions/7cb3cc8cc18b_add_lots_of_models.py",
"copies": "1",
"size": "1493",
"license": "mit",
"hash": -7294423259116138000,
"line_mean": 31.4565217391,
"line_max": 77,
"alpha_frac": 0.6751507033,
"autogenerated": false,
"ratio": 3.448036951... |
"""Add lot table and relationships
Revision ID: 330
Revises: 320_drop_selection_answers
Create Date: 2015-10-14 10:48:29.311523
"""
# revision identifiers, used by Alembic.
revision = '330'
down_revision = '320_drop_selection_answers'
import itertools
from alembic import op
import sqlalchemy as sa
from sqlalchemy.... | {
"repo_name": "alphagov/digitalmarketplace-api",
"path": "migrations/versions/330_add_lot_table_and_relationships.py",
"copies": "1",
"size": "3693",
"license": "mit",
"hash": -8155260936596065000,
"line_mean": 37.0721649485,
"line_max": 103,
"alpha_frac": 0.6344435418,
"autogenerated": false,
"r... |
"""Add lowercase index for certificate name and cn and also for domain name
Revision ID: 8323a5ea723a
Revises: b33c838cb669
Create Date: 2020-01-10 10:51:44.776052
"""
# revision identifiers, used by Alembic.
revision = '8323a5ea723a'
down_revision = 'b33c838cb669'
from alembic import op
from sqlalchemy import text... | {
"repo_name": "Netflix/lemur",
"path": "lemur/migrations/versions/8323a5ea723a_.py",
"copies": "1",
"size": "1270",
"license": "apache-2.0",
"hash": -3557942594798545400,
"line_mean": 24.4,
"line_max": 75,
"alpha_frac": 0.625984252,
"autogenerated": false,
"ratio": 3.3866666666666667,
"config_t... |
"""Add `lower` field to all tags so that Tags can be queried efficiently"""
import sys
import logging
from website.models import Tag
from website.app import init_app
from scripts import utils as script_utils
from framework.transactions.context import TokuTransaction
logger = logging.getLogger(__name__)
def do_migra... | {
"repo_name": "brandonPurvis/osf.io",
"path": "scripts/migration/migrate_tags.py",
"copies": "31",
"size": "1452",
"license": "apache-2.0",
"hash": 6736631998450641000,
"line_mean": 29.25,
"line_max": 88,
"alpha_frac": 0.6639118457,
"autogenerated": false,
"ratio": 3.934959349593496,
"config_te... |
"""add lower() indexes to pg
Revision ID: 439766f6104d
Revises: 20671b28c538
Create Date: 2012-07-09 21:33:28.404627
"""
from __future__ import unicode_literals
from alembic import op
from alembic.context import get_context
from sqlalchemy.dialects.postgresql.base import PGDialect
# revision identifiers, used by Al... | {
"repo_name": "ergo/ziggurat_foundations",
"path": "ziggurat_foundations/migrations/versions/439766f6104d_add_lower_indexes_to.py",
"copies": "1",
"size": "1880",
"license": "bsd-3-clause",
"hash": -1146781044199118800,
"line_mean": 24.7534246575,
"line_max": 123,
"alpha_frac": 0.5792553191,
"autog... |
"""Add luxembourg tables
Revision ID: 1b9b2d6fb6e
Revises: None
Create Date: 2014-11-24 15:45:03.798619
"""
# revision identifiers, used by Alembic.
revision = '1b9b2d6fb6e'
down_revision = None
from alembic import op, context
import sqlalchemy as sa
def downgrade():
schema = context.get_context().config.get_... | {
"repo_name": "Geoportail-Luxembourg/geoportailv3",
"path": "geoportal/LUX_alembic/versions/1b9b2d6fb6e_add_luxembourg_tables.py",
"copies": "2",
"size": "1991",
"license": "mit",
"hash": 3998540763927278600,
"line_mean": 34.5535714286,
"line_max": 79,
"alpha_frac": 0.5986941236,
"autogenerated": f... |
"""Add ManualApps and AllowedHost
Revision ID: 76668d91d087
Revises: 2b963e6ca2a2
Create Date: 2018-02-19 18:03:28.009222
"""
# revision identifiers, used by Alembic.
revision = '76668d91d087'
down_revision = '2b963e6ca2a2'
from alembic import op
import sqlalchemy as sa
def upgrade():
# ### commands auto gene... | {
"repo_name": "go-lab/labmanager",
"path": "alembic/versions/76668d91d087_add_manualapps_and_allowedhost.py",
"copies": "5",
"size": "2664",
"license": "bsd-2-clause",
"hash": 6143350842212751000,
"line_mean": 45.7368421053,
"line_max": 110,
"alpha_frac": 0.7094594595,
"autogenerated": false,
"ra... |
"""Add mapping table
Revision ID: 0cf18be7ade1
Revises:
Create Date: 2021-03-30 17:42:59.493830
"""
from enum import Enum
import sqlalchemy as sa
from alembic import op
from sqlalchemy.sql.ddl import CreateSchema, DropSchema
from indico.core.db.sqlalchemy import PyIntEnum
# revision identifiers, used by Alembic.
... | {
"repo_name": "indico/indico-plugins",
"path": "citadel/indico_citadel/migrations/20210330_1742_0cf18be7ade1_add_mapping_table.py",
"copies": "1",
"size": "3027",
"license": "mit",
"hash": 4566765336188599000,
"line_mean": 47.0476190476,
"line_max": 203,
"alpha_frac": 0.6888007929,
"autogenerated":... |
""" add markers to Devices:
- pins
- outline
"""
import numpy as np
from pp.layers import LAYER, port_type2layer
from pp.port import read_port_markers
import pp
def _rotate(v, m):
return np.dot(m, v)
def add_pin_triangle(component, port, layer=LAYER.PORT, label_layer=LAYER.TEXT):
"""
# The port visual... | {
"repo_name": "psiq/gdsfactory",
"path": "pp/add_pins.py",
"copies": "1",
"size": "5421",
"license": "mit",
"hash": 1819663384694387200,
"line_mean": 24.8142857143,
"line_max": 88,
"alpha_frac": 0.548607268,
"autogenerated": false,
"ratio": 3.144431554524362,
"config_test": false,
"has_no_key... |
'''add_master_protein - assign a unique master to each peptide across
all samples using a maximum parsimony approach
======================================================================
:Author: Tom Smith, Manasa Ramakrishna
:Release: $Id$
:Date: |today|
:Tags: Python RNP Proteomics
Purpose
-------
This script ta... | {
"repo_name": "TomSmithCGAT/CamProt",
"path": "camprot/scripts/add_master_protein.py",
"copies": "1",
"size": "26322",
"license": "mit",
"hash": -7171799152851391000,
"line_mean": 40.780952381,
"line_max": 91,
"alpha_frac": 0.5673201125,
"autogenerated": false,
"ratio": 3.816441931274467,
"conf... |
"""add mastodon_instances
Revision ID: f8a153bc809b
Revises: 5fec5f5e8a5e
Create Date: 2017-08-23 11:27:19.223721
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'f8a153bc809b'
down_revision = '5fec5f5e8a5e'
branch_labels = None
depends_on = None
def upgrade(... | {
"repo_name": "codl/forget",
"path": "migrations/versions/f8a153bc809b_add_mastodon_instances.py",
"copies": "1",
"size": "1025",
"license": "isc",
"hash": -5219611567132404000,
"line_mean": 24.625,
"line_max": 77,
"alpha_frac": 0.6117073171,
"autogenerated": false,
"ratio": 3.115501519756839,
... |
"""add measuredpositiontable
Revision ID: 146580790cd
Revises: 2902af6c9ef9
Create Date: 2015-09-25 11:25:11.921242
"""
# revision identifiers, used by Alembic.
revision = '146580790cd'
down_revision = '2902af6c9ef9'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by ... | {
"repo_name": "NMGRL/pychron",
"path": "alembic_dvc/versions/146580790cd_add_measuredposition.py",
"copies": "3",
"size": "2212",
"license": "apache-2.0",
"hash": -3477187240576465000,
"line_mean": 43.24,
"line_max": 101,
"alpha_frac": 0.5777576854,
"autogenerated": false,
"ratio": 4.103896103896... |
"""add meta.created
Revision ID: d2176bc400c8
Revises: 661fce6a2f64
Create Date: 2019-12-02 07:14:01.145411
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'd2176bc400c8'
down_revision = '661fce6a2f64'
branch_labels = None
depends_on = None
def upgrade(engine... | {
"repo_name": "lalinsky/acoustid-server",
"path": "alembic/versions/d2176bc400c8_add_meta_created.py",
"copies": "1",
"size": "1173",
"license": "mit",
"hash": 6112639460864543000,
"line_mean": 19.9464285714,
"line_max": 91,
"alpha_frac": 0.6598465473,
"autogenerated": false,
"ratio": 3.45,
"co... |
"""Add metadata for faster downloads
Revision ID: 490693c8dfe0
Revises: 4b75b53bdb19
Create Date: 2017-07-19 16:48:32.029613
"""
# revision identifiers, used by Alembic.
revision = '490693c8dfe0'
down_revision = '4b75b53bdb19'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto gen... | {
"repo_name": "morelab/appcomposer",
"path": "alembic/versions/490693c8dfe0_add_metadata_for_faster_downloads.py",
"copies": "3",
"size": "3369",
"license": "bsd-2-clause",
"hash": -3408767698649153000,
"line_mean": 61.3888888889,
"line_max": 136,
"alpha_frac": 0.7482932621,
"autogenerated": false,... |
"""Add metadata to FastCache
Revision ID: 3d2668a96dce
Revises: 4e20dff98010
Create Date: 2015-05-11 14:03:10.890043
"""
# revision identifiers, used by Alembic.
revision = '3d2668a96dce'
down_revision = '4e20dff98010'
from alembic import op
import sqlalchemy as sa
import sqlalchemy.sql as sql
from appcomposer.db ... | {
"repo_name": "go-lab/appcomposer",
"path": "alembic/versions/3d2668a96dce_add_metadata_to_fastcache.py",
"copies": "3",
"size": "1048",
"license": "bsd-2-clause",
"hash": 7781458506732205000,
"line_mean": 25.2,
"line_max": 102,
"alpha_frac": 0.7089694656,
"autogenerated": false,
"ratio": 3.44736... |
"""Add MFA
Revision ID: 84a8fa98bdf2
Revises: afde33bde2e0
Create Date: 2021-01-15 14:19:41.812334
"""
# revision identifiers, used by Alembic.
revision = '84a8fa98bdf2'
down_revision = 'afde33bde2e0'
from alembic import op
import sqlalchemy as sa
def upgrade():
# ### commands auto generated by Alembic - plea... | {
"repo_name": "CityOfNewYork/NYCOpenRecords",
"path": "migrations/versions/84a8fa98bdf2_add_mfa.py",
"copies": "1",
"size": "1090",
"license": "apache-2.0",
"hash": 7559564775479928000,
"line_mean": 31.0588235294,
"line_max": 95,
"alpha_frac": 0.5889908257,
"autogenerated": false,
"ratio": 3.6577... |
"""Add minutes FK constraint to ALV.
Revision ID: f05f7c8518a3
Revises: 22710e6fd2b1
Create Date: 2018-03-20 13:04:10.320984
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker, relati... | {
"repo_name": "viaict/viaduct",
"path": "migrations/versions/2018_03_20_f05f7c8518a3_add_minutes_fk_constraint_to_alv.py",
"copies": "1",
"size": "1057",
"license": "mit",
"hash": 3016760429691256300,
"line_mean": 26.1025641026,
"line_max": 106,
"alpha_frac": 0.7010406812,
"autogenerated": false,
... |
"""Add missing blocking principal constraints
Revision ID: 252c0015c9a0
Revises: 4f98f2f979c7
Create Date: 2018-12-13 10:49:51.279917
"""
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = '252c0015c9a0'
down_revision = '4f98f2f979c7'
branch_labels = None
depends_on =... | {
"repo_name": "indico/indico",
"path": "indico/migrations/versions/20181213_1049_252c0015c9a0_add_missing_blocking_principal.py",
"copies": "1",
"size": "2967",
"license": "mit",
"hash": 5132448581061188000,
"line_mean": 54.9811320755,
"line_max": 115,
"alpha_frac": 0.6255476913,
"autogenerated": f... |
"""Add missing constraints
Revision ID: 3a872ea246b9
Revises: 4690204e5a62
Create Date: 2015-10-28 19:00:20.176000
"""
# revision identifiers, used by Alembic.
revision = '3a872ea246b9'
down_revision = '4690204e5a62'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
from sqlalche... | {
"repo_name": "katajakasa/utuputki2",
"path": "alembic/versions/3a872ea246b9_add_missing_constraints.py",
"copies": "1",
"size": "1351",
"license": "mit",
"hash": -2130447596318423800,
"line_mean": 32.775,
"line_max": 85,
"alpha_frac": 0.6550703183,
"autogenerated": false,
"ratio": 3.583554376657... |
"""Add missing field in Historic
Revision ID: 24b650b60652
Revises: bfa1f94763c
Create Date: 2016-02-04 09:57:51.655017
"""
# revision identifiers, used by Alembic.
revision = '24b650b60652'
down_revision = 'bfa1f94763c'
from alembic import op
import sqlalchemy as sa
import sqlalchemy.sql as sql
from appcomposer.d... | {
"repo_name": "go-lab/appcomposer",
"path": "alembic/versions/24b650b60652_add_missing_field_in_historic.py",
"copies": "3",
"size": "5674",
"license": "bsd-2-clause",
"hash": -8745628749135998000,
"line_mean": 54.6274509804,
"line_max": 147,
"alpha_frac": 0.7040888262,
"autogenerated": false,
"r... |
"""addMissingHeaders
Revision ID: 37bf5b71b83f
Revises: 6015ec0f59c9
Create Date: 2016-03-22 12:24:54.141000
"""
# revision identifiers, used by Alembic.
revision = '37bf5b71b83f'
down_revision = '6015ec0f59c9'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
def upgrade(engin... | {
"repo_name": "fedspendingtransparency/data-act-core",
"path": "dataactcore/migrations/versions/37bf5b71b83f_addmissingheaders.py",
"copies": "1",
"size": "1393",
"license": "cc0-1.0",
"hash": 8131530340776197000,
"line_mean": 20.765625,
"line_max": 88,
"alpha_frac": 0.664034458,
"autogenerated": f... |
"""Add missing indexes.
Revision ID: 32e8060589b8
Revises: a3fe8c8a344
Create Date: 2014-02-11 17:21:00.718449
"""
# revision identifiers, used by Alembic.
revision = '32e8060589b8'
down_revision = 'a3fe8c8a344'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alemb... | {
"repo_name": "ucsb-cs/submit",
"path": "submit/migrations/versions/32e8060589b8_add_missing_indexes.py",
"copies": "1",
"size": "1674",
"license": "bsd-2-clause",
"hash": 8611515270830671000,
"line_mean": 43.0526315789,
"line_max": 99,
"alpha_frac": 0.7013142174,
"autogenerated": false,
"ratio":... |
"""Add missing indexes
Revision ID: 4bc4c1ae0f38
Revises: 105c1c44ff70
Create Date: 2014-04-29 21:28:23.149125
"""
# revision identifiers, used by Alembic.
revision = '4bc4c1ae0f38'
down_revision = '105c1c44ff70'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alem... | {
"repo_name": "porduna/labmanager",
"path": "alembic/versions/4bc4c1ae0f38_add_missing_indexes.py",
"copies": "5",
"size": "2738",
"license": "bsd-2-clause",
"hash": 4423779502197167600,
"line_mean": 56.0416666667,
"line_max": 127,
"alpha_frac": 0.7282688093,
"autogenerated": false,
"ratio": 3.31... |
"""Add missing mapping permissions.
Revision ID: 758b4012b5f
Revises: 3be0d9d2c9f8
Create Date: 2013-10-08 04:43:08.967577
"""
# revision identifiers, used by Alembic.
revision = '758b4012b5f'
down_revision = '3be0d9d2c9f8'
import json
import sqlalchemy as sa
from alembic import op
from datetime import datetime
fro... | {
"repo_name": "uskudnik/ggrc-core",
"path": "src/ggrc_basic_permissions/migrations/versions/20131008044308_758b4012b5f_add_missing_mapping_.py",
"copies": "2",
"size": "2372",
"license": "apache-2.0",
"hash": 7994997664952841000,
"line_mean": 25.6516853933,
"line_max": 54,
"alpha_frac": 0.6087689713,... |
"""Add missing `NOT NULL`s
Revision ID: 0958abda66cf
Revises: 3f18ecfaf637
Create Date: 2017-05-08 11:01:05.744154
"""
# revision identifiers, used by Alembic.
revision = '0958abda66cf'
down_revision = '3f18ecfaf637'
from alembic import op # lgtm[py/unused-import]
import sqlalchemy as sa # lgtm[py/unused-import]... | {
"repo_name": "Weasyl/weasyl",
"path": "libweasyl/libweasyl/alembic/versions/0958abda66cf_add_missing_not_null_s.py",
"copies": "1",
"size": "3389",
"license": "apache-2.0",
"hash": -4517465691475755500,
"line_mean": 34.3020833333,
"line_max": 65,
"alpha_frac": 0.5582767778,
"autogenerated": false,... |
"""Add missing references section to pages with refs, comes from wikidata."""
import re
import pywikibot
CATEGORY = "Категория:Википедия:Статьи с источниками из Викиданных"
TEMPLATE = "Шаблон:Примечания"
COMMENT = "Исправление отсутствующей секции примечаний."
IGNORE_FILTER = re.compile(r"""(
<!--.*?-->|
<n... | {
"repo_name": "Facenapalm/NapalmBot",
"path": "scripts/wikidatarefs.py",
"copies": "1",
"size": "5794",
"license": "mit",
"hash": 7357969087732842000,
"line_mean": 33.7295597484,
"line_max": 102,
"alpha_frac": 0.5932633104,
"autogenerated": false,
"ratio": 3.1937536148062464,
"config_test": fal... |
"""Add mnemonic for supplier, product and customer, make mobile_phone unique in customer.
Revision ID: 3c66f436a5be
Revises: 3f2bc9bc2775
Create Date: 2017-04-30 22:55:30.543871
"""
# revision identifiers, used by Alembic.
revision = '3c66f436a5be'
down_revision = '3f2bc9bc2775'
from alembic import op
import sqlalc... | {
"repo_name": "betterlife/psi",
"path": "psi/migrations/versions/38_3c66f436a5be_.py",
"copies": "2",
"size": "1105",
"license": "mit",
"hash": -1861999726722648300,
"line_mean": 34.6451612903,
"line_max": 90,
"alpha_frac": 0.7022624434,
"autogenerated": false,
"ratio": 3.308383233532934,
"conf... |
"""Add ModAction model
Revision ID: 4430bb0ac79d
Revises: 2e09867c0c38
Create Date: 2016-07-03 11:05:53.359444
"""
# revision identifiers, used by Alembic.
revision = '4430bb0ac79d'
down_revision = '2e09867c0c38'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
from sqlalchemy.d... | {
"repo_name": "c4fcm/CivilServant",
"path": "alembic/versions/4430bb0ac79d_add_modaction_model.py",
"copies": "1",
"size": "4558",
"license": "mit",
"hash": -7095921864053196000,
"line_mean": 41.2037037037,
"line_max": 105,
"alpha_frac": 0.6801228609,
"autogenerated": false,
"ratio": 3.3197378004... |
"""Add model for snapshots of ExperimentThings
Revision ID: a0f4fda7588f
Revises: ae72c799d321
Create Date: 2016-11-26 22:05:26.728790
"""
# revision identifiers, used by Alembic.
revision = 'a0f4fda7588f'
down_revision = 'ae72c799d321'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy... | {
"repo_name": "c4fcm/CivilServant",
"path": "alembic/versions/a0f4fda7588f_add_model_for_snapshots_of_.py",
"copies": "1",
"size": "4337",
"license": "mit",
"hash": -4106635405305571000,
"line_mean": 42.37,
"line_max": 147,
"alpha_frac": 0.7057874107,
"autogenerated": false,
"ratio": 3.5754328112... |
"""Add moderator log table
Revision ID: ac1680bc48
Revises: b6880387f89d
Create Date: 2016-05-08 19:50:03.469322
"""
# revision identifiers, used by Alembic.
revision = 'ac1680bc48'
down_revision = 'b6880387f89d'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
def upgrade():
... | {
"repo_name": "Floens/uchan",
"path": "migrations/versions/ac1680bc48_add_moderator_log_table.py",
"copies": "1",
"size": "1759",
"license": "mit",
"hash": -4668925968336703000,
"line_mean": 40.880952381,
"line_max": 105,
"alpha_frac": 0.62706083,
"autogenerated": false,
"ratio": 3.49701789264413... |
"""Add mod list objects
Revision ID: 566d08c75c6
Revises: 18af22fa9e4
Create Date: 2014-09-25 11:19:16.916489
"""
# revision identifiers, used by Alembic.
revision = '566d08c75c6'
down_revision = '18af22fa9e4'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic... | {
"repo_name": "EIREXE/Olddulous",
"path": "alembic/versions/566d08c75c6_add_mod_list_objects.py",
"copies": "5",
"size": "1715",
"license": "mit",
"hash": -6916345028550936000,
"line_mean": 39.8333333333,
"line_max": 104,
"alpha_frac": 0.6874635569,
"autogenerated": false,
"ratio": 3.211610486891... |
"""Add mod list objects
Revision ID: 566d08c75c6
Revises: 18af22fa9e4
Create Date: 2014-09-25 11:19:16.916489
"""
# revision identifiers, used by Alembic.
revision = '566d08c75c6'
down_revision = '18af22fa9e4'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto gen... | {
"repo_name": "EIREXE/SpaceDock",
"path": "alembic/versions/566d08c75c6_add_mod_list_objects.py",
"copies": "2",
"size": "1757",
"license": "mit",
"hash": 5717819534314636000,
"line_mean": 39.8333333333,
"line_max": 104,
"alpha_frac": 0.6710301651,
"autogenerated": false,
"ratio": 3.2597402597402... |
"""Add mods and media
Revision ID: 2ef141f5132
Revises: 1fb18596264
Create Date: 2014-06-06 00:00:28.128296
"""
# revision identifiers, used by Alembic.
revision = '2ef141f5132'
down_revision = '1fb18596264'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic -... | {
"repo_name": "EIREXE/Olddulous",
"path": "alembic/versions/2ef141f5132_add_mods_and_media.py",
"copies": "5",
"size": "1956",
"license": "mit",
"hash": 6654335684167178000,
"line_mean": 39.75,
"line_max": 93,
"alpha_frac": 0.6646216769,
"autogenerated": false,
"ratio": 3.2224052718286655,
"con... |
"""Add mods and media
Revision ID: 2ef141f5132
Revises: 1fb18596264
Create Date: 2014-06-06 00:00:28.128296
"""
# revision identifiers, used by Alembic.
revision = '2ef141f5132'
down_revision = '1fb18596264'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto gener... | {
"repo_name": "EIREXE/SpaceDock",
"path": "alembic/versions/2ef141f5132_add_mods_and_media.py",
"copies": "2",
"size": "2004",
"license": "mit",
"hash": -1594080463561725400,
"line_mean": 39.75,
"line_max": 93,
"alpha_frac": 0.6487025948,
"autogenerated": false,
"ratio": 3.2745098039215685,
"co... |
"""Add more FTS indexes
Revision ID: 79e770865675
Revises: fda76e047e87
Create Date: 2021-06-15 16:27:35.922384
"""
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = '79e770865675'
down_revision = 'fda76e047e87'
branch_labels = None
depends_on = None
def upgrade():... | {
"repo_name": "indico/indico",
"path": "indico/migrations/versions/20210615_1627_79e770865675_add_more_fts_indexes.py",
"copies": "1",
"size": "2368",
"license": "mit",
"hash": -3956013261716409000,
"line_mean": 50.4782608696,
"line_max": 115,
"alpha_frac": 0.6722972973,
"autogenerated": false,
"... |
"""add more indexes
Revision ID: b262149925a7
Revises: 92235b77ea53
Create Date: 2017-10-14 15:37:56.451984
"""
# revision identifiers, used by Alembic.
revision = 'b262149925a7'
down_revision = '92235b77ea53'
from collections import defaultdict
from alembic import op
import sqlalchemy as sa
from sqlalchemy import... | {
"repo_name": "morelab/appcomposer",
"path": "alembic/versions/b262149925a7_add_more_indexes.py",
"copies": "3",
"size": "2277",
"license": "bsd-2-clause",
"hash": 5862836485731627000,
"line_mean": 36.3278688525,
"line_max": 268,
"alpha_frac": 0.7101449275,
"autogenerated": false,
"ratio": 3.5971... |
"""Add More Indicies To Tables
Revision ID: 7b6a65c708b9
Revises: 7e1d5c529924
Create Date: 2016-10-25 20:58:47.659852
"""
# revision identifiers, used by Alembic.
revision = '7b6a65c708b9'
down_revision = '7e1d5c529924'
from alembic import op
import sqlalchemy as sa
import server
def upgrade():
### commands ... | {
"repo_name": "Cal-CS-61A-Staff/ok",
"path": "migrations/versions/7b6a65c708b9_add_more_indicies_to_tables.py",
"copies": "1",
"size": "1406",
"license": "apache-2.0",
"hash": 188726225492086460,
"line_mean": 37,
"line_max": 85,
"alpha_frac": 0.673541963,
"autogenerated": false,
"ratio": 2.978813... |
"""Add more info
Revision ID: 2639af76b6d1
Revises: 74932447fbf8
Create Date: 2018-02-19 22:55:52.627273
"""
# revision identifiers, used by Alembic.
revision = '2639af76b6d1'
down_revision = '74932447fbf8'
from alembic import op
import sqlalchemy as sa
def upgrade():
# ### commands auto generated by Alembic ... | {
"repo_name": "porduna/appcomposer",
"path": "alembic/versions/2639af76b6d1_add_more_info.py",
"copies": "3",
"size": "1278",
"license": "bsd-2-clause",
"hash": -7797583732599806000,
"line_mean": 38.9375,
"line_max": 135,
"alpha_frac": 0.7175273865,
"autogenerated": false,
"ratio": 3.211055276381... |
"""Add more locals
Revision ID: 3aac2c8dbcb6
Revises: 56d38b1172f9
Create Date: 2017-06-09 19:35:21.477009
"""
# revision identifiers, used by Alembic.
revision = '3aac2c8dbcb6'
down_revision = '56d38b1172f9'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic ... | {
"repo_name": "go-lab/labmanager",
"path": "alembic/versions/3aac2c8dbcb6_add_more_locals.py",
"copies": "5",
"size": "1093",
"license": "bsd-2-clause",
"hash": 3222636577251648500,
"line_mean": 33.15625,
"line_max": 94,
"alpha_frac": 0.6971637694,
"autogenerated": false,
"ratio": 3.1589595375722... |
# Add more specific tests to check the schema created for the table
'''Tests for file_to_db'''
from mysite import settings
from Testing import testhelpers as th
from Database.db_access import DBAccess
from scisheets.models import UploadedFiles
from mysite.helpers.file_to_db import (FileTable, SQLType)
import unittest
... | {
"repo_name": "ScienceStacks/SciSheets",
"path": "mysite/mysite/helpers/test_file_to_db.py",
"copies": "2",
"size": "3334",
"license": "apache-2.0",
"hash": 6550488658828849000,
"line_mean": 31.0576923077,
"line_max": 72,
"alpha_frac": 0.6835632873,
"autogenerated": false,
"ratio": 3.139359698681... |
# Add mouse controls
# add half size paddle after hitting back wall
import math, pygame, sys, shutil, getpass
from pygame.locals import *
from fuzzy_agent import FuzzyAgent
from fuzzy_trajectory import FuzzyTrajectory
pygame.init()
fpsClock = pygame.time.Clock()
screen = pygame.display.set_mode((640, 480)) # create ... | {
"repo_name": "ElchinValiyev/GameAI",
"path": "Project_3/breakout/breakout.py",
"copies": "1",
"size": "10308",
"license": "mit",
"hash": 4095935882233494500,
"line_mean": 34.7916666667,
"line_max": 109,
"alpha_frac": 0.4779782693,
"autogenerated": false,
"ratio": 3.914925939992404,
"config_tes... |
# Add mouse controls
# add half size paddle after hitting back wall
import math, pygame, sys, shutil, getpass
from pygame.locals import *
pygame.init()
fpsClock = pygame.time.Clock()
screen = pygame.display.set_mode((640, 480)) # create screen - 640 pix by 480 pix
pygame.display.set_caption('Breakout') # set title ... | {
"repo_name": "ElchinValiyev/GameAI",
"path": "Project_2/bricka/breakout.py",
"copies": "1",
"size": "10079",
"license": "mit",
"hash": -6303919351263107000,
"line_mean": 33.3993174061,
"line_max": 109,
"alpha_frac": 0.4779243973,
"autogenerated": false,
"ratio": 3.8120272314674737,
"config_tes... |
"""Add movie metadata (imdb rating, number of votes, metascore) and relevancy
Revision ID: 2c240cb3edd1
Revises: 588336e02ca
Create Date: 2014-02-09 13:46:18.630000
"""
# revision identifiers, used by Alembic.
revision = '2c240cb3edd1'
down_revision = '588336e02ca'
from alembic import op
import sqlalchemy as sa
d... | {
"repo_name": "streamr/marvin",
"path": "migrations/versions/2c240cb3edd1_.py",
"copies": "1",
"size": "1137",
"license": "mit",
"hash": -735231393272295800,
"line_mean": 34.53125,
"line_max": 111,
"alpha_frac": 0.6860158311,
"autogenerated": false,
"ratio": 3.2485714285714287,
"config_test": f... |
"""Add multi-column indexes to appropriation and object class program activity table
Revision ID: 51b1bbc0bfde
Revises: 4ebc7a781b31
Create Date: 2019-07-26 12:03:39.154057
"""
# revision identifiers, used by Alembic.
revision = '51b1bbc0bfde'
down_revision = '4ebc7a781b31'
branch_labels = None
depends_on = None
fr... | {
"repo_name": "fedspendingtransparency/data-act-broker-backend",
"path": "dataactcore/migrations/versions/51b1bbc0bfde_add_multi_column_indexes_to_.py",
"copies": "1",
"size": "1253",
"license": "cc0-1.0",
"hash": 321826603692573060,
"line_mean": 28.8333333333,
"line_max": 128,
"alpha_frac": 0.709497... |
"""Add multicolumn indexes to published_award_financial_assistance
Revision ID: ae35bd44ec9a
Revises: 66ce64f4c1da
Create Date: 2018-09-19 09:15:27.852093
"""
# revision identifiers, used by Alembic.
revision = 'ae35bd44ec9a'
down_revision = '66ce64f4c1da'
branch_labels = None
depends_on = None
from alembic import ... | {
"repo_name": "fedspendingtransparency/data-act-broker-backend",
"path": "dataactcore/migrations/versions/ae35bd44ec9a_add_multicolumn_indexes_to_published_.py",
"copies": "1",
"size": "1326",
"license": "cc0-1.0",
"hash": 1468482552120254200,
"line_mean": 30.5714285714,
"line_max": 170,
"alpha_frac"... |
"""Add multicolumn upper indexes to published_award_financial_assistance
Revision ID: be4dcb9eede6
Revises: 6e3be68b87ae
Create Date: 2020-07-30 14:41:38.848315
"""
# revision identifiers, used by Alembic.
revision = 'be4dcb9eede6'
down_revision = '6e3be68b87ae'
branch_labels = None
depends_on = None
from alembic i... | {
"repo_name": "fedspendingtransparency/data-act-broker-backend",
"path": "dataactcore/migrations/versions/be4dcb9eede6_add_multicolumn_upper_indexes_to_.py",
"copies": "1",
"size": "1298",
"license": "cc0-1.0",
"hash": 8853717881610677000,
"line_mean": 29.9047619048,
"line_max": 156,
"alpha_frac": 0.... |
"""add multigame tables
Revision ID: 4e0500347ce7
Revises: 29344aa34d9
Create Date: 2016-04-05 23:51:58.647657
"""
# revision identifiers, used by Alembic.
revision = '4e0500347ce7'
down_revision = '29344aa34d9'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alemb... | {
"repo_name": "EIREXE/Olddulous",
"path": "alembic/versions/4e0500347ce7_add_multigame_tables.py",
"copies": "1",
"size": "1360",
"license": "mit",
"hash": 5725122559588898000,
"line_mean": 36.7777777778,
"line_max": 97,
"alpha_frac": 0.6632352941,
"autogenerated": false,
"ratio": 3.0769230769230... |
"""add multigame tables
Revision ID: 4e0500347ce7
Revises: 29344aa34d9
Create Date: 2016-04-05 23:51:58.647657
"""
# revision identifiers, used by Alembic.
revision = '4e0500347ce7'
down_revision = '29344aa34d9'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto g... | {
"repo_name": "EIREXE/SpaceDock",
"path": "alembic/versions/4e0500347ce7_add_multigame_tables.py",
"copies": "2",
"size": "1396",
"license": "mit",
"hash": 1701918314813213400,
"line_mean": 36.7777777778,
"line_max": 97,
"alpha_frac": 0.6461318052,
"autogenerated": false,
"ratio": 3.1230425055928... |
"""Add multi-label support"""
# revision identifiers, used by Alembic.
revision = '0fd16cdac8ca'
down_revision = 'a1343ebd31c7'
import sqlalchemy as sa
import sqlalchemy_utils
from alembic import op
from sqlalchemy.dialects import postgresql
def upgrade():
# ### commands auto generated by Alembic - please adjus... | {
"repo_name": "planbrothers/ml-annotate",
"path": "annotator/migrations/versions/0fd16cdac8ca_add_multi_label_support.py",
"copies": "1",
"size": "4518",
"license": "mit",
"hash": 1875779414728077300,
"line_mean": 47.5806451613,
"line_max": 145,
"alpha_frac": 0.6739707835,
"autogenerated": false,
... |
"""Add multiple organization support and add seed organization
Revision ID: b19224a5c1dd
Revises: a1ed2f75cb13
Create Date: 2016-03-18 20:41:33.024198
"""
# revision identifiers, used by Alembic.
revision = 'b19224a5c1dd'
down_revision = 'a1ed2f75cb13'
from alembic import op
import sqlalchemy as sa
def upgrade():... | {
"repo_name": "betterlife/psi",
"path": "psi/migrations/versions/17_b19224a5c1dd_.py",
"copies": "2",
"size": "7937",
"license": "mit",
"hash": -3413085169860915000,
"line_mean": 62.496,
"line_max": 153,
"alpha_frac": 0.6545294192,
"autogenerated": false,
"ratio": 3.7350588235294118,
"config_te... |
"""add name,location,about_me,member_since,last_seen to User model
Revision ID: 52e7af0253c6
Revises: 577579399e83
Create Date: 2017-09-26 01:46:51.978788
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '52e7af0253c6'
down_revision = '577579399e83'
branch_label... | {
"repo_name": "mikkylok/mikky.lu",
"path": "migrations/versions/52e7af0253c6_add_name_location_about_me_member_since_.py",
"copies": "1",
"size": "1197",
"license": "mit",
"hash": -6265436489120376000,
"line_mean": 32.25,
"line_max": 86,
"alpha_frac": 0.6750208855,
"autogenerated": false,
"ratio"... |
"""Add name to RLMS
Revision ID: 298c12227419
Revises: 229fd8d6f159
Create Date: 2015-05-08 13:50:33.747142
"""
# revision identifiers, used by Alembic.
revision = '298c12227419'
down_revision = '229fd8d6f159'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
def upgrade():
#... | {
"repo_name": "go-lab/labmanager",
"path": "alembic/versions/298c12227419_add_name_to_rlms.py",
"copies": "5",
"size": "1188",
"license": "bsd-2-clause",
"hash": 9035770104710729000,
"line_mean": 30.2631578947,
"line_max": 83,
"alpha_frac": 0.6447811448,
"autogenerated": false,
"ratio": 3.6,
"c... |
"""Add narrative table
Revision ID: e2aef4260e1f
Revises: a57a6a486f83
Create Date: 2016-11-17 22:24:36.546851
"""
# revision identifiers, used by Alembic.
revision = 'e2aef4260e1f'
down_revision = 'a57a6a486f83'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
def upgrade(eng... | {
"repo_name": "fedspendingtransparency/data-act-broker-backend",
"path": "dataactcore/migrations/versions/e2aef4260e1f_add_narrative_table.py",
"copies": "1",
"size": "1512",
"license": "cc0-1.0",
"hash": 1674208704169947100,
"line_mean": 28.6470588235,
"line_max": 99,
"alpha_frac": 0.6891534392,
"... |
"""add_new_biobank_codes
Revision ID: 9b93d00a35cc
Revises: 574efa4de1ba
Create Date: 2018-01-26 07:59:58.808302
"""
import model.utils
import sqlalchemy as sa
from alembic import op
from rdr_service.participant_enums import OrderStatus, SampleStatus
# revision identifiers, used by Alembic.
revision = "9b93d00a35cc... | {
"repo_name": "all-of-us/raw-data-repository",
"path": "rdr_service/alembic/versions/9b93d00a35cc_add_new_biobank_codes.py",
"copies": "1",
"size": "2732",
"license": "bsd-3-clause",
"hash": -5080634067696032000,
"line_mean": 33.15,
"line_max": 116,
"alpha_frac": 0.6866764275,
"autogenerated": fals... |
"""add new biosample codes
Revision ID: 3da004006210
Revises: c2dd2332a63f
Create Date: 2018-03-01 09:20:45.647001
"""
import model.utils
import sqlalchemy as sa
from alembic import op
from rdr_service.participant_enums import OrderStatus, SampleStatus
# revision identifiers, used by Alembic.
revision = "3da0040062... | {
"repo_name": "all-of-us/raw-data-repository",
"path": "rdr_service/alembic/versions/3da004006210_add_new_biosample_codes.py",
"copies": "1",
"size": "2734",
"license": "bsd-3-clause",
"hash": 882917413750195200,
"line_mean": 33.175,
"line_max": 116,
"alpha_frac": 0.6869056328,
"autogenerated": fal... |
"""Add new categories and add order column
Revision ID: 1145cc4ac43b
Revises: 2a1c7cc1743b
Create Date: 2015-01-26 20:39:32.921622
"""
# revision identifiers, used by Alembic.
revision = '1145cc4ac43b'
down_revision = '2a1c7cc1743b'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.sql import table
d... | {
"repo_name": "jlutz777/FreeStore",
"path": "alembic/versions/1145cc4ac43b_add_new_categories_and_add_order_column.py",
"copies": "1",
"size": "3135",
"license": "mit",
"hash": -4949983003625736000,
"line_mean": 30.6666666667,
"line_max": 76,
"alpha_frac": 0.536523126,
"autogenerated": false,
"ra... |
"""add new column member_count to cert table
Revision ID: de313b629296
Revises: 32c1cbb13ec2
Create Date: 2017-07-20 08:55:47.250651
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
# revision identifiers, used by Alembic.
revision = 'de313b629296'
down_revision = '32c1cbb13ec... | {
"repo_name": "hieulq/pgscm",
"path": "migrations/versions/de313b629296_add_member_count_cert_table.py",
"copies": "2",
"size": "1250",
"license": "apache-2.0",
"hash": -1074896123597830500,
"line_mean": 31.0512820513,
"line_max": 72,
"alpha_frac": 0.6112,
"autogenerated": false,
"ratio": 3.78787... |
"""Add new enum value
Revision ID: 5a974b8e4966
Revises: b88ba80940cb
Create Date: 2018-03-23 08:47:40.976539
"""
# revision identifiers, used by Alembic.
revision = '5a974b8e4966'
down_revision = 'b88ba80940cb'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
from sqlalchemy.sq... | {
"repo_name": "fake-name/ReadableWebProxy",
"path": "alembic/versions/00041_5a974b8e4966_add_new_enum_value.py",
"copies": "1",
"size": "1195",
"license": "bsd-3-clause",
"hash": 1472732596268778800,
"line_mean": 26.1818181818,
"line_max": 72,
"alpha_frac": 0.7682008368,
"autogenerated": false,
"... |
"""Add new field 'is_restricted' to SqlMetric and DruidMetric
Revision ID: d8bc074f7aad
Revises: 1226819ee0e3
Create Date: 2016-06-07 12:33:25.756640
"""
# revision identifiers, used by Alembic.
revision = 'd8bc074f7aad'
down_revision = '1226819ee0e3'
from alembic import op
import sqlalchemy as sa
from caravel impo... | {
"repo_name": "georgeke/caravel",
"path": "caravel/migrations/versions/d8bc074f7aad_add_new_field_is_restricted_to_.py",
"copies": "8",
"size": "1732",
"license": "apache-2.0",
"hash": 3997271819468351000,
"line_mean": 28.8620689655,
"line_max": 89,
"alpha_frac": 0.6997690531,
"autogenerated": fals... |
"""Add new Indexes for faster searching
Revision ID: 3097d57f3f0b
Revises: 4fe230f7a26e
Create Date: 2021-06-19 20:18:55.332165
"""
# revision identifiers, used by Alembic.
revision = '3097d57f3f0b'
down_revision = '4fe230f7a26e'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.create_index(
... | {
"repo_name": "Netflix/lemur",
"path": "lemur/migrations/versions/3097d57f3f0b_.py",
"copies": "1",
"size": "1099",
"license": "apache-2.0",
"hash": -6762456171640848000,
"line_mean": 23.9772727273,
"line_max": 74,
"alpha_frac": 0.6405823476,
"autogenerated": false,
"ratio": 3.55663430420712,
"... |
"""Add new member to Google Sheet."""
import httplib2
import logging
import re
from apiclient import discovery
from oauth2client.service_account import ServiceAccountCredentials
from Config import get_config, get_credentials
def get_service():
creds = get_credentials()
scopes = ['https://www.googleapis.com/a... | {
"repo_name": "hkdems/membership-server",
"path": "GoogleSheets.py",
"copies": "1",
"size": "4423",
"license": "apache-2.0",
"hash": 6778664610903114000,
"line_mean": 30.8201438849,
"line_max": 85,
"alpha_frac": 0.5735925842,
"autogenerated": false,
"ratio": 3.75785896346644,
"config_test": fal... |
"""add new netloc tracking table
Revision ID: 669e9df34ea7
Revises: 5552dfae2cb0
Create Date: 2020-01-20 01:36:51.862767
"""
# revision identifiers, used by Alembic.
revision = '669e9df34ea7'
down_revision = '5552dfae2cb0'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
from s... | {
"repo_name": "fake-name/ReadableWebProxy",
"path": "alembic/versions/2020-01-20_669e9df34ea7_add_new_netloc_tracking_table.py",
"copies": "1",
"size": "1746",
"license": "bsd-3-clause",
"hash": -2469419829929895400,
"line_mean": 31.9433962264,
"line_max": 106,
"alpha_frac": 0.7394043528,
"autogene... |
"""Add new rating_ride_reason
Revision ID: bb73d477a1c4
Revises: 986de51c9c9f
Create Date: 2016-10-25 11:13:30.478311
"""
# revision identifiers, used by Alembic.
revision = 'bb73d477a1c4'
down_revision = '986de51c9c9f'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
old_o... | {
"repo_name": "openmaraude/APITaxi_models",
"path": "APITaxi_models2/migrations/versions/20161025_11:13:30_bb73d477a1c4_add_new_rating_ride_reason.py.py",
"copies": "2",
"size": "2244",
"license": "mit",
"hash": -8113902328441162000,
"line_mean": 39.0714285714,
"line_max": 81,
"alpha_frac": 0.6631016... |
"""Add new rule to copy Plugin url and comment
Revision ID: e4d30f140ed
Revises: 22e4e60e03f
Create Date: 2013-05-22 08:01:54.873655
"""
# revision identifiers, used by Alembic.
revision = 'e4d30f140ed'
down_revision = '22e4e60e03f'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import post... | {
"repo_name": "cliqz/socorro",
"path": "alembic/versions/e4d30f140ed_add_new_rule_to_copy.py",
"copies": "14",
"size": "2393",
"license": "mpl-2.0",
"hash": -1233249629522882000,
"line_mean": 29.6794871795,
"line_max": 79,
"alpha_frac": 0.6117843711,
"autogenerated": false,
"ratio": 3.56101190476... |
"""add new samples
Revision ID: 2bd074e60e19
Revises: f098d2c51614
Create Date: 2018-04-11 13:20:43.492666
"""
import model.utils
import sqlalchemy as sa
from alembic import op
from rdr_service.participant_enums import OrderStatus, SampleStatus
# revision identifiers, used by Alembic.
revision = "2bd074e60e19"
down... | {
"repo_name": "all-of-us/raw-data-repository",
"path": "rdr_service/alembic/versions/2bd074e60e19_add_new_samples.py",
"copies": "1",
"size": "4400",
"license": "bsd-3-clause",
"hash": 8844297910204567000,
"line_mean": 38.2857142857,
"line_max": 116,
"alpha_frac": 0.6893181818,
"autogenerated": fal... |
"""Add newsletter models.
Revision ID: d3e9983f8366
Revises: 8fc09a727a5c
Create Date: 2017-06-15 22:44:02.778366
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'd3e9983f8366'
down_revision = '8fc09a727a5c'
def upgrade():
op.create_table(
'newsle... | {
"repo_name": "viaict/viaduct",
"path": "migrations/versions/2017_06_15_d3e9983f8366_add_newsletter_models.py",
"copies": "1",
"size": "1701",
"license": "mit",
"hash": 4926626687541002000,
"line_mean": 31.0943396226,
"line_max": 75,
"alpha_frac": 0.6231628454,
"autogenerated": false,
"ratio": 3.... |
"""Add new table for RLMS-level cache
Revision ID: 229fd8d6f159
Revises: 1a3e5ec9c2fd
Create Date: 2015-05-07 09:29:51.133081
"""
# revision identifiers, used by Alembic.
revision = '229fd8d6f159'
down_revision = '1a3e5ec9c2fd'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto ge... | {
"repo_name": "morelab/labmanager",
"path": "alembic/versions/229fd8d6f159_add_new_table_for_rlms_level_cache.py",
"copies": "5",
"size": "1443",
"license": "bsd-2-clause",
"hash": -2600196039979929000,
"line_mean": 35.075,
"line_max": 96,
"alpha_frac": 0.6812196812,
"autogenerated": false,
"rati... |
"""add new tables
Revision ID: d46a231df696
Revises: 415d32f993b8
Create Date: 2018-08-26 18:14:48.922463
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'd46a231df696'
down_revision = '415d32f993b8'
branch_labels = None
depends_on = None
def upgrade():
#... | {
"repo_name": "hackerspace-silesia/cebulany-manager",
"path": "migrations/versions/d46a231df696_add_new_tables.py",
"copies": "1",
"size": "3945",
"license": "mit",
"hash": 6679619780934775000,
"line_mean": 41.4193548387,
"line_max": 89,
"alpha_frac": 0.6626108999,
"autogenerated": false,
"ratio"... |
"""Add
Add an excentury configuration file to excentury.
"""
import textwrap
import os.path as pth
from excentury.command import error, trace
from excentury.command.config import _read_config
DESC = """
Adds an excentury configuration file to the list of the users
projects. A valid excentury project must have two f... | {
"repo_name": "jmlopez-rod/excentury",
"path": "excentury/command/add.py",
"copies": "1",
"size": "2649",
"license": "bsd-2-clause",
"hash": 4029268600738679300,
"line_mean": 26.8842105263,
"line_max": 68,
"alpha_frac": 0.5877689694,
"autogenerated": false,
"ratio": 3.594301221166893,
"config_t... |
"""add
Revision ID: d81ae8ae32ea
Revises: fc1eb86aa8f4, 355854d777d3
Create Date: 2021-06-25 11:54:54.415110
"""
from alembic import op
import sqlalchemy as sa
import rdr_service.model.utils
from rdr_service.participant_enums import PhysicalMeasurementsStatus, QuestionnaireStatus, OrderStatus
from rdr_service.parti... | {
"repo_name": "all-of-us/raw-data-repository",
"path": "rdr_service/alembic/versions/d81ae8ae32ea_add.py",
"copies": "1",
"size": "2497",
"license": "bsd-3-clause",
"hash": 3973806663957601000,
"line_mean": 34.6714285714,
"line_max": 125,
"alpha_frac": 0.7368842611,
"autogenerated": false,
"ratio... |
"""add_nodes
Revision ID: a3d144cdc527
Revises: e33c1d5684cf
Create Date: 2018-08-08 23:49:22.439468+00:00
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'a3d144cdc527'
down_revision = 'e33c1d5684cf'
branch_labels = None
depends_on = None
def upgrade():
... | {
"repo_name": "HERA-Team/Monitor_and_Control",
"path": "alembic/versions/a3d144cdc527_add_nodes.py",
"copies": "2",
"size": "1865",
"license": "bsd-2-clause",
"hash": 4296327656973007400,
"line_mean": 39.5434782609,
"line_max": 82,
"alpha_frac": 0.5624664879,
"autogenerated": false,
"ratio": 3.85... |
"""Add node with given data to linked list at a desired position."""
class Node(object):
"""Implement a node class."""
def __init__(self, data, next_node=None):
"""Give node data and next attributes on initialization."""
self.data = data
self.next = next_node
class LinkedList(object)... | {
"repo_name": "vbenavente/coffee_katas",
"path": "src/insertnth.py",
"copies": "1",
"size": "1413",
"license": "mit",
"hash": 2831508043448088000,
"line_mean": 28.4375,
"line_max": 77,
"alpha_frac": 0.5576786978,
"autogenerated": false,
"ratio": 4.256024096385542,
"config_test": false,
"has_n... |
"""Add non-nullable to uploads
Revision ID: 4c34ca870e0
Revises: 470b162dcd9
Create Date: 2015-06-14 15:05:37.769670
"""
# revision identifiers, used by Alembic.
revision = '4c34ca870e0'
down_revision = '470b162dcd9'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by ... | {
"repo_name": "Ninja3047/sr.ht",
"path": "alembic/versions/4c34ca870e0_add_non_nullable_to_uploads.py",
"copies": "2",
"size": "1177",
"license": "mit",
"hash": 6176811433880075000,
"line_mean": 27.0238095238,
"line_max": 63,
"alpha_frac": 0.5913338997,
"autogenerated": false,
"ratio": 3.79677419... |
"""Add non-NULL conditions to data columns
Revision ID: 1ab13f7b5ba
Revises: 7dc1a66bb8
Create Date: 2014-09-25 10:52:05.700132
"""
# revision identifiers, used by Alembic.
revision = '1ab13f7b5ba'
down_revision = '7dc1a66bb8'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql... | {
"repo_name": "rjw57/trafficdb",
"path": "migrations/versions/1ab13f7b5ba_non_null_constraints.py",
"copies": "1",
"size": "1708",
"license": "mit",
"hash": -7853433007266526000,
"line_mean": 34.5833333333,
"line_max": 101,
"alpha_frac": 0.6270491803,
"autogenerated": false,
"ratio": 3.8995433789... |
"""Add note_id and update constraints
Revision ID: 6ef9616e57cb
Revises: aa0dbc6c14aa
Create Date: 2020-10-23 12:24:51.648130
"""
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = '6ef9616e57cb'
down_revision = 'aa0dbc6c14aa'
branch_labels = None
depends_on = None
... | {
"repo_name": "indico/indico-plugins",
"path": "livesync/indico_livesync/migrations/20201023_1224_6ef9616e57cb_add_note_id_and_update_constraints.py",
"copies": "1",
"size": "5227",
"license": "mit",
"hash": 3827817236268665000,
"line_mean": 86.1166666667,
"line_max": 282,
"alpha_frac": 0.7107327339,... |
"""Add notification mechanism to the database
Revision ID: 100cfe53a84
Revises: 3d2668a96dce
Create Date: 2015-05-11 15:51:04.211519
"""
# revision identifiers, used by Alembic.
revision = '100cfe53a84'
down_revision = '3d2668a96dce'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands a... | {
"repo_name": "morelab/appcomposer",
"path": "alembic/versions/100cfe53a84_add_notification_mechanism_to_the_.py",
"copies": "3",
"size": "2094",
"license": "bsd-2-clause",
"hash": -2669636946784884000,
"line_mean": 43.5531914894,
"line_max": 132,
"alpha_frac": 0.7382999045,
"autogenerated": false,... |
"""Add notifications table
Revision ID: d3915e15063e
Revises: 52d93745fa71
Create Date: 2020-12-13 14:51:46.447103
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'd3915e15063e'
down_revision = '52d93745fa71'
branch_labels = None
depends_on = None
def upgrade... | {
"repo_name": "FallenWarrior2k/cardinal.py",
"path": "src/cardinal/db/migrations/versions/d3915e15063e_add_notifications_table.py",
"copies": "1",
"size": "1034",
"license": "mit",
"hash": 8577304885299716000,
"line_mean": 29.4117647059,
"line_max": 127,
"alpha_frac": 0.6876208897,
"autogenerated":... |
"""Add not null constraints everywhere
Revision ID: ba6fefa33e22
Revises: 2cb2db7089f4
Create Date: 2016-09-12 23:50:53.526022
"""
# revision identifiers, used by Alembic.
revision = 'ba6fefa33e22'
down_revision = '2cb2db7089f4'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgres... | {
"repo_name": "usgo/online-ratings",
"path": "web/migrations/versions/ba6fefa33e22_add_not_null_constraints_everywhere.py",
"copies": "2",
"size": "6577",
"license": "mit",
"hash": -4564594505896265000,
"line_mean": 36.7988505747,
"line_max": 71,
"alpha_frac": 0.5507070093,
"autogenerated": false,
... |
"""Add not-null constraints on membership table.
Revision ID: 33ad6ad8f955
Revises: 4c3554286996
Create Date: 2015-01-30 19:17:13.409798
"""
# revision identifiers, used by Alembic.
revision = '33ad6ad8f955'
down_revision = '4c3554286996'
branch_labels = None
depends_on = None
from alembic import op
import sqlalche... | {
"repo_name": "Code4SA/pmg-cms-2",
"path": "migrations/versions/33ad6ad8f955_add_not_null_constraints_on_membership_.py",
"copies": "1",
"size": "1075",
"license": "apache-2.0",
"hash": 3476737568343178000,
"line_mean": 27.2894736842,
"line_max": 63,
"alpha_frac": 0.6353488372,
"autogenerated": fal... |
"""Add object_events table
Revision ID: 420f0f384465
Revises: 126a93430a9e
Create Date: 2013-11-21 01:57:45.035753
"""
# revision identifiers, used by Alembic.
revision = '420f0f384465'
down_revision = '126a93430a9e'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.create_table('object_events',
... | {
"repo_name": "vladan-m/ggrc-core",
"path": "src/ggrc_gdrive_integration/migrations/versions/20131121015745_420f0f384465_add_object_events_ta.py",
"copies": "2",
"size": "1101",
"license": "apache-2.0",
"hash": -8274449319511900000,
"line_mean": 27.9736842105,
"line_max": 73,
"alpha_frac": 0.67665758... |
"""add obsolete columns
Revision ID: 4a9ceee64d0b
Revises: 69453413dfc3
Create Date: 2018-07-13 09:52:49.048544
"""
import model.utils
import sqlalchemy as sa
from alembic import op
from rdr_service.model.site_enums import ObsoleteStatus
# revision identifiers, used by Alembic.
revision = "4a9ceee64d0b"
down_revisi... | {
"repo_name": "all-of-us/raw-data-repository",
"path": "rdr_service/alembic/versions/4a9ceee64d0b_add_obsolete_columns.py",
"copies": "1",
"size": "1488",
"license": "bsd-3-clause",
"hash": 7865203316313358000,
"line_mean": 26.5555555556,
"line_max": 108,
"alpha_frac": 0.6814516129,
"autogenerated"... |
"""add officer age & years of service to SRPD incidents
Revision ID: 5cb851130ebb
Revises: c5e276c0d67f
Create Date: 2017-02-02 16:31:22.915785
"""
# revision identifiers, used by Alembic.
revision = '5cb851130ebb'
down_revision = 'c5e276c0d67f'
from alembic import op
import sqlalchemy as sa
def upgrade():
op... | {
"repo_name": "codeforamerica/comport",
"path": "migrations/versions/5cb851130ebb_.py",
"copies": "1",
"size": "1804",
"license": "bsd-3-clause",
"hash": 3548411128261506600,
"line_mean": 50.5428571429,
"line_max": 129,
"alpha_frac": 0.7283813747,
"autogenerated": false,
"ratio": 2.66863905325443... |
"""Add ondelete cascade to foreign keys
Revision ID: b295b033364d
Revises: b5551cd26764
Create Date: 2019-05-03 19:26:57.746887
"""
from alembic import op
# revision identifiers, used by Alembic.
revision = "b295b033364d"
down_revision = "b5551cd26764"
branch_labels = None
depends_on = None
def upgrade():
bind... | {
"repo_name": "CTFd/CTFd",
"path": "migrations/versions/b295b033364d_add_ondelete_cascade_to_foreign_keys.py",
"copies": "4",
"size": "9801",
"license": "apache-2.0",
"hash": 8286545861502038000,
"line_mean": 31.889261745,
"line_max": 88,
"alpha_frac": 0.5026017753,
"autogenerated": false,
"ratio... |
"""add ondelete cascade to user_committee_alerts
Revision ID: 29978548fcb6
Revises: 1cde07889540
Create Date: 2015-02-10 09:53:41.732800
"""
# revision identifiers, used by Alembic.
revision = '29978548fcb6'
down_revision = '1cde07889540'
branch_labels = None
depends_on = None
from alembic import op
import sqlalche... | {
"repo_name": "Code4SA/pmg-cms-2",
"path": "migrations/versions/29978548fcb6_add_ondelete_cascade_to_user_committee_.py",
"copies": "1",
"size": "1235",
"license": "apache-2.0",
"hash": 8690881897060263000,
"line_mean": 37.59375,
"line_max": 152,
"alpha_frac": 0.7206477733,
"autogenerated": false,
... |
"""add ondelete set null to question_repyl, tabled_committee_report and call_for_comment tables
Revision ID: 122a38429a58
Revises: 29cf770ce19b
Create Date: 2015-02-10 10:13:58.437446
"""
# revision identifiers, used by Alembic.
revision = '122a38429a58'
down_revision = '29cf770ce19b'
branch_labels = None
depends_on... | {
"repo_name": "Code4SA/pmg-cms-2",
"path": "migrations/versions/122a38429a58_add_ondelete_set_null_to_question_repyl_.py",
"copies": "1",
"size": "1118",
"license": "apache-2.0",
"hash": -6448761011559110000,
"line_mean": 35.064516129,
"line_max": 157,
"alpha_frac": 0.7271914132,
"autogenerated": f... |
#Add-on packages
import matplotlib
matplotlib.use('Agg')
import numpy as np
import pandas as pd
from matplotlib.backends.backend_pdf import PdfPages
# Plotting packages
from secimtools.visualManager import module_box as box
from secimtools.visualManager import module_hist as hist
from secimtools.visualManager import m... | {
"repo_name": "secimTools/SECIMTools",
"path": "src/secimtools/anovaModules/volcano.py",
"copies": "2",
"size": "2710",
"license": "mit",
"hash": -9210571469516348000,
"line_mean": 34.1948051948,
"line_max": 83,
"alpha_frac": 0.632103321,
"autogenerated": false,
"ratio": 3.8549075391180656,
"co... |
#Add-on packages
import matplotlib
matplotlib.use('Agg')
import numpy as np
import pandas as pd
import statsmodels.api as sm
from matplotlib.backends.backend_pdf import PdfPages
# Plotting packages
from secimtools.visualManager import module_box as box
from secimtools.visualManager import module_hist as hist
from seci... | {
"repo_name": "secimTools/SECIMTools",
"path": "src/scripts/secimtools/anovaModules/qqPlot.py",
"copies": "2",
"size": "3288",
"license": "mit",
"hash": 377979980900468740,
"line_mean": 30.3142857143,
"line_max": 81,
"alpha_frac": 0.6070559611,
"autogenerated": false,
"ratio": 3.774971297359357,
... |
ADDON = "plugin.video.tfixtures.listings"
import main
from datetime import datetime,timedelta
import time
import xbmcaddon
import xbmc
xbmcaddon.Addon(ADDON).setSetting('playing_channel','')
xbmcaddon.Addon(ADDON).setSetting('playing_title','')
xbmcaddon.Addon(ADDON).setSetting('playing_start','')
main.refresh_reminde... | {
"repo_name": "TheWardoctor/Wardoctors-repo",
"path": "plugin.video.tfixtures.listings/service.py",
"copies": "1",
"size": "1519",
"license": "apache-2.0",
"hash": -1544844105536007200,
"line_mean": 35.1666666667,
"line_max": 89,
"alpha_frac": 0.6142198815,
"autogenerated": false,
"ratio": 3.7786... |
# Addons: "DamageLog"
# ktulho <https://kr.cm/f/p/17624/>
import copy
import BigWorld
import ResMgr
import nations
from Avatar import PlayerAvatar
from Vehicle import Vehicle
from VehicleEffects import DamageFromShotDecoder
from vehicle_systems.tankStructure import TankPartIndexes
from constants import ITEM_DEFS_PATH... | {
"repo_name": "KnechtRootrechtCH/Mimir",
"path": "content/Mods/XVM/XVM_Base/res_mods_content/configs/xvm/py_macro/xvm/damageLog.py",
"copies": "1",
"size": "51007",
"license": "mit",
"hash": -7552477134396769000,
"line_mean": 43.3153779322,
"line_max": 183,
"alpha_frac": 0.5775089694,
"autogenerate... |
"""add opportunity types
Revision ID: 2303f398cc0e
Revises: 409abb6abb99
Create Date: 2015-09-04 16:40:59.787504
"""
# revision identifiers, used by Alembic.
revision = '2303f398cc0e'
down_revision = '409abb6abb99'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Al... | {
"repo_name": "CityofPittsburgh/pittsburgh-purchasing-suite",
"path": "migrations/versions/2303f398cc0e_add_opportunity_types.py",
"copies": "3",
"size": "1603",
"license": "bsd-3-clause",
"hash": 3956785438096025000,
"line_mean": 40.1025641026,
"line_max": 108,
"alpha_frac": 0.6868371803,
"autogen... |
"""Add OrderBarbicanMetadata table
Revision ID: 3d36a26b88af
Revises: 443d6f4a69ac
Create Date: 2015-02-20 12:27:08.155647
"""
# revision identifiers, used by Alembic.
revision = '3d36a26b88af'
down_revision = '443d6f4a69ac'
from alembic import op
import sqlalchemy as sa
def upgrade():
ctx = op.get_context()
... | {
"repo_name": "MCDong/barbican",
"path": "barbican/model/migration/alembic_migrations/versions/3d36a26b88af_add_order_barbican_metadata_table.py",
"copies": "2",
"size": "1315",
"license": "apache-2.0",
"hash": -7682187338654804000,
"line_mean": 32.7179487179,
"line_max": 79,
"alpha_frac": 0.63269961... |
"""Add order fields for DV
Revision ID: 80d36c1e37e2
Revises: 77422a4d8e14
Create Date: 2019-03-05 14:16:11.937122
"""
import model.utils
import sqlalchemy as sa
from alembic import op
from rdr_service.participant_enums import OrderStatus
# revision identifiers, used by Alembic.
revision = "80d36c1e37e2"
down_revis... | {
"repo_name": "all-of-us/raw-data-repository",
"path": "rdr_service/alembic/versions/80d36c1e37e2_add_order_fields_for_dv.py",
"copies": "1",
"size": "1488",
"license": "bsd-3-clause",
"hash": 8917728906388231000,
"line_mean": 25.5714285714,
"line_max": 119,
"alpha_frac": 0.6794354839,
"autogenerat... |
"""Add order finalized time
Revision ID: 806f7c2031a5
Revises: 5ec19e6b8726
Create Date: 2019-10-23 13:19:45.264759
"""
from alembic import op
import sqlalchemy as sa
import rdr_service.model.utils
from rdr_service.participant_enums import PhysicalMeasurementsStatus, QuestionnaireStatus, OrderStatus
from rdr_servic... | {
"repo_name": "all-of-us/raw-data-repository",
"path": "rdr_service/alembic/versions/806f7c2031a5_add_order_finalized_time.py",
"copies": "1",
"size": "2116",
"license": "bsd-3-clause",
"hash": -999502112653915300,
"line_mean": 33.1290322581,
"line_max": 125,
"alpha_frac": 0.7490548204,
"autogenera... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.